💁 This repository holds contains several useful packages for the TON Bridge with Oraichain and is managed by the Oraichain Labs team.
Name | Description |
---|---|
@oraichain/tonbridge-contracts-build | Storing production XRPL Bridge CW contract builds and a helper function to deploy them. |
@oraichain/tonbridge-contracts-sdk | Storing production XRPL Bridge CW contract client and types in TypeScript to simplify contract interaction. |
@oraichain/contracts-demo | A package responsible for TON lite client verification scripts and end-to-end contract testing. |
@oraichain/tonbridge-utils | A utility package for parsing TON data. |
@oraichain/tonbridge-sdk | The main SDK that supports applications create TON bridge and TON universal swaps as easy as possible. |
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/tonbridge-sdk
cd tonbridge-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 ../tonbridge-cw-contracts/contracts/* -o packages/contracts-build/data
# build schema
cwtools build ../tonbridge-cw-contracts/contracts/* -s
# gen code:
cwtools gents ../tonbridge-cw-contracts/contracts/* -o packages/contracts-sdk/src
# gen doc:
yarn docs
# Run all tests
yarn test
yarn build
yarn deploy
yarn patch-package @cosmjs/cosmwasm-stargate
yarn workspace @oraichain/tonbridge-sdk add @oraichain/common-contracts-sdk
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.