@sodax/sdk
v1.5.4-beta
Published
Sodax SDK
Maintainers
Readme
@sodax/sdk
Get started
Installation
# Using npm
npm install @sodax/sdk
# Using yarn
yarn add @sodax/sdk
# Using pnpm
pnpm add @sodax/sdkLocal Installation
Package can be locally installed by following this steps:
- Clone this repository to your local machine.
cdinto repository folder location.- Execute
pnpm installcommand in your CLI to install dependencies. - Execute
pnpm run buildto build the packages. - In your app repository
package.jsonfile, define dependency named"@sodax/sdk"under"dependencies". Instead of version define absolute path to your SDK repository"file:<sdk-repository-path>"(e.g."file:/Users/dev/.../operation-liquidity-layer/packages/sdk"). Full example:"@sodax/sdk": "file:/Users/dev/operation-liquidity-layer/sdk-new/packages/sdk".
Local Development
How to setup local development
- Clone repository.
- Make sure you have Node.js v18+ and corresponding npm installed on your system.
- Execute
pnpm installcommand (from root of the project) in your CLI to install dependencies. - Make code changes.
- Do not forget to export TS files in same folder
index.ts. - Always import files using
.jspostfix.
- Do not forget to export TS files in same folder
Functional Modules inside the SDK
Swaps (Solver) - Cross-chain intent-based swaps
- EVM (Arbitrum, Avalanche, Base, BSC, Optimism, Polygon, Sonic, HyperEVM, Lightlink) ✅
- Sui ✅
- Stellar ✅
- ICON ✅
- Solana ✅
- Injective ✅
Lend / Borrow (Money Market)- Cross-chain lending and borrowing
- EVM (Arbitrum, Avalanche, Base, BSC, Optimism, Polygon, Sonic, HyperEVM, Lightlink) ✅
- Sui ✅
- Stellar ✅
- ICON ✅
- Solana ✅
- Injective ✅
Bridge- Cross-chain token bridging
- EVM (Arbitrum, Avalanche, Base, BSC, Optimism, Polygon, Sonic, HyperEVM, Lightlink) ✅
- Sui ✅
- Stellar ✅
- ICON ✅
- Solana ✅
- Injective ✅
Migration- Token migration (ICX, bnUSD, BALN)
Staking- SODA token staking
- EVM (Arbitrum, Avalanche, Base, BSC, Optimism, Polygon, Sonic, HyperEVM, Lightlink) ✅
- Sui ✅
- Stellar ✅
- ICON ✅
- Solana ✅
- Injective ✅
Tooling Modules inside the SDK
Backend API- Solver API endpoint documentation
Intent Relay API- Relayer API endpoint documentation
Contributing
We welcome contributions! Please see our Contributing Guide for details.
Development Commands
# Install dependencies
pnpm install
# Build the package
pnpm build
# Run in development mode
pnpm dev
# Run type checking
pnpm checkTs
# Format code
pnpm pretty
# Lint code
pnpm lint