@shapeshiftoss/types 3.1.1 → 3.1.4
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 -12
- package/dist/chain-adapters/index.d.ts +6 -6
- package/dist/market.d.ts +2 -2
- package/package.json +1 -1
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;
|
|
@@ -118,7 +116,6 @@ export declare type Quote<C extends ChainTypes> = {
|
|
|
118
116
|
txData?: string;
|
|
119
117
|
value?: string;
|
|
120
118
|
allowanceContract?: string;
|
|
121
|
-
slippage?: string;
|
|
122
119
|
sources?: Array<SwapSource>;
|
|
123
120
|
};
|
|
124
121
|
export declare type GetQuoteInput = {
|
|
@@ -130,7 +127,7 @@ export declare type GetQuoteInput = {
|
|
|
130
127
|
buyAssetAccountId?: string;
|
|
131
128
|
slippage?: string;
|
|
132
129
|
sendMax?: boolean;
|
|
133
|
-
|
|
130
|
+
priceImpact?: string;
|
|
134
131
|
};
|
|
135
132
|
export declare type BuildQuoteTxInput = {
|
|
136
133
|
input: GetQuoteInput;
|
|
@@ -143,17 +140,9 @@ export declare type ExecQuoteInput<C extends ChainTypes> = {
|
|
|
143
140
|
export declare type ExecQuoteOutput = {
|
|
144
141
|
txid: string;
|
|
145
142
|
};
|
|
146
|
-
export declare type ApprovalNeededInput<C extends ChainTypes> = {
|
|
147
|
-
quote: Quote<C>;
|
|
148
|
-
wallet: HDWallet;
|
|
149
|
-
};
|
|
150
143
|
export declare type ApprovalNeededOutput = {
|
|
151
144
|
approvalNeeded: boolean;
|
|
152
145
|
gas?: string;
|
|
153
146
|
gasPrice?: string;
|
|
154
147
|
};
|
|
155
|
-
export declare type ApproveInfiniteInput<C extends ChainTypes> = {
|
|
156
|
-
quote: Quote<C>;
|
|
157
|
-
wallet: HDWallet;
|
|
158
|
-
};
|
|
159
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>;
|