Install hardhat locally in the project folder:
npm install --save-dev hardhat
- Fill up environment with networks keys you are going to use:
GNOSIS_PRIVATE_KEY
- The private key of the account that will be used to deploy your smart contract on the Gnosis Chain.GNOSISSCAN_API_KEY
- The API key for the gnosisscan service that will be used for contract verification.TOKEN_ADDRESS
- The address of the token that will be distributed via the AirDrop smart contract that you are going to deploy.- [Optionally]
OWNER_ADDRESS
- The address to transfer the deployed contract ownership to. If not specified, the contract will remain under the control of the deploying address.
- Run command:
where
npm run deploy %network%
%network%
is name of the network you would deploy your AirDrop contract to. Can be eithergnosis
orlocalhost
.
- Fill up AIRDROP_ADDRESS environment variable with address of deployed AirDrop proxy.
- Run command:
where
npm run upgrade %network%
%network%
is name of the network where you would upgrade your AirDrop contract. Can be eithergnosis
orlocalhost
.