Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

documented commands to run rpc adapter tests locally #688

Merged
merged 3 commits into from
Mar 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions eth-rpc-adapter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,3 +160,28 @@ We still recommend reading through the [gas params](https://evmdocs.acala.networ

## For Production
For production deployment we can simply use [acala/eth-rpc-adapter](https://hub.docker.com/r/acala/eth-rpc-adapter/tags) directly. Remember **NOT** to turn on `local mode` or `rich mode`

## Run Tests Locally
- start local mandala node + subql stacks
```
cd ../evm-subql
yarn && yarn build
docker compose up
```

- start rpc adapter
```
rush update && rush build -t .
yarn start -l --subql http://localhost:3001
```

- feed deterministic txs (after this step there should be 22 blocks)
```
cd ../examples/waffle/dex/ && yarn test
cd ../e2e/ && yarn test
```

- run tests
```
SKIP_PUBLIC=true yarn mocha **/*.test.ts
```