https://github.com/astarnetwork/layer-zero-bridge-mainnet
https://github.com/astarnetwork/layer-zero-bridge-mainnet
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/astarnetwork/layer-zero-bridge-mainnet
- Owner: AstarNetwork
- Created: 2024-03-05T10:21:04.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-11T14:30:51.000Z (over 2 years ago)
- Last Synced: 2024-04-14T01:58:39.539Z (about 2 years ago)
- Language: Solidity
- Size: 134 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LayerZero Bridge Native token
## Prepare
1. Install dependencies by running `npm install`
2. Create a `.env` file in the root directory in reference to `.env.example` file
3. Run `npx hardhat compile` to compile the contracts
## Bridge Astar token (ASTR)
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`
## Bridge XC20 DOT
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`