EASYNFTMINTR is a template for creating an NFT Minting site where users can pay with tokens to mint NFTs. This is the contract wich also connects to the minting smart contract.
yarn
yarn build
yarn test
You can configure the acount where you would like to deploy the contract. You can see the example contract deployed on Testnet here. You can deploy the contract by running the following command (update fuckyeah.config.js and .env first)
yarn deploy [targetchainname]
The util directory include some convenience scripts in the, These scripts are useful if you prefer not to use cleos. To use the scripts you must create .env.js file in the util folder with your private key and possibly update eosioConfig.js
For doing basic actions related to the easynftmintr contract. Feel free to modify with commonly needed actions.
cd ./util
CHAIN=telosTest node do templateset
CHAIN=telosTest node do templaterm 2
When the contract is deployed you need to register NFTs to be minted, the mint contract needs to be listed in the authorized_accounts array on the atomicassets nft collection. Register each template by calling the tempalteset
action with the relevant details.
For testing you may want to copy an existing NFT collection for use in your project, this script copies NFT collection data into schemas.json and tempaltes.json for use in other scripts
You can uses these methods to setup your NFT collection/schemas, you will need to manually update the methods with your specific collection details
cd ./util
CHAIN=telosTest node nft createSchema
This script contains various utility functions for managing account authentication and resources.
cd ./util
CHAIN=telosTest node setup buyRam
Once you have the contract deployed and setup NFTs to be minted you can connect the UI to it. Take a look at The UI template here.