@merkl/contracts 0.13.8 → 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,856 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import { Contract, utils } from "ethers";
5
+ const _abi = [
6
+ {
7
+ inputs: [
8
+ {
9
+ internalType: "address",
10
+ name: "owner_",
11
+ type: "address",
12
+ },
13
+ {
14
+ internalType: "address",
15
+ name: "manager_",
16
+ type: "address",
17
+ },
18
+ {
19
+ internalType: "address",
20
+ name: "moduleRegistryPublic_",
21
+ type: "address",
22
+ },
23
+ {
24
+ internalType: "address",
25
+ name: "moduleRegistryPrivate_",
26
+ type: "address",
27
+ },
28
+ {
29
+ internalType: "address",
30
+ name: "creationCodePublicVault_",
31
+ type: "address",
32
+ },
33
+ {
34
+ internalType: "address",
35
+ name: "creationCodePrivateVault_",
36
+ type: "address",
37
+ },
38
+ ],
39
+ stateMutability: "nonpayable",
40
+ type: "constructor",
41
+ },
42
+ {
43
+ inputs: [],
44
+ name: "AddressZero",
45
+ type: "error",
46
+ },
47
+ {
48
+ inputs: [],
49
+ name: "AlreadyInitialized",
50
+ type: "error",
51
+ },
52
+ {
53
+ inputs: [
54
+ {
55
+ internalType: "address",
56
+ name: "deployer",
57
+ type: "address",
58
+ },
59
+ ],
60
+ name: "AlreadyWhitelistedDeployer",
61
+ type: "error",
62
+ },
63
+ {
64
+ inputs: [],
65
+ name: "CallFailed",
66
+ type: "error",
67
+ },
68
+ {
69
+ inputs: [
70
+ {
71
+ internalType: "uint256",
72
+ name: "endIndex",
73
+ type: "uint256",
74
+ },
75
+ {
76
+ internalType: "uint256",
77
+ name: "numberOfVaults",
78
+ type: "uint256",
79
+ },
80
+ ],
81
+ name: "EndIndexGtNbOfVaults",
82
+ type: "error",
83
+ },
84
+ {
85
+ inputs: [],
86
+ name: "ErrorCreatingContract",
87
+ type: "error",
88
+ },
89
+ {
90
+ inputs: [],
91
+ name: "ErrorCreatingProxy",
92
+ type: "error",
93
+ },
94
+ {
95
+ inputs: [],
96
+ name: "NewOwnerIsZeroAddress",
97
+ type: "error",
98
+ },
99
+ {
100
+ inputs: [],
101
+ name: "NoHandoverRequest",
102
+ type: "error",
103
+ },
104
+ {
105
+ inputs: [],
106
+ name: "NotADeployer",
107
+ type: "error",
108
+ },
109
+ {
110
+ inputs: [
111
+ {
112
+ internalType: "address",
113
+ name: "deployer",
114
+ type: "address",
115
+ },
116
+ ],
117
+ name: "NotAlreadyADeployer",
118
+ type: "error",
119
+ },
120
+ {
121
+ inputs: [],
122
+ name: "SameManager",
123
+ type: "error",
124
+ },
125
+ {
126
+ inputs: [
127
+ {
128
+ internalType: "uint256",
129
+ name: "startIndex",
130
+ type: "uint256",
131
+ },
132
+ {
133
+ internalType: "uint256",
134
+ name: "endIndex",
135
+ type: "uint256",
136
+ },
137
+ ],
138
+ name: "StartIndexLtEndIndex",
139
+ type: "error",
140
+ },
141
+ {
142
+ inputs: [],
143
+ name: "TargetAlreadyExists",
144
+ type: "error",
145
+ },
146
+ {
147
+ inputs: [],
148
+ name: "Unauthorized",
149
+ type: "error",
150
+ },
151
+ {
152
+ inputs: [],
153
+ name: "VaultNotManaged",
154
+ type: "error",
155
+ },
156
+ {
157
+ anonymous: false,
158
+ inputs: [
159
+ {
160
+ indexed: false,
161
+ internalType: "address[]",
162
+ name: "deployers",
163
+ type: "address[]",
164
+ },
165
+ ],
166
+ name: "LogBlacklistDeployers",
167
+ type: "event",
168
+ },
169
+ {
170
+ anonymous: false,
171
+ inputs: [
172
+ {
173
+ indexed: true,
174
+ internalType: "address",
175
+ name: "creator",
176
+ type: "address",
177
+ },
178
+ {
179
+ indexed: false,
180
+ internalType: "bytes32",
181
+ name: "salt",
182
+ type: "bytes32",
183
+ },
184
+ {
185
+ indexed: false,
186
+ internalType: "address",
187
+ name: "token0",
188
+ type: "address",
189
+ },
190
+ {
191
+ indexed: false,
192
+ internalType: "address",
193
+ name: "token1",
194
+ type: "address",
195
+ },
196
+ {
197
+ indexed: false,
198
+ internalType: "address",
199
+ name: "owner",
200
+ type: "address",
201
+ },
202
+ {
203
+ indexed: false,
204
+ internalType: "address",
205
+ name: "module",
206
+ type: "address",
207
+ },
208
+ {
209
+ indexed: false,
210
+ internalType: "address",
211
+ name: "privateVault",
212
+ type: "address",
213
+ },
214
+ ],
215
+ name: "LogPrivateVaultCreation",
216
+ type: "event",
217
+ },
218
+ {
219
+ anonymous: false,
220
+ inputs: [
221
+ {
222
+ indexed: true,
223
+ internalType: "address",
224
+ name: "creator",
225
+ type: "address",
226
+ },
227
+ {
228
+ indexed: false,
229
+ internalType: "bytes32",
230
+ name: "salt",
231
+ type: "bytes32",
232
+ },
233
+ {
234
+ indexed: false,
235
+ internalType: "address",
236
+ name: "token0",
237
+ type: "address",
238
+ },
239
+ {
240
+ indexed: false,
241
+ internalType: "address",
242
+ name: "token1",
243
+ type: "address",
244
+ },
245
+ {
246
+ indexed: false,
247
+ internalType: "address",
248
+ name: "owner",
249
+ type: "address",
250
+ },
251
+ {
252
+ indexed: false,
253
+ internalType: "address",
254
+ name: "module",
255
+ type: "address",
256
+ },
257
+ {
258
+ indexed: false,
259
+ internalType: "address",
260
+ name: "publicVault",
261
+ type: "address",
262
+ },
263
+ {
264
+ indexed: false,
265
+ internalType: "address",
266
+ name: "timeLock",
267
+ type: "address",
268
+ },
269
+ ],
270
+ name: "LogPublicVaultCreation",
271
+ type: "event",
272
+ },
273
+ {
274
+ anonymous: false,
275
+ inputs: [
276
+ {
277
+ indexed: false,
278
+ internalType: "address",
279
+ name: "oldManager",
280
+ type: "address",
281
+ },
282
+ {
283
+ indexed: false,
284
+ internalType: "address",
285
+ name: "newManager",
286
+ type: "address",
287
+ },
288
+ ],
289
+ name: "LogSetManager",
290
+ type: "event",
291
+ },
292
+ {
293
+ anonymous: false,
294
+ inputs: [
295
+ {
296
+ indexed: false,
297
+ internalType: "address[]",
298
+ name: "deployers",
299
+ type: "address[]",
300
+ },
301
+ ],
302
+ name: "LogWhitelistDeployers",
303
+ type: "event",
304
+ },
305
+ {
306
+ anonymous: false,
307
+ inputs: [
308
+ {
309
+ indexed: true,
310
+ internalType: "address",
311
+ name: "pendingOwner",
312
+ type: "address",
313
+ },
314
+ ],
315
+ name: "OwnershipHandoverCanceled",
316
+ type: "event",
317
+ },
318
+ {
319
+ anonymous: false,
320
+ inputs: [
321
+ {
322
+ indexed: true,
323
+ internalType: "address",
324
+ name: "pendingOwner",
325
+ type: "address",
326
+ },
327
+ ],
328
+ name: "OwnershipHandoverRequested",
329
+ type: "event",
330
+ },
331
+ {
332
+ anonymous: false,
333
+ inputs: [
334
+ {
335
+ indexed: true,
336
+ internalType: "address",
337
+ name: "oldOwner",
338
+ type: "address",
339
+ },
340
+ {
341
+ indexed: true,
342
+ internalType: "address",
343
+ name: "newOwner",
344
+ type: "address",
345
+ },
346
+ ],
347
+ name: "OwnershipTransferred",
348
+ type: "event",
349
+ },
350
+ {
351
+ anonymous: false,
352
+ inputs: [
353
+ {
354
+ indexed: false,
355
+ internalType: "address",
356
+ name: "account",
357
+ type: "address",
358
+ },
359
+ ],
360
+ name: "Paused",
361
+ type: "event",
362
+ },
363
+ {
364
+ anonymous: false,
365
+ inputs: [
366
+ {
367
+ indexed: false,
368
+ internalType: "address",
369
+ name: "account",
370
+ type: "address",
371
+ },
372
+ ],
373
+ name: "Unpaused",
374
+ type: "event",
375
+ },
376
+ {
377
+ inputs: [
378
+ {
379
+ internalType: "address[]",
380
+ name: "deployers_",
381
+ type: "address[]",
382
+ },
383
+ ],
384
+ name: "blacklistDeployer",
385
+ outputs: [],
386
+ stateMutability: "nonpayable",
387
+ type: "function",
388
+ },
389
+ {
390
+ inputs: [],
391
+ name: "cancelOwnershipHandover",
392
+ outputs: [],
393
+ stateMutability: "payable",
394
+ type: "function",
395
+ },
396
+ {
397
+ inputs: [
398
+ {
399
+ internalType: "address",
400
+ name: "pendingOwner",
401
+ type: "address",
402
+ },
403
+ ],
404
+ name: "completeOwnershipHandover",
405
+ outputs: [],
406
+ stateMutability: "payable",
407
+ type: "function",
408
+ },
409
+ {
410
+ inputs: [],
411
+ name: "creationCodePrivateVault",
412
+ outputs: [
413
+ {
414
+ internalType: "address",
415
+ name: "",
416
+ type: "address",
417
+ },
418
+ ],
419
+ stateMutability: "view",
420
+ type: "function",
421
+ },
422
+ {
423
+ inputs: [],
424
+ name: "creationCodePublicVault",
425
+ outputs: [
426
+ {
427
+ internalType: "address",
428
+ name: "",
429
+ type: "address",
430
+ },
431
+ ],
432
+ stateMutability: "view",
433
+ type: "function",
434
+ },
435
+ {
436
+ inputs: [
437
+ {
438
+ internalType: "bytes32",
439
+ name: "salt_",
440
+ type: "bytes32",
441
+ },
442
+ {
443
+ internalType: "address",
444
+ name: "token0_",
445
+ type: "address",
446
+ },
447
+ {
448
+ internalType: "address",
449
+ name: "token1_",
450
+ type: "address",
451
+ },
452
+ {
453
+ internalType: "address",
454
+ name: "owner_",
455
+ type: "address",
456
+ },
457
+ {
458
+ internalType: "address",
459
+ name: "beacon_",
460
+ type: "address",
461
+ },
462
+ {
463
+ internalType: "bytes",
464
+ name: "moduleCreationPayload_",
465
+ type: "bytes",
466
+ },
467
+ {
468
+ internalType: "bytes",
469
+ name: "initManagementPayload_",
470
+ type: "bytes",
471
+ },
472
+ ],
473
+ name: "deployPrivateVault",
474
+ outputs: [
475
+ {
476
+ internalType: "address",
477
+ name: "vault",
478
+ type: "address",
479
+ },
480
+ ],
481
+ stateMutability: "nonpayable",
482
+ type: "function",
483
+ },
484
+ {
485
+ inputs: [
486
+ {
487
+ internalType: "bytes32",
488
+ name: "salt_",
489
+ type: "bytes32",
490
+ },
491
+ {
492
+ internalType: "address",
493
+ name: "token0_",
494
+ type: "address",
495
+ },
496
+ {
497
+ internalType: "address",
498
+ name: "token1_",
499
+ type: "address",
500
+ },
501
+ {
502
+ internalType: "address",
503
+ name: "owner_",
504
+ type: "address",
505
+ },
506
+ {
507
+ internalType: "address",
508
+ name: "beacon_",
509
+ type: "address",
510
+ },
511
+ {
512
+ internalType: "bytes",
513
+ name: "moduleCreationPayload_",
514
+ type: "bytes",
515
+ },
516
+ {
517
+ internalType: "bytes",
518
+ name: "initManagementPayload_",
519
+ type: "bytes",
520
+ },
521
+ ],
522
+ name: "deployPublicVault",
523
+ outputs: [
524
+ {
525
+ internalType: "address",
526
+ name: "vault",
527
+ type: "address",
528
+ },
529
+ ],
530
+ stateMutability: "nonpayable",
531
+ type: "function",
532
+ },
533
+ {
534
+ inputs: [],
535
+ name: "deployers",
536
+ outputs: [
537
+ {
538
+ internalType: "address[]",
539
+ name: "",
540
+ type: "address[]",
541
+ },
542
+ ],
543
+ stateMutability: "view",
544
+ type: "function",
545
+ },
546
+ {
547
+ inputs: [
548
+ {
549
+ internalType: "address",
550
+ name: "token0_",
551
+ type: "address",
552
+ },
553
+ {
554
+ internalType: "address",
555
+ name: "token1_",
556
+ type: "address",
557
+ },
558
+ ],
559
+ name: "getTokenName",
560
+ outputs: [
561
+ {
562
+ internalType: "string",
563
+ name: "",
564
+ type: "string",
565
+ },
566
+ ],
567
+ stateMutability: "view",
568
+ type: "function",
569
+ },
570
+ {
571
+ inputs: [
572
+ {
573
+ internalType: "address",
574
+ name: "vault_",
575
+ type: "address",
576
+ },
577
+ ],
578
+ name: "isPrivateVault",
579
+ outputs: [
580
+ {
581
+ internalType: "bool",
582
+ name: "",
583
+ type: "bool",
584
+ },
585
+ ],
586
+ stateMutability: "view",
587
+ type: "function",
588
+ },
589
+ {
590
+ inputs: [
591
+ {
592
+ internalType: "address",
593
+ name: "vault_",
594
+ type: "address",
595
+ },
596
+ ],
597
+ name: "isPublicVault",
598
+ outputs: [
599
+ {
600
+ internalType: "bool",
601
+ name: "",
602
+ type: "bool",
603
+ },
604
+ ],
605
+ stateMutability: "view",
606
+ type: "function",
607
+ },
608
+ {
609
+ inputs: [],
610
+ name: "manager",
611
+ outputs: [
612
+ {
613
+ internalType: "address",
614
+ name: "",
615
+ type: "address",
616
+ },
617
+ ],
618
+ stateMutability: "view",
619
+ type: "function",
620
+ },
621
+ {
622
+ inputs: [],
623
+ name: "moduleRegistryPrivate",
624
+ outputs: [
625
+ {
626
+ internalType: "address",
627
+ name: "",
628
+ type: "address",
629
+ },
630
+ ],
631
+ stateMutability: "view",
632
+ type: "function",
633
+ },
634
+ {
635
+ inputs: [],
636
+ name: "moduleRegistryPublic",
637
+ outputs: [
638
+ {
639
+ internalType: "address",
640
+ name: "",
641
+ type: "address",
642
+ },
643
+ ],
644
+ stateMutability: "view",
645
+ type: "function",
646
+ },
647
+ {
648
+ inputs: [],
649
+ name: "nft",
650
+ outputs: [
651
+ {
652
+ internalType: "contract PrivateVaultNFT",
653
+ name: "",
654
+ type: "address",
655
+ },
656
+ ],
657
+ stateMutability: "view",
658
+ type: "function",
659
+ },
660
+ {
661
+ inputs: [],
662
+ name: "numOfPrivateVaults",
663
+ outputs: [
664
+ {
665
+ internalType: "uint256",
666
+ name: "result",
667
+ type: "uint256",
668
+ },
669
+ ],
670
+ stateMutability: "view",
671
+ type: "function",
672
+ },
673
+ {
674
+ inputs: [],
675
+ name: "numOfPublicVaults",
676
+ outputs: [
677
+ {
678
+ internalType: "uint256",
679
+ name: "result",
680
+ type: "uint256",
681
+ },
682
+ ],
683
+ stateMutability: "view",
684
+ type: "function",
685
+ },
686
+ {
687
+ inputs: [],
688
+ name: "owner",
689
+ outputs: [
690
+ {
691
+ internalType: "address",
692
+ name: "result",
693
+ type: "address",
694
+ },
695
+ ],
696
+ stateMutability: "view",
697
+ type: "function",
698
+ },
699
+ {
700
+ inputs: [
701
+ {
702
+ internalType: "address",
703
+ name: "pendingOwner",
704
+ type: "address",
705
+ },
706
+ ],
707
+ name: "ownershipHandoverExpiresAt",
708
+ outputs: [
709
+ {
710
+ internalType: "uint256",
711
+ name: "result",
712
+ type: "uint256",
713
+ },
714
+ ],
715
+ stateMutability: "view",
716
+ type: "function",
717
+ },
718
+ {
719
+ inputs: [],
720
+ name: "pause",
721
+ outputs: [],
722
+ stateMutability: "nonpayable",
723
+ type: "function",
724
+ },
725
+ {
726
+ inputs: [],
727
+ name: "paused",
728
+ outputs: [
729
+ {
730
+ internalType: "bool",
731
+ name: "",
732
+ type: "bool",
733
+ },
734
+ ],
735
+ stateMutability: "view",
736
+ type: "function",
737
+ },
738
+ {
739
+ inputs: [
740
+ {
741
+ internalType: "uint256",
742
+ name: "startIndex_",
743
+ type: "uint256",
744
+ },
745
+ {
746
+ internalType: "uint256",
747
+ name: "endIndex_",
748
+ type: "uint256",
749
+ },
750
+ ],
751
+ name: "privateVaults",
752
+ outputs: [
753
+ {
754
+ internalType: "address[]",
755
+ name: "",
756
+ type: "address[]",
757
+ },
758
+ ],
759
+ stateMutability: "view",
760
+ type: "function",
761
+ },
762
+ {
763
+ inputs: [
764
+ {
765
+ internalType: "uint256",
766
+ name: "startIndex_",
767
+ type: "uint256",
768
+ },
769
+ {
770
+ internalType: "uint256",
771
+ name: "endIndex_",
772
+ type: "uint256",
773
+ },
774
+ ],
775
+ name: "publicVaults",
776
+ outputs: [
777
+ {
778
+ internalType: "address[]",
779
+ name: "",
780
+ type: "address[]",
781
+ },
782
+ ],
783
+ stateMutability: "view",
784
+ type: "function",
785
+ },
786
+ {
787
+ inputs: [],
788
+ name: "renounceOwnership",
789
+ outputs: [],
790
+ stateMutability: "payable",
791
+ type: "function",
792
+ },
793
+ {
794
+ inputs: [],
795
+ name: "requestOwnershipHandover",
796
+ outputs: [],
797
+ stateMutability: "payable",
798
+ type: "function",
799
+ },
800
+ {
801
+ inputs: [
802
+ {
803
+ internalType: "address",
804
+ name: "newManager_",
805
+ type: "address",
806
+ },
807
+ ],
808
+ name: "setManager",
809
+ outputs: [],
810
+ stateMutability: "nonpayable",
811
+ type: "function",
812
+ },
813
+ {
814
+ inputs: [
815
+ {
816
+ internalType: "address",
817
+ name: "newOwner",
818
+ type: "address",
819
+ },
820
+ ],
821
+ name: "transferOwnership",
822
+ outputs: [],
823
+ stateMutability: "payable",
824
+ type: "function",
825
+ },
826
+ {
827
+ inputs: [],
828
+ name: "unpause",
829
+ outputs: [],
830
+ stateMutability: "nonpayable",
831
+ type: "function",
832
+ },
833
+ {
834
+ inputs: [
835
+ {
836
+ internalType: "address[]",
837
+ name: "deployers_",
838
+ type: "address[]",
839
+ },
840
+ ],
841
+ name: "whitelistDeployer",
842
+ outputs: [],
843
+ stateMutability: "nonpayable",
844
+ type: "function",
845
+ },
846
+ ];
847
+ export class ArrakisMetaVaultFactory__factory {
848
+ static abi = _abi;
849
+ static createInterface() {
850
+ return new utils.Interface(_abi);
851
+ }
852
+ static connect(address, signerOrProvider) {
853
+ return new Contract(address, _abi, signerOrProvider);
854
+ }
855
+ }
856
+ //# sourceMappingURL=ArrakisMetaVaultFactory__factory.js.map