Skip to content

Latest commit

 

History

History
67 lines (47 loc) · 893 Bytes

合约框架使用说明.md

File metadata and controls

67 lines (47 loc) · 893 Bytes

合约框架使用说明

项目下载

git clone [[email protected]](mailto:[email protected]):Ensoul-Lyarn run hardhat upgradeableContract:verify --contract Ensoul_Upgradeable --args [] --network $NETWORK_IDabs/ensoul-sbt-contarct.git

安装依赖

yarn i

编译合约、typechain和SDK

yarn build:all

测试合约

yarn test

测试覆盖

yarn test:cov

格式化代码

yarn format:fix

部署合约

# Goerli
export NETWORK_ID=5
export GAS_PRICE=3

# Matic
export PRIVATE_KEY=
export NETWORK_ID=89
export GAS_PRICE=3

yarn run hardhat deploy:v1.1 --gas-price $GAS_PRICE --network $NETWORK_ID

验证合约

# Goerli
export NETWORK_ID=5
export GAS_PRICE=3

# Matic
export PRIVATE_KEY=
export NETWORK_ID=89
export GAS_PRICE=3

yarn run hardhat verify:v1.1 --network $NETWORK_ID