@mapprotocol/common-contracts 0.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.
Files changed (88) hide show
  1. package/README.md +107 -0
  2. package/artifacts/contracts/AuthorityManager.sol/AuthorityManager.json +1237 -0
  3. package/artifacts/contracts/base/BaseImplemention.sol/BaseImplementation.json +298 -0
  4. package/contracts/AuthorityManager.sol +60 -0
  5. package/contracts/base/BaseImplemention.sol +38 -0
  6. package/package.json +73 -0
  7. package/typechain-types/@openzeppelin/contracts/access/index.ts +5 -0
  8. package/typechain-types/@openzeppelin/contracts/access/manager/AccessManager.ts +1109 -0
  9. package/typechain-types/@openzeppelin/contracts/access/manager/IAccessManaged.ts +148 -0
  10. package/typechain-types/@openzeppelin/contracts/access/manager/IAccessManager.ts +1073 -0
  11. package/typechain-types/@openzeppelin/contracts/access/manager/IAuthority.ts +96 -0
  12. package/typechain-types/@openzeppelin/contracts/access/manager/index.ts +7 -0
  13. package/typechain-types/@openzeppelin/contracts/index.ts +11 -0
  14. package/typechain-types/@openzeppelin/contracts/interfaces/IERC1967.ts +168 -0
  15. package/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable.ts +90 -0
  16. package/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/index.ts +4 -0
  17. package/typechain-types/@openzeppelin/contracts/interfaces/index.ts +6 -0
  18. package/typechain-types/@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.ts +69 -0
  19. package/typechain-types/@openzeppelin/contracts/proxy/ERC1967/index.ts +4 -0
  20. package/typechain-types/@openzeppelin/contracts/proxy/beacon/IBeacon.ts +90 -0
  21. package/typechain-types/@openzeppelin/contracts/proxy/beacon/index.ts +4 -0
  22. package/typechain-types/@openzeppelin/contracts/proxy/index.ts +7 -0
  23. package/typechain-types/@openzeppelin/contracts/utils/Address.ts +69 -0
  24. package/typechain-types/@openzeppelin/contracts/utils/Errors.ts +69 -0
  25. package/typechain-types/@openzeppelin/contracts/utils/Multicall.ts +87 -0
  26. package/typechain-types/@openzeppelin/contracts/utils/index.ts +8 -0
  27. package/typechain-types/@openzeppelin/contracts/utils/math/SafeCast.ts +69 -0
  28. package/typechain-types/@openzeppelin/contracts/utils/math/index.ts +4 -0
  29. package/typechain-types/@openzeppelin/contracts-upgradeable/access/index.ts +5 -0
  30. package/typechain-types/@openzeppelin/contracts-upgradeable/access/manager/AccessManagedUpgradeable.ts +185 -0
  31. package/typechain-types/@openzeppelin/contracts-upgradeable/access/manager/index.ts +4 -0
  32. package/typechain-types/@openzeppelin/contracts-upgradeable/index.ts +9 -0
  33. package/typechain-types/@openzeppelin/contracts-upgradeable/proxy/index.ts +5 -0
  34. package/typechain-types/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.ts +105 -0
  35. package/typechain-types/@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.ts +196 -0
  36. package/typechain-types/@openzeppelin/contracts-upgradeable/proxy/utils/index.ts +5 -0
  37. package/typechain-types/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.ts +105 -0
  38. package/typechain-types/@openzeppelin/contracts-upgradeable/utils/PausableUpgradeable.ts +183 -0
  39. package/typechain-types/@openzeppelin/contracts-upgradeable/utils/index.ts +5 -0
  40. package/typechain-types/@openzeppelin/index.ts +7 -0
  41. package/typechain-types/common.ts +131 -0
  42. package/typechain-types/contracts/AuthorityManager.ts +1163 -0
  43. package/typechain-types/contracts/base/BaseImplemention.sol/BaseImplementation.ts +363 -0
  44. package/typechain-types/contracts/base/BaseImplemention.sol/index.ts +4 -0
  45. package/typechain-types/contracts/base/index.ts +5 -0
  46. package/typechain-types/contracts/index.ts +6 -0
  47. package/typechain-types/factories/@openzeppelin/contracts/access/index.ts +4 -0
  48. package/typechain-types/factories/@openzeppelin/contracts/access/manager/AccessManager__factory.ts +1240 -0
  49. package/typechain-types/factories/@openzeppelin/contracts/access/manager/IAccessManaged__factory.ts +115 -0
  50. package/typechain-types/factories/@openzeppelin/contracts/access/manager/IAccessManager__factory.ts +1085 -0
  51. package/typechain-types/factories/@openzeppelin/contracts/access/manager/IAuthority__factory.ts +51 -0
  52. package/typechain-types/factories/@openzeppelin/contracts/access/manager/index.ts +7 -0
  53. package/typechain-types/factories/@openzeppelin/contracts/index.ts +7 -0
  54. package/typechain-types/factories/@openzeppelin/contracts/interfaces/IERC1967__factory.ts +67 -0
  55. package/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable__factory.ts +38 -0
  56. package/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/index.ts +4 -0
  57. package/typechain-types/factories/@openzeppelin/contracts/interfaces/index.ts +5 -0
  58. package/typechain-types/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils__factory.ts +105 -0
  59. package/typechain-types/factories/@openzeppelin/contracts/proxy/ERC1967/index.ts +4 -0
  60. package/typechain-types/factories/@openzeppelin/contracts/proxy/beacon/IBeacon__factory.ts +35 -0
  61. package/typechain-types/factories/@openzeppelin/contracts/proxy/beacon/index.ts +4 -0
  62. package/typechain-types/factories/@openzeppelin/contracts/proxy/index.ts +5 -0
  63. package/typechain-types/factories/@openzeppelin/contracts/utils/Address__factory.ts +75 -0
  64. package/typechain-types/factories/@openzeppelin/contracts/utils/Errors__factory.ts +101 -0
  65. package/typechain-types/factories/@openzeppelin/contracts/utils/Multicall__factory.ts +57 -0
  66. package/typechain-types/factories/@openzeppelin/contracts/utils/index.ts +7 -0
  67. package/typechain-types/factories/@openzeppelin/contracts/utils/math/SafeCast__factory.ts +118 -0
  68. package/typechain-types/factories/@openzeppelin/contracts/utils/math/index.ts +4 -0
  69. package/typechain-types/factories/@openzeppelin/contracts-upgradeable/access/index.ts +4 -0
  70. package/typechain-types/factories/@openzeppelin/contracts-upgradeable/access/manager/AccessManagedUpgradeable__factory.ts +142 -0
  71. package/typechain-types/factories/@openzeppelin/contracts-upgradeable/access/manager/index.ts +4 -0
  72. package/typechain-types/factories/@openzeppelin/contracts-upgradeable/index.ts +6 -0
  73. package/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/index.ts +4 -0
  74. package/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable__factory.ts +48 -0
  75. package/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable__factory.ts +153 -0
  76. package/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/index.ts +5 -0
  77. package/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable__factory.ts +48 -0
  78. package/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/PausableUpgradeable__factory.ts +101 -0
  79. package/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/index.ts +5 -0
  80. package/typechain-types/factories/@openzeppelin/index.ts +5 -0
  81. package/typechain-types/factories/contracts/AuthorityManager__factory.ts +1302 -0
  82. package/typechain-types/factories/contracts/base/BaseImplemention.sol/BaseImplementation__factory.ts +312 -0
  83. package/typechain-types/factories/contracts/base/BaseImplemention.sol/index.ts +4 -0
  84. package/typechain-types/factories/contracts/base/index.ts +4 -0
  85. package/typechain-types/factories/contracts/index.ts +5 -0
  86. package/typechain-types/factories/index.ts +5 -0
  87. package/typechain-types/hardhat.d.ts +387 -0
  88. package/typechain-types/index.ts +46 -0
@@ -0,0 +1,1085 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Interface, type ContractRunner } from "ethers";
6
+ import type {
7
+ IAccessManager,
8
+ IAccessManagerInterface,
9
+ } from "../../../../../@openzeppelin/contracts/access/manager/IAccessManager";
10
+
11
+ const _abi = [
12
+ {
13
+ inputs: [
14
+ {
15
+ internalType: "bytes32",
16
+ name: "operationId",
17
+ type: "bytes32",
18
+ },
19
+ ],
20
+ name: "AccessManagerAlreadyScheduled",
21
+ type: "error",
22
+ },
23
+ {
24
+ inputs: [],
25
+ name: "AccessManagerBadConfirmation",
26
+ type: "error",
27
+ },
28
+ {
29
+ inputs: [
30
+ {
31
+ internalType: "bytes32",
32
+ name: "operationId",
33
+ type: "bytes32",
34
+ },
35
+ ],
36
+ name: "AccessManagerExpired",
37
+ type: "error",
38
+ },
39
+ {
40
+ inputs: [
41
+ {
42
+ internalType: "address",
43
+ name: "initialAdmin",
44
+ type: "address",
45
+ },
46
+ ],
47
+ name: "AccessManagerInvalidInitialAdmin",
48
+ type: "error",
49
+ },
50
+ {
51
+ inputs: [
52
+ {
53
+ internalType: "uint64",
54
+ name: "roleId",
55
+ type: "uint64",
56
+ },
57
+ ],
58
+ name: "AccessManagerLockedRole",
59
+ type: "error",
60
+ },
61
+ {
62
+ inputs: [
63
+ {
64
+ internalType: "bytes32",
65
+ name: "operationId",
66
+ type: "bytes32",
67
+ },
68
+ ],
69
+ name: "AccessManagerNotReady",
70
+ type: "error",
71
+ },
72
+ {
73
+ inputs: [
74
+ {
75
+ internalType: "bytes32",
76
+ name: "operationId",
77
+ type: "bytes32",
78
+ },
79
+ ],
80
+ name: "AccessManagerNotScheduled",
81
+ type: "error",
82
+ },
83
+ {
84
+ inputs: [
85
+ {
86
+ internalType: "address",
87
+ name: "msgsender",
88
+ type: "address",
89
+ },
90
+ {
91
+ internalType: "uint64",
92
+ name: "roleId",
93
+ type: "uint64",
94
+ },
95
+ ],
96
+ name: "AccessManagerUnauthorizedAccount",
97
+ type: "error",
98
+ },
99
+ {
100
+ inputs: [
101
+ {
102
+ internalType: "address",
103
+ name: "caller",
104
+ type: "address",
105
+ },
106
+ {
107
+ internalType: "address",
108
+ name: "target",
109
+ type: "address",
110
+ },
111
+ {
112
+ internalType: "bytes4",
113
+ name: "selector",
114
+ type: "bytes4",
115
+ },
116
+ ],
117
+ name: "AccessManagerUnauthorizedCall",
118
+ type: "error",
119
+ },
120
+ {
121
+ inputs: [
122
+ {
123
+ internalType: "address",
124
+ name: "msgsender",
125
+ type: "address",
126
+ },
127
+ {
128
+ internalType: "address",
129
+ name: "caller",
130
+ type: "address",
131
+ },
132
+ {
133
+ internalType: "address",
134
+ name: "target",
135
+ type: "address",
136
+ },
137
+ {
138
+ internalType: "bytes4",
139
+ name: "selector",
140
+ type: "bytes4",
141
+ },
142
+ ],
143
+ name: "AccessManagerUnauthorizedCancel",
144
+ type: "error",
145
+ },
146
+ {
147
+ inputs: [
148
+ {
149
+ internalType: "address",
150
+ name: "target",
151
+ type: "address",
152
+ },
153
+ ],
154
+ name: "AccessManagerUnauthorizedConsume",
155
+ type: "error",
156
+ },
157
+ {
158
+ anonymous: false,
159
+ inputs: [
160
+ {
161
+ indexed: true,
162
+ internalType: "bytes32",
163
+ name: "operationId",
164
+ type: "bytes32",
165
+ },
166
+ {
167
+ indexed: true,
168
+ internalType: "uint32",
169
+ name: "nonce",
170
+ type: "uint32",
171
+ },
172
+ ],
173
+ name: "OperationCanceled",
174
+ type: "event",
175
+ },
176
+ {
177
+ anonymous: false,
178
+ inputs: [
179
+ {
180
+ indexed: true,
181
+ internalType: "bytes32",
182
+ name: "operationId",
183
+ type: "bytes32",
184
+ },
185
+ {
186
+ indexed: true,
187
+ internalType: "uint32",
188
+ name: "nonce",
189
+ type: "uint32",
190
+ },
191
+ ],
192
+ name: "OperationExecuted",
193
+ type: "event",
194
+ },
195
+ {
196
+ anonymous: false,
197
+ inputs: [
198
+ {
199
+ indexed: true,
200
+ internalType: "bytes32",
201
+ name: "operationId",
202
+ type: "bytes32",
203
+ },
204
+ {
205
+ indexed: true,
206
+ internalType: "uint32",
207
+ name: "nonce",
208
+ type: "uint32",
209
+ },
210
+ {
211
+ indexed: false,
212
+ internalType: "uint48",
213
+ name: "schedule",
214
+ type: "uint48",
215
+ },
216
+ {
217
+ indexed: false,
218
+ internalType: "address",
219
+ name: "caller",
220
+ type: "address",
221
+ },
222
+ {
223
+ indexed: false,
224
+ internalType: "address",
225
+ name: "target",
226
+ type: "address",
227
+ },
228
+ {
229
+ indexed: false,
230
+ internalType: "bytes",
231
+ name: "data",
232
+ type: "bytes",
233
+ },
234
+ ],
235
+ name: "OperationScheduled",
236
+ type: "event",
237
+ },
238
+ {
239
+ anonymous: false,
240
+ inputs: [
241
+ {
242
+ indexed: true,
243
+ internalType: "uint64",
244
+ name: "roleId",
245
+ type: "uint64",
246
+ },
247
+ {
248
+ indexed: true,
249
+ internalType: "uint64",
250
+ name: "admin",
251
+ type: "uint64",
252
+ },
253
+ ],
254
+ name: "RoleAdminChanged",
255
+ type: "event",
256
+ },
257
+ {
258
+ anonymous: false,
259
+ inputs: [
260
+ {
261
+ indexed: true,
262
+ internalType: "uint64",
263
+ name: "roleId",
264
+ type: "uint64",
265
+ },
266
+ {
267
+ indexed: false,
268
+ internalType: "uint32",
269
+ name: "delay",
270
+ type: "uint32",
271
+ },
272
+ {
273
+ indexed: false,
274
+ internalType: "uint48",
275
+ name: "since",
276
+ type: "uint48",
277
+ },
278
+ ],
279
+ name: "RoleGrantDelayChanged",
280
+ type: "event",
281
+ },
282
+ {
283
+ anonymous: false,
284
+ inputs: [
285
+ {
286
+ indexed: true,
287
+ internalType: "uint64",
288
+ name: "roleId",
289
+ type: "uint64",
290
+ },
291
+ {
292
+ indexed: true,
293
+ internalType: "address",
294
+ name: "account",
295
+ type: "address",
296
+ },
297
+ {
298
+ indexed: false,
299
+ internalType: "uint32",
300
+ name: "delay",
301
+ type: "uint32",
302
+ },
303
+ {
304
+ indexed: false,
305
+ internalType: "uint48",
306
+ name: "since",
307
+ type: "uint48",
308
+ },
309
+ {
310
+ indexed: false,
311
+ internalType: "bool",
312
+ name: "newMember",
313
+ type: "bool",
314
+ },
315
+ ],
316
+ name: "RoleGranted",
317
+ type: "event",
318
+ },
319
+ {
320
+ anonymous: false,
321
+ inputs: [
322
+ {
323
+ indexed: true,
324
+ internalType: "uint64",
325
+ name: "roleId",
326
+ type: "uint64",
327
+ },
328
+ {
329
+ indexed: true,
330
+ internalType: "uint64",
331
+ name: "guardian",
332
+ type: "uint64",
333
+ },
334
+ ],
335
+ name: "RoleGuardianChanged",
336
+ type: "event",
337
+ },
338
+ {
339
+ anonymous: false,
340
+ inputs: [
341
+ {
342
+ indexed: true,
343
+ internalType: "uint64",
344
+ name: "roleId",
345
+ type: "uint64",
346
+ },
347
+ {
348
+ indexed: false,
349
+ internalType: "string",
350
+ name: "label",
351
+ type: "string",
352
+ },
353
+ ],
354
+ name: "RoleLabel",
355
+ type: "event",
356
+ },
357
+ {
358
+ anonymous: false,
359
+ inputs: [
360
+ {
361
+ indexed: true,
362
+ internalType: "uint64",
363
+ name: "roleId",
364
+ type: "uint64",
365
+ },
366
+ {
367
+ indexed: true,
368
+ internalType: "address",
369
+ name: "account",
370
+ type: "address",
371
+ },
372
+ ],
373
+ name: "RoleRevoked",
374
+ type: "event",
375
+ },
376
+ {
377
+ anonymous: false,
378
+ inputs: [
379
+ {
380
+ indexed: true,
381
+ internalType: "address",
382
+ name: "target",
383
+ type: "address",
384
+ },
385
+ {
386
+ indexed: false,
387
+ internalType: "uint32",
388
+ name: "delay",
389
+ type: "uint32",
390
+ },
391
+ {
392
+ indexed: false,
393
+ internalType: "uint48",
394
+ name: "since",
395
+ type: "uint48",
396
+ },
397
+ ],
398
+ name: "TargetAdminDelayUpdated",
399
+ type: "event",
400
+ },
401
+ {
402
+ anonymous: false,
403
+ inputs: [
404
+ {
405
+ indexed: true,
406
+ internalType: "address",
407
+ name: "target",
408
+ type: "address",
409
+ },
410
+ {
411
+ indexed: false,
412
+ internalType: "bool",
413
+ name: "closed",
414
+ type: "bool",
415
+ },
416
+ ],
417
+ name: "TargetClosed",
418
+ type: "event",
419
+ },
420
+ {
421
+ anonymous: false,
422
+ inputs: [
423
+ {
424
+ indexed: true,
425
+ internalType: "address",
426
+ name: "target",
427
+ type: "address",
428
+ },
429
+ {
430
+ indexed: false,
431
+ internalType: "bytes4",
432
+ name: "selector",
433
+ type: "bytes4",
434
+ },
435
+ {
436
+ indexed: true,
437
+ internalType: "uint64",
438
+ name: "roleId",
439
+ type: "uint64",
440
+ },
441
+ ],
442
+ name: "TargetFunctionRoleUpdated",
443
+ type: "event",
444
+ },
445
+ {
446
+ inputs: [
447
+ {
448
+ internalType: "address",
449
+ name: "caller",
450
+ type: "address",
451
+ },
452
+ {
453
+ internalType: "address",
454
+ name: "target",
455
+ type: "address",
456
+ },
457
+ {
458
+ internalType: "bytes4",
459
+ name: "selector",
460
+ type: "bytes4",
461
+ },
462
+ ],
463
+ name: "canCall",
464
+ outputs: [
465
+ {
466
+ internalType: "bool",
467
+ name: "allowed",
468
+ type: "bool",
469
+ },
470
+ {
471
+ internalType: "uint32",
472
+ name: "delay",
473
+ type: "uint32",
474
+ },
475
+ ],
476
+ stateMutability: "view",
477
+ type: "function",
478
+ },
479
+ {
480
+ inputs: [
481
+ {
482
+ internalType: "address",
483
+ name: "caller",
484
+ type: "address",
485
+ },
486
+ {
487
+ internalType: "address",
488
+ name: "target",
489
+ type: "address",
490
+ },
491
+ {
492
+ internalType: "bytes",
493
+ name: "data",
494
+ type: "bytes",
495
+ },
496
+ ],
497
+ name: "cancel",
498
+ outputs: [
499
+ {
500
+ internalType: "uint32",
501
+ name: "",
502
+ type: "uint32",
503
+ },
504
+ ],
505
+ stateMutability: "nonpayable",
506
+ type: "function",
507
+ },
508
+ {
509
+ inputs: [
510
+ {
511
+ internalType: "address",
512
+ name: "caller",
513
+ type: "address",
514
+ },
515
+ {
516
+ internalType: "bytes",
517
+ name: "data",
518
+ type: "bytes",
519
+ },
520
+ ],
521
+ name: "consumeScheduledOp",
522
+ outputs: [],
523
+ stateMutability: "nonpayable",
524
+ type: "function",
525
+ },
526
+ {
527
+ inputs: [
528
+ {
529
+ internalType: "address",
530
+ name: "target",
531
+ type: "address",
532
+ },
533
+ {
534
+ internalType: "bytes",
535
+ name: "data",
536
+ type: "bytes",
537
+ },
538
+ ],
539
+ name: "execute",
540
+ outputs: [
541
+ {
542
+ internalType: "uint32",
543
+ name: "",
544
+ type: "uint32",
545
+ },
546
+ ],
547
+ stateMutability: "payable",
548
+ type: "function",
549
+ },
550
+ {
551
+ inputs: [],
552
+ name: "expiration",
553
+ outputs: [
554
+ {
555
+ internalType: "uint32",
556
+ name: "",
557
+ type: "uint32",
558
+ },
559
+ ],
560
+ stateMutability: "view",
561
+ type: "function",
562
+ },
563
+ {
564
+ inputs: [
565
+ {
566
+ internalType: "uint64",
567
+ name: "roleId",
568
+ type: "uint64",
569
+ },
570
+ {
571
+ internalType: "address",
572
+ name: "account",
573
+ type: "address",
574
+ },
575
+ ],
576
+ name: "getAccess",
577
+ outputs: [
578
+ {
579
+ internalType: "uint48",
580
+ name: "since",
581
+ type: "uint48",
582
+ },
583
+ {
584
+ internalType: "uint32",
585
+ name: "currentDelay",
586
+ type: "uint32",
587
+ },
588
+ {
589
+ internalType: "uint32",
590
+ name: "pendingDelay",
591
+ type: "uint32",
592
+ },
593
+ {
594
+ internalType: "uint48",
595
+ name: "effect",
596
+ type: "uint48",
597
+ },
598
+ ],
599
+ stateMutability: "view",
600
+ type: "function",
601
+ },
602
+ {
603
+ inputs: [
604
+ {
605
+ internalType: "bytes32",
606
+ name: "id",
607
+ type: "bytes32",
608
+ },
609
+ ],
610
+ name: "getNonce",
611
+ outputs: [
612
+ {
613
+ internalType: "uint32",
614
+ name: "",
615
+ type: "uint32",
616
+ },
617
+ ],
618
+ stateMutability: "view",
619
+ type: "function",
620
+ },
621
+ {
622
+ inputs: [
623
+ {
624
+ internalType: "uint64",
625
+ name: "roleId",
626
+ type: "uint64",
627
+ },
628
+ ],
629
+ name: "getRoleAdmin",
630
+ outputs: [
631
+ {
632
+ internalType: "uint64",
633
+ name: "",
634
+ type: "uint64",
635
+ },
636
+ ],
637
+ stateMutability: "view",
638
+ type: "function",
639
+ },
640
+ {
641
+ inputs: [
642
+ {
643
+ internalType: "uint64",
644
+ name: "roleId",
645
+ type: "uint64",
646
+ },
647
+ ],
648
+ name: "getRoleGrantDelay",
649
+ outputs: [
650
+ {
651
+ internalType: "uint32",
652
+ name: "",
653
+ type: "uint32",
654
+ },
655
+ ],
656
+ stateMutability: "view",
657
+ type: "function",
658
+ },
659
+ {
660
+ inputs: [
661
+ {
662
+ internalType: "uint64",
663
+ name: "roleId",
664
+ type: "uint64",
665
+ },
666
+ ],
667
+ name: "getRoleGuardian",
668
+ outputs: [
669
+ {
670
+ internalType: "uint64",
671
+ name: "",
672
+ type: "uint64",
673
+ },
674
+ ],
675
+ stateMutability: "view",
676
+ type: "function",
677
+ },
678
+ {
679
+ inputs: [
680
+ {
681
+ internalType: "bytes32",
682
+ name: "id",
683
+ type: "bytes32",
684
+ },
685
+ ],
686
+ name: "getSchedule",
687
+ outputs: [
688
+ {
689
+ internalType: "uint48",
690
+ name: "",
691
+ type: "uint48",
692
+ },
693
+ ],
694
+ stateMutability: "view",
695
+ type: "function",
696
+ },
697
+ {
698
+ inputs: [
699
+ {
700
+ internalType: "address",
701
+ name: "target",
702
+ type: "address",
703
+ },
704
+ ],
705
+ name: "getTargetAdminDelay",
706
+ outputs: [
707
+ {
708
+ internalType: "uint32",
709
+ name: "",
710
+ type: "uint32",
711
+ },
712
+ ],
713
+ stateMutability: "view",
714
+ type: "function",
715
+ },
716
+ {
717
+ inputs: [
718
+ {
719
+ internalType: "address",
720
+ name: "target",
721
+ type: "address",
722
+ },
723
+ {
724
+ internalType: "bytes4",
725
+ name: "selector",
726
+ type: "bytes4",
727
+ },
728
+ ],
729
+ name: "getTargetFunctionRole",
730
+ outputs: [
731
+ {
732
+ internalType: "uint64",
733
+ name: "",
734
+ type: "uint64",
735
+ },
736
+ ],
737
+ stateMutability: "view",
738
+ type: "function",
739
+ },
740
+ {
741
+ inputs: [
742
+ {
743
+ internalType: "uint64",
744
+ name: "roleId",
745
+ type: "uint64",
746
+ },
747
+ {
748
+ internalType: "address",
749
+ name: "account",
750
+ type: "address",
751
+ },
752
+ {
753
+ internalType: "uint32",
754
+ name: "executionDelay",
755
+ type: "uint32",
756
+ },
757
+ ],
758
+ name: "grantRole",
759
+ outputs: [],
760
+ stateMutability: "nonpayable",
761
+ type: "function",
762
+ },
763
+ {
764
+ inputs: [
765
+ {
766
+ internalType: "uint64",
767
+ name: "roleId",
768
+ type: "uint64",
769
+ },
770
+ {
771
+ internalType: "address",
772
+ name: "account",
773
+ type: "address",
774
+ },
775
+ ],
776
+ name: "hasRole",
777
+ outputs: [
778
+ {
779
+ internalType: "bool",
780
+ name: "isMember",
781
+ type: "bool",
782
+ },
783
+ {
784
+ internalType: "uint32",
785
+ name: "executionDelay",
786
+ type: "uint32",
787
+ },
788
+ ],
789
+ stateMutability: "view",
790
+ type: "function",
791
+ },
792
+ {
793
+ inputs: [
794
+ {
795
+ internalType: "address",
796
+ name: "caller",
797
+ type: "address",
798
+ },
799
+ {
800
+ internalType: "address",
801
+ name: "target",
802
+ type: "address",
803
+ },
804
+ {
805
+ internalType: "bytes",
806
+ name: "data",
807
+ type: "bytes",
808
+ },
809
+ ],
810
+ name: "hashOperation",
811
+ outputs: [
812
+ {
813
+ internalType: "bytes32",
814
+ name: "",
815
+ type: "bytes32",
816
+ },
817
+ ],
818
+ stateMutability: "view",
819
+ type: "function",
820
+ },
821
+ {
822
+ inputs: [
823
+ {
824
+ internalType: "address",
825
+ name: "target",
826
+ type: "address",
827
+ },
828
+ ],
829
+ name: "isTargetClosed",
830
+ outputs: [
831
+ {
832
+ internalType: "bool",
833
+ name: "",
834
+ type: "bool",
835
+ },
836
+ ],
837
+ stateMutability: "view",
838
+ type: "function",
839
+ },
840
+ {
841
+ inputs: [
842
+ {
843
+ internalType: "uint64",
844
+ name: "roleId",
845
+ type: "uint64",
846
+ },
847
+ {
848
+ internalType: "string",
849
+ name: "label",
850
+ type: "string",
851
+ },
852
+ ],
853
+ name: "labelRole",
854
+ outputs: [],
855
+ stateMutability: "nonpayable",
856
+ type: "function",
857
+ },
858
+ {
859
+ inputs: [],
860
+ name: "minSetback",
861
+ outputs: [
862
+ {
863
+ internalType: "uint32",
864
+ name: "",
865
+ type: "uint32",
866
+ },
867
+ ],
868
+ stateMutability: "view",
869
+ type: "function",
870
+ },
871
+ {
872
+ inputs: [
873
+ {
874
+ internalType: "uint64",
875
+ name: "roleId",
876
+ type: "uint64",
877
+ },
878
+ {
879
+ internalType: "address",
880
+ name: "callerConfirmation",
881
+ type: "address",
882
+ },
883
+ ],
884
+ name: "renounceRole",
885
+ outputs: [],
886
+ stateMutability: "nonpayable",
887
+ type: "function",
888
+ },
889
+ {
890
+ inputs: [
891
+ {
892
+ internalType: "uint64",
893
+ name: "roleId",
894
+ type: "uint64",
895
+ },
896
+ {
897
+ internalType: "address",
898
+ name: "account",
899
+ type: "address",
900
+ },
901
+ ],
902
+ name: "revokeRole",
903
+ outputs: [],
904
+ stateMutability: "nonpayable",
905
+ type: "function",
906
+ },
907
+ {
908
+ inputs: [
909
+ {
910
+ internalType: "address",
911
+ name: "target",
912
+ type: "address",
913
+ },
914
+ {
915
+ internalType: "bytes",
916
+ name: "data",
917
+ type: "bytes",
918
+ },
919
+ {
920
+ internalType: "uint48",
921
+ name: "when",
922
+ type: "uint48",
923
+ },
924
+ ],
925
+ name: "schedule",
926
+ outputs: [
927
+ {
928
+ internalType: "bytes32",
929
+ name: "operationId",
930
+ type: "bytes32",
931
+ },
932
+ {
933
+ internalType: "uint32",
934
+ name: "nonce",
935
+ type: "uint32",
936
+ },
937
+ ],
938
+ stateMutability: "nonpayable",
939
+ type: "function",
940
+ },
941
+ {
942
+ inputs: [
943
+ {
944
+ internalType: "uint64",
945
+ name: "roleId",
946
+ type: "uint64",
947
+ },
948
+ {
949
+ internalType: "uint32",
950
+ name: "newDelay",
951
+ type: "uint32",
952
+ },
953
+ ],
954
+ name: "setGrantDelay",
955
+ outputs: [],
956
+ stateMutability: "nonpayable",
957
+ type: "function",
958
+ },
959
+ {
960
+ inputs: [
961
+ {
962
+ internalType: "uint64",
963
+ name: "roleId",
964
+ type: "uint64",
965
+ },
966
+ {
967
+ internalType: "uint64",
968
+ name: "admin",
969
+ type: "uint64",
970
+ },
971
+ ],
972
+ name: "setRoleAdmin",
973
+ outputs: [],
974
+ stateMutability: "nonpayable",
975
+ type: "function",
976
+ },
977
+ {
978
+ inputs: [
979
+ {
980
+ internalType: "uint64",
981
+ name: "roleId",
982
+ type: "uint64",
983
+ },
984
+ {
985
+ internalType: "uint64",
986
+ name: "guardian",
987
+ type: "uint64",
988
+ },
989
+ ],
990
+ name: "setRoleGuardian",
991
+ outputs: [],
992
+ stateMutability: "nonpayable",
993
+ type: "function",
994
+ },
995
+ {
996
+ inputs: [
997
+ {
998
+ internalType: "address",
999
+ name: "target",
1000
+ type: "address",
1001
+ },
1002
+ {
1003
+ internalType: "uint32",
1004
+ name: "newDelay",
1005
+ type: "uint32",
1006
+ },
1007
+ ],
1008
+ name: "setTargetAdminDelay",
1009
+ outputs: [],
1010
+ stateMutability: "nonpayable",
1011
+ type: "function",
1012
+ },
1013
+ {
1014
+ inputs: [
1015
+ {
1016
+ internalType: "address",
1017
+ name: "target",
1018
+ type: "address",
1019
+ },
1020
+ {
1021
+ internalType: "bool",
1022
+ name: "closed",
1023
+ type: "bool",
1024
+ },
1025
+ ],
1026
+ name: "setTargetClosed",
1027
+ outputs: [],
1028
+ stateMutability: "nonpayable",
1029
+ type: "function",
1030
+ },
1031
+ {
1032
+ inputs: [
1033
+ {
1034
+ internalType: "address",
1035
+ name: "target",
1036
+ type: "address",
1037
+ },
1038
+ {
1039
+ internalType: "bytes4[]",
1040
+ name: "selectors",
1041
+ type: "bytes4[]",
1042
+ },
1043
+ {
1044
+ internalType: "uint64",
1045
+ name: "roleId",
1046
+ type: "uint64",
1047
+ },
1048
+ ],
1049
+ name: "setTargetFunctionRole",
1050
+ outputs: [],
1051
+ stateMutability: "nonpayable",
1052
+ type: "function",
1053
+ },
1054
+ {
1055
+ inputs: [
1056
+ {
1057
+ internalType: "address",
1058
+ name: "target",
1059
+ type: "address",
1060
+ },
1061
+ {
1062
+ internalType: "address",
1063
+ name: "newAuthority",
1064
+ type: "address",
1065
+ },
1066
+ ],
1067
+ name: "updateAuthority",
1068
+ outputs: [],
1069
+ stateMutability: "nonpayable",
1070
+ type: "function",
1071
+ },
1072
+ ] as const;
1073
+
1074
+ export class IAccessManager__factory {
1075
+ static readonly abi = _abi;
1076
+ static createInterface(): IAccessManagerInterface {
1077
+ return new Interface(_abi) as IAccessManagerInterface;
1078
+ }
1079
+ static connect(
1080
+ address: string,
1081
+ runner?: ContractRunner | null
1082
+ ): IAccessManager {
1083
+ return new Contract(address, _abi, runner) as unknown as IAccessManager;
1084
+ }
1085
+ }