-
Clone
$ git clone https://github.com/OffchainLabs/retryable-tx-panel
-
Set env vars:
$ cp .env.sample .env
-
In
.env
, add your infura key toNEXT_PUBLIC_INFURA_KEY
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.
-
Set up the Nitro node
-
Download and install Docker
-
Check out the Nitro repo
-
Run in nitro repo: (only the first time)
$ git submodule update --init --recursive
-
Run: (Make sure your Docker App is running)
$ ./test-node.bash --init
-
When the Nitro node is up and running you should see logs like
sequencer_1
andstaker-unsafe_1
in the terminal. This can take up to 10 minutes
-
-
Setup env files:
-
Run:
$ cp .e2e.env.sample .e2e.env
-
In the newly created file,
.e2e.env
, update yourNEXT_PUBLIC_INFURA_KEY
-
-
Run the retryables-panel locally on http://localhost:3000 with:
$ yarn dev
-
Run e2e tests
$ yarn e2e:run