@shapeshiftoss/types 2.9.1 → 2.11.0
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/base.d.ts +6 -9
- package/dist/base.js +1 -0
- package/package.json +1 -1
package/dist/base.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HDWallet } from '@shapeshiftoss/hdwallet-core';
|
|
2
|
-
import {
|
|
2
|
+
import { QuoteFeeData, SignTxInput } from './chain-adapters';
|
|
3
3
|
/** Common */
|
|
4
4
|
export declare type BIP44Params = {
|
|
5
5
|
purpose: number;
|
|
@@ -38,8 +38,10 @@ export declare enum AssetDataSource {
|
|
|
38
38
|
YearnFinance = "yearnfinance"
|
|
39
39
|
}
|
|
40
40
|
declare type AbstractAsset = {
|
|
41
|
-
|
|
41
|
+
assetId: string;
|
|
42
42
|
caip2: string;
|
|
43
|
+
caip19: string;
|
|
44
|
+
chainId: string;
|
|
43
45
|
chain: ChainTypes;
|
|
44
46
|
description?: string;
|
|
45
47
|
isTrustedDescription?: boolean;
|
|
@@ -70,7 +72,8 @@ export declare type BaseAsset = AbstractAsset & {
|
|
|
70
72
|
export declare type Asset = AbstractAsset & Partial<TokenAssetFields>;
|
|
71
73
|
export declare enum SwapperType {
|
|
72
74
|
Zrx = "0x",
|
|
73
|
-
Thorchain = "Thorchain"
|
|
75
|
+
Thorchain = "Thorchain",
|
|
76
|
+
Test = "Test"
|
|
74
77
|
}
|
|
75
78
|
export declare type SwapSource = {
|
|
76
79
|
name: string;
|
|
@@ -170,10 +173,4 @@ export declare type ApproveInfiniteInput<C extends ChainTypes, S extends Swapper
|
|
|
170
173
|
quote: Quote<C, S>;
|
|
171
174
|
wallet: HDWallet;
|
|
172
175
|
};
|
|
173
|
-
export declare type SendMaxAmountInput = {
|
|
174
|
-
wallet: HDWallet;
|
|
175
|
-
quote: Quote<ChainTypes, SwapperType>;
|
|
176
|
-
sellAssetAccountId: string;
|
|
177
|
-
feeEstimateKey?: FeeDataKey;
|
|
178
|
-
};
|
|
179
176
|
export {};
|
package/dist/base.js
CHANGED