@shapeshiftoss/types 3.1.2 → 3.1.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/README.md +1 -1
- package/dist/base.d.ts +0 -10
- package/dist/chain-adapters/index.d.ts +6 -6
- package/dist/market.d.ts +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/base.d.ts
CHANGED
|
@@ -39,8 +39,6 @@ export declare enum AssetDataSource {
|
|
|
39
39
|
}
|
|
40
40
|
declare type AbstractAsset = {
|
|
41
41
|
assetId: string;
|
|
42
|
-
caip2?: string;
|
|
43
|
-
caip19?: string;
|
|
44
42
|
chainId: string;
|
|
45
43
|
chain: ChainTypes;
|
|
46
44
|
description?: string;
|
|
@@ -142,17 +140,9 @@ export declare type ExecQuoteInput<C extends ChainTypes> = {
|
|
|
142
140
|
export declare type ExecQuoteOutput = {
|
|
143
141
|
txid: string;
|
|
144
142
|
};
|
|
145
|
-
export declare type ApprovalNeededInput<C extends ChainTypes> = {
|
|
146
|
-
quote: Quote<C>;
|
|
147
|
-
wallet: HDWallet;
|
|
148
|
-
};
|
|
149
143
|
export declare type ApprovalNeededOutput = {
|
|
150
144
|
approvalNeeded: boolean;
|
|
151
145
|
gas?: string;
|
|
152
146
|
gasPrice?: string;
|
|
153
147
|
};
|
|
154
|
-
export declare type ApproveInfiniteInput<C extends ChainTypes> = {
|
|
155
|
-
quote: Quote<C>;
|
|
156
|
-
wallet: HDWallet;
|
|
157
|
-
};
|
|
158
148
|
export {};
|
|
@@ -15,13 +15,13 @@ declare type ChainSpecificAccount<T> = ChainSpecific<T, {
|
|
|
15
15
|
export declare type Account<T extends ChainTypes> = {
|
|
16
16
|
balance: string;
|
|
17
17
|
pubkey: string;
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
chainId: string;
|
|
19
|
+
assetId: string;
|
|
20
20
|
chain: T;
|
|
21
21
|
} & ChainSpecificAccount<T>;
|
|
22
22
|
export declare type AssetBalance = {
|
|
23
23
|
balance: string;
|
|
24
|
-
|
|
24
|
+
assetId: string;
|
|
25
25
|
};
|
|
26
26
|
export declare enum FeeDataKey {
|
|
27
27
|
Slow = "slow",
|
|
@@ -53,7 +53,7 @@ export declare type SubscribeTxsInput = {
|
|
|
53
53
|
accountType?: UtxoAccountType;
|
|
54
54
|
};
|
|
55
55
|
export declare type TxFee = {
|
|
56
|
-
|
|
56
|
+
assetId: string;
|
|
57
57
|
value: string;
|
|
58
58
|
};
|
|
59
59
|
export declare enum TxType {
|
|
@@ -74,7 +74,7 @@ export declare type Transaction<T extends ChainTypes> = {
|
|
|
74
74
|
blockHeight: number;
|
|
75
75
|
blockTime: number;
|
|
76
76
|
chain: T;
|
|
77
|
-
|
|
77
|
+
chainId: string;
|
|
78
78
|
confirmations: number;
|
|
79
79
|
txid: string;
|
|
80
80
|
fee?: TxFee;
|
|
@@ -97,7 +97,7 @@ export interface TxMetadata {
|
|
|
97
97
|
parser: string;
|
|
98
98
|
}
|
|
99
99
|
export declare type TxTransfer = {
|
|
100
|
-
|
|
100
|
+
assetId: string;
|
|
101
101
|
from: string;
|
|
102
102
|
to: string;
|
|
103
103
|
type: TxType;
|
package/dist/market.d.ts
CHANGED
|
@@ -17,11 +17,11 @@ export declare type HistoryData = {
|
|
|
17
17
|
date: number;
|
|
18
18
|
};
|
|
19
19
|
export declare type PriceHistoryArgs = {
|
|
20
|
-
|
|
20
|
+
assetId: string;
|
|
21
21
|
timeframe: HistoryTimeframe;
|
|
22
22
|
};
|
|
23
23
|
export declare type MarketDataArgs = {
|
|
24
|
-
|
|
24
|
+
assetId: string;
|
|
25
25
|
};
|
|
26
26
|
export declare type FindAllMarketType = (args: FindAllMarketArgs) => Promise<MarketCapResult>;
|
|
27
27
|
export declare type FindByCaip19MarketType = (args: MarketDataArgs) => Promise<MarketData | null>;
|