@skip-go/client 0.10.3 → 0.11.0-alpha.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/README.md +1 -38
- package/dist/index.d.mts +1938 -0
- package/dist/index.mjs +35 -0
- package/package.json +18 -16
- package/vitest.config.mjs +17 -0
- package/vitest.e2e.config.mjs +11 -0
- package/vitest.unit.config.mjs +11 -0
- package/dist/chunk-6FNC3XMI.js +0 -45
- package/dist/chunk-F6SLLVEL.js +0 -2012
- package/dist/chunk-JRIEAGIQ.js +0 -10
- package/dist/chunk-TUX4SN3U.js +0 -3996
- package/dist/index.d.ts +0 -334
- package/dist/index.js +0 -5220
- package/dist/parser.d.ts +0 -1
- package/dist/parser.js +0 -11
- package/dist/shared-IGtrUCgc.d.ts +0 -1035
- package/dist/transactions.d.ts +0 -11
- package/dist/transactions.js +0 -23
- package/dist/types.d.ts +0 -577
- package/dist/types.js +0 -687
- package/parser.d.ts +0 -1
- package/parser.js +0 -1
- package/transactions.d.ts +0 -1
- package/transactions.js +0 -1
- package/types.d.ts +0 -1
- package/types.js +0 -1
|
@@ -1,1035 +0,0 @@
|
|
|
1
|
-
type AssetsRequestJSON = {
|
|
2
|
-
chain_ids?: string[];
|
|
3
|
-
native_only?: boolean;
|
|
4
|
-
include_no_metadata_assets?: boolean;
|
|
5
|
-
include_cw20_assets?: boolean;
|
|
6
|
-
include_evm_assets?: boolean;
|
|
7
|
-
include_svm_assets?: boolean;
|
|
8
|
-
only_testnets?: boolean;
|
|
9
|
-
/**
|
|
10
|
-
* @deprecated Use `chain_ids` instead
|
|
11
|
-
*/
|
|
12
|
-
chain_id?: string;
|
|
13
|
-
};
|
|
14
|
-
type AssetsRequest = {
|
|
15
|
-
chainIDs?: string[];
|
|
16
|
-
nativeOnly?: boolean;
|
|
17
|
-
includeNoMetadataAssets?: boolean;
|
|
18
|
-
includeCW20Assets?: boolean;
|
|
19
|
-
includeEvmAssets?: boolean;
|
|
20
|
-
includeSvmAssets?: boolean;
|
|
21
|
-
onlyTestnets?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* @deprecated Use `chainIDs` instead
|
|
24
|
-
*/
|
|
25
|
-
chainID?: string;
|
|
26
|
-
};
|
|
27
|
-
type AssetsFromSourceRequestJSON = {
|
|
28
|
-
source_asset_denom: string;
|
|
29
|
-
source_asset_chain_id: string;
|
|
30
|
-
allow_multi_tx?: boolean;
|
|
31
|
-
include_cw20_assets: boolean;
|
|
32
|
-
};
|
|
33
|
-
type AssetsFromSourceRequest = {
|
|
34
|
-
sourceAssetDenom: string;
|
|
35
|
-
sourceAssetChainID: string;
|
|
36
|
-
allowMultiTx?: boolean;
|
|
37
|
-
includeCW20Assets: boolean;
|
|
38
|
-
};
|
|
39
|
-
type AssetRecommendation = {
|
|
40
|
-
asset: Asset;
|
|
41
|
-
reason: Reason;
|
|
42
|
-
};
|
|
43
|
-
type AssetRecommendationJSON = {
|
|
44
|
-
asset: AssetJSON;
|
|
45
|
-
reason: Reason;
|
|
46
|
-
};
|
|
47
|
-
type AssetRecommendationRequestJSON = {
|
|
48
|
-
source_asset_denom: string;
|
|
49
|
-
source_asset_chain_id: string;
|
|
50
|
-
dest_chain_id: string;
|
|
51
|
-
reason?: Reason;
|
|
52
|
-
};
|
|
53
|
-
type AssetRecommendationRequest = {
|
|
54
|
-
sourceAssetDenom: string;
|
|
55
|
-
sourceAssetChainID: string;
|
|
56
|
-
destChainID: string;
|
|
57
|
-
reason?: Reason;
|
|
58
|
-
};
|
|
59
|
-
type RecommendAssetsRequestJSON = {
|
|
60
|
-
requests: AssetRecommendationRequestJSON[];
|
|
61
|
-
};
|
|
62
|
-
type RecommendAssetsRequest = {
|
|
63
|
-
requests: AssetRecommendationRequest[];
|
|
64
|
-
};
|
|
65
|
-
type RecommendAssetsResponseJSON = {
|
|
66
|
-
recommendations: AssetRecommendationJSON[];
|
|
67
|
-
recommendation_entries: RecommendationEntryJSON[];
|
|
68
|
-
};
|
|
69
|
-
type RecommendAssetsResponse = {
|
|
70
|
-
recommendations: AssetRecommendation[];
|
|
71
|
-
recommendationEntries: RecommendationEntry[];
|
|
72
|
-
};
|
|
73
|
-
type RecommendationEntryJSON = {
|
|
74
|
-
recommendations: AssetRecommendationJSON[];
|
|
75
|
-
error?: ApiError;
|
|
76
|
-
};
|
|
77
|
-
type RecommendationEntry = {
|
|
78
|
-
recommendations: AssetRecommendation[];
|
|
79
|
-
error?: ApiError;
|
|
80
|
-
};
|
|
81
|
-
type RouteRequestBaseJSON = {
|
|
82
|
-
source_asset_denom: string;
|
|
83
|
-
source_asset_chain_id: string;
|
|
84
|
-
dest_asset_denom: string;
|
|
85
|
-
dest_asset_chain_id: string;
|
|
86
|
-
cumulative_affiliate_fee_bps?: string;
|
|
87
|
-
swap_venue?: SwapVenueRequestJSON;
|
|
88
|
-
swap_venues?: SwapVenueRequestJSON[];
|
|
89
|
-
allow_unsafe?: boolean;
|
|
90
|
-
experimental_features?: ExperimentalFeature[];
|
|
91
|
-
bridges?: BridgeType[];
|
|
92
|
-
allow_multi_tx?: boolean;
|
|
93
|
-
smart_relay?: boolean;
|
|
94
|
-
smart_swap_options?: SmartSwapOptionsJSON;
|
|
95
|
-
allow_swaps?: boolean;
|
|
96
|
-
};
|
|
97
|
-
type RouteRequestGivenInJSON = RouteRequestBaseJSON & {
|
|
98
|
-
amount_in: string;
|
|
99
|
-
amount_out?: never;
|
|
100
|
-
};
|
|
101
|
-
type RouteRequestGivenOutJSON = RouteRequestBaseJSON & {
|
|
102
|
-
amount_in?: never;
|
|
103
|
-
amount_out: string;
|
|
104
|
-
};
|
|
105
|
-
type RouteRequestJSON = RouteRequestGivenInJSON | RouteRequestGivenOutJSON;
|
|
106
|
-
type MsgsDirectResponse = {
|
|
107
|
-
msgs: Msg[];
|
|
108
|
-
txs: Tx[];
|
|
109
|
-
route: RouteResponse;
|
|
110
|
-
warning?: MsgsWarning;
|
|
111
|
-
};
|
|
112
|
-
type MsgsDirectResponseJSON = {
|
|
113
|
-
msgs: MsgJSON[];
|
|
114
|
-
txs: TxJSON[];
|
|
115
|
-
route: RouteResponseJSON;
|
|
116
|
-
warning?: MsgsWarning;
|
|
117
|
-
};
|
|
118
|
-
type RouteRequestBase = {
|
|
119
|
-
sourceAssetDenom: string;
|
|
120
|
-
sourceAssetChainID: string;
|
|
121
|
-
destAssetDenom: string;
|
|
122
|
-
destAssetChainID: string;
|
|
123
|
-
cumulativeAffiliateFeeBPS?: string;
|
|
124
|
-
swapVenue?: SwapVenueRequest;
|
|
125
|
-
swapVenues?: SwapVenueRequest[];
|
|
126
|
-
allowUnsafe?: boolean;
|
|
127
|
-
experimentalFeatures?: ExperimentalFeature[];
|
|
128
|
-
bridges?: BridgeType[];
|
|
129
|
-
allowMultiTx?: boolean;
|
|
130
|
-
smartRelay?: boolean;
|
|
131
|
-
smartSwapOptions?: SmartSwapOptions;
|
|
132
|
-
allowSwaps?: boolean;
|
|
133
|
-
};
|
|
134
|
-
type RouteRequestGivenIn = RouteRequestBase & {
|
|
135
|
-
amountIn: string;
|
|
136
|
-
amountOut?: never;
|
|
137
|
-
};
|
|
138
|
-
type RouteRequestGivenOut = RouteRequestBase & {
|
|
139
|
-
amountIn?: never;
|
|
140
|
-
amountOut: string;
|
|
141
|
-
};
|
|
142
|
-
type RouteRequest = RouteRequestGivenIn | RouteRequestGivenOut;
|
|
143
|
-
type RouteWarningType = 'LOW_INFO_WARNING' | 'BAD_PRICE_WARNING';
|
|
144
|
-
type MsgsWarningType = 'INSUFFICIENT_GAS_AT_DEST_EOA' | 'INSUFFICIENT_GAS_AT_INTERMEDIATE';
|
|
145
|
-
type ExperimentalFeature = 'cctp' | 'hyperlane';
|
|
146
|
-
type RouteWarning = {
|
|
147
|
-
type: RouteWarningType;
|
|
148
|
-
message: string;
|
|
149
|
-
};
|
|
150
|
-
type MsgsWarning = {
|
|
151
|
-
type: MsgsWarningType;
|
|
152
|
-
message: string;
|
|
153
|
-
};
|
|
154
|
-
type FeeType = 'SMART_RELAY';
|
|
155
|
-
type EstimatedFee = {
|
|
156
|
-
feeType: FeeType;
|
|
157
|
-
bridgeID: BridgeType;
|
|
158
|
-
amount: string;
|
|
159
|
-
usdAmount: string;
|
|
160
|
-
originAsset: Asset;
|
|
161
|
-
chainID: string;
|
|
162
|
-
txIndex: number;
|
|
163
|
-
operationIndex?: number;
|
|
164
|
-
};
|
|
165
|
-
type EstimatedFeeJSON = {
|
|
166
|
-
fee_type: FeeType;
|
|
167
|
-
bridge_id: BridgeType;
|
|
168
|
-
amount: string;
|
|
169
|
-
usd_amount: string;
|
|
170
|
-
origin_asset: AssetJSON;
|
|
171
|
-
chain_id: string;
|
|
172
|
-
tx_index: number;
|
|
173
|
-
operation_index?: number;
|
|
174
|
-
};
|
|
175
|
-
type OperationJSON = {
|
|
176
|
-
transfer: TransferJSON;
|
|
177
|
-
tx_index: number;
|
|
178
|
-
amount_in: string;
|
|
179
|
-
amount_out: string;
|
|
180
|
-
} | {
|
|
181
|
-
bank_send: BankSendJSON;
|
|
182
|
-
tx_index: number;
|
|
183
|
-
amount_in: string;
|
|
184
|
-
amount_out: string;
|
|
185
|
-
} | {
|
|
186
|
-
swap: SwapJSON;
|
|
187
|
-
tx_index: number;
|
|
188
|
-
amount_in: string;
|
|
189
|
-
amount_out: string;
|
|
190
|
-
} | {
|
|
191
|
-
axelar_transfer: AxelarTransferJSON;
|
|
192
|
-
tx_index: number;
|
|
193
|
-
amount_in: string;
|
|
194
|
-
amount_out: string;
|
|
195
|
-
} | {
|
|
196
|
-
cctp_transfer: CCTPTransferJSON;
|
|
197
|
-
tx_index: number;
|
|
198
|
-
amount_in: string;
|
|
199
|
-
amount_out: string;
|
|
200
|
-
} | {
|
|
201
|
-
hyperlane_transfer: HyperlaneTransferJSON;
|
|
202
|
-
tx_index: number;
|
|
203
|
-
amount_in: string;
|
|
204
|
-
amount_out: string;
|
|
205
|
-
} | {
|
|
206
|
-
evm_swap: EvmSwapJSON;
|
|
207
|
-
tx_index: number;
|
|
208
|
-
amount_in: string;
|
|
209
|
-
amount_out: string;
|
|
210
|
-
} | {
|
|
211
|
-
op_init_transfer: OPInitTransferJSON;
|
|
212
|
-
tx_index: number;
|
|
213
|
-
amount_in: string;
|
|
214
|
-
amount_out: string;
|
|
215
|
-
};
|
|
216
|
-
type Operation = {
|
|
217
|
-
transfer: Transfer;
|
|
218
|
-
txIndex: number;
|
|
219
|
-
amountIn: string;
|
|
220
|
-
amountOut: string;
|
|
221
|
-
} | {
|
|
222
|
-
bankSend: BankSend;
|
|
223
|
-
txIndex: number;
|
|
224
|
-
amountIn: string;
|
|
225
|
-
amountOut: string;
|
|
226
|
-
} | {
|
|
227
|
-
swap: Swap;
|
|
228
|
-
txIndex: number;
|
|
229
|
-
amountIn: string;
|
|
230
|
-
amountOut: string;
|
|
231
|
-
} | {
|
|
232
|
-
axelarTransfer: AxelarTransfer;
|
|
233
|
-
txIndex: number;
|
|
234
|
-
amountIn: string;
|
|
235
|
-
amountOut: string;
|
|
236
|
-
} | {
|
|
237
|
-
cctpTransfer: CCTPTransfer;
|
|
238
|
-
txIndex: number;
|
|
239
|
-
amountIn: string;
|
|
240
|
-
amountOut: string;
|
|
241
|
-
} | {
|
|
242
|
-
hyperlaneTransfer: HyperlaneTransfer;
|
|
243
|
-
txIndex: number;
|
|
244
|
-
amountIn: string;
|
|
245
|
-
amountOut: string;
|
|
246
|
-
} | {
|
|
247
|
-
evmSwap: EvmSwap;
|
|
248
|
-
txIndex: number;
|
|
249
|
-
amountIn: string;
|
|
250
|
-
amountOut: string;
|
|
251
|
-
} | {
|
|
252
|
-
opInitTransfer: OPInitTransfer;
|
|
253
|
-
txIndex: number;
|
|
254
|
-
amountIn: string;
|
|
255
|
-
amountOut: string;
|
|
256
|
-
};
|
|
257
|
-
type RouteResponseJSON = {
|
|
258
|
-
source_asset_denom: string;
|
|
259
|
-
source_asset_chain_id: string;
|
|
260
|
-
dest_asset_denom: string;
|
|
261
|
-
dest_asset_chain_id: string;
|
|
262
|
-
amount_in: string;
|
|
263
|
-
amount_out: string;
|
|
264
|
-
operations: OperationJSON[];
|
|
265
|
-
chain_ids: string[];
|
|
266
|
-
required_chain_addresses: string[];
|
|
267
|
-
does_swap: boolean;
|
|
268
|
-
estimated_amount_out?: string;
|
|
269
|
-
swap_venues?: SwapVenueJSON[];
|
|
270
|
-
txs_required: number;
|
|
271
|
-
usd_amount_in?: string;
|
|
272
|
-
usd_amount_out?: string;
|
|
273
|
-
swap_price_impact_percent?: string;
|
|
274
|
-
warning?: RouteWarning;
|
|
275
|
-
estimated_fees: EstimatedFeeJSON[];
|
|
276
|
-
estimated_route_duration_seconds: number;
|
|
277
|
-
};
|
|
278
|
-
type RouteResponse = {
|
|
279
|
-
sourceAssetDenom: string;
|
|
280
|
-
sourceAssetChainID: string;
|
|
281
|
-
destAssetDenom: string;
|
|
282
|
-
destAssetChainID: string;
|
|
283
|
-
amountIn: string;
|
|
284
|
-
amountOut: string;
|
|
285
|
-
operations: Operation[];
|
|
286
|
-
chainIDs: string[];
|
|
287
|
-
requiredChainAddresses: string[];
|
|
288
|
-
doesSwap: boolean;
|
|
289
|
-
estimatedAmountOut?: string;
|
|
290
|
-
swapVenues?: SwapVenue[];
|
|
291
|
-
txsRequired: number;
|
|
292
|
-
usdAmountIn?: string;
|
|
293
|
-
usdAmountOut?: string;
|
|
294
|
-
swapPriceImpactPercent?: string;
|
|
295
|
-
warning?: RouteWarning;
|
|
296
|
-
estimatedFees: EstimatedFee[];
|
|
297
|
-
estimatedRouteDurationSeconds: number;
|
|
298
|
-
};
|
|
299
|
-
type MsgsRequestJSON = {
|
|
300
|
-
source_asset_denom: string;
|
|
301
|
-
source_asset_chain_id: string;
|
|
302
|
-
dest_asset_denom: string;
|
|
303
|
-
dest_asset_chain_id: string;
|
|
304
|
-
amount_in: string;
|
|
305
|
-
amount_out: string;
|
|
306
|
-
address_list: string[];
|
|
307
|
-
operations: OperationJSON[];
|
|
308
|
-
estimated_amount_out?: string;
|
|
309
|
-
slippage_tolerance_percent?: string;
|
|
310
|
-
affiliates?: AffiliateJSON[];
|
|
311
|
-
chain_ids_to_affiliates?: Record<string, ChainAffiliatesJSON>;
|
|
312
|
-
post_route_handler?: PostHandlerJSON;
|
|
313
|
-
enable_gas_warnings?: boolean;
|
|
314
|
-
};
|
|
315
|
-
type MsgsRequest = {
|
|
316
|
-
sourceAssetDenom: string;
|
|
317
|
-
sourceAssetChainID: string;
|
|
318
|
-
destAssetDenom: string;
|
|
319
|
-
destAssetChainID: string;
|
|
320
|
-
amountIn: string;
|
|
321
|
-
amountOut: string;
|
|
322
|
-
/**
|
|
323
|
-
* addresses should be in the same order with the `chainIDs` in the `route`
|
|
324
|
-
*/
|
|
325
|
-
addressList: string[];
|
|
326
|
-
operations: Operation[];
|
|
327
|
-
estimatedAmountOut?: string;
|
|
328
|
-
slippageTolerancePercent?: string;
|
|
329
|
-
affiliates?: Affiliate[];
|
|
330
|
-
chainIDsToAffiliates?: Record<string, ChainAffiliates>;
|
|
331
|
-
postRouteHandler?: PostHandler;
|
|
332
|
-
enableGasWarnings?: boolean;
|
|
333
|
-
};
|
|
334
|
-
type MsgsDirectRequestBaseJSON = {
|
|
335
|
-
source_asset_denom: string;
|
|
336
|
-
source_asset_chain_id: string;
|
|
337
|
-
dest_asset_denom: string;
|
|
338
|
-
dest_asset_chain_id: string;
|
|
339
|
-
chain_ids_to_addresses: {
|
|
340
|
-
[key: string]: string;
|
|
341
|
-
};
|
|
342
|
-
swap_venue?: SwapVenueJSON;
|
|
343
|
-
swap_venues?: SwapVenueJSON[];
|
|
344
|
-
slippage_tolerance_percent?: string;
|
|
345
|
-
timeout_seconds?: string;
|
|
346
|
-
affiliates?: AffiliateJSON[];
|
|
347
|
-
chain_ids_to_affiliates?: Record<string, ChainAffiliatesJSON>;
|
|
348
|
-
post_route_handler?: PostHandlerJSON;
|
|
349
|
-
allow_unsafe?: boolean;
|
|
350
|
-
experimental_features?: ExperimentalFeature[];
|
|
351
|
-
bridges?: BridgeType[];
|
|
352
|
-
allow_multi_tx?: boolean;
|
|
353
|
-
smart_relay?: boolean;
|
|
354
|
-
smart_swap_options?: SmartSwapOptionsJSON;
|
|
355
|
-
allow_swaps?: boolean;
|
|
356
|
-
enable_gas_warnings?: boolean;
|
|
357
|
-
};
|
|
358
|
-
type MsgsDirectRequestGivenInJSON = MsgsDirectRequestBaseJSON & {
|
|
359
|
-
amount_in: string;
|
|
360
|
-
amount_out?: never;
|
|
361
|
-
};
|
|
362
|
-
type MsgsDirectRequestGivenOutJSON = MsgsDirectRequestBaseJSON & {
|
|
363
|
-
amount_in?: never;
|
|
364
|
-
amount_out: string;
|
|
365
|
-
};
|
|
366
|
-
type MsgsDirectRequestJSON = MsgsDirectRequestGivenInJSON | MsgsDirectRequestGivenOutJSON;
|
|
367
|
-
type MsgsDirectRequestBase = {
|
|
368
|
-
sourceAssetDenom: string;
|
|
369
|
-
sourceAssetChainID: string;
|
|
370
|
-
destAssetDenom: string;
|
|
371
|
-
destAssetChainID: string;
|
|
372
|
-
chainIdsToAddresses: {
|
|
373
|
-
[key: string]: string;
|
|
374
|
-
};
|
|
375
|
-
swapVenue?: SwapVenue;
|
|
376
|
-
swapVenues?: SwapVenue[];
|
|
377
|
-
slippageTolerancePercent?: string;
|
|
378
|
-
timeoutSeconds?: string;
|
|
379
|
-
affiliates?: Affiliate[];
|
|
380
|
-
chainIDsToAffiliates?: Record<string, ChainAffiliates>;
|
|
381
|
-
postRouteHandler?: PostHandler;
|
|
382
|
-
allowUnsafe?: boolean;
|
|
383
|
-
experimentalFeatures?: ExperimentalFeature[];
|
|
384
|
-
bridges?: BridgeType[];
|
|
385
|
-
allowMultiTx?: boolean;
|
|
386
|
-
smartRelay?: boolean;
|
|
387
|
-
smartSwapOptions?: SmartSwapOptions;
|
|
388
|
-
allowSwaps?: boolean;
|
|
389
|
-
enableGasWarnings?: boolean;
|
|
390
|
-
};
|
|
391
|
-
type MsgsDirectRequestGivenIn = MsgsDirectRequestBase & {
|
|
392
|
-
amountIn: string;
|
|
393
|
-
amountOut?: never;
|
|
394
|
-
};
|
|
395
|
-
type MsgsDirectRequestGivenOut = MsgsDirectRequestBase & {
|
|
396
|
-
amountIn?: never;
|
|
397
|
-
amountOut: string;
|
|
398
|
-
};
|
|
399
|
-
type MsgsDirectRequest = MsgsDirectRequestGivenIn | MsgsDirectRequestGivenOut;
|
|
400
|
-
type MsgJSON = {
|
|
401
|
-
multi_chain_msg: MultiChainMsgJSON;
|
|
402
|
-
} | {
|
|
403
|
-
evm_tx: EvmTxJSON;
|
|
404
|
-
} | {
|
|
405
|
-
svm_tx: SvmTxJSON;
|
|
406
|
-
};
|
|
407
|
-
type Msg = {
|
|
408
|
-
multiChainMsg: MultiChainMsg;
|
|
409
|
-
} | {
|
|
410
|
-
evmTx: EvmTx;
|
|
411
|
-
} | {
|
|
412
|
-
svmTx: SvmTx;
|
|
413
|
-
};
|
|
414
|
-
type TxJSON = {
|
|
415
|
-
cosmos_tx: CosmosTxJSON;
|
|
416
|
-
operations_indices: number[];
|
|
417
|
-
} | {
|
|
418
|
-
evm_tx: EvmTxJSON;
|
|
419
|
-
operations_indices: number[];
|
|
420
|
-
} | {
|
|
421
|
-
svm_tx: SvmTxJSON;
|
|
422
|
-
operations_indices: number[];
|
|
423
|
-
};
|
|
424
|
-
type Tx = {
|
|
425
|
-
cosmosTx: CosmosTx;
|
|
426
|
-
operationsIndices: number[];
|
|
427
|
-
} | {
|
|
428
|
-
evmTx: EvmTx;
|
|
429
|
-
operationsIndices: number[];
|
|
430
|
-
} | {
|
|
431
|
-
svmTx: SvmTx;
|
|
432
|
-
operationsIndices: number[];
|
|
433
|
-
};
|
|
434
|
-
type MsgsResponseJSON = {
|
|
435
|
-
msgs: MsgJSON[];
|
|
436
|
-
estimated_fees: EstimatedFeeJSON[];
|
|
437
|
-
txs: TxJSON[];
|
|
438
|
-
warning?: MsgsWarning;
|
|
439
|
-
};
|
|
440
|
-
type MsgsResponse = {
|
|
441
|
-
/**
|
|
442
|
-
* @deprecated Use `txs` instead
|
|
443
|
-
*/
|
|
444
|
-
msgs: Msg[];
|
|
445
|
-
estimatedFees: EstimatedFee[];
|
|
446
|
-
txs: Tx[];
|
|
447
|
-
warning?: MsgsWarning;
|
|
448
|
-
};
|
|
449
|
-
type BridgeType = 'IBC' | 'AXELAR' | 'CCTP' | 'HYPERLANE' | 'OPINIT';
|
|
450
|
-
type AssetBetweenChainsJSON = {
|
|
451
|
-
asset_on_source: AssetJSON;
|
|
452
|
-
asset_on_dest: AssetJSON;
|
|
453
|
-
txs_required: number;
|
|
454
|
-
bridges: BridgeType[];
|
|
455
|
-
};
|
|
456
|
-
type AssetBetweenChains = {
|
|
457
|
-
assetOnSource: Asset;
|
|
458
|
-
assetOnDest: Asset;
|
|
459
|
-
txsRequired: number;
|
|
460
|
-
bridges: BridgeType[];
|
|
461
|
-
};
|
|
462
|
-
type AssetsBetweenChainsRequestJSON = {
|
|
463
|
-
source_chain_id: string;
|
|
464
|
-
dest_chain_id: string;
|
|
465
|
-
include_no_metadata_assets?: boolean;
|
|
466
|
-
include_cw20_assets?: boolean;
|
|
467
|
-
include_evm_assets?: boolean;
|
|
468
|
-
allow_multi_tx?: boolean;
|
|
469
|
-
};
|
|
470
|
-
type AssetsBetweenChainsRequest = {
|
|
471
|
-
sourceChainID: string;
|
|
472
|
-
destChainID: string;
|
|
473
|
-
includeNoMetadataAssets?: boolean;
|
|
474
|
-
includeCW20Assets?: boolean;
|
|
475
|
-
includeEvmAssets?: boolean;
|
|
476
|
-
allowMultiTx?: boolean;
|
|
477
|
-
};
|
|
478
|
-
type AssetsBetweenChainsResponseJSON = {
|
|
479
|
-
assets_between_chains: AssetBetweenChainsJSON[];
|
|
480
|
-
};
|
|
481
|
-
type AssetsBetweenChainsResponse = {
|
|
482
|
-
assetsBetweenChains: AssetBetweenChains[];
|
|
483
|
-
};
|
|
484
|
-
type BalanceRequestChainEntryJSON = {
|
|
485
|
-
address: string;
|
|
486
|
-
denoms?: string[];
|
|
487
|
-
};
|
|
488
|
-
type BalanceRequestChainEntry = {
|
|
489
|
-
address: string;
|
|
490
|
-
denoms?: string[];
|
|
491
|
-
};
|
|
492
|
-
type BalanceRequestJSON = {
|
|
493
|
-
chains: {
|
|
494
|
-
[chain: string]: BalanceRequestChainEntryJSON;
|
|
495
|
-
};
|
|
496
|
-
};
|
|
497
|
-
type BalanceRequest = {
|
|
498
|
-
chains: {
|
|
499
|
-
[chain: string]: BalanceRequestChainEntry;
|
|
500
|
-
};
|
|
501
|
-
};
|
|
502
|
-
type BalanceResponseDenomEntryJSON = {
|
|
503
|
-
amount: string;
|
|
504
|
-
decimals?: number;
|
|
505
|
-
formatted_amount: string;
|
|
506
|
-
price?: string;
|
|
507
|
-
value_usd?: string;
|
|
508
|
-
error?: ApiError;
|
|
509
|
-
};
|
|
510
|
-
type BalanceResponseDenomEntry = {
|
|
511
|
-
amount: string;
|
|
512
|
-
decimals?: number;
|
|
513
|
-
formattedAmount: string;
|
|
514
|
-
price?: string;
|
|
515
|
-
valueUSD?: string;
|
|
516
|
-
error?: ApiError;
|
|
517
|
-
};
|
|
518
|
-
type BalanceResponseChainEntryJSON = {
|
|
519
|
-
denoms: {
|
|
520
|
-
[denom: string]: BalanceResponseDenomEntryJSON;
|
|
521
|
-
};
|
|
522
|
-
};
|
|
523
|
-
type BalanceResponseChainEntry = {
|
|
524
|
-
denoms: {
|
|
525
|
-
[denom: string]: BalanceResponseDenomEntry;
|
|
526
|
-
};
|
|
527
|
-
};
|
|
528
|
-
type BalanceResponseJSON = {
|
|
529
|
-
chains: {
|
|
530
|
-
[chain: string]: BalanceResponseChainEntryJSON;
|
|
531
|
-
};
|
|
532
|
-
};
|
|
533
|
-
type BalanceResponse = {
|
|
534
|
-
chains: {
|
|
535
|
-
[chain: string]: BalanceResponseChainEntry;
|
|
536
|
-
};
|
|
537
|
-
};
|
|
538
|
-
type BridgesResponseJSON = {
|
|
539
|
-
bridges: BridgeJSON[];
|
|
540
|
-
};
|
|
541
|
-
type BridgesResponse = {
|
|
542
|
-
bridges: Bridge[];
|
|
543
|
-
};
|
|
544
|
-
type BridgeJSON = {
|
|
545
|
-
id: BridgeType;
|
|
546
|
-
name: string;
|
|
547
|
-
logo_uri: string;
|
|
548
|
-
};
|
|
549
|
-
type Bridge = {
|
|
550
|
-
id: BridgeType;
|
|
551
|
-
name: string;
|
|
552
|
-
logoURI: string;
|
|
553
|
-
};
|
|
554
|
-
|
|
555
|
-
type IBCAddressJSON = {
|
|
556
|
-
address: string;
|
|
557
|
-
chain_id: string;
|
|
558
|
-
};
|
|
559
|
-
type IBCAddress = {
|
|
560
|
-
address: string;
|
|
561
|
-
chainID: string;
|
|
562
|
-
};
|
|
563
|
-
type AssetJSON = {
|
|
564
|
-
denom: string;
|
|
565
|
-
chain_id: string;
|
|
566
|
-
origin_denom: string;
|
|
567
|
-
origin_chain_id: string;
|
|
568
|
-
trace: string;
|
|
569
|
-
is_cw20: boolean;
|
|
570
|
-
is_evm: boolean;
|
|
571
|
-
is_svm: boolean;
|
|
572
|
-
symbol: string | undefined;
|
|
573
|
-
name: string | undefined;
|
|
574
|
-
logo_uri: string | undefined;
|
|
575
|
-
decimals: number | undefined;
|
|
576
|
-
token_contract: string | undefined;
|
|
577
|
-
description: string | undefined;
|
|
578
|
-
coingecko_id: string | undefined;
|
|
579
|
-
recommended_symbol: string | undefined;
|
|
580
|
-
};
|
|
581
|
-
type Asset = {
|
|
582
|
-
denom: string;
|
|
583
|
-
chainID: string;
|
|
584
|
-
originDenom: string;
|
|
585
|
-
originChainID: string;
|
|
586
|
-
trace: string;
|
|
587
|
-
isCW20: boolean;
|
|
588
|
-
isEVM: boolean;
|
|
589
|
-
isSVM: boolean;
|
|
590
|
-
symbol: string | undefined;
|
|
591
|
-
name: string | undefined;
|
|
592
|
-
logoURI: string | undefined;
|
|
593
|
-
decimals: number | undefined;
|
|
594
|
-
tokenContract: string | undefined;
|
|
595
|
-
description: string | undefined;
|
|
596
|
-
coingeckoID: string | undefined;
|
|
597
|
-
recommendedSymbol: string | undefined;
|
|
598
|
-
};
|
|
599
|
-
type TransferJSON = {
|
|
600
|
-
port: string;
|
|
601
|
-
channel: string;
|
|
602
|
-
from_chain_id: string;
|
|
603
|
-
to_chain_id: string;
|
|
604
|
-
pfm_enabled: boolean;
|
|
605
|
-
supports_memo: boolean;
|
|
606
|
-
denom_in: string;
|
|
607
|
-
denom_out: string;
|
|
608
|
-
fee_amount?: string;
|
|
609
|
-
usd_fee_amount?: string;
|
|
610
|
-
fee_asset?: AssetJSON;
|
|
611
|
-
bridge_id: BridgeType;
|
|
612
|
-
smart_relay: boolean;
|
|
613
|
-
/**
|
|
614
|
-
* @deprecated use `from_chain_id` and `to_chain_id` instead
|
|
615
|
-
*/
|
|
616
|
-
chain_id: string;
|
|
617
|
-
/**
|
|
618
|
-
* @deprecated use `denom_out` instead
|
|
619
|
-
*/
|
|
620
|
-
dest_denom: string;
|
|
621
|
-
};
|
|
622
|
-
type Transfer = {
|
|
623
|
-
port: string;
|
|
624
|
-
channel: string;
|
|
625
|
-
fromChainID: string;
|
|
626
|
-
toChainID: string;
|
|
627
|
-
pfmEnabled: boolean;
|
|
628
|
-
supportsMemo: boolean;
|
|
629
|
-
denomIn: string;
|
|
630
|
-
denomOut: string;
|
|
631
|
-
feeAmount?: string;
|
|
632
|
-
usdFeeAmount?: string;
|
|
633
|
-
feeAsset?: Asset;
|
|
634
|
-
bridgeID: BridgeType;
|
|
635
|
-
smartRelay: boolean;
|
|
636
|
-
/**
|
|
637
|
-
* @deprecated use `fromChainID` and `toChainID` instead
|
|
638
|
-
*/
|
|
639
|
-
chainID: string;
|
|
640
|
-
/**
|
|
641
|
-
* @deprecated use `denomOut` instead
|
|
642
|
-
*/
|
|
643
|
-
destDenom: string;
|
|
644
|
-
};
|
|
645
|
-
type AxelarTransferJSON = {
|
|
646
|
-
from_chain: string;
|
|
647
|
-
from_chain_id: string;
|
|
648
|
-
to_chain: string;
|
|
649
|
-
to_chain_id: string;
|
|
650
|
-
asset: string;
|
|
651
|
-
should_unwrap: boolean;
|
|
652
|
-
denom_in: string;
|
|
653
|
-
denom_out: string;
|
|
654
|
-
fee_amount: string;
|
|
655
|
-
usd_fee_amount: string;
|
|
656
|
-
fee_asset: AssetJSON;
|
|
657
|
-
is_testnet: boolean;
|
|
658
|
-
ibc_transfer_to_axelar?: TransferJSON;
|
|
659
|
-
bridge_id: BridgeType;
|
|
660
|
-
smart_relay: boolean;
|
|
661
|
-
};
|
|
662
|
-
type AxelarTransfer = {
|
|
663
|
-
fromChain: string;
|
|
664
|
-
fromChainID: string;
|
|
665
|
-
toChain: string;
|
|
666
|
-
toChainID: string;
|
|
667
|
-
asset: string;
|
|
668
|
-
shouldUnwrap: boolean;
|
|
669
|
-
denomIn: string;
|
|
670
|
-
denomOut: string;
|
|
671
|
-
feeAmount: string;
|
|
672
|
-
usdFeeAmount: string;
|
|
673
|
-
feeAsset: Asset;
|
|
674
|
-
isTestnet: boolean;
|
|
675
|
-
ibcTransferToAxelar?: Transfer;
|
|
676
|
-
bridgeID: BridgeType;
|
|
677
|
-
smartRelay: boolean;
|
|
678
|
-
};
|
|
679
|
-
type BankSendJSON = {
|
|
680
|
-
chain_id: string;
|
|
681
|
-
denom: string;
|
|
682
|
-
};
|
|
683
|
-
type BankSend = {
|
|
684
|
-
chainID: string;
|
|
685
|
-
denom: string;
|
|
686
|
-
};
|
|
687
|
-
type MultiChainMsgJSON = {
|
|
688
|
-
chain_id: string;
|
|
689
|
-
path: string[];
|
|
690
|
-
msg: string;
|
|
691
|
-
msg_type_url: string;
|
|
692
|
-
};
|
|
693
|
-
type MultiChainMsg = {
|
|
694
|
-
chainID: string;
|
|
695
|
-
path: string[];
|
|
696
|
-
msg: string;
|
|
697
|
-
msgTypeURL: string;
|
|
698
|
-
};
|
|
699
|
-
type CosmosMsgJSON = {
|
|
700
|
-
msg: string;
|
|
701
|
-
msg_type_url: string;
|
|
702
|
-
};
|
|
703
|
-
type CosmosMsg = {
|
|
704
|
-
msg: string;
|
|
705
|
-
msgTypeURL: string;
|
|
706
|
-
};
|
|
707
|
-
type CosmosTxJSON = {
|
|
708
|
-
chain_id: string;
|
|
709
|
-
path: string[];
|
|
710
|
-
msgs: CosmosMsgJSON[];
|
|
711
|
-
signer_address: string;
|
|
712
|
-
};
|
|
713
|
-
type CosmosTx = {
|
|
714
|
-
chainID: string;
|
|
715
|
-
path: string[];
|
|
716
|
-
msgs: CosmosMsg[];
|
|
717
|
-
signerAddress: string;
|
|
718
|
-
};
|
|
719
|
-
type CCTPTransferJSON = {
|
|
720
|
-
from_chain_id: string;
|
|
721
|
-
to_chain_id: string;
|
|
722
|
-
burn_token: string;
|
|
723
|
-
bridge_id: BridgeType;
|
|
724
|
-
denom_in: string;
|
|
725
|
-
denom_out: string;
|
|
726
|
-
smart_relay: boolean;
|
|
727
|
-
smart_relay_fee_quote: SmartRelayFeeQuoteJSON;
|
|
728
|
-
};
|
|
729
|
-
type CCTPTransfer = {
|
|
730
|
-
fromChainID: string;
|
|
731
|
-
toChainID: string;
|
|
732
|
-
burnToken: string;
|
|
733
|
-
bridgeID: BridgeType;
|
|
734
|
-
denomIn: string;
|
|
735
|
-
denomOut: string;
|
|
736
|
-
smartRelay: boolean;
|
|
737
|
-
smartRelayFeeQuote: SmartRelayFeeQuote;
|
|
738
|
-
};
|
|
739
|
-
type HyperlaneTransferJSON = {
|
|
740
|
-
from_chain_id: string;
|
|
741
|
-
to_chain_id: string;
|
|
742
|
-
denom_in: string;
|
|
743
|
-
denom_out: string;
|
|
744
|
-
hyperlane_contract_address: string;
|
|
745
|
-
fee_amount: string;
|
|
746
|
-
usd_fee_amount?: string;
|
|
747
|
-
fee_asset: AssetJSON;
|
|
748
|
-
bridge_id: BridgeType;
|
|
749
|
-
smart_relay: boolean;
|
|
750
|
-
};
|
|
751
|
-
type HyperlaneTransfer = {
|
|
752
|
-
fromChainID: string;
|
|
753
|
-
toChainID: string;
|
|
754
|
-
denomIn: string;
|
|
755
|
-
denomOut: string;
|
|
756
|
-
hyperlaneContractAddress: string;
|
|
757
|
-
feeAmount: string;
|
|
758
|
-
usdFeeAmount?: string;
|
|
759
|
-
feeAsset: Asset;
|
|
760
|
-
bridgeID: BridgeType;
|
|
761
|
-
smartRelay: boolean;
|
|
762
|
-
};
|
|
763
|
-
type OPInitTransferJSON = {
|
|
764
|
-
from_chain_id: string;
|
|
765
|
-
to_chain_id: string;
|
|
766
|
-
denom_in: string;
|
|
767
|
-
denom_out: string;
|
|
768
|
-
op_init_bridge_id: string;
|
|
769
|
-
bridge_id: BridgeType;
|
|
770
|
-
smart_relay: boolean;
|
|
771
|
-
};
|
|
772
|
-
type OPInitTransfer = {
|
|
773
|
-
fromChainID: string;
|
|
774
|
-
toChainID: string;
|
|
775
|
-
denomIn: string;
|
|
776
|
-
denomOut: string;
|
|
777
|
-
opInitBridgeID: string;
|
|
778
|
-
bridgeID: BridgeType;
|
|
779
|
-
smartRelay: boolean;
|
|
780
|
-
};
|
|
781
|
-
type SmartRelayFeeQuoteJSON = {
|
|
782
|
-
fee_amount: string;
|
|
783
|
-
relayer_address: string;
|
|
784
|
-
expiration: Date;
|
|
785
|
-
fee_payment_address: string;
|
|
786
|
-
fee_denom: string;
|
|
787
|
-
};
|
|
788
|
-
type SmartRelayFeeQuote = {
|
|
789
|
-
feeAmount: string;
|
|
790
|
-
relayerAddress: string;
|
|
791
|
-
expiration: Date;
|
|
792
|
-
feePaymentAddress: string;
|
|
793
|
-
feeDenom: string;
|
|
794
|
-
};
|
|
795
|
-
type SwapVenueJSON = {
|
|
796
|
-
name: string;
|
|
797
|
-
chain_id: string;
|
|
798
|
-
logo_uri: string;
|
|
799
|
-
};
|
|
800
|
-
type SwapVenue = {
|
|
801
|
-
name: string;
|
|
802
|
-
chainID: string;
|
|
803
|
-
logoUri: string;
|
|
804
|
-
};
|
|
805
|
-
type SwapVenueRequestJSON = {
|
|
806
|
-
name: string;
|
|
807
|
-
chain_id: string;
|
|
808
|
-
};
|
|
809
|
-
type SwapVenueRequest = {
|
|
810
|
-
name: string;
|
|
811
|
-
chainID: string;
|
|
812
|
-
};
|
|
813
|
-
type SwapOperationJSON = {
|
|
814
|
-
pool: string;
|
|
815
|
-
denom_in: string;
|
|
816
|
-
denom_out: string;
|
|
817
|
-
interface?: string;
|
|
818
|
-
};
|
|
819
|
-
type SwapOperation = {
|
|
820
|
-
pool: string;
|
|
821
|
-
denomIn: string;
|
|
822
|
-
denomOut: string;
|
|
823
|
-
interface?: string;
|
|
824
|
-
};
|
|
825
|
-
type SwapExactCoinOutJSON = {
|
|
826
|
-
swap_venue: SwapVenueJSON;
|
|
827
|
-
swap_operations: SwapOperationJSON[];
|
|
828
|
-
swap_amount_out: string;
|
|
829
|
-
price_impact_percent?: string;
|
|
830
|
-
};
|
|
831
|
-
type SwapExactCoinOut = {
|
|
832
|
-
swapVenue: SwapVenue;
|
|
833
|
-
swapOperations: SwapOperation[];
|
|
834
|
-
swapAmountOut: string;
|
|
835
|
-
priceImpactPercent?: string;
|
|
836
|
-
};
|
|
837
|
-
type SwapExactCoinInJSON = {
|
|
838
|
-
swap_venue: SwapVenueJSON;
|
|
839
|
-
swap_operations: SwapOperationJSON[];
|
|
840
|
-
swap_amount_in?: string;
|
|
841
|
-
price_impact_percent?: string;
|
|
842
|
-
estimated_amount_out: string;
|
|
843
|
-
};
|
|
844
|
-
type SwapExactCoinIn = {
|
|
845
|
-
swapVenue: SwapVenue;
|
|
846
|
-
swapOperations: SwapOperation[];
|
|
847
|
-
swapAmountIn?: string;
|
|
848
|
-
priceImpactPercent?: string;
|
|
849
|
-
estimatedAmountOut: string;
|
|
850
|
-
};
|
|
851
|
-
type SwapRouteJSON = {
|
|
852
|
-
swap_amount_in: string;
|
|
853
|
-
denom_in: string;
|
|
854
|
-
swap_operations: SwapOperationJSON[];
|
|
855
|
-
};
|
|
856
|
-
type SwapRoute = {
|
|
857
|
-
swapAmountIn: string;
|
|
858
|
-
denomIn: string;
|
|
859
|
-
swapOperations: SwapOperation[];
|
|
860
|
-
};
|
|
861
|
-
type SmartSwapExactCoinInJSON = {
|
|
862
|
-
swap_venue: SwapVenueJSON;
|
|
863
|
-
swap_routes: SwapRouteJSON[];
|
|
864
|
-
estimated_amount_out: string;
|
|
865
|
-
};
|
|
866
|
-
type SmartSwapExactCoinIn = {
|
|
867
|
-
swapVenue: SwapVenue;
|
|
868
|
-
swapRoutes: SwapRoute[];
|
|
869
|
-
estimatedAmountOut: string;
|
|
870
|
-
};
|
|
871
|
-
type SwapJSON = ({
|
|
872
|
-
swap_in: SwapExactCoinInJSON;
|
|
873
|
-
} | {
|
|
874
|
-
swap_out: SwapExactCoinOutJSON;
|
|
875
|
-
} | {
|
|
876
|
-
smart_swap_in: SmartSwapExactCoinInJSON;
|
|
877
|
-
}) & {
|
|
878
|
-
estimated_affiliate_fee?: string;
|
|
879
|
-
from_chain_id: string;
|
|
880
|
-
chain_id: string;
|
|
881
|
-
denom_in: string;
|
|
882
|
-
denom_out: string;
|
|
883
|
-
swap_venues: SwapVenueJSON[];
|
|
884
|
-
};
|
|
885
|
-
type Swap = ({
|
|
886
|
-
swapIn: SwapExactCoinIn;
|
|
887
|
-
} | {
|
|
888
|
-
swapOut: SwapExactCoinOut;
|
|
889
|
-
} | {
|
|
890
|
-
smartSwapIn: SmartSwapExactCoinIn;
|
|
891
|
-
}) & {
|
|
892
|
-
estimatedAffiliateFee?: string;
|
|
893
|
-
fromChainID: string;
|
|
894
|
-
chainID: string;
|
|
895
|
-
denomIn: string;
|
|
896
|
-
denomOut: string;
|
|
897
|
-
swapVenues: SwapVenue[];
|
|
898
|
-
};
|
|
899
|
-
type EvmSwapJSON = {
|
|
900
|
-
input_token: string;
|
|
901
|
-
amount_in: string;
|
|
902
|
-
swap_calldata: string;
|
|
903
|
-
amount_out: string;
|
|
904
|
-
from_chain_id: string;
|
|
905
|
-
denom_in: string;
|
|
906
|
-
denom_out: string;
|
|
907
|
-
swap_venues: SwapVenueJSON[];
|
|
908
|
-
};
|
|
909
|
-
type EvmSwap = {
|
|
910
|
-
inputToken: string;
|
|
911
|
-
amountIn: string;
|
|
912
|
-
swapCalldata: string;
|
|
913
|
-
amountOut: string;
|
|
914
|
-
fromChainID: string;
|
|
915
|
-
denomIn: string;
|
|
916
|
-
denomOut: string;
|
|
917
|
-
swapVenues: SwapVenue[];
|
|
918
|
-
};
|
|
919
|
-
type AffiliateJSON = {
|
|
920
|
-
basis_points_fee: string;
|
|
921
|
-
address: string;
|
|
922
|
-
};
|
|
923
|
-
type Affiliate = {
|
|
924
|
-
basisPointsFee: string;
|
|
925
|
-
address: string;
|
|
926
|
-
};
|
|
927
|
-
type ChainAffiliatesJSON = {
|
|
928
|
-
affiliates: AffiliateJSON[];
|
|
929
|
-
};
|
|
930
|
-
type ChainAffiliates = {
|
|
931
|
-
affiliates: Affiliate[];
|
|
932
|
-
};
|
|
933
|
-
type Reason = 'UNKNOWN' | 'BASE_TOKEN' | 'MOST_LIQUID' | 'DIRECT';
|
|
934
|
-
type CosmWasmContractMsgJSON = {
|
|
935
|
-
contract_address: string;
|
|
936
|
-
msg: string;
|
|
937
|
-
};
|
|
938
|
-
type CosmWasmContractMsg = {
|
|
939
|
-
contractAddress: string;
|
|
940
|
-
msg: string;
|
|
941
|
-
};
|
|
942
|
-
type AutopilotAction = 'LIQUID_STAKE' | 'CLAIM';
|
|
943
|
-
type AutopilotMsg = {
|
|
944
|
-
receiver: string;
|
|
945
|
-
action: AutopilotAction;
|
|
946
|
-
};
|
|
947
|
-
type PostHandlerJSON = {
|
|
948
|
-
wasm_msg: CosmWasmContractMsgJSON;
|
|
949
|
-
} | {
|
|
950
|
-
autopilot_msg: AutopilotMsg;
|
|
951
|
-
};
|
|
952
|
-
type PostHandler = {
|
|
953
|
-
wasmMsg: CosmWasmContractMsg;
|
|
954
|
-
} | {
|
|
955
|
-
autopilotMsg: AutopilotMsg;
|
|
956
|
-
};
|
|
957
|
-
type ERC20ApprovalJSON = {
|
|
958
|
-
token_contract: string;
|
|
959
|
-
spender: string;
|
|
960
|
-
amount: string;
|
|
961
|
-
};
|
|
962
|
-
type ERC20Approval = {
|
|
963
|
-
tokenContract: string;
|
|
964
|
-
spender: string;
|
|
965
|
-
amount: string;
|
|
966
|
-
};
|
|
967
|
-
type SvmTxJSON = {
|
|
968
|
-
chain_id: string;
|
|
969
|
-
tx: string;
|
|
970
|
-
signer_address: string;
|
|
971
|
-
};
|
|
972
|
-
type SvmTx = {
|
|
973
|
-
chainID: string;
|
|
974
|
-
tx: string;
|
|
975
|
-
signerAddress: string;
|
|
976
|
-
};
|
|
977
|
-
type EvmTxJSON = {
|
|
978
|
-
chain_id: string;
|
|
979
|
-
to: string;
|
|
980
|
-
value: string;
|
|
981
|
-
data: string;
|
|
982
|
-
required_erc20_approvals: ERC20ApprovalJSON[];
|
|
983
|
-
signer_address: string;
|
|
984
|
-
};
|
|
985
|
-
type EvmTx = {
|
|
986
|
-
chainID: string;
|
|
987
|
-
to: string;
|
|
988
|
-
value: string;
|
|
989
|
-
data: string;
|
|
990
|
-
requiredERC20Approvals: ERC20Approval[];
|
|
991
|
-
signerAddress: string;
|
|
992
|
-
};
|
|
993
|
-
type DenomWithChainIDJSON = {
|
|
994
|
-
denom: string;
|
|
995
|
-
chain_id: string;
|
|
996
|
-
};
|
|
997
|
-
type DenomWithChainID = {
|
|
998
|
-
denom: string;
|
|
999
|
-
chainID: string;
|
|
1000
|
-
};
|
|
1001
|
-
type ApiError = {
|
|
1002
|
-
message: string;
|
|
1003
|
-
};
|
|
1004
|
-
type AssetOrErrorJSON = {
|
|
1005
|
-
asset: AssetJSON;
|
|
1006
|
-
} | {
|
|
1007
|
-
error: ApiError;
|
|
1008
|
-
};
|
|
1009
|
-
type AssetOrError = {
|
|
1010
|
-
asset: Asset;
|
|
1011
|
-
} | {
|
|
1012
|
-
error: ApiError;
|
|
1013
|
-
};
|
|
1014
|
-
type OriginAssetsRequestJSON = {
|
|
1015
|
-
assets: DenomWithChainIDJSON[];
|
|
1016
|
-
};
|
|
1017
|
-
type OriginAssetsRequest = {
|
|
1018
|
-
assets: DenomWithChainID[];
|
|
1019
|
-
};
|
|
1020
|
-
type OriginAssetsResponseJSON = {
|
|
1021
|
-
origin_assets: AssetOrErrorJSON[];
|
|
1022
|
-
};
|
|
1023
|
-
type OriginAssetsResponse = {
|
|
1024
|
-
originAssets: AssetOrError[];
|
|
1025
|
-
};
|
|
1026
|
-
type SmartSwapOptionsJSON = {
|
|
1027
|
-
split_routes?: boolean;
|
|
1028
|
-
evm_swaps?: boolean;
|
|
1029
|
-
};
|
|
1030
|
-
type SmartSwapOptions = {
|
|
1031
|
-
splitRoutes?: boolean;
|
|
1032
|
-
evmSwaps?: boolean;
|
|
1033
|
-
};
|
|
1034
|
-
|
|
1035
|
-
export type { SwapExactCoinInJSON as $, AssetsRequest as A, Bridge as B, CosmosMsg as C, DenomWithChainID as D, EvmTx as E, CosmosTxJSON as F, CosmosTx as G, CCTPTransferJSON as H, IBCAddressJSON as I, CCTPTransfer as J, HyperlaneTransferJSON as K, HyperlaneTransfer as L, MultiChainMsg as M, OPInitTransfer as N, OPInitTransferJSON as O, SmartRelayFeeQuoteJSON as P, SmartRelayFeeQuote as Q, RouteResponse as R, SvmTx as S, Tx as T, SwapVenueJSON as U, SwapVenueRequestJSON as V, SwapVenueRequest as W, SwapOperationJSON as X, SwapOperation as Y, SwapExactCoinOutJSON as Z, SwapExactCoinOut as _, ChainAffiliates as a, MsgsDirectRequestGivenInJSON as a$, SwapExactCoinIn as a0, SwapRouteJSON as a1, SwapRoute as a2, SmartSwapExactCoinInJSON as a3, SmartSwapExactCoinIn as a4, SwapJSON as a5, Swap as a6, EvmSwapJSON as a7, EvmSwap as a8, AffiliateJSON as a9, AssetRecommendationRequestJSON as aA, RecommendAssetsRequestJSON as aB, RecommendAssetsRequest as aC, RecommendAssetsResponseJSON as aD, RecommendAssetsResponse as aE, RecommendationEntryJSON as aF, RouteRequestBaseJSON as aG, RouteRequestGivenInJSON as aH, RouteRequestGivenOutJSON as aI, RouteRequestJSON as aJ, MsgsDirectResponseJSON as aK, RouteRequestBase as aL, RouteRequestGivenIn as aM, RouteRequestGivenOut as aN, RouteWarningType as aO, MsgsWarningType as aP, ExperimentalFeature as aQ, RouteWarning as aR, MsgsWarning as aS, FeeType as aT, EstimatedFee as aU, EstimatedFeeJSON as aV, OperationJSON as aW, Operation as aX, RouteResponseJSON as aY, MsgsRequestJSON as aZ, MsgsDirectRequestBaseJSON as a_, Affiliate as aa, ChainAffiliatesJSON as ab, Reason as ac, CosmWasmContractMsgJSON as ad, CosmWasmContractMsg as ae, AutopilotAction as af, AutopilotMsg as ag, PostHandlerJSON as ah, PostHandler as ai, ERC20ApprovalJSON as aj, ERC20Approval as ak, SvmTxJSON as al, EvmTxJSON as am, DenomWithChainIDJSON as an, ApiError as ao, AssetOrErrorJSON as ap, OriginAssetsRequestJSON as aq, OriginAssetsRequest as ar, OriginAssetsResponseJSON as as, OriginAssetsResponse as at, SmartSwapOptionsJSON as au, SmartSwapOptions as av, AssetsRequestJSON as aw, AssetsFromSourceRequestJSON as ax, AssetRecommendation as ay, AssetRecommendationJSON as az, Asset as b, MsgsDirectRequestGivenOutJSON as b0, MsgsDirectRequestJSON as b1, MsgsDirectRequestBase as b2, MsgsDirectRequestGivenIn as b3, MsgsDirectRequestGivenOut as b4, MsgJSON as b5, Msg as b6, TxJSON as b7, MsgsResponseJSON as b8, BridgeType as b9, AssetBetweenChainsJSON as ba, AssetsBetweenChainsRequestJSON as bb, AssetsBetweenChainsResponseJSON as bc, AssetsBetweenChainsResponse as bd, BalanceRequestChainEntryJSON as be, BalanceRequestChainEntry as bf, BalanceRequestJSON as bg, BalanceResponseDenomEntryJSON as bh, BalanceResponseDenomEntry as bi, BalanceResponseChainEntryJSON as bj, BalanceResponseChainEntry as bk, BalanceResponseJSON as bl, BridgesResponseJSON as bm, BridgesResponse as bn, BridgeJSON as bo, AssetsFromSourceRequest as c, AssetsBetweenChainsRequest as d, AssetBetweenChains as e, BalanceRequest as f, BalanceResponse as g, MsgsRequest as h, MsgsResponse as i, RouteRequest as j, MsgsDirectRequest as k, MsgsDirectResponse as l, AssetRecommendationRequest as m, RecommendationEntry as n, AssetOrError as o, SwapVenue as p, IBCAddress as q, AssetJSON as r, TransferJSON as s, Transfer as t, AxelarTransferJSON as u, AxelarTransfer as v, BankSendJSON as w, BankSend as x, MultiChainMsgJSON as y, CosmosMsgJSON as z };
|