@galacticcouncil/sdk 0.1.0 → 0.2.1

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
@@ -57,14 +57,14 @@ For type signature visit [types.ts](src/types.ts)<br />
57
57
  ```typescript
58
58
  // Import
59
59
  import { ApiPromise, WsProvider } from '@polkadot/api';
60
- import { TradeRouter, PolkadotApiPoolService } from '@galacticcouncil/sdk';
60
+ import { TradeRouter, PoolService } from '@galacticcouncil/sdk';
61
61
 
62
62
  // Initialize Polkadot API
63
63
  const wsProvider = new WsProvider('wss://rpc.basilisk.cloud');
64
64
  const api = await ApiPromise.create({ provider: wsProvider });
65
65
 
66
66
  // Initialize Trade Router
67
- const poolService = new PolkadotApiPoolService(api);
67
+ const poolService = new PoolService(api);
68
68
  const tradeRouter = new TradeRouter(poolService, { includeOnly: [PoolType.XYK] });
69
69
 
70
70
  // Do something