rainbow-swap-sdk 1.1.14 → 1.1.15

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.
Files changed (2) hide show
  1. package/README.md +13 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -2,8 +2,12 @@
2
2
 
3
3
  This SDK is designed for building applications on top of [Rainbow Swap 🌈](https://github.com/0xblackbot/rainbow-swap) - The Next Gen DEX Aggregator on the TON blockchain 💎.
4
4
 
5
+ ---
6
+
5
7
  **We have plans to integrate commissions and share them with those who have integrated this SDK into their DApps.**
6
8
 
9
+ ---
10
+
7
11
  ### Installation
8
12
 
9
13
  To install the rainbow-swap-sdk, use the following npm command:
@@ -14,7 +18,14 @@ npm install rainbow-swap-sdk
14
18
  ### Integrate your dApp
15
19
 
16
20
  ```typescript
17
- import {getSwapMessages} from 'rainbow-swap-sdk';
21
+ import {
22
+ getAssetsRecord,
23
+ getIsRainbowWalletActive,
24
+ getBestRoute,
25
+ getIsActivationRequired,
26
+ getRainbowWalletActivationMessages,
27
+ getSwapMessages
28
+ } from 'rainbow-swap-sdk';
18
29
 
19
30
  // 1. On page load: fetch the list of available tokens
20
31
  const assetsRecord = await getAssetsRecord();
@@ -33,7 +44,7 @@ const params = {
33
44
  inputAssetAddress: 'ton', // TON
34
45
  outputAssetAddress: 'EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs' // USDT jetton master address
35
46
  };
36
- const bestRouteResponse = getBestRoute(params);
47
+ const bestRouteResponse = await getBestRoute(params);
37
48
 
38
49
  ...
39
50
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rainbow-swap-sdk",
3
- "version": "1.1.14",
3
+ "version": "1.1.15",
4
4
  "description": "An SDK for building applications on top of Rainbow Swap",
5
5
  "repository": "https://github.com/0xblackbot/rainbow-swap-sdk.git",
6
6
  "license": "Apache-2.0",