Skip to content

mbakpur123/starkgate-contracts

 
 

Repository files navigation

Starkgate - StarkNet L1 Bridges

Overview

This repository contains the Cairo and Solidity code for the L1<>L2 bridges of StarkNet, as well as StarkNet's ERC20 token contract implementation that interacts with the bridges. You can read the documentation of the bridges here and the documentation of the general L1<>StarkNet messaging system here.

You can find the L1 addresses and L2 addresses for the deployed bridges on StarkNet Alpha on Goerli and on Mainnet here.

Note: The frontend of the bridges, can be found here.

If you are not familiar with Cairo, you can find more details about it here.

Main module

src/starkware/starknet/apps/starkgate: The Cairo and Solidity contracts of the bridge, StarkNet's ERC20 token contract and corresponding tests.

Running the tests

The root directory holds a dedicated Dockerfile, which automatically builds the project and runs the unit tests. You should have docker installed (see https://docs.docker.com/get-docker/).

Build the docker image:

> docker build --tag starkgate .

Alternatively, you can build the project and run the tests:

> ./build.sh
> cd build/Release
> ctest -V

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 51.8%
  • Solidity 23.1%
  • Cairo 12.9%
  • CMake 12.0%
  • Other 0.2%