Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kodjunkie/nft-smart-contracts

⛽ Gas optimised NFT smart contracts for EVM blockchains.
https://github.com/kodjunkie/nft-smart-contracts

blockchain erc721 erc721-contract-code erc721-example-code nfts solidity solidity-contracts truffle

Last synced: 2 months ago
JSON representation

⛽ Gas optimised NFT smart contracts for EVM blockchains.

Awesome Lists containing this project

README

        


⛽ 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.

```bash
# 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.

```bash
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

```bash
# 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

```bash
npm test
```

### License

[MIT](./LICENSE) License © 2022 [Lawrence Onah](https://github.com/kodjunkie)