An open API service indexing awesome lists of open source software.

https://github.com/curvefi/gas-bridger

Library for bridging gas tokens between chains using LayerZero
https://github.com/curvefi/gas-bridger

Last synced: 10 months ago
JSON representation

Library for bridging gas tokens between chains using LayerZero

Awesome Lists containing this project

README

          

# Gas Bridger using LayerZero V2

## Setup

Install dependencies using uv:
```bash
# Install uv if you haven't already
curl -LsSf https://astral.sh/uv/install.sh | sh

# Create virtual environment and install dependencies
uv venv
uv sync
source .venv/bin/activate # On Unix
# or
.venv\Scripts\activate # On Windows
```

## Usage

To bridge gas between chains:
- Send ETH to `GasRelayer.send_gas()` with destination chain ID and receiver address
- The contract will handle the cross-chain messaging through LayerZero
- Funds will be received by the target address on the destination chain

## Requirements

- Python 3.12+
- Vyper 0.4.0+
- LayerZero V2 endpoint contracts deployed on target chains