Skip to content

Laguna-Chain/laguna-rpc-adapter

This branch is 2 commits ahead of, 311 commits behind AcalaNetwork/bodhi.js:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

822cc64 · Jan 9, 2023
Oct 13, 2022
Nov 10, 2021
Oct 14, 2022
Oct 10, 2022
Oct 10, 2022
Oct 14, 2022
Oct 14, 2022
Oct 14, 2022
Oct 6, 2022
Oct 6, 2022
Sep 22, 2022
Mar 4, 2022
Nov 10, 2021
Mar 4, 2022
Mar 7, 2022
Jul 8, 2022
Oct 20, 2021
Sep 28, 2022
Jan 9, 2023
Sep 29, 2022
Oct 6, 2022
Oct 10, 2022
Jul 12, 2022

Repository files navigation

@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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 96.0%
  • Dockerfile 2.1%
  • JavaScript 1.6%
  • Shell 0.3%