Skip to content

Latest commit

 

History

History
57 lines (48 loc) · 1003 Bytes

README.md

File metadata and controls

57 lines (48 loc) · 1003 Bytes

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