contract Management Warehouse for Abe Chain
node v16.14.0
npm v7.24.2
[install nvm & node]
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
nvm install 16.14.0
nvm use 16.14.0
[install npm]
npm install npm@7.24.2 -g
npm install
need to set below config
[vim .env]
DA_PRIVATE_KEY=<private key>
ZK_PRIVATE_KEY=<private key>
[change config in hardhat.config.js]
- abeDA: url and chainId
- zkNode: url and chainId
npx hardhat compile
npx hardhat test
Confirm the initial value of abe token
- name
- symbol
- initialSupply
npx hardhat deployAbeToken --network abeDA
Transfer ABE token to sequencer
npx hardhat transferAbeToken --recipient <recipient address> --amount <amount> --contractaddress <contract address> --network abeDA
This script will deploy simplebridge and transfer zknode's native tokens to simplebridge at the same time
- deploy simplebridge
npx hardhat deploySimpleBridge --network zkNode
- transfer zknode's native tokens to simplebridge
contract address is the address obtained from deploying the contract above Amount suggests 10000000
npx hardhat transferToSimpleBridge --amount <amount> --address <contract address> --network zkNode