NFT smart contracts operated by VideoCoin NFT marketplace.
Ganache-cli and Truffle has to be installed.
Install dependencies:
npm install
Use .env.template
to create and configure .env
file:
CUSTOM_RPC=https://rpc.my-nft.io
MNENONIC=abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about
INFURA_KEY=
NFT721_ADMIN=
NFT721_NAME=MyTestNFT
NFT721_SYMBOL=MTNFT
NFT1155_URI=https://storage.my-nft.io/{id}.json
If NFT721_ADMIN
undefined, script will use account from MNEMONIC
.
Run tests:
npm run test
Deploy contracts to custom network:
truffle deploy --network custom
To flatten smart contracts, run:
scripts/flatten.sh
resulting files will resgin in temp
folder.
To generate golang bindings, run:
make abi
make bindings
resulting files will resgin in temp
folder.