.
βββ contracts
βΒ Β βββ bridge
βΒ Β βββ deprecated
βΒ Β βββ tokens
βΒ Β βββ utils
βΒ Β βββ verify
βββ packages
βββ addresses
βββ assets
Make sure you are using Yarn v1.22.10. To install using brew:
brew install [email protected]
Then install dependencies
yarn install
.env
example:
MAINNET_RPC_URL="https://eth-mainnet.alchemyapi.io/v2/your-api-key"
GOERLI_RPC_URL="https://eth-rinkeby.alchemyapi.io/v2/your-api-key"
PRIVATE_KEY=your private key
To build all packages:
yarn build
To build a specific package:
PKG=@darwinia/contracts-bridge yarn build
To build all contracts packages:
yarn build:contracts
Clean all packages:
yarn clean
Clean a specific package
PKG=@darwinia/contracts-bridge yarn clean
To re-build (clean & build) all packages:
yarn rebuild
To re-build (clean & build) a specific package & it's deps:
PKG=@darwinia/contracts-bridge yarn rebuild