@merkl/contracts 0.3.4 → 0.4.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,819 @@
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
+ name: "AccessManaged_Restricted",
9
+ type: "error",
10
+ },
11
+ {
12
+ inputs: [],
13
+ name: "DeploymentFailed",
14
+ type: "error",
15
+ },
16
+ {
17
+ inputs: [],
18
+ name: "Factory_CannotUpdateFeeModule",
19
+ type: "error",
20
+ },
21
+ {
22
+ inputs: [],
23
+ name: "Factory_FeeModuleRequired",
24
+ type: "error",
25
+ },
26
+ {
27
+ inputs: [],
28
+ name: "Factory_InvalidAddress",
29
+ type: "error",
30
+ },
31
+ {
32
+ inputs: [],
33
+ name: "Factory_InvalidExpiry",
34
+ type: "error",
35
+ },
36
+ {
37
+ inputs: [],
38
+ name: "Factory_InvalidModule",
39
+ type: "error",
40
+ },
41
+ {
42
+ inputs: [],
43
+ name: "Factory_InvalidModuleType",
44
+ type: "error",
45
+ },
46
+ {
47
+ inputs: [],
48
+ name: "Factory_InvalidSuite",
49
+ type: "error",
50
+ },
51
+ {
52
+ inputs: [],
53
+ name: "Factory_ModuleNotFound",
54
+ type: "error",
55
+ },
56
+ {
57
+ inputs: [],
58
+ name: "Factory_PrincipalTokenNotFound",
59
+ type: "error",
60
+ },
61
+ {
62
+ inputs: [],
63
+ name: "InvalidBlueprint",
64
+ type: "error",
65
+ },
66
+ {
67
+ inputs: [],
68
+ name: "UnauthorizedCallContext",
69
+ type: "error",
70
+ },
71
+ {
72
+ inputs: [],
73
+ name: "UpgradeFailed",
74
+ type: "error",
75
+ },
76
+ {
77
+ anonymous: false,
78
+ inputs: [
79
+ {
80
+ indexed: true,
81
+ internalType: "address",
82
+ name: "implementation",
83
+ type: "address",
84
+ },
85
+ {
86
+ indexed: false,
87
+ internalType: "bool",
88
+ name: "enabled",
89
+ type: "bool",
90
+ },
91
+ ],
92
+ name: "AccessManagerImplementationSet",
93
+ type: "event",
94
+ },
95
+ {
96
+ anonymous: false,
97
+ inputs: [
98
+ {
99
+ indexed: true,
100
+ internalType: "address",
101
+ name: "pt",
102
+ type: "address",
103
+ },
104
+ {
105
+ indexed: true,
106
+ internalType: "address",
107
+ name: "yt",
108
+ type: "address",
109
+ },
110
+ {
111
+ indexed: true,
112
+ internalType: "address",
113
+ name: "pool",
114
+ type: "address",
115
+ },
116
+ {
117
+ indexed: false,
118
+ internalType: "uint256",
119
+ name: "expiry",
120
+ type: "uint256",
121
+ },
122
+ {
123
+ indexed: false,
124
+ internalType: "address",
125
+ name: "target",
126
+ type: "address",
127
+ },
128
+ ],
129
+ name: "Deployed",
130
+ type: "event",
131
+ },
132
+ {
133
+ anonymous: false,
134
+ inputs: [
135
+ {
136
+ indexed: true,
137
+ internalType: "ModuleIndex",
138
+ name: "moduleType",
139
+ type: "uint256",
140
+ },
141
+ {
142
+ indexed: true,
143
+ internalType: "address",
144
+ name: "implementation",
145
+ type: "address",
146
+ },
147
+ {
148
+ indexed: false,
149
+ internalType: "bool",
150
+ name: "enableCustomImplementation",
151
+ type: "bool",
152
+ },
153
+ ],
154
+ name: "ModuleImplementationSet",
155
+ type: "event",
156
+ },
157
+ {
158
+ anonymous: false,
159
+ inputs: [
160
+ {
161
+ indexed: true,
162
+ internalType: "ModuleIndex",
163
+ name: "moduleType",
164
+ type: "uint256",
165
+ },
166
+ {
167
+ indexed: true,
168
+ internalType: "address",
169
+ name: "instance",
170
+ type: "address",
171
+ },
172
+ {
173
+ indexed: true,
174
+ internalType: "address",
175
+ name: "principalToken",
176
+ type: "address",
177
+ },
178
+ ],
179
+ name: "ModuleUpdated",
180
+ type: "event",
181
+ },
182
+ {
183
+ anonymous: false,
184
+ inputs: [
185
+ {
186
+ indexed: true,
187
+ internalType: "address",
188
+ name: "deployer",
189
+ type: "address",
190
+ },
191
+ {
192
+ indexed: false,
193
+ internalType: "bool",
194
+ name: "enabled",
195
+ type: "bool",
196
+ },
197
+ ],
198
+ name: "PoolDeployerSet",
199
+ type: "event",
200
+ },
201
+ {
202
+ anonymous: false,
203
+ inputs: [
204
+ {
205
+ indexed: true,
206
+ internalType: "address",
207
+ name: "ptBlueprint",
208
+ type: "address",
209
+ },
210
+ {
211
+ indexed: true,
212
+ internalType: "address",
213
+ name: "ytBlueprint",
214
+ type: "address",
215
+ },
216
+ ],
217
+ name: "PrincipalTokenImplementationSet",
218
+ type: "event",
219
+ },
220
+ {
221
+ anonymous: false,
222
+ inputs: [
223
+ {
224
+ indexed: true,
225
+ internalType: "address",
226
+ name: "resolverBlueprint",
227
+ type: "address",
228
+ },
229
+ {
230
+ indexed: false,
231
+ internalType: "bool",
232
+ name: "enabled",
233
+ type: "bool",
234
+ },
235
+ ],
236
+ name: "ResolverBlueprintSet",
237
+ type: "event",
238
+ },
239
+ {
240
+ anonymous: false,
241
+ inputs: [
242
+ {
243
+ indexed: true,
244
+ internalType: "address",
245
+ name: "treasury",
246
+ type: "address",
247
+ },
248
+ ],
249
+ name: "TreasurySet",
250
+ type: "event",
251
+ },
252
+ {
253
+ anonymous: false,
254
+ inputs: [
255
+ {
256
+ indexed: true,
257
+ internalType: "address",
258
+ name: "implementation",
259
+ type: "address",
260
+ },
261
+ ],
262
+ name: "Upgraded",
263
+ type: "event",
264
+ },
265
+ {
266
+ inputs: [],
267
+ name: "DEFAULT_SPLIT_RATIO_BPS",
268
+ outputs: [
269
+ {
270
+ internalType: "uint256",
271
+ name: "",
272
+ type: "uint256",
273
+ },
274
+ ],
275
+ stateMutability: "view",
276
+ type: "function",
277
+ },
278
+ {
279
+ inputs: [],
280
+ name: "args",
281
+ outputs: [
282
+ {
283
+ components: [
284
+ {
285
+ internalType: "address",
286
+ name: "resolver",
287
+ type: "address",
288
+ },
289
+ {
290
+ internalType: "uint256",
291
+ name: "expiry",
292
+ type: "uint256",
293
+ },
294
+ {
295
+ internalType: "address",
296
+ name: "yt",
297
+ type: "address",
298
+ },
299
+ {
300
+ internalType: "address",
301
+ name: "accessManager",
302
+ type: "address",
303
+ },
304
+ {
305
+ internalType: "address",
306
+ name: "modules",
307
+ type: "address",
308
+ },
309
+ ],
310
+ internalType: "struct Factory.ConstructorArg",
311
+ name: "",
312
+ type: "tuple",
313
+ },
314
+ ],
315
+ stateMutability: "view",
316
+ type: "function",
317
+ },
318
+ {
319
+ inputs: [
320
+ {
321
+ components: [
322
+ {
323
+ internalType: "address",
324
+ name: "accessManagerImpl",
325
+ type: "address",
326
+ },
327
+ {
328
+ internalType: "address",
329
+ name: "ptBlueprint",
330
+ type: "address",
331
+ },
332
+ {
333
+ internalType: "address",
334
+ name: "resolverBlueprint",
335
+ type: "address",
336
+ },
337
+ {
338
+ internalType: "address",
339
+ name: "poolDeployerImpl",
340
+ type: "address",
341
+ },
342
+ {
343
+ internalType: "bytes",
344
+ name: "poolArgs",
345
+ type: "bytes",
346
+ },
347
+ {
348
+ internalType: "bytes",
349
+ name: "resolverArgs",
350
+ type: "bytes",
351
+ },
352
+ ],
353
+ internalType: "struct Factory.Suite",
354
+ name: "suite",
355
+ type: "tuple",
356
+ },
357
+ {
358
+ components: [
359
+ {
360
+ internalType: "ModuleIndex",
361
+ name: "moduleType",
362
+ type: "uint256",
363
+ },
364
+ {
365
+ internalType: "address",
366
+ name: "implementation",
367
+ type: "address",
368
+ },
369
+ {
370
+ internalType: "bytes",
371
+ name: "immutableData",
372
+ type: "bytes",
373
+ },
374
+ ],
375
+ internalType: "struct Factory.ModuleParam[]",
376
+ name: "params",
377
+ type: "tuple[]",
378
+ },
379
+ {
380
+ internalType: "uint256",
381
+ name: "expiry",
382
+ type: "uint256",
383
+ },
384
+ {
385
+ internalType: "address",
386
+ name: "curator",
387
+ type: "address",
388
+ },
389
+ ],
390
+ name: "deploy",
391
+ outputs: [
392
+ {
393
+ internalType: "address",
394
+ name: "pt",
395
+ type: "address",
396
+ },
397
+ {
398
+ internalType: "address",
399
+ name: "yt",
400
+ type: "address",
401
+ },
402
+ {
403
+ internalType: "address",
404
+ name: "pool",
405
+ type: "address",
406
+ },
407
+ ],
408
+ stateMutability: "nonpayable",
409
+ type: "function",
410
+ },
411
+ {
412
+ inputs: [],
413
+ name: "getPoolList",
414
+ outputs: [
415
+ {
416
+ internalType: "address[]",
417
+ name: "",
418
+ type: "address[]",
419
+ },
420
+ ],
421
+ stateMutability: "view",
422
+ type: "function",
423
+ },
424
+ {
425
+ inputs: [],
426
+ name: "i_accessManager",
427
+ outputs: [
428
+ {
429
+ internalType: "contract AccessManager",
430
+ name: "",
431
+ type: "address",
432
+ },
433
+ ],
434
+ stateMutability: "view",
435
+ type: "function",
436
+ },
437
+ {
438
+ inputs: [
439
+ {
440
+ internalType: "ModuleIndex",
441
+ name: "moduleType",
442
+ type: "uint256",
443
+ },
444
+ {
445
+ internalType: "address",
446
+ name: "implementation",
447
+ type: "address",
448
+ },
449
+ ],
450
+ name: "isValidImplementation",
451
+ outputs: [
452
+ {
453
+ internalType: "bool",
454
+ name: "",
455
+ type: "bool",
456
+ },
457
+ ],
458
+ stateMutability: "view",
459
+ type: "function",
460
+ },
461
+ {
462
+ inputs: [
463
+ {
464
+ internalType: "address",
465
+ name: "principalToken",
466
+ type: "address",
467
+ },
468
+ {
469
+ internalType: "ModuleIndex",
470
+ name: "moduleType",
471
+ type: "uint256",
472
+ },
473
+ ],
474
+ name: "moduleFor",
475
+ outputs: [
476
+ {
477
+ internalType: "address",
478
+ name: "module",
479
+ type: "address",
480
+ },
481
+ ],
482
+ stateMutability: "view",
483
+ type: "function",
484
+ },
485
+ {
486
+ inputs: [],
487
+ name: "proxiableUUID",
488
+ outputs: [
489
+ {
490
+ internalType: "bytes32",
491
+ name: "",
492
+ type: "bytes32",
493
+ },
494
+ ],
495
+ stateMutability: "view",
496
+ type: "function",
497
+ },
498
+ {
499
+ inputs: [
500
+ {
501
+ internalType: "address",
502
+ name: "implementation",
503
+ type: "address",
504
+ },
505
+ ],
506
+ name: "s_accessManagerImplementations",
507
+ outputs: [
508
+ {
509
+ internalType: "bool",
510
+ name: "enable",
511
+ type: "bool",
512
+ },
513
+ ],
514
+ stateMutability: "view",
515
+ type: "function",
516
+ },
517
+ {
518
+ inputs: [
519
+ {
520
+ internalType: "ModuleIndex",
521
+ name: "moduleType",
522
+ type: "uint256",
523
+ },
524
+ {
525
+ internalType: "address",
526
+ name: "implementation",
527
+ type: "address",
528
+ },
529
+ ],
530
+ name: "s_modules",
531
+ outputs: [
532
+ {
533
+ internalType: "bool",
534
+ name: "enabled",
535
+ type: "bool",
536
+ },
537
+ ],
538
+ stateMutability: "view",
539
+ type: "function",
540
+ },
541
+ {
542
+ inputs: [
543
+ {
544
+ internalType: "address",
545
+ name: "deployer",
546
+ type: "address",
547
+ },
548
+ ],
549
+ name: "s_poolDeployers",
550
+ outputs: [
551
+ {
552
+ internalType: "bool",
553
+ name: "enable",
554
+ type: "bool",
555
+ },
556
+ ],
557
+ stateMutability: "view",
558
+ type: "function",
559
+ },
560
+ {
561
+ inputs: [
562
+ {
563
+ internalType: "address",
564
+ name: "pool",
565
+ type: "address",
566
+ },
567
+ ],
568
+ name: "s_pools",
569
+ outputs: [
570
+ {
571
+ internalType: "address",
572
+ name: "deployer",
573
+ type: "address",
574
+ },
575
+ ],
576
+ stateMutability: "view",
577
+ type: "function",
578
+ },
579
+ {
580
+ inputs: [
581
+ {
582
+ internalType: "address",
583
+ name: "principalToken",
584
+ type: "address",
585
+ },
586
+ ],
587
+ name: "s_principalTokens",
588
+ outputs: [
589
+ {
590
+ internalType: "address",
591
+ name: "blueprint",
592
+ type: "address",
593
+ },
594
+ ],
595
+ stateMutability: "view",
596
+ type: "function",
597
+ },
598
+ {
599
+ inputs: [
600
+ {
601
+ internalType: "address",
602
+ name: "blueprint",
603
+ type: "address",
604
+ },
605
+ ],
606
+ name: "s_resolverBlueprints",
607
+ outputs: [
608
+ {
609
+ internalType: "bool",
610
+ name: "enable",
611
+ type: "bool",
612
+ },
613
+ ],
614
+ stateMutability: "view",
615
+ type: "function",
616
+ },
617
+ {
618
+ inputs: [],
619
+ name: "s_treasury",
620
+ outputs: [
621
+ {
622
+ internalType: "address",
623
+ name: "",
624
+ type: "address",
625
+ },
626
+ ],
627
+ stateMutability: "view",
628
+ type: "function",
629
+ },
630
+ {
631
+ inputs: [
632
+ {
633
+ internalType: "address",
634
+ name: "blueprint",
635
+ type: "address",
636
+ },
637
+ ],
638
+ name: "s_ytBlueprints",
639
+ outputs: [
640
+ {
641
+ internalType: "address",
642
+ name: "ytBlueprint",
643
+ type: "address",
644
+ },
645
+ ],
646
+ stateMutability: "view",
647
+ type: "function",
648
+ },
649
+ {
650
+ inputs: [
651
+ {
652
+ internalType: "address",
653
+ name: "implementation",
654
+ type: "address",
655
+ },
656
+ {
657
+ internalType: "bool",
658
+ name: "enable",
659
+ type: "bool",
660
+ },
661
+ ],
662
+ name: "setAccessManagerImplementation",
663
+ outputs: [],
664
+ stateMutability: "nonpayable",
665
+ type: "function",
666
+ },
667
+ {
668
+ inputs: [
669
+ {
670
+ internalType: "ModuleIndex",
671
+ name: "moduleType",
672
+ type: "uint256",
673
+ },
674
+ {
675
+ internalType: "address",
676
+ name: "implementation",
677
+ type: "address",
678
+ },
679
+ {
680
+ internalType: "bool",
681
+ name: "enable",
682
+ type: "bool",
683
+ },
684
+ ],
685
+ name: "setModuleImplementation",
686
+ outputs: [],
687
+ stateMutability: "nonpayable",
688
+ type: "function",
689
+ },
690
+ {
691
+ inputs: [
692
+ {
693
+ internalType: "address",
694
+ name: "deployer",
695
+ type: "address",
696
+ },
697
+ {
698
+ internalType: "bool",
699
+ name: "enable",
700
+ type: "bool",
701
+ },
702
+ ],
703
+ name: "setPoolDeployer",
704
+ outputs: [],
705
+ stateMutability: "nonpayable",
706
+ type: "function",
707
+ },
708
+ {
709
+ inputs: [
710
+ {
711
+ internalType: "address",
712
+ name: "ptBlueprint",
713
+ type: "address",
714
+ },
715
+ {
716
+ internalType: "address",
717
+ name: "ytBlueprint",
718
+ type: "address",
719
+ },
720
+ ],
721
+ name: "setPrincipalTokenBlueprint",
722
+ outputs: [],
723
+ stateMutability: "nonpayable",
724
+ type: "function",
725
+ },
726
+ {
727
+ inputs: [
728
+ {
729
+ internalType: "address",
730
+ name: "blueprint",
731
+ type: "address",
732
+ },
733
+ {
734
+ internalType: "bool",
735
+ name: "enable",
736
+ type: "bool",
737
+ },
738
+ ],
739
+ name: "setResolverBlueprint",
740
+ outputs: [],
741
+ stateMutability: "nonpayable",
742
+ type: "function",
743
+ },
744
+ {
745
+ inputs: [
746
+ {
747
+ internalType: "address",
748
+ name: "treasury",
749
+ type: "address",
750
+ },
751
+ ],
752
+ name: "setTreasury",
753
+ outputs: [],
754
+ stateMutability: "nonpayable",
755
+ type: "function",
756
+ },
757
+ {
758
+ inputs: [
759
+ {
760
+ internalType: "address",
761
+ name: "pt",
762
+ type: "address",
763
+ },
764
+ {
765
+ components: [
766
+ {
767
+ internalType: "ModuleIndex",
768
+ name: "moduleType",
769
+ type: "uint256",
770
+ },
771
+ {
772
+ internalType: "address",
773
+ name: "implementation",
774
+ type: "address",
775
+ },
776
+ {
777
+ internalType: "bytes",
778
+ name: "immutableData",
779
+ type: "bytes",
780
+ },
781
+ ],
782
+ internalType: "struct Factory.ModuleParam[]",
783
+ name: "params",
784
+ type: "tuple[]",
785
+ },
786
+ ],
787
+ name: "updateModules",
788
+ outputs: [],
789
+ stateMutability: "nonpayable",
790
+ type: "function",
791
+ },
792
+ {
793
+ inputs: [
794
+ {
795
+ internalType: "address",
796
+ name: "newImplementation",
797
+ type: "address",
798
+ },
799
+ {
800
+ internalType: "bytes",
801
+ name: "data",
802
+ type: "bytes",
803
+ },
804
+ ],
805
+ name: "upgradeToAndCall",
806
+ outputs: [],
807
+ stateMutability: "payable",
808
+ type: "function",
809
+ },
810
+ ];
811
+ export class NapierFactory__factory {
812
+ static abi = _abi;
813
+ static createInterface() {
814
+ return new utils.Interface(_abi);
815
+ }
816
+ static connect(address, signerOrProvider) {
817
+ return new Contract(address, _abi, signerOrProvider);
818
+ }
819
+ }