@skip-go/client 0.10.2 → 0.11.0-alpha.0

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