@shapeshiftoss/types 4.3.0 → 4.4.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/README.md +1 -1
- package/dist/base.d.ts +3 -36
- package/dist/base.js +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/base.d.ts
CHANGED
|
@@ -37,60 +37,27 @@ export declare enum AssetDataSource {
|
|
|
37
37
|
CoinGecko = "coingecko",
|
|
38
38
|
YearnFinance = "yearnfinance"
|
|
39
39
|
}
|
|
40
|
-
declare type
|
|
40
|
+
export declare type Asset = {
|
|
41
41
|
assetId: string;
|
|
42
42
|
chainId: string;
|
|
43
|
+
/** @deprecated: do not use. This will be removed once consumers have handled it */
|
|
43
44
|
chain: ChainTypes;
|
|
44
45
|
description?: string;
|
|
45
46
|
isTrustedDescription?: boolean;
|
|
46
|
-
|
|
47
|
+
/** @deprecated: do not use. This will be removed once consumers have handled it */
|
|
47
48
|
network: NetworkTypes;
|
|
48
49
|
symbol: string;
|
|
49
50
|
name: string;
|
|
50
51
|
precision: number;
|
|
51
|
-
slip44: number;
|
|
52
52
|
color: string;
|
|
53
|
-
secondaryColor: string;
|
|
54
53
|
icon: string;
|
|
55
54
|
explorer: string;
|
|
56
55
|
explorerTxLink: string;
|
|
57
56
|
explorerAddressLink: string;
|
|
58
|
-
sendSupport: boolean;
|
|
59
|
-
receiveSupport: boolean;
|
|
60
57
|
};
|
|
61
|
-
declare type OmittedTokenAssetFields = 'chain' | 'network' | 'slip44' | 'explorer' | 'explorerTxLink' | 'explorerAddressLink';
|
|
62
|
-
declare type TokenAssetFields = {
|
|
63
|
-
tokenId: string;
|
|
64
|
-
contractType: 'erc20' | 'erc721';
|
|
65
|
-
};
|
|
66
|
-
export declare type TokenAsset = Omit<AbstractAsset, OmittedTokenAssetFields> & TokenAssetFields;
|
|
67
|
-
export declare type BaseAsset = AbstractAsset & {
|
|
68
|
-
tokens?: TokenAsset[];
|
|
69
|
-
};
|
|
70
|
-
export declare type Asset = AbstractAsset & Partial<TokenAssetFields>;
|
|
71
58
|
export declare enum SwapperType {
|
|
72
59
|
Zrx = "0x",
|
|
73
60
|
Thorchain = "Thorchain",
|
|
74
61
|
Test = "Test"
|
|
75
62
|
}
|
|
76
|
-
export declare type SwapSource = {
|
|
77
|
-
name: string;
|
|
78
|
-
proportion: string;
|
|
79
|
-
};
|
|
80
|
-
export interface MinMaxOutput {
|
|
81
|
-
minimum: string;
|
|
82
|
-
maximum: string;
|
|
83
|
-
}
|
|
84
|
-
export declare type GetMinMaxInput = {
|
|
85
|
-
sellAsset: Asset;
|
|
86
|
-
buyAsset: Asset;
|
|
87
|
-
};
|
|
88
|
-
export declare type ExecQuoteOutput = {
|
|
89
|
-
txid: string;
|
|
90
|
-
};
|
|
91
|
-
export declare type ApprovalNeededOutput = {
|
|
92
|
-
approvalNeeded: boolean;
|
|
93
|
-
gas?: string;
|
|
94
|
-
gasPrice?: string;
|
|
95
|
-
};
|
|
96
63
|
export {};
|
package/dist/base.js
CHANGED
|
@@ -45,6 +45,7 @@ var AssetDataSource;
|
|
|
45
45
|
AssetDataSource["YearnFinance"] = "yearnfinance";
|
|
46
46
|
})(AssetDataSource = exports.AssetDataSource || (exports.AssetDataSource = {}));
|
|
47
47
|
// swapper
|
|
48
|
+
// TODO remove this once web is using the type from swapper
|
|
48
49
|
var SwapperType;
|
|
49
50
|
(function (SwapperType) {
|
|
50
51
|
SwapperType["Zrx"] = "0x";
|