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