crypto-prosciutti-di-parma-contracts – 帕尔马加密火腿合同区块链毕设代写

区块链毕设代写本文提供国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,crypto-prosciutti-di-parma-contracts – 帕尔马加密火腿合同区块链毕设代写 是一篇很好的国外资料

crypto-prosciutti-di-parma-contracts

Repository containing the code of Crypto Prosciutti di Parma Contracts NFTs.

 


 

?‍♂️ Tests

npm install 
npm run test 

Test result

CryptoSalumiereDiParma & CryptoProsciuttiDiParma     ✓ should be able to handle onlyOwner stuff properly in case of wrong owner     ✓ should be able to handle onlyOwner stuff properly in case of correct owner     ✓ should be able to buy a prosciutto di parma     ✓ should be able to buy 10 prosciutti di parma and then do another buy     ✓ should not be able to buy a prosciutto di parma if the salumiere is closed     ✓ should not be able to buy a prosciutto di parma trying to spend less than its cost     ✓ should be able to reserve a prosciutto di parma     ✓ should be able to reserve some prosciutti di parma and then buy another one     ✓ should be able to buy 5 prosciutti di parma, reserve some and buy another 3     ✓ should collect all profit 

 


 

Publish & Verify

Create an .env file with the following fields:

MAINNET_PRIVATE_KEY= ROPSTEN_PRIVATE_KEY= ROSPTENT_NODE= ETH_MAINNET_NODE= ETHERSCAN_API_KEY= 

publish

❍ npx hardhat run --network mainnet scripts/deploy-script.js 

verify

❍ npx hardhat verify --network mainnet DEPLOYED_CONTRACT_ADDRESS "Constructor argument 1" 

帕尔马加密火腿合同

包含Parma加密火腿合同NFT代码的存储库

 


 

?‍♂️ 测试

npm install 
npm run test 

测试结果

CryptoSalumiereDiParma & CryptoProsciuttiDiParma     ✓ should be able to handle onlyOwner stuff properly in case of wrong owner     ✓ should be able to handle onlyOwner stuff properly in case of correct owner     ✓ should be able to buy a prosciutto di parma     ✓ should be able to buy 10 prosciutti di parma and then do another buy     ✓ should not be able to buy a prosciutto di parma if the salumiere is closed     ✓ should not be able to buy a prosciutto di parma trying to spend less than its cost     ✓ should be able to reserve a prosciutto di parma     ✓ should be able to reserve some prosciutti di parma and then buy another one     ✓ should be able to buy 5 prosciutti di parma, reserve some and buy another 3     ✓ should collect all profit 

 


 

✅ 出版及;验证发布

Create an .env file with the following fields:

MAINNET_PRIVATE_KEY= ROPSTEN_PRIVATE_KEY= ROSPTENT_NODE= ETH_MAINNET_NODE= ETHERSCAN_API_KEY= 

publish

❍ npx hardhat run --network mainnet scripts/deploy-script.js 

verify

❍ npx hardhat verify --network mainnet DEPLOYED_CONTRACT_ADDRESS "Constructor argument 1" 

部分转自网络,侵权联系删除区块链源码网

www.interchains.cc

https://www.interchains.cc/23794.html

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 ! QQ3039046426
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » crypto-prosciutti-di-parma-contracts – 帕尔马加密火腿合同区块链毕设代写

提供最优质的资源集合

立即查看 了解详情