@galacticcouncil/sdk 0.7.5 → 0.7.7

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.
@@ -1,4 +1,5 @@
1
1
  export declare const RUNTIME_DECIMALS = 18;
2
+ export declare const TRADEABLE_DEFAULT = 15;
2
3
  export declare const SYSTEM_ASSET_ID = "0";
3
4
  export declare const SYSTEM_ASSET_DECIMALS = 12;
4
5
  export declare const HYDRADX_PARACHAIN_ID = 2034;
@@ -17,5 +17,4 @@ export declare class PoolService implements IPoolService {
17
17
  private isDirectOmnipoolTrade;
18
18
  buildBuyTx(assetIn: string, assetOut: string, amountOut: BigNumber, maxAmountIn: BigNumber, route: Hop[]): Transaction;
19
19
  buildSellTx(assetIn: string, assetOut: string, amountIn: BigNumber, minAmountOut: BigNumber, route: Hop[]): Transaction;
20
- private buildRoute;
21
20
  }
@@ -0,0 +1,12 @@
1
+ import { Hop, PoolType } from '../types';
2
+ export declare function buildRoute(route: Hop[]): ({
3
+ pool: {
4
+ Stableswap: string | undefined;
5
+ };
6
+ assetIn: string;
7
+ assetOut: string;
8
+ } | {
9
+ pool: PoolType.XYK | PoolType.LBP | PoolType.Omni;
10
+ assetIn: string;
11
+ assetOut: string;
12
+ })[];
@@ -1,6 +1,7 @@
1
1
  export { CachingPoolService } from './CachingPoolService';
2
- export { PoolService } from './PoolService';
3
2
  export { PoolFactory } from './PoolFactory';
3
+ export { PoolService } from './PoolService';
4
+ export * from './PoolUtils';
4
5
  export { XykPool } from './xyk/XykPool';
5
6
  export { XykMath } from './xyk/XykMath';
6
7
  export { OmniPool } from './omni/OmniPool';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacticcouncil/sdk",
3
- "version": "0.7.5",
3
+ "version": "0.7.7",
4
4
  "description": "Galactic off-chain routing & optimization of orders across pools for best price execution",
5
5
  "author": "GalacticCouncil",
6
6
  "repository": {