https://github.com/astarnetwork/layer-zero-bridge-contracts-testnet
https://github.com/astarnetwork/layer-zero-bridge-contracts-testnet
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/astarnetwork/layer-zero-bridge-contracts-testnet
- Owner: AstarNetwork
- Created: 2023-12-01T13:31:31.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-08T14:10:37.000Z (over 2 years ago)
- Last Synced: 2025-04-28T16:57:32.915Z (about 1 year ago)
- Language: Solidity
- Size: 96.7 KB
- Stars: 0
- Watchers: 1
- 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
## Test astarWithFeeSend - Bridge Shibuya token (LSBY)
To send 1 SBY from `astar-testnet`(`shibuya`) to `zkatana-testnet`, run the following command (Note that the `--quantity` flag is in wei):
`npx hardhat astarWithFeeSend --quantity 1000000000000000000 --target-network zkatana-testnet --network astar-testnet`
To send 1SBY from `zkatan-testnet` to `astar-testnet`(`shibuya`), run the following command (Note that the `--quantity` flag is in wei):
`npx hardhat astarWithFeeSend --quantity 1000000000000000000 --target-network astar-testnet --network zkatana-testnet`
## Test bridge XC20 lzDOT
To send 1 lzDOT from `astar-testnet`(`shibuya`) to `zkatana-testnet`, run the following command (Note that the `--quantity` flag is in wei):
`npx hardhat lZDOTSend --quantity 10000000000000000000000 --target-network zkatana-testnet --network astar-testnet`
To send 1 lzDOT from `zkatan-testnet` to `astar-testnet`(`shibuya`), run the following command (Note that the `--quantity` flag is in wei):
`npx hardhat lZDOTSend --quantity 10000000000000000000000 --target-network astar-testnet --network zkatana-testnet`