Contract Deployment Tutorial
The DogeOS Chikyū Testnet allows anyone to deploy a smart contract on DogeOS. In this tutorial, you will learn how to deploy a contract on DogeOS Chikyū Testnet using common tools for developing on Ethereum. This demo repo illustrates contract deployment with Hardhat and Foundry.
Deploy contracts with Hardhat
-
If you haven’t already, install nodejs.
-
Clone the repo and install dependencies:
git clone https://github.com/DogeOS69/contract-deployment-guide.gitcd dogeos69/contract-deployment-guidenpm install -
Set you private key by using
npx hardhat keystore set DOGEOS_CHIKYU_PRIVATE_KEY -
Deploy the contract with
npx hardhat ignition deploy ignition/modules/Counter.ts --network dogeos_chikyu
Deploy contracts with Foundry
-
Clone the repo:
git clone https://github.com/DogeOS69/contract-deployment-guide.gitcd dogeos69/contract-deployment-guide -
Install Foundry:
curl -L https://foundry.paradigm.xyz | bashfoundryup -
Deploy your contract with Foundry:
forge create contracts/Counter.sol:Counter --rpc-url https://rpc.testnet.dogeos.com --interactive
Questions and Feedback
Thank you for participating in and developing on the DogeOS Chikyū Testnet! If you encounter any issues, join our Discord and ask us in the #devs channel.