Skip to content

OffchainLabs/retryable-tx-panel

Repository files navigation

Arbitrum Retryable Dashboard

Run Locally

  1. Clone

    $ git clone https://github.com/OffchainLabs/retryable-tx-panel
  2. Set env vars:

    $ cp .env.sample .env
  3. In .env, add your infura key to NEXT_PUBLIC_INFURA_KEY

Available Scripts

In the project directory, you can run:

$ yarn dev

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

Run End-to-End (E2E) Tests

  1. Set up the Nitro node

    1. Download and install Docker

    2. Check out the Nitro repo

    3. Run in nitro repo: (only the first time)

      $ git submodule update --init --recursive
    4. Run: (Make sure your Docker App is running)

      $ ./test-node.bash --init
    5. When the Nitro node is up and running you should see logs like sequencer_1 and staker-unsafe_1 in the terminal. This can take up to 10 minutes

  2. Setup env files:

    1. Run:

      $ cp .e2e.env.sample .e2e.env
    2. In the newly created file, .e2e.env, update your NEXT_PUBLIC_INFURA_KEY

  3. Run the retryables-panel locally on http://localhost:3000 with:

    $ yarn dev
  4. Run e2e tests

    $ yarn e2e:run