This repo contains all contracts related to the GMI Launchpad project
The GMI Launchpad Contracts repo is under active maintenance by Energi
Requirements
- node v18.17.0
- yarn v1.22.19
Clone the repo
clone the repo
Setup env file
cp .env.example .envInstall all dependencies
yarnSetup enviorment variables in .env
INFURA_PROJECT_ID='Infura project id'
WALLET_PRIVATE_KEY='Your wallet private key'
ETHERSCAN_API_KEY='Etherscan api key'Run test cases
yarn testFormat code
yarn lintDeploy standard NFT contracts on testnet
npx hardhat run scripts/deploy-erc721.js --network energiTestnetDeploy 100% refundable NFT contracts on testnet
npx hardhat run scripts/deploy-erc721r.js --network energiTestnetDeploy 80% refundable NFT contracts on testnet
npx hardhat run scripts/deploy-erc721r80.js --network energiTestnetDeploy standard NFT contracts on mainnet
npx hardhat run scripts/deploy-erc721.js --network energiMainnetDeploy 100% refundable NFT contracts on mainnet
npx hardhat run scripts/deploy-erc721r.js --network energiMainnetDeploy 80% refundable NFT contracts on mainnet
npx hardhat run scripts/deploy-erc721r80.js --network energiMainnetDeploy standard ERC721C NFT contract
npx hardhat run scripts/erc721c/deploy-erc721c.js --network <network name>Deploy 100% refundable ERC721C NFT contract
npx hardhat run scripts/erc721c/deploy-erc721rc.js --network <network name>Deploy 80% refundable ERC721C NFT contract
npx hardhat run scripts/erc721c/deploy-erc721r80c.js --network <network name>Details of contracts and available functions can be found in the following documents:
NOTE: Contracts with C in there names follows ERC721C standard where trading of those NFTs is limited to selected marketplaces.
- Standard NFT Contracts and Standard ERC721C NFT Contracts
- 100% Refundable NFT Contracts and 100% Refundable ERC721C NFT Contracts
- 80% Refundable NFT Contracts and 80% Refundable ERC721C NFT Contracts
GMI Launchpad Contracts repo is available under the MIT license. See the LICENSE file for more info.