@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.
package/build/types/consts.d.ts
CHANGED
|
@@ -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';
|