Skip to content

Latest commit

 

History

History
112 lines (91 loc) · 2.78 KB

README.md

File metadata and controls

112 lines (91 loc) · 2.78 KB

@acala-network/bodhi.js

Some tools and SDKs related to Acala EVM.

Packages:

Getting Started

  • initialize submodules (only need to do once after git clone)
git submodule update --init --recursive
  • install all dependencies
rush update
  • build
## build all projects
rush build 

## build all the projects that @acala-network/eth-rpc-adapter depends on, and itself
rush build -t @acala-network/eth-rpc-adapter
  • run build when the file changes
## build and watch all projects
rush build:watch

## build and watch all the projects that @acala-network/eth-rpc-adapter depends on, and itself
rush build:watch -t @acala-network/eth-rpc-adapter
  • add pacakge
rush add -p <package> --all             # for all projects
cd <project> && rush add -p <package>   # for this project only

Run Tests

with docker

  • clean up
docker compose down -v
  • run tests
## build the bodhi-base image
docker build . -t bodhi-base -f docker/bodhi-base.Dockerfile

## run any test
docker compose up --abort-on-container-exit --exit-code-from=xxx --build -- xxx

where xxx ∈ {
  eth-providers-test,
  eth-rpc-adapter-test,
  waffle-examples-test,
  waffle-tutorials-test,
  hardhat-tutorials-test,
  truffle-tutorials-test,
}

## run all tests (not recommended since log will be too messy)
docker compose up

we can grep container logs by

docker compose logs --tail=0 --follow   # all logs
docker logs -f <container_id>           # logs for specific container

Docker Images

  • eth-rpc-adapoter
  • evm subquery

Documentation

Release Workflow

manual

rush publish -p --set-access-level public -n <paste_npm_token_here>

CI

first bump versions and commit

node scripts/bump-version.ts
git add .
git commit -m "bump v2.x.x"

then tag the commit and push

git tag -a v2.x.x -m "bump"
git push --follow-tags