Deploy and verify smart contracts on multiple blockchain networks (BSC, Arbitrum, Base) using Hardhat. Use this skill when deploying KasPump contracts, verifying deployments, or troubleshooting deployment issues.
This skill helps deploy and verify smart contracts on multiple networks for the KasPump project.
bscbscTestnetarbitrumarbitrumSepoliabasebaseSepolianpm run deploy:<network>
Example:
npm run deploy:bsc-testnetnpm run deploy:deterministic:<network>
Example: npm run deploy:deterministic:bsc-testnet
Pre-Deployment Checks
.env configuration contains necessary private keys and RPC URLsnpm run compileExecute Deployment
deployments.jsonPost-Deployment Verification
npm run verify:deploymentnpm run test:bsc (for BSC testnet)scripts/deploy.ts, scripts/deploy-deterministic.tsscripts/verify-deployment.tshardhat.config.tsdeployments.jsondeployments.json# 1. Compile contracts
npm run compile
# 2. Deploy to testnet
npm run deploy:deterministic:bsc-testnet
# 3. Verify deployment
npm run verify:deployment
# 4. Test deployed contracts
npm run test:bsc
# 5. If successful, deploy to mainnet
npm run deploy:deterministic:bsc