@agenticprimitives/contracts 1.0.0-alpha.5 → 1.0.0-alpha.50

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 (145) hide show
  1. package/AUDIT.md +119 -27
  2. package/README.md +47 -12
  3. package/deployments-base-sepolia.json +52 -1
  4. package/deployments-faithchain.json +103 -0
  5. package/deployments-hopechain.json +78 -0
  6. package/deployments-paymaster-anvil.json +1 -0
  7. package/deployments-registries-base-sepolia.json +1 -0
  8. package/deployments-registries-hopechain.json +1 -0
  9. package/dist/abi/AccountBootstrap.json +99 -0
  10. package/dist/abi/AgentAccount.json +461 -67
  11. package/dist/abi/AgentAccountFactory.json +309 -0
  12. package/dist/abi/AgentNameAttributeResolver.json +212 -0
  13. package/dist/abi/AgentNameRegistry.json +544 -0
  14. package/dist/abi/AgentNameUniversalResolver.json +222 -0
  15. package/dist/abi/AgentProfileResolver.json +236 -0
  16. package/dist/abi/AgentRegistryBase.json +1003 -0
  17. package/dist/abi/AgentRelationship.json +405 -0
  18. package/dist/abi/AgenticGovernance.json +155 -0
  19. package/dist/abi/AgreementRegistry.json +203 -5
  20. package/dist/abi/AllowedMethodsEnforcer.json +193 -0
  21. package/dist/abi/AllowedTargetsEnforcer.json +193 -0
  22. package/dist/abi/ApprovedHashRegistry.json +267 -2
  23. package/dist/abi/AttestationRegistry.json +242 -0
  24. package/dist/abi/AttributeStorage.json +24 -0
  25. package/dist/abi/CallDataHashEnforcer.json +193 -0
  26. package/dist/abi/CustodyPolicy.json +422 -55
  27. package/dist/abi/DelegationManager.json +292 -0
  28. package/dist/abi/DigestBindingEnforcer.json +541 -0
  29. package/dist/abi/Eip7702.json +13 -0
  30. package/dist/abi/EstateProjectionRegistry.json +599 -0
  31. package/dist/abi/Generation5Bridge.json +355 -0
  32. package/dist/abi/GeoFeatureRegistry.json +235 -0
  33. package/dist/abi/IAgentAccountFactoryView.json +26 -0
  34. package/dist/abi/IAgentAccountGovernanceTimelockView.json +15 -0
  35. package/dist/abi/IApprovedHashRegistryWrite.json +35 -0
  36. package/dist/abi/ICustodyEpochView.json +28 -0
  37. package/dist/abi/ICustodyPolicyAccountModuleView.json +31 -0
  38. package/dist/abi/ICustodyPolicyFactoryView.json +13 -0
  39. package/dist/abi/ICustodyPolicyPasskeyView.json +50 -0
  40. package/dist/abi/IDelegationManager.json +18 -0
  41. package/dist/abi/IGeneration4Reads.json +143 -0
  42. package/dist/abi/IGeneration5Account.json +33 -0
  43. package/dist/abi/IGeneration5Voucher.json +26 -0
  44. package/dist/abi/IMoveAccountView.json +57 -0
  45. package/dist/abi/IMoveCustodyView.json +169 -0
  46. package/dist/abi/IMoveFactoryView.json +41 -0
  47. package/dist/abi/IPaymentReceiptRegistry.json +50 -0
  48. package/dist/abi/IRedemptionContext.json +15 -0
  49. package/dist/abi/IRegistryMembershipPolicy.json +70 -0
  50. package/dist/abi/ITimelockVeto.json +93 -0
  51. package/dist/abi/ITreasurySpendPolicyAccountView.json +44 -0
  52. package/dist/abi/IUpgradeVoucherView.json +26 -0
  53. package/dist/abi/MockUSDC.json +621 -0
  54. package/dist/abi/OntologyTermRegistry.json +268 -0
  55. package/dist/abi/PayloadClassesEnforcer.json +310 -0
  56. package/dist/abi/PaymentEnforcer.json +639 -0
  57. package/dist/abi/PaymentEscrow.json +501 -0
  58. package/dist/abi/PaymentReceiptRegistry.json +388 -0
  59. package/dist/abi/PermissionlessSubregistry.json +353 -0
  60. package/dist/abi/PricedSubregistry.json +1141 -0
  61. package/dist/abi/QuorumEnforcer.json +209 -0
  62. package/dist/abi/ReceiptAnchorRegistry.json +346 -0
  63. package/dist/abi/RelationshipTypeRegistry.json +268 -0
  64. package/dist/abi/ShapeRegistry.json +268 -0
  65. package/dist/abi/SignatureVerifier.json +196 -0
  66. package/dist/abi/SkillDefinitionRegistry.json +235 -0
  67. package/dist/abi/SmartAgentPaymaster.json +445 -1
  68. package/dist/abi/StableProxyGoverned.json +190 -0
  69. package/dist/abi/StableProxyGovernedOneShot.json +172 -0
  70. package/dist/abi/TimestampEnforcer.json +193 -0
  71. package/dist/abi/TreasurySpendPolicy.json +667 -0
  72. package/dist/abi/UpgradeVoucher.json +328 -0
  73. package/dist/abi/ValueEnforcer.json +193 -0
  74. package/dist/abi/index.d.ts +35 -0
  75. package/dist/abi/index.js +35 -0
  76. package/dist/deployments/base-sepolia.d.ts +11 -0
  77. package/dist/deployments/base-sepolia.js +51 -28
  78. package/dist/deployments/faithchain.d.ts +77 -0
  79. package/dist/deployments/faithchain.js +107 -0
  80. package/dist/deployments/hopechain.d.ts +68 -0
  81. package/dist/deployments/hopechain.js +82 -0
  82. package/dist/deployments/index.d.ts +7 -2
  83. package/dist/deployments/index.js +15 -0
  84. package/dist/deployments/paymaster-anvil.d.ts +11 -0
  85. package/dist/deployments/paymaster-anvil.js +9 -0
  86. package/dist/deployments/registries-base-sepolia.d.ts +10 -0
  87. package/dist/deployments/registries-base-sepolia.js +8 -0
  88. package/dist/deployments/registries-hopechain.d.ts +10 -0
  89. package/dist/deployments/registries-hopechain.js +8 -0
  90. package/package.json +37 -7
  91. package/src/AccountBootstrap.sol +38 -0
  92. package/src/AgentAccount.sol +1091 -134
  93. package/src/AgentAccountFactory.sol +198 -21
  94. package/src/ApprovedHashRegistry.sol +134 -10
  95. package/src/IAgentAccount.sol +37 -0
  96. package/src/SmartAgentPaymaster.sol +275 -22
  97. package/src/UniversalSignatureValidator.sol +7 -0
  98. package/src/UpgradeVoucher.sol +87 -0
  99. package/src/agency/DelegationManager.sol +299 -76
  100. package/src/agency/ICaveatEnforcer.sol +10 -0
  101. package/src/agency/IDelegationManager.sol +37 -5
  102. package/src/agreement/AgreementRegistry.sol +105 -35
  103. package/src/attestation/AttestationRegistry.sol +220 -40
  104. package/src/custody/CustodyPolicy.sol +588 -70
  105. package/src/custody/TreasurySpendPolicy.sol +338 -0
  106. package/src/enforcers/AllowedMethodsEnforcer.sol +13 -2
  107. package/src/enforcers/AllowedTargetsEnforcer.sol +13 -2
  108. package/src/enforcers/CallDataHashEnforcer.sol +7 -1
  109. package/src/enforcers/DigestBindingEnforcer.sol +182 -0
  110. package/src/enforcers/PayloadClassesEnforcer.sol +36 -0
  111. package/src/enforcers/PaymentEnforcer.sol +291 -0
  112. package/src/enforcers/QuorumEnforcer.sol +24 -3
  113. package/src/enforcers/TimestampEnforcer.sol +7 -1
  114. package/src/enforcers/ValueEnforcer.sol +13 -2
  115. package/src/geo/GeoFeatureRegistry.sol +67 -22
  116. package/src/governance/AgenticGovernance.sol +187 -4
  117. package/src/governance/GovernanceManaged.sol +2 -0
  118. package/src/governance/StableProxyGoverned.sol +79 -0
  119. package/src/governance/StableProxyGovernedOneShot.sol +93 -0
  120. package/src/identity/AgentProfilePredicates.sol +23 -0
  121. package/src/identity/AgentProfileResolver.sol +22 -2
  122. package/src/libraries/Eip7702.sol +36 -0
  123. package/src/libraries/SignatureSlotRecovery.sol +28 -7
  124. package/src/libraries/SignatureVerifier.sol +52 -0
  125. package/src/libraries/WebAuthnLib.sol +16 -0
  126. package/src/migration/Generation5Bridge.sol +364 -0
  127. package/src/mocks/MockUSDC.sol +152 -0
  128. package/src/naming/AgentNameAttributeResolver.sol +29 -4
  129. package/src/naming/AgentNamePredicates.sol +89 -0
  130. package/src/naming/AgentNameRegistry.sol +324 -20
  131. package/src/naming/AgentNameUniversalResolver.sol +35 -2
  132. package/src/naming/PermissionlessSubregistry.sol +82 -25
  133. package/src/naming/PricedSubregistry.sol +293 -0
  134. package/src/ontology/AttributeStorage.sol +93 -80
  135. package/src/ontology/OntologyTermRegistry.sol +58 -2
  136. package/src/ontology/ShapeRegistry.sol +58 -2
  137. package/src/payments/PaymentEscrow.sol +187 -0
  138. package/src/payments/PaymentReceiptRegistry.sol +100 -0
  139. package/src/provenance/ReceiptAnchorRegistry.sol +67 -0
  140. package/src/registry/AgentRegistryBase.sol +372 -0
  141. package/src/registry/EstateProjectionRegistry.sol +177 -0
  142. package/src/registry/IRegistryMembershipPolicy.sol +30 -0
  143. package/src/relationships/AgentRelationship.sol +129 -8
  144. package/src/relationships/RelationshipTypeRegistry.sol +58 -2
  145. package/src/skills/SkillDefinitionRegistry.sol +61 -17
@@ -1,4 +1,9 @@
1
1
  [
2
+ {
3
+ "type": "constructor",
4
+ "inputs": [],
5
+ "stateMutability": "nonpayable"
6
+ },
2
7
  {
3
8
  "type": "function",
4
9
  "name": "EPOCH_SECONDS",
@@ -77,6 +82,19 @@
77
82
  ],
78
83
  "stateMutability": "view"
79
84
  },
85
+ {
86
+ "type": "function",
87
+ "name": "UPGRADE_INTERFACE_VERSION",
88
+ "inputs": [],
89
+ "outputs": [
90
+ {
91
+ "name": "",
92
+ "type": "string",
93
+ "internalType": "string"
94
+ }
95
+ ],
96
+ "stateMutability": "view"
97
+ },
80
98
  {
81
99
  "type": "function",
82
100
  "name": "getRecord",
@@ -128,6 +146,32 @@
128
146
  ],
129
147
  "stateMutability": "view"
130
148
  },
149
+ {
150
+ "type": "function",
151
+ "name": "governance",
152
+ "inputs": [],
153
+ "outputs": [
154
+ {
155
+ "name": "",
156
+ "type": "address",
157
+ "internalType": "address"
158
+ }
159
+ ],
160
+ "stateMutability": "view"
161
+ },
162
+ {
163
+ "type": "function",
164
+ "name": "initialize",
165
+ "inputs": [
166
+ {
167
+ "name": "governance_",
168
+ "type": "address",
169
+ "internalType": "address"
170
+ }
171
+ ],
172
+ "outputs": [],
173
+ "stateMutability": "nonpayable"
174
+ },
131
175
  {
132
176
  "type": "function",
133
177
  "name": "isAssertableCommitment",
@@ -161,6 +205,11 @@
161
205
  "type": "function",
162
206
  "name": "isNullifierUsed",
163
207
  "inputs": [
208
+ {
209
+ "name": "agreementCommitment",
210
+ "type": "bytes32",
211
+ "internalType": "bytes32"
212
+ },
164
213
  {
165
214
  "name": "n",
166
215
  "type": "bytes32",
@@ -176,6 +225,19 @@
176
225
  ],
177
226
  "stateMutability": "view"
178
227
  },
228
+ {
229
+ "type": "function",
230
+ "name": "proxiableUUID",
231
+ "inputs": [],
232
+ "outputs": [
233
+ {
234
+ "name": "",
235
+ "type": "bytes32",
236
+ "internalType": "bytes32"
237
+ }
238
+ ],
239
+ "stateMutability": "view"
240
+ },
179
241
  {
180
242
  "type": "function",
181
243
  "name": "register",
@@ -195,11 +257,6 @@
195
257
  "type": "address",
196
258
  "internalType": "address"
197
259
  },
198
- {
199
- "name": "attestationStructHash",
200
- "type": "bytes32",
201
- "internalType": "bytes32"
202
- },
203
260
  {
204
261
  "name": "issuerSignature",
205
262
  "type": "bytes",
@@ -327,6 +384,24 @@
327
384
  "outputs": [],
328
385
  "stateMutability": "nonpayable"
329
386
  },
387
+ {
388
+ "type": "function",
389
+ "name": "upgradeToAndCall",
390
+ "inputs": [
391
+ {
392
+ "name": "newImplementation",
393
+ "type": "address",
394
+ "internalType": "address"
395
+ },
396
+ {
397
+ "name": "data",
398
+ "type": "bytes",
399
+ "internalType": "bytes"
400
+ }
401
+ ],
402
+ "outputs": [],
403
+ "stateMutability": "payable"
404
+ },
330
405
  {
331
406
  "type": "event",
332
407
  "name": "AgreementRegistered",
@@ -358,6 +433,32 @@
358
433
  ],
359
434
  "anonymous": false
360
435
  },
436
+ {
437
+ "type": "event",
438
+ "name": "GovernanceSet",
439
+ "inputs": [
440
+ {
441
+ "name": "governance",
442
+ "type": "address",
443
+ "indexed": true,
444
+ "internalType": "address"
445
+ }
446
+ ],
447
+ "anonymous": false
448
+ },
449
+ {
450
+ "type": "event",
451
+ "name": "Initialized",
452
+ "inputs": [
453
+ {
454
+ "name": "version",
455
+ "type": "uint64",
456
+ "indexed": false,
457
+ "internalType": "uint64"
458
+ }
459
+ ],
460
+ "anonymous": false
461
+ },
361
462
  {
362
463
  "type": "event",
363
464
  "name": "StatusUpdated",
@@ -389,6 +490,30 @@
389
490
  ],
390
491
  "anonymous": false
391
492
  },
493
+ {
494
+ "type": "event",
495
+ "name": "Upgraded",
496
+ "inputs": [
497
+ {
498
+ "name": "implementation",
499
+ "type": "address",
500
+ "indexed": true,
501
+ "internalType": "address"
502
+ }
503
+ ],
504
+ "anonymous": false
505
+ },
506
+ {
507
+ "type": "error",
508
+ "name": "AddressEmptyCode",
509
+ "inputs": [
510
+ {
511
+ "name": "target",
512
+ "type": "address",
513
+ "internalType": "address"
514
+ }
515
+ ]
516
+ },
392
517
  {
393
518
  "type": "error",
394
519
  "name": "AlreadyRegistered",
@@ -399,6 +524,43 @@
399
524
  "name": "CommitmentMismatch",
400
525
  "inputs": []
401
526
  },
527
+ {
528
+ "type": "error",
529
+ "name": "DelegatedEOA",
530
+ "inputs": [
531
+ {
532
+ "name": "account",
533
+ "type": "address",
534
+ "internalType": "address"
535
+ }
536
+ ]
537
+ },
538
+ {
539
+ "type": "error",
540
+ "name": "ERC1967InvalidImplementation",
541
+ "inputs": [
542
+ {
543
+ "name": "implementation",
544
+ "type": "address",
545
+ "internalType": "address"
546
+ }
547
+ ]
548
+ },
549
+ {
550
+ "type": "error",
551
+ "name": "ERC1967NonPayable",
552
+ "inputs": []
553
+ },
554
+ {
555
+ "type": "error",
556
+ "name": "FailedInnerCall",
557
+ "inputs": []
558
+ },
559
+ {
560
+ "type": "error",
561
+ "name": "InvalidInitialization",
562
+ "inputs": []
563
+ },
402
564
  {
403
565
  "type": "error",
404
566
  "name": "InvalidIssuerSignature",
@@ -414,6 +576,21 @@
414
576
  "name": "InvalidTransitionSignature",
415
577
  "inputs": []
416
578
  },
579
+ {
580
+ "type": "error",
581
+ "name": "IssuerNotBound",
582
+ "inputs": []
583
+ },
584
+ {
585
+ "type": "error",
586
+ "name": "NotGovernance",
587
+ "inputs": []
588
+ },
589
+ {
590
+ "type": "error",
591
+ "name": "NotInitializing",
592
+ "inputs": []
593
+ },
417
594
  {
418
595
  "type": "error",
419
596
  "name": "NotRegistered",
@@ -428,5 +605,26 @@
428
605
  "type": "error",
429
606
  "name": "SignerNotParty",
430
607
  "inputs": []
608
+ },
609
+ {
610
+ "type": "error",
611
+ "name": "UUPSUnauthorizedCallContext",
612
+ "inputs": []
613
+ },
614
+ {
615
+ "type": "error",
616
+ "name": "UUPSUnsupportedProxiableUUID",
617
+ "inputs": [
618
+ {
619
+ "name": "slot",
620
+ "type": "bytes32",
621
+ "internalType": "bytes32"
622
+ }
623
+ ]
624
+ },
625
+ {
626
+ "type": "error",
627
+ "name": "UpgradeWithoutGovernance",
628
+ "inputs": []
431
629
  }
432
630
  ]
@@ -1,4 +1,22 @@
1
1
  [
2
+ {
3
+ "type": "constructor",
4
+ "inputs": [],
5
+ "stateMutability": "nonpayable"
6
+ },
7
+ {
8
+ "type": "function",
9
+ "name": "UPGRADE_INTERFACE_VERSION",
10
+ "inputs": [],
11
+ "outputs": [
12
+ {
13
+ "name": "",
14
+ "type": "string",
15
+ "internalType": "string"
16
+ }
17
+ ],
18
+ "stateMutability": "view"
19
+ },
2
20
  {
3
21
  "type": "function",
4
22
  "name": "afterHook",
@@ -95,14 +113,189 @@
95
113
  "outputs": [],
96
114
  "stateMutability": "pure"
97
115
  },
116
+ {
117
+ "type": "function",
118
+ "name": "governance",
119
+ "inputs": [],
120
+ "outputs": [
121
+ {
122
+ "name": "",
123
+ "type": "address",
124
+ "internalType": "address"
125
+ }
126
+ ],
127
+ "stateMutability": "view"
128
+ },
129
+ {
130
+ "type": "function",
131
+ "name": "initialize",
132
+ "inputs": [
133
+ {
134
+ "name": "governance_",
135
+ "type": "address",
136
+ "internalType": "address"
137
+ }
138
+ ],
139
+ "outputs": [],
140
+ "stateMutability": "nonpayable"
141
+ },
142
+ {
143
+ "type": "function",
144
+ "name": "proxiableUUID",
145
+ "inputs": [],
146
+ "outputs": [
147
+ {
148
+ "name": "",
149
+ "type": "bytes32",
150
+ "internalType": "bytes32"
151
+ }
152
+ ],
153
+ "stateMutability": "view"
154
+ },
155
+ {
156
+ "type": "function",
157
+ "name": "upgradeToAndCall",
158
+ "inputs": [
159
+ {
160
+ "name": "newImplementation",
161
+ "type": "address",
162
+ "internalType": "address"
163
+ },
164
+ {
165
+ "name": "data",
166
+ "type": "bytes",
167
+ "internalType": "bytes"
168
+ }
169
+ ],
170
+ "outputs": [],
171
+ "stateMutability": "payable"
172
+ },
173
+ {
174
+ "type": "event",
175
+ "name": "GovernanceSet",
176
+ "inputs": [
177
+ {
178
+ "name": "governance",
179
+ "type": "address",
180
+ "indexed": true,
181
+ "internalType": "address"
182
+ }
183
+ ],
184
+ "anonymous": false
185
+ },
186
+ {
187
+ "type": "event",
188
+ "name": "Initialized",
189
+ "inputs": [
190
+ {
191
+ "name": "version",
192
+ "type": "uint64",
193
+ "indexed": false,
194
+ "internalType": "uint64"
195
+ }
196
+ ],
197
+ "anonymous": false
198
+ },
199
+ {
200
+ "type": "event",
201
+ "name": "Upgraded",
202
+ "inputs": [
203
+ {
204
+ "name": "implementation",
205
+ "type": "address",
206
+ "indexed": true,
207
+ "internalType": "address"
208
+ }
209
+ ],
210
+ "anonymous": false
211
+ },
212
+ {
213
+ "type": "error",
214
+ "name": "AddressEmptyCode",
215
+ "inputs": [
216
+ {
217
+ "name": "target",
218
+ "type": "address",
219
+ "internalType": "address"
220
+ }
221
+ ]
222
+ },
98
223
  {
99
224
  "type": "error",
100
225
  "name": "CalldataTooShort",
101
226
  "inputs": []
102
227
  },
228
+ {
229
+ "type": "error",
230
+ "name": "DelegatedEOA",
231
+ "inputs": [
232
+ {
233
+ "name": "account",
234
+ "type": "address",
235
+ "internalType": "address"
236
+ }
237
+ ]
238
+ },
239
+ {
240
+ "type": "error",
241
+ "name": "ERC1967InvalidImplementation",
242
+ "inputs": [
243
+ {
244
+ "name": "implementation",
245
+ "type": "address",
246
+ "internalType": "address"
247
+ }
248
+ ]
249
+ },
250
+ {
251
+ "type": "error",
252
+ "name": "ERC1967NonPayable",
253
+ "inputs": []
254
+ },
255
+ {
256
+ "type": "error",
257
+ "name": "FailedInnerCall",
258
+ "inputs": []
259
+ },
260
+ {
261
+ "type": "error",
262
+ "name": "InvalidInitialization",
263
+ "inputs": []
264
+ },
103
265
  {
104
266
  "type": "error",
105
267
  "name": "MethodNotAllowed",
106
268
  "inputs": []
269
+ },
270
+ {
271
+ "type": "error",
272
+ "name": "NotGovernance",
273
+ "inputs": []
274
+ },
275
+ {
276
+ "type": "error",
277
+ "name": "NotInitializing",
278
+ "inputs": []
279
+ },
280
+ {
281
+ "type": "error",
282
+ "name": "UUPSUnauthorizedCallContext",
283
+ "inputs": []
284
+ },
285
+ {
286
+ "type": "error",
287
+ "name": "UUPSUnsupportedProxiableUUID",
288
+ "inputs": [
289
+ {
290
+ "name": "slot",
291
+ "type": "bytes32",
292
+ "internalType": "bytes32"
293
+ }
294
+ ]
295
+ },
296
+ {
297
+ "type": "error",
298
+ "name": "UpgradeWithoutGovernance",
299
+ "inputs": []
107
300
  }
108
301
  ]
@@ -1,4 +1,22 @@
1
1
  [
2
+ {
3
+ "type": "constructor",
4
+ "inputs": [],
5
+ "stateMutability": "nonpayable"
6
+ },
7
+ {
8
+ "type": "function",
9
+ "name": "UPGRADE_INTERFACE_VERSION",
10
+ "inputs": [],
11
+ "outputs": [
12
+ {
13
+ "name": "",
14
+ "type": "string",
15
+ "internalType": "string"
16
+ }
17
+ ],
18
+ "stateMutability": "view"
19
+ },
2
20
  {
3
21
  "type": "function",
4
22
  "name": "afterHook",
@@ -95,9 +113,184 @@
95
113
  "outputs": [],
96
114
  "stateMutability": "pure"
97
115
  },
116
+ {
117
+ "type": "function",
118
+ "name": "governance",
119
+ "inputs": [],
120
+ "outputs": [
121
+ {
122
+ "name": "",
123
+ "type": "address",
124
+ "internalType": "address"
125
+ }
126
+ ],
127
+ "stateMutability": "view"
128
+ },
129
+ {
130
+ "type": "function",
131
+ "name": "initialize",
132
+ "inputs": [
133
+ {
134
+ "name": "governance_",
135
+ "type": "address",
136
+ "internalType": "address"
137
+ }
138
+ ],
139
+ "outputs": [],
140
+ "stateMutability": "nonpayable"
141
+ },
142
+ {
143
+ "type": "function",
144
+ "name": "proxiableUUID",
145
+ "inputs": [],
146
+ "outputs": [
147
+ {
148
+ "name": "",
149
+ "type": "bytes32",
150
+ "internalType": "bytes32"
151
+ }
152
+ ],
153
+ "stateMutability": "view"
154
+ },
155
+ {
156
+ "type": "function",
157
+ "name": "upgradeToAndCall",
158
+ "inputs": [
159
+ {
160
+ "name": "newImplementation",
161
+ "type": "address",
162
+ "internalType": "address"
163
+ },
164
+ {
165
+ "name": "data",
166
+ "type": "bytes",
167
+ "internalType": "bytes"
168
+ }
169
+ ],
170
+ "outputs": [],
171
+ "stateMutability": "payable"
172
+ },
173
+ {
174
+ "type": "event",
175
+ "name": "GovernanceSet",
176
+ "inputs": [
177
+ {
178
+ "name": "governance",
179
+ "type": "address",
180
+ "indexed": true,
181
+ "internalType": "address"
182
+ }
183
+ ],
184
+ "anonymous": false
185
+ },
186
+ {
187
+ "type": "event",
188
+ "name": "Initialized",
189
+ "inputs": [
190
+ {
191
+ "name": "version",
192
+ "type": "uint64",
193
+ "indexed": false,
194
+ "internalType": "uint64"
195
+ }
196
+ ],
197
+ "anonymous": false
198
+ },
199
+ {
200
+ "type": "event",
201
+ "name": "Upgraded",
202
+ "inputs": [
203
+ {
204
+ "name": "implementation",
205
+ "type": "address",
206
+ "indexed": true,
207
+ "internalType": "address"
208
+ }
209
+ ],
210
+ "anonymous": false
211
+ },
212
+ {
213
+ "type": "error",
214
+ "name": "AddressEmptyCode",
215
+ "inputs": [
216
+ {
217
+ "name": "target",
218
+ "type": "address",
219
+ "internalType": "address"
220
+ }
221
+ ]
222
+ },
223
+ {
224
+ "type": "error",
225
+ "name": "DelegatedEOA",
226
+ "inputs": [
227
+ {
228
+ "name": "account",
229
+ "type": "address",
230
+ "internalType": "address"
231
+ }
232
+ ]
233
+ },
234
+ {
235
+ "type": "error",
236
+ "name": "ERC1967InvalidImplementation",
237
+ "inputs": [
238
+ {
239
+ "name": "implementation",
240
+ "type": "address",
241
+ "internalType": "address"
242
+ }
243
+ ]
244
+ },
245
+ {
246
+ "type": "error",
247
+ "name": "ERC1967NonPayable",
248
+ "inputs": []
249
+ },
250
+ {
251
+ "type": "error",
252
+ "name": "FailedInnerCall",
253
+ "inputs": []
254
+ },
255
+ {
256
+ "type": "error",
257
+ "name": "InvalidInitialization",
258
+ "inputs": []
259
+ },
260
+ {
261
+ "type": "error",
262
+ "name": "NotGovernance",
263
+ "inputs": []
264
+ },
265
+ {
266
+ "type": "error",
267
+ "name": "NotInitializing",
268
+ "inputs": []
269
+ },
98
270
  {
99
271
  "type": "error",
100
272
  "name": "TargetNotAllowed",
101
273
  "inputs": []
274
+ },
275
+ {
276
+ "type": "error",
277
+ "name": "UUPSUnauthorizedCallContext",
278
+ "inputs": []
279
+ },
280
+ {
281
+ "type": "error",
282
+ "name": "UUPSUnsupportedProxiableUUID",
283
+ "inputs": [
284
+ {
285
+ "name": "slot",
286
+ "type": "bytes32",
287
+ "internalType": "bytes32"
288
+ }
289
+ ]
290
+ },
291
+ {
292
+ "type": "error",
293
+ "name": "UpgradeWithoutGovernance",
294
+ "inputs": []
102
295
  }
103
296
  ]