@proton/wrap-constants 0.0.51 → 0.0.54
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/dist/parsers/currency.d.ts +100 -0
- package/dist/parsers/pool.d.ts +35 -1
- package/dist/wrap-constants.cjs.development.js +7 -0
- package/dist/wrap-constants.cjs.development.js.map +1 -1
- package/dist/wrap-constants.cjs.production.min.js +1 -1
- package/dist/wrap-constants.cjs.production.min.js.map +1 -1
- package/dist/wrap-constants.esm.js +7 -1
- package/dist/wrap-constants.esm.js.map +1 -1
- package/package.json +3 -3
- package/src/parsers/currency.ts +59 -1
- package/src/parsers/pool.ts +30 -2
- package/dist/pools.d.ts +0 -31
- package/src/pools.ts +0 -26
package/dist/pools.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Coin } from "./coins";
|
|
2
|
-
import { ExtendedAsset } from "./parsers";
|
|
3
|
-
export interface Pool {
|
|
4
|
-
lt_symbol: string;
|
|
5
|
-
creator: string;
|
|
6
|
-
memo: string;
|
|
7
|
-
pool1: ExtendedToken;
|
|
8
|
-
pool2: ExtendedToken;
|
|
9
|
-
hash: string;
|
|
10
|
-
fee: {
|
|
11
|
-
exchange_fee: number;
|
|
12
|
-
add_liquidity_fee: number;
|
|
13
|
-
remove_liquidity_fee: number;
|
|
14
|
-
};
|
|
15
|
-
liquidityUsd?: number;
|
|
16
|
-
}
|
|
17
|
-
export declare type ExtendedToken = Coin & ExtendedAsset & {
|
|
18
|
-
key: string;
|
|
19
|
-
};
|
|
20
|
-
export declare type PoolTable = {
|
|
21
|
-
pool1: ExtendedToken & {
|
|
22
|
-
rate: number;
|
|
23
|
-
};
|
|
24
|
-
pool2: ExtendedToken & {
|
|
25
|
-
rate: number;
|
|
26
|
-
};
|
|
27
|
-
path: {
|
|
28
|
-
data: Pool;
|
|
29
|
-
}[];
|
|
30
|
-
getPathString: () => string;
|
|
31
|
-
} | undefined;
|
package/src/pools.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Coin } from "./coins"
|
|
2
|
-
import { ExtendedAsset } from "./parsers"
|
|
3
|
-
|
|
4
|
-
export interface Pool {
|
|
5
|
-
lt_symbol: string;
|
|
6
|
-
creator: string;
|
|
7
|
-
memo: string;
|
|
8
|
-
pool1: ExtendedToken;
|
|
9
|
-
pool2: ExtendedToken;
|
|
10
|
-
hash: string;
|
|
11
|
-
fee: {
|
|
12
|
-
exchange_fee: number;
|
|
13
|
-
add_liquidity_fee: number;
|
|
14
|
-
remove_liquidity_fee: number;
|
|
15
|
-
};
|
|
16
|
-
liquidityUsd?: number;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export type ExtendedToken = Coin & ExtendedAsset & { key: string; }
|
|
20
|
-
|
|
21
|
-
export type PoolTable = {
|
|
22
|
-
pool1: ExtendedToken & { rate: number; };
|
|
23
|
-
pool2: ExtendedToken & { rate: number; };
|
|
24
|
-
path: { data: Pool }[];
|
|
25
|
-
getPathString: () => string;
|
|
26
|
-
} | undefined
|