Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jac18281828/lzpingpong
LayerZero v2 pingpong demo
https://github.com/jac18281828/lzpingpong
Last synced: about 1 month ago
JSON representation
LayerZero v2 pingpong demo
- Host: GitHub
- URL: https://github.com/jac18281828/lzpingpong
- Owner: jac18281828
- License: mit
- Created: 2024-04-15T18:36:35.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-17T16:54:16.000Z (9 months ago)
- Last Synced: 2024-10-15T19:13:58.586Z (3 months ago)
- Language: Solidity
- Size: 56.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PingPongOAPP
## LayerZero PingPong OApp Demo
This is a demonstration of a LayerZero OApp (Overlay Application) that performs "ping" operations between two different blockchains, specifically Sepolia and Holesky testnets work.
## Overview
The PingPong OApp sends a "ping" transaction from one blockchain (Sepolia) to another (Holesky). The receiving blockchain (Holesky). This demonstrates the interoperability capabilities of LayerZero.
## Prerequisites
- LayerZero SDK
- OpenZeppelin
- Sepolia and Holesky blockchain nodes running# Deployments
| Contract | Address | Network |
| ------------ | ------------------------------------------ | ------- |
| PingPongOApp | 0xDC685bf4b416f8D5cAc64927E9c516be45b81d28 | Sepolia |
| PingPongOApp | 0xD99E8bA5259Dd2b8B9aBFE0eD78913ec60B8F898 | Holesky |## Setup
Clone the repository and install dependencies:
```shell
$ git clone https://github.com/jac18281828/lzpingpong.git
$ cd lzpingpong
$ npm ci --frozen-lockfile
$ forge install
$ forge fmt --check
$ npm run lint## About Foundry
**Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.**
Foundry consists of:
- **Forge**: Ethereum testing framework (like Truffle, Hardhat and DappTools).
- **Cast**: Swiss army knife for interacting with EVM smart contracts, sending transactions and getting chain data.
- **Anvil**: Local Ethereum node, akin to Ganache, Hardhat Network.
- **Chisel**: Fast, utilitarian, and verbose solidity REPL.## Documentation
https://book.getfoundry.sh/
## Usage
### Build
```shell
$ forge build
```### Test
```shell
$ forge test
```### Format
```shell
$ forge fmt
```### Gas Snapshots
```shell
$ forge snapshot
```### Anvil
```shell
$ anvil
```### Deploy
```shell
$ forge script script/Counter.s.sol:CounterScript --rpc-url --private-key
```### Cast
```shell
$ cast
```### Help
```shell
$ forge --help
$ anvil --help
$ cast --help
```