@skip-go/client 0.17.2 → 1.0.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.
Files changed (54) hide show
  1. package/dist/api/getAssets.d.mts +19 -0
  2. package/dist/api/getAssets.mjs +25 -0
  3. package/dist/api/getAssetsBetweenChains.d.mts +56 -0
  4. package/dist/api/getAssetsBetweenChains.mjs +9 -0
  5. package/dist/api/getBridges.d.mts +54 -0
  6. package/dist/api/getBridges.mjs +10 -0
  7. package/dist/api/getChains.d.mts +41 -0
  8. package/dist/api/getChains.mjs +16 -0
  9. package/dist/api/getVenues.d.mts +13 -0
  10. package/dist/api/getVenues.mjs +10 -0
  11. package/dist/api/postAssetsFromSource.d.mts +13 -0
  12. package/dist/api/postAssetsFromSource.mjs +14 -0
  13. package/dist/api/postBalances.d.mts +35 -0
  14. package/dist/api/postBalances.mjs +16 -0
  15. package/dist/api/postIbcOriginAssets.d.mts +32 -0
  16. package/dist/api/postIbcOriginAssets.mjs +11 -0
  17. package/dist/api/postMessages.d.mts +528 -0
  18. package/dist/api/postMessages.mjs +10 -0
  19. package/dist/api/postMessagesDirect.d.mts +568 -0
  20. package/dist/api/postMessagesDirect.mjs +10 -0
  21. package/dist/api/postRecommendAssets.d.mts +40 -0
  22. package/dist/api/postRecommendAssets.mjs +13 -0
  23. package/dist/api/postRoute.d.mts +460 -0
  24. package/dist/api/postRoute.mjs +16 -0
  25. package/dist/api/postSubmitTransaction.d.mts +13 -0
  26. package/dist/api/postSubmitTransaction.mjs +10 -0
  27. package/dist/api/postTrackTransaction.d.mts +13 -0
  28. package/dist/api/postTrackTransaction.mjs +11 -0
  29. package/dist/api/postTransactionStatus.d.mts +559 -0
  30. package/dist/api/postTransactionStatus.mjs +10 -0
  31. package/dist/apiState-CdzxTxYd.d.mts +6 -0
  32. package/dist/chunk-AXBFBHS2.mjs +41 -0
  33. package/dist/client-types-CVch1pZ-.d.mts +60 -0
  34. package/dist/executeRoute-CRdeEz1o.d.mts +69 -0
  35. package/dist/generateApi-3mHZ6Zbr.d.mts +22 -0
  36. package/dist/index.d.mts +35 -0
  37. package/dist/index.mjs +24 -0
  38. package/dist/public-functions/executeRoute.d.mts +9 -0
  39. package/dist/public-functions/executeRoute.mjs +100 -0
  40. package/dist/public-functions/getFeeInfoForChain.d.mts +9 -0
  41. package/dist/public-functions/getFeeInfoForChain.mjs +47 -0
  42. package/dist/public-functions/getRecommendedGasPrice.d.mts +9 -0
  43. package/dist/public-functions/getRecommendedGasPrice.mjs +1366 -0
  44. package/dist/public-functions/getSigningStargateClient.d.mts +13 -0
  45. package/dist/public-functions/getSigningStargateClient.mjs +32 -0
  46. package/dist/public-functions/setApiOptions.d.mts +9 -0
  47. package/dist/public-functions/setApiOptions.mjs +46 -0
  48. package/dist/public-functions/setClientOptions.d.mts +9 -0
  49. package/dist/public-functions/setClientOptions.mjs +34 -0
  50. package/dist/setClientOptions-CVB_OUIn.d.mts +19 -0
  51. package/dist/swaggerTypes-O9-gvCT1.d.mts +1890 -0
  52. package/package.json +10 -4
  53. package/dist/index.d.ts +0 -2336
  54. package/dist/index.js +0 -264
package/dist/index.d.ts DELETED
@@ -1,2336 +0,0 @@
1
- import * as _solana_web3_js from '@solana/web3.js';
2
- import { Connection, SimulatedTransactionResponse } from '@solana/web3.js';
3
- import * as _cosmjs_cosmwasm_stargate from '@cosmjs/cosmwasm-stargate';
4
- import * as viem from 'viem';
5
- import { WalletClient } from 'viem';
6
- import { OfflineDirectSigner, GeneratedType, OfflineSigner, Registry, EncodeObject } from '@cosmjs/proto-signing';
7
- import { StdFee, GasPrice, AminoConverters, SignerData, AminoTypes, SigningStargateClient } from '@cosmjs/stargate';
8
- import { TxRaw } from 'cosmjs-types/cosmos/tx/v1beta1/tx';
9
- import { OfflineAminoSigner } from '@cosmjs/amino';
10
- import { Adapter } from '@solana/wallet-adapter-base';
11
- import { Msgs } from '@injectivelabs/sdk-ts';
12
-
13
- declare class RequestClient {
14
- private httpClient;
15
- constructor({ baseURL, apiKey }: {
16
- baseURL: string;
17
- apiKey?: string;
18
- });
19
- get<ResponseType = unknown, RequestParams = unknown>(path: string, params?: RequestParams): Promise<ResponseType>;
20
- post<ResponseType = unknown, Body = unknown>(path: string, data?: Body): Promise<ResponseType>;
21
- }
22
-
23
- type SubmitTxRequestJSON = {
24
- tx: string;
25
- chain_id: string;
26
- };
27
- type SubmitTxRequest = {
28
- tx: string;
29
- chainID: string;
30
- };
31
- type SubmitTxResponseJSON = {
32
- tx_hash: string;
33
- };
34
- type SubmitTxResponse = {
35
- txHash: string;
36
- };
37
- type StatusState = "STATE_UNKNOWN" | "STATE_SUBMITTED" | "STATE_PENDING" | "STATE_RECEIVED" | "STATE_COMPLETED" | "STATE_ABANDONED" | "STATE_COMPLETED_SUCCESS" | "STATE_COMPLETED_ERROR" | "STATE_PENDING_ERROR";
38
- type NextBlockingTransferJSON = {
39
- transfer_sequence_index: number;
40
- };
41
- type NextBlockingTransfer = {
42
- transferSequenceIndex: number;
43
- };
44
- type StatusRequestJSON = {
45
- tx_hash: string;
46
- chain_id: string;
47
- };
48
- type StatusRequest = {
49
- txHash: string;
50
- chainID: string;
51
- };
52
- type TransferState = "TRANSFER_UNKNOWN" | "TRANSFER_PENDING" | "TRANSFER_RECEIVED" | "TRANSFER_SUCCESS" | "TRANSFER_FAILURE";
53
- type TransferInfoJSON = {
54
- from_chain_id: string;
55
- to_chain_id: string;
56
- state: TransferState;
57
- packet_txs: PacketJSON;
58
- src_chain_id: string;
59
- dst_chain_id: string;
60
- };
61
- type TransferInfo = {
62
- fromChainID: string;
63
- toChainID: string;
64
- state: TransferState;
65
- packetTxs: Packet;
66
- /**
67
- * Deprecated use `packetTxs` instead
68
- */
69
- packetTXs: Packet;
70
- /**
71
- * Deprecated use `fromChainID` instead
72
- */
73
- srcChainID: string;
74
- /**
75
- * Deprecated use `toChainID` instead
76
- */
77
- dstChainID: string;
78
- };
79
- type TransferAssetReleaseJSON = {
80
- chain_id: string;
81
- denom: string;
82
- amount?: string;
83
- released: boolean;
84
- };
85
- type TransferAssetRelease = {
86
- chainID: string;
87
- denom: string;
88
- amount?: string;
89
- released: boolean;
90
- };
91
- type TxStatusResponseJSON = {
92
- status: StatusState;
93
- transfer_sequence: TransferEventJSON[];
94
- next_blocking_transfer: NextBlockingTransferJSON | null;
95
- transfer_asset_release: TransferAssetReleaseJSON | null;
96
- error: StatusError | null;
97
- state: StatusState;
98
- transfers: TransferStatusJSON[];
99
- };
100
- type TxStatusResponse = {
101
- status: StatusState;
102
- transferSequence: TransferEvent[];
103
- nextBlockingTransfer: NextBlockingTransfer | null;
104
- transferAssetRelease: TransferAssetRelease | null;
105
- error: StatusError | null;
106
- state: StatusState;
107
- transfers: TransferStatus[];
108
- };
109
- type TransferStatusJSON = {
110
- state: StatusState;
111
- transfer_sequence: TransferEventJSON[];
112
- next_blocking_transfer: NextBlockingTransferJSON | null;
113
- transfer_asset_release: TransferAssetReleaseJSON | null;
114
- error: StatusError | null;
115
- };
116
- type TransferStatus = {
117
- state: StatusState;
118
- transferSequence: TransferEvent[];
119
- nextBlockingTransfer: NextBlockingTransfer | null;
120
- transferAssetRelease: TransferAssetRelease | null;
121
- error: StatusError | null;
122
- };
123
- type PacketJSON = {
124
- send_tx: ChainTransactionJSON | null;
125
- receive_tx: ChainTransactionJSON | null;
126
- acknowledge_tx: ChainTransactionJSON | null;
127
- timeout_tx: ChainTransactionJSON | null;
128
- error: PacketError | null;
129
- };
130
- type Packet = {
131
- sendTx: ChainTransaction | null;
132
- receiveTx: ChainTransaction | null;
133
- acknowledgeTx: ChainTransaction | null;
134
- timeoutTx: ChainTransaction | null;
135
- error: PacketError | null;
136
- };
137
- type StatusErrorType = "STATUS_ERROR_UNKNOWN" | "STATUS_ERROR_TRANSACTION_EXECUTION" | "STATUS_ERROR_INDEXING";
138
- type TransactionExecutionError = {
139
- code: number;
140
- message: string;
141
- };
142
- type StatusErrorJSON = {
143
- code: number;
144
- message: string;
145
- type: StatusErrorType;
146
- details: {
147
- transaction_execution_error: TransactionExecutionError;
148
- };
149
- };
150
- type StatusError = {
151
- code: number;
152
- message: string;
153
- type: StatusErrorType;
154
- details: {
155
- transactionExecutionError: TransactionExecutionError;
156
- };
157
- };
158
- type PacketErrorType = "PACKET_ERROR_UNKNOWN" | "PACKET_ERROR_ACKNOWLEDGEMENT" | "PACKET_ERROR_TIMEOUT";
159
- type AcknowledgementError = {
160
- message: string;
161
- code: number;
162
- };
163
- type PacketErrorJSON = {
164
- code: number;
165
- message: string;
166
- type: PacketErrorType;
167
- details: {
168
- acknowledgement_error: AcknowledgementError;
169
- };
170
- };
171
- type PacketError = {
172
- code: number;
173
- message: string;
174
- type: PacketErrorType;
175
- details: {
176
- acknowledgementError: AcknowledgementError;
177
- };
178
- };
179
- type ChainTransactionJSON = {
180
- chain_id: string;
181
- tx_hash: string;
182
- explorer_link: string;
183
- };
184
- type ChainTransaction = {
185
- chainID: string;
186
- txHash: string;
187
- explorerLink: string;
188
- };
189
- type TrackTxRequestJSON = {
190
- tx_hash: string;
191
- chain_id: string;
192
- };
193
- type TrackTxRequest = {
194
- txHash: string;
195
- chainID: string;
196
- };
197
- type TrackTxResponseJSON = {
198
- tx_hash: string;
199
- explorer_link: string;
200
- };
201
- type TrackTxResponse = {
202
- txHash: string;
203
- explorerLink: string;
204
- };
205
- type AxelarTransferType = "AXELAR_TRANSFER_CONTRACT_CALL_WITH_TOKEN" | "AXELAR_TRANSFER_SEND_TOKEN";
206
- type AxelarTransferState = "AXELAR_TRANSFER_UNKNOWN" | "AXELAR_TRANSFER_PENDING_CONFIRMATION" | "AXELAR_TRANSFER_PENDING_RECEIPT" | "AXELAR_TRANSFER_SUCCESS" | "AXELAR_TRANSFER_FAILURE";
207
- type AxelarTransferInfoJSON = {
208
- from_chain_id: string;
209
- to_chain_id: string;
210
- type: AxelarTransferType;
211
- state: AxelarTransferState;
212
- txs: AxelarTransferTransactionsJSON;
213
- axelar_scan_link: string;
214
- src_chain_id: string;
215
- dst_chain_id: string;
216
- };
217
- type AxelarTransferInfo = {
218
- fromChainID: string;
219
- toChainID: string;
220
- type: AxelarTransferType;
221
- state: AxelarTransferState;
222
- txs: AxelarTransferTransactions;
223
- axelarScanLink: string;
224
- /**
225
- * Deprecated use `fromChainID` instead
226
- */
227
- srcChainID: string;
228
- /**
229
- * Deprecated use `toChainID` instead
230
- */
231
- dstChainID: string;
232
- };
233
- type AxelarTransferTransactionsJSON = {
234
- contract_call_with_token_txs: ContractCallWithTokenTransactionsJSON;
235
- } | {
236
- send_token_txs: SendTokenTransactionsJSON;
237
- };
238
- type AxelarTransferTransactions = {
239
- contractCallWithTokenTxs: ContractCallWithTokenTransactions;
240
- } | {
241
- sendTokenTxs: SendTokenTransactions;
242
- };
243
- type ContractCallWithTokenTransactionsJSON = {
244
- send_tx: ChainTransactionJSON | null;
245
- gas_paid_tx: ChainTransactionJSON | null;
246
- confirm_tx: ChainTransactionJSON | null;
247
- approve_tx: ChainTransactionJSON | null;
248
- execute_tx: ChainTransactionJSON | null;
249
- error: ContractCallWithTokenError | null;
250
- };
251
- type ContractCallWithTokenTransactions = {
252
- sendTx: ChainTransaction | null;
253
- gasPaidTx: ChainTransaction | null;
254
- confirmTx: ChainTransaction | null;
255
- approveTx: ChainTransaction | null;
256
- executeTx: ChainTransaction | null;
257
- error: ContractCallWithTokenError | null;
258
- };
259
- type ContractCallWithTokenError = {
260
- message: string;
261
- type: ContractCallWithTokenErrorType;
262
- };
263
- type ContractCallWithTokenErrorType = "CONTRACT_CALL_WITH_TOKEN_EXECUTION_ERROR";
264
- type SendTokenTransactionsJSON = {
265
- send_tx: ChainTransactionJSON | null;
266
- confirm_tx: ChainTransactionJSON | null;
267
- execute_tx: ChainTransactionJSON | null;
268
- error: SendTokenError | null;
269
- };
270
- type SendTokenTransactions = {
271
- sendTx: ChainTransaction | null;
272
- confirmTx: ChainTransaction | null;
273
- executeTx: ChainTransaction | null;
274
- error: SendTokenError | null;
275
- };
276
- type SendTokenErrorType = "SEND_TOKEN_EXECUTION_ERROR";
277
- type SendTokenError = {
278
- message: string;
279
- type: SendTokenErrorType;
280
- };
281
- type CCTPTransferState = "CCTP_TRANSFER_UNKNOWN" | "CCTP_TRANSFER_SENT" | "CCTP_TRANSFER_PENDING_CONFIRMATION" | "CCTP_TRANSFER_CONFIRMED" | "CCTP_TRANSFER_RECEIVED";
282
- type CCTPTransferTransactionsJSON = {
283
- send_tx: ChainTransactionJSON | null;
284
- receive_tx: ChainTransactionJSON | null;
285
- };
286
- type CCTPTransferTransactions = {
287
- sendTx: ChainTransaction | null;
288
- receiveTx: ChainTransaction | null;
289
- };
290
- type CCTPTransferInfoJSON = {
291
- from_chain_id: string;
292
- to_chain_id: string;
293
- state: CCTPTransferState;
294
- txs: CCTPTransferTransactionsJSON;
295
- src_chain_id: string;
296
- dst_chain_id: string;
297
- };
298
- type CCTPTransferInfo = {
299
- fromChainID: string;
300
- toChainID: string;
301
- state: CCTPTransferState;
302
- txs: CCTPTransferTransactions;
303
- /**
304
- * Deprecated use `fromChainID` instead
305
- */
306
- srcChainID: string;
307
- /**
308
- * Deprecated use `toChainID` instead
309
- */
310
- dstChainID: string;
311
- };
312
- type HyperlaneTransferState = "HYPERLANE_TRANSFER_UNKNOWN" | "HYPERLANE_TRANSFER_SENT" | "HYPERLANE_TRANSFER_FAILED" | "HYPERLANE_TRANSFER_RECEIVED";
313
- type HyperlaneTransferTransactionsJSON = {
314
- send_tx: ChainTransactionJSON | null;
315
- receive_tx: ChainTransactionJSON | null;
316
- };
317
- type HyperlaneTransferTransactions = {
318
- sendTx: ChainTransaction | null;
319
- receiveTx: ChainTransaction | null;
320
- };
321
- type HyperlaneTransferInfoJSON = {
322
- from_chain_id: string;
323
- to_chain_id: string;
324
- state: HyperlaneTransferState;
325
- txs: HyperlaneTransferTransactionsJSON;
326
- };
327
- type HyperlaneTransferInfo = {
328
- fromChainID: string;
329
- toChainID: string;
330
- state: HyperlaneTransferState;
331
- txs: HyperlaneTransferTransactions;
332
- };
333
- type GoFastTransferTransactionsJSON = {
334
- order_submitted_tx: ChainTransactionJSON | null;
335
- order_filled_tx: ChainTransactionJSON | null;
336
- order_refunded_tx: ChainTransactionJSON | null;
337
- order_timeout_tx: ChainTransactionJSON | null;
338
- };
339
- type GoFastTransferTransactions = {
340
- orderSubmittedTx: ChainTransaction | null;
341
- orderFilledTx: ChainTransaction | null;
342
- orderRefundedTx: ChainTransaction | null;
343
- orderTimeoutTx: ChainTransaction | null;
344
- };
345
- type GoFastTransferState = "GO_FAST_TRANSFER_UNKNOWN" | "GO_FAST_TRANSFER_SENT" | "GO_FAST_POST_ACTION_FAILED" | "GO_FAST_TRANSFER_TIMEOUT" | "GO_FAST_TRANSFER_FILLED" | "GO_FAST_TRANSFER_REFUNDED";
346
- type GoFastTransferInfoJSON = {
347
- from_chain_id: string;
348
- to_chain_id: string;
349
- state: GoFastTransferState;
350
- txs: GoFastTransferTransactionsJSON;
351
- error_message: string | null;
352
- };
353
- type GoFastTransferInfo = {
354
- fromChainID: string;
355
- toChainID: string;
356
- state: GoFastTransferState;
357
- txs: GoFastTransferTransactions;
358
- errorMessage: string | null;
359
- };
360
- type StargateTransferState = "STARGATE_TRANSFER_UNKNOWN" | "STARGATE_TRANSFER_SENT" | "STARGATE_TRANSFER_RECEIVED" | "STARGATE_TRANSFER_FAILED";
361
- type StargateTransferTransactionsJSON = {
362
- send_tx: ChainTransactionJSON | null;
363
- receive_tx: ChainTransactionJSON | null;
364
- error_tx: ChainTransactionJSON | null;
365
- };
366
- type StargateTransferTransactions = {
367
- sendTx: ChainTransaction | null;
368
- receiveTx: ChainTransaction | null;
369
- errorTx: ChainTransaction | null;
370
- };
371
- type StargateTransferInfoJSON = {
372
- from_chain_id: string;
373
- to_chain_id: string;
374
- state: StargateTransferState;
375
- txs: StargateTransferTransactionsJSON;
376
- };
377
- type StargateTransferInfo = {
378
- fromChainID: string;
379
- toChainID: string;
380
- state: StargateTransferState;
381
- txs: StargateTransferTransactions;
382
- };
383
- type LayerZeroTransferState = 'LAYER_ZERO_TRANSFER_UNKNOWN' | 'LAYER_ZERO_TRANSFER_SENT' | 'LAYER_ZERO_TRANSFER_RECEIVED' | 'LAYER_ZERO_TRANSFER_FAILED';
384
- type LayerZeroTransferTransactionsJSON = {
385
- send_tx: ChainTransactionJSON | null;
386
- receive_tx: ChainTransactionJSON | null;
387
- error_tx: ChainTransactionJSON | null;
388
- };
389
- type LayerZeroTransferTransactions = {
390
- sendTx: ChainTransaction | null;
391
- receiveTx: ChainTransaction | null;
392
- errorTx: ChainTransaction | null;
393
- };
394
- type LayerZeroTransferInfoJSON = {
395
- from_chain_id: string;
396
- to_chain_id: string;
397
- state: LayerZeroTransferState;
398
- txs: LayerZeroTransferTransactionsJSON;
399
- };
400
- type LayerZeroTransferInfo = {
401
- fromChainID: string;
402
- toChainID: string;
403
- state: LayerZeroTransferState;
404
- txs: LayerZeroTransferTransactions;
405
- };
406
- type OPInitTransferState = "OPINIT_TRANSFER_UNKNOWN" | "OPINIT_TRANSFER_SENT" | "OPINIT_TRANSFER_RECEIVED";
407
- type OPInitTransferTransactionsJSON = {
408
- send_tx: ChainTransactionJSON | null;
409
- receive_tx: ChainTransactionJSON | null;
410
- };
411
- type OPInitTransferTransactions = {
412
- sendTx: ChainTransaction | null;
413
- receiveTx: ChainTransaction | null;
414
- };
415
- type OPInitTransferInfoJSON = {
416
- from_chain_id: string;
417
- to_chain_id: string;
418
- state: OPInitTransferState;
419
- txs: OPInitTransferTransactionsJSON;
420
- };
421
- type OPInitTransferInfo = {
422
- fromChainID: string;
423
- toChainID: string;
424
- state: OPInitTransferState;
425
- txs: OPInitTransferTransactions;
426
- };
427
- type EurekaTransferInfoJSON = {
428
- from_chain_id: string;
429
- to_chain_id: string;
430
- state: TransferState;
431
- packet_txs: PacketJSON;
432
- };
433
- type EurekaTransferInfo = {
434
- fromChainID: string;
435
- toChainID: string;
436
- state: TransferState;
437
- packetTxs: Packet;
438
- };
439
- type TransferEventJSON = {
440
- ibc_transfer: TransferInfoJSON;
441
- } | {
442
- axelar_transfer: AxelarTransferInfoJSON;
443
- } | {
444
- cctp_transfer: CCTPTransferInfoJSON;
445
- } | {
446
- hyperlane_transfer: HyperlaneTransferInfoJSON;
447
- } | {
448
- op_init_transfer: OPInitTransferInfoJSON;
449
- } | {
450
- go_fast_transfer: GoFastTransferInfoJSON;
451
- } | {
452
- stargate_transfer: StargateTransferInfoJSON;
453
- } | {
454
- layer_zero_transfer: LayerZeroTransferInfoJSON;
455
- } | {
456
- eureka_transfer: EurekaTransferInfoJSON;
457
- };
458
- type TransferEvent = {
459
- ibcTransfer: TransferInfo;
460
- } | {
461
- axelarTransfer: AxelarTransferInfo;
462
- } | {
463
- cctpTransfer: CCTPTransferInfo;
464
- } | {
465
- hyperlaneTransfer: HyperlaneTransferInfo;
466
- } | {
467
- opInitTransfer: OPInitTransferInfo;
468
- } | {
469
- goFastTransfer: GoFastTransferInfo;
470
- } | {
471
- stargateTransfer: StargateTransferInfo;
472
- } | {
473
- layerZeroTransfer: LayerZeroTransferInfo;
474
- } | {
475
- eurekaTransfer: EurekaTransferInfo;
476
- };
477
- type CallbackStatus = "success" | "error" | "pending" | "completed";
478
- interface TransactionCallbacks {
479
- onTransactionSigned?: (txInfo: {
480
- chainID: string;
481
- }) => Promise<void>;
482
- onTransactionBroadcast?: (txInfo: {
483
- txHash: string;
484
- chainID: string;
485
- }) => Promise<void>;
486
- onTransactionTracked?: (txInfo: {
487
- txHash: string;
488
- chainID: string;
489
- explorerLink: string;
490
- }) => Promise<void>;
491
- onTransactionCompleted?: (chainID: string, txHash: string, status: TxStatusResponse) => Promise<void>;
492
- onValidateGasBalance?: (value: {
493
- chainID?: string;
494
- txIndex?: number;
495
- status: CallbackStatus;
496
- }) => Promise<void>;
497
- onApproveAllowance?: (value: {
498
- allowance?: ERC20Approval;
499
- status: CallbackStatus;
500
- }) => Promise<void>;
501
- }
502
-
503
- type IBCAddressJSON = {
504
- address: string;
505
- chain_id: string;
506
- };
507
- type IBCAddress = {
508
- address: string;
509
- chainID: string;
510
- };
511
- type AssetJSON = {
512
- denom: string;
513
- chain_id: string;
514
- origin_denom: string;
515
- origin_chain_id: string;
516
- trace: string;
517
- is_cw20: boolean;
518
- is_evm: boolean;
519
- is_svm: boolean;
520
- symbol: string | undefined;
521
- name: string | undefined;
522
- logo_uri: string | undefined;
523
- decimals: number | undefined;
524
- token_contract: string | undefined;
525
- description: string | undefined;
526
- coingecko_id: string | undefined;
527
- recommended_symbol: string | undefined;
528
- };
529
- type Asset = {
530
- denom: string;
531
- chainID: string;
532
- originDenom: string;
533
- originChainID: string;
534
- trace: string;
535
- isCW20: boolean;
536
- isEVM: boolean;
537
- isSVM: boolean;
538
- symbol: string | undefined;
539
- name: string | undefined;
540
- logoURI: string | undefined;
541
- decimals: number | undefined;
542
- tokenContract: string | undefined;
543
- description: string | undefined;
544
- coingeckoID: string | undefined;
545
- recommendedSymbol: string | undefined;
546
- };
547
- type TransferJSON = {
548
- port: string;
549
- channel: string;
550
- from_chain_id: string;
551
- to_chain_id: string;
552
- pfm_enabled: boolean;
553
- supports_memo: boolean;
554
- denom_in: string;
555
- denom_out: string;
556
- fee_amount?: string;
557
- usd_fee_amount?: string;
558
- fee_asset?: AssetJSON;
559
- bridge_id: BridgeType;
560
- smart_relay: boolean;
561
- to_chain_callback_contract_address?: string;
562
- to_chain_entry_contract_address?: string;
563
- /**
564
- * @deprecated use `from_chain_id` and `to_chain_id` instead
565
- */
566
- chain_id: string;
567
- /**
568
- * @deprecated use `denom_out` instead
569
- */
570
- dest_denom: string;
571
- };
572
- type Transfer = {
573
- port: string;
574
- channel: string;
575
- fromChainID: string;
576
- toChainID: string;
577
- pfmEnabled: boolean;
578
- supportsMemo: boolean;
579
- denomIn: string;
580
- denomOut: string;
581
- feeAmount?: string;
582
- usdFeeAmount?: string;
583
- feeAsset?: Asset;
584
- bridgeID: BridgeType;
585
- smartRelay: boolean;
586
- toChainCallbackContractAddress?: string;
587
- toChainEntryContractAddress?: string;
588
- /**
589
- * @deprecated use `fromChainID` and `toChainID` instead
590
- */
591
- chainID: string;
592
- /**
593
- * @deprecated use `denomOut` instead
594
- */
595
- destDenom: string;
596
- };
597
- type AxelarTransferJSON = {
598
- from_chain: string;
599
- from_chain_id: string;
600
- to_chain: string;
601
- to_chain_id: string;
602
- asset: string;
603
- should_unwrap: boolean;
604
- denom_in: string;
605
- denom_out: string;
606
- fee_amount: string;
607
- usd_fee_amount: string;
608
- fee_asset: AssetJSON;
609
- is_testnet: boolean;
610
- ibc_transfer_to_axelar?: TransferJSON;
611
- bridge_id: BridgeType;
612
- smart_relay: boolean;
613
- };
614
- type AxelarTransfer = {
615
- fromChain: string;
616
- fromChainID: string;
617
- toChain: string;
618
- toChainID: string;
619
- asset: string;
620
- shouldUnwrap: boolean;
621
- denomIn: string;
622
- denomOut: string;
623
- feeAmount: string;
624
- usdFeeAmount: string;
625
- feeAsset: Asset;
626
- isTestnet: boolean;
627
- ibcTransferToAxelar?: Transfer;
628
- bridgeID: BridgeType;
629
- smartRelay: boolean;
630
- };
631
- type GoFastFeeJSON = {
632
- fee_asset: AssetJSON;
633
- bps_fee: string;
634
- bps_fee_amount: string;
635
- bps_fee_usd: string;
636
- source_chain_fee_amount: string;
637
- source_chain_fee_usd: string;
638
- destination_chain_fee_amount: string;
639
- destination_chain_fee_usd: string;
640
- };
641
- type GoFastFee = {
642
- feeAsset: Asset;
643
- bpsFee: string;
644
- bpsFeeAmount: string;
645
- bpsFeeUSD: string;
646
- sourceChainFeeAmount: string;
647
- sourceChainFeeUSD: string;
648
- destinationChainFeeAmount: string;
649
- destinationChainFeeUSD: string;
650
- };
651
- type GoFastTransfer = {
652
- fromChainID: string;
653
- toChainID: string;
654
- fee: GoFastFee;
655
- bridgeID: BridgeType;
656
- denomIn: string;
657
- denomOut: string;
658
- sourceDomain: string;
659
- destinationDomain: string;
660
- };
661
- type GoFastTransferJSON = {
662
- from_chain_id: string;
663
- to_chain_id: string;
664
- fee: GoFastFeeJSON;
665
- bridge_id: BridgeType;
666
- denom_in: string;
667
- denom_out: string;
668
- source_domain: string;
669
- destination_domain: string;
670
- };
671
- type StargateTransferJSON = {
672
- from_chain_id: string;
673
- to_chain_id: string;
674
- denom_in: string;
675
- denom_out: string;
676
- pool_address: string;
677
- destination_endpoint_id: number;
678
- oft_fee_asset: AssetJSON;
679
- oft_fee_amount: string;
680
- oft_fee_amount_usd: string;
681
- messaging_fee_asset: AssetJSON;
682
- messaging_fee_amount: string;
683
- messaging_fee_amount_usd: string;
684
- bridge_id: BridgeType;
685
- };
686
- type StargateTransfer = {
687
- fromChainID: string;
688
- toChainID: string;
689
- denomIn: string;
690
- denomOut: string;
691
- poolAddress: string;
692
- destinationEndpointID: number;
693
- oftFeeAsset: Asset;
694
- oftFeeAmount: string;
695
- oftFeeAmountUSD: string;
696
- messagingFeeAsset: Asset;
697
- messagingFeeAmount: string;
698
- messagingFeeAmountUSD: string;
699
- bridgeID: BridgeType;
700
- };
701
- type LayerZeroTransferJSON = {
702
- from_chain_id: string;
703
- to_chain_id: string;
704
- denom_in: string;
705
- denom_out: string;
706
- source_oft_contract_address: string;
707
- destination_endpoint_id: number;
708
- messaging_fee_asset: AssetJSON;
709
- messaging_fee_amount: string;
710
- messaging_fee_amount_usd: string;
711
- bridge_id: BridgeType;
712
- };
713
- type LayerZeroTransfer = {
714
- fromChainID: string;
715
- toChainID: string;
716
- denomIn: string;
717
- denomOut: string;
718
- sourceOFTContractAddress: string;
719
- destinationEndpointID: number;
720
- messagingFeeAsset: Asset;
721
- messagingFeeAmount: string;
722
- messagingFeeAmountUSD: string;
723
- bridgeID: BridgeType;
724
- };
725
- type BankSendJSON = {
726
- chain_id: string;
727
- denom: string;
728
- };
729
- type BankSend = {
730
- chainID: string;
731
- denom: string;
732
- };
733
- type MultiChainMsgJSON = {
734
- chain_id: string;
735
- path: string[];
736
- msg: string;
737
- msg_type_url: string;
738
- };
739
- type MultiChainMsg = {
740
- chainID: string;
741
- path: string[];
742
- msg: string;
743
- msgTypeURL: string;
744
- };
745
- type CosmosMsgJSON = {
746
- msg: string;
747
- msg_type_url: string;
748
- };
749
- type CosmosMsg = {
750
- msg: string;
751
- msgTypeURL: string;
752
- };
753
- type CosmosTxJSON = {
754
- chain_id: string;
755
- path: string[];
756
- msgs: CosmosMsgJSON[];
757
- signer_address: string;
758
- };
759
- type CosmosTx = {
760
- chainID: string;
761
- path: string[];
762
- msgs: CosmosMsg[];
763
- signerAddress: string;
764
- };
765
- type CCTPTransferJSON = {
766
- from_chain_id: string;
767
- to_chain_id: string;
768
- burn_token: string;
769
- bridge_id: BridgeType;
770
- denom_in: string;
771
- denom_out: string;
772
- smart_relay: boolean;
773
- smart_relay_fee_quote?: SmartRelayFeeQuoteJSON;
774
- };
775
- type CCTPTransfer = {
776
- fromChainID: string;
777
- toChainID: string;
778
- burnToken: string;
779
- bridgeID: BridgeType;
780
- denomIn: string;
781
- denomOut: string;
782
- smartRelay: boolean;
783
- smartRelayFeeQuote?: SmartRelayFeeQuote;
784
- };
785
- type HyperlaneTransferJSON = {
786
- from_chain_id: string;
787
- to_chain_id: string;
788
- denom_in: string;
789
- denom_out: string;
790
- hyperlane_contract_address: string;
791
- fee_amount: string;
792
- usd_fee_amount?: string;
793
- fee_asset: AssetJSON;
794
- bridge_id: BridgeType;
795
- smart_relay: boolean;
796
- };
797
- type HyperlaneTransfer = {
798
- fromChainID: string;
799
- toChainID: string;
800
- denomIn: string;
801
- denomOut: string;
802
- hyperlaneContractAddress: string;
803
- feeAmount: string;
804
- usdFeeAmount?: string;
805
- feeAsset: Asset;
806
- bridgeID: BridgeType;
807
- smartRelay: boolean;
808
- };
809
- type OPInitTransferJSON = {
810
- from_chain_id: string;
811
- to_chain_id: string;
812
- denom_in: string;
813
- denom_out: string;
814
- op_init_bridge_id: string;
815
- bridge_id: BridgeType;
816
- smart_relay: boolean;
817
- };
818
- type OPInitTransfer = {
819
- fromChainID: string;
820
- toChainID: string;
821
- denomIn: string;
822
- denomOut: string;
823
- opInitBridgeID: string;
824
- bridgeID: BridgeType;
825
- smartRelay: boolean;
826
- };
827
- type EurekaTransferJSON = {
828
- destination_port: string;
829
- source_client: string;
830
- from_chain_id: string;
831
- to_chain_id: string;
832
- pfm_enabled: boolean;
833
- supports_memo: boolean;
834
- entry_contract_address: string;
835
- callback_adapter_contract_address: string;
836
- denom_in: string;
837
- denom_out: string;
838
- bridge_id: BridgeType;
839
- smart_relay: boolean;
840
- smart_relay_fee_quote?: SmartRelayFeeQuoteJSON;
841
- to_chain_callback_contract_address?: string;
842
- to_chain_entry_contract_address?: string;
843
- };
844
- type EurekaTransfer = {
845
- destinationPort: string;
846
- sourceClient: string;
847
- fromChainID: string;
848
- toChainID: string;
849
- pfmEnabled: boolean;
850
- supportsMemo: boolean;
851
- entryContractAddress: string;
852
- callbackAdapterContractAddress: string;
853
- denomIn: string;
854
- denomOut: string;
855
- bridgeID: BridgeType;
856
- smartRelay: boolean;
857
- smartRelayFeeQuote?: SmartRelayFeeQuote;
858
- toChainCallbackContractAddress?: string;
859
- toChainEntryContractAddress?: string;
860
- };
861
- type SmartRelayFeeQuoteJSON = {
862
- fee_amount: string;
863
- relayer_address: string;
864
- expiration: Date;
865
- fee_payment_address: string;
866
- fee_denom: string;
867
- };
868
- type SmartRelayFeeQuote = {
869
- feeAmount: string;
870
- relayerAddress: string;
871
- expiration: Date;
872
- feePaymentAddress: string;
873
- feeDenom: string;
874
- };
875
- type SwapVenueJSON = {
876
- name: string;
877
- chain_id: string;
878
- logo_uri: string;
879
- };
880
- type SwapVenue = {
881
- name: string;
882
- chainID: string;
883
- logoUri: string;
884
- };
885
- type SwapVenueRequestJSON = {
886
- name: string;
887
- chain_id: string;
888
- };
889
- type SwapVenueRequest = {
890
- name: string;
891
- chainID: string;
892
- };
893
- type SwapOperationJSON = {
894
- pool: string;
895
- denom_in: string;
896
- denom_out: string;
897
- interface?: string;
898
- };
899
- type SwapOperation = {
900
- pool: string;
901
- denomIn: string;
902
- denomOut: string;
903
- interface?: string;
904
- };
905
- type SwapExactCoinOutJSON = {
906
- swap_venue: SwapVenueJSON;
907
- swap_operations: SwapOperationJSON[];
908
- swap_amount_out: string;
909
- price_impact_percent?: string;
910
- };
911
- type SwapExactCoinOut = {
912
- swapVenue: SwapVenue;
913
- swapOperations: SwapOperation[];
914
- swapAmountOut: string;
915
- priceImpactPercent?: string;
916
- };
917
- type SwapExactCoinInJSON = {
918
- swap_venue: SwapVenueJSON;
919
- swap_operations: SwapOperationJSON[];
920
- swap_amount_in?: string;
921
- price_impact_percent?: string;
922
- estimated_amount_out: string;
923
- };
924
- type SwapExactCoinIn = {
925
- swapVenue: SwapVenue;
926
- swapOperations: SwapOperation[];
927
- swapAmountIn?: string;
928
- priceImpactPercent?: string;
929
- estimatedAmountOut: string;
930
- };
931
- type SwapRouteJSON = {
932
- swap_amount_in: string;
933
- denom_in: string;
934
- swap_operations: SwapOperationJSON[];
935
- };
936
- type SwapRoute = {
937
- swapAmountIn: string;
938
- denomIn: string;
939
- swapOperations: SwapOperation[];
940
- };
941
- type SmartSwapExactCoinInJSON = {
942
- swap_venue: SwapVenueJSON;
943
- swap_routes: SwapRouteJSON[];
944
- estimated_amount_out: string;
945
- };
946
- type SmartSwapExactCoinIn = {
947
- swapVenue: SwapVenue;
948
- swapRoutes: SwapRoute[];
949
- estimatedAmountOut: string;
950
- };
951
- type SwapJSON = ({
952
- swap_in: SwapExactCoinInJSON;
953
- } | {
954
- swap_out: SwapExactCoinOutJSON;
955
- } | {
956
- smart_swap_in: SmartSwapExactCoinInJSON;
957
- }) & {
958
- estimated_affiliate_fee?: string;
959
- from_chain_id: string;
960
- chain_id: string;
961
- denom_in: string;
962
- denom_out: string;
963
- swap_venues: SwapVenueJSON[];
964
- };
965
- type Swap = ({
966
- swapIn: SwapExactCoinIn;
967
- } | {
968
- swapOut: SwapExactCoinOut;
969
- } | {
970
- smartSwapIn: SmartSwapExactCoinIn;
971
- }) & {
972
- estimatedAffiliateFee?: string;
973
- fromChainID: string;
974
- chainID: string;
975
- denomIn: string;
976
- denomOut: string;
977
- swapVenues: SwapVenue[];
978
- };
979
- type EvmSwapJSON = {
980
- input_token: string;
981
- amount_in: string;
982
- swap_calldata: string;
983
- amount_out: string;
984
- from_chain_id: string;
985
- denom_in: string;
986
- denom_out: string;
987
- swap_venues: SwapVenueJSON[];
988
- };
989
- type EvmSwap = {
990
- inputToken: string;
991
- amountIn: string;
992
- swapCalldata: string;
993
- amountOut: string;
994
- fromChainID: string;
995
- denomIn: string;
996
- denomOut: string;
997
- swapVenues: SwapVenue[];
998
- };
999
- type AffiliateJSON = {
1000
- basis_points_fee: string;
1001
- address: string;
1002
- };
1003
- type Affiliate = {
1004
- basisPointsFee: string;
1005
- address: string;
1006
- };
1007
- type ChainAffiliatesJSON = {
1008
- affiliates: AffiliateJSON[];
1009
- };
1010
- type ChainAffiliates = {
1011
- affiliates: Affiliate[];
1012
- };
1013
- type Reason = "UNKNOWN" | "BASE_TOKEN" | "MOST_LIQUID" | "DIRECT";
1014
- type CosmWasmContractMsgJSON = {
1015
- contract_address: string;
1016
- msg: string;
1017
- };
1018
- type CosmWasmContractMsg = {
1019
- contractAddress: string;
1020
- msg: string;
1021
- };
1022
- type AutopilotAction = "LIQUID_STAKE" | "CLAIM";
1023
- type AutopilotMsg = {
1024
- receiver: string;
1025
- action: AutopilotAction;
1026
- };
1027
- type PostHandlerJSON = {
1028
- wasm_msg: CosmWasmContractMsgJSON;
1029
- } | {
1030
- autopilot_msg: AutopilotMsg;
1031
- };
1032
- type PostHandler = {
1033
- wasmMsg: CosmWasmContractMsg;
1034
- } | {
1035
- autopilotMsg: AutopilotMsg;
1036
- };
1037
- type ERC20ApprovalJSON = {
1038
- token_contract: string;
1039
- spender: string;
1040
- amount: string;
1041
- };
1042
- type ERC20Approval = {
1043
- tokenContract: string;
1044
- spender: string;
1045
- amount: string;
1046
- };
1047
- type SvmTxJSON = {
1048
- chain_id: string;
1049
- tx: string;
1050
- signer_address: string;
1051
- };
1052
- type SvmTx = {
1053
- chainID: string;
1054
- tx: string;
1055
- signerAddress: string;
1056
- };
1057
- type EvmTxJSON = {
1058
- chain_id: string;
1059
- to: string;
1060
- value: string;
1061
- data: string;
1062
- required_erc20_approvals: ERC20ApprovalJSON[];
1063
- signer_address: string;
1064
- };
1065
- type EvmTx = {
1066
- chainID: string;
1067
- to: string;
1068
- value: string;
1069
- data: string;
1070
- requiredERC20Approvals: ERC20Approval[];
1071
- signerAddress: string;
1072
- };
1073
- type DenomWithChainIDJSON = {
1074
- denom: string;
1075
- chain_id: string;
1076
- };
1077
- type DenomWithChainID = {
1078
- denom: string;
1079
- chainID: string;
1080
- };
1081
- type ApiError = {
1082
- message: string;
1083
- };
1084
- type AssetOrErrorJSON = {
1085
- asset: AssetJSON;
1086
- } | {
1087
- error: ApiError;
1088
- };
1089
- type AssetOrError = {
1090
- asset: Asset;
1091
- } | {
1092
- error: ApiError;
1093
- };
1094
- type OriginAssetsRequestJSON = {
1095
- assets: DenomWithChainIDJSON[];
1096
- };
1097
- type OriginAssetsRequest = {
1098
- assets: DenomWithChainID[];
1099
- };
1100
- type OriginAssetsResponseJSON = {
1101
- origin_assets: AssetOrErrorJSON[];
1102
- };
1103
- type OriginAssetsResponse = {
1104
- originAssets: AssetOrError[];
1105
- };
1106
- type SmartSwapOptionsJSON = {
1107
- split_routes?: boolean;
1108
- evm_swaps?: boolean;
1109
- };
1110
- type SmartSwapOptions = {
1111
- splitRoutes?: boolean;
1112
- evmSwaps?: boolean;
1113
- };
1114
-
1115
- type AssetsRequestJSON = {
1116
- chain_ids?: string[];
1117
- native_only?: boolean;
1118
- include_no_metadata_assets?: boolean;
1119
- include_cw20_assets?: boolean;
1120
- include_evm_assets?: boolean;
1121
- include_svm_assets?: boolean;
1122
- only_testnets?: boolean;
1123
- /**
1124
- * @deprecated Use `chain_ids` instead
1125
- */
1126
- chain_id?: string;
1127
- };
1128
- type AssetsRequest = {
1129
- chainIDs?: string[];
1130
- nativeOnly?: boolean;
1131
- includeNoMetadataAssets?: boolean;
1132
- includeCW20Assets?: boolean;
1133
- includeEvmAssets?: boolean;
1134
- includeSvmAssets?: boolean;
1135
- onlyTestnets?: boolean;
1136
- /**
1137
- * @deprecated Use `chainIDs` instead
1138
- */
1139
- chainID?: string;
1140
- };
1141
- type AssetsFromSourceRequestJSON = {
1142
- source_asset_denom: string;
1143
- source_asset_chain_id: string;
1144
- allow_multi_tx?: boolean;
1145
- include_cw20_assets: boolean;
1146
- };
1147
- type AssetsFromSourceRequest = {
1148
- sourceAssetDenom: string;
1149
- sourceAssetChainID: string;
1150
- allowMultiTx?: boolean;
1151
- includeCW20Assets: boolean;
1152
- };
1153
- type AssetRecommendation = {
1154
- asset: Asset;
1155
- reason: Reason;
1156
- };
1157
- type AssetRecommendationJSON = {
1158
- asset: AssetJSON;
1159
- reason: Reason;
1160
- };
1161
- type AssetRecommendationRequestJSON = {
1162
- source_asset_denom: string;
1163
- source_asset_chain_id: string;
1164
- dest_chain_id: string;
1165
- reason?: Reason;
1166
- };
1167
- type AssetRecommendationRequest = {
1168
- sourceAssetDenom: string;
1169
- sourceAssetChainID: string;
1170
- destChainID: string;
1171
- reason?: Reason;
1172
- };
1173
- type ChainsRequest = {
1174
- includeEVM?: boolean;
1175
- includeSVM?: boolean;
1176
- onlyTestnets?: boolean;
1177
- chainIDs?: string[];
1178
- };
1179
- type ChainsRequestJSON = {
1180
- include_evm?: boolean;
1181
- include_svm?: boolean;
1182
- only_testnets?: boolean;
1183
- chain_ids?: string[];
1184
- };
1185
- type RecommendAssetsRequestJSON = {
1186
- requests: AssetRecommendationRequestJSON[];
1187
- };
1188
- type RecommendAssetsRequest = {
1189
- requests: AssetRecommendationRequest[];
1190
- };
1191
- type RecommendAssetsResponseJSON = {
1192
- recommendations: AssetRecommendationJSON[];
1193
- recommendation_entries: RecommendationEntryJSON[];
1194
- };
1195
- type RecommendAssetsResponse = {
1196
- recommendations: AssetRecommendation[];
1197
- recommendationEntries: RecommendationEntry[];
1198
- };
1199
- type RecommendationEntryJSON = {
1200
- recommendations: AssetRecommendationJSON[];
1201
- error?: ApiError;
1202
- };
1203
- type RecommendationEntry = {
1204
- recommendations: AssetRecommendation[];
1205
- error?: ApiError;
1206
- };
1207
- type RouteRequestBaseJSON = {
1208
- source_asset_denom: string;
1209
- source_asset_chain_id: string;
1210
- dest_asset_denom: string;
1211
- dest_asset_chain_id: string;
1212
- cumulative_affiliate_fee_bps?: string;
1213
- swap_venue?: SwapVenueRequestJSON;
1214
- swap_venues?: SwapVenueRequestJSON[];
1215
- allow_unsafe?: boolean;
1216
- experimental_features?: ExperimentalFeature[];
1217
- bridges?: BridgeType[];
1218
- allow_multi_tx?: boolean;
1219
- smart_relay?: boolean;
1220
- smart_swap_options?: SmartSwapOptionsJSON;
1221
- allow_swaps?: boolean;
1222
- go_fast?: boolean;
1223
- };
1224
- type RouteRequestGivenInJSON = RouteRequestBaseJSON & {
1225
- amount_in: string;
1226
- amount_out?: never;
1227
- };
1228
- type RouteRequestGivenOutJSON = RouteRequestBaseJSON & {
1229
- amount_in?: never;
1230
- amount_out: string;
1231
- };
1232
- type RouteRequestJSON = RouteRequestGivenInJSON | RouteRequestGivenOutJSON;
1233
- type MsgsDirectResponse = {
1234
- msgs: Msg[];
1235
- txs: Tx[];
1236
- route: RouteResponse;
1237
- warning?: MsgsWarning;
1238
- };
1239
- type MsgsDirectResponseJSON = {
1240
- msgs: MsgJSON[];
1241
- txs: TxJSON[];
1242
- route: RouteResponseJSON;
1243
- warning?: MsgsWarning;
1244
- };
1245
- type RouteRequestBase = RouteConfig & {
1246
- sourceAssetDenom: string;
1247
- sourceAssetChainID: string;
1248
- destAssetDenom: string;
1249
- destAssetChainID: string;
1250
- };
1251
- type RouteConfig = {
1252
- cumulativeAffiliateFeeBPS?: string;
1253
- swapVenue?: SwapVenueRequest;
1254
- swapVenues?: SwapVenueRequest[];
1255
- allowUnsafe?: boolean;
1256
- experimentalFeatures?: ExperimentalFeature[];
1257
- bridges?: BridgeType[];
1258
- allowMultiTx?: boolean;
1259
- smartRelay?: boolean;
1260
- smartSwapOptions?: SmartSwapOptions;
1261
- allowSwaps?: boolean;
1262
- goFast?: boolean;
1263
- };
1264
- type RouteRequestGivenIn = RouteRequestBase & {
1265
- amountIn: string;
1266
- amountOut?: never;
1267
- };
1268
- type RouteRequestGivenOut = RouteRequestBase & {
1269
- amountIn?: never;
1270
- amountOut: string;
1271
- };
1272
- type RouteRequest = RouteRequestGivenIn | RouteRequestGivenOut;
1273
- type RouteWarningType = "LOW_INFO_WARNING" | "BAD_PRICE_WARNING";
1274
- type MsgsWarningType = "INSUFFICIENT_GAS_AT_DEST_EOA" | "INSUFFICIENT_GAS_AT_INTERMEDIATE";
1275
- type ExperimentalFeature = "cctp" | "hyperlane" | "stargate" | "eureka" | "layer_zero";
1276
- type RouteWarning = {
1277
- type: RouteWarningType;
1278
- message: string;
1279
- };
1280
- type MsgsWarning = {
1281
- type: MsgsWarningType;
1282
- message: string;
1283
- };
1284
- declare enum FeeType {
1285
- SMART_RELAY = "SMART_RELAY",
1286
- BRIDGE = "BRIDGE"
1287
- }
1288
- type EstimatedFee = {
1289
- feeType: FeeType;
1290
- bridgeID: BridgeType;
1291
- amount: string;
1292
- usdAmount: string;
1293
- originAsset: Asset;
1294
- chainID: string;
1295
- txIndex: number;
1296
- operationIndex?: number;
1297
- };
1298
- type EstimatedFeeJSON = {
1299
- fee_type: FeeType;
1300
- bridge_id: BridgeType;
1301
- amount: string;
1302
- usd_amount: string;
1303
- origin_asset: AssetJSON;
1304
- chain_id: string;
1305
- tx_index: number;
1306
- operation_index?: number;
1307
- };
1308
- interface BaseOperationJSON {
1309
- tx_index: number;
1310
- amount_in: string;
1311
- amount_out: string;
1312
- }
1313
- type OperationJSON = (BaseOperationJSON & {
1314
- transfer: TransferJSON;
1315
- }) | (BaseOperationJSON & {
1316
- bank_send: BankSendJSON;
1317
- }) | (BaseOperationJSON & {
1318
- swap: SwapJSON;
1319
- }) | (BaseOperationJSON & {
1320
- axelar_transfer: AxelarTransferJSON;
1321
- }) | (BaseOperationJSON & {
1322
- cctp_transfer: CCTPTransferJSON;
1323
- }) | (BaseOperationJSON & {
1324
- hyperlane_transfer: HyperlaneTransferJSON;
1325
- }) | (BaseOperationJSON & {
1326
- evm_swap: EvmSwapJSON;
1327
- }) | (BaseOperationJSON & {
1328
- op_init_transfer: OPInitTransferJSON;
1329
- }) | (BaseOperationJSON & {
1330
- go_fast_transfer: GoFastTransferJSON;
1331
- }) | (BaseOperationJSON & {
1332
- stargate_transfer: StargateTransferJSON;
1333
- }) | (BaseOperationJSON & {
1334
- layer_zero_transfer: LayerZeroTransferJSON;
1335
- }) | (BaseOperationJSON & {
1336
- eureka_transfer: EurekaTransferJSON;
1337
- }) | (BaseOperationJSON & {
1338
- stargate_transfer: StargateTransferJSON;
1339
- });
1340
- interface BaseOperation {
1341
- txIndex: number;
1342
- amountIn: string;
1343
- amountOut: string;
1344
- }
1345
- type Operation = (BaseOperation & {
1346
- transfer: Transfer;
1347
- }) | (BaseOperation & {
1348
- bankSend: BankSend;
1349
- }) | (BaseOperation & {
1350
- swap: Swap;
1351
- }) | (BaseOperation & {
1352
- axelarTransfer: AxelarTransfer;
1353
- }) | (BaseOperation & {
1354
- cctpTransfer: CCTPTransfer;
1355
- }) | (BaseOperation & {
1356
- hyperlaneTransfer: HyperlaneTransfer;
1357
- }) | (BaseOperation & {
1358
- evmSwap: EvmSwap;
1359
- }) | (BaseOperation & {
1360
- opInitTransfer: OPInitTransfer;
1361
- }) | (BaseOperation & {
1362
- goFastTransfer: GoFastTransfer;
1363
- }) | (BaseOperation & {
1364
- stargateTransfer: StargateTransfer;
1365
- }) | (BaseOperation & {
1366
- layerZeroTransfer: LayerZeroTransfer;
1367
- }) | (BaseOperation & {
1368
- eurekaTransfer: EurekaTransfer;
1369
- }) | (BaseOperation & {
1370
- stargateTransfer: StargateTransfer;
1371
- });
1372
- type RouteResponseJSON = {
1373
- source_asset_denom: string;
1374
- source_asset_chain_id: string;
1375
- dest_asset_denom: string;
1376
- dest_asset_chain_id: string;
1377
- amount_in: string;
1378
- amount_out: string;
1379
- operations: OperationJSON[];
1380
- chain_ids: string[];
1381
- required_chain_addresses: string[];
1382
- does_swap: boolean;
1383
- estimated_amount_out?: string;
1384
- swap_venues?: SwapVenueJSON[];
1385
- txs_required: number;
1386
- usd_amount_in?: string;
1387
- usd_amount_out?: string;
1388
- swap_price_impact_percent?: string;
1389
- warning?: RouteWarning;
1390
- estimated_fees: EstimatedFeeJSON[];
1391
- estimated_route_duration_seconds: number;
1392
- };
1393
- type RouteResponse = {
1394
- sourceAssetDenom: string;
1395
- sourceAssetChainID: string;
1396
- destAssetDenom: string;
1397
- destAssetChainID: string;
1398
- amountIn: string;
1399
- amountOut: string;
1400
- operations: Operation[];
1401
- chainIDs: string[];
1402
- requiredChainAddresses: string[];
1403
- doesSwap: boolean;
1404
- estimatedAmountOut?: string;
1405
- swapVenues?: SwapVenue[];
1406
- txsRequired: number;
1407
- usdAmountIn?: string;
1408
- usdAmountOut?: string;
1409
- swapPriceImpactPercent?: string;
1410
- warning?: RouteWarning;
1411
- estimatedFees: EstimatedFee[];
1412
- estimatedRouteDurationSeconds: number;
1413
- };
1414
- type MsgsRequestJSON = {
1415
- source_asset_denom: string;
1416
- source_asset_chain_id: string;
1417
- dest_asset_denom: string;
1418
- dest_asset_chain_id: string;
1419
- amount_in: string;
1420
- amount_out: string;
1421
- address_list: string[];
1422
- operations: OperationJSON[];
1423
- estimated_amount_out?: string;
1424
- slippage_tolerance_percent?: string;
1425
- affiliates?: AffiliateJSON[];
1426
- chain_ids_to_affiliates?: Record<string, ChainAffiliatesJSON>;
1427
- post_route_handler?: PostHandlerJSON;
1428
- enable_gas_warnings?: boolean;
1429
- timeout_seconds?: string;
1430
- };
1431
- type MsgsRequest = {
1432
- sourceAssetDenom: string;
1433
- sourceAssetChainID: string;
1434
- destAssetDenom: string;
1435
- destAssetChainID: string;
1436
- amountIn: string;
1437
- amountOut: string;
1438
- /**
1439
- * addresses should be in the same order with the `chainIDs` in the `route`
1440
- */
1441
- addressList: string[];
1442
- operations: Operation[];
1443
- estimatedAmountOut?: string;
1444
- slippageTolerancePercent?: string;
1445
- affiliates?: Affiliate[];
1446
- chainIDsToAffiliates?: Record<string, ChainAffiliates>;
1447
- postRouteHandler?: PostHandler;
1448
- enableGasWarnings?: boolean;
1449
- timeoutSeconds?: string;
1450
- };
1451
- type MsgsDirectRequestBaseJSON = {
1452
- source_asset_denom: string;
1453
- source_asset_chain_id: string;
1454
- dest_asset_denom: string;
1455
- dest_asset_chain_id: string;
1456
- chain_ids_to_addresses: {
1457
- [key: string]: string;
1458
- };
1459
- swap_venue?: SwapVenueJSON;
1460
- swap_venues?: SwapVenueJSON[];
1461
- slippage_tolerance_percent?: string;
1462
- timeout_seconds?: string;
1463
- affiliates?: AffiliateJSON[];
1464
- chain_ids_to_affiliates?: Record<string, ChainAffiliatesJSON>;
1465
- post_route_handler?: PostHandlerJSON;
1466
- allow_unsafe?: boolean;
1467
- experimental_features?: ExperimentalFeature[];
1468
- bridges?: BridgeType[];
1469
- allow_multi_tx?: boolean;
1470
- smart_relay?: boolean;
1471
- smart_swap_options?: SmartSwapOptionsJSON;
1472
- allow_swaps?: boolean;
1473
- enable_gas_warnings?: boolean;
1474
- go_fast?: boolean;
1475
- };
1476
- type MsgsDirectRequestGivenInJSON = MsgsDirectRequestBaseJSON & {
1477
- amount_in: string;
1478
- amount_out?: never;
1479
- };
1480
- type MsgsDirectRequestGivenOutJSON = MsgsDirectRequestBaseJSON & {
1481
- amount_in?: never;
1482
- amount_out: string;
1483
- };
1484
- type MsgsDirectRequestJSON = MsgsDirectRequestGivenInJSON | MsgsDirectRequestGivenOutJSON;
1485
- type MsgsDirectRequestBase = {
1486
- sourceAssetDenom: string;
1487
- sourceAssetChainID: string;
1488
- destAssetDenom: string;
1489
- destAssetChainID: string;
1490
- chainIdsToAddresses: {
1491
- [key: string]: string;
1492
- };
1493
- swapVenue?: SwapVenue;
1494
- swapVenues?: SwapVenue[];
1495
- slippageTolerancePercent?: string;
1496
- timeoutSeconds?: string;
1497
- affiliates?: Affiliate[];
1498
- chainIDsToAffiliates?: Record<string, ChainAffiliates>;
1499
- postRouteHandler?: PostHandler;
1500
- allowUnsafe?: boolean;
1501
- experimentalFeatures?: ExperimentalFeature[];
1502
- bridges?: BridgeType[];
1503
- allowMultiTx?: boolean;
1504
- smartRelay?: boolean;
1505
- smartSwapOptions?: SmartSwapOptions;
1506
- allowSwaps?: boolean;
1507
- enableGasWarnings?: boolean;
1508
- goFast?: boolean;
1509
- };
1510
- type MsgsDirectRequestGivenIn = MsgsDirectRequestBase & {
1511
- amountIn: string;
1512
- amountOut?: never;
1513
- };
1514
- type MsgsDirectRequestGivenOut = MsgsDirectRequestBase & {
1515
- amountIn?: never;
1516
- amountOut: string;
1517
- };
1518
- type MsgsDirectRequest = MsgsDirectRequestGivenIn | MsgsDirectRequestGivenOut;
1519
- type MsgJSON = {
1520
- multi_chain_msg: MultiChainMsgJSON;
1521
- } | {
1522
- evm_tx: EvmTxJSON;
1523
- } | {
1524
- svm_tx: SvmTxJSON;
1525
- };
1526
- type Msg = {
1527
- multiChainMsg: MultiChainMsg;
1528
- } | {
1529
- evmTx: EvmTx;
1530
- } | {
1531
- svmTx: SvmTx;
1532
- };
1533
- type TxJSON = {
1534
- cosmos_tx: CosmosTxJSON;
1535
- operations_indices: number[];
1536
- } | {
1537
- evm_tx: EvmTxJSON;
1538
- operations_indices: number[];
1539
- } | {
1540
- svm_tx: SvmTxJSON;
1541
- operations_indices: number[];
1542
- };
1543
- type Tx = {
1544
- cosmosTx: CosmosTx;
1545
- operationsIndices: number[];
1546
- } | {
1547
- evmTx: EvmTx;
1548
- operationsIndices: number[];
1549
- } | {
1550
- svmTx: SvmTx;
1551
- operationsIndices: number[];
1552
- };
1553
- type MsgsResponseJSON = {
1554
- msgs: MsgJSON[];
1555
- estimated_fees: EstimatedFeeJSON[];
1556
- txs: TxJSON[];
1557
- warning?: MsgsWarning;
1558
- };
1559
- type MsgsResponse = {
1560
- /**
1561
- * @deprecated Use `txs` instead
1562
- */
1563
- msgs: Msg[];
1564
- estimatedFees: EstimatedFee[];
1565
- txs: Tx[];
1566
- warning?: MsgsWarning;
1567
- };
1568
- type BridgeType = "IBC" | "AXELAR" | "CCTP" | "HYPERLANE" | "OPINIT" | "GO_FAST" | "STARGATE" | "EUREKA" | "LAYER_ZERO";
1569
- declare enum ChainType {
1570
- Cosmos = "cosmos",
1571
- EVM = "evm",
1572
- SVM = "svm"
1573
- }
1574
- type TxResult = {
1575
- txHash: string;
1576
- chainID: string;
1577
- };
1578
- type AssetBetweenChainsJSON = {
1579
- asset_on_source: AssetJSON;
1580
- asset_on_dest: AssetJSON;
1581
- txs_required: number;
1582
- bridges: BridgeType[];
1583
- };
1584
- type AssetBetweenChains = {
1585
- assetOnSource: Asset;
1586
- assetOnDest: Asset;
1587
- txsRequired: number;
1588
- bridges: BridgeType[];
1589
- };
1590
- type AssetsBetweenChainsRequestJSON = {
1591
- source_chain_id: string;
1592
- dest_chain_id: string;
1593
- include_no_metadata_assets?: boolean;
1594
- include_cw20_assets?: boolean;
1595
- include_evm_assets?: boolean;
1596
- allow_multi_tx?: boolean;
1597
- };
1598
- type AssetsBetweenChainsRequest = {
1599
- sourceChainID: string;
1600
- destChainID: string;
1601
- includeNoMetadataAssets?: boolean;
1602
- includeCW20Assets?: boolean;
1603
- includeEvmAssets?: boolean;
1604
- allowMultiTx?: boolean;
1605
- };
1606
- type AssetsBetweenChainsResponseJSON = {
1607
- assets_between_chains: AssetBetweenChainsJSON[];
1608
- };
1609
- type AssetsBetweenChainsResponse = {
1610
- assetsBetweenChains: AssetBetweenChains[];
1611
- };
1612
- type BalanceRequestChainEntryJSON = {
1613
- address: string;
1614
- denoms?: string[];
1615
- };
1616
- type BalanceRequestChainEntry = {
1617
- address: string;
1618
- denoms?: string[];
1619
- };
1620
- type BalanceRequestJSON = {
1621
- chains: {
1622
- [chain: string]: BalanceRequestChainEntryJSON;
1623
- };
1624
- };
1625
- type BalanceRequest = {
1626
- chains: {
1627
- [chain: string]: BalanceRequestChainEntry;
1628
- };
1629
- };
1630
- type BalanceResponseDenomEntryJSON = {
1631
- amount: string;
1632
- decimals?: number;
1633
- formatted_amount: string;
1634
- price?: string;
1635
- value_usd?: string;
1636
- error?: ApiError;
1637
- };
1638
- type BalanceResponseDenomEntry = {
1639
- amount: string;
1640
- decimals?: number;
1641
- formattedAmount: string;
1642
- price?: string;
1643
- valueUSD?: string;
1644
- error?: ApiError;
1645
- };
1646
- type BalanceResponseChainEntryJSON = {
1647
- denoms: {
1648
- [denom: string]: BalanceResponseDenomEntryJSON;
1649
- };
1650
- };
1651
- type BalanceResponseChainEntry = {
1652
- denoms: {
1653
- [denom: string]: BalanceResponseDenomEntry;
1654
- };
1655
- };
1656
- type BalanceResponseJSON = {
1657
- chains: {
1658
- [chain: string]: BalanceResponseChainEntryJSON;
1659
- };
1660
- };
1661
- type BalanceResponse = {
1662
- chains: {
1663
- [chain: string]: BalanceResponseChainEntry;
1664
- };
1665
- };
1666
- type BridgesResponseJSON = {
1667
- bridges: BridgeJSON[];
1668
- };
1669
- type BridgesResponse = {
1670
- bridges: Bridge[];
1671
- };
1672
- type BridgeJSON = {
1673
- id: BridgeType;
1674
- name: string;
1675
- logo_uri: string;
1676
- };
1677
- type Bridge = {
1678
- id: BridgeType;
1679
- name: string;
1680
- logoURI: string;
1681
- };
1682
-
1683
- type ModuleSupport = {
1684
- authz: boolean;
1685
- feegrant: boolean;
1686
- };
1687
- type GasPriceInfo = {
1688
- low: string;
1689
- average: string;
1690
- high: string;
1691
- };
1692
- type FeeAsset = {
1693
- denom: string;
1694
- gasPrice: GasPriceInfo | null;
1695
- };
1696
- type FeeAssetJSON = {
1697
- denom: string;
1698
- gas_price: GasPriceInfo | null;
1699
- };
1700
- type IbcCapabilities = {
1701
- cosmosPfm: boolean;
1702
- cosmosIbcHooks: boolean;
1703
- cosmosMemo: boolean;
1704
- cosmosAutopilot: boolean;
1705
- };
1706
- type IbcCapabilitiesJSON = {
1707
- cosmos_pfm: boolean;
1708
- cosmos_ibc_hooks: boolean;
1709
- cosmos_memo: boolean;
1710
- cosmos_autopilot: boolean;
1711
- };
1712
- type Chain = {
1713
- chainName: string;
1714
- chainID: string;
1715
- pfmEnabled: boolean;
1716
- cosmosSDKVersion?: string;
1717
- modules?: Record<string, ModuleVersionInfo>;
1718
- cosmosModuleSupport: ModuleSupport;
1719
- supportsMemo: boolean;
1720
- logoURI?: string;
1721
- bech32Prefix: string;
1722
- feeAssets: FeeAsset[];
1723
- chainType: ChainType;
1724
- ibcCapabilities: IbcCapabilities;
1725
- isTestnet: boolean;
1726
- prettyName: string;
1727
- };
1728
- type Venue = {
1729
- name: string;
1730
- chainID: string;
1731
- logoURI: string;
1732
- };
1733
- type ChainJSON = {
1734
- chain_name: string;
1735
- chain_id: string;
1736
- pfm_enabled: boolean;
1737
- cosmos_sdk_version?: string;
1738
- modules?: Record<string, ModuleVersionInfo>;
1739
- cosmos_module_support: ModuleSupport;
1740
- supports_memo: boolean;
1741
- logo_uri?: string;
1742
- bech32_prefix: string;
1743
- fee_assets: FeeAssetJSON[];
1744
- chain_type: ChainType;
1745
- ibc_capabilities: IbcCapabilitiesJSON;
1746
- is_testnet: boolean;
1747
- pretty_name: string;
1748
- };
1749
- type ModuleVersionInfo = {
1750
- path: string;
1751
- version: string;
1752
- sum: string;
1753
- };
1754
-
1755
- declare function affiliateFromJSON(affiliateJSON: AffiliateJSON): Affiliate;
1756
- declare function affiliateToJSON(affiliate: Affiliate): AffiliateJSON;
1757
- declare function assetFromJSON(assetJSON: AssetJSON): Asset;
1758
- declare function assetToJSON(asset: Asset): AssetJSON;
1759
- declare function assetRecommendationFromJSON(assetRecommendationJSON: AssetRecommendationJSON): AssetRecommendation;
1760
- declare function assetRecommendationToJSON(assetRecommendation: AssetRecommendation): AssetRecommendationJSON;
1761
- declare function assetsFromSourceRequestFromJSON(assetsFromSourceRequestJSON: AssetsFromSourceRequestJSON): AssetsFromSourceRequest;
1762
- declare function assetsFromSourceRequestToJSON(assetsFromSourceRequest: AssetsFromSourceRequest): AssetsFromSourceRequestJSON;
1763
- declare function assetsRequestFromJSON(assetsRequestJSON: AssetsRequestJSON): AssetsRequest;
1764
- declare function assetsRequestToJSON(assetsRequest: AssetsRequest): AssetsRequestJSON;
1765
- declare function chainsRequestToJSON(chainsRequest: ChainsRequest): ChainsRequestJSON;
1766
- declare function chainFromJSON(chainJSON: ChainJSON): Chain;
1767
- declare function chainToJSON(chain: Chain): ChainJSON;
1768
- declare function feeAssetFromJSON(feeAssetJSON: FeeAssetJSON): FeeAsset;
1769
- declare function feeAssetToJSON(feeAsset: FeeAsset): FeeAssetJSON;
1770
- declare function ibcCapabilitiesFromJSON(ibcCapabilitiesJSON: IbcCapabilitiesJSON): IbcCapabilities;
1771
- declare function ibcCapabilitiesToJSON(ibcCapabilities: IbcCapabilities): IbcCapabilitiesJSON;
1772
- declare function recommendAssetsRequestFromJSON(recommendAssetsRequestJSON: RecommendAssetsRequestJSON): RecommendAssetsRequest;
1773
- declare function recommendAssetsRequestToJSON(recommendAssetsRequest: RecommendAssetsRequest): RecommendAssetsRequestJSON;
1774
- declare function recommendAssetsResponseFromJSON(value: RecommendAssetsResponseJSON): RecommendAssetsResponse;
1775
- declare function recommendAssetsResponseToJSON(value: RecommendAssetsResponse): RecommendAssetsResponseJSON;
1776
- declare function recommendationEntryFromJSON(value: RecommendationEntryJSON): RecommendationEntry;
1777
- declare function recommendationEntryToJSON(value: RecommendationEntry): RecommendationEntryJSON;
1778
- declare function estimatedFeeFromJSON(estimatedFeeJSON: EstimatedFeeJSON): EstimatedFee;
1779
- declare function estimatedFeeToJSON(estimatedFee: EstimatedFee): EstimatedFeeJSON;
1780
- declare function swapVenueFromJSON(swapVenueJSON: SwapVenueJSON): SwapVenue;
1781
- declare function swapVenueToJSON(swapVenue: SwapVenue): SwapVenueJSON;
1782
- declare function swapVenueRequestFromJSON(SwapVenueRequestJSON: SwapVenueRequestJSON): SwapVenueRequest;
1783
- declare function swapVenueRequestToJSON(swapVenueRequest: SwapVenueRequest): SwapVenueRequestJSON;
1784
- declare function routeRequestFromJSON(routeRequestJSON: RouteRequestJSON): RouteRequest;
1785
- declare function routeRequestToJSON(routeRequest: RouteRequest): RouteRequestJSON;
1786
- declare function transferFromJSON(transferJSON: TransferJSON): Transfer;
1787
- declare function transferToJSON(transfer: Transfer): TransferJSON;
1788
- declare function swapOperationFromJSON(swapOperationJSON: SwapOperationJSON): SwapOperation;
1789
- declare function swapOperationToJSON(swapOperation: SwapOperation): SwapOperationJSON;
1790
- declare function swapRouteFromJSON(swapRouteJSON: SwapRouteJSON): SwapRoute;
1791
- declare function swapRouteToJSON(swapRoute: SwapRoute): SwapRouteJSON;
1792
- declare function swapExactCoinInFromJSON(swapExactCoinInJSON: SwapExactCoinInJSON): SwapExactCoinIn;
1793
- declare function swapExactCoinInToJSON(swapExactCoinIn: SwapExactCoinIn): SwapExactCoinInJSON;
1794
- declare function smartSwapExactCoinInFromJSON(smartSwapExactCoinInJSON: SmartSwapExactCoinInJSON): SmartSwapExactCoinIn;
1795
- declare function smartSwapExactCoinInToJSON(smartSwapExactCoinIn: SmartSwapExactCoinIn): SmartSwapExactCoinInJSON;
1796
- declare function swapExactCoinOutFromJSON(swapExactCoinOutJSON: SwapExactCoinOutJSON): SwapExactCoinOut;
1797
- declare function swapExactCoinOutToJSON(swapExactCoinOut: SwapExactCoinOut): SwapExactCoinOutJSON;
1798
- declare function swapFromJSON(swapJSON: SwapJSON): Swap;
1799
- declare function swapToJSON(swap: Swap): SwapJSON;
1800
- declare function evmSwapFromJSON(evmSwapJSON: EvmSwapJSON): EvmSwap;
1801
- declare function evmSwapToJSON(evmSwap: EvmSwap): EvmSwapJSON;
1802
- declare function goFastFeeToJSON(goFastFee: GoFastFee): GoFastFeeJSON;
1803
- declare function goFastFeeFromJSON(goFastFeeJSON: GoFastFeeJSON): GoFastFee;
1804
- declare function goFastTransferToJSON(goFast: GoFastTransfer): GoFastTransferJSON;
1805
- declare function goFastTransferFromJSON(goFastJSON: GoFastTransferJSON): GoFastTransfer;
1806
- declare function stargateTransferFromJSON(stargateTransferJSON: StargateTransferJSON): StargateTransfer;
1807
- declare function stargateTransferToJSON(stargateTransfer: StargateTransfer): StargateTransferJSON;
1808
- declare function layerZeroTransferFromJSON(layerZeroTransferJSON: LayerZeroTransferJSON): LayerZeroTransfer;
1809
- declare function layerZeroTransferToJSON(layerZeroTransfer: LayerZeroTransfer): LayerZeroTransferJSON;
1810
- declare function eurekaTransferFromJSON(eurekaTransferJSON: EurekaTransferJSON): EurekaTransfer;
1811
- declare function eurekaTransferToJSON(eurekaTransfer: EurekaTransfer): EurekaTransferJSON;
1812
- declare function operationFromJSON(operationJSON: OperationJSON): Operation;
1813
- declare function operationToJSON(operation: Operation): OperationJSON;
1814
- declare function routeResponseFromJSON(routeResponseJSON: RouteResponseJSON): RouteResponse;
1815
- declare function routeResponseToJSON(routeResponse: RouteResponse): RouteResponseJSON;
1816
- declare function cosmWasmContractMsgFromJSON(cosmWasmContractMsgJSON: CosmWasmContractMsgJSON): CosmWasmContractMsg;
1817
- declare function cosmWasmContractMsgToJSON(cosmWasmContractMsg: CosmWasmContractMsg): CosmWasmContractMsgJSON;
1818
- declare function postHandlerFromJSON(postHandlerJSON: PostHandlerJSON): PostHandler;
1819
- declare function postHandlerToJSON(postHandler: PostHandler): PostHandlerJSON;
1820
- declare function msgsRequestFromJSON(msgsRequestJSON: MsgsRequestJSON): MsgsRequest;
1821
- declare function msgsRequestToJSON(msgsRequest: MsgsRequest): MsgsRequestJSON;
1822
- declare function multiChainMsgFromJSON(multiChainMsgJSON: MultiChainMsgJSON): MultiChainMsg;
1823
- declare function multiChainMsgToJSON(multiChainMsg: MultiChainMsg): MultiChainMsgJSON;
1824
- declare function cosmosMsgFromJSON(cosmosMsgJSON: CosmosMsgJSON): CosmosMsg;
1825
- declare function cosmosMsgToJSON(cosmosMsg: CosmosMsg): CosmosMsgJSON;
1826
- declare function submitTxRequestFromJSON(submitTxRequestJSON: SubmitTxRequestJSON): SubmitTxRequest;
1827
- declare function submitTxRequestToJSON(submitTxRequest: SubmitTxRequest): SubmitTxRequestJSON;
1828
- declare function submitTxResponseFromJSON(submitTxResponseJSON: SubmitTxResponseJSON): SubmitTxResponse;
1829
- declare function submitTxResponseToJSON(submitTxResponse: SubmitTxResponse): SubmitTxResponseJSON;
1830
- declare function trackTxRequestFromJSON(trackRequestJSON: TrackTxRequestJSON): TrackTxRequest;
1831
- declare function trackTxRequestToJSON(trackRequest: TrackTxRequest): TrackTxRequestJSON;
1832
- declare function trackTxResponseFromJSON(trackResponseJSON: TrackTxResponseJSON): TrackTxResponse;
1833
- declare function trackTxResponseToJSON(trackResponse: TrackTxResponse): TrackTxResponseJSON;
1834
- declare function txStatusRequestFromJSON(txStatusRequestJSON: StatusRequestJSON): StatusRequest;
1835
- declare function txStatusRequestToJSON(txStatusRequest: StatusRequest): StatusRequestJSON;
1836
- declare function chainTransactionFromJSON(chainTransactionJSON: ChainTransactionJSON): ChainTransaction;
1837
- declare function chainTransactionToJSON(chainTransaction: ChainTransaction): ChainTransactionJSON;
1838
- declare function packetFromJSON(packetJSON: PacketJSON): Packet;
1839
- declare function packetToJSON(packet: Packet): PacketJSON;
1840
- declare function transferInfoFromJSON(transferInfoJSON: TransferInfoJSON): TransferInfo;
1841
- declare function transferInfoToJSON(transferInfo: TransferInfo): TransferInfoJSON;
1842
- declare function nextBlockingTransferFromJSON(nextBlockingTransferJSON: NextBlockingTransferJSON): NextBlockingTransfer;
1843
- declare function nextBlockingTransferToJSON(nextBlockingTransfer: NextBlockingTransfer): NextBlockingTransferJSON;
1844
- declare function transferAssetReleaseFromJSON(transferAssetReleaseJSON: TransferAssetReleaseJSON): TransferAssetRelease;
1845
- declare function transferAssetReleaseToJSON(transferAssetRelease: TransferAssetRelease): TransferAssetReleaseJSON;
1846
- declare function txStatusResponseFromJSON(statusResponseJSON: TxStatusResponseJSON): TxStatusResponse;
1847
- declare function txStatusResponseToJSON(statusResponse: TxStatusResponse): TxStatusResponseJSON;
1848
- declare function ibcAddressFromJSON(ibcAddressJSON: IBCAddressJSON): IBCAddress;
1849
- declare function ibcAddressToJSON(ibcAddress: IBCAddress): IBCAddressJSON;
1850
- declare function axelarTransferFromJSON(axelarTransferJSON: AxelarTransferJSON): AxelarTransfer;
1851
- declare function axelarTransferToJSON(axelarTransfer: AxelarTransfer): AxelarTransferJSON;
1852
- declare function bankSendFromJSON(value: BankSendJSON): BankSend;
1853
- declare function bankSendToJSON(value: BankSend): BankSendJSON;
1854
- declare function smartRelayFeeQuoteFromJSON(value: SmartRelayFeeQuoteJSON): SmartRelayFeeQuote;
1855
- declare function smartRelayFeeQuoteToJSON(value: SmartRelayFeeQuote): SmartRelayFeeQuoteJSON;
1856
- declare function cctpTransferFromJSON(value: CCTPTransferJSON): CCTPTransfer;
1857
- declare function cctpTransferToJSON(value: CCTPTransfer): CCTPTransferJSON;
1858
- declare function hyperlaneTransferFromJSON(value: HyperlaneTransferJSON): HyperlaneTransfer;
1859
- declare function hyperlaneTransferToJSON(value: HyperlaneTransfer): HyperlaneTransferJSON;
1860
- declare function opInitTransferFromJSON(value: OPInitTransferJSON): OPInitTransfer;
1861
- declare function opInitTransferToJSON(value: OPInitTransfer): OPInitTransferJSON;
1862
- declare function erc20ApprovalFromJSON(erc20ApprovalJSON: ERC20ApprovalJSON): ERC20Approval;
1863
- declare function erc20ApprovalToJSON(erc20Approval: ERC20Approval): ERC20ApprovalJSON;
1864
- declare function svmTxFromJSON(svmTxJSON: SvmTxJSON): SvmTx;
1865
- declare function svmTxToJSON(svmTx: SvmTx): SvmTxJSON;
1866
- declare function evmTxFromJSON(evmTxJSON: EvmTxJSON): EvmTx;
1867
- declare function evmTxToJSON(evmTx: EvmTx): EvmTxJSON;
1868
- declare function cosmosTxFromJSON(cosmosTxJSON: CosmosTxJSON): CosmosTx;
1869
- declare function cosmosTxToJSON(cosmosTx: CosmosTx): CosmosTxJSON;
1870
- declare function txFromJSON(txJSON: TxJSON): Tx;
1871
- declare function txToJSON(tx: Tx): TxJSON;
1872
- declare function msgFromJSON(msgJSON: MsgJSON): Msg;
1873
- declare function msgToJSON(msg: Msg): MsgJSON;
1874
- declare function messageResponseFromJSON(response: MsgsResponseJSON): MsgsResponse;
1875
- declare function sendTokenTransactionsFromJSON(sendTokenTransactionsJSON: SendTokenTransactionsJSON): SendTokenTransactions;
1876
- declare function sendTokenTransactionsToJSON(sendTokenTransactions: SendTokenTransactions): SendTokenTransactionsJSON;
1877
- declare function contractCallWithTokenTransactionsFromJSON(value: ContractCallWithTokenTransactionsJSON): ContractCallWithTokenTransactions;
1878
- declare function contractCallWithTokenTransactionsToJSON(value: ContractCallWithTokenTransactions): ContractCallWithTokenTransactionsJSON;
1879
- declare function axelarTransferTransactionsFromJSON(value: AxelarTransferTransactionsJSON): AxelarTransferTransactions;
1880
- declare function axelarTransferTransactionsToJSON(value: AxelarTransferTransactions): AxelarTransferTransactionsJSON;
1881
- declare function axelarTransferInfoFromJSON(value: AxelarTransferInfoJSON): AxelarTransferInfo;
1882
- declare function goFastTransferInfoFromJSON(value: GoFastTransferInfoJSON): GoFastTransferInfo;
1883
- declare function goFastTransferInfoToJson(value: GoFastTransferInfo): GoFastTransferInfoJSON;
1884
- declare function axelarTransferInfoToJSON(value: AxelarTransferInfo): AxelarTransferInfoJSON;
1885
- declare function transferEventFromJSON(value: TransferEventJSON): TransferEvent;
1886
- declare function transferEventToJSON(value: TransferEvent): TransferEventJSON;
1887
- declare function transferStatusFromJSON(value: TransferStatusJSON): TransferStatus;
1888
- declare function transferStatusToJSON(value: TransferStatus): TransferStatusJSON;
1889
- declare function denomWithChainIDFromJSON(value: DenomWithChainIDJSON): DenomWithChainID;
1890
- declare function denomWithChainIDToJSON(value: DenomWithChainID): DenomWithChainIDJSON;
1891
- declare function assetOrErrorFromJSON(value: AssetOrErrorJSON): AssetOrError;
1892
- declare function assetOrErrorToJSON(value: AssetOrError): AssetOrErrorJSON;
1893
- declare function originAssetsRequestFromJSON(value: OriginAssetsRequestJSON): OriginAssetsRequest;
1894
- declare function originAssetsRequestToJSON(value: OriginAssetsRequest): OriginAssetsRequestJSON;
1895
- declare function originAssetsResponseFromJSON(value: OriginAssetsResponseJSON): OriginAssetsResponse;
1896
- declare function originAssetsResponseToJSON(value: OriginAssetsResponse): OriginAssetsResponseJSON;
1897
- declare function assetBetweenChainsFromJSON(value: AssetBetweenChainsJSON): AssetBetweenChains;
1898
- declare function assetBetweenChainsToJSON(value: AssetBetweenChains): AssetBetweenChainsJSON;
1899
- declare function assetsBetweenChainsRequestFromJSON(value: AssetsBetweenChainsRequestJSON): AssetsBetweenChainsRequest;
1900
- declare function assetsBetweenChainsRequestToJSON(value: AssetsBetweenChainsRequest): AssetsBetweenChainsRequestJSON;
1901
- declare function assetsBetweenChainsResponseFromJSON(value: AssetsBetweenChainsResponseJSON): AssetsBetweenChainsResponse;
1902
- declare function assetRecommendationRequestFromJSON(value: AssetRecommendationRequestJSON): AssetRecommendationRequest;
1903
- declare function assetRecommendationRequestToJSON(value: AssetRecommendationRequest): AssetRecommendationRequestJSON;
1904
- declare function bridgesResponseFromJSON(value: BridgesResponseJSON): BridgesResponse;
1905
- declare function bridgesResponseToJSON(value: BridgesResponse): BridgesResponseJSON;
1906
- declare function bridgeFromJSON(value: BridgeJSON): Bridge;
1907
- declare function bridgeToJSON(value: Bridge): BridgeJSON;
1908
- declare function cctpTransferTransactionsFromJSON(value: CCTPTransferTransactionsJSON): CCTPTransferTransactions;
1909
- declare function cctpTransferTransactionsToJSON(value: CCTPTransferTransactions): CCTPTransferTransactionsJSON;
1910
- declare function cctpTransferInfoFromJSON(value: CCTPTransferInfoJSON): CCTPTransferInfo;
1911
- declare function cctpTransferInfoToJSON(value: CCTPTransferInfo): CCTPTransferInfoJSON;
1912
- declare function hyperlaneTransferTransactionsFromJSON(value: HyperlaneTransferTransactionsJSON): HyperlaneTransferTransactions;
1913
- declare function hyperlaneTransferTransactionsToJSON(value: HyperlaneTransferTransactions): HyperlaneTransferTransactionsJSON;
1914
- declare function goFastTransferTransactionsToJSON(value: GoFastTransferTransactions): GoFastTransferTransactionsJSON;
1915
- declare function goFastTransferTransactionsFromJSON(value: GoFastTransferTransactionsJSON): GoFastTransferTransactions;
1916
- declare function hyperlaneTransferInfoFromJSON(value: HyperlaneTransferInfoJSON): HyperlaneTransferInfo;
1917
- declare function hyperlaneTransferInfoToJSON(value: HyperlaneTransferInfo): HyperlaneTransferInfoJSON;
1918
- declare function opInitTransferTransactionsFromJSON(value: OPInitTransferTransactionsJSON): OPInitTransferTransactions;
1919
- declare function opInitTransferTransactionsToJSON(value: OPInitTransferTransactions): OPInitTransferTransactionsJSON;
1920
- declare function stargateTransferTransactionsFromJSON(value: StargateTransferTransactionsJSON): StargateTransferTransactions;
1921
- declare function stargateTransferTransactionsToJSON(value: StargateTransferTransactions): StargateTransferTransactionsJSON;
1922
- declare function layerZeroTransferTransactionsFromJSON(value: LayerZeroTransferTransactionsJSON): LayerZeroTransferTransactions;
1923
- declare function layerZeroTransferTransactionsToJSON(value: LayerZeroTransferTransactions): LayerZeroTransferTransactionsJSON;
1924
- declare function layerZeroTransferInfoFromJSON(value: LayerZeroTransferInfoJSON): LayerZeroTransferInfo;
1925
- declare function layerZeroTransferInfoToJSON(value: LayerZeroTransferInfo): LayerZeroTransferInfoJSON;
1926
- declare function opInitTransferInfoFromJSON(value: OPInitTransferInfoJSON): OPInitTransferInfo;
1927
- declare function opInitTransferInfoToJSON(value: OPInitTransferInfo): OPInitTransferInfoJSON;
1928
- declare function stargateTransferInfoFromJSON(value: StargateTransferInfoJSON): StargateTransferInfo;
1929
- declare function stargateTransferInfoToJSON(value: StargateTransferInfo): StargateTransferInfoJSON;
1930
- declare function eurekaTransferInfoFromJSON(value: EurekaTransferInfoJSON): EurekaTransferInfo;
1931
- declare function eurekaTransferInfoToJSON(value: EurekaTransferInfo): EurekaTransferInfoJSON;
1932
- declare function msgsDirectRequestFromJSON(msgDirectRequestJSON: MsgsDirectRequestJSON): MsgsDirectRequest;
1933
- declare function msgsDirectRequestToJSON(msgDirectRequest: MsgsDirectRequest): MsgsDirectRequestJSON;
1934
- declare function smartSwapOptionsFromJSON(smartSwapOptionsJSON: SmartSwapOptionsJSON): SmartSwapOptions;
1935
- declare function smartSwapOptionsToJSON(smartSwapOptions: SmartSwapOptions): SmartSwapOptionsJSON;
1936
- declare function chainIDsToAffiliatesMapFromJSON(value: Record<string, ChainAffiliatesJSON>): Record<string, ChainAffiliates>;
1937
- declare function chainIDsToAffiliatesMapToJSON(value: Record<string, ChainAffiliates>): Record<string, ChainAffiliatesJSON>;
1938
- declare function chainAffiliatesFromJSON(value: ChainAffiliatesJSON): ChainAffiliates;
1939
- declare function chainAffiliatesToJSON(value: ChainAffiliates): ChainAffiliatesJSON;
1940
- declare function balanceRequestChainEntryFromJSON(value: BalanceRequestChainEntryJSON): BalanceRequestChainEntry;
1941
- declare function balanceRequestChainEntryToJSON(value: BalanceRequestChainEntry): BalanceRequestChainEntryJSON;
1942
- declare function balanceRequestFromJSON(value: BalanceRequestJSON): BalanceRequest;
1943
- declare function balanceRequestToJSON(value: BalanceRequest): BalanceRequestJSON;
1944
- declare function balanceResponseDenomEntryFromJSON(value: BalanceResponseDenomEntryJSON): BalanceResponseDenomEntry;
1945
- declare function balanceResponseDenomEntryToJSON(value: BalanceResponseDenomEntry): BalanceResponseDenomEntryJSON;
1946
- declare function balanceResponseChainEntryFromJSON(value: BalanceResponseChainEntryJSON): BalanceResponseChainEntry;
1947
- declare function balanceResponseChainEntryToJSON(value: BalanceResponseChainEntry): BalanceResponseChainEntryJSON;
1948
- declare function balanceResponseFromJSON(value: BalanceResponseJSON): BalanceResponse;
1949
- declare function balanceResponseToJSON(value: BalanceResponse): BalanceResponseJSON;
1950
-
1951
- /** Common Types */
1952
- interface UserAddress {
1953
- chainID: string;
1954
- address: string;
1955
- }
1956
- type EndpointOptions = {
1957
- rpc?: string;
1958
- rest?: string;
1959
- };
1960
- type ValidateGasResult = {
1961
- error: null | string;
1962
- asset: FeeAsset | null;
1963
- fee: StdFee | null;
1964
- };
1965
- /** Signer Getters */
1966
- interface SignerGetters {
1967
- getEVMSigner?: (chainID: string) => Promise<WalletClient>;
1968
- getCosmosSigner?: (chainID: string) => Promise<(OfflineAminoSigner & OfflineDirectSigner) | OfflineAminoSigner | OfflineDirectSigner>;
1969
- getSVMSigner?: () => Promise<Adapter>;
1970
- }
1971
- /** Gas Options */
1972
- type GetFallbackGasAmount = (chainID: string, chainType: ChainType) => Promise<number | undefined>;
1973
- type GetGasPrice = (chainID: string, chainType: ChainType) => Promise<GasPrice | undefined>;
1974
- interface GasOptions {
1975
- /**
1976
- * If `getGasPrice` is undefined, or returns undefined, the router will attempt to set the recommended gas price
1977
- **/
1978
- getGasPrice?: GetGasPrice;
1979
- /**
1980
- * If `getFallbackGasAmount` is set, when router fails to simulate the gas amount, it will use the fallback gas amount
1981
- */
1982
- getFallbackGasAmount?: GetFallbackGasAmount;
1983
- gasAmountMultiplier?: number;
1984
- }
1985
- /** Skip Client Options */
1986
- interface SkipClientOptions extends SignerGetters {
1987
- apiURL?: string;
1988
- apiKey?: string;
1989
- endpointOptions?: {
1990
- endpoints?: Record<string, EndpointOptions>;
1991
- getRpcEndpointForChain?: (chainID: string) => Promise<string>;
1992
- getRestEndpointForChain?: (chainID: string) => Promise<string>;
1993
- };
1994
- aminoTypes?: AminoConverters;
1995
- registryTypes?: Iterable<[string, GeneratedType]>;
1996
- chainIDsToAffiliates?: Record<string, ChainAffiliates>;
1997
- cacheDurationMs?: number;
1998
- }
1999
- /** Execute Route Options */
2000
- type ExecuteRouteOptions = SignerGetters & GasOptions & TransactionCallbacks & Pick<MsgsRequest, "timeoutSeconds"> & {
2001
- route: RouteResponse;
2002
- /**
2003
- * Addresses should be in the same order with the `chainIDs` in the `route`
2004
- */
2005
- userAddresses: UserAddress[];
2006
- /**
2007
- * defaults to true
2008
- * if `simulate` is set to `true`, it will simulate the transaction before sending it.
2009
- * This is useful for checking if the transaction will succeed or not and get a proper gas amount.
2010
- *
2011
- * If `simulate` is set to `false`, it will not simulate the transaction and send it directly.
2012
- * We suggest if you set it to `false` you should set `getFallbackGasAmount` for chainID that you are going to have.
2013
- */
2014
- simulate?: boolean;
2015
- slippageTolerancePercent?: string;
2016
- /**
2017
- * Arbitrary Tx to be executed before or after route msgs
2018
- */
2019
- beforeMsg?: CosmosMsg;
2020
- afterMsg?: CosmosMsg;
2021
- /**
2022
- * Set allowance amount to max if EVM transaction requires allowance approval.
2023
- */
2024
- useUnlimitedApproval?: boolean;
2025
- /**
2026
- /**
2027
- * If `skipApproval` is set to `true`, the router will bypass checking whether
2028
- * the signer has granted approval for the specified token contract on an EVM chain.
2029
- * This can be useful if approval has already been handled externally or there are race conditions.
2030
- */
2031
- bypassApprovalCheck?: boolean;
2032
- /**
2033
- * defaults to true
2034
- * If `batchSimulate` is set to `true`, it will simulate all messages in a batch before the first tx run.
2035
- * If `batchSimulate` is set to `false`, it will simulate each message one by one.
2036
- */
2037
- batchSimulate?: boolean;
2038
- };
2039
- type ExecuteCosmosMessageOptions = {
2040
- signerAddress: string;
2041
- signer: OfflineSigner;
2042
- message: MultiChainMsg;
2043
- fee: StdFee;
2044
- };
2045
- type ExecuteCosmosMessage = GasOptions & {
2046
- signerAddress: string;
2047
- getCosmosSigner?: SignerGetters["getCosmosSigner"];
2048
- chainID: string;
2049
- messages: CosmosMsg[];
2050
- gas: ValidateGasResult;
2051
- onTransactionSigned?: TransactionCallbacks["onTransactionSigned"];
2052
- onTransactionBroadcast?: TransactionCallbacks["onTransactionBroadcast"];
2053
- };
2054
- interface SignCosmosMessageOptionsBase {
2055
- signerAddress: string;
2056
- chainID: string;
2057
- cosmosMsgs: CosmosMsg[];
2058
- fee: StdFee;
2059
- signerData: SignerData;
2060
- }
2061
- type SignCosmosMessageDirectOptions = SignCosmosMessageOptionsBase & {
2062
- signer: OfflineDirectSigner;
2063
- };
2064
- type SignCosmosMessageAminoOptions = SignCosmosMessageOptionsBase & {
2065
- signer: OfflineAminoSigner;
2066
- };
2067
-
2068
- declare const SKIP_API_URL = "https://api.skip.build";
2069
- declare const GAS_STATION_CHAIN_IDS: string[];
2070
- declare class SkipClient {
2071
- protected requestClient: RequestClient;
2072
- protected aminoTypes: AminoTypes;
2073
- protected registry: Registry;
2074
- protected endpointOptions: {
2075
- endpoints?: Record<string, EndpointOptions>;
2076
- getRpcEndpointForChain?: (chainID: string) => Promise<string>;
2077
- getRestEndpointForChain?: (chainID: string) => Promise<string>;
2078
- };
2079
- getCosmosSigner?: SignerGetters["getCosmosSigner"];
2080
- getEVMSigner?: SignerGetters["getEVMSigner"];
2081
- getSVMSigner?: SignerGetters["getSVMSigner"];
2082
- chainIDsToAffiliates?: SkipClientOptions["chainIDsToAffiliates"];
2083
- cumulativeAffiliateFeeBPS?: string;
2084
- private clientOptions;
2085
- private skipChains?;
2086
- private skipAssets?;
2087
- private skipBalances?;
2088
- private signingStargateClientByChainId;
2089
- private validateGasResults;
2090
- constructor(options?: SkipClientOptions);
2091
- updateOptions(options?: SkipClientOptions): void;
2092
- assets(options?: AssetsRequest): Promise<Record<string, Asset[]>>;
2093
- chains(options?: ChainsRequest): Promise<Chain[]>;
2094
- assetsFromSource(options: AssetsFromSourceRequest): Promise<Record<string, Asset[]>>;
2095
- assetsBetweenChains(options: AssetsBetweenChainsRequest): Promise<AssetBetweenChains[]>;
2096
- bridges(): Promise<Bridge[]>;
2097
- balances(request: BalanceRequest): Promise<BalanceResponse>;
2098
- executeRoute(options: ExecuteRouteOptions): Promise<void>;
2099
- executeTxs(options: ExecuteRouteOptions & {
2100
- txs: Tx[];
2101
- }): Promise<void>;
2102
- private executeCosmosTx;
2103
- private executeSvmTx;
2104
- executeEvmMsg(message: {
2105
- evmTx: EvmTx;
2106
- }, options: ExecuteRouteOptions): Promise<viem.TransactionReceipt>;
2107
- executeCosmosMessage(options: ExecuteCosmosMessage & {
2108
- stargateClient: SigningStargateClient;
2109
- signer: OfflineSigner;
2110
- }): Promise<_cosmjs_cosmwasm_stargate.DeliverTxResponse>;
2111
- executeEVMTransaction({ message, signer, options, }: {
2112
- message: EvmTx;
2113
- signer: WalletClient;
2114
- options: ExecuteRouteOptions;
2115
- }): Promise<viem.TransactionReceipt>;
2116
- executeSVMTransaction({ signer, message, options: options, }: {
2117
- signer: Adapter;
2118
- message: SvmTx;
2119
- options: ExecuteRouteOptions;
2120
- }): Promise<string>;
2121
- getSigningStargateClient({ chainId, getOfflineSigner, }: {
2122
- chainId: string;
2123
- getOfflineSigner?: (chainID: string) => Promise<OfflineSigner>;
2124
- }): Promise<{
2125
- stargateClient: SigningStargateClient;
2126
- signer: OfflineSigner;
2127
- }>;
2128
- private getAssets;
2129
- private getChains;
2130
- signCosmosMessageDirect(options: SignCosmosMessageDirectOptions): Promise<TxRaw>;
2131
- private signCosmosMessageDirectEvmos;
2132
- private signCosmosMessageDirectInjective;
2133
- signCosmosMessageAmino(options: SignCosmosMessageAminoOptions): Promise<TxRaw>;
2134
- messages(options: MsgsRequest): Promise<MsgsResponse>;
2135
- route(options: RouteRequest): Promise<RouteResponse>;
2136
- msgsDirect(options: MsgsDirectRequest): Promise<MsgsDirectResponse>;
2137
- recommendAssets(request: AssetRecommendationRequest | AssetRecommendationRequest[]): Promise<RecommendationEntry[]>;
2138
- ibcOriginAssets(assets: DenomWithChainID[]): Promise<AssetOrError[]>;
2139
- submitTransaction({ chainID, tx, }: {
2140
- chainID: string;
2141
- tx: string;
2142
- }): Promise<SubmitTxResponse>;
2143
- trackTransaction({ chainID, txHash, options, }: {
2144
- chainID: string;
2145
- txHash: string;
2146
- options?: {
2147
- /**
2148
- * Retry options
2149
- * @default { maxRetries: 5, retryInterval: 1000, backoffMultiplier: 2 }
2150
- */
2151
- retry?: {
2152
- /**
2153
- * Maximum number of retries
2154
- * @default 5
2155
- */
2156
- maxRetries?: number;
2157
- /**
2158
- * Retry interval in milliseconds
2159
- * @default 1000
2160
- */
2161
- retryInterval?: number;
2162
- /**
2163
- * Backoff multiplier for retries
2164
- *
2165
- * example: `retryInterval` is set to 1000, backoffMultiplier is set to 2
2166
- *
2167
- * 1st retry: 1000ms
2168
- *
2169
- * 2nd retry: 2000ms
2170
- *
2171
- * 3rd retry: 4000ms
2172
- *
2173
- * 4th retry: 8000ms
2174
- *
2175
- * 5th retry: 16000ms
2176
- *
2177
- * @default 2
2178
- */
2179
- backoffMultiplier?: number;
2180
- };
2181
- };
2182
- }): Promise<TrackTxResponse>;
2183
- transactionStatus({ chainID, txHash, options, }: {
2184
- chainID: string;
2185
- txHash: string;
2186
- options?: {
2187
- /**
2188
- * Retry options
2189
- * @default { maxRetries: 5, retryInterval: 1000, backoffMultiplier: 2 }
2190
- */
2191
- retry?: {
2192
- /**
2193
- * Maximum number of retries
2194
- * @default 5
2195
- */
2196
- maxRetries?: number;
2197
- /**
2198
- * Retry interval in milliseconds
2199
- * @default 1000
2200
- */
2201
- retryInterval?: number;
2202
- /**
2203
- * Backoff multiplier for retries
2204
- *
2205
- * example: `retryInterval` is set to 1000, backoffMultiplier is set to 2
2206
- *
2207
- * 1st retry: 1000ms
2208
- *
2209
- * 2nd retry: 2000ms
2210
- *
2211
- * 3rd retry: 4000ms
2212
- *
2213
- * 4th retry: 8000ms
2214
- *
2215
- * 5th retry: 16000ms
2216
- *
2217
- * @default 2
2218
- */
2219
- backoffMultiplier?: number;
2220
- };
2221
- };
2222
- }): Promise<TxStatusResponse>;
2223
- waitForTransaction({ chainID, txHash, onTransactionTracked, }: {
2224
- chainID: string;
2225
- txHash: string;
2226
- onTransactionTracked?: (txInfo: {
2227
- txHash: string;
2228
- chainID: string;
2229
- explorerLink: string;
2230
- }) => Promise<void>;
2231
- }): Promise<TxStatusResponse>;
2232
- venues(onlyTestnets?: boolean): Promise<SwapVenue[]>;
2233
- getAccountNumberAndSequence(address: string, chainID: string): Promise<{
2234
- accountNumber: number;
2235
- sequence: number;
2236
- }>;
2237
- private getAccountNumberAndSequenceFromDymension;
2238
- private getAccountNumberAndSequenceFromEvmos;
2239
- private getAccountNumberAndSequenceInjective;
2240
- getRpcEndpointForChain(chainID: string): Promise<string>;
2241
- getRestEndpointForChain(chainID: string): Promise<string>;
2242
- getRecommendedGasPrice(chainID: string): Promise<GasPrice | undefined>;
2243
- getFeeInfoForChain(chainID: string): Promise<FeeAsset | undefined>;
2244
- private getDefaultGasTokenForChain;
2245
- private getStakingTokensForChain;
2246
- validateGasBalances({ txs, onValidateGasBalance, getFallbackGasAmount, getCosmosSigner, getEVMSigner, simulate, disabledChainIds, enabledChainIds, useUnlimitedApproval, }: {
2247
- txs: Tx[];
2248
- onValidateGasBalance?: ExecuteRouteOptions["onValidateGasBalance"];
2249
- getFallbackGasAmount?: GetFallbackGasAmount;
2250
- simulate?: ExecuteRouteOptions["simulate"];
2251
- disabledChainIds?: string[];
2252
- enabledChainIds?: string[];
2253
- useUnlimitedApproval?: boolean;
2254
- } & Pick<SignerGetters, "getCosmosSigner" | "getEVMSigner">): Promise<void>;
2255
- /**
2256
- *
2257
- * Validate gas balance for cosmos messages returns a fee asset and StdFee to be used
2258
- *
2259
- */
2260
- validateCosmosGasBalance({ chainID, signerAddress, messages, getFallbackGasAmount, getOfflineSigner, txIndex, simulate, }: {
2261
- chainID: string;
2262
- signerAddress: string;
2263
- messages?: CosmosMsg[];
2264
- getOfflineSigner?: (chainID: string) => Promise<OfflineSigner>;
2265
- getFallbackGasAmount?: GetFallbackGasAmount;
2266
- txIndex?: number;
2267
- simulate?: ExecuteRouteOptions["simulate"];
2268
- }): Promise<{
2269
- error: string;
2270
- asset?: undefined;
2271
- fee?: undefined;
2272
- } | {
2273
- error: string;
2274
- asset: FeeAsset;
2275
- fee?: undefined;
2276
- } | {
2277
- error: null;
2278
- asset: FeeAsset;
2279
- fee: StdFee;
2280
- }>;
2281
- validateEvmGasBalance({ signer, tx, getFallbackGasAmount, useUnlimitedApproval, }: {
2282
- signer: WalletClient;
2283
- tx: EvmTx;
2284
- getFallbackGasAmount?: GetFallbackGasAmount;
2285
- useUnlimitedApproval?: boolean;
2286
- }): Promise<{
2287
- error: string;
2288
- asset: null;
2289
- fee: null;
2290
- } | undefined>;
2291
- validateEvmTokenApproval({ requiredERC20Approvals, signer, chain, gasBalance, tx, useUnlimitedApproval, }: {
2292
- requiredERC20Approvals: ERC20Approval[];
2293
- signer: WalletClient;
2294
- gasBalance?: BalanceResponseDenomEntry | undefined;
2295
- chain: Chain;
2296
- tx: EvmTx;
2297
- useUnlimitedApproval?: boolean;
2298
- }): Promise<{
2299
- error: string;
2300
- asset: null;
2301
- fee: null;
2302
- } | undefined>;
2303
- validateSvmGasBalance({ tx }: {
2304
- tx: SvmTx;
2305
- }): Promise<{
2306
- error: _solana_web3_js.TransactionError;
2307
- asset: null;
2308
- fee: null;
2309
- } | undefined>;
2310
- getMainnetAndTestnetChains(): Promise<Chain[]>;
2311
- getMainnetAndTestnetAssets(chainId?: string): Promise<{
2312
- [x: string]: Asset[];
2313
- }>;
2314
- validateUserAddresses(userAddresses: UserAddress[]): Promise<boolean>;
2315
- }
2316
- /**
2317
- * @deprecated SkipRouter is deprecated please use SkipClient instead
2318
- */
2319
- declare class SkipRouter extends SkipClient {
2320
- }
2321
-
2322
- declare const DEFAULT_GAS_MULTIPLIER = 1.5;
2323
- declare function getEncodeObjectFromCosmosMessage(message: CosmosMsg): EncodeObject;
2324
- declare function getEncodeObjectFromCosmosMessageInjective(message: CosmosMsg): Msgs;
2325
- declare function getCosmosGasAmountForMessage(client: SigningStargateClient, signerAddress: string, chainID: string, messages?: CosmosMsg[], encodedMsgs?: EncodeObject[], multiplier?: number): Promise<string>;
2326
- declare function getEVMGasAmountForMessage(signer: WalletClient, tx: EvmTx, getFallbackGasAmount?: GetFallbackGasAmount): Promise<bigint>;
2327
- declare function getSVMGasAmountForMessage(connection: Connection, tx: SvmTx): Promise<number>;
2328
- interface SimulationResult {
2329
- success: boolean;
2330
- logs?: string[];
2331
- error?: SimulatedTransactionResponse["err"];
2332
- }
2333
- declare function simulateSvmTx(connection: Connection, svmTx: SvmTx): Promise<SimulationResult>;
2334
- declare function getSolShortfall(logs: string[]): number | null;
2335
-
2336
- export { type AcknowledgementError, type Affiliate, type AffiliateJSON, type ApiError, type Asset, type AssetBetweenChains, type AssetBetweenChainsJSON, type AssetJSON, type AssetOrError, type AssetOrErrorJSON, type AssetRecommendation, type AssetRecommendationJSON, type AssetRecommendationRequest, type AssetRecommendationRequestJSON, type AssetsBetweenChainsRequest, type AssetsBetweenChainsRequestJSON, type AssetsBetweenChainsResponse, type AssetsBetweenChainsResponseJSON, type AssetsFromSourceRequest, type AssetsFromSourceRequestJSON, type AssetsRequest, type AssetsRequestJSON, type AutopilotAction, type AutopilotMsg, type AxelarTransfer, type AxelarTransferInfo, type AxelarTransferInfoJSON, type AxelarTransferJSON, type AxelarTransferState, type AxelarTransferTransactions, type AxelarTransferTransactionsJSON, type AxelarTransferType, type BalanceRequest, type BalanceRequestChainEntry, type BalanceRequestChainEntryJSON, type BalanceRequestJSON, type BalanceResponse, type BalanceResponseChainEntry, type BalanceResponseChainEntryJSON, type BalanceResponseDenomEntry, type BalanceResponseDenomEntryJSON, type BalanceResponseJSON, type BankSend, type BankSendJSON, type Bridge, type BridgeJSON, type BridgeType, type BridgesResponse, type BridgesResponseJSON, type CCTPTransfer, type CCTPTransferInfo, type CCTPTransferInfoJSON, type CCTPTransferJSON, type CCTPTransferState, type CCTPTransferTransactions, type CCTPTransferTransactionsJSON, type Chain, type ChainAffiliates, type ChainAffiliatesJSON, type ChainJSON, type ChainTransaction, type ChainTransactionJSON, ChainType, type ChainsRequest, type ChainsRequestJSON, type ContractCallWithTokenError, type ContractCallWithTokenErrorType, type ContractCallWithTokenTransactions, type ContractCallWithTokenTransactionsJSON, type CosmWasmContractMsg, type CosmWasmContractMsgJSON, type CosmosMsg, type CosmosMsgJSON, type CosmosTx, type CosmosTxJSON, DEFAULT_GAS_MULTIPLIER, type DenomWithChainID, type DenomWithChainIDJSON, type ERC20Approval, type ERC20ApprovalJSON, type EndpointOptions, type EstimatedFee, type EstimatedFeeJSON, type EurekaTransfer, type EurekaTransferInfo, type EurekaTransferInfoJSON, type EurekaTransferJSON, type EvmSwap, type EvmSwapJSON, type EvmTx, type EvmTxJSON, type ExecuteCosmosMessage, type ExecuteCosmosMessageOptions, type ExecuteRouteOptions, type ExperimentalFeature, type FeeAsset, type FeeAssetJSON, FeeType, GAS_STATION_CHAIN_IDS, type GasPriceInfo, type GetFallbackGasAmount, type GetGasPrice, type GoFastFee, type GoFastFeeJSON, type GoFastTransfer, type GoFastTransferInfo, type GoFastTransferInfoJSON, type GoFastTransferJSON, type GoFastTransferState, type GoFastTransferTransactions, type GoFastTransferTransactionsJSON, type HyperlaneTransfer, type HyperlaneTransferInfo, type HyperlaneTransferInfoJSON, type HyperlaneTransferJSON, type HyperlaneTransferState, type HyperlaneTransferTransactions, type HyperlaneTransferTransactionsJSON, type IBCAddress, type IBCAddressJSON, type IbcCapabilities, type IbcCapabilitiesJSON, type LayerZeroTransfer, type LayerZeroTransferInfo, type LayerZeroTransferInfoJSON, type LayerZeroTransferJSON, type LayerZeroTransferState, type LayerZeroTransferTransactions, type LayerZeroTransferTransactionsJSON, type ModuleSupport, type ModuleVersionInfo, type Msg, type MsgJSON, type MsgsDirectRequest, type MsgsDirectRequestBase, type MsgsDirectRequestBaseJSON, type MsgsDirectRequestGivenIn, type MsgsDirectRequestGivenInJSON, type MsgsDirectRequestGivenOut, type MsgsDirectRequestGivenOutJSON, type MsgsDirectRequestJSON, type MsgsDirectResponse, type MsgsDirectResponseJSON, type MsgsRequest, type MsgsRequestJSON, type MsgsResponse, type MsgsResponseJSON, type MsgsWarning, type MsgsWarningType, type MultiChainMsg, type MultiChainMsgJSON, type NextBlockingTransfer, type NextBlockingTransferJSON, type OPInitTransfer, type OPInitTransferInfo, type OPInitTransferInfoJSON, type OPInitTransferJSON, type OPInitTransferState, type OPInitTransferTransactions, type OPInitTransferTransactionsJSON, type Operation, type OperationJSON, type OriginAssetsRequest, type OriginAssetsRequestJSON, type OriginAssetsResponse, type OriginAssetsResponseJSON, type Packet, type PacketError, type PacketErrorJSON, type PacketErrorType, type PacketJSON, type PostHandler, type PostHandlerJSON, type Reason, type RecommendAssetsRequest, type RecommendAssetsRequestJSON, type RecommendAssetsResponse, type RecommendAssetsResponseJSON, type RecommendationEntry, type RecommendationEntryJSON, type RouteConfig, type RouteRequest, type RouteRequestBase, type RouteRequestBaseJSON, type RouteRequestGivenIn, type RouteRequestGivenInJSON, type RouteRequestGivenOut, type RouteRequestGivenOutJSON, type RouteRequestJSON, type RouteResponse, type RouteResponseJSON, type RouteWarning, type RouteWarningType, SKIP_API_URL, type SendTokenError, type SendTokenErrorType, type SendTokenTransactions, type SendTokenTransactionsJSON, type SignCosmosMessageAminoOptions, type SignCosmosMessageDirectOptions, type SignerGetters, type SimulationResult, SkipClient, type SkipClientOptions, SkipRouter, type SmartRelayFeeQuote, type SmartRelayFeeQuoteJSON, type SmartSwapExactCoinIn, type SmartSwapExactCoinInJSON, type SmartSwapOptions, type SmartSwapOptionsJSON, type StargateTransfer, type StargateTransferInfo, type StargateTransferInfoJSON, type StargateTransferJSON, type StargateTransferState, type StargateTransferTransactions, type StargateTransferTransactionsJSON, type StatusError, type StatusErrorJSON, type StatusErrorType, type StatusRequest, type StatusRequestJSON, type StatusState, type SubmitTxRequest, type SubmitTxRequestJSON, type SubmitTxResponse, type SubmitTxResponseJSON, type SvmTx, type SvmTxJSON, type Swap, type SwapExactCoinIn, type SwapExactCoinInJSON, type SwapExactCoinOut, type SwapExactCoinOutJSON, type SwapJSON, type SwapOperation, type SwapOperationJSON, type SwapRoute, type SwapRouteJSON, type SwapVenue, type SwapVenueJSON, type SwapVenueRequest, type SwapVenueRequestJSON, type TrackTxRequest, type TrackTxRequestJSON, type TrackTxResponse, type TrackTxResponseJSON, type TransactionCallbacks, type TransactionExecutionError, type Transfer, type TransferAssetRelease, type TransferAssetReleaseJSON, type TransferEvent, type TransferEventJSON, type TransferInfo, type TransferInfoJSON, type TransferJSON, type TransferState, type TransferStatus, type TransferStatusJSON, type Tx, type TxJSON, type TxResult, type TxStatusResponse, type TxStatusResponseJSON, type UserAddress, type ValidateGasResult, type Venue, affiliateFromJSON, affiliateToJSON, assetBetweenChainsFromJSON, assetBetweenChainsToJSON, assetFromJSON, assetOrErrorFromJSON, assetOrErrorToJSON, assetRecommendationFromJSON, assetRecommendationRequestFromJSON, assetRecommendationRequestToJSON, assetRecommendationToJSON, assetToJSON, assetsBetweenChainsRequestFromJSON, assetsBetweenChainsRequestToJSON, assetsBetweenChainsResponseFromJSON, assetsFromSourceRequestFromJSON, assetsFromSourceRequestToJSON, assetsRequestFromJSON, assetsRequestToJSON, axelarTransferFromJSON, axelarTransferInfoFromJSON, axelarTransferInfoToJSON, axelarTransferToJSON, axelarTransferTransactionsFromJSON, axelarTransferTransactionsToJSON, balanceRequestChainEntryFromJSON, balanceRequestChainEntryToJSON, balanceRequestFromJSON, balanceRequestToJSON, balanceResponseChainEntryFromJSON, balanceResponseChainEntryToJSON, balanceResponseDenomEntryFromJSON, balanceResponseDenomEntryToJSON, balanceResponseFromJSON, balanceResponseToJSON, bankSendFromJSON, bankSendToJSON, bridgeFromJSON, bridgeToJSON, bridgesResponseFromJSON, bridgesResponseToJSON, cctpTransferFromJSON, cctpTransferInfoFromJSON, cctpTransferInfoToJSON, cctpTransferToJSON, cctpTransferTransactionsFromJSON, cctpTransferTransactionsToJSON, chainAffiliatesFromJSON, chainAffiliatesToJSON, chainFromJSON, chainIDsToAffiliatesMapFromJSON, chainIDsToAffiliatesMapToJSON, chainToJSON, chainTransactionFromJSON, chainTransactionToJSON, chainsRequestToJSON, contractCallWithTokenTransactionsFromJSON, contractCallWithTokenTransactionsToJSON, cosmWasmContractMsgFromJSON, cosmWasmContractMsgToJSON, cosmosMsgFromJSON, cosmosMsgToJSON, cosmosTxFromJSON, cosmosTxToJSON, denomWithChainIDFromJSON, denomWithChainIDToJSON, erc20ApprovalFromJSON, erc20ApprovalToJSON, estimatedFeeFromJSON, estimatedFeeToJSON, eurekaTransferFromJSON, eurekaTransferInfoFromJSON, eurekaTransferInfoToJSON, eurekaTransferToJSON, evmSwapFromJSON, evmSwapToJSON, evmTxFromJSON, evmTxToJSON, feeAssetFromJSON, feeAssetToJSON, getCosmosGasAmountForMessage, getEVMGasAmountForMessage, getEncodeObjectFromCosmosMessage, getEncodeObjectFromCosmosMessageInjective, getSVMGasAmountForMessage, getSolShortfall, goFastFeeFromJSON, goFastFeeToJSON, goFastTransferFromJSON, goFastTransferInfoFromJSON, goFastTransferInfoToJson, goFastTransferToJSON, goFastTransferTransactionsFromJSON, goFastTransferTransactionsToJSON, hyperlaneTransferFromJSON, hyperlaneTransferInfoFromJSON, hyperlaneTransferInfoToJSON, hyperlaneTransferToJSON, hyperlaneTransferTransactionsFromJSON, hyperlaneTransferTransactionsToJSON, ibcAddressFromJSON, ibcAddressToJSON, ibcCapabilitiesFromJSON, ibcCapabilitiesToJSON, layerZeroTransferFromJSON, layerZeroTransferInfoFromJSON, layerZeroTransferInfoToJSON, layerZeroTransferToJSON, layerZeroTransferTransactionsFromJSON, layerZeroTransferTransactionsToJSON, messageResponseFromJSON, msgFromJSON, msgToJSON, msgsDirectRequestFromJSON, msgsDirectRequestToJSON, msgsRequestFromJSON, msgsRequestToJSON, multiChainMsgFromJSON, multiChainMsgToJSON, nextBlockingTransferFromJSON, nextBlockingTransferToJSON, opInitTransferFromJSON, opInitTransferInfoFromJSON, opInitTransferInfoToJSON, opInitTransferToJSON, opInitTransferTransactionsFromJSON, opInitTransferTransactionsToJSON, operationFromJSON, operationToJSON, originAssetsRequestFromJSON, originAssetsRequestToJSON, originAssetsResponseFromJSON, originAssetsResponseToJSON, packetFromJSON, packetToJSON, postHandlerFromJSON, postHandlerToJSON, recommendAssetsRequestFromJSON, recommendAssetsRequestToJSON, recommendAssetsResponseFromJSON, recommendAssetsResponseToJSON, recommendationEntryFromJSON, recommendationEntryToJSON, routeRequestFromJSON, routeRequestToJSON, routeResponseFromJSON, routeResponseToJSON, sendTokenTransactionsFromJSON, sendTokenTransactionsToJSON, simulateSvmTx, smartRelayFeeQuoteFromJSON, smartRelayFeeQuoteToJSON, smartSwapExactCoinInFromJSON, smartSwapExactCoinInToJSON, smartSwapOptionsFromJSON, smartSwapOptionsToJSON, stargateTransferFromJSON, stargateTransferInfoFromJSON, stargateTransferInfoToJSON, stargateTransferToJSON, stargateTransferTransactionsFromJSON, stargateTransferTransactionsToJSON, submitTxRequestFromJSON, submitTxRequestToJSON, submitTxResponseFromJSON, submitTxResponseToJSON, svmTxFromJSON, svmTxToJSON, swapExactCoinInFromJSON, swapExactCoinInToJSON, swapExactCoinOutFromJSON, swapExactCoinOutToJSON, swapFromJSON, swapOperationFromJSON, swapOperationToJSON, swapRouteFromJSON, swapRouteToJSON, swapToJSON, swapVenueFromJSON, swapVenueRequestFromJSON, swapVenueRequestToJSON, swapVenueToJSON, trackTxRequestFromJSON, trackTxRequestToJSON, trackTxResponseFromJSON, trackTxResponseToJSON, transferAssetReleaseFromJSON, transferAssetReleaseToJSON, transferEventFromJSON, transferEventToJSON, transferFromJSON, transferInfoFromJSON, transferInfoToJSON, transferStatusFromJSON, transferStatusToJSON, transferToJSON, txFromJSON, txStatusRequestFromJSON, txStatusRequestToJSON, txStatusResponseFromJSON, txStatusResponseToJSON, txToJSON };