@sentrix-labs/canonical-contracts 1.1.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.
package/dist/index.cjs ADDED
@@ -0,0 +1,1429 @@
1
+ 'use strict';
2
+
3
+ // src/generated.ts
4
+ var WSRX = {
5
+ abi: [
6
+ {
7
+ "type": "receive",
8
+ "stateMutability": "payable"
9
+ },
10
+ {
11
+ "type": "function",
12
+ "name": "allowance",
13
+ "inputs": [
14
+ {
15
+ "name": "",
16
+ "type": "address",
17
+ "internalType": "address"
18
+ },
19
+ {
20
+ "name": "",
21
+ "type": "address",
22
+ "internalType": "address"
23
+ }
24
+ ],
25
+ "outputs": [
26
+ {
27
+ "name": "",
28
+ "type": "uint256",
29
+ "internalType": "uint256"
30
+ }
31
+ ],
32
+ "stateMutability": "view"
33
+ },
34
+ {
35
+ "type": "function",
36
+ "name": "approve",
37
+ "inputs": [
38
+ {
39
+ "name": "guy",
40
+ "type": "address",
41
+ "internalType": "address"
42
+ },
43
+ {
44
+ "name": "wad",
45
+ "type": "uint256",
46
+ "internalType": "uint256"
47
+ }
48
+ ],
49
+ "outputs": [
50
+ {
51
+ "name": "",
52
+ "type": "bool",
53
+ "internalType": "bool"
54
+ }
55
+ ],
56
+ "stateMutability": "nonpayable"
57
+ },
58
+ {
59
+ "type": "function",
60
+ "name": "balanceOf",
61
+ "inputs": [
62
+ {
63
+ "name": "",
64
+ "type": "address",
65
+ "internalType": "address"
66
+ }
67
+ ],
68
+ "outputs": [
69
+ {
70
+ "name": "",
71
+ "type": "uint256",
72
+ "internalType": "uint256"
73
+ }
74
+ ],
75
+ "stateMutability": "view"
76
+ },
77
+ {
78
+ "type": "function",
79
+ "name": "decimals",
80
+ "inputs": [],
81
+ "outputs": [
82
+ {
83
+ "name": "",
84
+ "type": "uint8",
85
+ "internalType": "uint8"
86
+ }
87
+ ],
88
+ "stateMutability": "view"
89
+ },
90
+ {
91
+ "type": "function",
92
+ "name": "deposit",
93
+ "inputs": [],
94
+ "outputs": [],
95
+ "stateMutability": "payable"
96
+ },
97
+ {
98
+ "type": "function",
99
+ "name": "name",
100
+ "inputs": [],
101
+ "outputs": [
102
+ {
103
+ "name": "",
104
+ "type": "string",
105
+ "internalType": "string"
106
+ }
107
+ ],
108
+ "stateMutability": "view"
109
+ },
110
+ {
111
+ "type": "function",
112
+ "name": "symbol",
113
+ "inputs": [],
114
+ "outputs": [
115
+ {
116
+ "name": "",
117
+ "type": "string",
118
+ "internalType": "string"
119
+ }
120
+ ],
121
+ "stateMutability": "view"
122
+ },
123
+ {
124
+ "type": "function",
125
+ "name": "totalSupply",
126
+ "inputs": [],
127
+ "outputs": [
128
+ {
129
+ "name": "",
130
+ "type": "uint256",
131
+ "internalType": "uint256"
132
+ }
133
+ ],
134
+ "stateMutability": "view"
135
+ },
136
+ {
137
+ "type": "function",
138
+ "name": "transfer",
139
+ "inputs": [
140
+ {
141
+ "name": "dst",
142
+ "type": "address",
143
+ "internalType": "address"
144
+ },
145
+ {
146
+ "name": "wad",
147
+ "type": "uint256",
148
+ "internalType": "uint256"
149
+ }
150
+ ],
151
+ "outputs": [
152
+ {
153
+ "name": "",
154
+ "type": "bool",
155
+ "internalType": "bool"
156
+ }
157
+ ],
158
+ "stateMutability": "nonpayable"
159
+ },
160
+ {
161
+ "type": "function",
162
+ "name": "transferFrom",
163
+ "inputs": [
164
+ {
165
+ "name": "src",
166
+ "type": "address",
167
+ "internalType": "address"
168
+ },
169
+ {
170
+ "name": "dst",
171
+ "type": "address",
172
+ "internalType": "address"
173
+ },
174
+ {
175
+ "name": "wad",
176
+ "type": "uint256",
177
+ "internalType": "uint256"
178
+ }
179
+ ],
180
+ "outputs": [
181
+ {
182
+ "name": "",
183
+ "type": "bool",
184
+ "internalType": "bool"
185
+ }
186
+ ],
187
+ "stateMutability": "nonpayable"
188
+ },
189
+ {
190
+ "type": "function",
191
+ "name": "withdraw",
192
+ "inputs": [
193
+ {
194
+ "name": "wad",
195
+ "type": "uint256",
196
+ "internalType": "uint256"
197
+ }
198
+ ],
199
+ "outputs": [],
200
+ "stateMutability": "nonpayable"
201
+ },
202
+ {
203
+ "type": "event",
204
+ "name": "Approval",
205
+ "inputs": [
206
+ {
207
+ "name": "src",
208
+ "type": "address",
209
+ "indexed": true,
210
+ "internalType": "address"
211
+ },
212
+ {
213
+ "name": "guy",
214
+ "type": "address",
215
+ "indexed": true,
216
+ "internalType": "address"
217
+ },
218
+ {
219
+ "name": "wad",
220
+ "type": "uint256",
221
+ "indexed": false,
222
+ "internalType": "uint256"
223
+ }
224
+ ],
225
+ "anonymous": false
226
+ },
227
+ {
228
+ "type": "event",
229
+ "name": "Deposit",
230
+ "inputs": [
231
+ {
232
+ "name": "dst",
233
+ "type": "address",
234
+ "indexed": true,
235
+ "internalType": "address"
236
+ },
237
+ {
238
+ "name": "wad",
239
+ "type": "uint256",
240
+ "indexed": false,
241
+ "internalType": "uint256"
242
+ }
243
+ ],
244
+ "anonymous": false
245
+ },
246
+ {
247
+ "type": "event",
248
+ "name": "Transfer",
249
+ "inputs": [
250
+ {
251
+ "name": "src",
252
+ "type": "address",
253
+ "indexed": true,
254
+ "internalType": "address"
255
+ },
256
+ {
257
+ "name": "dst",
258
+ "type": "address",
259
+ "indexed": true,
260
+ "internalType": "address"
261
+ },
262
+ {
263
+ "name": "wad",
264
+ "type": "uint256",
265
+ "indexed": false,
266
+ "internalType": "uint256"
267
+ }
268
+ ],
269
+ "anonymous": false
270
+ },
271
+ {
272
+ "type": "event",
273
+ "name": "Withdrawal",
274
+ "inputs": [
275
+ {
276
+ "name": "src",
277
+ "type": "address",
278
+ "indexed": true,
279
+ "internalType": "address"
280
+ },
281
+ {
282
+ "name": "wad",
283
+ "type": "uint256",
284
+ "indexed": false,
285
+ "internalType": "uint256"
286
+ }
287
+ ],
288
+ "anonymous": false
289
+ }
290
+ ],
291
+ address: {
292
+ 7119: "0x4693b113e523A196d9579333c4ab8358e2656553",
293
+ 7120: "0x85d5E7694AF31C2Edd0a7e66b7c6c92C59fF949A"
294
+ }
295
+ };
296
+ var WSRX_ABI = WSRX.abi;
297
+ var Multicall3 = {
298
+ abi: [
299
+ {
300
+ "type": "function",
301
+ "name": "aggregate",
302
+ "inputs": [
303
+ {
304
+ "name": "calls",
305
+ "type": "tuple[]",
306
+ "internalType": "struct Multicall3.Call[]",
307
+ "components": [
308
+ {
309
+ "name": "target",
310
+ "type": "address",
311
+ "internalType": "address"
312
+ },
313
+ {
314
+ "name": "callData",
315
+ "type": "bytes",
316
+ "internalType": "bytes"
317
+ }
318
+ ]
319
+ }
320
+ ],
321
+ "outputs": [
322
+ {
323
+ "name": "blockNumber",
324
+ "type": "uint256",
325
+ "internalType": "uint256"
326
+ },
327
+ {
328
+ "name": "returnData",
329
+ "type": "bytes[]",
330
+ "internalType": "bytes[]"
331
+ }
332
+ ],
333
+ "stateMutability": "payable"
334
+ },
335
+ {
336
+ "type": "function",
337
+ "name": "aggregate3",
338
+ "inputs": [
339
+ {
340
+ "name": "calls",
341
+ "type": "tuple[]",
342
+ "internalType": "struct Multicall3.Call3[]",
343
+ "components": [
344
+ {
345
+ "name": "target",
346
+ "type": "address",
347
+ "internalType": "address"
348
+ },
349
+ {
350
+ "name": "allowFailure",
351
+ "type": "bool",
352
+ "internalType": "bool"
353
+ },
354
+ {
355
+ "name": "callData",
356
+ "type": "bytes",
357
+ "internalType": "bytes"
358
+ }
359
+ ]
360
+ }
361
+ ],
362
+ "outputs": [
363
+ {
364
+ "name": "returnData",
365
+ "type": "tuple[]",
366
+ "internalType": "struct Multicall3.Result[]",
367
+ "components": [
368
+ {
369
+ "name": "success",
370
+ "type": "bool",
371
+ "internalType": "bool"
372
+ },
373
+ {
374
+ "name": "returnData",
375
+ "type": "bytes",
376
+ "internalType": "bytes"
377
+ }
378
+ ]
379
+ }
380
+ ],
381
+ "stateMutability": "payable"
382
+ },
383
+ {
384
+ "type": "function",
385
+ "name": "aggregate3Value",
386
+ "inputs": [
387
+ {
388
+ "name": "calls",
389
+ "type": "tuple[]",
390
+ "internalType": "struct Multicall3.Call3Value[]",
391
+ "components": [
392
+ {
393
+ "name": "target",
394
+ "type": "address",
395
+ "internalType": "address"
396
+ },
397
+ {
398
+ "name": "allowFailure",
399
+ "type": "bool",
400
+ "internalType": "bool"
401
+ },
402
+ {
403
+ "name": "value",
404
+ "type": "uint256",
405
+ "internalType": "uint256"
406
+ },
407
+ {
408
+ "name": "callData",
409
+ "type": "bytes",
410
+ "internalType": "bytes"
411
+ }
412
+ ]
413
+ }
414
+ ],
415
+ "outputs": [
416
+ {
417
+ "name": "returnData",
418
+ "type": "tuple[]",
419
+ "internalType": "struct Multicall3.Result[]",
420
+ "components": [
421
+ {
422
+ "name": "success",
423
+ "type": "bool",
424
+ "internalType": "bool"
425
+ },
426
+ {
427
+ "name": "returnData",
428
+ "type": "bytes",
429
+ "internalType": "bytes"
430
+ }
431
+ ]
432
+ }
433
+ ],
434
+ "stateMutability": "payable"
435
+ },
436
+ {
437
+ "type": "function",
438
+ "name": "blockAndAggregate",
439
+ "inputs": [
440
+ {
441
+ "name": "calls",
442
+ "type": "tuple[]",
443
+ "internalType": "struct Multicall3.Call[]",
444
+ "components": [
445
+ {
446
+ "name": "target",
447
+ "type": "address",
448
+ "internalType": "address"
449
+ },
450
+ {
451
+ "name": "callData",
452
+ "type": "bytes",
453
+ "internalType": "bytes"
454
+ }
455
+ ]
456
+ }
457
+ ],
458
+ "outputs": [
459
+ {
460
+ "name": "blockNumber",
461
+ "type": "uint256",
462
+ "internalType": "uint256"
463
+ },
464
+ {
465
+ "name": "blockHash",
466
+ "type": "bytes32",
467
+ "internalType": "bytes32"
468
+ },
469
+ {
470
+ "name": "returnData",
471
+ "type": "tuple[]",
472
+ "internalType": "struct Multicall3.Result[]",
473
+ "components": [
474
+ {
475
+ "name": "success",
476
+ "type": "bool",
477
+ "internalType": "bool"
478
+ },
479
+ {
480
+ "name": "returnData",
481
+ "type": "bytes",
482
+ "internalType": "bytes"
483
+ }
484
+ ]
485
+ }
486
+ ],
487
+ "stateMutability": "payable"
488
+ },
489
+ {
490
+ "type": "function",
491
+ "name": "getBasefee",
492
+ "inputs": [],
493
+ "outputs": [
494
+ {
495
+ "name": "",
496
+ "type": "uint256",
497
+ "internalType": "uint256"
498
+ }
499
+ ],
500
+ "stateMutability": "view"
501
+ },
502
+ {
503
+ "type": "function",
504
+ "name": "getBlockHash",
505
+ "inputs": [
506
+ {
507
+ "name": "blockNumber",
508
+ "type": "uint256",
509
+ "internalType": "uint256"
510
+ }
511
+ ],
512
+ "outputs": [
513
+ {
514
+ "name": "",
515
+ "type": "bytes32",
516
+ "internalType": "bytes32"
517
+ }
518
+ ],
519
+ "stateMutability": "view"
520
+ },
521
+ {
522
+ "type": "function",
523
+ "name": "getBlockNumber",
524
+ "inputs": [],
525
+ "outputs": [
526
+ {
527
+ "name": "",
528
+ "type": "uint256",
529
+ "internalType": "uint256"
530
+ }
531
+ ],
532
+ "stateMutability": "view"
533
+ },
534
+ {
535
+ "type": "function",
536
+ "name": "getChainId",
537
+ "inputs": [],
538
+ "outputs": [
539
+ {
540
+ "name": "",
541
+ "type": "uint256",
542
+ "internalType": "uint256"
543
+ }
544
+ ],
545
+ "stateMutability": "view"
546
+ },
547
+ {
548
+ "type": "function",
549
+ "name": "getCurrentBlockCoinbase",
550
+ "inputs": [],
551
+ "outputs": [
552
+ {
553
+ "name": "",
554
+ "type": "address",
555
+ "internalType": "address"
556
+ }
557
+ ],
558
+ "stateMutability": "view"
559
+ },
560
+ {
561
+ "type": "function",
562
+ "name": "getCurrentBlockGasLimit",
563
+ "inputs": [],
564
+ "outputs": [
565
+ {
566
+ "name": "",
567
+ "type": "uint256",
568
+ "internalType": "uint256"
569
+ }
570
+ ],
571
+ "stateMutability": "view"
572
+ },
573
+ {
574
+ "type": "function",
575
+ "name": "getCurrentBlockTimestamp",
576
+ "inputs": [],
577
+ "outputs": [
578
+ {
579
+ "name": "",
580
+ "type": "uint256",
581
+ "internalType": "uint256"
582
+ }
583
+ ],
584
+ "stateMutability": "view"
585
+ },
586
+ {
587
+ "type": "function",
588
+ "name": "getEthBalance",
589
+ "inputs": [
590
+ {
591
+ "name": "addr",
592
+ "type": "address",
593
+ "internalType": "address"
594
+ }
595
+ ],
596
+ "outputs": [
597
+ {
598
+ "name": "",
599
+ "type": "uint256",
600
+ "internalType": "uint256"
601
+ }
602
+ ],
603
+ "stateMutability": "view"
604
+ },
605
+ {
606
+ "type": "function",
607
+ "name": "getLastBlockHash",
608
+ "inputs": [],
609
+ "outputs": [
610
+ {
611
+ "name": "",
612
+ "type": "bytes32",
613
+ "internalType": "bytes32"
614
+ }
615
+ ],
616
+ "stateMutability": "view"
617
+ },
618
+ {
619
+ "type": "function",
620
+ "name": "tryBlockAndAggregate",
621
+ "inputs": [
622
+ {
623
+ "name": "calls",
624
+ "type": "tuple[]",
625
+ "internalType": "struct Multicall3.Call[]",
626
+ "components": [
627
+ {
628
+ "name": "target",
629
+ "type": "address",
630
+ "internalType": "address"
631
+ },
632
+ {
633
+ "name": "callData",
634
+ "type": "bytes",
635
+ "internalType": "bytes"
636
+ }
637
+ ]
638
+ }
639
+ ],
640
+ "outputs": [
641
+ {
642
+ "name": "blockNumber",
643
+ "type": "uint256",
644
+ "internalType": "uint256"
645
+ },
646
+ {
647
+ "name": "blockHash",
648
+ "type": "bytes32",
649
+ "internalType": "bytes32"
650
+ },
651
+ {
652
+ "name": "returnData",
653
+ "type": "tuple[]",
654
+ "internalType": "struct Multicall3.Result[]",
655
+ "components": [
656
+ {
657
+ "name": "success",
658
+ "type": "bool",
659
+ "internalType": "bool"
660
+ },
661
+ {
662
+ "name": "returnData",
663
+ "type": "bytes",
664
+ "internalType": "bytes"
665
+ }
666
+ ]
667
+ }
668
+ ],
669
+ "stateMutability": "payable"
670
+ }
671
+ ],
672
+ address: {
673
+ 7119: "0xFd4b34b5763f54a580a0d9f7997A2A993ef9ceE9",
674
+ 7120: "0x7900826De548425c6BE56caEbD4760AB0155Cd54"
675
+ }
676
+ };
677
+ var Multicall3_ABI = Multicall3.abi;
678
+ var SentrixSafe = {
679
+ abi: [
680
+ {
681
+ "type": "constructor",
682
+ "inputs": [
683
+ {
684
+ "name": "_owners",
685
+ "type": "address[]",
686
+ "internalType": "address[]"
687
+ },
688
+ {
689
+ "name": "_threshold",
690
+ "type": "uint256",
691
+ "internalType": "uint256"
692
+ }
693
+ ],
694
+ "stateMutability": "nonpayable"
695
+ },
696
+ {
697
+ "type": "receive",
698
+ "stateMutability": "payable"
699
+ },
700
+ {
701
+ "type": "function",
702
+ "name": "DOMAIN_SEPARATOR",
703
+ "inputs": [],
704
+ "outputs": [
705
+ {
706
+ "name": "",
707
+ "type": "bytes32",
708
+ "internalType": "bytes32"
709
+ }
710
+ ],
711
+ "stateMutability": "view"
712
+ },
713
+ {
714
+ "type": "function",
715
+ "name": "addOwner",
716
+ "inputs": [
717
+ {
718
+ "name": "owner",
719
+ "type": "address",
720
+ "internalType": "address"
721
+ },
722
+ {
723
+ "name": "_threshold",
724
+ "type": "uint256",
725
+ "internalType": "uint256"
726
+ }
727
+ ],
728
+ "outputs": [],
729
+ "stateMutability": "nonpayable"
730
+ },
731
+ {
732
+ "type": "function",
733
+ "name": "checkSignatures",
734
+ "inputs": [
735
+ {
736
+ "name": "dataHash",
737
+ "type": "bytes32",
738
+ "internalType": "bytes32"
739
+ },
740
+ {
741
+ "name": "signatures",
742
+ "type": "bytes",
743
+ "internalType": "bytes"
744
+ }
745
+ ],
746
+ "outputs": [],
747
+ "stateMutability": "view"
748
+ },
749
+ {
750
+ "type": "function",
751
+ "name": "execTransaction",
752
+ "inputs": [
753
+ {
754
+ "name": "to",
755
+ "type": "address",
756
+ "internalType": "address"
757
+ },
758
+ {
759
+ "name": "value",
760
+ "type": "uint256",
761
+ "internalType": "uint256"
762
+ },
763
+ {
764
+ "name": "data",
765
+ "type": "bytes",
766
+ "internalType": "bytes"
767
+ },
768
+ {
769
+ "name": "operation",
770
+ "type": "uint256",
771
+ "internalType": "uint256"
772
+ },
773
+ {
774
+ "name": "signatures",
775
+ "type": "bytes",
776
+ "internalType": "bytes"
777
+ }
778
+ ],
779
+ "outputs": [
780
+ {
781
+ "name": "success",
782
+ "type": "bool",
783
+ "internalType": "bool"
784
+ }
785
+ ],
786
+ "stateMutability": "nonpayable"
787
+ },
788
+ {
789
+ "type": "function",
790
+ "name": "getOwners",
791
+ "inputs": [],
792
+ "outputs": [
793
+ {
794
+ "name": "",
795
+ "type": "address[]",
796
+ "internalType": "address[]"
797
+ }
798
+ ],
799
+ "stateMutability": "view"
800
+ },
801
+ {
802
+ "type": "function",
803
+ "name": "getTransactionHash",
804
+ "inputs": [
805
+ {
806
+ "name": "to",
807
+ "type": "address",
808
+ "internalType": "address"
809
+ },
810
+ {
811
+ "name": "value",
812
+ "type": "uint256",
813
+ "internalType": "uint256"
814
+ },
815
+ {
816
+ "name": "data",
817
+ "type": "bytes",
818
+ "internalType": "bytes"
819
+ },
820
+ {
821
+ "name": "operation",
822
+ "type": "uint256",
823
+ "internalType": "uint256"
824
+ },
825
+ {
826
+ "name": "_nonce",
827
+ "type": "uint256",
828
+ "internalType": "uint256"
829
+ }
830
+ ],
831
+ "outputs": [
832
+ {
833
+ "name": "",
834
+ "type": "bytes32",
835
+ "internalType": "bytes32"
836
+ }
837
+ ],
838
+ "stateMutability": "view"
839
+ },
840
+ {
841
+ "type": "function",
842
+ "name": "isOwner",
843
+ "inputs": [
844
+ {
845
+ "name": "",
846
+ "type": "address",
847
+ "internalType": "address"
848
+ }
849
+ ],
850
+ "outputs": [
851
+ {
852
+ "name": "",
853
+ "type": "bool",
854
+ "internalType": "bool"
855
+ }
856
+ ],
857
+ "stateMutability": "view"
858
+ },
859
+ {
860
+ "type": "function",
861
+ "name": "nonce",
862
+ "inputs": [],
863
+ "outputs": [
864
+ {
865
+ "name": "",
866
+ "type": "uint256",
867
+ "internalType": "uint256"
868
+ }
869
+ ],
870
+ "stateMutability": "view"
871
+ },
872
+ {
873
+ "type": "function",
874
+ "name": "owners",
875
+ "inputs": [
876
+ {
877
+ "name": "",
878
+ "type": "uint256",
879
+ "internalType": "uint256"
880
+ }
881
+ ],
882
+ "outputs": [
883
+ {
884
+ "name": "",
885
+ "type": "address",
886
+ "internalType": "address"
887
+ }
888
+ ],
889
+ "stateMutability": "view"
890
+ },
891
+ {
892
+ "type": "function",
893
+ "name": "removeOwner",
894
+ "inputs": [
895
+ {
896
+ "name": "owner",
897
+ "type": "address",
898
+ "internalType": "address"
899
+ },
900
+ {
901
+ "name": "_threshold",
902
+ "type": "uint256",
903
+ "internalType": "uint256"
904
+ }
905
+ ],
906
+ "outputs": [],
907
+ "stateMutability": "nonpayable"
908
+ },
909
+ {
910
+ "type": "function",
911
+ "name": "threshold",
912
+ "inputs": [],
913
+ "outputs": [
914
+ {
915
+ "name": "",
916
+ "type": "uint256",
917
+ "internalType": "uint256"
918
+ }
919
+ ],
920
+ "stateMutability": "view"
921
+ },
922
+ {
923
+ "type": "event",
924
+ "name": "AddedOwner",
925
+ "inputs": [
926
+ {
927
+ "name": "owner",
928
+ "type": "address",
929
+ "indexed": true,
930
+ "internalType": "address"
931
+ }
932
+ ],
933
+ "anonymous": false
934
+ },
935
+ {
936
+ "type": "event",
937
+ "name": "ChangedThreshold",
938
+ "inputs": [
939
+ {
940
+ "name": "threshold",
941
+ "type": "uint256",
942
+ "indexed": false,
943
+ "internalType": "uint256"
944
+ }
945
+ ],
946
+ "anonymous": false
947
+ },
948
+ {
949
+ "type": "event",
950
+ "name": "ExecutionFailure",
951
+ "inputs": [
952
+ {
953
+ "name": "txHash",
954
+ "type": "bytes32",
955
+ "indexed": true,
956
+ "internalType": "bytes32"
957
+ },
958
+ {
959
+ "name": "nonce",
960
+ "type": "uint256",
961
+ "indexed": false,
962
+ "internalType": "uint256"
963
+ }
964
+ ],
965
+ "anonymous": false
966
+ },
967
+ {
968
+ "type": "event",
969
+ "name": "ExecutionSuccess",
970
+ "inputs": [
971
+ {
972
+ "name": "txHash",
973
+ "type": "bytes32",
974
+ "indexed": true,
975
+ "internalType": "bytes32"
976
+ },
977
+ {
978
+ "name": "nonce",
979
+ "type": "uint256",
980
+ "indexed": false,
981
+ "internalType": "uint256"
982
+ }
983
+ ],
984
+ "anonymous": false
985
+ },
986
+ {
987
+ "type": "event",
988
+ "name": "RemovedOwner",
989
+ "inputs": [
990
+ {
991
+ "name": "owner",
992
+ "type": "address",
993
+ "indexed": true,
994
+ "internalType": "address"
995
+ }
996
+ ],
997
+ "anonymous": false
998
+ }
999
+ ],
1000
+ address: {
1001
+ 7119: "0x6272dC0C842F05542f9fF7B5443E93C0642a3b26",
1002
+ 7120: "0xc9D7a61D7C2F428F6A055916488041fD00532110"
1003
+ }
1004
+ };
1005
+ var SentrixSafe_ABI = SentrixSafe.abi;
1006
+ var TokenFactory = {
1007
+ abi: [
1008
+ {
1009
+ "type": "function",
1010
+ "name": "deployToken",
1011
+ "inputs": [
1012
+ {
1013
+ "name": "name",
1014
+ "type": "string",
1015
+ "internalType": "string"
1016
+ },
1017
+ {
1018
+ "name": "symbol",
1019
+ "type": "string",
1020
+ "internalType": "string"
1021
+ },
1022
+ {
1023
+ "name": "initialSupply",
1024
+ "type": "uint256",
1025
+ "internalType": "uint256"
1026
+ }
1027
+ ],
1028
+ "outputs": [
1029
+ {
1030
+ "name": "token",
1031
+ "type": "address",
1032
+ "internalType": "address"
1033
+ }
1034
+ ],
1035
+ "stateMutability": "nonpayable"
1036
+ },
1037
+ {
1038
+ "type": "function",
1039
+ "name": "deployedTokens",
1040
+ "inputs": [
1041
+ {
1042
+ "name": "",
1043
+ "type": "address",
1044
+ "internalType": "address"
1045
+ },
1046
+ {
1047
+ "name": "",
1048
+ "type": "uint256",
1049
+ "internalType": "uint256"
1050
+ }
1051
+ ],
1052
+ "outputs": [
1053
+ {
1054
+ "name": "",
1055
+ "type": "address",
1056
+ "internalType": "address"
1057
+ }
1058
+ ],
1059
+ "stateMutability": "view"
1060
+ },
1061
+ {
1062
+ "type": "function",
1063
+ "name": "tokenCount",
1064
+ "inputs": [
1065
+ {
1066
+ "name": "owner",
1067
+ "type": "address",
1068
+ "internalType": "address"
1069
+ }
1070
+ ],
1071
+ "outputs": [
1072
+ {
1073
+ "name": "",
1074
+ "type": "uint256",
1075
+ "internalType": "uint256"
1076
+ }
1077
+ ],
1078
+ "stateMutability": "view"
1079
+ },
1080
+ {
1081
+ "type": "function",
1082
+ "name": "tokensOf",
1083
+ "inputs": [
1084
+ {
1085
+ "name": "owner",
1086
+ "type": "address",
1087
+ "internalType": "address"
1088
+ }
1089
+ ],
1090
+ "outputs": [
1091
+ {
1092
+ "name": "",
1093
+ "type": "address[]",
1094
+ "internalType": "address[]"
1095
+ }
1096
+ ],
1097
+ "stateMutability": "view"
1098
+ },
1099
+ {
1100
+ "type": "event",
1101
+ "name": "TokenDeployed",
1102
+ "inputs": [
1103
+ {
1104
+ "name": "token",
1105
+ "type": "address",
1106
+ "indexed": true,
1107
+ "internalType": "address"
1108
+ },
1109
+ {
1110
+ "name": "owner",
1111
+ "type": "address",
1112
+ "indexed": true,
1113
+ "internalType": "address"
1114
+ },
1115
+ {
1116
+ "name": "name",
1117
+ "type": "string",
1118
+ "indexed": false,
1119
+ "internalType": "string"
1120
+ },
1121
+ {
1122
+ "name": "symbol",
1123
+ "type": "string",
1124
+ "indexed": false,
1125
+ "internalType": "string"
1126
+ },
1127
+ {
1128
+ "name": "initialSupply",
1129
+ "type": "uint256",
1130
+ "indexed": false,
1131
+ "internalType": "uint256"
1132
+ }
1133
+ ],
1134
+ "anonymous": false
1135
+ }
1136
+ ],
1137
+ address: {
1138
+ 7119: "0xc753199b723649ab92c6db8A45F158921CFDEe49",
1139
+ 7120: "0x7A2992af0d4979aDD076347666023d66d29276Fc"
1140
+ }
1141
+ };
1142
+ var TokenFactory_ABI = TokenFactory.abi;
1143
+ var FactoryToken = {
1144
+ abi: [
1145
+ {
1146
+ "type": "constructor",
1147
+ "inputs": [
1148
+ {
1149
+ "name": "_name",
1150
+ "type": "string",
1151
+ "internalType": "string"
1152
+ },
1153
+ {
1154
+ "name": "_symbol",
1155
+ "type": "string",
1156
+ "internalType": "string"
1157
+ },
1158
+ {
1159
+ "name": "_initialSupply",
1160
+ "type": "uint256",
1161
+ "internalType": "uint256"
1162
+ },
1163
+ {
1164
+ "name": "_owner",
1165
+ "type": "address",
1166
+ "internalType": "address"
1167
+ }
1168
+ ],
1169
+ "stateMutability": "nonpayable"
1170
+ },
1171
+ {
1172
+ "type": "function",
1173
+ "name": "allowance",
1174
+ "inputs": [
1175
+ {
1176
+ "name": "",
1177
+ "type": "address",
1178
+ "internalType": "address"
1179
+ },
1180
+ {
1181
+ "name": "",
1182
+ "type": "address",
1183
+ "internalType": "address"
1184
+ }
1185
+ ],
1186
+ "outputs": [
1187
+ {
1188
+ "name": "",
1189
+ "type": "uint256",
1190
+ "internalType": "uint256"
1191
+ }
1192
+ ],
1193
+ "stateMutability": "view"
1194
+ },
1195
+ {
1196
+ "type": "function",
1197
+ "name": "approve",
1198
+ "inputs": [
1199
+ {
1200
+ "name": "spender",
1201
+ "type": "address",
1202
+ "internalType": "address"
1203
+ },
1204
+ {
1205
+ "name": "amount",
1206
+ "type": "uint256",
1207
+ "internalType": "uint256"
1208
+ }
1209
+ ],
1210
+ "outputs": [
1211
+ {
1212
+ "name": "",
1213
+ "type": "bool",
1214
+ "internalType": "bool"
1215
+ }
1216
+ ],
1217
+ "stateMutability": "nonpayable"
1218
+ },
1219
+ {
1220
+ "type": "function",
1221
+ "name": "balanceOf",
1222
+ "inputs": [
1223
+ {
1224
+ "name": "",
1225
+ "type": "address",
1226
+ "internalType": "address"
1227
+ }
1228
+ ],
1229
+ "outputs": [
1230
+ {
1231
+ "name": "",
1232
+ "type": "uint256",
1233
+ "internalType": "uint256"
1234
+ }
1235
+ ],
1236
+ "stateMutability": "view"
1237
+ },
1238
+ {
1239
+ "type": "function",
1240
+ "name": "decimals",
1241
+ "inputs": [],
1242
+ "outputs": [
1243
+ {
1244
+ "name": "",
1245
+ "type": "uint8",
1246
+ "internalType": "uint8"
1247
+ }
1248
+ ],
1249
+ "stateMutability": "view"
1250
+ },
1251
+ {
1252
+ "type": "function",
1253
+ "name": "name",
1254
+ "inputs": [],
1255
+ "outputs": [
1256
+ {
1257
+ "name": "",
1258
+ "type": "string",
1259
+ "internalType": "string"
1260
+ }
1261
+ ],
1262
+ "stateMutability": "view"
1263
+ },
1264
+ {
1265
+ "type": "function",
1266
+ "name": "symbol",
1267
+ "inputs": [],
1268
+ "outputs": [
1269
+ {
1270
+ "name": "",
1271
+ "type": "string",
1272
+ "internalType": "string"
1273
+ }
1274
+ ],
1275
+ "stateMutability": "view"
1276
+ },
1277
+ {
1278
+ "type": "function",
1279
+ "name": "totalSupply",
1280
+ "inputs": [],
1281
+ "outputs": [
1282
+ {
1283
+ "name": "",
1284
+ "type": "uint256",
1285
+ "internalType": "uint256"
1286
+ }
1287
+ ],
1288
+ "stateMutability": "view"
1289
+ },
1290
+ {
1291
+ "type": "function",
1292
+ "name": "transfer",
1293
+ "inputs": [
1294
+ {
1295
+ "name": "to",
1296
+ "type": "address",
1297
+ "internalType": "address"
1298
+ },
1299
+ {
1300
+ "name": "amount",
1301
+ "type": "uint256",
1302
+ "internalType": "uint256"
1303
+ }
1304
+ ],
1305
+ "outputs": [
1306
+ {
1307
+ "name": "",
1308
+ "type": "bool",
1309
+ "internalType": "bool"
1310
+ }
1311
+ ],
1312
+ "stateMutability": "nonpayable"
1313
+ },
1314
+ {
1315
+ "type": "function",
1316
+ "name": "transferFrom",
1317
+ "inputs": [
1318
+ {
1319
+ "name": "from",
1320
+ "type": "address",
1321
+ "internalType": "address"
1322
+ },
1323
+ {
1324
+ "name": "to",
1325
+ "type": "address",
1326
+ "internalType": "address"
1327
+ },
1328
+ {
1329
+ "name": "amount",
1330
+ "type": "uint256",
1331
+ "internalType": "uint256"
1332
+ }
1333
+ ],
1334
+ "outputs": [
1335
+ {
1336
+ "name": "",
1337
+ "type": "bool",
1338
+ "internalType": "bool"
1339
+ }
1340
+ ],
1341
+ "stateMutability": "nonpayable"
1342
+ },
1343
+ {
1344
+ "type": "event",
1345
+ "name": "Approval",
1346
+ "inputs": [
1347
+ {
1348
+ "name": "owner",
1349
+ "type": "address",
1350
+ "indexed": true,
1351
+ "internalType": "address"
1352
+ },
1353
+ {
1354
+ "name": "spender",
1355
+ "type": "address",
1356
+ "indexed": true,
1357
+ "internalType": "address"
1358
+ },
1359
+ {
1360
+ "name": "value",
1361
+ "type": "uint256",
1362
+ "indexed": false,
1363
+ "internalType": "uint256"
1364
+ }
1365
+ ],
1366
+ "anonymous": false
1367
+ },
1368
+ {
1369
+ "type": "event",
1370
+ "name": "Transfer",
1371
+ "inputs": [
1372
+ {
1373
+ "name": "from",
1374
+ "type": "address",
1375
+ "indexed": true,
1376
+ "internalType": "address"
1377
+ },
1378
+ {
1379
+ "name": "to",
1380
+ "type": "address",
1381
+ "indexed": true,
1382
+ "internalType": "address"
1383
+ },
1384
+ {
1385
+ "name": "value",
1386
+ "type": "uint256",
1387
+ "indexed": false,
1388
+ "internalType": "uint256"
1389
+ }
1390
+ ],
1391
+ "anonymous": false
1392
+ }
1393
+ ],
1394
+ address: {}
1395
+ };
1396
+ var FactoryToken_ABI = FactoryToken.abi;
1397
+ var CONTRACTS = {
1398
+ WSRX,
1399
+ Multicall3,
1400
+ SentrixSafe,
1401
+ TokenFactory,
1402
+ FactoryToken
1403
+ };
1404
+ var CHAIN_IDS = [7119, 7120];
1405
+ function getAddress(contract, chainId) {
1406
+ const a = CONTRACTS[contract].address[chainId];
1407
+ if (!a) {
1408
+ throw new Error(
1409
+ `@sentrix-labs/canonical-contracts: ${contract} has no deployment on chain ${chainId}`
1410
+ );
1411
+ }
1412
+ return a;
1413
+ }
1414
+
1415
+ exports.CHAIN_IDS = CHAIN_IDS;
1416
+ exports.CONTRACTS = CONTRACTS;
1417
+ exports.FactoryToken = FactoryToken;
1418
+ exports.FactoryToken_ABI = FactoryToken_ABI;
1419
+ exports.Multicall3 = Multicall3;
1420
+ exports.Multicall3_ABI = Multicall3_ABI;
1421
+ exports.SentrixSafe = SentrixSafe;
1422
+ exports.SentrixSafe_ABI = SentrixSafe_ABI;
1423
+ exports.TokenFactory = TokenFactory;
1424
+ exports.TokenFactory_ABI = TokenFactory_ABI;
1425
+ exports.WSRX = WSRX;
1426
+ exports.WSRX_ABI = WSRX_ABI;
1427
+ exports.getAddress = getAddress;
1428
+ //# sourceMappingURL=index.cjs.map
1429
+ //# sourceMappingURL=index.cjs.map