In this repository you will find all the contract that manage the banner of the Gotchi Farmy Clan.
There is one contract for the distribution of the old banner create with OpenSea and a second contract for the new banner.
All the contract are deployed on the Polygon network via a proxy contract.
Polygon Address : https://polygonscan.com/address/0x637bA33ec290373F69E4D5bA040B0B5d0d0919f2
Copy the .env.dist
file to .env
and fill in the values.
URL_ALCHEMY_POLYGON_MUMBAI=
Alchemy API URL for Polygon Mumbain, used to deploy on testnetURL_ALCHEMY_POLYGON=
Alchemy API URL for Polygon, used to deploy and also for the testPRIVATE_KEY=
Private key of the deployer accountETHERSCAN_API_KEY=
Etherscan API key, used to verify the contracts on Etherscan
The following commands are available :
To test (
npx hardhat test
or
npx hardhat test ./test/OldBannerDistribution.proxy.js
or
npx hardhat test ./test/GotchiFarmyBanner.proxy.js
To deploy :
npx hardhat run --network polygon scripts/deploy.js
npx hardhat verify --network polygon DEPLOYED_CONTRACT_ADDRESS "CONSTRUCTOR_ARGUMENTS"