- Install dependencies by running
npm install
- Create a
.env
file in the root directory in reference to.env.example
file - Run
npx hardhat compile
to compile the contracts
To send 1ASTR from astar
(astar L1 mainnet
) to zk-astar
(Astar zkEVM
), run the following command (Note that the --quantity
flag is in wei):
npx hardhat bridge --quantity 1000000000000000000 --target-network zk-astar --network astar
To send 1ASTR from zk-astar
(Astar zkEVM
) to astar
(astar L1 mainnet
), run the following command (Note that the --quantity
flag is in wei):
npx hardhat bridge --quantity 1000000000000000000 --target-network astar --network zk-astar
To send 1 DOT from astar
(Astar L1
) to zkEVM
, run the following command (Note that the --quantity
flag is in wei):
Important note: DOT is an 10 decimals assets on Astar.
npx hardhat BridgeDOT --quantity 10000000000 --target-network zk-astar --network astar
To send 1 DOT from zkatan-testnet
to astar-testnet
(shibuya
), run the following command (Note that the --quantity
flag is in wei):
Important note: DOT is an ERC20 with 18 decimals on zkAstar.
npx hardhat BridgeDOT --quantity 1000000000000000000 --target-network astar --network zk-astar