@pushchain/core 2.1.7-alpha-v0 → 2.1.7

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.
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "address": "CFVSincHYbETh2k7w6u1ENEkjbSLtveRCEBupKidw2VS",
3
3
  "metadata": {
4
- "name": "universal_gateway",
4
+ "name": "pushsolanagateway",
5
5
  "version": "0.1.0",
6
6
  "spec": "0.1.0",
7
- "description": "Universal Gateway for Solana - Cross-chain bridge and transaction router"
7
+ "description": "Push Solana Gateway - Universal Gateway for Solana"
8
8
  },
9
9
  "instructions": [
10
10
  {
@@ -12,16 +12,7 @@
12
12
  "docs": [
13
13
  "@notice Legacy-compatible add funds event for offchain relayers (pushsolanalocker)"
14
14
  ],
15
- "discriminator": [
16
- 132,
17
- 237,
18
- 76,
19
- 57,
20
- 80,
21
- 10,
22
- 179,
23
- 138
24
- ],
15
+ "discriminator": [132, 237, 76, 57, 80, 10, 179, 138],
25
16
  "accounts": [
26
17
  {
27
18
  "name": "config",
@@ -29,14 +20,7 @@
29
20
  "seeds": [
30
21
  {
31
22
  "kind": "const",
32
- "value": [
33
- 99,
34
- 111,
35
- 110,
36
- 102,
37
- 105,
38
- 103
39
- ]
23
+ "value": [99, 111, 110, 102, 105, 103]
40
24
  }
41
25
  ]
42
26
  }
@@ -48,13 +32,7 @@
48
32
  "seeds": [
49
33
  {
50
34
  "kind": "const",
51
- "value": [
52
- 118,
53
- 97,
54
- 117,
55
- 108,
56
- 116
57
- ]
35
+ "value": [118, 97, 117, 108, 116]
58
36
  }
59
37
  ]
60
38
  }
@@ -80,10 +58,7 @@
80
58
  {
81
59
  "name": "transaction_hash",
82
60
  "type": {
83
- "array": [
84
- "u8",
85
- 32
86
- ]
61
+ "array": ["u8", 32]
87
62
  }
88
63
  }
89
64
  ]
@@ -94,16 +69,7 @@
94
69
  "@notice View function for SOL price (locker-compatible)",
95
70
  "@dev Anyone can fetch SOL price in USD"
96
71
  ],
97
- "discriminator": [
98
- 230,
99
- 145,
100
- 206,
101
- 175,
102
- 43,
103
- 184,
104
- 97,
105
- 110
106
- ],
72
+ "discriminator": [230, 145, 206, 175, 43, 184, 97, 110],
107
73
  "accounts": [
108
74
  {
109
75
  "name": "price_update"
@@ -118,16 +84,7 @@
118
84
  },
119
85
  {
120
86
  "name": "init_tss",
121
- "discriminator": [
122
- 47,
123
- 31,
124
- 100,
125
- 111,
126
- 115,
127
- 2,
128
- 22,
129
- 208
130
- ],
87
+ "discriminator": [47, 31, 100, 111, 115, 2, 22, 208],
131
88
  "accounts": [
132
89
  {
133
90
  "name": "tss_pda",
@@ -136,11 +93,7 @@
136
93
  "seeds": [
137
94
  {
138
95
  "kind": "const",
139
- "value": [
140
- 116,
141
- 115,
142
- 115
143
- ]
96
+ "value": [116, 115, 115]
144
97
  }
145
98
  ]
146
99
  }
@@ -159,10 +112,7 @@
159
112
  {
160
113
  "name": "tss_eth_address",
161
114
  "type": {
162
- "array": [
163
- "u8",
164
- 20
165
- ]
115
+ "array": ["u8", 20]
166
116
  }
167
117
  },
168
118
  {
@@ -173,19 +123,8 @@
173
123
  },
174
124
  {
175
125
  "name": "initialize",
176
- "docs": [
177
- "@notice Initialize the gateway"
178
- ],
179
- "discriminator": [
180
- 175,
181
- 175,
182
- 109,
183
- 31,
184
- 13,
185
- 152,
186
- 155,
187
- 237
188
- ],
126
+ "docs": ["@notice Initialize the gateway"],
127
+ "discriminator": [175, 175, 109, 31, 13, 152, 155, 237],
189
128
  "accounts": [
190
129
  {
191
130
  "name": "config",
@@ -194,14 +133,7 @@
194
133
  "seeds": [
195
134
  {
196
135
  "kind": "const",
197
- "value": [
198
- 99,
199
- 111,
200
- 110,
201
- 102,
202
- 105,
203
- 103
204
- ]
136
+ "value": [99, 111, 110, 102, 105, 103]
205
137
  }
206
138
  ]
207
139
  }
@@ -213,13 +145,7 @@
213
145
  "seeds": [
214
146
  {
215
147
  "kind": "const",
216
- "value": [
217
- 118,
218
- 97,
219
- 117,
220
- 108,
221
- 116
222
- ]
148
+ "value": [118, 97, 117, 108, 116]
223
149
  }
224
150
  ]
225
151
  }
@@ -263,19 +189,8 @@
263
189
  },
264
190
  {
265
191
  "name": "pause",
266
- "docs": [
267
- "@notice Pause the gateway"
268
- ],
269
- "discriminator": [
270
- 211,
271
- 22,
272
- 221,
273
- 251,
274
- 74,
275
- 121,
276
- 193,
277
- 47
278
- ],
192
+ "docs": ["@notice Pause the gateway"],
193
+ "discriminator": [211, 22, 221, 251, 74, 121, 193, 47],
279
194
  "accounts": [
280
195
  {
281
196
  "name": "config",
@@ -284,14 +199,7 @@
284
199
  "seeds": [
285
200
  {
286
201
  "kind": "const",
287
- "value": [
288
- 99,
289
- 111,
290
- 110,
291
- 102,
292
- 105,
293
- 103
294
- ]
202
+ "value": [99, 111, 110, 102, 105, 103]
295
203
  }
296
204
  ]
297
205
  }
@@ -305,19 +213,8 @@
305
213
  },
306
214
  {
307
215
  "name": "remove_whitelist_token",
308
- "docs": [
309
- "@notice Remove token from whitelist"
310
- ],
311
- "discriminator": [
312
- 65,
313
- 182,
314
- 42,
315
- 255,
316
- 198,
317
- 163,
318
- 73,
319
- 46
320
- ],
216
+ "docs": ["@notice Remove token from whitelist"],
217
+ "discriminator": [65, 182, 42, 255, 198, 163, 73, 46],
321
218
  "accounts": [
322
219
  {
323
220
  "name": "config",
@@ -326,14 +223,7 @@
326
223
  "seeds": [
327
224
  {
328
225
  "kind": "const",
329
- "value": [
330
- 99,
331
- 111,
332
- 110,
333
- 102,
334
- 105,
335
- 103
336
- ]
226
+ "value": [99, 111, 110, 102, 105, 103]
337
227
  }
338
228
  ]
339
229
  }
@@ -345,17 +235,7 @@
345
235
  "seeds": [
346
236
  {
347
237
  "kind": "const",
348
- "value": [
349
- 119,
350
- 104,
351
- 105,
352
- 116,
353
- 101,
354
- 108,
355
- 105,
356
- 115,
357
- 116
358
- ]
238
+ "value": [119, 104, 105, 116, 101, 108, 105, 115, 116]
359
239
  }
360
240
  ]
361
241
  }
@@ -379,16 +259,7 @@
379
259
  },
380
260
  {
381
261
  "name": "reset_nonce",
382
- "discriminator": [
383
- 104,
384
- 139,
385
- 110,
386
- 85,
387
- 234,
388
- 155,
389
- 132,
390
- 248
391
- ],
262
+ "discriminator": [104, 139, 110, 85, 234, 155, 132, 248],
392
263
  "accounts": [
393
264
  {
394
265
  "name": "tss_pda",
@@ -397,11 +268,7 @@
397
268
  "seeds": [
398
269
  {
399
270
  "kind": "const",
400
- "value": [
401
- 116,
402
- 115,
403
- 115
404
- ]
271
+ "value": [116, 115, 115]
405
272
  }
406
273
  ]
407
274
  }
@@ -420,19 +287,8 @@
420
287
  },
421
288
  {
422
289
  "name": "revert_withdraw",
423
- "docs": [
424
- "@notice TSS-verified revert withdraw for SOL"
425
- ],
426
- "discriminator": [
427
- 8,
428
- 232,
429
- 107,
430
- 216,
431
- 153,
432
- 25,
433
- 204,
434
- 116
435
- ],
290
+ "docs": ["@notice TSS-verified revert withdraw for SOL"],
291
+ "discriminator": [8, 232, 107, 216, 153, 25, 204, 116],
436
292
  "accounts": [
437
293
  {
438
294
  "name": "config",
@@ -440,14 +296,7 @@
440
296
  "seeds": [
441
297
  {
442
298
  "kind": "const",
443
- "value": [
444
- 99,
445
- 111,
446
- 110,
447
- 102,
448
- 105,
449
- 103
450
- ]
299
+ "value": [99, 111, 110, 102, 105, 103]
451
300
  }
452
301
  ]
453
302
  }
@@ -459,13 +308,7 @@
459
308
  "seeds": [
460
309
  {
461
310
  "kind": "const",
462
- "value": [
463
- 118,
464
- 97,
465
- 117,
466
- 108,
467
- 116
468
- ]
311
+ "value": [118, 97, 117, 108, 116]
469
312
  }
470
313
  ]
471
314
  }
@@ -477,11 +320,7 @@
477
320
  "seeds": [
478
321
  {
479
322
  "kind": "const",
480
- "value": [
481
- 116,
482
- 115,
483
- 115
484
- ]
323
+ "value": [116, 115, 115]
485
324
  }
486
325
  ]
487
326
  }
@@ -501,20 +340,17 @@
501
340
  "type": "u64"
502
341
  },
503
342
  {
504
- "name": "revert_instruction",
343
+ "name": "revert_cfg",
505
344
  "type": {
506
345
  "defined": {
507
- "name": "RevertInstructions"
346
+ "name": "RevertSettings"
508
347
  }
509
348
  }
510
349
  },
511
350
  {
512
351
  "name": "signature",
513
352
  "type": {
514
- "array": [
515
- "u8",
516
- 64
517
- ]
353
+ "array": ["u8", 64]
518
354
  }
519
355
  },
520
356
  {
@@ -524,10 +360,7 @@
524
360
  {
525
361
  "name": "message_hash",
526
362
  "type": {
527
- "array": [
528
- "u8",
529
- 32
530
- ]
363
+ "array": ["u8", 32]
531
364
  }
532
365
  },
533
366
  {
@@ -538,19 +371,8 @@
538
371
  },
539
372
  {
540
373
  "name": "revert_withdraw_spl_token",
541
- "docs": [
542
- "@notice TSS-verified revert withdraw for SPL tokens"
543
- ],
544
- "discriminator": [
545
- 172,
546
- 155,
547
- 56,
548
- 3,
549
- 92,
550
- 190,
551
- 159,
552
- 191
553
- ],
374
+ "docs": ["@notice TSS-verified revert withdraw for SPL tokens"],
375
+ "discriminator": [172, 155, 56, 3, 92, 190, 159, 191],
554
376
  "accounts": [
555
377
  {
556
378
  "name": "config",
@@ -558,14 +380,7 @@
558
380
  "seeds": [
559
381
  {
560
382
  "kind": "const",
561
- "value": [
562
- 99,
563
- 111,
564
- 110,
565
- 102,
566
- 105,
567
- 103
568
- ]
383
+ "value": [99, 111, 110, 102, 105, 103]
569
384
  }
570
385
  ]
571
386
  }
@@ -580,13 +395,7 @@
580
395
  "seeds": [
581
396
  {
582
397
  "kind": "const",
583
- "value": [
584
- 118,
585
- 97,
586
- 117,
587
- 108,
588
- 116
589
- ]
398
+ "value": [118, 97, 117, 108, 116]
590
399
  }
591
400
  ]
592
401
  }
@@ -602,11 +411,7 @@
602
411
  "seeds": [
603
412
  {
604
413
  "kind": "const",
605
- "value": [
606
- 116,
607
- 115,
608
- 115
609
- ]
414
+ "value": [116, 115, 115]
610
415
  }
611
416
  ]
612
417
  }
@@ -629,20 +434,17 @@
629
434
  "type": "u64"
630
435
  },
631
436
  {
632
- "name": "revert_instruction",
437
+ "name": "revert_cfg",
633
438
  "type": {
634
439
  "defined": {
635
- "name": "RevertInstructions"
440
+ "name": "RevertSettings"
636
441
  }
637
442
  }
638
443
  },
639
444
  {
640
445
  "name": "signature",
641
446
  "type": {
642
- "array": [
643
- "u8",
644
- 64
645
- ]
447
+ "array": ["u8", 64]
646
448
  }
647
449
  },
648
450
  {
@@ -652,10 +454,7 @@
652
454
  {
653
455
  "name": "message_hash",
654
456
  "type": {
655
- "array": [
656
- "u8",
657
- 32
658
- ]
457
+ "array": ["u8", 32]
659
458
  }
660
459
  },
661
460
  {
@@ -671,18 +470,9 @@
671
470
  "@dev Supports both native SOL and SPL token deposits (like ETH Gateway).",
672
471
  "For native SOL: pass Pubkey::default() as bridge_token",
673
472
  "For SPL tokens: pass token mint address as bridge_token",
674
- "The route emits UniversalTx event."
675
- ],
676
- "discriminator": [
677
- 84,
678
- 247,
679
- 211,
680
- 40,
681
- 63,
682
- 106,
683
- 15,
684
- 59
473
+ "The route emits TxWithFunds event."
685
474
  ],
475
+ "discriminator": [84, 247, 211, 40, 63, 106, 15, 59],
686
476
  "accounts": [
687
477
  {
688
478
  "name": "config",
@@ -691,14 +481,7 @@
691
481
  "seeds": [
692
482
  {
693
483
  "kind": "const",
694
- "value": [
695
- 99,
696
- 111,
697
- 110,
698
- 102,
699
- 105,
700
- 103
701
- ]
484
+ "value": [99, 111, 110, 102, 105, 103]
702
485
  }
703
486
  ]
704
487
  }
@@ -710,13 +493,7 @@
710
493
  "seeds": [
711
494
  {
712
495
  "kind": "const",
713
- "value": [
714
- 118,
715
- 97,
716
- 117,
717
- 108,
718
- 116
719
- ]
496
+ "value": [118, 97, 117, 108, 116]
720
497
  }
721
498
  ]
722
499
  }
@@ -727,17 +504,7 @@
727
504
  "seeds": [
728
505
  {
729
506
  "kind": "const",
730
- "value": [
731
- 119,
732
- 104,
733
- 105,
734
- 116,
735
- 101,
736
- 108,
737
- 105,
738
- 115,
739
- 116
740
- ]
507
+ "value": [119, 104, 105, 116, 101, 108, 105, 115, 116]
741
508
  }
742
509
  ]
743
510
  }
@@ -771,10 +538,7 @@
771
538
  {
772
539
  "name": "recipient",
773
540
  "type": {
774
- "array": [
775
- "u8",
776
- 20
777
- ]
541
+ "array": ["u8", 20]
778
542
  }
779
543
  },
780
544
  {
@@ -786,10 +550,10 @@
786
550
  "type": "u64"
787
551
  },
788
552
  {
789
- "name": "revert_instruction",
553
+ "name": "revert_cfg",
790
554
  "type": {
791
555
  "defined": {
792
- "name": "RevertInstructions"
556
+ "name": "RevertSettings"
793
557
  }
794
558
  }
795
559
  }
@@ -800,18 +564,9 @@
800
564
  "docs": [
801
565
  "@notice Allows initiating a TX for movement of funds and payload from source chain to Push Chain.",
802
566
  "@dev Supports both native SOL and SPL token deposits with payload execution.",
803
- "The route emits UniversalTx event."
804
- ],
805
- "discriminator": [
806
- 224,
807
- 179,
808
- 202,
809
- 222,
810
- 121,
811
- 238,
812
- 38,
813
- 168
567
+ "The route emits both TxWithGas and TxWithFunds events."
814
568
  ],
569
+ "discriminator": [224, 179, 202, 222, 121, 238, 38, 168],
815
570
  "accounts": [
816
571
  {
817
572
  "name": "config",
@@ -820,14 +575,7 @@
820
575
  "seeds": [
821
576
  {
822
577
  "kind": "const",
823
- "value": [
824
- 99,
825
- 111,
826
- 110,
827
- 102,
828
- 105,
829
- 103
830
- ]
578
+ "value": [99, 111, 110, 102, 105, 103]
831
579
  }
832
580
  ]
833
581
  }
@@ -839,13 +587,7 @@
839
587
  "seeds": [
840
588
  {
841
589
  "kind": "const",
842
- "value": [
843
- 118,
844
- 97,
845
- 117,
846
- 108,
847
- 116
848
- ]
590
+ "value": [118, 97, 117, 108, 116]
849
591
  }
850
592
  ]
851
593
  }
@@ -856,17 +598,7 @@
856
598
  "seeds": [
857
599
  {
858
600
  "kind": "const",
859
- "value": [
860
- 119,
861
- 104,
862
- 105,
863
- 116,
864
- 101,
865
- 108,
866
- 105,
867
- 115,
868
- 116
869
- ]
601
+ "value": [119, 104, 105, 116, 101, 108, 105, 115, 116]
870
602
  }
871
603
  ]
872
604
  }
@@ -917,10 +649,10 @@
917
649
  }
918
650
  },
919
651
  {
920
- "name": "revert_instruction",
652
+ "name": "revert_cfg",
921
653
  "type": {
922
654
  "defined": {
923
- "name": "RevertInstructions"
655
+ "name": "RevertSettings"
924
656
  }
925
657
  }
926
658
  },
@@ -939,18 +671,9 @@
939
671
  "docs": [
940
672
  "@notice Allows initiating a TX for funding UEA with gas deposits from source chain.",
941
673
  "@dev Supports only native SOL deposits for gas funding.",
942
- "The route emits UniversalTx event - important for Instant TX Route."
943
- ],
944
- "discriminator": [
945
- 220,
946
- 10,
947
- 179,
948
- 127,
949
- 41,
950
- 153,
951
- 193,
952
- 213
674
+ "The route emits TxWithGas event - important for Instant TX Route."
953
675
  ],
676
+ "discriminator": [220, 10, 179, 127, 41, 153, 193, 213],
954
677
  "accounts": [
955
678
  {
956
679
  "name": "config",
@@ -959,14 +682,7 @@
959
682
  "seeds": [
960
683
  {
961
684
  "kind": "const",
962
- "value": [
963
- 99,
964
- 111,
965
- 110,
966
- 102,
967
- 105,
968
- 103
969
- ]
685
+ "value": [99, 111, 110, 102, 105, 103]
970
686
  }
971
687
  ]
972
688
  }
@@ -978,13 +694,7 @@
978
694
  "seeds": [
979
695
  {
980
696
  "kind": "const",
981
- "value": [
982
- 118,
983
- 97,
984
- 117,
985
- 108,
986
- 116
987
- ]
697
+ "value": [118, 97, 117, 108, 116]
988
698
  }
989
699
  ]
990
700
  }
@@ -1012,120 +722,23 @@
1012
722
  }
1013
723
  },
1014
724
  {
1015
- "name": "revert_instruction",
725
+ "name": "revert_cfg",
1016
726
  "type": {
1017
727
  "defined": {
1018
- "name": "RevertInstructions"
728
+ "name": "RevertSettings"
1019
729
  }
1020
730
  }
1021
731
  },
1022
732
  {
1023
733
  "name": "amount",
1024
734
  "type": "u64"
1025
- },
1026
- {
1027
- "name": "signature_data",
1028
- "type": "bytes"
1029
- }
1030
- ]
1031
- },
1032
- {
1033
- "name": "set_block_usd_cap",
1034
- "docs": [
1035
- "@notice Set block-based USD cap for rate limiting"
1036
- ],
1037
- "discriminator": [
1038
- 205,
1039
- 253,
1040
- 33,
1041
- 164,
1042
- 220,
1043
- 216,
1044
- 42,
1045
- 50
1046
- ],
1047
- "accounts": [
1048
- {
1049
- "name": "config",
1050
- "writable": true,
1051
- "pda": {
1052
- "seeds": [
1053
- {
1054
- "kind": "const",
1055
- "value": [
1056
- 99,
1057
- 111,
1058
- 110,
1059
- 102,
1060
- 105,
1061
- 103
1062
- ]
1063
- }
1064
- ]
1065
- }
1066
- },
1067
- {
1068
- "name": "rate_limit_config",
1069
- "writable": true,
1070
- "pda": {
1071
- "seeds": [
1072
- {
1073
- "kind": "const",
1074
- "value": [
1075
- 114,
1076
- 97,
1077
- 116,
1078
- 101,
1079
- 95,
1080
- 108,
1081
- 105,
1082
- 109,
1083
- 105,
1084
- 116,
1085
- 95,
1086
- 99,
1087
- 111,
1088
- 110,
1089
- 102,
1090
- 105,
1091
- 103
1092
- ]
1093
- }
1094
- ]
1095
- }
1096
- },
1097
- {
1098
- "name": "admin",
1099
- "writable": true,
1100
- "signer": true
1101
- },
1102
- {
1103
- "name": "system_program",
1104
- "address": "11111111111111111111111111111111"
1105
- }
1106
- ],
1107
- "args": [
1108
- {
1109
- "name": "block_usd_cap",
1110
- "type": "u128"
1111
735
  }
1112
736
  ]
1113
737
  },
1114
738
  {
1115
739
  "name": "set_caps_usd",
1116
- "docs": [
1117
- "@notice Set USD caps"
1118
- ],
1119
- "discriminator": [
1120
- 136,
1121
- 160,
1122
- 17,
1123
- 54,
1124
- 239,
1125
- 108,
1126
- 125,
1127
- 129
1128
- ],
740
+ "docs": ["@notice Set USD caps"],
741
+ "discriminator": [136, 160, 17, 54, 239, 108, 125, 129],
1129
742
  "accounts": [
1130
743
  {
1131
744
  "name": "config",
@@ -1134,14 +747,7 @@
1134
747
  "seeds": [
1135
748
  {
1136
749
  "kind": "const",
1137
- "value": [
1138
- 99,
1139
- 111,
1140
- 110,
1141
- 102,
1142
- 105,
1143
- 103
1144
- ]
750
+ "value": [99, 111, 110, 102, 105, 103]
1145
751
  }
1146
752
  ]
1147
753
  }
@@ -1164,19 +770,8 @@
1164
770
  },
1165
771
  {
1166
772
  "name": "set_pyth_confidence_threshold",
1167
- "docs": [
1168
- "@notice Set Pyth confidence threshold"
1169
- ],
1170
- "discriminator": [
1171
- 213,
1172
- 69,
1173
- 242,
1174
- 123,
1175
- 122,
1176
- 165,
1177
- 125,
1178
- 21
1179
- ],
773
+ "docs": ["@notice Set Pyth confidence threshold"],
774
+ "discriminator": [213, 69, 242, 123, 122, 165, 125, 21],
1180
775
  "accounts": [
1181
776
  {
1182
777
  "name": "config",
@@ -1185,14 +780,7 @@
1185
780
  "seeds": [
1186
781
  {
1187
782
  "kind": "const",
1188
- "value": [
1189
- 99,
1190
- 111,
1191
- 110,
1192
- 102,
1193
- 105,
1194
- 103
1195
- ]
783
+ "value": [99, 111, 110, 102, 105, 103]
1196
784
  }
1197
785
  ]
1198
786
  }
@@ -1211,19 +799,8 @@
1211
799
  },
1212
800
  {
1213
801
  "name": "set_pyth_price_feed",
1214
- "docs": [
1215
- "@notice Set Pyth price feed"
1216
- ],
1217
- "discriminator": [
1218
- 202,
1219
- 185,
1220
- 109,
1221
- 150,
1222
- 255,
1223
- 130,
1224
- 210,
1225
- 208
1226
- ],
802
+ "docs": ["@notice Set Pyth price feed"],
803
+ "discriminator": [202, 185, 109, 150, 255, 130, 210, 208],
1227
804
  "accounts": [
1228
805
  {
1229
806
  "name": "config",
@@ -1232,14 +809,7 @@
1232
809
  "seeds": [
1233
810
  {
1234
811
  "kind": "const",
1235
- "value": [
1236
- 99,
1237
- 111,
1238
- 110,
1239
- 102,
1240
- 105,
1241
- 103
1242
- ]
812
+ "value": [99, 111, 110, 102, 105, 103]
1243
813
  }
1244
814
  ]
1245
815
  }
@@ -1256,103 +826,10 @@
1256
826
  }
1257
827
  ]
1258
828
  },
1259
- {
1260
- "name": "set_token_rate_limit",
1261
- "docs": [
1262
- "@notice Set token-specific rate limit threshold"
1263
- ],
1264
- "discriminator": [
1265
- 67,
1266
- 225,
1267
- 226,
1268
- 248,
1269
- 119,
1270
- 98,
1271
- 18,
1272
- 68
1273
- ],
1274
- "accounts": [
1275
- {
1276
- "name": "config",
1277
- "writable": true,
1278
- "pda": {
1279
- "seeds": [
1280
- {
1281
- "kind": "const",
1282
- "value": [
1283
- 99,
1284
- 111,
1285
- 110,
1286
- 102,
1287
- 105,
1288
- 103
1289
- ]
1290
- }
1291
- ]
1292
- }
1293
- },
1294
- {
1295
- "name": "token_rate_limit",
1296
- "writable": true,
1297
- "pda": {
1298
- "seeds": [
1299
- {
1300
- "kind": "const",
1301
- "value": [
1302
- 114,
1303
- 97,
1304
- 116,
1305
- 101,
1306
- 95,
1307
- 108,
1308
- 105,
1309
- 109,
1310
- 105,
1311
- 116
1312
- ]
1313
- },
1314
- {
1315
- "kind": "account",
1316
- "path": "token_mint"
1317
- }
1318
- ]
1319
- }
1320
- },
1321
- {
1322
- "name": "token_mint"
1323
- },
1324
- {
1325
- "name": "admin",
1326
- "writable": true,
1327
- "signer": true
1328
- },
1329
- {
1330
- "name": "system_program",
1331
- "address": "11111111111111111111111111111111"
1332
- }
1333
- ],
1334
- "args": [
1335
- {
1336
- "name": "limit_threshold",
1337
- "type": "u128"
1338
- }
1339
- ]
1340
- },
1341
829
  {
1342
830
  "name": "set_tss_address",
1343
- "docs": [
1344
- "@notice Set TSS address"
1345
- ],
1346
- "discriminator": [
1347
- 158,
1348
- 254,
1349
- 147,
1350
- 0,
1351
- 154,
1352
- 3,
1353
- 56,
1354
- 50
1355
- ],
831
+ "docs": ["@notice Set TSS address"],
832
+ "discriminator": [158, 254, 147, 0, 154, 3, 56, 50],
1356
833
  "accounts": [
1357
834
  {
1358
835
  "name": "config",
@@ -1361,14 +838,7 @@
1361
838
  "seeds": [
1362
839
  {
1363
840
  "kind": "const",
1364
- "value": [
1365
- 99,
1366
- 111,
1367
- 110,
1368
- 102,
1369
- 105,
1370
- 103
1371
- ]
841
+ "value": [99, 111, 110, 102, 105, 103]
1372
842
  }
1373
843
  ]
1374
844
  }
@@ -1387,19 +857,8 @@
1387
857
  },
1388
858
  {
1389
859
  "name": "unpause",
1390
- "docs": [
1391
- "@notice Unpause the gateway"
1392
- ],
1393
- "discriminator": [
1394
- 169,
1395
- 144,
1396
- 4,
1397
- 38,
1398
- 10,
1399
- 141,
1400
- 188,
1401
- 255
1402
- ],
860
+ "docs": ["@notice Unpause the gateway"],
861
+ "discriminator": [169, 144, 4, 38, 10, 141, 188, 255],
1403
862
  "accounts": [
1404
863
  {
1405
864
  "name": "config",
@@ -1408,14 +867,7 @@
1408
867
  "seeds": [
1409
868
  {
1410
869
  "kind": "const",
1411
- "value": [
1412
- 99,
1413
- 111,
1414
- 110,
1415
- 102,
1416
- 105,
1417
- 103
1418
- ]
870
+ "value": [99, 111, 110, 102, 105, 103]
1419
871
  }
1420
872
  ]
1421
873
  }
@@ -1427,100 +879,9 @@
1427
879
  ],
1428
880
  "args": []
1429
881
  },
1430
- {
1431
- "name": "update_epoch_duration",
1432
- "docs": [
1433
- "@notice Update epoch duration for rate limiting"
1434
- ],
1435
- "discriminator": [
1436
- 145,
1437
- 173,
1438
- 2,
1439
- 249,
1440
- 226,
1441
- 157,
1442
- 29,
1443
- 104
1444
- ],
1445
- "accounts": [
1446
- {
1447
- "name": "config",
1448
- "writable": true,
1449
- "pda": {
1450
- "seeds": [
1451
- {
1452
- "kind": "const",
1453
- "value": [
1454
- 99,
1455
- 111,
1456
- 110,
1457
- 102,
1458
- 105,
1459
- 103
1460
- ]
1461
- }
1462
- ]
1463
- }
1464
- },
1465
- {
1466
- "name": "rate_limit_config",
1467
- "writable": true,
1468
- "pda": {
1469
- "seeds": [
1470
- {
1471
- "kind": "const",
1472
- "value": [
1473
- 114,
1474
- 97,
1475
- 116,
1476
- 101,
1477
- 95,
1478
- 108,
1479
- 105,
1480
- 109,
1481
- 105,
1482
- 116,
1483
- 95,
1484
- 99,
1485
- 111,
1486
- 110,
1487
- 102,
1488
- 105,
1489
- 103
1490
- ]
1491
- }
1492
- ]
1493
- }
1494
- },
1495
- {
1496
- "name": "admin",
1497
- "writable": true,
1498
- "signer": true
1499
- },
1500
- {
1501
- "name": "system_program",
1502
- "address": "11111111111111111111111111111111"
1503
- }
1504
- ],
1505
- "args": [
1506
- {
1507
- "name": "epoch_duration_sec",
1508
- "type": "u64"
1509
- }
1510
- ]
1511
- },
1512
882
  {
1513
883
  "name": "update_tss",
1514
- "discriminator": [
1515
- 227,
1516
- 136,
1517
- 3,
1518
- 242,
1519
- 177,
1520
- 168,
1521
- 10,
1522
- 160
1523
- ],
884
+ "discriminator": [227, 136, 3, 242, 177, 168, 10, 160],
1524
885
  "accounts": [
1525
886
  {
1526
887
  "name": "tss_pda",
@@ -1529,11 +890,7 @@
1529
890
  "seeds": [
1530
891
  {
1531
892
  "kind": "const",
1532
- "value": [
1533
- 116,
1534
- 115,
1535
- 115
1536
- ]
893
+ "value": [116, 115, 115]
1537
894
  }
1538
895
  ]
1539
896
  }
@@ -1547,10 +904,7 @@
1547
904
  {
1548
905
  "name": "tss_eth_address",
1549
906
  "type": {
1550
- "array": [
1551
- "u8",
1552
- 20
1553
- ]
907
+ "array": ["u8", 20]
1554
908
  }
1555
909
  },
1556
910
  {
@@ -1561,19 +915,8 @@
1561
915
  },
1562
916
  {
1563
917
  "name": "whitelist_token",
1564
- "docs": [
1565
- "@notice Whitelist a token"
1566
- ],
1567
- "discriminator": [
1568
- 6,
1569
- 141,
1570
- 83,
1571
- 167,
1572
- 31,
1573
- 6,
1574
- 2,
1575
- 224
1576
- ],
918
+ "docs": ["@notice Whitelist a token"],
919
+ "discriminator": [6, 141, 83, 167, 31, 6, 2, 224],
1577
920
  "accounts": [
1578
921
  {
1579
922
  "name": "config",
@@ -1582,14 +925,7 @@
1582
925
  "seeds": [
1583
926
  {
1584
927
  "kind": "const",
1585
- "value": [
1586
- 99,
1587
- 111,
1588
- 110,
1589
- 102,
1590
- 105,
1591
- 103
1592
- ]
928
+ "value": [99, 111, 110, 102, 105, 103]
1593
929
  }
1594
930
  ]
1595
931
  }
@@ -1601,17 +937,7 @@
1601
937
  "seeds": [
1602
938
  {
1603
939
  "kind": "const",
1604
- "value": [
1605
- 119,
1606
- 104,
1607
- 105,
1608
- 116,
1609
- 101,
1610
- 108,
1611
- 105,
1612
- 115,
1613
- 116
1614
- ]
940
+ "value": [119, 104, 105, 116, 101, 108, 105, 115, 116]
1615
941
  }
1616
942
  ]
1617
943
  }
@@ -1635,19 +961,8 @@
1635
961
  },
1636
962
  {
1637
963
  "name": "withdraw_spl_token_tss",
1638
- "docs": [
1639
- "@notice TSS-verified withdraw of SPL tokens"
1640
- ],
1641
- "discriminator": [
1642
- 238,
1643
- 209,
1644
- 47,
1645
- 229,
1646
- 44,
1647
- 234,
1648
- 138,
1649
- 198
1650
- ],
964
+ "docs": ["@notice TSS-verified withdraw of SPL tokens"],
965
+ "discriminator": [238, 209, 47, 229, 44, 234, 138, 198],
1651
966
  "accounts": [
1652
967
  {
1653
968
  "name": "config",
@@ -1655,14 +970,7 @@
1655
970
  "seeds": [
1656
971
  {
1657
972
  "kind": "const",
1658
- "value": [
1659
- 99,
1660
- 111,
1661
- 110,
1662
- 102,
1663
- 105,
1664
- 103
1665
- ]
973
+ "value": [99, 111, 110, 102, 105, 103]
1666
974
  }
1667
975
  ]
1668
976
  }
@@ -1677,13 +985,7 @@
1677
985
  "seeds": [
1678
986
  {
1679
987
  "kind": "const",
1680
- "value": [
1681
- 118,
1682
- 97,
1683
- 117,
1684
- 108,
1685
- 116
1686
- ]
988
+ "value": [118, 97, 117, 108, 116]
1687
989
  }
1688
990
  ]
1689
991
  }
@@ -1699,11 +1001,7 @@
1699
1001
  "seeds": [
1700
1002
  {
1701
1003
  "kind": "const",
1702
- "value": [
1703
- 116,
1704
- 115,
1705
- 115
1706
- ]
1004
+ "value": [116, 115, 115]
1707
1005
  }
1708
1006
  ]
1709
1007
  }
@@ -1728,10 +1026,7 @@
1728
1026
  {
1729
1027
  "name": "signature",
1730
1028
  "type": {
1731
- "array": [
1732
- "u8",
1733
- 64
1734
- ]
1029
+ "array": ["u8", 64]
1735
1030
  }
1736
1031
  },
1737
1032
  {
@@ -1741,10 +1036,7 @@
1741
1036
  {
1742
1037
  "name": "message_hash",
1743
1038
  "type": {
1744
- "array": [
1745
- "u8",
1746
- 32
1747
- ]
1039
+ "array": ["u8", 32]
1748
1040
  }
1749
1041
  },
1750
1042
  {
@@ -1755,19 +1047,8 @@
1755
1047
  },
1756
1048
  {
1757
1049
  "name": "withdraw_tss",
1758
- "docs": [
1759
- "@notice TSS-verified withdraw of native SOL"
1760
- ],
1761
- "discriminator": [
1762
- 112,
1763
- 51,
1764
- 93,
1765
- 250,
1766
- 136,
1767
- 175,
1768
- 118,
1769
- 100
1770
- ],
1050
+ "docs": ["@notice TSS-verified withdraw of native SOL"],
1051
+ "discriminator": [112, 51, 93, 250, 136, 175, 118, 100],
1771
1052
  "accounts": [
1772
1053
  {
1773
1054
  "name": "config",
@@ -1775,14 +1056,7 @@
1775
1056
  "seeds": [
1776
1057
  {
1777
1058
  "kind": "const",
1778
- "value": [
1779
- 99,
1780
- 111,
1781
- 110,
1782
- 102,
1783
- 105,
1784
- 103
1785
- ]
1059
+ "value": [99, 111, 110, 102, 105, 103]
1786
1060
  }
1787
1061
  ]
1788
1062
  }
@@ -1794,13 +1068,7 @@
1794
1068
  "seeds": [
1795
1069
  {
1796
1070
  "kind": "const",
1797
- "value": [
1798
- 118,
1799
- 97,
1800
- 117,
1801
- 108,
1802
- 116
1803
- ]
1071
+ "value": [118, 97, 117, 108, 116]
1804
1072
  }
1805
1073
  ]
1806
1074
  }
@@ -1812,11 +1080,7 @@
1812
1080
  "seeds": [
1813
1081
  {
1814
1082
  "kind": "const",
1815
- "value": [
1816
- 116,
1817
- 115,
1818
- 115
1819
- ]
1083
+ "value": [116, 115, 115]
1820
1084
  }
1821
1085
  ]
1822
1086
  }
@@ -1838,10 +1102,7 @@
1838
1102
  {
1839
1103
  "name": "signature",
1840
1104
  "type": {
1841
- "array": [
1842
- "u8",
1843
- 64
1844
- ]
1105
+ "array": ["u8", 64]
1845
1106
  }
1846
1107
  },
1847
1108
  {
@@ -1851,10 +1112,7 @@
1851
1112
  {
1852
1113
  "name": "message_hash",
1853
1114
  "type": {
1854
- "array": [
1855
- "u8",
1856
- 32
1857
- ]
1115
+ "array": ["u8", 32]
1858
1116
  }
1859
1117
  },
1860
1118
  {
@@ -1867,213 +1125,53 @@
1867
1125
  "accounts": [
1868
1126
  {
1869
1127
  "name": "Config",
1870
- "discriminator": [
1871
- 155,
1872
- 12,
1873
- 170,
1874
- 224,
1875
- 30,
1876
- 250,
1877
- 204,
1878
- 130
1879
- ]
1128
+ "discriminator": [155, 12, 170, 224, 30, 250, 204, 130]
1880
1129
  },
1881
1130
  {
1882
1131
  "name": "PriceUpdateV2",
1883
- "discriminator": [
1884
- 34,
1885
- 241,
1886
- 35,
1887
- 99,
1888
- 157,
1889
- 126,
1890
- 244,
1891
- 205
1892
- ]
1893
- },
1894
- {
1895
- "name": "RateLimitConfig",
1896
- "discriminator": [
1897
- 172,
1898
- 233,
1899
- 8,
1900
- 17,
1901
- 15,
1902
- 174,
1903
- 216,
1904
- 176
1905
- ]
1906
- },
1907
- {
1908
- "name": "TokenRateLimit",
1909
- "discriminator": [
1910
- 129,
1911
- 99,
1912
- 70,
1913
- 230,
1914
- 57,
1915
- 181,
1916
- 132,
1917
- 97
1918
- ]
1132
+ "discriminator": [34, 241, 35, 99, 157, 126, 244, 205]
1919
1133
  },
1920
1134
  {
1921
1135
  "name": "TokenWhitelist",
1922
- "discriminator": [
1923
- 105,
1924
- 240,
1925
- 104,
1926
- 47,
1927
- 95,
1928
- 13,
1929
- 48,
1930
- 78
1931
- ]
1136
+ "discriminator": [105, 240, 104, 47, 95, 13, 48, 78]
1932
1137
  },
1933
1138
  {
1934
1139
  "name": "TssPda",
1935
- "discriminator": [
1936
- 121,
1937
- 138,
1938
- 162,
1939
- 251,
1940
- 127,
1941
- 95,
1942
- 238,
1943
- 135
1944
- ]
1140
+ "discriminator": [121, 138, 162, 251, 127, 95, 238, 135]
1945
1141
  }
1946
1142
  ],
1947
1143
  "events": [
1948
- {
1949
- "name": "BlockUsdCapUpdated",
1950
- "discriminator": [
1951
- 69,
1952
- 44,
1953
- 151,
1954
- 48,
1955
- 36,
1956
- 74,
1957
- 176,
1958
- 194
1959
- ]
1960
- },
1961
1144
  {
1962
1145
  "name": "CapsUpdated",
1963
- "discriminator": [
1964
- 147,
1965
- 181,
1966
- 117,
1967
- 249,
1968
- 72,
1969
- 147,
1970
- 156,
1971
- 255
1972
- ]
1973
- },
1974
- {
1975
- "name": "EpochDurationUpdated",
1976
- "discriminator": [
1977
- 167,
1978
- 122,
1979
- 82,
1980
- 178,
1981
- 133,
1982
- 191,
1983
- 19,
1984
- 129
1985
- ]
1146
+ "discriminator": [147, 181, 117, 249, 72, 147, 156, 255]
1986
1147
  },
1987
1148
  {
1988
1149
  "name": "FundsAddedEvent",
1989
- "discriminator": [
1990
- 127,
1991
- 31,
1992
- 108,
1993
- 255,
1994
- 187,
1995
- 19,
1996
- 70,
1997
- 68
1998
- ]
1150
+ "discriminator": [127, 31, 108, 255, 187, 19, 70, 68]
1999
1151
  },
2000
1152
  {
2001
1153
  "name": "TSSAddressUpdated",
2002
- "discriminator": [
2003
- 157,
2004
- 148,
2005
- 149,
2006
- 250,
2007
- 42,
2008
- 118,
2009
- 17,
2010
- 232
2011
- ]
2012
- },
2013
- {
2014
- "name": "TokenRateLimitUpdated",
2015
- "discriminator": [
2016
- 73,
2017
- 75,
2018
- 54,
2019
- 189,
2020
- 59,
2021
- 130,
2022
- 39,
2023
- 59
2024
- ]
1154
+ "discriminator": [157, 148, 149, 250, 42, 118, 17, 232]
2025
1155
  },
2026
1156
  {
2027
1157
  "name": "TokenRemovedFromWhitelist",
2028
- "discriminator": [
2029
- 200,
2030
- 69,
2031
- 55,
2032
- 209,
2033
- 167,
2034
- 225,
2035
- 117,
2036
- 11
2037
- ]
1158
+ "discriminator": [200, 69, 55, 209, 167, 225, 117, 11]
2038
1159
  },
2039
1160
  {
2040
1161
  "name": "TokenWhitelisted",
2041
- "discriminator": [
2042
- 65,
2043
- 3,
2044
- 231,
2045
- 165,
2046
- 235,
2047
- 116,
2048
- 154,
2049
- 51
2050
- ]
1162
+ "discriminator": [65, 3, 231, 165, 235, 116, 154, 51]
2051
1163
  },
2052
1164
  {
2053
- "name": "UniversalTx",
2054
- "discriminator": [
2055
- 108,
2056
- 154,
2057
- 216,
2058
- 41,
2059
- 181,
2060
- 234,
2061
- 29,
2062
- 124
2063
- ]
1165
+ "name": "TxWithFunds",
1166
+ "discriminator": [43, 31, 31, 2, 4, 236, 107, 255]
1167
+ },
1168
+ {
1169
+ "name": "TxWithGas",
1170
+ "discriminator": [182, 110, 243, 17, 145, 36, 153, 15]
2064
1171
  },
2065
1172
  {
2066
1173
  "name": "WithdrawFunds",
2067
- "discriminator": [
2068
- 4,
2069
- 77,
2070
- 4,
2071
- 28,
2072
- 115,
2073
- 6,
2074
- 39,
2075
- 233
2076
- ]
1174
+ "discriminator": [4, 77, 4, 28, 115, 6, 39, 233]
2077
1175
  }
2078
1176
  ],
2079
1177
  "errors": [
@@ -2186,36 +1284,9 @@
2186
1284
  "code": 6021,
2187
1285
  "name": "InvalidToken",
2188
1286
  "msg": "Invalid token"
2189
- },
2190
- {
2191
- "code": 6022,
2192
- "name": "BlockUsdCapExceeded",
2193
- "msg": "Block USD cap exceeded"
2194
- },
2195
- {
2196
- "code": 6023,
2197
- "name": "RateLimitExceeded",
2198
- "msg": "Rate limit exceeded"
2199
- },
2200
- {
2201
- "code": 6024,
2202
- "name": "InvalidAccount",
2203
- "msg": "Invalid account"
2204
1287
  }
2205
1288
  ],
2206
1289
  "types": [
2207
- {
2208
- "name": "BlockUsdCapUpdated",
2209
- "type": {
2210
- "kind": "struct",
2211
- "fields": [
2212
- {
2213
- "name": "block_usd_cap",
2214
- "type": "u128"
2215
- }
2216
- ]
2217
- }
2218
- },
2219
1290
  {
2220
1291
  "name": "CapsUpdated",
2221
1292
  "type": {
@@ -2284,37 +1355,6 @@
2284
1355
  ]
2285
1356
  }
2286
1357
  },
2287
- {
2288
- "name": "EpochDurationUpdated",
2289
- "type": {
2290
- "kind": "struct",
2291
- "fields": [
2292
- {
2293
- "name": "epoch_duration_sec",
2294
- "type": "u64"
2295
- }
2296
- ]
2297
- }
2298
- },
2299
- {
2300
- "name": "EpochUsage",
2301
- "docs": [
2302
- "Epoch usage tracking for rate limiting (matching EVM EpochUsage struct)"
2303
- ],
2304
- "type": {
2305
- "kind": "struct",
2306
- "fields": [
2307
- {
2308
- "name": "epoch",
2309
- "type": "u64"
2310
- },
2311
- {
2312
- "name": "used",
2313
- "type": "u128"
2314
- }
2315
- ]
2316
- }
2317
- },
2318
1358
  {
2319
1359
  "name": "FundsAddedEvent",
2320
1360
  "docs": [
@@ -2343,10 +1383,7 @@
2343
1383
  {
2344
1384
  "name": "transaction_hash",
2345
1385
  "type": {
2346
- "array": [
2347
- "u8",
2348
- 32
2349
- ]
1386
+ "array": ["u8", 32]
2350
1387
  }
2351
1388
  }
2352
1389
  ]
@@ -2390,10 +1427,7 @@
2390
1427
  "`FeedId` but avoid the type alias because of compatibility issues with Anchor's `idl-build` feature."
2391
1428
  ],
2392
1429
  "type": {
2393
- "array": [
2394
- "u8",
2395
- 32
2396
- ]
1430
+ "array": ["u8", 32]
2397
1431
  }
2398
1432
  },
2399
1433
  {
@@ -2410,9 +1444,7 @@
2410
1444
  },
2411
1445
  {
2412
1446
  "name": "publish_time",
2413
- "docs": [
2414
- "The timestamp of this price update in seconds"
2415
- ],
1447
+ "docs": ["The timestamp of this price update in seconds"],
2416
1448
  "type": "i64"
2417
1449
  },
2418
1450
  {
@@ -2485,41 +1517,9 @@
2485
1517
  }
2486
1518
  },
2487
1519
  {
2488
- "name": "RateLimitConfig",
2489
- "docs": [
2490
- "Rate limiting configuration (separate account for backward compatibility)",
2491
- "PDA: `[b\"rate_limit_config\"]`. Stores global rate limiting settings."
2492
- ],
2493
- "type": {
2494
- "kind": "struct",
2495
- "fields": [
2496
- {
2497
- "name": "block_usd_cap",
2498
- "type": "u128"
2499
- },
2500
- {
2501
- "name": "epoch_duration_sec",
2502
- "type": "u64"
2503
- },
2504
- {
2505
- "name": "last_slot",
2506
- "type": "u64"
2507
- },
2508
- {
2509
- "name": "consumed_usd_in_block",
2510
- "type": "u128"
2511
- },
2512
- {
2513
- "name": "bump",
2514
- "type": "u8"
2515
- }
2516
- ]
2517
- }
2518
- },
2519
- {
2520
- "name": "RevertInstructions",
1520
+ "name": "RevertSettings",
2521
1521
  "docs": [
2522
- "Revert instructions for failed transactions (parity with EVM `RevertInstructions`)."
1522
+ "Revert settings for failed transactions (parity with EVM `RevertSettings`)."
2523
1523
  ],
2524
1524
  "type": {
2525
1525
  "kind": "struct",
@@ -2551,54 +1551,6 @@
2551
1551
  ]
2552
1552
  }
2553
1553
  },
2554
- {
2555
- "name": "TokenRateLimit",
2556
- "docs": [
2557
- "Token-specific rate limiting state (matching EVM implementation)",
2558
- "PDA: `[b\"rate_limit\", token_mint]`. Tracks epoch-based usage per token."
2559
- ],
2560
- "type": {
2561
- "kind": "struct",
2562
- "fields": [
2563
- {
2564
- "name": "token_mint",
2565
- "type": "pubkey"
2566
- },
2567
- {
2568
- "name": "limit_threshold",
2569
- "type": "u128"
2570
- },
2571
- {
2572
- "name": "epoch_usage",
2573
- "type": {
2574
- "defined": {
2575
- "name": "EpochUsage"
2576
- }
2577
- }
2578
- },
2579
- {
2580
- "name": "bump",
2581
- "type": "u8"
2582
- }
2583
- ]
2584
- }
2585
- },
2586
- {
2587
- "name": "TokenRateLimitUpdated",
2588
- "type": {
2589
- "kind": "struct",
2590
- "fields": [
2591
- {
2592
- "name": "token_mint",
2593
- "type": "pubkey"
2594
- },
2595
- {
2596
- "name": "limit_threshold",
2597
- "type": "u128"
2598
- }
2599
- ]
2600
- }
2601
- },
2602
1554
  {
2603
1555
  "name": "TokenRemovedFromWhitelist",
2604
1556
  "type": {
@@ -2657,10 +1609,7 @@
2657
1609
  {
2658
1610
  "name": "tss_eth_address",
2659
1611
  "type": {
2660
- "array": [
2661
- "u8",
2662
- 20
2663
- ]
1612
+ "array": ["u8", 20]
2664
1613
  }
2665
1614
  },
2666
1615
  {
@@ -2707,67 +1656,66 @@
2707
1656
  }
2708
1657
  },
2709
1658
  {
2710
- "name": "UniversalPayload",
1659
+ "name": "TxWithFunds",
2711
1660
  "docs": [
2712
- "Universal payload for cross-chain execution (parity with EVM `UniversalPayload`).",
2713
- "Serialized and hashed for event parity with EVM (payload bytes/hash)."
1661
+ "FUNDS deposit event (parity with EVM `TxWithFunds`). Emitted for FUNDS-only and FUNDS+PAYLOAD routes."
2714
1662
  ],
2715
1663
  "type": {
2716
1664
  "kind": "struct",
2717
1665
  "fields": [
2718
1666
  {
2719
- "name": "to",
2720
- "type": {
2721
- "array": [
2722
- "u8",
2723
- 20
2724
- ]
2725
- }
2726
- },
2727
- {
2728
- "name": "value",
2729
- "type": "u64"
1667
+ "name": "sender",
1668
+ "type": "pubkey"
2730
1669
  },
2731
1670
  {
2732
- "name": "data",
2733
- "type": "bytes"
1671
+ "name": "recipient",
1672
+ "type": {
1673
+ "array": ["u8", 20]
1674
+ }
2734
1675
  },
2735
1676
  {
2736
- "name": "gas_limit",
1677
+ "name": "bridge_amount",
2737
1678
  "type": "u64"
2738
1679
  },
2739
1680
  {
2740
- "name": "max_fee_per_gas",
1681
+ "name": "gas_amount",
2741
1682
  "type": "u64"
2742
1683
  },
2743
1684
  {
2744
- "name": "max_priority_fee_per_gas",
2745
- "type": "u64"
1685
+ "name": "bridge_token",
1686
+ "type": "pubkey"
2746
1687
  },
2747
1688
  {
2748
- "name": "nonce",
2749
- "type": "u64"
1689
+ "name": "data",
1690
+ "type": "bytes"
2750
1691
  },
2751
1692
  {
2752
- "name": "deadline",
2753
- "type": "i64"
1693
+ "name": "revert_cfg",
1694
+ "type": {
1695
+ "defined": {
1696
+ "name": "RevertSettings"
1697
+ }
1698
+ }
2754
1699
  },
2755
1700
  {
2756
- "name": "v_type",
1701
+ "name": "tx_type",
2757
1702
  "type": {
2758
1703
  "defined": {
2759
- "name": "VerificationType"
1704
+ "name": "TxType"
2760
1705
  }
2761
1706
  }
1707
+ },
1708
+ {
1709
+ "name": "signature_data",
1710
+ "type": "bytes"
2762
1711
  }
2763
1712
  ]
2764
1713
  }
2765
1714
  },
2766
1715
  {
2767
- "name": "UniversalTx",
1716
+ "name": "TxWithGas",
2768
1717
  "docs": [
2769
- "Universal transaction event (parity with EVM V0 `UniversalTx`).",
2770
- "Single event for both gas funding and funds movement."
1718
+ "GAS deposit event (parity with EVM `TxWithGas`). Emitted for gas funding on both GAS and GAS+PAYLOAD routes."
2771
1719
  ],
2772
1720
  "type": {
2773
1721
  "kind": "struct",
@@ -2777,31 +1725,20 @@
2777
1725
  "type": "pubkey"
2778
1726
  },
2779
1727
  {
2780
- "name": "recipient",
1728
+ "name": "payload_hash",
2781
1729
  "type": {
2782
- "array": [
2783
- "u8",
2784
- 20
2785
- ]
1730
+ "array": ["u8", 32]
2786
1731
  }
2787
1732
  },
2788
1733
  {
2789
- "name": "token",
2790
- "type": "pubkey"
2791
- },
2792
- {
2793
- "name": "amount",
1734
+ "name": "native_token_deposited",
2794
1735
  "type": "u64"
2795
1736
  },
2796
1737
  {
2797
- "name": "payload",
2798
- "type": "bytes"
2799
- },
2800
- {
2801
- "name": "revert_instruction",
1738
+ "name": "revert_cfg",
2802
1739
  "type": {
2803
1740
  "defined": {
2804
- "name": "RevertInstructions"
1741
+ "name": "RevertSettings"
2805
1742
  }
2806
1743
  }
2807
1744
  },
@@ -2812,10 +1749,60 @@
2812
1749
  "name": "TxType"
2813
1750
  }
2814
1751
  }
1752
+ }
1753
+ ]
1754
+ }
1755
+ },
1756
+ {
1757
+ "name": "UniversalPayload",
1758
+ "docs": [
1759
+ "Universal payload for cross-chain execution (parity with EVM `UniversalPayload`).",
1760
+ "Serialized and hashed for event parity with EVM (payload bytes/hash)."
1761
+ ],
1762
+ "type": {
1763
+ "kind": "struct",
1764
+ "fields": [
1765
+ {
1766
+ "name": "to",
1767
+ "type": {
1768
+ "array": ["u8", 20]
1769
+ }
2815
1770
  },
2816
1771
  {
2817
- "name": "signature_data",
1772
+ "name": "value",
1773
+ "type": "u64"
1774
+ },
1775
+ {
1776
+ "name": "data",
2818
1777
  "type": "bytes"
1778
+ },
1779
+ {
1780
+ "name": "gas_limit",
1781
+ "type": "u64"
1782
+ },
1783
+ {
1784
+ "name": "max_fee_per_gas",
1785
+ "type": "u64"
1786
+ },
1787
+ {
1788
+ "name": "max_priority_fee_per_gas",
1789
+ "type": "u64"
1790
+ },
1791
+ {
1792
+ "name": "nonce",
1793
+ "type": "u64"
1794
+ },
1795
+ {
1796
+ "name": "deadline",
1797
+ "type": "i64"
1798
+ },
1799
+ {
1800
+ "name": "v_type",
1801
+ "type": {
1802
+ "defined": {
1803
+ "name": "VerificationType"
1804
+ }
1805
+ }
2819
1806
  }
2820
1807
  ]
2821
1808
  }
@@ -2855,9 +1842,7 @@
2855
1842
  },
2856
1843
  {
2857
1844
  "name": "VerificationType",
2858
- "docs": [
2859
- "Verification types for payload execution (parity with EVM)."
2860
- ],
1845
+ "docs": ["Verification types for payload execution (parity with EVM)."],
2861
1846
  "type": {
2862
1847
  "kind": "enum",
2863
1848
  "variants": [
@@ -2872,9 +1857,7 @@
2872
1857
  },
2873
1858
  {
2874
1859
  "name": "WithdrawFunds",
2875
- "docs": [
2876
- "Withdraw event (parity with EVM `WithdrawFunds`)."
2877
- ],
1860
+ "docs": ["Withdraw event (parity with EVM `WithdrawFunds`)."],
2878
1861
  "type": {
2879
1862
  "kind": "struct",
2880
1863
  "fields": [