@galacticcouncil/sdk 0.0.1-beta.10 → 0.0.1-beta.12

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 CHANGED
@@ -38,6 +38,7 @@ getPools(): PoolBase[]
38
38
  getAllAssets(): PoolAsset[]
39
39
  getAssetPairs(token: string): PoolAsset[]
40
40
  getAllPaths(tokenIn: string, tokenOut: string): Hop[][]
41
+ getBestSpotPrice(tokenIn: string, tokenOut: string): Amount
41
42
  getBestSell(tokenIn: string, tokenOut: string, amountIn: BigNumber | number | string): Trade
42
43
  getBestBuy(tokenIn: string, tokenOut: string, amountOut: BigNumber | number | string): Trade
43
44
  ```
@@ -49,14 +50,14 @@ For type signature visit [types.ts](src/types.ts)<br />
49
50
  ```typescript
50
51
  // Import
51
52
  import { ApiPromise, WsProvider } from '@polkadot/api';
52
- import { TradeRouter, PolkadotPoolService } from '@galacticcouncil/sdk';
53
+ import { TradeRouter, PolkadotApiPoolService } from '@galacticcouncil/sdk';
53
54
 
54
55
  // Initialize Polkadot API
55
56
  const wsProvider = new WsProvider('wss://rpc.basilisk.cloud');
56
57
  const api = await ApiPromise.create({ provider: wsProvider });
57
58
 
58
59
  // Initialize Router
59
- const poolService = new PolkadotPoolService(api);
60
+ const poolService = new PolkadotApiPoolService(api);
60
61
  const tradeRouter = new TradeRouter(poolService);
61
62
 
62
63
  // Do something
@@ -95,7 +96,7 @@ Component list and current status ⬇️
95
96
  | Polkadot | Client | 🧪 |
96
97
  | Capi | Client | ⏳ |
97
98
  | XYK | Pool | 🧪 |
98
- | LBP | Pool | |
99
+ | LBP | Pool | 🛠 |
99
100
  | Stable | Pool | ⏳ |
100
101
  | Omni | Pool | ⏳ |
101
102