Some tools and SDKs related to Acala EVM.
Packages:
- 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
- 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
- eth-rpc-adapoter
- build locally:
docker build . -t eth-rpc-local -f eth-rpc-adapter/Dockerfile
- public docker images
- build locally:
- evm subquery
- build locally:
docker build . -t evm-subql-local -f evm-subql/Dockerfile
- public docker images
- build locally:
- This project is managed by Rushstack.
- Most of JsonRpc methods provided by eth-rpc-adapter are compatible with standard ETH JsonRpcs, for more details please checkout available RPCs.
- Most of the Apis of eth-providers is compatible with ethers.js providers. (TODO: add more details)
rush publish -p --set-access-level public -n <paste_npm_token_here>
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