Skip to content

AcalaNetwork/bodhi.js

Folders and files

NameName
Last commit message
Last commit date
Sep 20, 2023
Apr 18, 2023
Dec 15, 2023
Sep 4, 2023
May 18, 2023
Feb 7, 2024
Feb 7, 2024
Feb 21, 2024
Apr 18, 2023
Nov 29, 2023
Nov 29, 2023
Apr 18, 2023
May 3, 2023
Apr 28, 2023
Sep 4, 2023
Sep 28, 2022
Nov 24, 2020
Aug 31, 2023
Feb 7, 2024
Dec 28, 2023
May 10, 2023
May 10, 2023
Sep 1, 2023
May 10, 2023
Jan 24, 2024

Repository files navigation

Acala EVM+ SDKs

These are some tools and SDKs related to Acala EVM+. It also contains some examples about how to interact with EVM+ with these tools.

Packages:

Getting Started

  • initialize submodules (only need to do once after git clone)
git submodule update --init --recursive
  • install all dependencies
yarn
  • build
yarn build
  • run tests
yarn test

e2e-tests

# build the bodhi-runner image
docker build . -t bodhi-runner -f docker/bodhi-runner.Dockerfile
yarn e2e:eth-providers
yarn e2e:eth-rpc-adapter
yarn e2e:waffle
yarn e2e:hardhat
yarn e2e:truffle

Run Tests

with docker

  • clean up
docker compose down -v
  • run tests
## build the bodhi-runner image
docker build . -t bodhi-runner -f docker/bodhi-runner.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,
  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
    • build locally: docker build . -t eth-rpc-local -f packages/eth-rpc-adapter/Dockerfile
    • public docker images
  • evm subquery
    • build locally: docker build . -t evm-subql-local -f packages/evm-subql/Dockerfile
    • public docker images

More References

CI

To release new NPN packages then first bump versions and commit. Use prerelease for beta releases

yarn bump <patch, minor, major, prerelease>
git add .
git commit -m "bump v2.x.x"

To release docker images then tag the commit and push. Use manual workflow_dispatch for beta releasees

git tag v2.x.x
git push --atomic origin master v2.x.x