@shapeshiftoss/types 1.13.1 → 1.16.1
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 +1 -0
- package/dist/base.js +1 -0
- package/dist/chain-adapters/index.d.ts +2 -0
- package/dist/market.d.ts +3 -36
- package/package.json +2 -2
package/dist/base.d.ts
CHANGED
package/dist/base.js
CHANGED
|
@@ -26,6 +26,7 @@ var UtxoAccountType;
|
|
|
26
26
|
UtxoAccountType["SegwitP2sh"] = "SegwitP2sh";
|
|
27
27
|
UtxoAccountType["P2pkh"] = "P2pkh";
|
|
28
28
|
})(UtxoAccountType = exports.UtxoAccountType || (exports.UtxoAccountType = {}));
|
|
29
|
+
// TODO(0xdef1cafe): remove this, client should not be aware of where data is from
|
|
29
30
|
// Describes the data source for where to get the asset details or asset description.
|
|
30
31
|
var AssetDataSource;
|
|
31
32
|
(function (AssetDataSource) {
|
|
@@ -130,6 +130,7 @@ export declare type BuildSendTxInput<T extends ChainTypes> = {
|
|
|
130
130
|
value: string;
|
|
131
131
|
wallet: HDWallet;
|
|
132
132
|
bip32Params?: BIP32Params;
|
|
133
|
+
sendMax?: boolean;
|
|
133
134
|
} & ChainSpecificBuildTxData<T>;
|
|
134
135
|
declare type ChainSpecificBuildTxData<T> = ChainSpecific<T, {
|
|
135
136
|
[ChainTypes.Ethereum]: ethereum.BuildTxInput;
|
|
@@ -161,6 +162,7 @@ declare type ChainSpecificGetFeeDataInput<T> = ChainSpecific<T, {
|
|
|
161
162
|
export declare type GetFeeDataInput<T extends ChainTypes> = {
|
|
162
163
|
to: string;
|
|
163
164
|
value: string;
|
|
165
|
+
sendMax?: boolean;
|
|
164
166
|
} & ChainSpecificGetFeeDataInput<T>;
|
|
165
167
|
export declare enum ValidAddressResultType {
|
|
166
168
|
Valid = "valid",
|
package/dist/market.d.ts
CHANGED
|
@@ -32,40 +32,7 @@ export declare type GetByMarketCapArgs = {
|
|
|
32
32
|
pages: number;
|
|
33
33
|
perPage: number;
|
|
34
34
|
};
|
|
35
|
-
export declare type
|
|
36
|
-
|
|
37
|
-
[k: string]: CoinGeckoMarketCapNoId;
|
|
38
|
-
};
|
|
39
|
-
export declare type GetByMarketCapType = (args?: GetByMarketCapArgs) => Promise<CoinGeckoMarketCapResult>;
|
|
40
|
-
export declare type CoinGeckoMarketCap = {
|
|
41
|
-
id: string;
|
|
42
|
-
symbol: string;
|
|
43
|
-
name: string;
|
|
44
|
-
image: string;
|
|
45
|
-
current_price: number;
|
|
46
|
-
market_cap: number;
|
|
47
|
-
market_cap_rank: number;
|
|
48
|
-
fully_diluted_valuation: number | null;
|
|
49
|
-
total_volume: number;
|
|
50
|
-
high_24h: number;
|
|
51
|
-
low_24h: number;
|
|
52
|
-
price_change_24h: number;
|
|
53
|
-
price_change_percentage_24h: number;
|
|
54
|
-
market_cap_change_24h: number;
|
|
55
|
-
market_cap_change_percentage_24h: number;
|
|
56
|
-
circulating_supply: number;
|
|
57
|
-
total_supply: number | null;
|
|
58
|
-
max_supply: number | null;
|
|
59
|
-
ath: number;
|
|
60
|
-
ath_change_percentage: number;
|
|
61
|
-
ath_date: string;
|
|
62
|
-
atl: number;
|
|
63
|
-
atl_change_percentage: number;
|
|
64
|
-
atl_date: string;
|
|
65
|
-
roi: null | {
|
|
66
|
-
times: number;
|
|
67
|
-
currency: string;
|
|
68
|
-
percentage: number;
|
|
69
|
-
};
|
|
70
|
-
last_updated: string;
|
|
35
|
+
export declare type MarketCapResult = {
|
|
36
|
+
[k: string]: MarketData;
|
|
71
37
|
};
|
|
38
|
+
export declare type GetByMarketCapType = (args?: GetByMarketCapArgs) => Promise<MarketCapResult>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shapeshiftoss/types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.16.1",
|
|
4
4
|
"description": "Common types shared across packages",
|
|
5
5
|
"repository": "https://github.com/shapeshift/lib",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
"type-check": "tsc --project ./tsconfig.json --noEmit"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@shapeshiftoss/hdwallet-core": "^1.
|
|
23
|
+
"@shapeshiftoss/hdwallet-core": "^1.18.2"
|
|
24
24
|
}
|
|
25
25
|
}
|