Skip to content

pichaoqkc/L2Bridge

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

L2Bridge

The L2Bridge is a cross-layer-2 protocol that provides asset transfer between existing L2 networks. The main idea is to sacrifice the time cost of the Liquidiy Provider and make the user transfer their asset real time.

Contracts

  • L2BridgeSource.sol: source bridge for user to deposit the source token and for LP to withdraw the source token
  • L2BridgeDestination.sol: destination bridge for LP to buy user's source token
  • OptimismL1Bridge.sol: Layer1 bridge that sync the status between source and destination bridge on Layer 2

Deployments

Kovan Testnet

Name Address
L1 Bridge 0x34Fb74842eFd8f43EaB03DE3c713868D0ba6dC0c

Optimism Testnet

Name Address
L2 Source Bridge 0x524867916F136b56083b7b1F071d228361A6600E
L2 Destination Bridge 0x0AD853E840cCa279F24c59698751aD2635E5c533
L2 Source Token (USDC) 0xF495b9DE9143e9CB81087880d089aA161Bb6B82B
L2 Destination Token (USDT) 0x352ad2db4b7695B2919e0926FF7659FEa16d7f5C

Tutorial

You can deploy and run the app locally, or reuse the contracts and app following the demo.

About

L2Bridge, Bridge2L

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 74.8%
  • Solidity 18.2%
  • JavaScript 5.9%
  • Other 1.1%