Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 1.04 KB

README.md

File metadata and controls

22 lines (17 loc) · 1.04 KB

Starknet Bridge

starknet_bridge are the bridges that can be used by the appchains that will deployed using Starknet Madara stack

This repository contains the code for the L2<>L3 bridges that can be used to bridge funds between an appchain and Starknet. This is similar to starkgate which contains the bridge contracts between Ethereum and Starknet.

Architecture

  • token_bridge.cairo: The bridge that will be deployed on Starknet. Users can use this bridge to add tokens and deposit and withdraw funds.
  • withdrawal_limit/component.cairo: A component used to manage the withdrawal limits for token that have this feature enabled.

The bridge relies on the core messaging contract from piltover which is the Cairo version of the Starknet Core Contracts.

Build

To build the project run:

scarb build

Test

To run the testcases of the project run:

scarb test