@wonjm/tx-decoder-rc 0.12.0-rc.1

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,2476 @@
1
+ import * as z from 'zod';
2
+ import z__default, { z as z$1 } from 'zod';
3
+ import * as cosmjs_types_cosmos_tx_signing_v1beta1_signing from 'cosmjs-types/cosmos/tx/signing/v1beta1/signing';
4
+ import { SignMode } from 'cosmjs-types/cosmos/tx/signing/v1beta1/signing.js';
5
+
6
+ declare const zNftResource: z$1.ZodPipeline<z$1.ZodEffects<z$1.ZodString, any, string>, z$1.ZodObject<{
7
+ data: z$1.ZodObject<{
8
+ collection: z$1.ZodObject<{
9
+ inner: z$1.ZodString;
10
+ }, "strip", z$1.ZodTypeAny, {
11
+ inner: string;
12
+ }, {
13
+ inner: string;
14
+ }>;
15
+ description: z$1.ZodString;
16
+ token_id: z$1.ZodString;
17
+ uri: z$1.ZodString;
18
+ }, "strip", z$1.ZodTypeAny, {
19
+ collection: {
20
+ inner: string;
21
+ };
22
+ description: string;
23
+ token_id: string;
24
+ uri: string;
25
+ }, {
26
+ collection: {
27
+ inner: string;
28
+ };
29
+ description: string;
30
+ token_id: string;
31
+ uri: string;
32
+ }>;
33
+ type: z$1.ZodLiteral<"0x1::nft::Nft">;
34
+ }, "strip", z$1.ZodTypeAny, {
35
+ type: "0x1::nft::Nft";
36
+ data: {
37
+ collection: {
38
+ inner: string;
39
+ };
40
+ description: string;
41
+ token_id: string;
42
+ uri: string;
43
+ };
44
+ }, {
45
+ type: "0x1::nft::Nft";
46
+ data: {
47
+ collection: {
48
+ inner: string;
49
+ };
50
+ description: string;
51
+ token_id: string;
52
+ uri: string;
53
+ };
54
+ }>>;
55
+ type NftResource = z$1.infer<typeof zNftResource>;
56
+ declare const zCollectionResource: z$1.ZodPipeline<z$1.ZodEffects<z$1.ZodString, any, string>, z$1.ZodObject<{
57
+ data: z$1.ZodObject<{
58
+ creator: z$1.ZodString;
59
+ description: z$1.ZodString;
60
+ name: z$1.ZodString;
61
+ uri: z$1.ZodString;
62
+ }, "strip", z$1.ZodTypeAny, {
63
+ description: string;
64
+ uri: string;
65
+ creator: string;
66
+ name: string;
67
+ }, {
68
+ description: string;
69
+ uri: string;
70
+ creator: string;
71
+ name: string;
72
+ }>;
73
+ type: z$1.ZodLiteral<"0x1::collection::Collection">;
74
+ }, "strip", z$1.ZodTypeAny, {
75
+ type: "0x1::collection::Collection";
76
+ data: {
77
+ description: string;
78
+ uri: string;
79
+ creator: string;
80
+ name: string;
81
+ };
82
+ }, {
83
+ type: "0x1::collection::Collection";
84
+ data: {
85
+ description: string;
86
+ uri: string;
87
+ creator: string;
88
+ name: string;
89
+ };
90
+ }>>;
91
+ type CollectionResource = z$1.infer<typeof zCollectionResource>;
92
+
93
+ declare const zValidator: z$1.ZodEffects<z$1.ZodObject<{
94
+ validator: z$1.ZodObject<{
95
+ description: z$1.ZodObject<{
96
+ details: z$1.ZodString;
97
+ identity: z$1.ZodString;
98
+ moniker: z$1.ZodString;
99
+ security_contact: z$1.ZodString;
100
+ website: z$1.ZodString;
101
+ }, "strip", z$1.ZodTypeAny, {
102
+ details: string;
103
+ identity: string;
104
+ moniker: string;
105
+ security_contact: string;
106
+ website: string;
107
+ }, {
108
+ details: string;
109
+ identity: string;
110
+ moniker: string;
111
+ security_contact: string;
112
+ website: string;
113
+ }>;
114
+ operator_address: z$1.ZodString;
115
+ }, "strip", z$1.ZodTypeAny, {
116
+ description: {
117
+ details: string;
118
+ identity: string;
119
+ moniker: string;
120
+ security_contact: string;
121
+ website: string;
122
+ };
123
+ operator_address: string;
124
+ }, {
125
+ description: {
126
+ details: string;
127
+ identity: string;
128
+ moniker: string;
129
+ security_contact: string;
130
+ website: string;
131
+ };
132
+ operator_address: string;
133
+ }>;
134
+ }, "strip", z$1.ZodTypeAny, {
135
+ validator: {
136
+ description: {
137
+ details: string;
138
+ identity: string;
139
+ moniker: string;
140
+ security_contact: string;
141
+ website: string;
142
+ };
143
+ operator_address: string;
144
+ };
145
+ }, {
146
+ validator: {
147
+ description: {
148
+ details: string;
149
+ identity: string;
150
+ moniker: string;
151
+ security_contact: string;
152
+ website: string;
153
+ };
154
+ operator_address: string;
155
+ };
156
+ }>, {
157
+ description: {
158
+ details: string;
159
+ identity: string;
160
+ moniker: string;
161
+ security_contact: string;
162
+ website: string;
163
+ };
164
+ operator_address: string;
165
+ }, {
166
+ validator: {
167
+ description: {
168
+ details: string;
169
+ identity: string;
170
+ moniker: string;
171
+ security_contact: string;
172
+ website: string;
173
+ };
174
+ operator_address: string;
175
+ };
176
+ }>;
177
+ type Validator = z$1.infer<typeof zValidator>;
178
+
179
+ declare const zCoin: z$1.ZodObject<{
180
+ amount: z$1.ZodString;
181
+ denom: z$1.ZodString;
182
+ }, "strip", z$1.ZodTypeAny, {
183
+ amount: string;
184
+ denom: string;
185
+ }, {
186
+ amount: string;
187
+ denom: string;
188
+ }>;
189
+ type Coin = z$1.infer<typeof zCoin>;
190
+
191
+ declare const zMessage: z$1.ZodObject<{
192
+ "@type": z$1.ZodString;
193
+ }, "passthrough", z$1.ZodTypeAny, z$1.objectOutputType<{
194
+ "@type": z$1.ZodString;
195
+ }, z$1.ZodTypeAny, "passthrough">, z$1.objectInputType<{
196
+ "@type": z$1.ZodString;
197
+ }, z$1.ZodTypeAny, "passthrough">>;
198
+ type Message = z$1.infer<typeof zMessage>;
199
+
200
+ declare const zEvent: z__default.ZodObject<{
201
+ attributes: z__default.ZodArray<z__default.ZodObject<{
202
+ index: z__default.ZodOptional<z__default.ZodBoolean>;
203
+ key: z__default.ZodString;
204
+ value: z__default.ZodUnion<[z__default.ZodString, z__default.ZodEffects<z__default.ZodNull, string, null>]>;
205
+ }, "strip", z__default.ZodTypeAny, {
206
+ value: string;
207
+ key: string;
208
+ index?: boolean | undefined;
209
+ }, {
210
+ value: string | null;
211
+ key: string;
212
+ index?: boolean | undefined;
213
+ }>, "many">;
214
+ type: z__default.ZodString;
215
+ }, "strip", z__default.ZodTypeAny, {
216
+ type: string;
217
+ attributes: {
218
+ value: string;
219
+ key: string;
220
+ index?: boolean | undefined;
221
+ }[];
222
+ }, {
223
+ type: string;
224
+ attributes: {
225
+ value: string | null;
226
+ key: string;
227
+ index?: boolean | undefined;
228
+ }[];
229
+ }>;
230
+ type Event = z__default.infer<typeof zEvent>;
231
+ declare const zLog: z__default.ZodObject<{
232
+ events: z__default.ZodArray<z__default.ZodObject<{
233
+ attributes: z__default.ZodArray<z__default.ZodObject<{
234
+ index: z__default.ZodOptional<z__default.ZodBoolean>;
235
+ key: z__default.ZodString;
236
+ value: z__default.ZodUnion<[z__default.ZodString, z__default.ZodEffects<z__default.ZodNull, string, null>]>;
237
+ }, "strip", z__default.ZodTypeAny, {
238
+ value: string;
239
+ key: string;
240
+ index?: boolean | undefined;
241
+ }, {
242
+ value: string | null;
243
+ key: string;
244
+ index?: boolean | undefined;
245
+ }>, "many">;
246
+ type: z__default.ZodString;
247
+ }, "strip", z__default.ZodTypeAny, {
248
+ type: string;
249
+ attributes: {
250
+ value: string;
251
+ key: string;
252
+ index?: boolean | undefined;
253
+ }[];
254
+ }, {
255
+ type: string;
256
+ attributes: {
257
+ value: string | null;
258
+ key: string;
259
+ index?: boolean | undefined;
260
+ }[];
261
+ }>, "many">;
262
+ log: z__default.ZodString;
263
+ msg_index: z__default.ZodNumber;
264
+ }, "strip", z__default.ZodTypeAny, {
265
+ events: {
266
+ type: string;
267
+ attributes: {
268
+ value: string;
269
+ key: string;
270
+ index?: boolean | undefined;
271
+ }[];
272
+ }[];
273
+ log: string;
274
+ msg_index: number;
275
+ }, {
276
+ events: {
277
+ type: string;
278
+ attributes: {
279
+ value: string | null;
280
+ key: string;
281
+ index?: boolean | undefined;
282
+ }[];
283
+ }[];
284
+ log: string;
285
+ msg_index: number;
286
+ }>;
287
+ type Log = z__default.infer<typeof zLog>;
288
+ declare const zTxResponse: z__default.ZodObject<{
289
+ code: z__default.ZodNumber;
290
+ codespace: z__default.ZodString;
291
+ data: z__default.ZodString;
292
+ events: z__default.ZodArray<z__default.ZodObject<{
293
+ attributes: z__default.ZodArray<z__default.ZodObject<{
294
+ index: z__default.ZodOptional<z__default.ZodBoolean>;
295
+ key: z__default.ZodString;
296
+ value: z__default.ZodUnion<[z__default.ZodString, z__default.ZodEffects<z__default.ZodNull, string, null>]>;
297
+ }, "strip", z__default.ZodTypeAny, {
298
+ value: string;
299
+ key: string;
300
+ index?: boolean | undefined;
301
+ }, {
302
+ value: string | null;
303
+ key: string;
304
+ index?: boolean | undefined;
305
+ }>, "many">;
306
+ type: z__default.ZodString;
307
+ }, "strip", z__default.ZodTypeAny, {
308
+ type: string;
309
+ attributes: {
310
+ value: string;
311
+ key: string;
312
+ index?: boolean | undefined;
313
+ }[];
314
+ }, {
315
+ type: string;
316
+ attributes: {
317
+ value: string | null;
318
+ key: string;
319
+ index?: boolean | undefined;
320
+ }[];
321
+ }>, "many">;
322
+ gas_used: z__default.ZodString;
323
+ gas_wanted: z__default.ZodString;
324
+ height: z__default.ZodString;
325
+ info: z__default.ZodString;
326
+ logs: z__default.ZodArray<z__default.ZodObject<{
327
+ events: z__default.ZodArray<z__default.ZodObject<{
328
+ attributes: z__default.ZodArray<z__default.ZodObject<{
329
+ index: z__default.ZodOptional<z__default.ZodBoolean>;
330
+ key: z__default.ZodString;
331
+ value: z__default.ZodUnion<[z__default.ZodString, z__default.ZodEffects<z__default.ZodNull, string, null>]>;
332
+ }, "strip", z__default.ZodTypeAny, {
333
+ value: string;
334
+ key: string;
335
+ index?: boolean | undefined;
336
+ }, {
337
+ value: string | null;
338
+ key: string;
339
+ index?: boolean | undefined;
340
+ }>, "many">;
341
+ type: z__default.ZodString;
342
+ }, "strip", z__default.ZodTypeAny, {
343
+ type: string;
344
+ attributes: {
345
+ value: string;
346
+ key: string;
347
+ index?: boolean | undefined;
348
+ }[];
349
+ }, {
350
+ type: string;
351
+ attributes: {
352
+ value: string | null;
353
+ key: string;
354
+ index?: boolean | undefined;
355
+ }[];
356
+ }>, "many">;
357
+ log: z__default.ZodString;
358
+ msg_index: z__default.ZodNumber;
359
+ }, "strip", z__default.ZodTypeAny, {
360
+ events: {
361
+ type: string;
362
+ attributes: {
363
+ value: string;
364
+ key: string;
365
+ index?: boolean | undefined;
366
+ }[];
367
+ }[];
368
+ log: string;
369
+ msg_index: number;
370
+ }, {
371
+ events: {
372
+ type: string;
373
+ attributes: {
374
+ value: string | null;
375
+ key: string;
376
+ index?: boolean | undefined;
377
+ }[];
378
+ }[];
379
+ log: string;
380
+ msg_index: number;
381
+ }>, "many">;
382
+ raw_log: z__default.ZodString;
383
+ timestamp: z__default.ZodPipeline<z__default.ZodUnion<[z__default.ZodString, z__default.ZodEffects<z__default.ZodString, string, unknown>]>, z__default.ZodDate>;
384
+ tx: z__default.ZodObject<{
385
+ auth_info: z__default.ZodObject<{
386
+ fee: z__default.ZodObject<{
387
+ amount: z__default.ZodArray<z__default.ZodObject<{
388
+ amount: z__default.ZodString;
389
+ denom: z__default.ZodString;
390
+ }, "strip", z__default.ZodTypeAny, {
391
+ amount: string;
392
+ denom: string;
393
+ }, {
394
+ amount: string;
395
+ denom: string;
396
+ }>, "many">;
397
+ gas_limit: z__default.ZodString;
398
+ granter: z__default.ZodString;
399
+ payer: z__default.ZodString;
400
+ }, "strip", z__default.ZodTypeAny, {
401
+ amount: {
402
+ amount: string;
403
+ denom: string;
404
+ }[];
405
+ granter: string;
406
+ gas_limit: string;
407
+ payer: string;
408
+ }, {
409
+ amount: {
410
+ amount: string;
411
+ denom: string;
412
+ }[];
413
+ granter: string;
414
+ gas_limit: string;
415
+ payer: string;
416
+ }>;
417
+ signer_infos: z__default.ZodArray<z__default.ZodUnion<[z__default.ZodObject<{
418
+ sequence: z__default.ZodString;
419
+ } & {
420
+ mode_info: z__default.ZodObject<{
421
+ single: z__default.ZodObject<{
422
+ mode: z__default.ZodUnion<[z__default.ZodType<SignMode, z__default.ZodTypeDef, SignMode>, z__default.ZodLiteral<9999>]>;
423
+ }, "strip", z__default.ZodTypeAny, {
424
+ mode: SignMode | 9999;
425
+ }, {
426
+ mode: SignMode | 9999;
427
+ }>;
428
+ }, "strip", z__default.ZodTypeAny, {
429
+ single: {
430
+ mode: SignMode | 9999;
431
+ };
432
+ }, {
433
+ single: {
434
+ mode: SignMode | 9999;
435
+ };
436
+ }>;
437
+ public_key: z__default.ZodObject<{
438
+ "@type": z__default.ZodString;
439
+ key: z__default.ZodString;
440
+ }, "strip", z__default.ZodTypeAny, {
441
+ "@type": string;
442
+ key: string;
443
+ }, {
444
+ "@type": string;
445
+ key: string;
446
+ }>;
447
+ }, "strip", z__default.ZodTypeAny, {
448
+ sequence: string;
449
+ mode_info: {
450
+ single: {
451
+ mode: SignMode | 9999;
452
+ };
453
+ };
454
+ public_key: {
455
+ "@type": string;
456
+ key: string;
457
+ };
458
+ }, {
459
+ sequence: string;
460
+ mode_info: {
461
+ single: {
462
+ mode: SignMode | 9999;
463
+ };
464
+ };
465
+ public_key: {
466
+ "@type": string;
467
+ key: string;
468
+ };
469
+ }>, z__default.ZodObject<{
470
+ sequence: z__default.ZodString;
471
+ } & {
472
+ mode_info: z__default.ZodObject<{
473
+ multi: z__default.ZodObject<{
474
+ bitarray: z__default.ZodObject<{
475
+ elems: z__default.ZodString;
476
+ extra_bits_stored: z__default.ZodNumber;
477
+ }, "strip", z__default.ZodTypeAny, {
478
+ elems: string;
479
+ extra_bits_stored: number;
480
+ }, {
481
+ elems: string;
482
+ extra_bits_stored: number;
483
+ }>;
484
+ mode_infos: z__default.ZodArray<z__default.ZodObject<{
485
+ single: z__default.ZodObject<{
486
+ mode: z__default.ZodUnion<[z__default.ZodType<SignMode, z__default.ZodTypeDef, SignMode>, z__default.ZodLiteral<9999>]>;
487
+ }, "strip", z__default.ZodTypeAny, {
488
+ mode: SignMode | 9999;
489
+ }, {
490
+ mode: SignMode | 9999;
491
+ }>;
492
+ }, "strip", z__default.ZodTypeAny, {
493
+ single: {
494
+ mode: SignMode | 9999;
495
+ };
496
+ }, {
497
+ single: {
498
+ mode: SignMode | 9999;
499
+ };
500
+ }>, "many">;
501
+ }, "strip", z__default.ZodTypeAny, {
502
+ bitarray: {
503
+ elems: string;
504
+ extra_bits_stored: number;
505
+ };
506
+ mode_infos: {
507
+ single: {
508
+ mode: SignMode | 9999;
509
+ };
510
+ }[];
511
+ }, {
512
+ bitarray: {
513
+ elems: string;
514
+ extra_bits_stored: number;
515
+ };
516
+ mode_infos: {
517
+ single: {
518
+ mode: SignMode | 9999;
519
+ };
520
+ }[];
521
+ }>;
522
+ }, "strip", z__default.ZodTypeAny, {
523
+ multi: {
524
+ bitarray: {
525
+ elems: string;
526
+ extra_bits_stored: number;
527
+ };
528
+ mode_infos: {
529
+ single: {
530
+ mode: SignMode | 9999;
531
+ };
532
+ }[];
533
+ };
534
+ }, {
535
+ multi: {
536
+ bitarray: {
537
+ elems: string;
538
+ extra_bits_stored: number;
539
+ };
540
+ mode_infos: {
541
+ single: {
542
+ mode: SignMode | 9999;
543
+ };
544
+ }[];
545
+ };
546
+ }>;
547
+ public_key: z__default.ZodObject<{
548
+ "@type": z__default.ZodString;
549
+ public_keys: z__default.ZodArray<z__default.ZodObject<{
550
+ "@type": z__default.ZodString;
551
+ key: z__default.ZodString;
552
+ }, "strip", z__default.ZodTypeAny, {
553
+ "@type": string;
554
+ key: string;
555
+ }, {
556
+ "@type": string;
557
+ key: string;
558
+ }>, "many">;
559
+ threshold: z__default.ZodNumber;
560
+ }, "strip", z__default.ZodTypeAny, {
561
+ "@type": string;
562
+ public_keys: {
563
+ "@type": string;
564
+ key: string;
565
+ }[];
566
+ threshold: number;
567
+ }, {
568
+ "@type": string;
569
+ public_keys: {
570
+ "@type": string;
571
+ key: string;
572
+ }[];
573
+ threshold: number;
574
+ }>;
575
+ }, "strip", z__default.ZodTypeAny, {
576
+ sequence: string;
577
+ mode_info: {
578
+ multi: {
579
+ bitarray: {
580
+ elems: string;
581
+ extra_bits_stored: number;
582
+ };
583
+ mode_infos: {
584
+ single: {
585
+ mode: SignMode | 9999;
586
+ };
587
+ }[];
588
+ };
589
+ };
590
+ public_key: {
591
+ "@type": string;
592
+ public_keys: {
593
+ "@type": string;
594
+ key: string;
595
+ }[];
596
+ threshold: number;
597
+ };
598
+ }, {
599
+ sequence: string;
600
+ mode_info: {
601
+ multi: {
602
+ bitarray: {
603
+ elems: string;
604
+ extra_bits_stored: number;
605
+ };
606
+ mode_infos: {
607
+ single: {
608
+ mode: SignMode | 9999;
609
+ };
610
+ }[];
611
+ };
612
+ };
613
+ public_key: {
614
+ "@type": string;
615
+ public_keys: {
616
+ "@type": string;
617
+ key: string;
618
+ }[];
619
+ threshold: number;
620
+ };
621
+ }>]>, "many">;
622
+ }, "strip", z__default.ZodTypeAny, {
623
+ fee: {
624
+ amount: {
625
+ amount: string;
626
+ denom: string;
627
+ }[];
628
+ granter: string;
629
+ gas_limit: string;
630
+ payer: string;
631
+ };
632
+ signer_infos: ({
633
+ sequence: string;
634
+ mode_info: {
635
+ single: {
636
+ mode: SignMode | 9999;
637
+ };
638
+ };
639
+ public_key: {
640
+ "@type": string;
641
+ key: string;
642
+ };
643
+ } | {
644
+ sequence: string;
645
+ mode_info: {
646
+ multi: {
647
+ bitarray: {
648
+ elems: string;
649
+ extra_bits_stored: number;
650
+ };
651
+ mode_infos: {
652
+ single: {
653
+ mode: SignMode | 9999;
654
+ };
655
+ }[];
656
+ };
657
+ };
658
+ public_key: {
659
+ "@type": string;
660
+ public_keys: {
661
+ "@type": string;
662
+ key: string;
663
+ }[];
664
+ threshold: number;
665
+ };
666
+ })[];
667
+ }, {
668
+ fee: {
669
+ amount: {
670
+ amount: string;
671
+ denom: string;
672
+ }[];
673
+ granter: string;
674
+ gas_limit: string;
675
+ payer: string;
676
+ };
677
+ signer_infos: ({
678
+ sequence: string;
679
+ mode_info: {
680
+ single: {
681
+ mode: SignMode | 9999;
682
+ };
683
+ };
684
+ public_key: {
685
+ "@type": string;
686
+ key: string;
687
+ };
688
+ } | {
689
+ sequence: string;
690
+ mode_info: {
691
+ multi: {
692
+ bitarray: {
693
+ elems: string;
694
+ extra_bits_stored: number;
695
+ };
696
+ mode_infos: {
697
+ single: {
698
+ mode: SignMode | 9999;
699
+ };
700
+ }[];
701
+ };
702
+ };
703
+ public_key: {
704
+ "@type": string;
705
+ public_keys: {
706
+ "@type": string;
707
+ key: string;
708
+ }[];
709
+ threshold: number;
710
+ };
711
+ })[];
712
+ }>;
713
+ body: z__default.ZodObject<{
714
+ extension_options: z__default.ZodArray<z__default.ZodObject<{
715
+ typeUrl: z__default.ZodString;
716
+ value: z__default.ZodArray<z__default.ZodNumber, "many">;
717
+ }, "strip", z__default.ZodTypeAny, {
718
+ value: number[];
719
+ typeUrl: string;
720
+ }, {
721
+ value: number[];
722
+ typeUrl: string;
723
+ }>, "many">;
724
+ memo: z__default.ZodString;
725
+ messages: z__default.ZodArray<z__default.ZodObject<{
726
+ "@type": z__default.ZodString;
727
+ }, "passthrough", z__default.ZodTypeAny, z__default.objectOutputType<{
728
+ "@type": z__default.ZodString;
729
+ }, z__default.ZodTypeAny, "passthrough">, z__default.objectInputType<{
730
+ "@type": z__default.ZodString;
731
+ }, z__default.ZodTypeAny, "passthrough">>, "many">;
732
+ non_critical_extension_options: z__default.ZodArray<z__default.ZodObject<{
733
+ typeUrl: z__default.ZodString;
734
+ value: z__default.ZodArray<z__default.ZodNumber, "many">;
735
+ }, "strip", z__default.ZodTypeAny, {
736
+ value: number[];
737
+ typeUrl: string;
738
+ }, {
739
+ value: number[];
740
+ typeUrl: string;
741
+ }>, "many">;
742
+ timeout_height: z__default.ZodString;
743
+ }, "strip", z__default.ZodTypeAny, {
744
+ memo: string;
745
+ timeout_height: string;
746
+ extension_options: {
747
+ value: number[];
748
+ typeUrl: string;
749
+ }[];
750
+ messages: z__default.objectOutputType<{
751
+ "@type": z__default.ZodString;
752
+ }, z__default.ZodTypeAny, "passthrough">[];
753
+ non_critical_extension_options: {
754
+ value: number[];
755
+ typeUrl: string;
756
+ }[];
757
+ }, {
758
+ memo: string;
759
+ timeout_height: string;
760
+ extension_options: {
761
+ value: number[];
762
+ typeUrl: string;
763
+ }[];
764
+ messages: z__default.objectInputType<{
765
+ "@type": z__default.ZodString;
766
+ }, z__default.ZodTypeAny, "passthrough">[];
767
+ non_critical_extension_options: {
768
+ value: number[];
769
+ typeUrl: string;
770
+ }[];
771
+ }>;
772
+ signatures: z__default.ZodArray<z__default.ZodString, "many">;
773
+ }, "strip", z__default.ZodTypeAny, {
774
+ auth_info: {
775
+ fee: {
776
+ amount: {
777
+ amount: string;
778
+ denom: string;
779
+ }[];
780
+ granter: string;
781
+ gas_limit: string;
782
+ payer: string;
783
+ };
784
+ signer_infos: ({
785
+ sequence: string;
786
+ mode_info: {
787
+ single: {
788
+ mode: SignMode | 9999;
789
+ };
790
+ };
791
+ public_key: {
792
+ "@type": string;
793
+ key: string;
794
+ };
795
+ } | {
796
+ sequence: string;
797
+ mode_info: {
798
+ multi: {
799
+ bitarray: {
800
+ elems: string;
801
+ extra_bits_stored: number;
802
+ };
803
+ mode_infos: {
804
+ single: {
805
+ mode: SignMode | 9999;
806
+ };
807
+ }[];
808
+ };
809
+ };
810
+ public_key: {
811
+ "@type": string;
812
+ public_keys: {
813
+ "@type": string;
814
+ key: string;
815
+ }[];
816
+ threshold: number;
817
+ };
818
+ })[];
819
+ };
820
+ body: {
821
+ memo: string;
822
+ timeout_height: string;
823
+ extension_options: {
824
+ value: number[];
825
+ typeUrl: string;
826
+ }[];
827
+ messages: z__default.objectOutputType<{
828
+ "@type": z__default.ZodString;
829
+ }, z__default.ZodTypeAny, "passthrough">[];
830
+ non_critical_extension_options: {
831
+ value: number[];
832
+ typeUrl: string;
833
+ }[];
834
+ };
835
+ signatures: string[];
836
+ }, {
837
+ auth_info: {
838
+ fee: {
839
+ amount: {
840
+ amount: string;
841
+ denom: string;
842
+ }[];
843
+ granter: string;
844
+ gas_limit: string;
845
+ payer: string;
846
+ };
847
+ signer_infos: ({
848
+ sequence: string;
849
+ mode_info: {
850
+ single: {
851
+ mode: SignMode | 9999;
852
+ };
853
+ };
854
+ public_key: {
855
+ "@type": string;
856
+ key: string;
857
+ };
858
+ } | {
859
+ sequence: string;
860
+ mode_info: {
861
+ multi: {
862
+ bitarray: {
863
+ elems: string;
864
+ extra_bits_stored: number;
865
+ };
866
+ mode_infos: {
867
+ single: {
868
+ mode: SignMode | 9999;
869
+ };
870
+ }[];
871
+ };
872
+ };
873
+ public_key: {
874
+ "@type": string;
875
+ public_keys: {
876
+ "@type": string;
877
+ key: string;
878
+ }[];
879
+ threshold: number;
880
+ };
881
+ })[];
882
+ };
883
+ body: {
884
+ memo: string;
885
+ timeout_height: string;
886
+ extension_options: {
887
+ value: number[];
888
+ typeUrl: string;
889
+ }[];
890
+ messages: z__default.objectInputType<{
891
+ "@type": z__default.ZodString;
892
+ }, z__default.ZodTypeAny, "passthrough">[];
893
+ non_critical_extension_options: {
894
+ value: number[];
895
+ typeUrl: string;
896
+ }[];
897
+ };
898
+ signatures: string[];
899
+ }>;
900
+ txhash: z__default.ZodString;
901
+ }, "strip", z__default.ZodTypeAny, {
902
+ code: number;
903
+ data: string;
904
+ height: string;
905
+ events: {
906
+ type: string;
907
+ attributes: {
908
+ value: string;
909
+ key: string;
910
+ index?: boolean | undefined;
911
+ }[];
912
+ }[];
913
+ codespace: string;
914
+ gas_used: string;
915
+ gas_wanted: string;
916
+ info: string;
917
+ logs: {
918
+ events: {
919
+ type: string;
920
+ attributes: {
921
+ value: string;
922
+ key: string;
923
+ index?: boolean | undefined;
924
+ }[];
925
+ }[];
926
+ log: string;
927
+ msg_index: number;
928
+ }[];
929
+ raw_log: string;
930
+ timestamp: Date;
931
+ tx: {
932
+ auth_info: {
933
+ fee: {
934
+ amount: {
935
+ amount: string;
936
+ denom: string;
937
+ }[];
938
+ granter: string;
939
+ gas_limit: string;
940
+ payer: string;
941
+ };
942
+ signer_infos: ({
943
+ sequence: string;
944
+ mode_info: {
945
+ single: {
946
+ mode: SignMode | 9999;
947
+ };
948
+ };
949
+ public_key: {
950
+ "@type": string;
951
+ key: string;
952
+ };
953
+ } | {
954
+ sequence: string;
955
+ mode_info: {
956
+ multi: {
957
+ bitarray: {
958
+ elems: string;
959
+ extra_bits_stored: number;
960
+ };
961
+ mode_infos: {
962
+ single: {
963
+ mode: SignMode | 9999;
964
+ };
965
+ }[];
966
+ };
967
+ };
968
+ public_key: {
969
+ "@type": string;
970
+ public_keys: {
971
+ "@type": string;
972
+ key: string;
973
+ }[];
974
+ threshold: number;
975
+ };
976
+ })[];
977
+ };
978
+ body: {
979
+ memo: string;
980
+ timeout_height: string;
981
+ extension_options: {
982
+ value: number[];
983
+ typeUrl: string;
984
+ }[];
985
+ messages: z__default.objectOutputType<{
986
+ "@type": z__default.ZodString;
987
+ }, z__default.ZodTypeAny, "passthrough">[];
988
+ non_critical_extension_options: {
989
+ value: number[];
990
+ typeUrl: string;
991
+ }[];
992
+ };
993
+ signatures: string[];
994
+ };
995
+ txhash: string;
996
+ }, {
997
+ code: number;
998
+ data: string;
999
+ height: string;
1000
+ events: {
1001
+ type: string;
1002
+ attributes: {
1003
+ value: string | null;
1004
+ key: string;
1005
+ index?: boolean | undefined;
1006
+ }[];
1007
+ }[];
1008
+ codespace: string;
1009
+ gas_used: string;
1010
+ gas_wanted: string;
1011
+ info: string;
1012
+ logs: {
1013
+ events: {
1014
+ type: string;
1015
+ attributes: {
1016
+ value: string | null;
1017
+ key: string;
1018
+ index?: boolean | undefined;
1019
+ }[];
1020
+ }[];
1021
+ log: string;
1022
+ msg_index: number;
1023
+ }[];
1024
+ raw_log: string;
1025
+ tx: {
1026
+ auth_info: {
1027
+ fee: {
1028
+ amount: {
1029
+ amount: string;
1030
+ denom: string;
1031
+ }[];
1032
+ granter: string;
1033
+ gas_limit: string;
1034
+ payer: string;
1035
+ };
1036
+ signer_infos: ({
1037
+ sequence: string;
1038
+ mode_info: {
1039
+ single: {
1040
+ mode: SignMode | 9999;
1041
+ };
1042
+ };
1043
+ public_key: {
1044
+ "@type": string;
1045
+ key: string;
1046
+ };
1047
+ } | {
1048
+ sequence: string;
1049
+ mode_info: {
1050
+ multi: {
1051
+ bitarray: {
1052
+ elems: string;
1053
+ extra_bits_stored: number;
1054
+ };
1055
+ mode_infos: {
1056
+ single: {
1057
+ mode: SignMode | 9999;
1058
+ };
1059
+ }[];
1060
+ };
1061
+ };
1062
+ public_key: {
1063
+ "@type": string;
1064
+ public_keys: {
1065
+ "@type": string;
1066
+ key: string;
1067
+ }[];
1068
+ threshold: number;
1069
+ };
1070
+ })[];
1071
+ };
1072
+ body: {
1073
+ memo: string;
1074
+ timeout_height: string;
1075
+ extension_options: {
1076
+ value: number[];
1077
+ typeUrl: string;
1078
+ }[];
1079
+ messages: z__default.objectInputType<{
1080
+ "@type": z__default.ZodString;
1081
+ }, z__default.ZodTypeAny, "passthrough">[];
1082
+ non_critical_extension_options: {
1083
+ value: number[];
1084
+ typeUrl: string;
1085
+ }[];
1086
+ };
1087
+ signatures: string[];
1088
+ };
1089
+ txhash: string;
1090
+ timestamp?: unknown;
1091
+ }>;
1092
+ type TxResponse = z__default.infer<typeof zTxResponse>;
1093
+
1094
+ declare const zEthereumRpcPayload: z$1.ZodObject<{
1095
+ tx: z$1.ZodObject<{
1096
+ blockHash: z$1.ZodString;
1097
+ blockNumber: z$1.ZodString;
1098
+ chainId: z$1.ZodString;
1099
+ from: z$1.ZodString;
1100
+ gas: z$1.ZodString;
1101
+ gasPrice: z$1.ZodOptional<z$1.ZodString>;
1102
+ hash: z$1.ZodString;
1103
+ input: z$1.ZodEffects<z$1.ZodString, `0x${string}`, string>;
1104
+ maxFeePerGas: z$1.ZodOptional<z$1.ZodString>;
1105
+ maxPriorityFeePerGas: z$1.ZodOptional<z$1.ZodString>;
1106
+ nonce: z$1.ZodString;
1107
+ r: z$1.ZodString;
1108
+ s: z$1.ZodString;
1109
+ to: z$1.ZodNullable<z$1.ZodString>;
1110
+ transactionIndex: z$1.ZodString;
1111
+ type: z$1.ZodString;
1112
+ v: z$1.ZodString;
1113
+ value: z$1.ZodString;
1114
+ yParity: z$1.ZodOptional<z$1.ZodString>;
1115
+ }, "strip", z$1.ZodTypeAny, {
1116
+ value: string;
1117
+ type: string;
1118
+ to: string | null;
1119
+ from: string;
1120
+ blockHash: string;
1121
+ blockNumber: string;
1122
+ chainId: string;
1123
+ gas: string;
1124
+ hash: string;
1125
+ input: `0x${string}`;
1126
+ nonce: string;
1127
+ r: string;
1128
+ s: string;
1129
+ transactionIndex: string;
1130
+ v: string;
1131
+ gasPrice?: string | undefined;
1132
+ maxFeePerGas?: string | undefined;
1133
+ maxPriorityFeePerGas?: string | undefined;
1134
+ yParity?: string | undefined;
1135
+ }, {
1136
+ value: string;
1137
+ type: string;
1138
+ to: string | null;
1139
+ from: string;
1140
+ blockHash: string;
1141
+ blockNumber: string;
1142
+ chainId: string;
1143
+ gas: string;
1144
+ hash: string;
1145
+ input: string;
1146
+ nonce: string;
1147
+ r: string;
1148
+ s: string;
1149
+ transactionIndex: string;
1150
+ v: string;
1151
+ gasPrice?: string | undefined;
1152
+ maxFeePerGas?: string | undefined;
1153
+ maxPriorityFeePerGas?: string | undefined;
1154
+ yParity?: string | undefined;
1155
+ }>;
1156
+ txReceipt: z$1.ZodObject<{
1157
+ blockHash: z$1.ZodString;
1158
+ blockNumber: z$1.ZodString;
1159
+ contractAddress: z$1.ZodNullable<z$1.ZodString>;
1160
+ cumulativeGasUsed: z$1.ZodString;
1161
+ effectiveGasPrice: z$1.ZodString;
1162
+ from: z$1.ZodString;
1163
+ gasUsed: z$1.ZodString;
1164
+ logs: z$1.ZodArray<z$1.ZodObject<{
1165
+ address: z$1.ZodString;
1166
+ blockHash: z$1.ZodString;
1167
+ blockNumber: z$1.ZodString;
1168
+ data: z$1.ZodString;
1169
+ logIndex: z$1.ZodString;
1170
+ removed: z$1.ZodBoolean;
1171
+ topics: z$1.ZodArray<z$1.ZodString, "many">;
1172
+ transactionHash: z$1.ZodString;
1173
+ transactionIndex: z$1.ZodString;
1174
+ }, "strip", z$1.ZodTypeAny, {
1175
+ address: string;
1176
+ data: string;
1177
+ blockHash: string;
1178
+ blockNumber: string;
1179
+ transactionIndex: string;
1180
+ logIndex: string;
1181
+ removed: boolean;
1182
+ topics: string[];
1183
+ transactionHash: string;
1184
+ }, {
1185
+ address: string;
1186
+ data: string;
1187
+ blockHash: string;
1188
+ blockNumber: string;
1189
+ transactionIndex: string;
1190
+ logIndex: string;
1191
+ removed: boolean;
1192
+ topics: string[];
1193
+ transactionHash: string;
1194
+ }>, "many">;
1195
+ logsBloom: z$1.ZodString;
1196
+ status: z$1.ZodEffects<z$1.ZodBoolean, boolean, unknown>;
1197
+ to: z$1.ZodNullable<z$1.ZodString>;
1198
+ transactionHash: z$1.ZodString;
1199
+ transactionIndex: z$1.ZodString;
1200
+ type: z$1.ZodString;
1201
+ }, "strip", z$1.ZodTypeAny, {
1202
+ status: boolean;
1203
+ type: string;
1204
+ to: string | null;
1205
+ from: string;
1206
+ logs: {
1207
+ address: string;
1208
+ data: string;
1209
+ blockHash: string;
1210
+ blockNumber: string;
1211
+ transactionIndex: string;
1212
+ logIndex: string;
1213
+ removed: boolean;
1214
+ topics: string[];
1215
+ transactionHash: string;
1216
+ }[];
1217
+ blockHash: string;
1218
+ blockNumber: string;
1219
+ transactionIndex: string;
1220
+ contractAddress: string | null;
1221
+ cumulativeGasUsed: string;
1222
+ effectiveGasPrice: string;
1223
+ gasUsed: string;
1224
+ transactionHash: string;
1225
+ logsBloom: string;
1226
+ }, {
1227
+ type: string;
1228
+ to: string | null;
1229
+ from: string;
1230
+ logs: {
1231
+ address: string;
1232
+ data: string;
1233
+ blockHash: string;
1234
+ blockNumber: string;
1235
+ transactionIndex: string;
1236
+ logIndex: string;
1237
+ removed: boolean;
1238
+ topics: string[];
1239
+ transactionHash: string;
1240
+ }[];
1241
+ blockHash: string;
1242
+ blockNumber: string;
1243
+ transactionIndex: string;
1244
+ contractAddress: string | null;
1245
+ cumulativeGasUsed: string;
1246
+ effectiveGasPrice: string;
1247
+ gasUsed: string;
1248
+ transactionHash: string;
1249
+ logsBloom: string;
1250
+ status?: unknown;
1251
+ }>;
1252
+ }, "strip", z$1.ZodTypeAny, {
1253
+ tx: {
1254
+ value: string;
1255
+ type: string;
1256
+ to: string | null;
1257
+ from: string;
1258
+ blockHash: string;
1259
+ blockNumber: string;
1260
+ chainId: string;
1261
+ gas: string;
1262
+ hash: string;
1263
+ input: `0x${string}`;
1264
+ nonce: string;
1265
+ r: string;
1266
+ s: string;
1267
+ transactionIndex: string;
1268
+ v: string;
1269
+ gasPrice?: string | undefined;
1270
+ maxFeePerGas?: string | undefined;
1271
+ maxPriorityFeePerGas?: string | undefined;
1272
+ yParity?: string | undefined;
1273
+ };
1274
+ txReceipt: {
1275
+ status: boolean;
1276
+ type: string;
1277
+ to: string | null;
1278
+ from: string;
1279
+ logs: {
1280
+ address: string;
1281
+ data: string;
1282
+ blockHash: string;
1283
+ blockNumber: string;
1284
+ transactionIndex: string;
1285
+ logIndex: string;
1286
+ removed: boolean;
1287
+ topics: string[];
1288
+ transactionHash: string;
1289
+ }[];
1290
+ blockHash: string;
1291
+ blockNumber: string;
1292
+ transactionIndex: string;
1293
+ contractAddress: string | null;
1294
+ cumulativeGasUsed: string;
1295
+ effectiveGasPrice: string;
1296
+ gasUsed: string;
1297
+ transactionHash: string;
1298
+ logsBloom: string;
1299
+ };
1300
+ }, {
1301
+ tx: {
1302
+ value: string;
1303
+ type: string;
1304
+ to: string | null;
1305
+ from: string;
1306
+ blockHash: string;
1307
+ blockNumber: string;
1308
+ chainId: string;
1309
+ gas: string;
1310
+ hash: string;
1311
+ input: string;
1312
+ nonce: string;
1313
+ r: string;
1314
+ s: string;
1315
+ transactionIndex: string;
1316
+ v: string;
1317
+ gasPrice?: string | undefined;
1318
+ maxFeePerGas?: string | undefined;
1319
+ maxPriorityFeePerGas?: string | undefined;
1320
+ yParity?: string | undefined;
1321
+ };
1322
+ txReceipt: {
1323
+ type: string;
1324
+ to: string | null;
1325
+ from: string;
1326
+ logs: {
1327
+ address: string;
1328
+ data: string;
1329
+ blockHash: string;
1330
+ blockNumber: string;
1331
+ transactionIndex: string;
1332
+ logIndex: string;
1333
+ removed: boolean;
1334
+ topics: string[];
1335
+ transactionHash: string;
1336
+ }[];
1337
+ blockHash: string;
1338
+ blockNumber: string;
1339
+ transactionIndex: string;
1340
+ contractAddress: string | null;
1341
+ cumulativeGasUsed: string;
1342
+ effectiveGasPrice: string;
1343
+ gasUsed: string;
1344
+ transactionHash: string;
1345
+ logsBloom: string;
1346
+ status?: unknown;
1347
+ };
1348
+ }>;
1349
+ type EthereumRpcPayload = z$1.infer<typeof zEthereumRpcPayload>;
1350
+
1351
+ declare const zEvmLog: z$1.ZodPipeline<z$1.ZodEffects<z$1.ZodString, any, string>, z$1.ZodObject<{
1352
+ address: z$1.ZodEffects<z$1.ZodString, `0x${string}`, string>;
1353
+ data: z$1.ZodEffects<z$1.ZodString, `0x${string}`, string>;
1354
+ topics: z$1.ZodEffects<z$1.ZodArray<z$1.ZodEffects<z$1.ZodString, `0x${string}`, string>, "many">, [`0x${string}`, ...`0x${string}`[]], string[]>;
1355
+ }, "strip", z$1.ZodTypeAny, {
1356
+ address: `0x${string}`;
1357
+ data: `0x${string}`;
1358
+ topics: [`0x${string}`, ...`0x${string}`[]];
1359
+ }, {
1360
+ address: string;
1361
+ data: string;
1362
+ topics: string[];
1363
+ }>>;
1364
+
1365
+ interface BaseBalanceChanges {
1366
+ ft: {
1367
+ [address: string]: FtChange;
1368
+ };
1369
+ }
1370
+ interface EvmBalanceChanges extends BaseBalanceChanges {
1371
+ nft: {
1372
+ [address: string]: NftChange;
1373
+ };
1374
+ vm: "evm";
1375
+ }
1376
+ interface MoveBalanceChanges extends BaseBalanceChanges {
1377
+ object: {
1378
+ [address: string]: ObjectChange;
1379
+ };
1380
+ vm: "move";
1381
+ }
1382
+ interface WasmBalanceChanges extends BaseBalanceChanges {
1383
+ nft: {
1384
+ [address: string]: NftChange;
1385
+ };
1386
+ vm: "wasm";
1387
+ }
1388
+ type BalanceChanges = EvmBalanceChanges | MoveBalanceChanges | WasmBalanceChanges;
1389
+ type FtChange = {
1390
+ [denom: string]: string;
1391
+ };
1392
+ type NftChange = {
1393
+ [contract: string]: {
1394
+ [tokenId: string]: string;
1395
+ };
1396
+ };
1397
+ type ObjectChange = {
1398
+ [address: string]: string;
1399
+ };
1400
+
1401
+ interface DecodedMessageBase {
1402
+ isIbc: boolean;
1403
+ isOp: boolean;
1404
+ }
1405
+ type MoveDecodedMessage = DecodedClaimMinitswapMessage | DecodedClammClaimRewardMessage | DecodedClammCollectFeesMessage | DecodedClammIncreaseLiquidityMessage | DecodedClammProvideAndStakeMessage | DecodedClammRemoveLiquidityMessage | DecodedClammStakeMessage | DecodedClammUnstakeWithdrawMessage | DecodedDelegateMessage | DecodedDepositLiquidityMessage | DecodedDepositMinitswapMessage | DecodedDepositStakeLiquidityMessage | DecodedDepositStakeLockLiquidityMessage | DecodedExtendLiquidityMessage | DecodedIbcNftReceiveMoveMessage | DecodedIbcNftSendMoveMessage | DecodedMergeLiquidityMessage | DecodedNftBurnMessage | DecodedNftMintMessage | DecodedObjectTransferMessage | DecodedProvideStableswapMessage | DecodedRedelegateMessage | DecodedSwapMessage | DecodedUndelegateMessage | DecodedUsernameExtendExpirationMessage | DecodedUsernameSetNameMessage | DecodedUsernameUnsetNameMessage | DecodedVipClaimEsinitMessage | DecodedVipGaugeVoteMessage | DecodedWithdrawDelegatorRewardMessage | DecodedWithdrawLiquidityMessage | DecodedWithdrawMinitswapMessage | DecodedWithdrawStableswapMessage;
1406
+ type EvmDecodedMessage = DecodedIbcNftReceiveEvmMessage | DecodedIbcNftSendEvmMessage;
1407
+ type WasmDecodedMessage = DecodedCw20TransferFromMessage | DecodedCw20TransferMessage | DecodedCw721MintMessage | DecodedCw721TransferMessage | DecodedExecuteContractMessage | DecodedIbcNftReceiveWasmMessage | DecodedIbcNftSendWasmMessage | DecodedInstantiateContractMessage;
1408
+ type CosmosDecodedMessage = DecodedAuthzExecMessage | DecodedAuthzGrantMessage | DecodedAuthzRevokeMessage | DecodedFeegrantGrantAllowanceMessage | DecodedFeegrantRevokeAllowanceMessage | DecodedFinalizeTokenDepositMessage | DecodedFinalizeTokenWithdrawalMessage | DecodedIbcFtReceiveMessage | DecodedIbcFtSendMessage | DecodedInitiateTokenDepositMessage | DecodedInitiateTokenWithdrawalMessage | DecodedSendMessage;
1409
+ type DecodedMessage = CosmosDecodedMessage | DecodedNotSupportedMessage | EvmDecodedMessage | MoveDecodedMessage | WasmDecodedMessage;
1410
+ interface DecodedAuthzExecMessage extends DecodedMessageBase {
1411
+ action: "authz_exec";
1412
+ data: {
1413
+ grantee: string;
1414
+ messages: DecodedMessage[];
1415
+ };
1416
+ }
1417
+ interface DecodedAuthzGrantMessage extends DecodedMessageBase {
1418
+ action: "authz_grant";
1419
+ data: {
1420
+ authorization: {
1421
+ "@type": string;
1422
+ [key: string]: unknown;
1423
+ };
1424
+ expiration?: string;
1425
+ grantee: string;
1426
+ granter: string;
1427
+ };
1428
+ }
1429
+ interface DecodedAuthzRevokeMessage extends DecodedMessageBase {
1430
+ action: "authz_revoke";
1431
+ data: {
1432
+ grantee: string;
1433
+ granter: string;
1434
+ msg_type_url: string;
1435
+ };
1436
+ }
1437
+ interface DecodedFeegrantGrantAllowanceMessage extends DecodedMessageBase {
1438
+ action: "feegrant_grant_allowance";
1439
+ data: {
1440
+ allowance: {
1441
+ "@type": string;
1442
+ [key: string]: unknown;
1443
+ };
1444
+ grantee: string;
1445
+ granter: string;
1446
+ };
1447
+ }
1448
+ interface DecodedFeegrantRevokeAllowanceMessage extends DecodedMessageBase {
1449
+ action: "feegrant_revoke_allowance";
1450
+ data: {
1451
+ grantee: string;
1452
+ granter: string;
1453
+ };
1454
+ }
1455
+ interface DecodedSendMessage extends DecodedMessageBase {
1456
+ action: "send";
1457
+ data: {
1458
+ coins: {
1459
+ amount: string;
1460
+ denom: string;
1461
+ }[];
1462
+ from: string;
1463
+ to: string;
1464
+ };
1465
+ }
1466
+ interface DecodedIbcFtSendMessage extends DecodedMessageBase {
1467
+ action: "ibc_ft_send";
1468
+ data: {
1469
+ amount: string;
1470
+ denom: string;
1471
+ dstChainId: string;
1472
+ dstChannel: string;
1473
+ dstPort: string;
1474
+ receiver: string;
1475
+ sender: string;
1476
+ sequence: string;
1477
+ srcChainId: string;
1478
+ srcChannel: string;
1479
+ srcPort: string;
1480
+ timeoutHeight: {
1481
+ revision_height: string;
1482
+ revision_number: string;
1483
+ };
1484
+ timeoutTimestamp: string;
1485
+ };
1486
+ }
1487
+ interface DecodedIbcFtReceiveMessage extends DecodedMessageBase {
1488
+ action: "ibc_ft_receive";
1489
+ data: {
1490
+ amount: string;
1491
+ denom: string;
1492
+ dstChainId: string;
1493
+ dstChannel: string;
1494
+ dstPort: string;
1495
+ receiver: string;
1496
+ sender: string;
1497
+ sequence: string;
1498
+ srcChainId: string;
1499
+ srcChannel: string;
1500
+ srcPort: string;
1501
+ timeoutHeight: {
1502
+ revision_height: string;
1503
+ revision_number: string;
1504
+ };
1505
+ timeoutTimestamp: string;
1506
+ };
1507
+ }
1508
+ interface DecodedWithdrawDelegatorRewardMessage extends DecodedMessageBase {
1509
+ action: "withdraw_delegator_reward";
1510
+ data: {
1511
+ coins: Coin[];
1512
+ delegatorAddress: string;
1513
+ validator: Validator | null;
1514
+ validatorAddress: string;
1515
+ };
1516
+ }
1517
+ interface DecodedSwapMessage extends DecodedMessageBase {
1518
+ action: "swap";
1519
+ data: {
1520
+ amountIn: string;
1521
+ amountOut: string;
1522
+ denomIn: string;
1523
+ denomOut: string;
1524
+ from: string;
1525
+ };
1526
+ }
1527
+ interface DecodedDelegateMessage extends DecodedMessageBase {
1528
+ action: "delegate";
1529
+ data: {
1530
+ coins: Coin[];
1531
+ delegatorAddress: string;
1532
+ releaseTimestamp?: string;
1533
+ validator: Validator | null;
1534
+ validatorAddress: string;
1535
+ };
1536
+ }
1537
+ interface DecodedUndelegateMessage extends DecodedMessageBase {
1538
+ action: "undelegate";
1539
+ data: {
1540
+ coins: Coin[];
1541
+ delegatorAddress: string;
1542
+ unlockTimestamp?: string;
1543
+ validator: Validator | null;
1544
+ validatorAddress: string;
1545
+ };
1546
+ }
1547
+ interface DecodedRedelegateMessage extends DecodedMessageBase {
1548
+ action: "redelegate";
1549
+ data: {
1550
+ coins: Coin[];
1551
+ delegatorAddress: string;
1552
+ validatorDst: Validator | null;
1553
+ validatorDstAddress: string;
1554
+ validatorSrc: Validator | null;
1555
+ validatorSrcAddress: string;
1556
+ };
1557
+ }
1558
+ interface DecodedInitiateTokenDepositMessage extends DecodedMessageBase {
1559
+ action: "op_deposit";
1560
+ data: {
1561
+ amount: string;
1562
+ bridgeId: string;
1563
+ denom: string;
1564
+ dstChainId: string;
1565
+ from: string;
1566
+ to: string;
1567
+ };
1568
+ }
1569
+ interface DecodedInitiateTokenWithdrawalMessage extends DecodedMessageBase {
1570
+ action: "op_initiate_withdraw";
1571
+ data: {
1572
+ amount: string;
1573
+ baseDenom: string;
1574
+ denom: string;
1575
+ from: string;
1576
+ l2Sequence: string;
1577
+ to: string;
1578
+ };
1579
+ }
1580
+ interface DecodedFinalizeTokenWithdrawalMessage extends DecodedMessageBase {
1581
+ action: "op_finalize_withdraw";
1582
+ data: {
1583
+ amount: string;
1584
+ bridgeId: string;
1585
+ denom: string;
1586
+ from: string;
1587
+ srcChainId: string;
1588
+ to: string;
1589
+ };
1590
+ }
1591
+ interface DecodedFinalizeTokenDepositMessage extends DecodedMessageBase {
1592
+ action: "op_finalize_deposit";
1593
+ data: {
1594
+ amount: string;
1595
+ baseDenom: string;
1596
+ denom: string;
1597
+ from: string;
1598
+ height: string;
1599
+ l1Sequence: string;
1600
+ reason?: string;
1601
+ sequence: string;
1602
+ success: boolean;
1603
+ to: string;
1604
+ };
1605
+ }
1606
+ interface DecodedNotSupportedMessage extends DecodedMessageBase {
1607
+ action: "not_supported";
1608
+ data: {
1609
+ msgType: string;
1610
+ };
1611
+ }
1612
+ interface DecodedNftMintMessage extends DecodedMessageBase {
1613
+ action: "nft_mint";
1614
+ data: {
1615
+ collection: CollectionResource["data"];
1616
+ collectionAddress: string;
1617
+ from: string;
1618
+ tokenAddress: string;
1619
+ tokenId: string;
1620
+ tokenUri?: string;
1621
+ };
1622
+ }
1623
+ interface DecodedObjectTransferMessage extends DecodedMessageBase {
1624
+ action: "object_transfer";
1625
+ data: {
1626
+ from: string;
1627
+ object: string;
1628
+ to: string;
1629
+ };
1630
+ }
1631
+ interface DecodedNftBurnMessage extends DecodedMessageBase {
1632
+ action: "nft_burn";
1633
+ data: {
1634
+ collection: CollectionResource["data"];
1635
+ collectionAddress: string;
1636
+ from: string;
1637
+ tokenAddress: string;
1638
+ tokenId: string;
1639
+ };
1640
+ }
1641
+ interface DecodedIbcNftSendMoveMessage extends DecodedMessageBase {
1642
+ action: "ibc_nft_send_move";
1643
+ data: {
1644
+ collection: {
1645
+ creator: string;
1646
+ description: string;
1647
+ name: string;
1648
+ uri: string | null;
1649
+ };
1650
+ collectionId: string;
1651
+ dstChainId: string;
1652
+ dstChannel: string;
1653
+ dstPort: string;
1654
+ receiver: string;
1655
+ sender: string;
1656
+ sequence: string;
1657
+ srcChainId: string;
1658
+ srcChannel: string;
1659
+ srcPort: string;
1660
+ timeoutHeight: {
1661
+ revision_height: string;
1662
+ revision_number: string;
1663
+ };
1664
+ timeoutTimestamp: string;
1665
+ tokenAddress: string;
1666
+ tokenIds: string[];
1667
+ tokenUris: string[];
1668
+ };
1669
+ }
1670
+ interface DecodedIbcNftSendEvmMessage extends DecodedMessageBase {
1671
+ action: "ibc_nft_send_evm";
1672
+ data: {
1673
+ contractAddress: string;
1674
+ dstChainId: string;
1675
+ dstChannel: string;
1676
+ dstPort: string;
1677
+ receiver: string;
1678
+ sender: string;
1679
+ sequence: string;
1680
+ srcChainId: string;
1681
+ srcChannel: string;
1682
+ srcPort: string;
1683
+ timeoutHeight: {
1684
+ revision_height: string;
1685
+ revision_number: string;
1686
+ };
1687
+ timeoutTimestamp: string;
1688
+ tokenIds: string[];
1689
+ tokenUris: string[];
1690
+ };
1691
+ }
1692
+ interface DecodedIbcNftReceiveMoveMessage extends DecodedMessageBase {
1693
+ action: "ibc_nft_receive_move";
1694
+ data: {
1695
+ collection: {
1696
+ creator: string;
1697
+ description: string;
1698
+ name: string;
1699
+ uri: string | null;
1700
+ };
1701
+ collectionId: string;
1702
+ dstChainId: string;
1703
+ dstChannel: string;
1704
+ dstPort: string;
1705
+ receiver: string;
1706
+ sender: string;
1707
+ sequence: string;
1708
+ srcChainId: string;
1709
+ srcChannel: string;
1710
+ srcPort: string;
1711
+ timeoutHeight: {
1712
+ revision_height: string;
1713
+ revision_number: string;
1714
+ };
1715
+ timeoutTimestamp: string;
1716
+ tokenAddress: string;
1717
+ tokenIds: string[];
1718
+ tokenUris: string[];
1719
+ };
1720
+ }
1721
+ interface DecodedIbcNftReceiveEvmMessage extends DecodedMessageBase {
1722
+ action: "ibc_nft_receive_evm";
1723
+ data: {
1724
+ contractAddress: string;
1725
+ dstChainId: string;
1726
+ dstChannel: string;
1727
+ dstPort: string;
1728
+ receiver: string;
1729
+ sender: string;
1730
+ sequence: string;
1731
+ srcChainId: string;
1732
+ srcChannel: string;
1733
+ srcPort: string;
1734
+ timeoutHeight: {
1735
+ revision_height: string;
1736
+ revision_number: string;
1737
+ };
1738
+ timeoutTimestamp: string;
1739
+ tokenIds: string[];
1740
+ tokenUris: string[];
1741
+ };
1742
+ }
1743
+ interface DecodedIbcNftSendWasmMessage extends DecodedMessageBase {
1744
+ action: "ibc_nft_send_wasm";
1745
+ data: {
1746
+ classId: string;
1747
+ contractAddress: string;
1748
+ dstChainId: string;
1749
+ dstChannel: string;
1750
+ dstPort: string;
1751
+ receiver: string;
1752
+ sender: string;
1753
+ sequence: string;
1754
+ srcChainId: string;
1755
+ srcChannel: string;
1756
+ srcPort: string;
1757
+ timeoutHeight: {
1758
+ revision_height: string;
1759
+ revision_number: string;
1760
+ };
1761
+ timeoutTimestamp: string;
1762
+ tokenIds: string[];
1763
+ tokenUris: string[];
1764
+ };
1765
+ }
1766
+ interface DecodedIbcNftReceiveWasmMessage extends DecodedMessageBase {
1767
+ action: "ibc_nft_receive_wasm";
1768
+ data: {
1769
+ classId: string;
1770
+ contractAddress: string;
1771
+ dstChainId: string;
1772
+ dstChannel: string;
1773
+ dstPort: string;
1774
+ receiver: string;
1775
+ sender: string;
1776
+ sequence: string;
1777
+ srcChainId: string;
1778
+ srcChannel: string;
1779
+ srcPort: string;
1780
+ timeoutHeight: {
1781
+ revision_height: string;
1782
+ revision_number: string;
1783
+ };
1784
+ timeoutTimestamp: string;
1785
+ tokenIds: string[];
1786
+ tokenUris: string[];
1787
+ };
1788
+ }
1789
+ interface DecodedDepositMinitswapMessage extends DecodedMessageBase {
1790
+ action: "deposit_minitswap";
1791
+ data: {
1792
+ amountDeposited: string;
1793
+ amountReceived: string;
1794
+ denomDeposited: string;
1795
+ denomReceived: string;
1796
+ from: string;
1797
+ };
1798
+ }
1799
+ interface DecodedWithdrawMinitswapMessage extends DecodedMessageBase {
1800
+ action: "withdraw_minitswap";
1801
+ data: {
1802
+ amountReceived: string;
1803
+ amountWithdrawn: string;
1804
+ denomReceived: string;
1805
+ denomWithdrawn: string;
1806
+ from: string;
1807
+ releaseTimestamp: string;
1808
+ };
1809
+ }
1810
+ interface DecodedClaimMinitswapMessage extends DecodedMessageBase {
1811
+ action: "claim_minitswap";
1812
+ data: {
1813
+ amountReceived: string;
1814
+ amountWithdrawn: string;
1815
+ denomReceived: string;
1816
+ denomWithdrawn: string;
1817
+ from: string;
1818
+ };
1819
+ }
1820
+ interface DecodedDepositLiquidityMessage extends DecodedMessageBase {
1821
+ action: "deposit_liquidity";
1822
+ data: {
1823
+ amountA: string;
1824
+ amountB: string;
1825
+ denomA: string;
1826
+ denomB: string;
1827
+ from: string;
1828
+ liquidity: string;
1829
+ liquidityDenom: string;
1830
+ };
1831
+ }
1832
+ interface DecodedWithdrawLiquidityMessage extends DecodedMessageBase {
1833
+ action: "withdraw_liquidity";
1834
+ data: {
1835
+ amountA: string;
1836
+ amountB: string;
1837
+ denomA: string;
1838
+ denomB: string;
1839
+ from: string;
1840
+ liquidity: string;
1841
+ liquidityDenom: string;
1842
+ };
1843
+ }
1844
+ interface DecodedDepositStakeLiquidityMessage extends DecodedMessageBase {
1845
+ action: "deposit_stake_liquidity";
1846
+ data: {
1847
+ amountA: string;
1848
+ amountB: string;
1849
+ denomA: string;
1850
+ denomB: string;
1851
+ from: string;
1852
+ liquidity: string;
1853
+ liquidityDenom: string;
1854
+ validator: Validator | null;
1855
+ validatorAddress: string;
1856
+ };
1857
+ }
1858
+ interface DecodedDepositStakeLockLiquidityMessage extends DecodedMessageBase {
1859
+ action: "deposit_stake_lock_liquidity";
1860
+ data: {
1861
+ amountA: string;
1862
+ amountB: string;
1863
+ denomA: string;
1864
+ denomB: string;
1865
+ from: string;
1866
+ liquidity: string;
1867
+ liquidityDenom: string;
1868
+ lockTime: number;
1869
+ releaseTimestamp: string;
1870
+ validator: Validator | null;
1871
+ validatorAddress: string;
1872
+ };
1873
+ }
1874
+ interface DecodedVipClaimEsinitMessage extends DecodedMessageBase {
1875
+ action: "vip_claim_esinit";
1876
+ data: {
1877
+ amount: string;
1878
+ chainId: string;
1879
+ denom: string;
1880
+ from: string;
1881
+ };
1882
+ }
1883
+ interface DecodedVipGaugeVoteMessage extends DecodedMessageBase {
1884
+ action: "vip_gauge_vote";
1885
+ data: {
1886
+ epoch: string;
1887
+ from: string;
1888
+ maxVotingPower: string;
1889
+ votes: Array<{
1890
+ amount: string;
1891
+ rollup: string;
1892
+ weight: string;
1893
+ }>;
1894
+ votingPower: string;
1895
+ };
1896
+ }
1897
+ interface DecodedExtendLiquidityMessage extends DecodedMessageBase {
1898
+ action: "extend_liquidity";
1899
+ data: {
1900
+ from: string;
1901
+ initialReleaseTimestamp: string;
1902
+ liquidity: string;
1903
+ liquidityDenom: string;
1904
+ newReleaseTimestamp: string;
1905
+ validator: Validator | null;
1906
+ validatorAddress: string;
1907
+ };
1908
+ }
1909
+ interface DecodedMergeLiquidityMessage extends DecodedMessageBase {
1910
+ action: "merge_liquidity";
1911
+ data: {
1912
+ from: string;
1913
+ initialPositions: {
1914
+ amount: string;
1915
+ initialReleaseTimestamp: string;
1916
+ }[];
1917
+ liquidityDenom: string;
1918
+ mergedLiquidity: string;
1919
+ newReleaseTimestamp: string;
1920
+ validator: Validator | null;
1921
+ validatorAddress: string;
1922
+ };
1923
+ }
1924
+ interface DecodedWithdrawStableswapMessage extends DecodedMessageBase {
1925
+ action: "withdraw_stableswap";
1926
+ data: {
1927
+ coinAmounts: string[];
1928
+ coinDenoms: string[];
1929
+ feeAmounts: string[];
1930
+ from: string;
1931
+ liquidity: string;
1932
+ liquidityDenom: string;
1933
+ };
1934
+ }
1935
+ interface DecodedProvideStableswapMessage extends DecodedMessageBase {
1936
+ action: "provide_stableswap";
1937
+ data: {
1938
+ coinAmounts: string[];
1939
+ coinDenoms: string[];
1940
+ feeAmounts: string[];
1941
+ from: string;
1942
+ liquidity: string;
1943
+ liquidityDenom: string;
1944
+ };
1945
+ }
1946
+ interface DecodedCw20TransferMessage extends DecodedMessageBase {
1947
+ action: "cw20_transfer";
1948
+ data: {
1949
+ amount: string;
1950
+ contract: string;
1951
+ from: string;
1952
+ to: string;
1953
+ };
1954
+ }
1955
+ interface DecodedCw20TransferFromMessage extends DecodedMessageBase {
1956
+ action: "cw20_transfer_from";
1957
+ data: {
1958
+ amount: string;
1959
+ contract: string;
1960
+ from: string;
1961
+ owner: string;
1962
+ to: string;
1963
+ };
1964
+ }
1965
+ interface DecodedInstantiateContractMessage extends DecodedMessageBase {
1966
+ action: "instantiate_contract";
1967
+ data: {
1968
+ admin?: string;
1969
+ codeId: string;
1970
+ contractAddress?: string;
1971
+ funds: Coin[];
1972
+ initMsg: unknown;
1973
+ label: string;
1974
+ sender: string;
1975
+ };
1976
+ }
1977
+ interface DecodedExecuteContractMessage extends DecodedMessageBase {
1978
+ action: "execute_contract";
1979
+ data: {
1980
+ contract: string;
1981
+ function?: string;
1982
+ funds: Coin[];
1983
+ msg: unknown;
1984
+ sender: string;
1985
+ };
1986
+ }
1987
+ interface DecodedCw721TransferMessage extends DecodedMessageBase {
1988
+ action: "cw721_transfer";
1989
+ data: {
1990
+ contract: string;
1991
+ from: string;
1992
+ to: string;
1993
+ tokenId: string;
1994
+ };
1995
+ }
1996
+ interface DecodedCw721MintMessage extends DecodedMessageBase {
1997
+ action: "cw721_mint";
1998
+ data: {
1999
+ contract: string;
2000
+ extension?: unknown;
2001
+ owner: string;
2002
+ tokenId: string;
2003
+ tokenUri?: string;
2004
+ };
2005
+ }
2006
+ interface DecodedClammIncreaseLiquidityMessage extends DecodedMessageBase {
2007
+ action: "clamm_increase_liquidity";
2008
+ data: {
2009
+ amount0: string;
2010
+ amount1: string;
2011
+ denom0: string;
2012
+ denom1: string;
2013
+ from: string;
2014
+ liquidity: string;
2015
+ };
2016
+ }
2017
+ interface DecodedClammRemoveLiquidityMessage extends DecodedMessageBase {
2018
+ action: "clamm_remove_liquidity";
2019
+ data: {
2020
+ amount0: string;
2021
+ amount1: string;
2022
+ denom0: string;
2023
+ denom1: string;
2024
+ from: string;
2025
+ liquidityDelta: string;
2026
+ };
2027
+ }
2028
+ interface DecodedClammCollectFeesMessage extends DecodedMessageBase {
2029
+ action: "clamm_collect_fees";
2030
+ data: {
2031
+ amount0: string;
2032
+ amount1: string;
2033
+ denom0?: string;
2034
+ denom1?: string;
2035
+ from: string;
2036
+ };
2037
+ }
2038
+ interface DecodedClammStakeMessage extends DecodedMessageBase {
2039
+ action: "clamm_stake";
2040
+ data: {
2041
+ from: string;
2042
+ stakes: Array<{
2043
+ liquidity: string;
2044
+ tokenObj: string;
2045
+ }>;
2046
+ };
2047
+ }
2048
+ interface DecodedClammUnstakeWithdrawMessage extends DecodedMessageBase {
2049
+ action: "clamm_unstake_withdraw";
2050
+ data: {
2051
+ claimedRewards: Array<{
2052
+ amount: string;
2053
+ denom: string;
2054
+ }>;
2055
+ from: string;
2056
+ rewardAmount: string;
2057
+ tokenObj: string;
2058
+ };
2059
+ }
2060
+ interface DecodedClammClaimRewardMessage extends DecodedMessageBase {
2061
+ action: "clamm_claim_reward";
2062
+ data: {
2063
+ from: string;
2064
+ rewards: Array<{
2065
+ amount: string;
2066
+ denom: string;
2067
+ }>;
2068
+ };
2069
+ }
2070
+ interface DecodedClammProvideAndStakeMessage extends DecodedMessageBase {
2071
+ action: "clamm_provide_and_stake";
2072
+ data: {
2073
+ amount0: string;
2074
+ amount1: string;
2075
+ denom0: string;
2076
+ denom1: string;
2077
+ from: string;
2078
+ liquidity: string;
2079
+ };
2080
+ }
2081
+ interface DecodedUsernameSetNameMessage extends DecodedMessageBase {
2082
+ action: "username_set_name";
2083
+ data: {
2084
+ from: string;
2085
+ name: string;
2086
+ };
2087
+ }
2088
+ interface DecodedUsernameUnsetNameMessage extends DecodedMessageBase {
2089
+ action: "username_unset_name";
2090
+ data: {
2091
+ from: string;
2092
+ name: string;
2093
+ };
2094
+ }
2095
+ interface DecodedUsernameExtendExpirationMessage extends DecodedMessageBase {
2096
+ action: "username_extend_expiration";
2097
+ data: {
2098
+ domainName: string;
2099
+ expirationDate: string;
2100
+ from: string;
2101
+ };
2102
+ }
2103
+
2104
+ interface MoveNftMetadata {
2105
+ collection: CollectionResource["data"];
2106
+ collectionAddress: string;
2107
+ tokenId: string;
2108
+ tokenUri: string;
2109
+ }
2110
+ interface EvmNftMetadata {
2111
+ contractAddress: string;
2112
+ tokenId: string;
2113
+ tokenUri: string;
2114
+ }
2115
+ /**
2116
+ * Metadata container for Move blockchain NFTs.
2117
+ *
2118
+ * Structure:
2119
+ * - Key: Object address in bech32 format (e.g., "init1...")
2120
+ * - Value: MoveNftMetadata containing collection and token information
2121
+ *
2122
+ * Each Move NFT is uniquely identified by its object address.
2123
+ */
2124
+ interface MoveMetadata {
2125
+ [object: string]: MoveNftMetadata;
2126
+ }
2127
+ /**
2128
+ * Metadata container for EVM-compatible NFTs (ERC-721).
2129
+ *
2130
+ * Structure:
2131
+ * - Outer key: Contract address in hex format (e.g., "0x1234...")
2132
+ * - Inner key: Token ID as a string
2133
+ * - Value: EvmNftMetadata containing contract and token information
2134
+ *
2135
+ * Nested structure allows multiple tokens from the same contract
2136
+ * to be efficiently organized and accessed.
2137
+ */
2138
+ interface EvmMetadata {
2139
+ [contractAddress: string]: {
2140
+ [tokenId: string]: EvmNftMetadata;
2141
+ };
2142
+ }
2143
+ interface WasmMetadata {
2144
+ }
2145
+ type Metadata = {
2146
+ data: EvmMetadata;
2147
+ type: "evm";
2148
+ } | {
2149
+ data: MoveMetadata;
2150
+ type: "move";
2151
+ } | {
2152
+ data: WasmMetadata;
2153
+ type: "wasm";
2154
+ };
2155
+
2156
+ interface DecodedTx {
2157
+ messages: ProcessedMessage[];
2158
+ metadata: Metadata;
2159
+ totalBalanceChanges: BalanceChanges;
2160
+ }
2161
+ interface ProcessedMessage {
2162
+ balanceChanges: BalanceChanges;
2163
+ decodedMessage: DecodedMessage;
2164
+ }
2165
+ interface DecoderConfig {
2166
+ jsonRpcUrl?: string;
2167
+ registryUrl: string;
2168
+ restUrl: string;
2169
+ timeoutMs?: number;
2170
+ }
2171
+
2172
+ interface DecodedEthereumCallBase {
2173
+ }
2174
+ type DecodedEthereumCall = DecodedContractCreationCall | DecodedCosmosMirrorCall | DecodedErc20ApproveCall | DecodedErc20TransferCall | DecodedErc20TransferFromCall | DecodedErc721ApproveCall | DecodedErc721SafeTransferFromCall | DecodedErc721TransferFromCall | DecodedEthTransferCall | DecodedKami721PublicMintCall | DecodedNotSupportedCall;
2175
+ interface DecodedContractCreationCall extends DecodedEthereumCallBase {
2176
+ action: "contract_creation";
2177
+ data: {
2178
+ bytecodeLength: number;
2179
+ contractAddresses: string[];
2180
+ from: string;
2181
+ };
2182
+ }
2183
+ /**
2184
+ * Represents an EVM transaction that mirrors a Cosmos transaction.
2185
+ *
2186
+ * In dual-execution chains, Cosmos transactions are mirrored as EVM transactions
2187
+ * for block consistency. The cosmos messages are included here, while metadata
2188
+ * and totalBalanceChanges are at the root DecodedEthereumTx level (not duplicated).
2189
+ */
2190
+ interface DecodedCosmosMirrorCall extends DecodedEthereumCallBase {
2191
+ action: "cosmos_mirror";
2192
+ data: {
2193
+ cosmosMessages: ProcessedMessage[];
2194
+ cosmosTxHash: string;
2195
+ evmTxHash: string;
2196
+ };
2197
+ }
2198
+ interface DecodedErc20ApproveCall extends DecodedEthereumCallBase {
2199
+ action: "erc20_approve";
2200
+ data: {
2201
+ amount: string;
2202
+ contract: string;
2203
+ denom: string;
2204
+ from: string;
2205
+ spender: string;
2206
+ };
2207
+ }
2208
+ interface DecodedErc721ApproveCall extends DecodedEthereumCallBase {
2209
+ action: "erc721_approve";
2210
+ data: {
2211
+ contract: string;
2212
+ from: string;
2213
+ spender: string;
2214
+ tokenId: string;
2215
+ };
2216
+ }
2217
+ interface DecodedErc721SafeTransferFromCall extends DecodedEthereumCallBase {
2218
+ action: "erc721_safe_transfer_from";
2219
+ data: {
2220
+ contract: string;
2221
+ from: string;
2222
+ to: string;
2223
+ tokenId: string;
2224
+ };
2225
+ }
2226
+ interface DecodedErc721TransferFromCall extends DecodedEthereumCallBase {
2227
+ action: "erc721_transfer_from";
2228
+ data: {
2229
+ contract: string;
2230
+ from: string;
2231
+ owner: string;
2232
+ to: string;
2233
+ tokenId: string;
2234
+ };
2235
+ }
2236
+ interface DecodedErc20TransferCall extends DecodedEthereumCallBase {
2237
+ action: "erc20_transfer";
2238
+ data: {
2239
+ amount: string;
2240
+ contract: string;
2241
+ denom: string;
2242
+ from: string;
2243
+ to: string;
2244
+ };
2245
+ }
2246
+ interface DecodedErc20TransferFromCall extends DecodedEthereumCallBase {
2247
+ action: "erc20_transfer_from";
2248
+ data: {
2249
+ amount: string;
2250
+ contract: string;
2251
+ denom: string;
2252
+ from: string;
2253
+ owner: string;
2254
+ to: string;
2255
+ };
2256
+ }
2257
+ interface DecodedEthTransferCall extends DecodedEthereumCallBase {
2258
+ action: "eth_transfer";
2259
+ data: {
2260
+ amount: string;
2261
+ denom: string;
2262
+ from: string;
2263
+ to: string;
2264
+ };
2265
+ }
2266
+ interface DecodedKami721PublicMintCall extends DecodedEthereumCallBase {
2267
+ action: "kami721_public_mint";
2268
+ data: {
2269
+ contract: string;
2270
+ minter: string;
2271
+ paymentAmount?: string;
2272
+ paymentToken?: string;
2273
+ tokenId: string;
2274
+ };
2275
+ }
2276
+ interface DecodedNotSupportedCall extends DecodedEthereumCallBase {
2277
+ action: "not_supported";
2278
+ data: {
2279
+ from: string;
2280
+ input: string;
2281
+ to: string | null;
2282
+ value: string;
2283
+ };
2284
+ }
2285
+ interface DecodedEthereumTx {
2286
+ decodedTransaction: DecodedEthereumCall;
2287
+ metadata: Metadata;
2288
+ totalBalanceChanges: BalanceChanges;
2289
+ }
2290
+
2291
+ type VmType = "evm" | "move" | "wasm";
2292
+ type MessageDecoder<M = Message, L = Log> = {
2293
+ check: (message: M, log: L, vm: VmType) => boolean;
2294
+ decode: (message: M, log: L, apiClient: ApiClient, txResponse: TxResponse, vm: VmType, getDecodersForVm?: (vm: VmType) => MessageDecoder[]) => Promise<DecodedMessage>;
2295
+ };
2296
+ interface EthereumDecoder {
2297
+ check: (payload: EthereumRpcPayload) => boolean;
2298
+ decode: (payload: EthereumRpcPayload, apiClient: ApiClient) => Promise<DecodedEthereumCall>;
2299
+ }
2300
+
2301
+ interface MoveEventProcessor {
2302
+ process: (event: Event, allEvents: Event[], apiClient: ApiClient, eventIndex: number) => Promise<MoveBalanceChanges>;
2303
+ typeTag: string;
2304
+ }
2305
+ interface EvmEventProcessor {
2306
+ eventSignatureHash: string;
2307
+ process: (evmLog: z$1.infer<typeof zEvmLog>, apiClient: ApiClient) => Promise<EvmBalanceChanges>;
2308
+ }
2309
+ interface WasmEventProcessor {
2310
+ check: (event: Event) => boolean;
2311
+ process: (event: Event, allEvents: Event[], apiClient: ApiClient) => Promise<WasmBalanceChanges>;
2312
+ }
2313
+
2314
+ declare class ApiClient {
2315
+ get jsonRpcUrl(): string;
2316
+ private readonly _jsonRpcUrl?;
2317
+ private readonly cacheService;
2318
+ private readonly cosmosClient;
2319
+ private readonly evmService;
2320
+ private readonly minievmClient;
2321
+ private readonly moveClient;
2322
+ private readonly mstakingClient;
2323
+ private readonly registryService;
2324
+ constructor(config: DecoderConfig);
2325
+ convertToEvmAmount({ amount, denom }: {
2326
+ amount: string;
2327
+ denom: string;
2328
+ }): Promise<{
2329
+ amount: string;
2330
+ denom: string;
2331
+ }>;
2332
+ findCollectionFromCollectionAddr(collectionAddr: string): Promise<CollectionResource | null>;
2333
+ findDenomFromMetadataAddr(metadataAddr: string): Promise<string | null>;
2334
+ findIbcCounterPartyChainId(chainId: string, portId: string, channelId: string): Promise<string | null>;
2335
+ findNftFromTokenAddr(tokenAddr: string): Promise<NftResource | null>;
2336
+ findOwnerFromStoreAddr(storeAddr: string): Promise<string | null>;
2337
+ findRollupChainId(bridgeId: string): Promise<string | undefined>;
2338
+ findValidator(validatorAddress: string): Promise<{
2339
+ description: {
2340
+ details: string;
2341
+ identity: string;
2342
+ moniker: string;
2343
+ security_contact: string;
2344
+ website: string;
2345
+ };
2346
+ operator_address: string;
2347
+ } | null>;
2348
+ getChainId(): Promise<string>;
2349
+ getCosmosTx(txHash: string): Promise<{
2350
+ code: number;
2351
+ data: string;
2352
+ height: string;
2353
+ events: {
2354
+ type: string;
2355
+ attributes: {
2356
+ value: string | null;
2357
+ key: string;
2358
+ index?: boolean | undefined;
2359
+ }[];
2360
+ }[];
2361
+ codespace: string;
2362
+ gas_used: string;
2363
+ gas_wanted: string;
2364
+ info: string;
2365
+ logs: {
2366
+ events: {
2367
+ type: string;
2368
+ attributes: {
2369
+ value: string | null;
2370
+ key: string;
2371
+ index?: boolean | undefined;
2372
+ }[];
2373
+ }[];
2374
+ log: string;
2375
+ msg_index: number;
2376
+ }[];
2377
+ raw_log: string;
2378
+ tx: {
2379
+ auth_info: {
2380
+ fee: {
2381
+ amount: {
2382
+ amount: string;
2383
+ denom: string;
2384
+ }[];
2385
+ granter: string;
2386
+ gas_limit: string;
2387
+ payer: string;
2388
+ };
2389
+ signer_infos: ({
2390
+ sequence: string;
2391
+ mode_info: {
2392
+ single: {
2393
+ mode: cosmjs_types_cosmos_tx_signing_v1beta1_signing.SignMode | 9999;
2394
+ };
2395
+ };
2396
+ public_key: {
2397
+ "@type": string;
2398
+ key: string;
2399
+ };
2400
+ } | {
2401
+ sequence: string;
2402
+ mode_info: {
2403
+ multi: {
2404
+ bitarray: {
2405
+ elems: string;
2406
+ extra_bits_stored: number;
2407
+ };
2408
+ mode_infos: {
2409
+ single: {
2410
+ mode: cosmjs_types_cosmos_tx_signing_v1beta1_signing.SignMode | 9999;
2411
+ };
2412
+ }[];
2413
+ };
2414
+ };
2415
+ public_key: {
2416
+ "@type": string;
2417
+ public_keys: {
2418
+ "@type": string;
2419
+ key: string;
2420
+ }[];
2421
+ threshold: number;
2422
+ };
2423
+ })[];
2424
+ };
2425
+ body: {
2426
+ memo: string;
2427
+ timeout_height: string;
2428
+ extension_options: {
2429
+ value: number[];
2430
+ typeUrl: string;
2431
+ }[];
2432
+ messages: z.objectInputType<{
2433
+ "@type": z.ZodString;
2434
+ }, z.ZodTypeAny, "passthrough">[];
2435
+ non_critical_extension_options: {
2436
+ value: number[];
2437
+ typeUrl: string;
2438
+ }[];
2439
+ };
2440
+ signatures: string[];
2441
+ };
2442
+ txhash: string;
2443
+ timestamp?: unknown;
2444
+ }>;
2445
+ getCosmosTxHashByEvmTxHash(evmTxHash: string): Promise<string>;
2446
+ isErc721Contract(contractAddress: string): Promise<boolean>;
2447
+ }
2448
+
2449
+ declare class TxDecoder {
2450
+ private readonly apiClient;
2451
+ constructor(config: DecoderConfig);
2452
+ /**
2453
+ * Decodes a Cosmos EVM transaction, processing only general message types
2454
+ */
2455
+ decodeCosmosEvmTransaction(tx: unknown): Promise<DecodedTx>;
2456
+ /**
2457
+ * Decodes a Cosmos transaction, processing all supported message types for L1 and Move L2.
2458
+ */
2459
+ decodeCosmosTransaction(tx: unknown): Promise<DecodedTx>;
2460
+ /**
2461
+ * Decodes a Cosmos WASM transaction
2462
+ */
2463
+ decodeCosmosWasmTransaction(tx: unknown): Promise<DecodedTx>;
2464
+ /**
2465
+ * Decodes a native Ethereum RPC transaction
2466
+ */
2467
+ decodeEthereumTransaction(payload: unknown): Promise<DecodedEthereumTx>;
2468
+ private _decodeMessage;
2469
+ private _decodeMirroredCosmosTx;
2470
+ private _findDecoderForMessage;
2471
+ private _findEthereumDecoder;
2472
+ private _getDecodersForVm;
2473
+ private _processMessages;
2474
+ }
2475
+
2476
+ export { ApiClient, type BalanceChanges, type BaseBalanceChanges, type CosmosDecodedMessage, type DecodedContractCreationCall, type DecodedCosmosMirrorCall, type DecodedErc20ApproveCall, type DecodedErc20TransferCall, type DecodedErc20TransferFromCall, type DecodedErc721ApproveCall, type DecodedErc721SafeTransferFromCall, type DecodedErc721TransferFromCall, type DecodedEthTransferCall, type DecodedEthereumCall, type DecodedEthereumTx, type DecodedKami721PublicMintCall, type DecodedMessage, type DecodedNotSupportedCall, type DecodedTx, type DecoderConfig, type EthereumDecoder, type EvmBalanceChanges, type EvmDecodedMessage, type EvmEventProcessor, type EvmMetadata, type EvmNftMetadata, type FtChange, type MessageDecoder, type Metadata, type MoveBalanceChanges, type MoveDecodedMessage, type MoveEventProcessor, type MoveMetadata, type MoveNftMetadata, type NftChange, type ObjectChange, type ProcessedMessage, TxDecoder, type VmType, type WasmBalanceChanges, type WasmDecodedMessage, type WasmEventProcessor, type WasmMetadata };