You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now we have a few places in the project that hold information on how to compile, verify and deploy a contract. I suggest collecting that information and making sure it is accessible in all of them to serve different developer preferences
Create a copy of .env.example and rename it to .env.
Compile the contract
Run
yarn run compile
Deploy the contract
You will need the PRIVATE_KEY set in .env. Make sure you hold CELO tokens to pay for the deployment. If you are deploying on Alfajroes, get the tokens from the Celo faucet.
To deploy your contract on Alfajores
npx hardhat run scripts/deploy.js --network alfajores
To deploy your contract on Mainnet
npx hardhat run scripts/deploy.js --network celo
For the verification you will need the Celoscan API KeyCELOSCAN_API_KEY set in .env.
Tell us about your idea
Right now we have a few places in the project that hold information on how to compile, verify and deploy a contract. I suggest collecting that information and making sure it is accessible in all of them to serve different developer preferences
Proposed update
Celo Composer | Hardhat
How to use
Create a copy of
.env.example
and rename it to.env
.Compile the contract
Run
You will need the
PRIVATE_KEY
set in.env
. Make sure you hold CELO tokens to pay for the deployment. If you are deploying on Alfajroes, get the tokens from the Celo faucet.To deploy your contract on Alfajores
To deploy your contract on Mainnet
CELOSCAN_API_KEY
set in.env
.For Alfajores (Testnet) Verification
For Mainnet Verification
Check the file
hardhat.config.js
for Celo specific hardhat configuration.Anything else?
No response
The text was updated successfully, but these errors were encountered: