@shapeshiftoss/types 3.1.0 → 3.1.3
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 +2 -28
- package/package.json +1 -1
package/dist/base.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HDWallet } from '@shapeshiftoss/hdwallet-core';
|
|
2
|
-
import { QuoteFeeData
|
|
2
|
+
import { QuoteFeeData } from './chain-adapters';
|
|
3
3
|
/** Common */
|
|
4
4
|
export declare type BIP44Params = {
|
|
5
5
|
purpose: number;
|
|
@@ -82,11 +82,9 @@ export declare type SwapSource = {
|
|
|
82
82
|
export interface MinMaxOutput {
|
|
83
83
|
minimum: string;
|
|
84
84
|
maximum: string;
|
|
85
|
-
minimumPrice?: string;
|
|
86
85
|
}
|
|
87
86
|
export declare type QuoteResponse = {
|
|
88
87
|
price: string;
|
|
89
|
-
guaranteedPrice: string;
|
|
90
88
|
to: string;
|
|
91
89
|
data?: string;
|
|
92
90
|
value?: string;
|
|
@@ -102,15 +100,8 @@ export declare type QuoteResponse = {
|
|
|
102
100
|
allowanceTarget?: string;
|
|
103
101
|
sources?: Array<SwapSource>;
|
|
104
102
|
};
|
|
105
|
-
export declare type ThorVaultInfo = {
|
|
106
|
-
routerContractAddress?: string;
|
|
107
|
-
vaultAddress: string;
|
|
108
|
-
timestamp: string;
|
|
109
|
-
};
|
|
110
|
-
export declare type BuildThorTradeOutput = SignTxInput<unknown> & ThorVaultInfo;
|
|
111
103
|
export declare type Quote<C extends ChainTypes> = {
|
|
112
104
|
success: boolean;
|
|
113
|
-
statusCode?: number;
|
|
114
105
|
statusReason?: string;
|
|
115
106
|
sellAssetAccountId?: string;
|
|
116
107
|
buyAssetAccountId?: string;
|
|
@@ -124,17 +115,10 @@ export declare type Quote<C extends ChainTypes> = {
|
|
|
124
115
|
sellAmount?: string;
|
|
125
116
|
minimum?: string | null;
|
|
126
117
|
maximum?: string | null;
|
|
127
|
-
guaranteedPrice?: string;
|
|
128
|
-
slipScore?: string;
|
|
129
118
|
txData?: string;
|
|
130
119
|
value?: string;
|
|
131
120
|
allowanceContract?: string;
|
|
132
|
-
allowanceGrantRequired?: boolean;
|
|
133
|
-
slippage?: string;
|
|
134
|
-
priceImpact?: string;
|
|
135
|
-
orderId?: string;
|
|
136
121
|
sources?: Array<SwapSource>;
|
|
137
|
-
timestamp?: number;
|
|
138
122
|
};
|
|
139
123
|
export declare type GetQuoteInput = {
|
|
140
124
|
sellAsset: Asset;
|
|
@@ -144,10 +128,8 @@ export declare type GetQuoteInput = {
|
|
|
144
128
|
sellAssetAccountId?: string;
|
|
145
129
|
buyAssetAccountId?: string;
|
|
146
130
|
slippage?: string;
|
|
147
|
-
priceImpact?: string;
|
|
148
131
|
sendMax?: boolean;
|
|
149
|
-
|
|
150
|
-
minimum?: string;
|
|
132
|
+
priceImpact?: string;
|
|
151
133
|
};
|
|
152
134
|
export declare type BuildQuoteTxInput = {
|
|
153
135
|
input: GetQuoteInput;
|
|
@@ -160,17 +142,9 @@ export declare type ExecQuoteInput<C extends ChainTypes> = {
|
|
|
160
142
|
export declare type ExecQuoteOutput = {
|
|
161
143
|
txid: string;
|
|
162
144
|
};
|
|
163
|
-
export declare type ApprovalNeededInput<C extends ChainTypes> = {
|
|
164
|
-
quote: Quote<C>;
|
|
165
|
-
wallet: HDWallet;
|
|
166
|
-
};
|
|
167
145
|
export declare type ApprovalNeededOutput = {
|
|
168
146
|
approvalNeeded: boolean;
|
|
169
147
|
gas?: string;
|
|
170
148
|
gasPrice?: string;
|
|
171
149
|
};
|
|
172
|
-
export declare type ApproveInfiniteInput<C extends ChainTypes> = {
|
|
173
|
-
quote: Quote<C>;
|
|
174
|
-
wallet: HDWallet;
|
|
175
|
-
};
|
|
176
150
|
export {};
|