Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/kodjunkie/nft-smart-contracts
- Owner: kodjunkie
- License: mit
- Created: 2022-03-30T15:56:18.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-06-29T13:50:35.000Z (over 1 year ago)
- Last Synced: 2024-04-23T03:03:50.602Z (8 months ago)
- Topics: blockchain, erc721, erc721-contract-code, erc721-example-code, nfts, solidity, solidity-contracts, truffle
- Language: JavaScript
- Homepage:
- Size: 338 KB
- Stars: 7
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)