This project offers a flexible and intuitive interface for bridging assets to OP Stack rollups. It supports both standard ETH-based rollups and chains with custom gas tokens. For detailed information on custom gas tokens in the OP Stack, see the official custom gas token docs.
- Versatile Bridging: Facilitates bridging to and from any OP Stack chain.
- Custom Gas Token Compatibility: Enables bridging to and from chains using custom gas tokens.
- Clone this repository:
git clone https://github.com/chaindrop-raas/oni-bridge.git
- Navigate to the project directory:
cd oni-bridge
- Install dependencies:
yarn install
To enable custom gas token bridging, set the VITE_L1_CUSTOM_GAS_TOKEN_ADDRESS
environment variable in the .env file to the address of the custom gas token’s contract on the parent chain. If you prefer to use the native currency, set VITE_L1_CUSTOM_GAS_TOKEN_ADDRESS
to the zero address (0x0000000000000000000000000000000000000000
).
- Ensure the
.env
file is properly set up by copying it from.env.example
and updating them as needed:cp .env.example .env
- Start the development server:
yarn dev
- Build the project:
yarn build
- Deploy the compiled files from the
dist
directory to your preferred hosting service as static assets.
We welcome contributions! Please submit pull requests or open issues for any bugs or feature requests.
This project is released under the Creative Commons BY-SA 4.0 license. You are free to use, adapt, and repurpose the code, provided you give appropriate credit, provide a link to the license, and indicate if changes were made. Redistribution of your contributions must be under the same license. We encourage users to innovate and expand upon our work while ensuring proper attribution.
For more details, see the LICENSE file or read more on the Creative Commons website.