## ���� Hi!
This repo contains a Flow contract (ESGReward) to mint NFTs on the Flow blockchain, along with supporting transactions and scripts.
## Contracts
ESGReward.cdc: This the only contract of concern. It inherits from Flow's NonFungibleToken.cdc contract.
NonFungibleToken.cdc: Flow's default NFT contract.
## Transactions
CreateESGRewardCollection.cdc: To create an empty NFT Collection for a specific account.
MintESGReward.cdc: To mint a new NFT and place in a specific account. Requires an admin account that owns the ESGReward contract.
GiveESGRewardTo.cdc: Transfers an NFT from an owner account to a specified recepient account.
## Scripts
CheckTokenMetadata.cdc: Returns the associated metadata for the NFT in an owner's Collection given the account address and NFT's ID.
GetAllCollectionIDs.cdc: Returns all the NFT ID's in an owner's Collection given the account address.
## Tests
Note: Requires Python 3.x
1. Open ./tests.py and update the following defaults:
ADMIN = u'emulator-account' // Account with the ESGReward Contract
ADMIN_ADDRESS = u'0xf8d6e0586b0a20c7' // Corresponding Admin account address
RECEPIENT_SIGNER = u'my-test-account' // Target recepient account name to run tests
RECEPIENT_ADDRESS = u'0x39bf847ca5ad3c1c' // Target recepient account address to run tests
HOST = u'localhost:3569' // Emulator, or use Testnet: access.testnet.nodes.onflow.org:9000
2. Run tests: python ./tests.py
## Contact
Questions? Contact me at omar [atta] eastsidegames.com. Thanks!
FlowNFT:用于铸造NFT的简单流程合同
需积分: 46 112 浏览量
2021-04-02
07:22:23
上传
评论
收藏 12KB ZIP 举报
一叶障不了目
- 粉丝: 12
- 资源: 4608
最新资源
- 基于51单片机+共阴极数码管设计00-99计数器Proteus仿真+软件程序C源代码.zip
- 基于STM32的单片机动态加载函数库设计源码 - dynamic_loader
- 基于51单片机设计可预置可逆4位计数器Proteus仿真+软件程序C源代码.zip
- xiaomi10青春版完好机备份基带qcn.qcn
- 基于51单片机的汉字点阵显示Proteus仿真+软件程序C源码.zip
- 甘晴void:一位多才多艺的编程新星.zip
- 基于C++的App图标资源库设计源码 - libicon
- 基于Java的日记本应用程序设计源码 - Diary
- 基于C#的.NET模板引擎设计源码 - jntemplate
- 基于51单片机+AC24C04+LCD1602显示的电子密码锁程序源代码及电路仿真.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
评论0