rainbow-swap-sdk
Advanced tools
Comparing version 1.1.14 to 1.1.15
{ | ||
"name": "rainbow-swap-sdk", | ||
"version": "1.1.14", | ||
"version": "1.1.15", | ||
"description": "An SDK for building applications on top of Rainbow Swap", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/0xblackbot/rainbow-swap-sdk.git", |
@@ -5,4 +5,8 @@ # Rainbow Swap 🌈 SDK | ||
--- | ||
**We have plans to integrate commissions and share them with those who have integrated this SDK into their DApps.** | ||
--- | ||
### Installation | ||
@@ -18,3 +22,10 @@ | ||
```typescript | ||
import {getSwapMessages} from 'rainbow-swap-sdk'; | ||
import { | ||
getAssetsRecord, | ||
getIsRainbowWalletActive, | ||
getBestRoute, | ||
getIsActivationRequired, | ||
getRainbowWalletActivationMessages, | ||
getSwapMessages | ||
} from 'rainbow-swap-sdk'; | ||
@@ -38,3 +49,3 @@ // 1. On page load: fetch the list of available tokens | ||
}; | ||
const bestRouteResponse = getBestRoute(params); | ||
const bestRouteResponse = await getBestRoute(params); | ||
@@ -41,0 +52,0 @@ ... |
62119
81