@shapeshiftoss/types 1.13.0 → 1.16.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 +3 -1
- package/dist/base.js +1 -0
- package/dist/chain-adapters/index.d.ts +2 -0
- package/package.json +2 -2
package/dist/base.d.ts
CHANGED
|
@@ -36,6 +36,7 @@ export declare enum AssetDataSource {
|
|
|
36
36
|
declare type AbstractAsset = {
|
|
37
37
|
caip19: string;
|
|
38
38
|
chain: ChainTypes;
|
|
39
|
+
description?: string;
|
|
39
40
|
dataSource: AssetDataSource;
|
|
40
41
|
network: NetworkTypes;
|
|
41
42
|
symbol: string;
|
|
@@ -47,10 +48,11 @@ declare type AbstractAsset = {
|
|
|
47
48
|
icon: string;
|
|
48
49
|
explorer: string;
|
|
49
50
|
explorerTxLink: string;
|
|
51
|
+
explorerAddressLink: string;
|
|
50
52
|
sendSupport: boolean;
|
|
51
53
|
receiveSupport: boolean;
|
|
52
54
|
};
|
|
53
|
-
declare type OmittedTokenAssetFields = 'chain' | 'network' | 'slip44' | 'explorer' | 'explorerTxLink';
|
|
55
|
+
declare type OmittedTokenAssetFields = 'chain' | 'network' | 'slip44' | 'explorer' | 'explorerTxLink' | 'explorerAddressLink';
|
|
54
56
|
declare type TokenAssetFields = {
|
|
55
57
|
tokenId: string;
|
|
56
58
|
contractType: ContractTypes;
|
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shapeshiftoss/types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.16.0",
|
|
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
|
}
|