💁 This repository holds contains several useful packages for the XRPL Bridge with Oraichain and is managed by the Oraichain Labs team.
Name | Description |
---|---|
@oraichain/xrpl-bridge-contracts-build | Storing production XRPL Bridge CW contract builds and a helper function to deploy them. |
@oraichain/xrpl-bridge-contracts-sdk | Storing production XRPL Bridge CW contract client and types in TypeScript to simplify contract interaction. |
@oraichain/xrpl-bridge-relayer | A program responsible for relaying packets between XRPL and Oraichain. |
You should install the following dependencies beforehand:
- NPM
- Yarn (Yarn Berry 4.x is recommended)
Checkout the repository and bootstrap the yarn workspace:
# Clone the repo.
git clone https://github.com/oraichain/xrpl-bridge-sdk
cd xrpl-bridge-sdk
yarn
If you want to change the build and sdk packages, you can follow our contract management pattern. Below are the commands we use to build the contract and generate types:
# build code:
cwtools build ../cw-xrpl-bridge/contracts/* -o packages/contracts-build/data
# build schema
cwtools build ../cw-xrpl-bridge/contracts/* -s
# gen code:
cwtools gents ../cw-xrpl-bridge/contracts/* -o packages/contracts-sdk/src
# gen doc:
yarn docs
# Run all tests
yarn test
# ES lint
yarn eslint
yarn build
yarn deploy
yarn patch-package @cosmjs/cosmwasm-stargate
For publishing onto NPM, you will need an credential key. Hence, it's best to let the github workflow do the work.
🛠 Built by Oraichain Labs — if you like our tools, please consider delegating to OWallet validators ⚛️
All packages are GPL 3.0 licensed.
AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED “AS IS”, AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND.
No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value.