Skip to content

videocoin/videocoin-nft

Repository files navigation

VideoCoin NFT contracts

NFT smart contracts operated by VideoCoin NFT marketplace.

Pre-requirements

Ganache-cli and Truffle has to be installed.

Deployment

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

Flatten smart contracts

To flatten smart contracts, run:

scripts/flatten.sh

resulting files will resgin in temp folder.

Golang bindings

To generate golang bindings, run:

make abi
make bindings

resulting files will resgin in temp folder.