https://github.com/oraidex/oraidex-sdk
Oraichain OraiDEX & Orderbook SDK
https://github.com/oraidex/oraidex-sdk
cosmwasm ibc typescript
Last synced: 5 months ago
JSON representation
Oraichain OraiDEX & Orderbook SDK
- Host: GitHub
- URL: https://github.com/oraidex/oraidex-sdk
- Owner: oraidex
- License: other
- Created: 2023-05-10T03:18:53.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-08-22T06:55:58.000Z (11 months ago)
- Last Synced: 2025-08-22T08:47:32.302Z (11 months ago)
- Topics: cosmwasm, ibc, typescript
- Language: TypeScript
- Homepage: https://oraichain.github.io/oraidex-sdk/
- Size: 32.1 MB
- Stars: 9
- Watchers: 5
- Forks: 10
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Oraichain Orderbook SDK
## Generate code and docs
```bash
# build code:
cwtools build ../oraiswap/contracts/* ../oraidex-listing-contract ../co-harvest-contracts/contracts/* ../cw20-staking/contracts/* -o packages/contracts-build/data
# gen code:
cwtools gents ../oraiswap/contracts/* ../oraidex-listing-contract ../co-harvest-contracts/contracts/* ../cw20-staking/contracts/* -o packages/contracts-sdk/src
# gen doc:
yarn docs
# update comments:
git apply patches/contracts-sdk.patch
# edit contracts-sdk
git diff packages/contracts-sdk > patches/contracts-sdk.patch
# rollback
git checkout packages/contracts-sdk
```
## Run sample with CosmwasmSimulate
```bash
NODE_ENV=test yarn --cwd packages/market-maker start
```
## Protogen for the universal swap memo format
```bash
# gen for ts
protoc --plugin=./node_modules/.bin/protoc-gen-ts_proto --ts_proto_opt=esModuleInterop=true --ts_proto_out . --proto_path ../oraiswap ../oraiswap/packages/oraiswap/src/universal_swap_memo.proto && mv packages/oraiswap/src/universal_swap_memo.ts packages/universal-swap/src/proto/
# gen for rust
```