GRY.PH NFT Smart Contracts – GRY.PH NFT智能合约区块链毕设代写

区块链毕设代写本文提供国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,GRY.PH NFT Smart Contracts – GRY.PH NFT智能合约区块链毕设代写 是一篇很好的国外资料

GRY.PH NFT Smart Contracts

The contract defined here are to allow auditors to evaluate the contracts that are designed and specifically for the purpose of the GRY.PH project. It specifies the process of digitizing collectable designs. Some of the business requirements include the following.

  • Ability to cheaply define a set of tokens that can be minted for each design which include the following.
    • Design information
    • Token quantity limits
    • Royalty Fees
  • Ability to mint tokens cheaply or,
    • Ability to facilitate air drops off chain and,
    • Ability for buyers to redeem air drops and pay the minting costs.
  • Ability for holders to list tokens in a decentralized manner and,
    • Ability for buyers to purchase listed tokens on any NFT marketplace while having,
    • Ability to distribute royalties no matter where it was exchanged

Considerations

  • Use ERC1155 instead of ERC721
  • Use Enjin or Polygon instead of Ethereum
  • Rarible Compatibility

Compatibility

Solidity ^0.8.0

  • Recommended v0.8.4

1. Install

$ cp .env.sample to .env $ npm install

You will need to provide an Ethereum Private Key to deploy to a test net and a Coin Market Cap Key to see gas price conversions when testing.

2. Testing

Make sure in hardhat.config.js to set the defaultNetwork to hardhat.

npm test

3. Documentation

  • ERC721

WARNING: The contracts provided here are as is and GRY.PH does not warrant that these will work on a live environment. It is possible that these contracts are out dated and it is possible for GRY.PH to update these contracts without notification. Use at your own risk.

4. Reports

The following is an example gas report from the tests ran in this project and could change based on the cost of Ethereum itself.

·------------------------------------|---------------------------|-------------|-----------------------------· |        Solc version: 0.8.4         ·  Optimizer enabled: true  ·  Runs: 200  ·  Block limit: 12450000 gas  │ ·····································|···························|·············|······························ |  Methods                           ·              200 gwei/gas               ·       1.01 usd/matic        │ ······················|··············|·············|·············|·············|···············|·············· |  Contract           ·  Method      ·  Min        ·  Max        ·  Avg        ·  # calls      ·  usd (avg)  │ ······················|··············|·············|·············|·············|···············|·············· |  ERC721Marketplace  ·  allocate    ·      35698  ·     113680  ·      84399  ·            5  ·       0.02  │ ······················|··············|·············|·············|·············|···············|·············· |  ERC721Marketplace  ·  deallocate  ·          -  ·          -  ·      24940  ·            1  ·       0.01  │ ······················|··············|·············|·············|·············|···············|·············· |  ERC721Marketplace  ·  delist      ·          -  ·          -  ·      15517  ·            1  ·       0.00  │ ······················|··············|·············|·············|·············|···············|·············· |  ERC721Marketplace  ·  drop        ·          -  ·          -  ·      46379  ·            2  ·       0.01  │ ······················|··············|·············|·············|·············|···············|·············· |  ERC721Marketplace  ·  exchange    ·      56830  ·     100764  ·      78797  ·            2  ·       0.02  │ ······················|··············|·············|·············|·············|···············|·············· |  ERC721Marketplace  ·  list        ·          -  ·          -  ·      48178  ·            4  ·       0.01  │ ······················|··············|·············|·············|·············|···············|·············· |  ERC721Marketplace  ·  mint        ·      89405  ·     123605  ·     115055  ·            4  ·       0.02  │ ······················|··············|·············|·············|·············|···············|·············· |  ERC721Marketplace  ·  redeem      ·      88848  ·     126418  ·      99092  ·            4  ·       0.02  │ ······················|··············|·············|·············|·············|···············|·············· |  ERC721Marketplace  ·  register    ·          -  ·          -  ·      70023  ·            5  ·       0.01  │ ······················|··············|·············|·············|·············|···············|·············· |  Deployments                       ·                                         ·  % of limit   ·             │ ·····································|·············|·············|·············|···············|·············· |  ERC721Marketplace                 ·          -  ·          -  ·    2771489  ·       22.3 %  ·       0.56  │ ·------------------------------------|-------------|-------------|-------------|---------------|-------------· 

GRY.PH NFT智能合约

此处定义的合同允许审计师评估专为GRY.PH项目设计的合同。它规定了可收集设计的数字化过程。一些业务需求包括以下内容

  • 能够便宜地定义一组令牌,这些令牌可以为每个设计制造,包括以下内容。设计信息代币数量限制特许权使用费
  • 能够便宜地铸造代币,或者能够促进空投链,以及买家赎回空投并支付铸造成本的能力
  • 买方在任何NFT市场上购买列出代币的能力,

考虑事项

  • 使用Enjin或Polygon代替以太坊eth
  • 稀有兼容性
  • 推荐的v0.8.4

兼容性

Solidity ^0.8.0

  • Recommended v0.8.4

1.安装

$ cp .env.sample to .env $ npm install

您需要提供以太坊eth私钥以部署到测试网络,并提供硬币市值密钥以查看测试时的天然气价格转换

2.测试

确保在hardhat.config.js中将defaultNetwork设置为hardhat

npm test

3.文档

  • ERC721

警告:此处提供的合同是按原样提供的,GRY.PH不保证这些合同在现场环境中有效。这些合同可能已过期,GRY.PH有可能在不通知的情况下更新这些合同。使用风险自负

4.报告

以下是本项目中运行的测试的气体报告示例,可能会根据以太坊eth本身的成本而改变

·------------------------------------|---------------------------|-------------|-----------------------------· |        Solc version: 0.8.4         ·  Optimizer enabled: true  ·  Runs: 200  ·  Block limit: 12450000 gas  │ ·····································|···························|·············|······························ |  Methods                           ·              200 gwei/gas               ·       1.01 usd/matic        │ ······················|··············|·············|·············|·············|···············|·············· |  Contract           ·  Method      ·  Min        ·  Max        ·  Avg        ·  # calls      ·  usd (avg)  │ ······················|··············|·············|·············|·············|···············|·············· |  ERC721Marketplace  ·  allocate    ·      35698  ·     113680  ·      84399  ·            5  ·       0.02  │ ······················|··············|·············|·············|·············|···············|·············· |  ERC721Marketplace  ·  deallocate  ·          -  ·          -  ·      24940  ·            1  ·       0.01  │ ······················|··············|·············|·············|·············|···············|·············· |  ERC721Marketplace  ·  delist      ·          -  ·          -  ·      15517  ·            1  ·       0.00  │ ······················|··············|·············|·············|·············|···············|·············· |  ERC721Marketplace  ·  drop        ·          -  ·          -  ·      46379  ·            2  ·       0.01  │ ······················|··············|·············|·············|·············|···············|·············· |  ERC721Marketplace  ·  exchange    ·      56830  ·     100764  ·      78797  ·            2  ·       0.02  │ ······················|··············|·············|·············|·············|···············|·············· |  ERC721Marketplace  ·  list        ·          -  ·          -  ·      48178  ·            4  ·       0.01  │ ······················|··············|·············|·············|·············|···············|·············· |  ERC721Marketplace  ·  mint        ·      89405  ·     123605  ·     115055  ·            4  ·       0.02  │ ······················|··············|·············|·············|·············|···············|·············· |  ERC721Marketplace  ·  redeem      ·      88848  ·     126418  ·      99092  ·            4  ·       0.02  │ ······················|··············|·············|·············|·············|···············|·············· |  ERC721Marketplace  ·  register    ·          -  ·          -  ·      70023  ·            5  ·       0.01  │ ······················|··············|·············|·············|·············|···············|·············· |  Deployments                       ·                                         ·  % of limit   ·             │ ·····································|·············|·············|·············|···············|·············· |  ERC721Marketplace                 ·          -  ·          -  ·    2771489  ·       22.3 %  ·       0.56  │ ·------------------------------------|-------------|-------------|-------------|---------------|-------------· 

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

www.interchains.cc

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

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 ! QQ3039046426
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » GRY.PH NFT Smart Contracts – GRY.PH NFT智能合约区块链毕设代写

提供最优质的资源集合

立即查看 了解详情