Skip to content

0xSpaceShard/starknet-bridge-relayer-public

Repository files navigation

Starknet Bridge Relayer

Starknet Relay is a service that consumes Starknet withdrawals on L1. When the user bridges the tokens from L2 to L1, it is possible to automate the process of withdrawing the tokens on L1 by paying the gas fee on L2 to the wallet relayer. The relayer will detect that the user did the payment and then calls the withdrawal function when the message reaches L1

Development

Install

Install packages

yarn

Start development

Setup env

Duplicate the example.env file and rename it to .env

yarn start:dev

Access swagger UI

http://0.0.0.0:3000/api

Prometheus metrics

http://0.0.0.0:3000/metric

Get Gas cost

http://0.0.0.0:3000/api/v1/gas-cost/{timestamp}

Tests

Run unit tests

yarn test

Run e2e tests

  1. Start the services
cd e2e
  1. Start the services
make e2e-up
  1. Restore the database
make e2e-setup
  1. Run tests
make e2e-test

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •