Skip to content

⛽ Gas optimised NFT smart contracts for EVM blockchains.

License

Notifications You must be signed in to change notification settings

kodjunkie/nft-smart-contracts

Repository files navigation

⛽ Gas optimised NFT smart contracts for EVM blockchains.

Development

You can easily copy and paste the contract into your existing project or to clone this project.

# clone the repo
git clone https://github.com/kodjunkie/nft-smart-contracts.git

# navigate to the repo directory
cd nft-smart-contracts

# setup env
cp .env.example .env

# install dependencies
npm install

Compiling the contracts

All compiled artifacts are located in the builds directory.

npm run compile

Deployment

NOTE: If you intend to deploy directly via this project, you must follow the instructions below.

  1. Edit migrations/2_deploy_contracts.js and remove/comment out redundant deployments.
  2. Update .env accordingly and run any of the commands below
# deploy to truffle network
npx truffle migrate

# deploy to truffle network using third-party wallet via HDWalletProvider
npx truffle migrate --network wallet

# deploy to truffle network using third-party wallet via Dashboard
npx truffle migrate --network dashboard

# deploy to rinkeby network via Infura
npx truffle migrate --network rinkeby

More deployment configurations can be added to the networks object in the truffle-config.js file.

Tests

npm test

License

MIT License © 2022 Lawrence Onah