Skip to content

curvefi/gas-bridger

Repository files navigation

Gas Bridger using LayerZero V2

Setup

Install dependencies using uv:

# 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

About

Library for bridging gas tokens between chains using LayerZero

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published