8000 GitHub - tauruswei/chess-of-stars
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tauruswei/chess-of-stars

Repository files navigation

Sample Hardhat Project

注意

1、修改 .env 配置文件的变量:BSCSCAN_API_KEY、PRIVATE_KEY、BSCTESTNET_RPC_URL

2、部署合约的顺序的是 EVIC、TokenExchange、FundsPool

部署合约demo

部署EVIC合约

npx hardhat run scripts/01_EVIC.js --network bsctestnet

部署代币交换合约

npx hardhat run scripts/01_TokenExchange.js --network bsctestnet

将合约上传到 bsc 浏览器

# 0x06154cBc3871d6ad96066b0331F13f14eE8BC913 是代理合约地址
npx hardhat verify --network bsctestnet --contract contracts/01_TokenExchange.sol:TokenExchangeContract 0x06154cBc3871d6ad96066b0331F13f14eE8BC913

升级合约

npx hardhat run scripts/02_TokenExchange.js --network bsctestnet

将合约上传到 bsc 浏览器

# 0x06154cBc3871d6ad96066b0331F13f14eE8BC913 是代理合约地址
npx hardhat verify --network bsctestnet --contract contracts/02_TokenExchange.sol:TokenExchangeContractV2 0x06154cBc3871d6ad96066b0331F13f14eE8BC913

部署 FundPools 合约 和 代理合约

npx hardhat run scripts/01_FundsMUltiPoolUpgradeERC20.js --network bsctestnet

将合约上传到 bsc 浏览器

# 0x12790044f39198a9615951377256c477e208e384 是代理合约地址
npx hardhat verify --network bsctestnet --contract contracts/01_FundsMUltiPoolUpgradeERC20.sol:FundsMUltiPoolUpgradeERC20 0x12790044f39198a9615951377256c477e208e384

升级合约

npx hardhat run scripts/02_FundsMUltiPoolUpgradeERC20.js --network bsctestnet

将新合约上传到 bsc 浏览器

#  0x12790044f39198a9615951377256c477e208e384 是代理合约地址
npx hardhat verify --network bsctestnet --contract contracts/02_FundsMUltiPoolUpgradeERC20.sol:FundsMUltiPoolUpgradeERC20V2 0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0