@gitmyabi/upgradeablelockreleasetokenpool 0.0.0-stage → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2852 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpgradeableLockReleaseTokenPool = exports.UpgradeableLockReleaseTokenPoolAbi = void 0;
4
+ const viem_1 = require("viem");
5
+ /**
6
+ * UpgradeableLockReleaseTokenPool ABI
7
+ *
8
+ * This ABI is typed using viem's type system for full type safety.
9
+ */
10
+ exports.UpgradeableLockReleaseTokenPoolAbi = [
11
+ {
12
+ "inputs": [
13
+ {
14
+ "internalType": "address",
15
+ "name": "token",
16
+ "type": "address"
17
+ },
18
+ {
19
+ "internalType": "uint8",
20
+ "name": "localTokenDecimals",
21
+ "type": "uint8"
22
+ },
23
+ {
24
+ "internalType": "address",
25
+ "name": "rmnProxy",
26
+ "type": "address"
27
+ },
28
+ {
29
+ "internalType": "bool",
30
+ "name": "allowListEnabled",
31
+ "type": "bool"
32
+ },
33
+ {
34
+ "internalType": "bool",
35
+ "name": "acceptLiquidity",
36
+ "type": "bool"
37
+ }
38
+ ],
39
+ "stateMutability": "nonpayable",
40
+ "type": "constructor"
41
+ },
42
+ {
43
+ "inputs": [
44
+ {
45
+ "internalType": "uint256",
46
+ "name": "capacity",
47
+ "type": "uint256"
48
+ },
49
+ {
50
+ "internalType": "uint256",
51
+ "name": "requested",
52
+ "type": "uint256"
53
+ }
54
+ ],
55
+ "name": "AggregateValueMaxCapacityExceeded",
56
+ "type": "error"
57
+ },
58
+ {
59
+ "inputs": [
60
+ {
61
+ "internalType": "uint256",
62
+ "name": "minWaitInSeconds",
63
+ "type": "uint256"
64
+ },
65
+ {
66
+ "internalType": "uint256",
67
+ "name": "available",
68
+ "type": "uint256"
69
+ }
70
+ ],
71
+ "name": "AggregateValueRateLimitReached",
72
+ "type": "error"
73
+ },
74
+ {
75
+ "inputs": [],
76
+ "name": "AllowListNotEnabled",
77
+ "type": "error"
78
+ },
79
+ {
80
+ "inputs": [
81
+ {
82
+ "internalType": "uint256",
83
+ "name": "bridgeLimit",
84
+ "type": "uint256"
85
+ }
86
+ ],
87
+ "name": "BridgeLimitExceeded",
88
+ "type": "error"
89
+ },
90
+ {
91
+ "inputs": [],
92
+ "name": "BucketOverfilled",
93
+ "type": "error"
94
+ },
95
+ {
96
+ "inputs": [
97
+ {
98
+ "internalType": "address",
99
+ "name": "caller",
100
+ "type": "address"
101
+ }
102
+ ],
103
+ "name": "CallerIsNotARampOnRouter",
104
+ "type": "error"
105
+ },
106
+ {
107
+ "inputs": [],
108
+ "name": "CannotTransferToSelf",
109
+ "type": "error"
110
+ },
111
+ {
112
+ "inputs": [
113
+ {
114
+ "internalType": "uint64",
115
+ "name": "chainSelector",
116
+ "type": "uint64"
117
+ }
118
+ ],
119
+ "name": "ChainAlreadyExists",
120
+ "type": "error"
121
+ },
122
+ {
123
+ "inputs": [
124
+ {
125
+ "internalType": "uint64",
126
+ "name": "remoteChainSelector",
127
+ "type": "uint64"
128
+ }
129
+ ],
130
+ "name": "ChainNotAllowed",
131
+ "type": "error"
132
+ },
133
+ {
134
+ "inputs": [],
135
+ "name": "CursedByRMN",
136
+ "type": "error"
137
+ },
138
+ {
139
+ "inputs": [
140
+ {
141
+ "components": [
142
+ {
143
+ "internalType": "bool",
144
+ "name": "isEnabled",
145
+ "type": "bool"
146
+ },
147
+ {
148
+ "internalType": "uint128",
149
+ "name": "capacity",
150
+ "type": "uint128"
151
+ },
152
+ {
153
+ "internalType": "uint128",
154
+ "name": "rate",
155
+ "type": "uint128"
156
+ }
157
+ ],
158
+ "internalType": "struct RateLimiter.Config",
159
+ "name": "config",
160
+ "type": "tuple"
161
+ }
162
+ ],
163
+ "name": "DisabledNonZeroRateLimit",
164
+ "type": "error"
165
+ },
166
+ {
167
+ "inputs": [],
168
+ "name": "InsufficientLiquidity",
169
+ "type": "error"
170
+ },
171
+ {
172
+ "inputs": [
173
+ {
174
+ "internalType": "uint8",
175
+ "name": "expected",
176
+ "type": "uint8"
177
+ },
178
+ {
179
+ "internalType": "uint8",
180
+ "name": "actual",
181
+ "type": "uint8"
182
+ }
183
+ ],
184
+ "name": "InvalidDecimalArgs",
185
+ "type": "error"
186
+ },
187
+ {
188
+ "inputs": [
189
+ {
190
+ "components": [
191
+ {
192
+ "internalType": "bool",
193
+ "name": "isEnabled",
194
+ "type": "bool"
195
+ },
196
+ {
197
+ "internalType": "uint128",
198
+ "name": "capacity",
199
+ "type": "uint128"
200
+ },
201
+ {
202
+ "internalType": "uint128",
203
+ "name": "rate",
204
+ "type": "uint128"
205
+ }
206
+ ],
207
+ "internalType": "struct RateLimiter.Config",
208
+ "name": "rateLimiterConfig",
209
+ "type": "tuple"
210
+ }
211
+ ],
212
+ "name": "InvalidRateLimitRate",
213
+ "type": "error"
214
+ },
215
+ {
216
+ "inputs": [
217
+ {
218
+ "internalType": "bytes",
219
+ "name": "sourcePoolData",
220
+ "type": "bytes"
221
+ }
222
+ ],
223
+ "name": "InvalidRemoteChainDecimals",
224
+ "type": "error"
225
+ },
226
+ {
227
+ "inputs": [
228
+ {
229
+ "internalType": "uint64",
230
+ "name": "remoteChainSelector",
231
+ "type": "uint64"
232
+ },
233
+ {
234
+ "internalType": "bytes",
235
+ "name": "remotePoolAddress",
236
+ "type": "bytes"
237
+ }
238
+ ],
239
+ "name": "InvalidRemotePoolForChain",
240
+ "type": "error"
241
+ },
242
+ {
243
+ "inputs": [
244
+ {
245
+ "internalType": "bytes",
246
+ "name": "sourcePoolAddress",
247
+ "type": "bytes"
248
+ }
249
+ ],
250
+ "name": "InvalidSourcePoolAddress",
251
+ "type": "error"
252
+ },
253
+ {
254
+ "inputs": [
255
+ {
256
+ "internalType": "address",
257
+ "name": "token",
258
+ "type": "address"
259
+ }
260
+ ],
261
+ "name": "InvalidToken",
262
+ "type": "error"
263
+ },
264
+ {
265
+ "inputs": [],
266
+ "name": "LiquidityNotAccepted",
267
+ "type": "error"
268
+ },
269
+ {
270
+ "inputs": [],
271
+ "name": "MustBeProposedOwner",
272
+ "type": "error"
273
+ },
274
+ {
275
+ "inputs": [
276
+ {
277
+ "internalType": "uint64",
278
+ "name": "remoteChainSelector",
279
+ "type": "uint64"
280
+ }
281
+ ],
282
+ "name": "NonExistentChain",
283
+ "type": "error"
284
+ },
285
+ {
286
+ "inputs": [],
287
+ "name": "NotEnoughBridgedAmount",
288
+ "type": "error"
289
+ },
290
+ {
291
+ "inputs": [],
292
+ "name": "OnlyCallableByOwner",
293
+ "type": "error"
294
+ },
295
+ {
296
+ "inputs": [
297
+ {
298
+ "internalType": "uint8",
299
+ "name": "remoteDecimals",
300
+ "type": "uint8"
301
+ },
302
+ {
303
+ "internalType": "uint8",
304
+ "name": "localDecimals",
305
+ "type": "uint8"
306
+ },
307
+ {
308
+ "internalType": "uint256",
309
+ "name": "remoteAmount",
310
+ "type": "uint256"
311
+ }
312
+ ],
313
+ "name": "OverflowDetected",
314
+ "type": "error"
315
+ },
316
+ {
317
+ "inputs": [],
318
+ "name": "OwnerCannotBeZero",
319
+ "type": "error"
320
+ },
321
+ {
322
+ "inputs": [
323
+ {
324
+ "internalType": "uint64",
325
+ "name": "remoteChainSelector",
326
+ "type": "uint64"
327
+ },
328
+ {
329
+ "internalType": "bytes",
330
+ "name": "remotePoolAddress",
331
+ "type": "bytes"
332
+ }
333
+ ],
334
+ "name": "PoolAlreadyAdded",
335
+ "type": "error"
336
+ },
337
+ {
338
+ "inputs": [],
339
+ "name": "RateLimitMustBeDisabled",
340
+ "type": "error"
341
+ },
342
+ {
343
+ "inputs": [
344
+ {
345
+ "internalType": "address",
346
+ "name": "sender",
347
+ "type": "address"
348
+ }
349
+ ],
350
+ "name": "SenderNotAllowed",
351
+ "type": "error"
352
+ },
353
+ {
354
+ "inputs": [
355
+ {
356
+ "internalType": "uint256",
357
+ "name": "capacity",
358
+ "type": "uint256"
359
+ },
360
+ {
361
+ "internalType": "uint256",
362
+ "name": "requested",
363
+ "type": "uint256"
364
+ },
365
+ {
366
+ "internalType": "address",
367
+ "name": "tokenAddress",
368
+ "type": "address"
369
+ }
370
+ ],
371
+ "name": "TokenMaxCapacityExceeded",
372
+ "type": "error"
373
+ },
374
+ {
375
+ "inputs": [
376
+ {
377
+ "internalType": "uint256",
378
+ "name": "minWaitInSeconds",
379
+ "type": "uint256"
380
+ },
381
+ {
382
+ "internalType": "uint256",
383
+ "name": "available",
384
+ "type": "uint256"
385
+ },
386
+ {
387
+ "internalType": "address",
388
+ "name": "tokenAddress",
389
+ "type": "address"
390
+ }
391
+ ],
392
+ "name": "TokenRateLimitReached",
393
+ "type": "error"
394
+ },
395
+ {
396
+ "inputs": [
397
+ {
398
+ "internalType": "address",
399
+ "name": "caller",
400
+ "type": "address"
401
+ }
402
+ ],
403
+ "name": "Unauthorized",
404
+ "type": "error"
405
+ },
406
+ {
407
+ "inputs": [],
408
+ "name": "ZeroAddressNotAllowed",
409
+ "type": "error"
410
+ },
411
+ {
412
+ "anonymous": false,
413
+ "inputs": [
414
+ {
415
+ "indexed": false,
416
+ "internalType": "address",
417
+ "name": "sender",
418
+ "type": "address"
419
+ }
420
+ ],
421
+ "name": "AllowListAdd",
422
+ "type": "event"
423
+ },
424
+ {
425
+ "anonymous": false,
426
+ "inputs": [
427
+ {
428
+ "indexed": false,
429
+ "internalType": "address",
430
+ "name": "sender",
431
+ "type": "address"
432
+ }
433
+ ],
434
+ "name": "AllowListRemove",
435
+ "type": "event"
436
+ },
437
+ {
438
+ "anonymous": false,
439
+ "inputs": [
440
+ {
441
+ "indexed": true,
442
+ "internalType": "address",
443
+ "name": "oldAdmin",
444
+ "type": "address"
445
+ },
446
+ {
447
+ "indexed": true,
448
+ "internalType": "address",
449
+ "name": "newAdmin",
450
+ "type": "address"
451
+ }
452
+ ],
453
+ "name": "BridgeLimitAdminUpdated",
454
+ "type": "event"
455
+ },
456
+ {
457
+ "anonymous": false,
458
+ "inputs": [
459
+ {
460
+ "indexed": false,
461
+ "internalType": "uint256",
462
+ "name": "oldBridgeLimit",
463
+ "type": "uint256"
464
+ },
465
+ {
466
+ "indexed": false,
467
+ "internalType": "uint256",
468
+ "name": "newBridgeLimit",
469
+ "type": "uint256"
470
+ }
471
+ ],
472
+ "name": "BridgeLimitUpdated",
473
+ "type": "event"
474
+ },
475
+ {
476
+ "anonymous": false,
477
+ "inputs": [
478
+ {
479
+ "indexed": true,
480
+ "internalType": "address",
481
+ "name": "sender",
482
+ "type": "address"
483
+ },
484
+ {
485
+ "indexed": false,
486
+ "internalType": "uint256",
487
+ "name": "amount",
488
+ "type": "uint256"
489
+ }
490
+ ],
491
+ "name": "Burned",
492
+ "type": "event"
493
+ },
494
+ {
495
+ "anonymous": false,
496
+ "inputs": [
497
+ {
498
+ "indexed": false,
499
+ "internalType": "uint64",
500
+ "name": "remoteChainSelector",
501
+ "type": "uint64"
502
+ },
503
+ {
504
+ "indexed": false,
505
+ "internalType": "bytes",
506
+ "name": "remoteToken",
507
+ "type": "bytes"
508
+ },
509
+ {
510
+ "components": [
511
+ {
512
+ "internalType": "bool",
513
+ "name": "isEnabled",
514
+ "type": "bool"
515
+ },
516
+ {
517
+ "internalType": "uint128",
518
+ "name": "capacity",
519
+ "type": "uint128"
520
+ },
521
+ {
522
+ "internalType": "uint128",
523
+ "name": "rate",
524
+ "type": "uint128"
525
+ }
526
+ ],
527
+ "indexed": false,
528
+ "internalType": "struct RateLimiter.Config",
529
+ "name": "outboundRateLimiterConfig",
530
+ "type": "tuple"
531
+ },
532
+ {
533
+ "components": [
534
+ {
535
+ "internalType": "bool",
536
+ "name": "isEnabled",
537
+ "type": "bool"
538
+ },
539
+ {
540
+ "internalType": "uint128",
541
+ "name": "capacity",
542
+ "type": "uint128"
543
+ },
544
+ {
545
+ "internalType": "uint128",
546
+ "name": "rate",
547
+ "type": "uint128"
548
+ }
549
+ ],
550
+ "indexed": false,
551
+ "internalType": "struct RateLimiter.Config",
552
+ "name": "inboundRateLimiterConfig",
553
+ "type": "tuple"
554
+ }
555
+ ],
556
+ "name": "ChainAdded",
557
+ "type": "event"
558
+ },
559
+ {
560
+ "anonymous": false,
561
+ "inputs": [
562
+ {
563
+ "indexed": false,
564
+ "internalType": "uint64",
565
+ "name": "remoteChainSelector",
566
+ "type": "uint64"
567
+ },
568
+ {
569
+ "components": [
570
+ {
571
+ "internalType": "bool",
572
+ "name": "isEnabled",
573
+ "type": "bool"
574
+ },
575
+ {
576
+ "internalType": "uint128",
577
+ "name": "capacity",
578
+ "type": "uint128"
579
+ },
580
+ {
581
+ "internalType": "uint128",
582
+ "name": "rate",
583
+ "type": "uint128"
584
+ }
585
+ ],
586
+ "indexed": false,
587
+ "internalType": "struct RateLimiter.Config",
588
+ "name": "outboundRateLimiterConfig",
589
+ "type": "tuple"
590
+ },
591
+ {
592
+ "components": [
593
+ {
594
+ "internalType": "bool",
595
+ "name": "isEnabled",
596
+ "type": "bool"
597
+ },
598
+ {
599
+ "internalType": "uint128",
600
+ "name": "capacity",
601
+ "type": "uint128"
602
+ },
603
+ {
604
+ "internalType": "uint128",
605
+ "name": "rate",
606
+ "type": "uint128"
607
+ }
608
+ ],
609
+ "indexed": false,
610
+ "internalType": "struct RateLimiter.Config",
611
+ "name": "inboundRateLimiterConfig",
612
+ "type": "tuple"
613
+ }
614
+ ],
615
+ "name": "ChainConfigured",
616
+ "type": "event"
617
+ },
618
+ {
619
+ "anonymous": false,
620
+ "inputs": [
621
+ {
622
+ "indexed": false,
623
+ "internalType": "uint64",
624
+ "name": "remoteChainSelector",
625
+ "type": "uint64"
626
+ }
627
+ ],
628
+ "name": "ChainRemoved",
629
+ "type": "event"
630
+ },
631
+ {
632
+ "anonymous": false,
633
+ "inputs": [
634
+ {
635
+ "components": [
636
+ {
637
+ "internalType": "bool",
638
+ "name": "isEnabled",
639
+ "type": "bool"
640
+ },
641
+ {
642
+ "internalType": "uint128",
643
+ "name": "capacity",
644
+ "type": "uint128"
645
+ },
646
+ {
647
+ "internalType": "uint128",
648
+ "name": "rate",
649
+ "type": "uint128"
650
+ }
651
+ ],
652
+ "indexed": false,
653
+ "internalType": "struct RateLimiter.Config",
654
+ "name": "config",
655
+ "type": "tuple"
656
+ }
657
+ ],
658
+ "name": "ConfigChanged",
659
+ "type": "event"
660
+ },
661
+ {
662
+ "anonymous": false,
663
+ "inputs": [
664
+ {
665
+ "indexed": false,
666
+ "internalType": "uint8",
667
+ "name": "version",
668
+ "type": "uint8"
669
+ }
670
+ ],
671
+ "name": "Initialized",
672
+ "type": "event"
673
+ },
674
+ {
675
+ "anonymous": false,
676
+ "inputs": [
677
+ {
678
+ "indexed": true,
679
+ "internalType": "address",
680
+ "name": "provider",
681
+ "type": "address"
682
+ },
683
+ {
684
+ "indexed": true,
685
+ "internalType": "uint256",
686
+ "name": "amount",
687
+ "type": "uint256"
688
+ }
689
+ ],
690
+ "name": "LiquidityAdded",
691
+ "type": "event"
692
+ },
693
+ {
694
+ "anonymous": false,
695
+ "inputs": [
696
+ {
697
+ "indexed": true,
698
+ "internalType": "address",
699
+ "name": "provider",
700
+ "type": "address"
701
+ },
702
+ {
703
+ "indexed": true,
704
+ "internalType": "uint256",
705
+ "name": "amount",
706
+ "type": "uint256"
707
+ }
708
+ ],
709
+ "name": "LiquidityRemoved",
710
+ "type": "event"
711
+ },
712
+ {
713
+ "anonymous": false,
714
+ "inputs": [
715
+ {
716
+ "indexed": true,
717
+ "internalType": "address",
718
+ "name": "from",
719
+ "type": "address"
720
+ },
721
+ {
722
+ "indexed": false,
723
+ "internalType": "uint256",
724
+ "name": "amount",
725
+ "type": "uint256"
726
+ }
727
+ ],
728
+ "name": "LiquidityTransferred",
729
+ "type": "event"
730
+ },
731
+ {
732
+ "anonymous": false,
733
+ "inputs": [
734
+ {
735
+ "indexed": true,
736
+ "internalType": "address",
737
+ "name": "sender",
738
+ "type": "address"
739
+ },
740
+ {
741
+ "indexed": false,
742
+ "internalType": "uint256",
743
+ "name": "amount",
744
+ "type": "uint256"
745
+ }
746
+ ],
747
+ "name": "Locked",
748
+ "type": "event"
749
+ },
750
+ {
751
+ "anonymous": false,
752
+ "inputs": [
753
+ {
754
+ "indexed": true,
755
+ "internalType": "address",
756
+ "name": "sender",
757
+ "type": "address"
758
+ },
759
+ {
760
+ "indexed": true,
761
+ "internalType": "address",
762
+ "name": "recipient",
763
+ "type": "address"
764
+ },
765
+ {
766
+ "indexed": false,
767
+ "internalType": "uint256",
768
+ "name": "amount",
769
+ "type": "uint256"
770
+ }
771
+ ],
772
+ "name": "Minted",
773
+ "type": "event"
774
+ },
775
+ {
776
+ "anonymous": false,
777
+ "inputs": [
778
+ {
779
+ "indexed": true,
780
+ "internalType": "address",
781
+ "name": "from",
782
+ "type": "address"
783
+ },
784
+ {
785
+ "indexed": true,
786
+ "internalType": "address",
787
+ "name": "to",
788
+ "type": "address"
789
+ }
790
+ ],
791
+ "name": "OwnershipTransferRequested",
792
+ "type": "event"
793
+ },
794
+ {
795
+ "anonymous": false,
796
+ "inputs": [
797
+ {
798
+ "indexed": true,
799
+ "internalType": "address",
800
+ "name": "from",
801
+ "type": "address"
802
+ },
803
+ {
804
+ "indexed": true,
805
+ "internalType": "address",
806
+ "name": "to",
807
+ "type": "address"
808
+ }
809
+ ],
810
+ "name": "OwnershipTransferred",
811
+ "type": "event"
812
+ },
813
+ {
814
+ "anonymous": false,
815
+ "inputs": [
816
+ {
817
+ "indexed": false,
818
+ "internalType": "address",
819
+ "name": "rateLimitAdmin",
820
+ "type": "address"
821
+ }
822
+ ],
823
+ "name": "RateLimitAdminSet",
824
+ "type": "event"
825
+ },
826
+ {
827
+ "anonymous": false,
828
+ "inputs": [
829
+ {
830
+ "indexed": true,
831
+ "internalType": "address",
832
+ "name": "sender",
833
+ "type": "address"
834
+ },
835
+ {
836
+ "indexed": true,
837
+ "internalType": "address",
838
+ "name": "recipient",
839
+ "type": "address"
840
+ },
841
+ {
842
+ "indexed": false,
843
+ "internalType": "uint256",
844
+ "name": "amount",
845
+ "type": "uint256"
846
+ }
847
+ ],
848
+ "name": "Released",
849
+ "type": "event"
850
+ },
851
+ {
852
+ "anonymous": false,
853
+ "inputs": [
854
+ {
855
+ "indexed": true,
856
+ "internalType": "uint64",
857
+ "name": "remoteChainSelector",
858
+ "type": "uint64"
859
+ },
860
+ {
861
+ "indexed": false,
862
+ "internalType": "bytes",
863
+ "name": "remotePoolAddress",
864
+ "type": "bytes"
865
+ }
866
+ ],
867
+ "name": "RemotePoolAdded",
868
+ "type": "event"
869
+ },
870
+ {
871
+ "anonymous": false,
872
+ "inputs": [
873
+ {
874
+ "indexed": true,
875
+ "internalType": "uint64",
876
+ "name": "remoteChainSelector",
877
+ "type": "uint64"
878
+ },
879
+ {
880
+ "indexed": false,
881
+ "internalType": "bytes",
882
+ "name": "remotePoolAddress",
883
+ "type": "bytes"
884
+ }
885
+ ],
886
+ "name": "RemotePoolRemoved",
887
+ "type": "event"
888
+ },
889
+ {
890
+ "anonymous": false,
891
+ "inputs": [
892
+ {
893
+ "indexed": false,
894
+ "internalType": "address",
895
+ "name": "oldRouter",
896
+ "type": "address"
897
+ },
898
+ {
899
+ "indexed": false,
900
+ "internalType": "address",
901
+ "name": "newRouter",
902
+ "type": "address"
903
+ }
904
+ ],
905
+ "name": "RouterUpdated",
906
+ "type": "event"
907
+ },
908
+ {
909
+ "anonymous": false,
910
+ "inputs": [
911
+ {
912
+ "indexed": false,
913
+ "internalType": "uint256",
914
+ "name": "tokens",
915
+ "type": "uint256"
916
+ }
917
+ ],
918
+ "name": "TokensConsumed",
919
+ "type": "event"
920
+ },
921
+ {
922
+ "inputs": [],
923
+ "name": "acceptOwnership",
924
+ "outputs": [],
925
+ "stateMutability": "nonpayable",
926
+ "type": "function"
927
+ },
928
+ {
929
+ "inputs": [
930
+ {
931
+ "internalType": "uint64",
932
+ "name": "remoteChainSelector",
933
+ "type": "uint64"
934
+ },
935
+ {
936
+ "internalType": "bytes",
937
+ "name": "remotePoolAddress",
938
+ "type": "bytes"
939
+ }
940
+ ],
941
+ "name": "addRemotePool",
942
+ "outputs": [],
943
+ "stateMutability": "nonpayable",
944
+ "type": "function"
945
+ },
946
+ {
947
+ "inputs": [
948
+ {
949
+ "internalType": "address[]",
950
+ "name": "removes",
951
+ "type": "address[]"
952
+ },
953
+ {
954
+ "internalType": "address[]",
955
+ "name": "adds",
956
+ "type": "address[]"
957
+ }
958
+ ],
959
+ "name": "applyAllowListUpdates",
960
+ "outputs": [],
961
+ "stateMutability": "nonpayable",
962
+ "type": "function"
963
+ },
964
+ {
965
+ "inputs": [
966
+ {
967
+ "internalType": "uint64[]",
968
+ "name": "remoteChainSelectorsToRemove",
969
+ "type": "uint64[]"
970
+ },
971
+ {
972
+ "components": [
973
+ {
974
+ "internalType": "uint64",
975
+ "name": "remoteChainSelector",
976
+ "type": "uint64"
977
+ },
978
+ {
979
+ "internalType": "bytes[]",
980
+ "name": "remotePoolAddresses",
981
+ "type": "bytes[]"
982
+ },
983
+ {
984
+ "internalType": "bytes",
985
+ "name": "remoteTokenAddress",
986
+ "type": "bytes"
987
+ },
988
+ {
989
+ "components": [
990
+ {
991
+ "internalType": "bool",
992
+ "name": "isEnabled",
993
+ "type": "bool"
994
+ },
995
+ {
996
+ "internalType": "uint128",
997
+ "name": "capacity",
998
+ "type": "uint128"
999
+ },
1000
+ {
1001
+ "internalType": "uint128",
1002
+ "name": "rate",
1003
+ "type": "uint128"
1004
+ }
1005
+ ],
1006
+ "internalType": "struct RateLimiter.Config",
1007
+ "name": "outboundRateLimiterConfig",
1008
+ "type": "tuple"
1009
+ },
1010
+ {
1011
+ "components": [
1012
+ {
1013
+ "internalType": "bool",
1014
+ "name": "isEnabled",
1015
+ "type": "bool"
1016
+ },
1017
+ {
1018
+ "internalType": "uint128",
1019
+ "name": "capacity",
1020
+ "type": "uint128"
1021
+ },
1022
+ {
1023
+ "internalType": "uint128",
1024
+ "name": "rate",
1025
+ "type": "uint128"
1026
+ }
1027
+ ],
1028
+ "internalType": "struct RateLimiter.Config",
1029
+ "name": "inboundRateLimiterConfig",
1030
+ "type": "tuple"
1031
+ }
1032
+ ],
1033
+ "internalType": "struct UpgradeableTokenPool.ChainUpdate[]",
1034
+ "name": "chainsToAdd",
1035
+ "type": "tuple[]"
1036
+ }
1037
+ ],
1038
+ "name": "applyChainUpdates",
1039
+ "outputs": [],
1040
+ "stateMutability": "nonpayable",
1041
+ "type": "function"
1042
+ },
1043
+ {
1044
+ "inputs": [],
1045
+ "name": "canAcceptLiquidity",
1046
+ "outputs": [
1047
+ {
1048
+ "internalType": "bool",
1049
+ "name": "",
1050
+ "type": "bool"
1051
+ }
1052
+ ],
1053
+ "stateMutability": "view",
1054
+ "type": "function"
1055
+ },
1056
+ {
1057
+ "inputs": [],
1058
+ "name": "getAllowList",
1059
+ "outputs": [
1060
+ {
1061
+ "internalType": "address[]",
1062
+ "name": "",
1063
+ "type": "address[]"
1064
+ }
1065
+ ],
1066
+ "stateMutability": "view",
1067
+ "type": "function"
1068
+ },
1069
+ {
1070
+ "inputs": [],
1071
+ "name": "getAllowListEnabled",
1072
+ "outputs": [
1073
+ {
1074
+ "internalType": "bool",
1075
+ "name": "",
1076
+ "type": "bool"
1077
+ }
1078
+ ],
1079
+ "stateMutability": "view",
1080
+ "type": "function"
1081
+ },
1082
+ {
1083
+ "inputs": [],
1084
+ "name": "getBridgeLimit",
1085
+ "outputs": [
1086
+ {
1087
+ "internalType": "uint256",
1088
+ "name": "",
1089
+ "type": "uint256"
1090
+ }
1091
+ ],
1092
+ "stateMutability": "view",
1093
+ "type": "function"
1094
+ },
1095
+ {
1096
+ "inputs": [],
1097
+ "name": "getBridgeLimitAdmin",
1098
+ "outputs": [
1099
+ {
1100
+ "internalType": "address",
1101
+ "name": "",
1102
+ "type": "address"
1103
+ }
1104
+ ],
1105
+ "stateMutability": "view",
1106
+ "type": "function"
1107
+ },
1108
+ {
1109
+ "inputs": [],
1110
+ "name": "getCurrentBridgedAmount",
1111
+ "outputs": [
1112
+ {
1113
+ "internalType": "uint256",
1114
+ "name": "",
1115
+ "type": "uint256"
1116
+ }
1117
+ ],
1118
+ "stateMutability": "view",
1119
+ "type": "function"
1120
+ },
1121
+ {
1122
+ "inputs": [
1123
+ {
1124
+ "internalType": "uint64",
1125
+ "name": "remoteChainSelector",
1126
+ "type": "uint64"
1127
+ }
1128
+ ],
1129
+ "name": "getCurrentInboundRateLimiterState",
1130
+ "outputs": [
1131
+ {
1132
+ "components": [
1133
+ {
1134
+ "internalType": "uint128",
1135
+ "name": "tokens",
1136
+ "type": "uint128"
1137
+ },
1138
+ {
1139
+ "internalType": "uint32",
1140
+ "name": "lastUpdated",
1141
+ "type": "uint32"
1142
+ },
1143
+ {
1144
+ "internalType": "bool",
1145
+ "name": "isEnabled",
1146
+ "type": "bool"
1147
+ },
1148
+ {
1149
+ "internalType": "uint128",
1150
+ "name": "capacity",
1151
+ "type": "uint128"
1152
+ },
1153
+ {
1154
+ "internalType": "uint128",
1155
+ "name": "rate",
1156
+ "type": "uint128"
1157
+ }
1158
+ ],
1159
+ "internalType": "struct RateLimiter.TokenBucket",
1160
+ "name": "",
1161
+ "type": "tuple"
1162
+ }
1163
+ ],
1164
+ "stateMutability": "view",
1165
+ "type": "function"
1166
+ },
1167
+ {
1168
+ "inputs": [
1169
+ {
1170
+ "internalType": "uint64",
1171
+ "name": "remoteChainSelector",
1172
+ "type": "uint64"
1173
+ }
1174
+ ],
1175
+ "name": "getCurrentOutboundRateLimiterState",
1176
+ "outputs": [
1177
+ {
1178
+ "components": [
1179
+ {
1180
+ "internalType": "uint128",
1181
+ "name": "tokens",
1182
+ "type": "uint128"
1183
+ },
1184
+ {
1185
+ "internalType": "uint32",
1186
+ "name": "lastUpdated",
1187
+ "type": "uint32"
1188
+ },
1189
+ {
1190
+ "internalType": "bool",
1191
+ "name": "isEnabled",
1192
+ "type": "bool"
1193
+ },
1194
+ {
1195
+ "internalType": "uint128",
1196
+ "name": "capacity",
1197
+ "type": "uint128"
1198
+ },
1199
+ {
1200
+ "internalType": "uint128",
1201
+ "name": "rate",
1202
+ "type": "uint128"
1203
+ }
1204
+ ],
1205
+ "internalType": "struct RateLimiter.TokenBucket",
1206
+ "name": "",
1207
+ "type": "tuple"
1208
+ }
1209
+ ],
1210
+ "stateMutability": "view",
1211
+ "type": "function"
1212
+ },
1213
+ {
1214
+ "inputs": [],
1215
+ "name": "getRateLimitAdmin",
1216
+ "outputs": [
1217
+ {
1218
+ "internalType": "address",
1219
+ "name": "",
1220
+ "type": "address"
1221
+ }
1222
+ ],
1223
+ "stateMutability": "view",
1224
+ "type": "function"
1225
+ },
1226
+ {
1227
+ "inputs": [],
1228
+ "name": "getRebalancer",
1229
+ "outputs": [
1230
+ {
1231
+ "internalType": "address",
1232
+ "name": "",
1233
+ "type": "address"
1234
+ }
1235
+ ],
1236
+ "stateMutability": "view",
1237
+ "type": "function"
1238
+ },
1239
+ {
1240
+ "inputs": [
1241
+ {
1242
+ "internalType": "uint64",
1243
+ "name": "remoteChainSelector",
1244
+ "type": "uint64"
1245
+ }
1246
+ ],
1247
+ "name": "getRemotePools",
1248
+ "outputs": [
1249
+ {
1250
+ "internalType": "bytes[]",
1251
+ "name": "",
1252
+ "type": "bytes[]"
1253
+ }
1254
+ ],
1255
+ "stateMutability": "view",
1256
+ "type": "function"
1257
+ },
1258
+ {
1259
+ "inputs": [
1260
+ {
1261
+ "internalType": "uint64",
1262
+ "name": "remoteChainSelector",
1263
+ "type": "uint64"
1264
+ }
1265
+ ],
1266
+ "name": "getRemoteToken",
1267
+ "outputs": [
1268
+ {
1269
+ "internalType": "bytes",
1270
+ "name": "",
1271
+ "type": "bytes"
1272
+ }
1273
+ ],
1274
+ "stateMutability": "view",
1275
+ "type": "function"
1276
+ },
1277
+ {
1278
+ "inputs": [],
1279
+ "name": "getRmnProxy",
1280
+ "outputs": [
1281
+ {
1282
+ "internalType": "address",
1283
+ "name": "rmnProxy",
1284
+ "type": "address"
1285
+ }
1286
+ ],
1287
+ "stateMutability": "view",
1288
+ "type": "function"
1289
+ },
1290
+ {
1291
+ "inputs": [],
1292
+ "name": "getRouter",
1293
+ "outputs": [
1294
+ {
1295
+ "internalType": "address",
1296
+ "name": "router",
1297
+ "type": "address"
1298
+ }
1299
+ ],
1300
+ "stateMutability": "view",
1301
+ "type": "function"
1302
+ },
1303
+ {
1304
+ "inputs": [],
1305
+ "name": "getSupportedChains",
1306
+ "outputs": [
1307
+ {
1308
+ "internalType": "uint64[]",
1309
+ "name": "",
1310
+ "type": "uint64[]"
1311
+ }
1312
+ ],
1313
+ "stateMutability": "view",
1314
+ "type": "function"
1315
+ },
1316
+ {
1317
+ "inputs": [],
1318
+ "name": "getToken",
1319
+ "outputs": [
1320
+ {
1321
+ "internalType": "contract IERC20",
1322
+ "name": "token",
1323
+ "type": "address"
1324
+ }
1325
+ ],
1326
+ "stateMutability": "view",
1327
+ "type": "function"
1328
+ },
1329
+ {
1330
+ "inputs": [],
1331
+ "name": "getTokenDecimals",
1332
+ "outputs": [
1333
+ {
1334
+ "internalType": "uint8",
1335
+ "name": "decimals",
1336
+ "type": "uint8"
1337
+ }
1338
+ ],
1339
+ "stateMutability": "view",
1340
+ "type": "function"
1341
+ },
1342
+ {
1343
+ "inputs": [
1344
+ {
1345
+ "internalType": "address",
1346
+ "name": "owner_",
1347
+ "type": "address"
1348
+ },
1349
+ {
1350
+ "internalType": "address[]",
1351
+ "name": "allowlist",
1352
+ "type": "address[]"
1353
+ },
1354
+ {
1355
+ "internalType": "address",
1356
+ "name": "router",
1357
+ "type": "address"
1358
+ },
1359
+ {
1360
+ "internalType": "uint256",
1361
+ "name": "bridgeLimit",
1362
+ "type": "uint256"
1363
+ }
1364
+ ],
1365
+ "name": "initialize",
1366
+ "outputs": [],
1367
+ "stateMutability": "nonpayable",
1368
+ "type": "function"
1369
+ },
1370
+ {
1371
+ "inputs": [
1372
+ {
1373
+ "internalType": "uint64",
1374
+ "name": "remoteChainSelector",
1375
+ "type": "uint64"
1376
+ },
1377
+ {
1378
+ "internalType": "bytes",
1379
+ "name": "remotePoolAddress",
1380
+ "type": "bytes"
1381
+ }
1382
+ ],
1383
+ "name": "isRemotePool",
1384
+ "outputs": [
1385
+ {
1386
+ "internalType": "bool",
1387
+ "name": "",
1388
+ "type": "bool"
1389
+ }
1390
+ ],
1391
+ "stateMutability": "view",
1392
+ "type": "function"
1393
+ },
1394
+ {
1395
+ "inputs": [
1396
+ {
1397
+ "internalType": "uint64",
1398
+ "name": "remoteChainSelector",
1399
+ "type": "uint64"
1400
+ }
1401
+ ],
1402
+ "name": "isSupportedChain",
1403
+ "outputs": [
1404
+ {
1405
+ "internalType": "bool",
1406
+ "name": "",
1407
+ "type": "bool"
1408
+ }
1409
+ ],
1410
+ "stateMutability": "view",
1411
+ "type": "function"
1412
+ },
1413
+ {
1414
+ "inputs": [
1415
+ {
1416
+ "internalType": "address",
1417
+ "name": "token",
1418
+ "type": "address"
1419
+ }
1420
+ ],
1421
+ "name": "isSupportedToken",
1422
+ "outputs": [
1423
+ {
1424
+ "internalType": "bool",
1425
+ "name": "",
1426
+ "type": "bool"
1427
+ }
1428
+ ],
1429
+ "stateMutability": "view",
1430
+ "type": "function"
1431
+ },
1432
+ {
1433
+ "inputs": [
1434
+ {
1435
+ "components": [
1436
+ {
1437
+ "internalType": "bytes",
1438
+ "name": "receiver",
1439
+ "type": "bytes"
1440
+ },
1441
+ {
1442
+ "internalType": "uint64",
1443
+ "name": "remoteChainSelector",
1444
+ "type": "uint64"
1445
+ },
1446
+ {
1447
+ "internalType": "address",
1448
+ "name": "originalSender",
1449
+ "type": "address"
1450
+ },
1451
+ {
1452
+ "internalType": "uint256",
1453
+ "name": "amount",
1454
+ "type": "uint256"
1455
+ },
1456
+ {
1457
+ "internalType": "address",
1458
+ "name": "localToken",
1459
+ "type": "address"
1460
+ }
1461
+ ],
1462
+ "internalType": "struct Pool.LockOrBurnInV1",
1463
+ "name": "lockOrBurnIn",
1464
+ "type": "tuple"
1465
+ }
1466
+ ],
1467
+ "name": "lockOrBurn",
1468
+ "outputs": [
1469
+ {
1470
+ "components": [
1471
+ {
1472
+ "internalType": "bytes",
1473
+ "name": "destTokenAddress",
1474
+ "type": "bytes"
1475
+ },
1476
+ {
1477
+ "internalType": "bytes",
1478
+ "name": "destPoolData",
1479
+ "type": "bytes"
1480
+ }
1481
+ ],
1482
+ "internalType": "struct Pool.LockOrBurnOutV1",
1483
+ "name": "",
1484
+ "type": "tuple"
1485
+ }
1486
+ ],
1487
+ "stateMutability": "nonpayable",
1488
+ "type": "function"
1489
+ },
1490
+ {
1491
+ "inputs": [],
1492
+ "name": "owner",
1493
+ "outputs": [
1494
+ {
1495
+ "internalType": "address",
1496
+ "name": "",
1497
+ "type": "address"
1498
+ }
1499
+ ],
1500
+ "stateMutability": "view",
1501
+ "type": "function"
1502
+ },
1503
+ {
1504
+ "inputs": [
1505
+ {
1506
+ "internalType": "uint256",
1507
+ "name": "amount",
1508
+ "type": "uint256"
1509
+ }
1510
+ ],
1511
+ "name": "provideLiquidity",
1512
+ "outputs": [],
1513
+ "stateMutability": "nonpayable",
1514
+ "type": "function"
1515
+ },
1516
+ {
1517
+ "inputs": [
1518
+ {
1519
+ "components": [
1520
+ {
1521
+ "internalType": "bytes",
1522
+ "name": "originalSender",
1523
+ "type": "bytes"
1524
+ },
1525
+ {
1526
+ "internalType": "uint64",
1527
+ "name": "remoteChainSelector",
1528
+ "type": "uint64"
1529
+ },
1530
+ {
1531
+ "internalType": "address",
1532
+ "name": "receiver",
1533
+ "type": "address"
1534
+ },
1535
+ {
1536
+ "internalType": "uint256",
1537
+ "name": "amount",
1538
+ "type": "uint256"
1539
+ },
1540
+ {
1541
+ "internalType": "address",
1542
+ "name": "localToken",
1543
+ "type": "address"
1544
+ },
1545
+ {
1546
+ "internalType": "bytes",
1547
+ "name": "sourcePoolAddress",
1548
+ "type": "bytes"
1549
+ },
1550
+ {
1551
+ "internalType": "bytes",
1552
+ "name": "sourcePoolData",
1553
+ "type": "bytes"
1554
+ },
1555
+ {
1556
+ "internalType": "bytes",
1557
+ "name": "offchainTokenData",
1558
+ "type": "bytes"
1559
+ }
1560
+ ],
1561
+ "internalType": "struct Pool.ReleaseOrMintInV1",
1562
+ "name": "releaseOrMintIn",
1563
+ "type": "tuple"
1564
+ }
1565
+ ],
1566
+ "name": "releaseOrMint",
1567
+ "outputs": [
1568
+ {
1569
+ "components": [
1570
+ {
1571
+ "internalType": "uint256",
1572
+ "name": "destinationAmount",
1573
+ "type": "uint256"
1574
+ }
1575
+ ],
1576
+ "internalType": "struct Pool.ReleaseOrMintOutV1",
1577
+ "name": "",
1578
+ "type": "tuple"
1579
+ }
1580
+ ],
1581
+ "stateMutability": "nonpayable",
1582
+ "type": "function"
1583
+ },
1584
+ {
1585
+ "inputs": [
1586
+ {
1587
+ "internalType": "uint64",
1588
+ "name": "remoteChainSelector",
1589
+ "type": "uint64"
1590
+ },
1591
+ {
1592
+ "internalType": "bytes",
1593
+ "name": "remotePoolAddress",
1594
+ "type": "bytes"
1595
+ }
1596
+ ],
1597
+ "name": "removeRemotePool",
1598
+ "outputs": [],
1599
+ "stateMutability": "nonpayable",
1600
+ "type": "function"
1601
+ },
1602
+ {
1603
+ "inputs": [
1604
+ {
1605
+ "internalType": "uint256",
1606
+ "name": "newBridgeLimit",
1607
+ "type": "uint256"
1608
+ }
1609
+ ],
1610
+ "name": "setBridgeLimit",
1611
+ "outputs": [],
1612
+ "stateMutability": "nonpayable",
1613
+ "type": "function"
1614
+ },
1615
+ {
1616
+ "inputs": [
1617
+ {
1618
+ "internalType": "address",
1619
+ "name": "bridgeLimitAdmin",
1620
+ "type": "address"
1621
+ }
1622
+ ],
1623
+ "name": "setBridgeLimitAdmin",
1624
+ "outputs": [],
1625
+ "stateMutability": "nonpayable",
1626
+ "type": "function"
1627
+ },
1628
+ {
1629
+ "inputs": [
1630
+ {
1631
+ "internalType": "uint64",
1632
+ "name": "remoteChainSelector",
1633
+ "type": "uint64"
1634
+ },
1635
+ {
1636
+ "components": [
1637
+ {
1638
+ "internalType": "bool",
1639
+ "name": "isEnabled",
1640
+ "type": "bool"
1641
+ },
1642
+ {
1643
+ "internalType": "uint128",
1644
+ "name": "capacity",
1645
+ "type": "uint128"
1646
+ },
1647
+ {
1648
+ "internalType": "uint128",
1649
+ "name": "rate",
1650
+ "type": "uint128"
1651
+ }
1652
+ ],
1653
+ "internalType": "struct RateLimiter.Config",
1654
+ "name": "outboundConfig",
1655
+ "type": "tuple"
1656
+ },
1657
+ {
1658
+ "components": [
1659
+ {
1660
+ "internalType": "bool",
1661
+ "name": "isEnabled",
1662
+ "type": "bool"
1663
+ },
1664
+ {
1665
+ "internalType": "uint128",
1666
+ "name": "capacity",
1667
+ "type": "uint128"
1668
+ },
1669
+ {
1670
+ "internalType": "uint128",
1671
+ "name": "rate",
1672
+ "type": "uint128"
1673
+ }
1674
+ ],
1675
+ "internalType": "struct RateLimiter.Config",
1676
+ "name": "inboundConfig",
1677
+ "type": "tuple"
1678
+ }
1679
+ ],
1680
+ "name": "setChainRateLimiterConfig",
1681
+ "outputs": [],
1682
+ "stateMutability": "nonpayable",
1683
+ "type": "function"
1684
+ },
1685
+ {
1686
+ "inputs": [
1687
+ {
1688
+ "internalType": "uint256",
1689
+ "name": "newCurrentBridged",
1690
+ "type": "uint256"
1691
+ }
1692
+ ],
1693
+ "name": "setCurrentBridgedAmount",
1694
+ "outputs": [],
1695
+ "stateMutability": "nonpayable",
1696
+ "type": "function"
1697
+ },
1698
+ {
1699
+ "inputs": [
1700
+ {
1701
+ "internalType": "address",
1702
+ "name": "rateLimitAdmin",
1703
+ "type": "address"
1704
+ }
1705
+ ],
1706
+ "name": "setRateLimitAdmin",
1707
+ "outputs": [],
1708
+ "stateMutability": "nonpayable",
1709
+ "type": "function"
1710
+ },
1711
+ {
1712
+ "inputs": [
1713
+ {
1714
+ "internalType": "address",
1715
+ "name": "rebalancer",
1716
+ "type": "address"
1717
+ }
1718
+ ],
1719
+ "name": "setRebalancer",
1720
+ "outputs": [],
1721
+ "stateMutability": "nonpayable",
1722
+ "type": "function"
1723
+ },
1724
+ {
1725
+ "inputs": [
1726
+ {
1727
+ "internalType": "address",
1728
+ "name": "newRouter",
1729
+ "type": "address"
1730
+ }
1731
+ ],
1732
+ "name": "setRouter",
1733
+ "outputs": [],
1734
+ "stateMutability": "nonpayable",
1735
+ "type": "function"
1736
+ },
1737
+ {
1738
+ "inputs": [
1739
+ {
1740
+ "internalType": "bytes4",
1741
+ "name": "interfaceId",
1742
+ "type": "bytes4"
1743
+ }
1744
+ ],
1745
+ "name": "supportsInterface",
1746
+ "outputs": [
1747
+ {
1748
+ "internalType": "bool",
1749
+ "name": "",
1750
+ "type": "bool"
1751
+ }
1752
+ ],
1753
+ "stateMutability": "pure",
1754
+ "type": "function"
1755
+ },
1756
+ {
1757
+ "inputs": [
1758
+ {
1759
+ "internalType": "address",
1760
+ "name": "from",
1761
+ "type": "address"
1762
+ },
1763
+ {
1764
+ "internalType": "uint256",
1765
+ "name": "amount",
1766
+ "type": "uint256"
1767
+ }
1768
+ ],
1769
+ "name": "transferLiquidity",
1770
+ "outputs": [],
1771
+ "stateMutability": "nonpayable",
1772
+ "type": "function"
1773
+ },
1774
+ {
1775
+ "inputs": [
1776
+ {
1777
+ "internalType": "address",
1778
+ "name": "to",
1779
+ "type": "address"
1780
+ }
1781
+ ],
1782
+ "name": "transferOwnership",
1783
+ "outputs": [],
1784
+ "stateMutability": "nonpayable",
1785
+ "type": "function"
1786
+ },
1787
+ {
1788
+ "inputs": [],
1789
+ "name": "typeAndVersion",
1790
+ "outputs": [
1791
+ {
1792
+ "internalType": "string",
1793
+ "name": "",
1794
+ "type": "string"
1795
+ }
1796
+ ],
1797
+ "stateMutability": "view",
1798
+ "type": "function"
1799
+ },
1800
+ {
1801
+ "inputs": [
1802
+ {
1803
+ "internalType": "uint256",
1804
+ "name": "amount",
1805
+ "type": "uint256"
1806
+ }
1807
+ ],
1808
+ "name": "withdrawLiquidity",
1809
+ "outputs": [],
1810
+ "stateMutability": "nonpayable",
1811
+ "type": "function"
1812
+ }
1813
+ ];
1814
+ /**
1815
+ * UpgradeableLockReleaseTokenPool Contract Class
1816
+ *
1817
+ * Provides a class-based API similar to TypeChain for interacting with the contract.
1818
+ *
1819
+ * @example
1820
+ * ```typescript
1821
+ * import { createPublicClient, createWalletClient, http } from 'viem';
1822
+ * import { mainnet } from 'viem/chains';
1823
+ * import { UpgradeableLockReleaseTokenPool } from 'UpgradeableLockReleaseTokenPool';
1824
+ *
1825
+ * const publicClient = createPublicClient({ chain: mainnet, transport: http() });
1826
+ * const walletClient = createWalletClient({ chain: mainnet, transport: http() });
1827
+ *
1828
+ * const contract = new UpgradeableLockReleaseTokenPool('0x...', { publicClient, walletClient });
1829
+ *
1830
+ * // Read functions
1831
+ * const result = await contract.balanceOf('0x...');
1832
+ *
1833
+ * // Write functions
1834
+ * const hash = await contract.transfer('0x...', 1000n);
1835
+ *
1836
+ * // Simulate transactions (dry-run)
1837
+ * const simulation = await contract.simulate.transfer('0x...', 1000n);
1838
+ * console.log('Gas estimate:', simulation.request.gas);
1839
+ *
1840
+ * // Watch events
1841
+ * const unwatch = contract.watch.Transfer((event) => {
1842
+ * console.log('Transfer event:', event);
1843
+ * });
1844
+ * ```
1845
+ */
1846
+ class UpgradeableLockReleaseTokenPool {
1847
+ constructor(address, clients) {
1848
+ this.contractAddress = address;
1849
+ this.publicClient = clients.publicClient;
1850
+ this.contract = (0, viem_1.getContract)({
1851
+ address,
1852
+ abi: exports.UpgradeableLockReleaseTokenPoolAbi,
1853
+ client: {
1854
+ public: clients.publicClient,
1855
+ wallet: clients.walletClient,
1856
+ },
1857
+ });
1858
+ }
1859
+ /**
1860
+ * Get the contract address
1861
+ */
1862
+ get address() {
1863
+ return this.contractAddress;
1864
+ }
1865
+ /**
1866
+ * Get the underlying viem contract instance.
1867
+ */
1868
+ getContract() {
1869
+ return this.contract;
1870
+ }
1871
+ /**
1872
+ * canAcceptLiquidity
1873
+ * view
1874
+ */
1875
+ async canAcceptLiquidity() {
1876
+ return this.contract.read.canAcceptLiquidity();
1877
+ }
1878
+ /**
1879
+ * getAllowList
1880
+ * view
1881
+ */
1882
+ async getAllowList() {
1883
+ return this.contract.read.getAllowList();
1884
+ }
1885
+ /**
1886
+ * getAllowListEnabled
1887
+ * view
1888
+ */
1889
+ async getAllowListEnabled() {
1890
+ return this.contract.read.getAllowListEnabled();
1891
+ }
1892
+ /**
1893
+ * getBridgeLimit
1894
+ * view
1895
+ */
1896
+ async getBridgeLimit() {
1897
+ return this.contract.read.getBridgeLimit();
1898
+ }
1899
+ /**
1900
+ * getBridgeLimitAdmin
1901
+ * view
1902
+ */
1903
+ async getBridgeLimitAdmin() {
1904
+ return this.contract.read.getBridgeLimitAdmin();
1905
+ }
1906
+ /**
1907
+ * getCurrentBridgedAmount
1908
+ * view
1909
+ */
1910
+ async getCurrentBridgedAmount() {
1911
+ return this.contract.read.getCurrentBridgedAmount();
1912
+ }
1913
+ /**
1914
+ * getCurrentInboundRateLimiterState
1915
+ * view
1916
+ */
1917
+ async getCurrentInboundRateLimiterState(remoteChainSelector) {
1918
+ return this.contract.read.getCurrentInboundRateLimiterState([remoteChainSelector]);
1919
+ }
1920
+ /**
1921
+ * getCurrentOutboundRateLimiterState
1922
+ * view
1923
+ */
1924
+ async getCurrentOutboundRateLimiterState(remoteChainSelector) {
1925
+ return this.contract.read.getCurrentOutboundRateLimiterState([remoteChainSelector]);
1926
+ }
1927
+ /**
1928
+ * getRateLimitAdmin
1929
+ * view
1930
+ */
1931
+ async getRateLimitAdmin() {
1932
+ return this.contract.read.getRateLimitAdmin();
1933
+ }
1934
+ /**
1935
+ * getRebalancer
1936
+ * view
1937
+ */
1938
+ async getRebalancer() {
1939
+ return this.contract.read.getRebalancer();
1940
+ }
1941
+ /**
1942
+ * getRemotePools
1943
+ * view
1944
+ */
1945
+ async getRemotePools(remoteChainSelector) {
1946
+ return this.contract.read.getRemotePools([remoteChainSelector]);
1947
+ }
1948
+ /**
1949
+ * getRemoteToken
1950
+ * view
1951
+ */
1952
+ async getRemoteToken(remoteChainSelector) {
1953
+ return this.contract.read.getRemoteToken([remoteChainSelector]);
1954
+ }
1955
+ /**
1956
+ * getRmnProxy
1957
+ * view
1958
+ */
1959
+ async getRmnProxy() {
1960
+ return this.contract.read.getRmnProxy();
1961
+ }
1962
+ /**
1963
+ * getRouter
1964
+ * view
1965
+ */
1966
+ async getRouter() {
1967
+ return this.contract.read.getRouter();
1968
+ }
1969
+ /**
1970
+ * getSupportedChains
1971
+ * view
1972
+ */
1973
+ async getSupportedChains() {
1974
+ return this.contract.read.getSupportedChains();
1975
+ }
1976
+ /**
1977
+ * getToken
1978
+ * view
1979
+ */
1980
+ async getToken() {
1981
+ return this.contract.read.getToken();
1982
+ }
1983
+ /**
1984
+ * getTokenDecimals
1985
+ * view
1986
+ */
1987
+ async getTokenDecimals() {
1988
+ return this.contract.read.getTokenDecimals();
1989
+ }
1990
+ /**
1991
+ * isRemotePool
1992
+ * view
1993
+ */
1994
+ async isRemotePool(remoteChainSelector, remotePoolAddress) {
1995
+ return this.contract.read.isRemotePool([remoteChainSelector, remotePoolAddress]);
1996
+ }
1997
+ /**
1998
+ * isSupportedChain
1999
+ * view
2000
+ */
2001
+ async isSupportedChain(remoteChainSelector) {
2002
+ return this.contract.read.isSupportedChain([remoteChainSelector]);
2003
+ }
2004
+ /**
2005
+ * isSupportedToken
2006
+ * view
2007
+ */
2008
+ async isSupportedToken(token) {
2009
+ return this.contract.read.isSupportedToken([token]);
2010
+ }
2011
+ /**
2012
+ * owner
2013
+ * view
2014
+ */
2015
+ async owner() {
2016
+ return this.contract.read.owner();
2017
+ }
2018
+ /**
2019
+ * supportsInterface
2020
+ * pure
2021
+ */
2022
+ async supportsInterface(interfaceId) {
2023
+ return this.contract.read.supportsInterface([interfaceId]);
2024
+ }
2025
+ /**
2026
+ * typeAndVersion
2027
+ * view
2028
+ */
2029
+ async typeAndVersion() {
2030
+ return this.contract.read.typeAndVersion();
2031
+ }
2032
+ /**
2033
+ * acceptOwnership
2034
+ * nonpayable
2035
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2036
+ */
2037
+ async acceptOwnership(options) {
2038
+ if (!this.contract.write) {
2039
+ throw new Error('Wallet client is required for write operations');
2040
+ }
2041
+ return this.contract.write.acceptOwnership(options);
2042
+ }
2043
+ /**
2044
+ * addRemotePool
2045
+ * nonpayable
2046
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2047
+ */
2048
+ async addRemotePool(remoteChainSelector, remotePoolAddress, options) {
2049
+ if (!this.contract.write) {
2050
+ throw new Error('Wallet client is required for write operations');
2051
+ }
2052
+ return this.contract.write.addRemotePool([remoteChainSelector, remotePoolAddress], options);
2053
+ }
2054
+ /**
2055
+ * applyAllowListUpdates
2056
+ * nonpayable
2057
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2058
+ */
2059
+ async applyAllowListUpdates(removes, adds, options) {
2060
+ if (!this.contract.write) {
2061
+ throw new Error('Wallet client is required for write operations');
2062
+ }
2063
+ return this.contract.write.applyAllowListUpdates([removes, adds], options);
2064
+ }
2065
+ /**
2066
+ * applyChainUpdates
2067
+ * nonpayable
2068
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2069
+ */
2070
+ async applyChainUpdates(remoteChainSelectorsToRemove, chainsToAdd, options) {
2071
+ if (!this.contract.write) {
2072
+ throw new Error('Wallet client is required for write operations');
2073
+ }
2074
+ return this.contract.write.applyChainUpdates([remoteChainSelectorsToRemove, chainsToAdd], options);
2075
+ }
2076
+ /**
2077
+ * initialize
2078
+ * nonpayable
2079
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2080
+ */
2081
+ async initialize(owner_, allowlist, router, bridgeLimit, options) {
2082
+ if (!this.contract.write) {
2083
+ throw new Error('Wallet client is required for write operations');
2084
+ }
2085
+ return this.contract.write.initialize([owner_, allowlist, router, bridgeLimit], options);
2086
+ }
2087
+ /**
2088
+ * lockOrBurn
2089
+ * nonpayable
2090
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2091
+ */
2092
+ async lockOrBurn(lockOrBurnIn, options) {
2093
+ if (!this.contract.write) {
2094
+ throw new Error('Wallet client is required for write operations');
2095
+ }
2096
+ return this.contract.write.lockOrBurn([lockOrBurnIn], options);
2097
+ }
2098
+ /**
2099
+ * provideLiquidity
2100
+ * nonpayable
2101
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2102
+ */
2103
+ async provideLiquidity(amount, options) {
2104
+ if (!this.contract.write) {
2105
+ throw new Error('Wallet client is required for write operations');
2106
+ }
2107
+ return this.contract.write.provideLiquidity([amount], options);
2108
+ }
2109
+ /**
2110
+ * releaseOrMint
2111
+ * nonpayable
2112
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2113
+ */
2114
+ async releaseOrMint(releaseOrMintIn, options) {
2115
+ if (!this.contract.write) {
2116
+ throw new Error('Wallet client is required for write operations');
2117
+ }
2118
+ return this.contract.write.releaseOrMint([releaseOrMintIn], options);
2119
+ }
2120
+ /**
2121
+ * removeRemotePool
2122
+ * nonpayable
2123
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2124
+ */
2125
+ async removeRemotePool(remoteChainSelector, remotePoolAddress, options) {
2126
+ if (!this.contract.write) {
2127
+ throw new Error('Wallet client is required for write operations');
2128
+ }
2129
+ return this.contract.write.removeRemotePool([remoteChainSelector, remotePoolAddress], options);
2130
+ }
2131
+ /**
2132
+ * setBridgeLimit
2133
+ * nonpayable
2134
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2135
+ */
2136
+ async setBridgeLimit(newBridgeLimit, options) {
2137
+ if (!this.contract.write) {
2138
+ throw new Error('Wallet client is required for write operations');
2139
+ }
2140
+ return this.contract.write.setBridgeLimit([newBridgeLimit], options);
2141
+ }
2142
+ /**
2143
+ * setBridgeLimitAdmin
2144
+ * nonpayable
2145
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2146
+ */
2147
+ async setBridgeLimitAdmin(bridgeLimitAdmin, options) {
2148
+ if (!this.contract.write) {
2149
+ throw new Error('Wallet client is required for write operations');
2150
+ }
2151
+ return this.contract.write.setBridgeLimitAdmin([bridgeLimitAdmin], options);
2152
+ }
2153
+ /**
2154
+ * setChainRateLimiterConfig
2155
+ * nonpayable
2156
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2157
+ */
2158
+ async setChainRateLimiterConfig(remoteChainSelector, outboundConfig, inboundConfig, options) {
2159
+ if (!this.contract.write) {
2160
+ throw new Error('Wallet client is required for write operations');
2161
+ }
2162
+ return this.contract.write.setChainRateLimiterConfig([remoteChainSelector, outboundConfig, inboundConfig], options);
2163
+ }
2164
+ /**
2165
+ * setCurrentBridgedAmount
2166
+ * nonpayable
2167
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2168
+ */
2169
+ async setCurrentBridgedAmount(newCurrentBridged, options) {
2170
+ if (!this.contract.write) {
2171
+ throw new Error('Wallet client is required for write operations');
2172
+ }
2173
+ return this.contract.write.setCurrentBridgedAmount([newCurrentBridged], options);
2174
+ }
2175
+ /**
2176
+ * setRateLimitAdmin
2177
+ * nonpayable
2178
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2179
+ */
2180
+ async setRateLimitAdmin(rateLimitAdmin, options) {
2181
+ if (!this.contract.write) {
2182
+ throw new Error('Wallet client is required for write operations');
2183
+ }
2184
+ return this.contract.write.setRateLimitAdmin([rateLimitAdmin], options);
2185
+ }
2186
+ /**
2187
+ * setRebalancer
2188
+ * nonpayable
2189
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2190
+ */
2191
+ async setRebalancer(rebalancer, options) {
2192
+ if (!this.contract.write) {
2193
+ throw new Error('Wallet client is required for write operations');
2194
+ }
2195
+ return this.contract.write.setRebalancer([rebalancer], options);
2196
+ }
2197
+ /**
2198
+ * setRouter
2199
+ * nonpayable
2200
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2201
+ */
2202
+ async setRouter(newRouter, options) {
2203
+ if (!this.contract.write) {
2204
+ throw new Error('Wallet client is required for write operations');
2205
+ }
2206
+ return this.contract.write.setRouter([newRouter], options);
2207
+ }
2208
+ /**
2209
+ * transferLiquidity
2210
+ * nonpayable
2211
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2212
+ */
2213
+ async transferLiquidity(from, amount, options) {
2214
+ if (!this.contract.write) {
2215
+ throw new Error('Wallet client is required for write operations');
2216
+ }
2217
+ return this.contract.write.transferLiquidity([from, amount], options);
2218
+ }
2219
+ /**
2220
+ * transferOwnership
2221
+ * nonpayable
2222
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2223
+ */
2224
+ async transferOwnership(to, options) {
2225
+ if (!this.contract.write) {
2226
+ throw new Error('Wallet client is required for write operations');
2227
+ }
2228
+ return this.contract.write.transferOwnership([to], options);
2229
+ }
2230
+ /**
2231
+ * withdrawLiquidity
2232
+ * nonpayable
2233
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2234
+ */
2235
+ async withdrawLiquidity(amount, options) {
2236
+ if (!this.contract.write) {
2237
+ throw new Error('Wallet client is required for write operations');
2238
+ }
2239
+ return this.contract.write.withdrawLiquidity([amount], options);
2240
+ }
2241
+ /**
2242
+ * Simulate contract write operations (dry-run without sending transaction)
2243
+ *
2244
+ * @example
2245
+ * const result = await contract.simulate.transfer('0x...', 1000n);
2246
+ * console.log('Gas estimate:', result.request.gas);
2247
+ * console.log('Would succeed:', result.result);
2248
+ */
2249
+ get simulate() {
2250
+ const contract = this.contract;
2251
+ if (!contract.simulate) {
2252
+ throw new Error('Public client is required for simulation');
2253
+ }
2254
+ return {
2255
+ /**
2256
+ * Simulate acceptOwnership
2257
+ * Returns gas estimate and result without sending transaction
2258
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2259
+ */
2260
+ async acceptOwnership(options) {
2261
+ return contract.simulate.acceptOwnership(options);
2262
+ },
2263
+ /**
2264
+ * Simulate addRemotePool
2265
+ * Returns gas estimate and result without sending transaction
2266
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2267
+ */
2268
+ async addRemotePool(remoteChainSelector, remotePoolAddress, options) {
2269
+ return contract.simulate.addRemotePool([remoteChainSelector, remotePoolAddress], options);
2270
+ },
2271
+ /**
2272
+ * Simulate applyAllowListUpdates
2273
+ * Returns gas estimate and result without sending transaction
2274
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2275
+ */
2276
+ async applyAllowListUpdates(removes, adds, options) {
2277
+ return contract.simulate.applyAllowListUpdates([removes, adds], options);
2278
+ },
2279
+ /**
2280
+ * Simulate applyChainUpdates
2281
+ * Returns gas estimate and result without sending transaction
2282
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2283
+ */
2284
+ async applyChainUpdates(remoteChainSelectorsToRemove, chainsToAdd, options) {
2285
+ return contract.simulate.applyChainUpdates([remoteChainSelectorsToRemove, chainsToAdd], options);
2286
+ },
2287
+ /**
2288
+ * Simulate initialize
2289
+ * Returns gas estimate and result without sending transaction
2290
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2291
+ */
2292
+ async initialize(owner_, allowlist, router, bridgeLimit, options) {
2293
+ return contract.simulate.initialize([owner_, allowlist, router, bridgeLimit], options);
2294
+ },
2295
+ /**
2296
+ * Simulate lockOrBurn
2297
+ * Returns gas estimate and result without sending transaction
2298
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2299
+ */
2300
+ async lockOrBurn(lockOrBurnIn, options) {
2301
+ return contract.simulate.lockOrBurn([lockOrBurnIn], options);
2302
+ },
2303
+ /**
2304
+ * Simulate provideLiquidity
2305
+ * Returns gas estimate and result without sending transaction
2306
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2307
+ */
2308
+ async provideLiquidity(amount, options) {
2309
+ return contract.simulate.provideLiquidity([amount], options);
2310
+ },
2311
+ /**
2312
+ * Simulate releaseOrMint
2313
+ * Returns gas estimate and result without sending transaction
2314
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2315
+ */
2316
+ async releaseOrMint(releaseOrMintIn, options) {
2317
+ return contract.simulate.releaseOrMint([releaseOrMintIn], options);
2318
+ },
2319
+ /**
2320
+ * Simulate removeRemotePool
2321
+ * Returns gas estimate and result without sending transaction
2322
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2323
+ */
2324
+ async removeRemotePool(remoteChainSelector, remotePoolAddress, options) {
2325
+ return contract.simulate.removeRemotePool([remoteChainSelector, remotePoolAddress], options);
2326
+ },
2327
+ /**
2328
+ * Simulate setBridgeLimit
2329
+ * Returns gas estimate and result without sending transaction
2330
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2331
+ */
2332
+ async setBridgeLimit(newBridgeLimit, options) {
2333
+ return contract.simulate.setBridgeLimit([newBridgeLimit], options);
2334
+ },
2335
+ /**
2336
+ * Simulate setBridgeLimitAdmin
2337
+ * Returns gas estimate and result without sending transaction
2338
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2339
+ */
2340
+ async setBridgeLimitAdmin(bridgeLimitAdmin, options) {
2341
+ return contract.simulate.setBridgeLimitAdmin([bridgeLimitAdmin], options);
2342
+ },
2343
+ /**
2344
+ * Simulate setChainRateLimiterConfig
2345
+ * Returns gas estimate and result without sending transaction
2346
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2347
+ */
2348
+ async setChainRateLimiterConfig(remoteChainSelector, outboundConfig, inboundConfig, options) {
2349
+ return contract.simulate.setChainRateLimiterConfig([remoteChainSelector, outboundConfig, inboundConfig], options);
2350
+ },
2351
+ /**
2352
+ * Simulate setCurrentBridgedAmount
2353
+ * Returns gas estimate and result without sending transaction
2354
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2355
+ */
2356
+ async setCurrentBridgedAmount(newCurrentBridged, options) {
2357
+ return contract.simulate.setCurrentBridgedAmount([newCurrentBridged], options);
2358
+ },
2359
+ /**
2360
+ * Simulate setRateLimitAdmin
2361
+ * Returns gas estimate and result without sending transaction
2362
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2363
+ */
2364
+ async setRateLimitAdmin(rateLimitAdmin, options) {
2365
+ return contract.simulate.setRateLimitAdmin([rateLimitAdmin], options);
2366
+ },
2367
+ /**
2368
+ * Simulate setRebalancer
2369
+ * Returns gas estimate and result without sending transaction
2370
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2371
+ */
2372
+ async setRebalancer(rebalancer, options) {
2373
+ return contract.simulate.setRebalancer([rebalancer], options);
2374
+ },
2375
+ /**
2376
+ * Simulate setRouter
2377
+ * Returns gas estimate and result without sending transaction
2378
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2379
+ */
2380
+ async setRouter(newRouter, options) {
2381
+ return contract.simulate.setRouter([newRouter], options);
2382
+ },
2383
+ /**
2384
+ * Simulate transferLiquidity
2385
+ * Returns gas estimate and result without sending transaction
2386
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2387
+ */
2388
+ async transferLiquidity(from, amount, options) {
2389
+ return contract.simulate.transferLiquidity([from, amount], options);
2390
+ },
2391
+ /**
2392
+ * Simulate transferOwnership
2393
+ * Returns gas estimate and result without sending transaction
2394
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2395
+ */
2396
+ async transferOwnership(to, options) {
2397
+ return contract.simulate.transferOwnership([to], options);
2398
+ },
2399
+ /**
2400
+ * Simulate withdrawLiquidity
2401
+ * Returns gas estimate and result without sending transaction
2402
+ * @param options Optional transaction parameters (value, gas, nonce, etc.)
2403
+ */
2404
+ async withdrawLiquidity(amount, options) {
2405
+ return contract.simulate.withdrawLiquidity([amount], options);
2406
+ }
2407
+ };
2408
+ }
2409
+ /**
2410
+ * Watch contract events
2411
+ *
2412
+ * @example
2413
+ * // Watch all Transfer events
2414
+ * const unwatch = contract.watch.Transfer((event) => {
2415
+ * console.log('Transfer:', event);
2416
+ * });
2417
+ *
2418
+ * // Stop watching
2419
+ * unwatch();
2420
+ */
2421
+ get watch() {
2422
+ return {
2423
+ /**
2424
+ * Watch AllowListAdd events
2425
+ * @param callback Function to call when event is emitted
2426
+ * @param filter Optional filter for indexed parameters
2427
+ * @returns Unwatch function to stop listening
2428
+ */
2429
+ AllowListAdd: (callback) => {
2430
+ return this.publicClient.watchContractEvent({
2431
+ address: this.contractAddress,
2432
+ abi: exports.UpgradeableLockReleaseTokenPoolAbi,
2433
+ eventName: 'AllowListAdd',
2434
+ onLogs: (logs) => {
2435
+ logs.forEach((log) => {
2436
+ callback(log.args);
2437
+ });
2438
+ },
2439
+ });
2440
+ },
2441
+ /**
2442
+ * Watch AllowListRemove events
2443
+ * @param callback Function to call when event is emitted
2444
+ * @param filter Optional filter for indexed parameters
2445
+ * @returns Unwatch function to stop listening
2446
+ */
2447
+ AllowListRemove: (callback) => {
2448
+ return this.publicClient.watchContractEvent({
2449
+ address: this.contractAddress,
2450
+ abi: exports.UpgradeableLockReleaseTokenPoolAbi,
2451
+ eventName: 'AllowListRemove',
2452
+ onLogs: (logs) => {
2453
+ logs.forEach((log) => {
2454
+ callback(log.args);
2455
+ });
2456
+ },
2457
+ });
2458
+ },
2459
+ /**
2460
+ * Watch BridgeLimitAdminUpdated events
2461
+ * @param callback Function to call when event is emitted
2462
+ * @param filter Optional filter for indexed parameters
2463
+ * @returns Unwatch function to stop listening
2464
+ */
2465
+ BridgeLimitAdminUpdated: (callback, filter) => {
2466
+ return this.publicClient.watchContractEvent({
2467
+ address: this.contractAddress,
2468
+ abi: exports.UpgradeableLockReleaseTokenPoolAbi,
2469
+ eventName: 'BridgeLimitAdminUpdated',
2470
+ args: filter,
2471
+ onLogs: (logs) => {
2472
+ logs.forEach((log) => {
2473
+ callback(log.args);
2474
+ });
2475
+ },
2476
+ });
2477
+ },
2478
+ /**
2479
+ * Watch BridgeLimitUpdated events
2480
+ * @param callback Function to call when event is emitted
2481
+ * @param filter Optional filter for indexed parameters
2482
+ * @returns Unwatch function to stop listening
2483
+ */
2484
+ BridgeLimitUpdated: (callback) => {
2485
+ return this.publicClient.watchContractEvent({
2486
+ address: this.contractAddress,
2487
+ abi: exports.UpgradeableLockReleaseTokenPoolAbi,
2488
+ eventName: 'BridgeLimitUpdated',
2489
+ onLogs: (logs) => {
2490
+ logs.forEach((log) => {
2491
+ callback(log.args);
2492
+ });
2493
+ },
2494
+ });
2495
+ },
2496
+ /**
2497
+ * Watch Burned events
2498
+ * @param callback Function to call when event is emitted
2499
+ * @param filter Optional filter for indexed parameters
2500
+ * @returns Unwatch function to stop listening
2501
+ */
2502
+ Burned: (callback, filter) => {
2503
+ return this.publicClient.watchContractEvent({
2504
+ address: this.contractAddress,
2505
+ abi: exports.UpgradeableLockReleaseTokenPoolAbi,
2506
+ eventName: 'Burned',
2507
+ args: filter,
2508
+ onLogs: (logs) => {
2509
+ logs.forEach((log) => {
2510
+ callback(log.args);
2511
+ });
2512
+ },
2513
+ });
2514
+ },
2515
+ /**
2516
+ * Watch ChainAdded events
2517
+ * @param callback Function to call when event is emitted
2518
+ * @param filter Optional filter for indexed parameters
2519
+ * @returns Unwatch function to stop listening
2520
+ */
2521
+ ChainAdded: (callback) => {
2522
+ return this.publicClient.watchContractEvent({
2523
+ address: this.contractAddress,
2524
+ abi: exports.UpgradeableLockReleaseTokenPoolAbi,
2525
+ eventName: 'ChainAdded',
2526
+ onLogs: (logs) => {
2527
+ logs.forEach((log) => {
2528
+ callback(log.args);
2529
+ });
2530
+ },
2531
+ });
2532
+ },
2533
+ /**
2534
+ * Watch ChainConfigured events
2535
+ * @param callback Function to call when event is emitted
2536
+ * @param filter Optional filter for indexed parameters
2537
+ * @returns Unwatch function to stop listening
2538
+ */
2539
+ ChainConfigured: (callback) => {
2540
+ return this.publicClient.watchContractEvent({
2541
+ address: this.contractAddress,
2542
+ abi: exports.UpgradeableLockReleaseTokenPoolAbi,
2543
+ eventName: 'ChainConfigured',
2544
+ onLogs: (logs) => {
2545
+ logs.forEach((log) => {
2546
+ callback(log.args);
2547
+ });
2548
+ },
2549
+ });
2550
+ },
2551
+ /**
2552
+ * Watch ChainRemoved events
2553
+ * @param callback Function to call when event is emitted
2554
+ * @param filter Optional filter for indexed parameters
2555
+ * @returns Unwatch function to stop listening
2556
+ */
2557
+ ChainRemoved: (callback) => {
2558
+ return this.publicClient.watchContractEvent({
2559
+ address: this.contractAddress,
2560
+ abi: exports.UpgradeableLockReleaseTokenPoolAbi,
2561
+ eventName: 'ChainRemoved',
2562
+ onLogs: (logs) => {
2563
+ logs.forEach((log) => {
2564
+ callback(log.args);
2565
+ });
2566
+ },
2567
+ });
2568
+ },
2569
+ /**
2570
+ * Watch ConfigChanged events
2571
+ * @param callback Function to call when event is emitted
2572
+ * @param filter Optional filter for indexed parameters
2573
+ * @returns Unwatch function to stop listening
2574
+ */
2575
+ ConfigChanged: (callback) => {
2576
+ return this.publicClient.watchContractEvent({
2577
+ address: this.contractAddress,
2578
+ abi: exports.UpgradeableLockReleaseTokenPoolAbi,
2579
+ eventName: 'ConfigChanged',
2580
+ onLogs: (logs) => {
2581
+ logs.forEach((log) => {
2582
+ callback(log.args);
2583
+ });
2584
+ },
2585
+ });
2586
+ },
2587
+ /**
2588
+ * Watch Initialized events
2589
+ * @param callback Function to call when event is emitted
2590
+ * @param filter Optional filter for indexed parameters
2591
+ * @returns Unwatch function to stop listening
2592
+ */
2593
+ Initialized: (callback) => {
2594
+ return this.publicClient.watchContractEvent({
2595
+ address: this.contractAddress,
2596
+ abi: exports.UpgradeableLockReleaseTokenPoolAbi,
2597
+ eventName: 'Initialized',
2598
+ onLogs: (logs) => {
2599
+ logs.forEach((log) => {
2600
+ callback(log.args);
2601
+ });
2602
+ },
2603
+ });
2604
+ },
2605
+ /**
2606
+ * Watch LiquidityAdded events
2607
+ * @param callback Function to call when event is emitted
2608
+ * @param filter Optional filter for indexed parameters
2609
+ * @returns Unwatch function to stop listening
2610
+ */
2611
+ LiquidityAdded: (callback, filter) => {
2612
+ return this.publicClient.watchContractEvent({
2613
+ address: this.contractAddress,
2614
+ abi: exports.UpgradeableLockReleaseTokenPoolAbi,
2615
+ eventName: 'LiquidityAdded',
2616
+ args: filter,
2617
+ onLogs: (logs) => {
2618
+ logs.forEach((log) => {
2619
+ callback(log.args);
2620
+ });
2621
+ },
2622
+ });
2623
+ },
2624
+ /**
2625
+ * Watch LiquidityRemoved events
2626
+ * @param callback Function to call when event is emitted
2627
+ * @param filter Optional filter for indexed parameters
2628
+ * @returns Unwatch function to stop listening
2629
+ */
2630
+ LiquidityRemoved: (callback, filter) => {
2631
+ return this.publicClient.watchContractEvent({
2632
+ address: this.contractAddress,
2633
+ abi: exports.UpgradeableLockReleaseTokenPoolAbi,
2634
+ eventName: 'LiquidityRemoved',
2635
+ args: filter,
2636
+ onLogs: (logs) => {
2637
+ logs.forEach((log) => {
2638
+ callback(log.args);
2639
+ });
2640
+ },
2641
+ });
2642
+ },
2643
+ /**
2644
+ * Watch LiquidityTransferred events
2645
+ * @param callback Function to call when event is emitted
2646
+ * @param filter Optional filter for indexed parameters
2647
+ * @returns Unwatch function to stop listening
2648
+ */
2649
+ LiquidityTransferred: (callback, filter) => {
2650
+ return this.publicClient.watchContractEvent({
2651
+ address: this.contractAddress,
2652
+ abi: exports.UpgradeableLockReleaseTokenPoolAbi,
2653
+ eventName: 'LiquidityTransferred',
2654
+ args: filter,
2655
+ onLogs: (logs) => {
2656
+ logs.forEach((log) => {
2657
+ callback(log.args);
2658
+ });
2659
+ },
2660
+ });
2661
+ },
2662
+ /**
2663
+ * Watch Locked events
2664
+ * @param callback Function to call when event is emitted
2665
+ * @param filter Optional filter for indexed parameters
2666
+ * @returns Unwatch function to stop listening
2667
+ */
2668
+ Locked: (callback, filter) => {
2669
+ return this.publicClient.watchContractEvent({
2670
+ address: this.contractAddress,
2671
+ abi: exports.UpgradeableLockReleaseTokenPoolAbi,
2672
+ eventName: 'Locked',
2673
+ args: filter,
2674
+ onLogs: (logs) => {
2675
+ logs.forEach((log) => {
2676
+ callback(log.args);
2677
+ });
2678
+ },
2679
+ });
2680
+ },
2681
+ /**
2682
+ * Watch Minted events
2683
+ * @param callback Function to call when event is emitted
2684
+ * @param filter Optional filter for indexed parameters
2685
+ * @returns Unwatch function to stop listening
2686
+ */
2687
+ Minted: (callback, filter) => {
2688
+ return this.publicClient.watchContractEvent({
2689
+ address: this.contractAddress,
2690
+ abi: exports.UpgradeableLockReleaseTokenPoolAbi,
2691
+ eventName: 'Minted',
2692
+ args: filter,
2693
+ onLogs: (logs) => {
2694
+ logs.forEach((log) => {
2695
+ callback(log.args);
2696
+ });
2697
+ },
2698
+ });
2699
+ },
2700
+ /**
2701
+ * Watch OwnershipTransferRequested events
2702
+ * @param callback Function to call when event is emitted
2703
+ * @param filter Optional filter for indexed parameters
2704
+ * @returns Unwatch function to stop listening
2705
+ */
2706
+ OwnershipTransferRequested: (callback, filter) => {
2707
+ return this.publicClient.watchContractEvent({
2708
+ address: this.contractAddress,
2709
+ abi: exports.UpgradeableLockReleaseTokenPoolAbi,
2710
+ eventName: 'OwnershipTransferRequested',
2711
+ args: filter,
2712
+ onLogs: (logs) => {
2713
+ logs.forEach((log) => {
2714
+ callback(log.args);
2715
+ });
2716
+ },
2717
+ });
2718
+ },
2719
+ /**
2720
+ * Watch OwnershipTransferred events
2721
+ * @param callback Function to call when event is emitted
2722
+ * @param filter Optional filter for indexed parameters
2723
+ * @returns Unwatch function to stop listening
2724
+ */
2725
+ OwnershipTransferred: (callback, filter) => {
2726
+ return this.publicClient.watchContractEvent({
2727
+ address: this.contractAddress,
2728
+ abi: exports.UpgradeableLockReleaseTokenPoolAbi,
2729
+ eventName: 'OwnershipTransferred',
2730
+ args: filter,
2731
+ onLogs: (logs) => {
2732
+ logs.forEach((log) => {
2733
+ callback(log.args);
2734
+ });
2735
+ },
2736
+ });
2737
+ },
2738
+ /**
2739
+ * Watch RateLimitAdminSet events
2740
+ * @param callback Function to call when event is emitted
2741
+ * @param filter Optional filter for indexed parameters
2742
+ * @returns Unwatch function to stop listening
2743
+ */
2744
+ RateLimitAdminSet: (callback) => {
2745
+ return this.publicClient.watchContractEvent({
2746
+ address: this.contractAddress,
2747
+ abi: exports.UpgradeableLockReleaseTokenPoolAbi,
2748
+ eventName: 'RateLimitAdminSet',
2749
+ onLogs: (logs) => {
2750
+ logs.forEach((log) => {
2751
+ callback(log.args);
2752
+ });
2753
+ },
2754
+ });
2755
+ },
2756
+ /**
2757
+ * Watch Released events
2758
+ * @param callback Function to call when event is emitted
2759
+ * @param filter Optional filter for indexed parameters
2760
+ * @returns Unwatch function to stop listening
2761
+ */
2762
+ Released: (callback, filter) => {
2763
+ return this.publicClient.watchContractEvent({
2764
+ address: this.contractAddress,
2765
+ abi: exports.UpgradeableLockReleaseTokenPoolAbi,
2766
+ eventName: 'Released',
2767
+ args: filter,
2768
+ onLogs: (logs) => {
2769
+ logs.forEach((log) => {
2770
+ callback(log.args);
2771
+ });
2772
+ },
2773
+ });
2774
+ },
2775
+ /**
2776
+ * Watch RemotePoolAdded events
2777
+ * @param callback Function to call when event is emitted
2778
+ * @param filter Optional filter for indexed parameters
2779
+ * @returns Unwatch function to stop listening
2780
+ */
2781
+ RemotePoolAdded: (callback, filter) => {
2782
+ return this.publicClient.watchContractEvent({
2783
+ address: this.contractAddress,
2784
+ abi: exports.UpgradeableLockReleaseTokenPoolAbi,
2785
+ eventName: 'RemotePoolAdded',
2786
+ args: filter,
2787
+ onLogs: (logs) => {
2788
+ logs.forEach((log) => {
2789
+ callback(log.args);
2790
+ });
2791
+ },
2792
+ });
2793
+ },
2794
+ /**
2795
+ * Watch RemotePoolRemoved events
2796
+ * @param callback Function to call when event is emitted
2797
+ * @param filter Optional filter for indexed parameters
2798
+ * @returns Unwatch function to stop listening
2799
+ */
2800
+ RemotePoolRemoved: (callback, filter) => {
2801
+ return this.publicClient.watchContractEvent({
2802
+ address: this.contractAddress,
2803
+ abi: exports.UpgradeableLockReleaseTokenPoolAbi,
2804
+ eventName: 'RemotePoolRemoved',
2805
+ args: filter,
2806
+ onLogs: (logs) => {
2807
+ logs.forEach((log) => {
2808
+ callback(log.args);
2809
+ });
2810
+ },
2811
+ });
2812
+ },
2813
+ /**
2814
+ * Watch RouterUpdated events
2815
+ * @param callback Function to call when event is emitted
2816
+ * @param filter Optional filter for indexed parameters
2817
+ * @returns Unwatch function to stop listening
2818
+ */
2819
+ RouterUpdated: (callback) => {
2820
+ return this.publicClient.watchContractEvent({
2821
+ address: this.contractAddress,
2822
+ abi: exports.UpgradeableLockReleaseTokenPoolAbi,
2823
+ eventName: 'RouterUpdated',
2824
+ onLogs: (logs) => {
2825
+ logs.forEach((log) => {
2826
+ callback(log.args);
2827
+ });
2828
+ },
2829
+ });
2830
+ },
2831
+ /**
2832
+ * Watch TokensConsumed events
2833
+ * @param callback Function to call when event is emitted
2834
+ * @param filter Optional filter for indexed parameters
2835
+ * @returns Unwatch function to stop listening
2836
+ */
2837
+ TokensConsumed: (callback) => {
2838
+ return this.publicClient.watchContractEvent({
2839
+ address: this.contractAddress,
2840
+ abi: exports.UpgradeableLockReleaseTokenPoolAbi,
2841
+ eventName: 'TokensConsumed',
2842
+ onLogs: (logs) => {
2843
+ logs.forEach((log) => {
2844
+ callback(log.args);
2845
+ });
2846
+ },
2847
+ });
2848
+ }
2849
+ };
2850
+ }
2851
+ }
2852
+ exports.UpgradeableLockReleaseTokenPool = UpgradeableLockReleaseTokenPool;