@xchainjs/xchain-thorchain-query 0.2.3 → 0.2.5
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/lib/index.esm.js +421 -310
- package/lib/index.js +545 -411
- package/lib/types.d.ts +2 -0
- package/lib/utils/const.d.ts +24 -0
- package/lib/utils/index.d.ts +1 -0
- package/package.json +1 -19
package/lib/types.d.ts
CHANGED
|
@@ -204,6 +204,7 @@ export declare type EstimateWithdrawSaver = {
|
|
|
204
204
|
estimatedWaitTime: number;
|
|
205
205
|
slipBasisPoints: number;
|
|
206
206
|
dustAmount: CryptoAmount;
|
|
207
|
+
errors: string[];
|
|
207
208
|
};
|
|
208
209
|
export declare type SaverFees = {
|
|
209
210
|
affiliate: CryptoAmount;
|
|
@@ -217,6 +218,7 @@ export declare type SaversPosition = {
|
|
|
217
218
|
percentageGrowth: number;
|
|
218
219
|
ageInYears: number;
|
|
219
220
|
ageInDays: number;
|
|
221
|
+
errors: string[];
|
|
220
222
|
};
|
|
221
223
|
export declare type SaversWithdraw = {
|
|
222
224
|
height?: number;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Asset } from '@xchainjs/xchain-util';
|
|
2
|
+
export declare const AssetBNB: Asset;
|
|
3
|
+
export declare const AssetAVAX: Asset;
|
|
4
|
+
export declare const AssetBTC: Asset;
|
|
5
|
+
export declare const AssetBCH: Asset;
|
|
6
|
+
export declare const AssetETH: Asset;
|
|
7
|
+
export declare const AssetDOGE: Asset;
|
|
8
|
+
export declare const AssetLTC: Asset;
|
|
9
|
+
export declare const AssetATOM: Asset;
|
|
10
|
+
export declare const AssetMAYA: Asset;
|
|
11
|
+
export declare const AssetBSC: Asset;
|
|
12
|
+
export declare const AssetRuneNative: Asset;
|
|
13
|
+
export declare const BNBChain = "BNB";
|
|
14
|
+
export declare const BTCChain = "BTC";
|
|
15
|
+
export declare const BCHChain = "BCH";
|
|
16
|
+
export declare const ETHChain = "ETH";
|
|
17
|
+
export declare const GAIAChain = "GAIA";
|
|
18
|
+
export declare const DOGEChain = "DOGE";
|
|
19
|
+
export declare const LTCChain = "LTC";
|
|
20
|
+
export declare const AVAXChain = "AVAX";
|
|
21
|
+
export declare const MAYAChain = "MAYA";
|
|
22
|
+
export declare const BSCChain = "BSC";
|
|
23
|
+
export declare const THORChain = "THOR";
|
|
24
|
+
export declare const isAssetRuneNative: (asset: Asset) => boolean;
|
package/lib/utils/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xchainjs/xchain-thorchain-query",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Thorchain query module that is resposible for estimating swap calculations and add/remove liquidity for thorchain ",
|
|
6
6
|
"keywords": [
|
|
@@ -33,17 +33,8 @@
|
|
|
33
33
|
"postversion": "git push --follow-tags"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@xchainjs/xchain-avax": "^0.1.5",
|
|
37
|
-
"@xchainjs/xchain-binance": "^5.6.7",
|
|
38
|
-
"@xchainjs/xchain-bitcoin": "^0.21.2",
|
|
39
|
-
"@xchainjs/xchain-bitcoincash": "^0.15.9",
|
|
40
36
|
"@xchainjs/xchain-client": "^0.13.7",
|
|
41
|
-
"@xchainjs/xchain-cosmos": "^0.20.8",
|
|
42
|
-
"@xchainjs/xchain-doge": "^0.5.1",
|
|
43
|
-
"@xchainjs/xchain-ethereum": "^0.27.7",
|
|
44
|
-
"@xchainjs/xchain-litecoin": "^0.11.2",
|
|
45
37
|
"@xchainjs/xchain-midgard": "^0.4.3",
|
|
46
|
-
"@xchainjs/xchain-thorchain": "^0.27.9",
|
|
47
38
|
"@xchainjs/xchain-thornode": "^0.2.2",
|
|
48
39
|
"@xchainjs/xchain-util": "^0.12.0",
|
|
49
40
|
"axios": "^0.25.0",
|
|
@@ -52,17 +43,8 @@
|
|
|
52
43
|
"rimraf": "~3.0.2"
|
|
53
44
|
},
|
|
54
45
|
"peerDependencies": {
|
|
55
|
-
"@xchainjs/xchain-avax": "^0.1.5",
|
|
56
|
-
"@xchainjs/xchain-binance": "^5.6.7",
|
|
57
|
-
"@xchainjs/xchain-bitcoin": "^0.21.2",
|
|
58
|
-
"@xchainjs/xchain-bitcoincash": "^0.15.9",
|
|
59
46
|
"@xchainjs/xchain-client": "^0.13.7",
|
|
60
|
-
"@xchainjs/xchain-cosmos": "^0.20.8",
|
|
61
|
-
"@xchainjs/xchain-doge": "^0.5.11",
|
|
62
|
-
"@xchainjs/xchain-ethereum": "^0.27.7",
|
|
63
|
-
"@xchainjs/xchain-litecoin": "^0.11.2",
|
|
64
47
|
"@xchainjs/xchain-midgard": "^0.4.3",
|
|
65
|
-
"@xchainjs/xchain-thorchain": "^0.27.9",
|
|
66
48
|
"@xchainjs/xchain-thornode": "^0.2.2",
|
|
67
49
|
"@xchainjs/xchain-util": "^0.12.0",
|
|
68
50
|
"axios": "^0.25.0",
|