A step-by-step guide to deploying and verifying smart contracts on the Shibarium L2 chain.
109
For Puppynet (testnet), see the official docs.
Write your contract
Compile the contract
Connect your wallet
Deploy and interact
get
(should return 0), then use set
to update the value and verify with get
again.Prerequisites
Set up your project
Write your contract
contracts/SimpleStorage.sol
:Configure Hardhat for Shibarium
hardhat.config.js
:.env
file and add your private key:Write the deployment script
scripts/deploy.js
:Deploy the contract
Verify the contract (optional)
hardhat.config.js
: