@sodax/sdk 1.3.0-beta → 1.3.1-beta-rc1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +62 -66
- package/dist/index.cjs +9200 -259
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +9064 -162
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,62 +1,6 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Table of Contents
|
|
6
|
-
|
|
7
|
-
### Features
|
|
8
|
-
|
|
9
|
-
- [Swaps (Solver / Intents)](./docs/SWAPS.md) - Cross-chain intent-based swaps
|
|
10
|
-
- EVM (Arbitrum, Avalanche, Base, BSC, Optimism, Polygon, Sonic, HyperEVM, Lightlink, Ethereum, Redbelly, Kaia) ✅
|
|
11
|
-
- Sui ✅
|
|
12
|
-
- Stellar ✅
|
|
13
|
-
- ICON ✅
|
|
14
|
-
- Solana ✅
|
|
15
|
-
- Injective ✅
|
|
16
|
-
- [Money Market](./docs/MONEY_MARKET.md) - Cross-chain lending and borrowing
|
|
17
|
-
- EVM (Arbitrum, Avalanche, Base, BSC, Optimism, Polygon, Sonic, HyperEVM, Lightlink, Ethereum, Redbelly, Kaia) ✅
|
|
18
|
-
- Sui ✅
|
|
19
|
-
- Stellar ✅
|
|
20
|
-
- ICON ✅
|
|
21
|
-
- Solana ✅
|
|
22
|
-
- Injective ✅
|
|
23
|
-
- [Bridge](./docs/BRIDGE.md) - Cross-chain token bridging
|
|
24
|
-
- EVM (Arbitrum, Avalanche, Base, BSC, Optimism, Polygon, Sonic, HyperEVM, Lightlink, Ethereum, Redbelly, Kaia) ✅
|
|
25
|
-
- Sui ✅
|
|
26
|
-
- Stellar ✅
|
|
27
|
-
- ICON ✅
|
|
28
|
-
- Solana ✅
|
|
29
|
-
- Injective ✅
|
|
30
|
-
- [Migration](./docs/MIGRATION.md) - Token migration (ICX, bnUSD, BALN)
|
|
31
|
-
- [Staking](./docs/STAKING.md) - SODA token staking
|
|
32
|
-
- EVM (Arbitrum, Avalanche, Base, BSC, Optimism, Polygon, Sonic, HyperEVM, Lightlink, Ethereum, Redbelly, Kaia) ✅
|
|
33
|
-
- Sui ✅
|
|
34
|
-
- Stellar ✅
|
|
35
|
-
- ICON ✅
|
|
36
|
-
- Solana ✅
|
|
37
|
-
- Injective ✅
|
|
38
|
-
|
|
39
|
-
### API Endpoints
|
|
40
|
-
|
|
41
|
-
- [Intent Solver API Endpoints](./docs/SOLVER_API_ENDPOINTS.md) - Solver API endpoint documentation
|
|
42
|
-
- [Relayer API Endpoints](./docs/RELAYER_API_ENDPOINTS.md) - Relayer API endpoint documentation
|
|
43
|
-
|
|
44
|
-
### Guides
|
|
45
|
-
|
|
46
|
-
- [Configure SDK](./docs/CONFIGURE_SDK.md) - Comprehensive guide for configuring the SDK
|
|
47
|
-
- [Monetize SDK](./docs/MONETIZE_SDK.md) - Configure fees and monetize your SDK integration
|
|
48
|
-
- [Make a Swap](./docs/HOW_TO_MAKE_A_SWAP.md) - Step by step guide on how to make a swap
|
|
49
|
-
- [Create a Spoke Provider](./docs/HOW_TO_CREATE_A_SPOKE_PROVIDER.md) - Comprehensive guide for creating spoke providers
|
|
50
|
-
- [Estimate Gas for Raw Transactions](./docs/ESTIMATE_GAS.md) - Estimate transaction gas for raw transaction payloads.
|
|
51
|
-
- [Wallet Providers](./docs/WALLET_PROVIDERS.md) - Wallet provider interfaces and implementation guide
|
|
52
|
-
- [Stellar Trustline Requirements](./docs/STELLAR_TRUSTLINE.md) - Guide for handling Stellar trustlines across all operations
|
|
53
|
-
|
|
54
|
-
### Miscellaneous
|
|
55
|
-
|
|
56
|
-
- [Intent Relay API](./docs/INTENT_RELAY_API.md) - Intent relay API internally used to relay cross-chain messages.
|
|
57
|
-
- [Backend API](./docs/BACKEND_API.md) - Sodax Backend API offering access to Intent, Swap, and Money Market data.
|
|
58
|
-
|
|
59
|
-
## Development
|
|
1
|
+
# @sodax/sdk
|
|
2
|
+
|
|
3
|
+
## Get started
|
|
60
4
|
|
|
61
5
|
### Installation
|
|
62
6
|
|
|
@@ -79,9 +23,7 @@ Package can be locally installed by following this steps:
|
|
|
79
23
|
2. `cd` into repository folder location.
|
|
80
24
|
3. Execute `pnpm install` command in your CLI to install dependencies.
|
|
81
25
|
4. Execute `pnpm run build` to build the packages.
|
|
82
|
-
5. In your app repository `package.json` file, define dependency named `"@sodax/sdk"` under `"dependencies"`.
|
|
83
|
-
Instead of version define absolute path to your SDK repository `"file:<sdk-repository-path>"` (e.g. `"file:/Users/dev/.../operation-liquidity-layer/packages/sdk"`).
|
|
84
|
-
Full example: `"@sodax/sdk": "file:/Users/dev/operation-liquidity-layer/sdk-new/packages/sdk"`.
|
|
26
|
+
5. In your app repository `package.json` file, 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"`.
|
|
85
27
|
|
|
86
28
|
### Local Development
|
|
87
29
|
|
|
@@ -94,9 +36,59 @@ How to setup local development
|
|
|
94
36
|
1. Do not forget to export TS files in same folder `index.ts`.
|
|
95
37
|
2. Always import files using `.js` postfix.
|
|
96
38
|
|
|
39
|
+
### Functional Modules inside the SDK
|
|
40
|
+
|
|
41
|
+
<a href="https://docs.sodax.com/developers/packages/sdk/swaps" class="button secondary" data-icon="rotate">Swaps (Solver)</a> - Cross-chain intent-based swaps
|
|
42
|
+
|
|
43
|
+
* EVM (Arbitrum, Avalanche, Base, BSC, Optimism, Polygon, Sonic, HyperEVM, Lightlink) ✅
|
|
44
|
+
* Sui ✅
|
|
45
|
+
* Stellar ✅
|
|
46
|
+
* ICON ✅
|
|
47
|
+
* Solana ✅
|
|
48
|
+
* Injective ✅
|
|
49
|
+
|
|
50
|
+
<a href="https://docs.sodax.com/developers/packages/sdk/money_market" class="button secondary" data-icon="sack-dollar">Lend / Borrow (Money Market)</a>- Cross-chain lending and borrowing
|
|
51
|
+
|
|
52
|
+
* EVM (Arbitrum, Avalanche, Base, BSC, Optimism, Polygon, Sonic, HyperEVM, Lightlink) ✅
|
|
53
|
+
* Sui ✅
|
|
54
|
+
* Stellar ✅
|
|
55
|
+
* ICON ✅
|
|
56
|
+
* Solana ✅
|
|
57
|
+
* Injective ✅
|
|
58
|
+
|
|
59
|
+
<a href="https://docs.sodax.com/developers/packages/sdk/bridge" class="button secondary" data-icon="bridge-suspension">Bridge</a>- Cross-chain token bridging
|
|
60
|
+
|
|
61
|
+
* EVM (Arbitrum, Avalanche, Base, BSC, Optimism, Polygon, Sonic, HyperEVM, Lightlink) ✅
|
|
62
|
+
* Sui ✅
|
|
63
|
+
* Stellar ✅
|
|
64
|
+
* ICON ✅
|
|
65
|
+
* Solana ✅
|
|
66
|
+
* Injective ✅
|
|
67
|
+
|
|
68
|
+
<a href="https://docs.sodax.com/developers/packages/sdk/migration" class="button secondary" data-icon="truck">Migration</a>- Token migration (ICX, bnUSD, BALN)
|
|
69
|
+
|
|
70
|
+
<a href="https://docs.sodax.com/developers/packages/sdk/staking" class="button secondary" data-icon="seedling">Staking</a>- SODA token staking
|
|
71
|
+
|
|
72
|
+
* EVM (Arbitrum, Avalanche, Base, BSC, Optimism, Polygon, Sonic, HyperEVM, Lightlink) ✅
|
|
73
|
+
* Sui ✅
|
|
74
|
+
* Stellar ✅
|
|
75
|
+
* ICON ✅
|
|
76
|
+
* Solana ✅
|
|
77
|
+
* Injective ✅
|
|
78
|
+
|
|
79
|
+
### Tooling Modules inside the SDK
|
|
80
|
+
|
|
81
|
+
<a href="https://docs.sodax.com/developers/packages/sdk/backend_api" class="button secondary" data-icon="plug">Backend API</a>- Solver API endpoint documentation
|
|
82
|
+
|
|
83
|
+
<a href="https://docs.sodax.com/developers/packages/sdk/intent_relay_api" class="button secondary" data-icon="envelope">Intent Relay API</a>- Relayer API endpoint documentation
|
|
84
|
+
|
|
85
|
+
***
|
|
86
|
+
|
|
97
87
|
## Contributing
|
|
98
88
|
|
|
99
|
-
We welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) for details.
|
|
89
|
+
We welcome contributions! Please see our [Contributing Guide](https://github.com/icon-project/sodax-document/blob/main/developers/packages/sdk/CONTRIBUTING.md) for details.
|
|
90
|
+
|
|
91
|
+
***
|
|
100
92
|
|
|
101
93
|
## Development Commands
|
|
102
94
|
|
|
@@ -120,11 +112,15 @@ pnpm pretty
|
|
|
120
112
|
pnpm lint
|
|
121
113
|
```
|
|
122
114
|
|
|
115
|
+
***
|
|
116
|
+
|
|
123
117
|
## License
|
|
124
118
|
|
|
125
|
-
[MIT](LICENSE)
|
|
119
|
+
* [MIT](https://github.com/icon-project/sodax-document/blob/main/developers/packages/sdk/LICENSE/README.md)
|
|
120
|
+
|
|
121
|
+
***
|
|
126
122
|
|
|
127
123
|
## Support
|
|
128
124
|
|
|
129
|
-
|
|
130
|
-
|
|
125
|
+
* [GitHub Issues](https://github.com/icon-project/sodax-frontend/issues)
|
|
126
|
+
* [Discord Community](https://discord.gg/xM2Nh4S6vN)
|