此代码只是案例,切勿直接使用
基于HardHat框架,在Sepolia发行一个ERC20 Solidity,Hardhat,Token standard,Interoperability, ERC-20
Chainlink 测试网水龙头:https://faucets.chain.link Alchemy 测试网水龙头:https://sepoliafaucet.com/ Infura 测试网水龙头:https://www.infura.io/faucet/sepolia
npm install
npx hardhat run scripts/deployEthGoat.js
npx hardhat run scripts/deployEthGoat.js --network sepolia
EthGoat
npm install --save-dev @chainlink@env-enc
npx env-enc set-pw
https://hardhat.org/hardhat-runner/plugins/nomicfoundation-hardhat-verify
npx hardhat verify --network sepolia 0xb2bdF796373ae527Cf645dc1b0b0489B7dFA65b3
npx hardhat deploy_ethgoat --network sepolia
npx hardhat interact_ethgoat --network sepolia
npx hardhat run scripts/deployEthGoat.js --network sepolia
npx hardhat test
·