@zentity/fhevm-contracts 0.3.0 → 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.
Files changed (117) hide show
  1. package/abi/ComplianceRules.json +25 -16
  2. package/abi/CompliantERC20.json +30 -16
  3. package/abi/IdentityRegistry.json +496 -119
  4. package/contracts/compliance/ComplianceRules.sol +40 -189
  5. package/contracts/core/IdentityRegistry.sol +280 -232
  6. package/contracts/interfaces/IComplianceRules.sol +30 -0
  7. package/contracts/interfaces/IIdentityRegistry.sol +133 -159
  8. package/contracts/proxy/ERC1967Proxy.sol +6 -0
  9. package/contracts/test/MockFacilitator.sol +40 -0
  10. package/contracts/tokens/CompliantERC20.sol +28 -242
  11. package/deployments/hardhat/addresses.json +3 -8
  12. package/dist/index.d.ts +175 -9
  13. package/dist/index.d.ts.map +1 -1
  14. package/dist/index.js +44 -1
  15. package/package.json +1 -1
  16. package/typechain-types/@openzeppelin/contracts/access/Ownable.ts +153 -0
  17. package/typechain-types/@openzeppelin/contracts/access/Ownable2Step.ts +217 -0
  18. package/typechain-types/@openzeppelin/contracts/access/index.ts +5 -0
  19. package/typechain-types/@openzeppelin/contracts/index.ts +11 -0
  20. package/typechain-types/@openzeppelin/contracts/interfaces/IERC1967.ts +168 -0
  21. package/typechain-types/@openzeppelin/contracts/interfaces/IERC5267.ts +151 -0
  22. package/typechain-types/{contracts/tokens/CompliantERC20.sol/IComplianceChecker.ts → @openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable.ts} +12 -17
  23. package/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/index.ts +4 -0
  24. package/typechain-types/@openzeppelin/contracts/interfaces/index.ts +7 -0
  25. package/typechain-types/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.ts +105 -0
  26. package/typechain-types/@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.ts +69 -0
  27. package/typechain-types/@openzeppelin/contracts/proxy/ERC1967/index.ts +5 -0
  28. package/typechain-types/@openzeppelin/contracts/proxy/Proxy.ts +69 -0
  29. package/typechain-types/@openzeppelin/contracts/proxy/beacon/IBeacon.ts +90 -0
  30. package/typechain-types/@openzeppelin/contracts/proxy/beacon/index.ts +4 -0
  31. package/typechain-types/@openzeppelin/contracts/proxy/index.ts +8 -0
  32. package/typechain-types/@openzeppelin/contracts/utils/Address.ts +69 -0
  33. package/typechain-types/@openzeppelin/contracts/utils/Errors.ts +69 -0
  34. package/typechain-types/@openzeppelin/contracts/utils/Strings.ts +69 -0
  35. package/typechain-types/@openzeppelin/contracts/utils/cryptography/ECDSA.ts +69 -0
  36. package/typechain-types/@openzeppelin/contracts/utils/cryptography/index.ts +4 -0
  37. package/typechain-types/@openzeppelin/contracts/utils/index.ts +10 -0
  38. package/typechain-types/@openzeppelin/contracts/utils/math/SafeCast.ts +69 -0
  39. package/typechain-types/@openzeppelin/contracts/utils/math/index.ts +4 -0
  40. package/typechain-types/@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.ts +251 -0
  41. package/typechain-types/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.ts +186 -0
  42. package/typechain-types/@openzeppelin/contracts-upgradeable/access/index.ts +5 -0
  43. package/typechain-types/@openzeppelin/contracts-upgradeable/index.ts +9 -0
  44. package/typechain-types/@openzeppelin/contracts-upgradeable/proxy/index.ts +5 -0
  45. package/typechain-types/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.ts +105 -0
  46. package/typechain-types/@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.ts +196 -0
  47. package/typechain-types/@openzeppelin/contracts-upgradeable/proxy/utils/index.ts +5 -0
  48. package/typechain-types/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.ts +105 -0
  49. package/typechain-types/@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.ts +184 -0
  50. package/typechain-types/@openzeppelin/contracts-upgradeable/utils/cryptography/index.ts +4 -0
  51. package/typechain-types/@openzeppelin/contracts-upgradeable/utils/index.ts +6 -0
  52. package/typechain-types/@openzeppelin/index.ts +7 -0
  53. package/typechain-types/contracts/compliance/ComplianceRules.ts +18 -7
  54. package/typechain-types/contracts/core/IdentityRegistry.ts +493 -233
  55. package/typechain-types/contracts/index.ts +2 -0
  56. package/typechain-types/contracts/interfaces/IComplianceRules.ts +290 -0
  57. package/typechain-types/contracts/interfaces/IIdentityRegistry.ts +269 -341
  58. package/typechain-types/contracts/interfaces/index.ts +1 -0
  59. package/typechain-types/contracts/test/MockFacilitator.ts +187 -0
  60. package/typechain-types/contracts/test/index.ts +4 -0
  61. package/typechain-types/contracts/tokens/{CompliantERC20.sol/CompliantERC20.ts → CompliantERC20.ts} +19 -8
  62. package/typechain-types/contracts/tokens/index.ts +1 -2
  63. package/typechain-types/factories/@openzeppelin/contracts/access/Ownable2Step__factory.ts +138 -0
  64. package/typechain-types/factories/@openzeppelin/contracts/access/Ownable__factory.ts +96 -0
  65. package/typechain-types/factories/@openzeppelin/contracts/access/index.ts +5 -0
  66. package/typechain-types/factories/@openzeppelin/contracts/index.ts +7 -0
  67. package/typechain-types/factories/@openzeppelin/contracts/interfaces/IERC1967__factory.ts +67 -0
  68. package/typechain-types/factories/@openzeppelin/contracts/interfaces/IERC5267__factory.ts +71 -0
  69. package/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable__factory.ts +38 -0
  70. package/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/index.ts +4 -0
  71. package/typechain-types/factories/@openzeppelin/contracts/interfaces/index.ts +6 -0
  72. package/typechain-types/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy__factory.ts +144 -0
  73. package/typechain-types/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils__factory.ts +105 -0
  74. package/typechain-types/factories/@openzeppelin/contracts/proxy/ERC1967/index.ts +5 -0
  75. package/typechain-types/factories/@openzeppelin/contracts/proxy/Proxy__factory.ts +26 -0
  76. package/typechain-types/factories/@openzeppelin/contracts/proxy/beacon/IBeacon__factory.ts +35 -0
  77. package/typechain-types/factories/@openzeppelin/contracts/proxy/beacon/index.ts +4 -0
  78. package/typechain-types/factories/@openzeppelin/contracts/proxy/index.ts +6 -0
  79. package/typechain-types/factories/@openzeppelin/contracts/utils/Address__factory.ts +75 -0
  80. package/typechain-types/factories/@openzeppelin/contracts/utils/Errors__factory.ts +101 -0
  81. package/typechain-types/factories/@openzeppelin/contracts/utils/Strings__factory.ts +90 -0
  82. package/typechain-types/factories/@openzeppelin/contracts/utils/cryptography/ECDSA__factory.ts +91 -0
  83. package/typechain-types/factories/@openzeppelin/contracts/utils/cryptography/index.ts +4 -0
  84. package/typechain-types/factories/@openzeppelin/contracts/utils/index.ts +8 -0
  85. package/typechain-types/factories/@openzeppelin/contracts/utils/math/SafeCast__factory.ts +118 -0
  86. package/typechain-types/factories/@openzeppelin/contracts/utils/math/index.ts +4 -0
  87. package/typechain-types/factories/@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable__factory.ts +165 -0
  88. package/typechain-types/factories/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable__factory.ts +122 -0
  89. package/typechain-types/factories/@openzeppelin/contracts-upgradeable/access/index.ts +5 -0
  90. package/typechain-types/factories/@openzeppelin/contracts-upgradeable/index.ts +6 -0
  91. package/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/index.ts +4 -0
  92. package/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable__factory.ts +48 -0
  93. package/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable__factory.ts +153 -0
  94. package/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/index.ts +5 -0
  95. package/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable__factory.ts +48 -0
  96. package/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable__factory.ts +97 -0
  97. package/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/cryptography/index.ts +4 -0
  98. package/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/index.ts +5 -0
  99. package/typechain-types/factories/@openzeppelin/index.ts +5 -0
  100. package/typechain-types/factories/contracts/compliance/ComplianceRules__factory.ts +26 -17
  101. package/typechain-types/factories/contracts/core/IdentityRegistry__factory.ts +493 -116
  102. package/typechain-types/factories/contracts/index.ts +1 -0
  103. package/typechain-types/factories/contracts/interfaces/IComplianceRules__factory.ts +193 -0
  104. package/typechain-types/factories/contracts/interfaces/IIdentityRegistry__factory.ts +236 -186
  105. package/typechain-types/factories/contracts/interfaces/index.ts +1 -0
  106. package/typechain-types/factories/contracts/test/MockFacilitator__factory.ts +194 -0
  107. package/typechain-types/factories/contracts/test/index.ts +4 -0
  108. package/typechain-types/factories/contracts/tokens/CompliantERC20__factory.ts +595 -0
  109. package/typechain-types/factories/contracts/tokens/index.ts +1 -1
  110. package/typechain-types/factories/index.ts +1 -0
  111. package/typechain-types/hardhat.d.ts +394 -16
  112. package/typechain-types/index.ts +48 -4
  113. package/deployments/hardhat/.chainId +0 -1
  114. package/typechain-types/contracts/tokens/CompliantERC20.sol/index.ts +0 -5
  115. package/typechain-types/factories/contracts/tokens/CompliantERC20.sol/CompliantERC20__factory.ts +0 -581
  116. package/typechain-types/factories/contracts/tokens/CompliantERC20.sol/IComplianceChecker__factory.ts +0 -44
  117. package/typechain-types/factories/contracts/tokens/CompliantERC20.sol/index.ts +0 -5
@@ -23,84 +23,163 @@ import type {
23
23
  TypedContractMethod,
24
24
  } from "../../common";
25
25
 
26
+ export declare namespace IIdentityRegistry {
27
+ export type AttestPermitDataStruct = {
28
+ birthYearOffset: BigNumberish;
29
+ countryCode: BigNumberish;
30
+ complianceLevel: BigNumberish;
31
+ isBlacklisted: boolean;
32
+ proofSetHash: BytesLike;
33
+ policyVersion: BigNumberish;
34
+ deadline: BigNumberish;
35
+ v: BigNumberish;
36
+ r: BytesLike;
37
+ s: BytesLike;
38
+ };
39
+
40
+ export type AttestPermitDataStructOutput = [
41
+ birthYearOffset: bigint,
42
+ countryCode: bigint,
43
+ complianceLevel: bigint,
44
+ isBlacklisted: boolean,
45
+ proofSetHash: string,
46
+ policyVersion: bigint,
47
+ deadline: bigint,
48
+ v: bigint,
49
+ r: string,
50
+ s: string
51
+ ] & {
52
+ birthYearOffset: bigint;
53
+ countryCode: bigint;
54
+ complianceLevel: bigint;
55
+ isBlacklisted: boolean;
56
+ proofSetHash: string;
57
+ policyVersion: bigint;
58
+ deadline: bigint;
59
+ v: bigint;
60
+ r: string;
61
+ s: string;
62
+ };
63
+ }
64
+
26
65
  export interface IdentityRegistryInterface extends Interface {
27
66
  getFunction(
28
67
  nameOrSignature:
68
+ | "ATTEST_PERMIT_TYPEHASH"
69
+ | "ATTR_ALL"
70
+ | "ATTR_BIRTH_YEAR"
71
+ | "ATTR_BLACKLIST"
72
+ | "ATTR_COMPLIANCE"
73
+ | "ATTR_COUNTRY"
74
+ | "UPGRADE_INTERFACE_VERSION"
29
75
  | "acceptOwnership"
30
- | "addRegistrar"
31
- | "attestIdentity"
76
+ | "attestWithPermit"
32
77
  | "attestationTimestamp"
33
- | "confidentialProtocolId"
78
+ | "checkCompliance"
34
79
  | "currentAttestationId"
35
- | "getAttestationMetadata"
80
+ | "eip712Domain"
36
81
  | "getBirthYearOffset"
37
- | "getBlacklistResult"
38
82
  | "getBlacklistStatus"
39
83
  | "getComplianceLevel"
40
- | "getComplianceLevelResult"
41
84
  | "getCountryCode"
42
- | "getCountryResult"
85
+ | "getGrantedAttributes"
86
+ | "getPolicyVersion"
87
+ | "getProofSetHash"
88
+ | "getVerificationResult"
43
89
  | "grantAccessTo"
90
+ | "grantAttributeAccess"
44
91
  | "hasMinComplianceLevel"
92
+ | "initialize"
45
93
  | "isAttested"
46
94
  | "isFromCountry"
47
95
  | "isNotBlacklisted"
48
96
  | "latestAttestationId"
97
+ | "nonces"
49
98
  | "owner"
50
99
  | "pendingOwner"
100
+ | "policyVersions"
101
+ | "proofSetHashes"
102
+ | "proxiableUUID"
51
103
  | "registrars"
52
- | "removeRegistrar"
104
+ | "renounceOwnership"
53
105
  | "revokeIdentity"
106
+ | "revokeIdentityFor"
107
+ | "setRegistrar"
54
108
  | "transferOwnership"
109
+ | "upgradeToAndCall"
55
110
  ): FunctionFragment;
56
111
 
57
112
  getEvent(
58
113
  nameOrSignatureOrTopic:
59
- | "AccessGranted"
114
+ | "AttributeAccessGranted"
115
+ | "EIP712DomainChanged"
60
116
  | "IdentityAttested"
61
- | "IdentityAttestedDetailed"
62
117
  | "IdentityRevoked"
63
- | "IdentityRevokedDetailed"
118
+ | "Initialized"
64
119
  | "OwnershipTransferStarted"
65
120
  | "OwnershipTransferred"
66
- | "RegistrarAdded"
67
- | "RegistrarRemoved"
121
+ | "RegistrarUpdated"
122
+ | "Upgraded"
68
123
  ): EventFragment;
69
124
 
70
125
  encodeFunctionData(
71
- functionFragment: "acceptOwnership",
126
+ functionFragment: "ATTEST_PERMIT_TYPEHASH",
72
127
  values?: undefined
73
128
  ): string;
129
+ encodeFunctionData(functionFragment: "ATTR_ALL", values?: undefined): string;
74
130
  encodeFunctionData(
75
- functionFragment: "addRegistrar",
76
- values: [AddressLike]
131
+ functionFragment: "ATTR_BIRTH_YEAR",
132
+ values?: undefined
133
+ ): string;
134
+ encodeFunctionData(
135
+ functionFragment: "ATTR_BLACKLIST",
136
+ values?: undefined
77
137
  ): string;
78
138
  encodeFunctionData(
79
- functionFragment: "attestIdentity",
80
- values: [AddressLike, BytesLike, BytesLike, BytesLike, BytesLike, BytesLike]
139
+ functionFragment: "ATTR_COMPLIANCE",
140
+ values?: undefined
81
141
  ): string;
82
142
  encodeFunctionData(
83
- functionFragment: "attestationTimestamp",
84
- values: [AddressLike]
143
+ functionFragment: "ATTR_COUNTRY",
144
+ values?: undefined
85
145
  ): string;
86
146
  encodeFunctionData(
87
- functionFragment: "confidentialProtocolId",
147
+ functionFragment: "UPGRADE_INTERFACE_VERSION",
88
148
  values?: undefined
89
149
  ): string;
90
150
  encodeFunctionData(
91
- functionFragment: "currentAttestationId",
151
+ functionFragment: "acceptOwnership",
152
+ values?: undefined
153
+ ): string;
154
+ encodeFunctionData(
155
+ functionFragment: "attestWithPermit",
156
+ values: [
157
+ IIdentityRegistry.AttestPermitDataStruct,
158
+ BytesLike,
159
+ BytesLike,
160
+ BytesLike,
161
+ BytesLike,
162
+ BytesLike
163
+ ]
164
+ ): string;
165
+ encodeFunctionData(
166
+ functionFragment: "attestationTimestamp",
92
167
  values: [AddressLike]
93
168
  ): string;
94
169
  encodeFunctionData(
95
- functionFragment: "getAttestationMetadata",
170
+ functionFragment: "checkCompliance",
96
171
  values: [AddressLike, BigNumberish]
97
172
  ): string;
98
173
  encodeFunctionData(
99
- functionFragment: "getBirthYearOffset",
174
+ functionFragment: "currentAttestationId",
100
175
  values: [AddressLike]
101
176
  ): string;
102
177
  encodeFunctionData(
103
- functionFragment: "getBlacklistResult",
178
+ functionFragment: "eip712Domain",
179
+ values?: undefined
180
+ ): string;
181
+ encodeFunctionData(
182
+ functionFragment: "getBirthYearOffset",
104
183
  values: [AddressLike]
105
184
  ): string;
106
185
  encodeFunctionData(
@@ -112,25 +191,41 @@ export interface IdentityRegistryInterface extends Interface {
112
191
  values: [AddressLike]
113
192
  ): string;
114
193
  encodeFunctionData(
115
- functionFragment: "getComplianceLevelResult",
116
- values: [AddressLike, BigNumberish]
194
+ functionFragment: "getCountryCode",
195
+ values: [AddressLike]
117
196
  ): string;
118
197
  encodeFunctionData(
119
- functionFragment: "getCountryCode",
198
+ functionFragment: "getGrantedAttributes",
199
+ values: [AddressLike, AddressLike]
200
+ ): string;
201
+ encodeFunctionData(
202
+ functionFragment: "getPolicyVersion",
120
203
  values: [AddressLike]
121
204
  ): string;
122
205
  encodeFunctionData(
123
- functionFragment: "getCountryResult",
124
- values: [AddressLike, BigNumberish]
206
+ functionFragment: "getProofSetHash",
207
+ values: [AddressLike]
208
+ ): string;
209
+ encodeFunctionData(
210
+ functionFragment: "getVerificationResult",
211
+ values: [BytesLike]
125
212
  ): string;
126
213
  encodeFunctionData(
127
214
  functionFragment: "grantAccessTo",
128
215
  values: [AddressLike]
129
216
  ): string;
217
+ encodeFunctionData(
218
+ functionFragment: "grantAttributeAccess",
219
+ values: [AddressLike, BigNumberish, BigNumberish]
220
+ ): string;
130
221
  encodeFunctionData(
131
222
  functionFragment: "hasMinComplianceLevel",
132
223
  values: [AddressLike, BigNumberish]
133
224
  ): string;
225
+ encodeFunctionData(
226
+ functionFragment: "initialize",
227
+ values: [AddressLike]
228
+ ): string;
134
229
  encodeFunctionData(
135
230
  functionFragment: "isAttested",
136
231
  values: [AddressLike]
@@ -145,40 +240,86 @@ export interface IdentityRegistryInterface extends Interface {
145
240
  ): string;
146
241
  encodeFunctionData(
147
242
  functionFragment: "latestAttestationId",
148
- values: [AddressLike]
243
+ values?: undefined
149
244
  ): string;
245
+ encodeFunctionData(functionFragment: "nonces", values: [AddressLike]): string;
150
246
  encodeFunctionData(functionFragment: "owner", values?: undefined): string;
151
247
  encodeFunctionData(
152
248
  functionFragment: "pendingOwner",
153
249
  values?: undefined
154
250
  ): string;
155
251
  encodeFunctionData(
156
- functionFragment: "registrars",
252
+ functionFragment: "policyVersions",
253
+ values: [AddressLike]
254
+ ): string;
255
+ encodeFunctionData(
256
+ functionFragment: "proofSetHashes",
157
257
  values: [AddressLike]
158
258
  ): string;
159
259
  encodeFunctionData(
160
- functionFragment: "removeRegistrar",
260
+ functionFragment: "proxiableUUID",
261
+ values?: undefined
262
+ ): string;
263
+ encodeFunctionData(
264
+ functionFragment: "registrars",
161
265
  values: [AddressLike]
162
266
  ): string;
267
+ encodeFunctionData(
268
+ functionFragment: "renounceOwnership",
269
+ values?: undefined
270
+ ): string;
163
271
  encodeFunctionData(
164
272
  functionFragment: "revokeIdentity",
273
+ values?: undefined
274
+ ): string;
275
+ encodeFunctionData(
276
+ functionFragment: "revokeIdentityFor",
165
277
  values: [AddressLike]
166
278
  ): string;
279
+ encodeFunctionData(
280
+ functionFragment: "setRegistrar",
281
+ values: [AddressLike, boolean]
282
+ ): string;
167
283
  encodeFunctionData(
168
284
  functionFragment: "transferOwnership",
169
285
  values: [AddressLike]
170
286
  ): string;
287
+ encodeFunctionData(
288
+ functionFragment: "upgradeToAndCall",
289
+ values: [AddressLike, BytesLike]
290
+ ): string;
171
291
 
172
292
  decodeFunctionResult(
173
- functionFragment: "acceptOwnership",
293
+ functionFragment: "ATTEST_PERMIT_TYPEHASH",
174
294
  data: BytesLike
175
295
  ): Result;
296
+ decodeFunctionResult(functionFragment: "ATTR_ALL", data: BytesLike): Result;
176
297
  decodeFunctionResult(
177
- functionFragment: "addRegistrar",
298
+ functionFragment: "ATTR_BIRTH_YEAR",
178
299
  data: BytesLike
179
300
  ): Result;
180
301
  decodeFunctionResult(
181
- functionFragment: "attestIdentity",
302
+ functionFragment: "ATTR_BLACKLIST",
303
+ data: BytesLike
304
+ ): Result;
305
+ decodeFunctionResult(
306
+ functionFragment: "ATTR_COMPLIANCE",
307
+ data: BytesLike
308
+ ): Result;
309
+ decodeFunctionResult(
310
+ functionFragment: "ATTR_COUNTRY",
311
+ data: BytesLike
312
+ ): Result;
313
+ decodeFunctionResult(
314
+ functionFragment: "UPGRADE_INTERFACE_VERSION",
315
+ data: BytesLike
316
+ ): Result;
317
+ decodeFunctionResult(
318
+ functionFragment: "acceptOwnership",
319
+ data: BytesLike
320
+ ): Result;
321
+ decodeFunctionResult(
322
+ functionFragment: "attestWithPermit",
182
323
  data: BytesLike
183
324
  ): Result;
184
325
  decodeFunctionResult(
@@ -186,7 +327,7 @@ export interface IdentityRegistryInterface extends Interface {
186
327
  data: BytesLike
187
328
  ): Result;
188
329
  decodeFunctionResult(
189
- functionFragment: "confidentialProtocolId",
330
+ functionFragment: "checkCompliance",
190
331
  data: BytesLike
191
332
  ): Result;
192
333
  decodeFunctionResult(
@@ -194,7 +335,7 @@ export interface IdentityRegistryInterface extends Interface {
194
335
  data: BytesLike
195
336
  ): Result;
196
337
  decodeFunctionResult(
197
- functionFragment: "getAttestationMetadata",
338
+ functionFragment: "eip712Domain",
198
339
  data: BytesLike
199
340
  ): Result;
200
341
  decodeFunctionResult(
@@ -202,37 +343,46 @@ export interface IdentityRegistryInterface extends Interface {
202
343
  data: BytesLike
203
344
  ): Result;
204
345
  decodeFunctionResult(
205
- functionFragment: "getBlacklistResult",
346
+ functionFragment: "getBlacklistStatus",
206
347
  data: BytesLike
207
348
  ): Result;
208
349
  decodeFunctionResult(
209
- functionFragment: "getBlacklistStatus",
350
+ functionFragment: "getComplianceLevel",
210
351
  data: BytesLike
211
352
  ): Result;
212
353
  decodeFunctionResult(
213
- functionFragment: "getComplianceLevel",
354
+ functionFragment: "getCountryCode",
214
355
  data: BytesLike
215
356
  ): Result;
216
357
  decodeFunctionResult(
217
- functionFragment: "getComplianceLevelResult",
358
+ functionFragment: "getGrantedAttributes",
218
359
  data: BytesLike
219
360
  ): Result;
220
361
  decodeFunctionResult(
221
- functionFragment: "getCountryCode",
362
+ functionFragment: "getPolicyVersion",
222
363
  data: BytesLike
223
364
  ): Result;
224
365
  decodeFunctionResult(
225
- functionFragment: "getCountryResult",
366
+ functionFragment: "getProofSetHash",
367
+ data: BytesLike
368
+ ): Result;
369
+ decodeFunctionResult(
370
+ functionFragment: "getVerificationResult",
226
371
  data: BytesLike
227
372
  ): Result;
228
373
  decodeFunctionResult(
229
374
  functionFragment: "grantAccessTo",
230
375
  data: BytesLike
231
376
  ): Result;
377
+ decodeFunctionResult(
378
+ functionFragment: "grantAttributeAccess",
379
+ data: BytesLike
380
+ ): Result;
232
381
  decodeFunctionResult(
233
382
  functionFragment: "hasMinComplianceLevel",
234
383
  data: BytesLike
235
384
  ): Result;
385
+ decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
236
386
  decodeFunctionResult(functionFragment: "isAttested", data: BytesLike): Result;
237
387
  decodeFunctionResult(
238
388
  functionFragment: "isFromCountry",
@@ -246,32 +396,69 @@ export interface IdentityRegistryInterface extends Interface {
246
396
  functionFragment: "latestAttestationId",
247
397
  data: BytesLike
248
398
  ): Result;
399
+ decodeFunctionResult(functionFragment: "nonces", data: BytesLike): Result;
249
400
  decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
250
401
  decodeFunctionResult(
251
402
  functionFragment: "pendingOwner",
252
403
  data: BytesLike
253
404
  ): Result;
405
+ decodeFunctionResult(
406
+ functionFragment: "policyVersions",
407
+ data: BytesLike
408
+ ): Result;
409
+ decodeFunctionResult(
410
+ functionFragment: "proofSetHashes",
411
+ data: BytesLike
412
+ ): Result;
413
+ decodeFunctionResult(
414
+ functionFragment: "proxiableUUID",
415
+ data: BytesLike
416
+ ): Result;
254
417
  decodeFunctionResult(functionFragment: "registrars", data: BytesLike): Result;
255
418
  decodeFunctionResult(
256
- functionFragment: "removeRegistrar",
419
+ functionFragment: "renounceOwnership",
257
420
  data: BytesLike
258
421
  ): Result;
259
422
  decodeFunctionResult(
260
423
  functionFragment: "revokeIdentity",
261
424
  data: BytesLike
262
425
  ): Result;
426
+ decodeFunctionResult(
427
+ functionFragment: "revokeIdentityFor",
428
+ data: BytesLike
429
+ ): Result;
430
+ decodeFunctionResult(
431
+ functionFragment: "setRegistrar",
432
+ data: BytesLike
433
+ ): Result;
263
434
  decodeFunctionResult(
264
435
  functionFragment: "transferOwnership",
265
436
  data: BytesLike
266
437
  ): Result;
438
+ decodeFunctionResult(
439
+ functionFragment: "upgradeToAndCall",
440
+ data: BytesLike
441
+ ): Result;
267
442
  }
268
443
 
269
- export namespace AccessGrantedEvent {
270
- export type InputTuple = [user: AddressLike, grantee: AddressLike];
271
- export type OutputTuple = [user: string, grantee: string];
444
+ export namespace AttributeAccessGrantedEvent {
445
+ export type InputTuple = [
446
+ user: AddressLike,
447
+ grantee: AddressLike,
448
+ attributeMask: BigNumberish,
449
+ purpose: BigNumberish
450
+ ];
451
+ export type OutputTuple = [
452
+ user: string,
453
+ grantee: string,
454
+ attributeMask: bigint,
455
+ purpose: bigint
456
+ ];
272
457
  export interface OutputObject {
273
458
  user: string;
274
459
  grantee: string;
460
+ attributeMask: bigint;
461
+ purpose: bigint;
275
462
  }
276
463
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
277
464
  export type Filter = TypedDeferredTopicFilter<Event>;
@@ -279,37 +466,21 @@ export namespace AccessGrantedEvent {
279
466
  export type LogDescription = TypedLogDescription<Event>;
280
467
  }
281
468
 
282
- export namespace IdentityAttestedEvent {
283
- export type InputTuple = [user: AddressLike, registrar: AddressLike];
284
- export type OutputTuple = [user: string, registrar: string];
285
- export interface OutputObject {
286
- user: string;
287
- registrar: string;
288
- }
469
+ export namespace EIP712DomainChangedEvent {
470
+ export type InputTuple = [];
471
+ export type OutputTuple = [];
472
+ export interface OutputObject {}
289
473
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
290
474
  export type Filter = TypedDeferredTopicFilter<Event>;
291
475
  export type Log = TypedEventLog<Event>;
292
476
  export type LogDescription = TypedLogDescription<Event>;
293
477
  }
294
478
 
295
- export namespace IdentityAttestedDetailedEvent {
296
- export type InputTuple = [
297
- user: AddressLike,
298
- registrar: AddressLike,
299
- attestationId: BigNumberish,
300
- timestamp: BigNumberish
301
- ];
302
- export type OutputTuple = [
303
- user: string,
304
- registrar: string,
305
- attestationId: bigint,
306
- timestamp: bigint
307
- ];
479
+ export namespace IdentityAttestedEvent {
480
+ export type InputTuple = [user: AddressLike];
481
+ export type OutputTuple = [user: string];
308
482
  export interface OutputObject {
309
483
  user: string;
310
- registrar: string;
311
- attestationId: bigint;
312
- timestamp: bigint;
313
484
  }
314
485
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
315
486
  export type Filter = TypedDeferredTopicFilter<Event>;
@@ -329,24 +500,11 @@ export namespace IdentityRevokedEvent {
329
500
  export type LogDescription = TypedLogDescription<Event>;
330
501
  }
331
502
 
332
- export namespace IdentityRevokedDetailedEvent {
333
- export type InputTuple = [
334
- user: AddressLike,
335
- registrar: AddressLike,
336
- attestationId: BigNumberish,
337
- timestamp: BigNumberish
338
- ];
339
- export type OutputTuple = [
340
- user: string,
341
- registrar: string,
342
- attestationId: bigint,
343
- timestamp: bigint
344
- ];
503
+ export namespace InitializedEvent {
504
+ export type InputTuple = [version: BigNumberish];
505
+ export type OutputTuple = [version: bigint];
345
506
  export interface OutputObject {
346
- user: string;
347
- registrar: string;
348
- attestationId: bigint;
349
- timestamp: bigint;
507
+ version: bigint;
350
508
  }
351
509
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
352
510
  export type Filter = TypedDeferredTopicFilter<Event>;
@@ -355,14 +513,11 @@ export namespace IdentityRevokedDetailedEvent {
355
513
  }
356
514
 
357
515
  export namespace OwnershipTransferStartedEvent {
358
- export type InputTuple = [
359
- currentOwner: AddressLike,
360
- pendingOwner: AddressLike
361
- ];
362
- export type OutputTuple = [currentOwner: string, pendingOwner: string];
516
+ export type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike];
517
+ export type OutputTuple = [previousOwner: string, newOwner: string];
363
518
  export interface OutputObject {
364
- currentOwner: string;
365
- pendingOwner: string;
519
+ previousOwner: string;
520
+ newOwner: string;
366
521
  }
367
522
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
368
523
  export type Filter = TypedDeferredTopicFilter<Event>;
@@ -383,11 +538,12 @@ export namespace OwnershipTransferredEvent {
383
538
  export type LogDescription = TypedLogDescription<Event>;
384
539
  }
385
540
 
386
- export namespace RegistrarAddedEvent {
387
- export type InputTuple = [registrar: AddressLike];
388
- export type OutputTuple = [registrar: string];
541
+ export namespace RegistrarUpdatedEvent {
542
+ export type InputTuple = [registrar: AddressLike, status: boolean];
543
+ export type OutputTuple = [registrar: string, status: boolean];
389
544
  export interface OutputObject {
390
545
  registrar: string;
546
+ status: boolean;
391
547
  }
392
548
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
393
549
  export type Filter = TypedDeferredTopicFilter<Event>;
@@ -395,11 +551,11 @@ export namespace RegistrarAddedEvent {
395
551
  export type LogDescription = TypedLogDescription<Event>;
396
552
  }
397
553
 
398
- export namespace RegistrarRemovedEvent {
399
- export type InputTuple = [registrar: AddressLike];
400
- export type OutputTuple = [registrar: string];
554
+ export namespace UpgradedEvent {
555
+ export type InputTuple = [implementation: AddressLike];
556
+ export type OutputTuple = [implementation: string];
401
557
  export interface OutputObject {
402
- registrar: string;
558
+ implementation: string;
403
559
  }
404
560
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
405
561
  export type Filter = TypedDeferredTopicFilter<Event>;
@@ -450,17 +606,25 @@ export interface IdentityRegistry extends BaseContract {
450
606
  event?: TCEvent
451
607
  ): Promise<this>;
452
608
 
453
- acceptOwnership: TypedContractMethod<[], [void], "nonpayable">;
609
+ ATTEST_PERMIT_TYPEHASH: TypedContractMethod<[], [string], "view">;
454
610
 
455
- addRegistrar: TypedContractMethod<
456
- [registrar: AddressLike],
457
- [void],
458
- "nonpayable"
459
- >;
611
+ ATTR_ALL: TypedContractMethod<[], [bigint], "view">;
612
+
613
+ ATTR_BIRTH_YEAR: TypedContractMethod<[], [bigint], "view">;
614
+
615
+ ATTR_BLACKLIST: TypedContractMethod<[], [bigint], "view">;
616
+
617
+ ATTR_COMPLIANCE: TypedContractMethod<[], [bigint], "view">;
460
618
 
461
- attestIdentity: TypedContractMethod<
619
+ ATTR_COUNTRY: TypedContractMethod<[], [bigint], "view">;
620
+
621
+ UPGRADE_INTERFACE_VERSION: TypedContractMethod<[], [string], "view">;
622
+
623
+ acceptOwnership: TypedContractMethod<[], [void], "nonpayable">;
624
+
625
+ attestWithPermit: TypedContractMethod<
462
626
  [
463
- user: AddressLike,
627
+ permit: IIdentityRegistry.AttestPermitDataStruct,
464
628
  encBirthYearOffset: BytesLike,
465
629
  encCountryCode: BytesLike,
466
630
  encComplianceLevel: BytesLike,
@@ -477,7 +641,11 @@ export interface IdentityRegistry extends BaseContract {
477
641
  "view"
478
642
  >;
479
643
 
480
- confidentialProtocolId: TypedContractMethod<[], [bigint], "view">;
644
+ checkCompliance: TypedContractMethod<
645
+ [user: AddressLike, minLevel: BigNumberish],
646
+ [string],
647
+ "nonpayable"
648
+ >;
481
649
 
482
650
  currentAttestationId: TypedContractMethod<
483
651
  [user: AddressLike],
@@ -485,13 +653,17 @@ export interface IdentityRegistry extends BaseContract {
485
653
  "view"
486
654
  >;
487
655
 
488
- getAttestationMetadata: TypedContractMethod<
489
- [user: AddressLike, attestationId: BigNumberish],
656
+ eip712Domain: TypedContractMethod<
657
+ [],
490
658
  [
491
- [bigint, bigint, string] & {
492
- timestamp: bigint;
493
- revokedAt: bigint;
494
- registrar: string;
659
+ [string, string, string, bigint, string, string, bigint[]] & {
660
+ fields: string;
661
+ name: string;
662
+ version: string;
663
+ chainId: bigint;
664
+ verifyingContract: string;
665
+ salt: string;
666
+ extensions: bigint[];
495
667
  }
496
668
  ],
497
669
  "view"
@@ -503,12 +675,6 @@ export interface IdentityRegistry extends BaseContract {
503
675
  "view"
504
676
  >;
505
677
 
506
- getBlacklistResult: TypedContractMethod<
507
- [user: AddressLike],
508
- [string],
509
- "view"
510
- >;
511
-
512
678
  getBlacklistStatus: TypedContractMethod<
513
679
  [user: AddressLike],
514
680
  [string],
@@ -521,16 +687,20 @@ export interface IdentityRegistry extends BaseContract {
521
687
  "view"
522
688
  >;
523
689
 
524
- getComplianceLevelResult: TypedContractMethod<
525
- [user: AddressLike, minLevel: BigNumberish],
526
- [string],
690
+ getCountryCode: TypedContractMethod<[user: AddressLike], [string], "view">;
691
+
692
+ getGrantedAttributes: TypedContractMethod<
693
+ [user: AddressLike, grantee: AddressLike],
694
+ [bigint],
527
695
  "view"
528
696
  >;
529
697
 
530
- getCountryCode: TypedContractMethod<[user: AddressLike], [string], "view">;
698
+ getPolicyVersion: TypedContractMethod<[user: AddressLike], [bigint], "view">;
531
699
 
532
- getCountryResult: TypedContractMethod<
533
- [user: AddressLike, country: BigNumberish],
700
+ getProofSetHash: TypedContractMethod<[user: AddressLike], [string], "view">;
701
+
702
+ getVerificationResult: TypedContractMethod<
703
+ [key: BytesLike],
534
704
  [string],
535
705
  "view"
536
706
  >;
@@ -541,12 +711,24 @@ export interface IdentityRegistry extends BaseContract {
541
711
  "nonpayable"
542
712
  >;
543
713
 
714
+ grantAttributeAccess: TypedContractMethod<
715
+ [grantee: AddressLike, attributeMask: BigNumberish, purpose: BigNumberish],
716
+ [void],
717
+ "nonpayable"
718
+ >;
719
+
544
720
  hasMinComplianceLevel: TypedContractMethod<
545
721
  [user: AddressLike, minLevel: BigNumberish],
546
722
  [string],
547
723
  "nonpayable"
548
724
  >;
549
725
 
726
+ initialize: TypedContractMethod<
727
+ [initialOwner: AddressLike],
728
+ [void],
729
+ "nonpayable"
730
+ >;
731
+
550
732
  isAttested: TypedContractMethod<[user: AddressLike], [boolean], "view">;
551
733
 
552
734
  isFromCountry: TypedContractMethod<
@@ -561,26 +743,34 @@ export interface IdentityRegistry extends BaseContract {
561
743
  "nonpayable"
562
744
  >;
563
745
 
564
- latestAttestationId: TypedContractMethod<
565
- [user: AddressLike],
566
- [bigint],
567
- "view"
568
- >;
746
+ latestAttestationId: TypedContractMethod<[], [bigint], "view">;
747
+
748
+ nonces: TypedContractMethod<[user: AddressLike], [bigint], "view">;
569
749
 
570
750
  owner: TypedContractMethod<[], [string], "view">;
571
751
 
572
752
  pendingOwner: TypedContractMethod<[], [string], "view">;
573
753
 
754
+ policyVersions: TypedContractMethod<[user: AddressLike], [bigint], "view">;
755
+
756
+ proofSetHashes: TypedContractMethod<[user: AddressLike], [string], "view">;
757
+
758
+ proxiableUUID: TypedContractMethod<[], [string], "view">;
759
+
574
760
  registrars: TypedContractMethod<[registrar: AddressLike], [boolean], "view">;
575
761
 
576
- removeRegistrar: TypedContractMethod<
577
- [registrar: AddressLike],
762
+ renounceOwnership: TypedContractMethod<[], [void], "nonpayable">;
763
+
764
+ revokeIdentity: TypedContractMethod<[], [void], "nonpayable">;
765
+
766
+ revokeIdentityFor: TypedContractMethod<
767
+ [user: AddressLike],
578
768
  [void],
579
769
  "nonpayable"
580
770
  >;
581
771
 
582
- revokeIdentity: TypedContractMethod<
583
- [user: AddressLike],
772
+ setRegistrar: TypedContractMethod<
773
+ [registrar: AddressLike, status: boolean],
584
774
  [void],
585
775
  "nonpayable"
586
776
  >;
@@ -591,21 +781,45 @@ export interface IdentityRegistry extends BaseContract {
591
781
  "nonpayable"
592
782
  >;
593
783
 
784
+ upgradeToAndCall: TypedContractMethod<
785
+ [newImplementation: AddressLike, data: BytesLike],
786
+ [void],
787
+ "payable"
788
+ >;
789
+
594
790
  getFunction<T extends ContractMethod = ContractMethod>(
595
791
  key: string | FunctionFragment
596
792
  ): T;
597
793
 
794
+ getFunction(
795
+ nameOrSignature: "ATTEST_PERMIT_TYPEHASH"
796
+ ): TypedContractMethod<[], [string], "view">;
797
+ getFunction(
798
+ nameOrSignature: "ATTR_ALL"
799
+ ): TypedContractMethod<[], [bigint], "view">;
800
+ getFunction(
801
+ nameOrSignature: "ATTR_BIRTH_YEAR"
802
+ ): TypedContractMethod<[], [bigint], "view">;
803
+ getFunction(
804
+ nameOrSignature: "ATTR_BLACKLIST"
805
+ ): TypedContractMethod<[], [bigint], "view">;
806
+ getFunction(
807
+ nameOrSignature: "ATTR_COMPLIANCE"
808
+ ): TypedContractMethod<[], [bigint], "view">;
809
+ getFunction(
810
+ nameOrSignature: "ATTR_COUNTRY"
811
+ ): TypedContractMethod<[], [bigint], "view">;
812
+ getFunction(
813
+ nameOrSignature: "UPGRADE_INTERFACE_VERSION"
814
+ ): TypedContractMethod<[], [string], "view">;
598
815
  getFunction(
599
816
  nameOrSignature: "acceptOwnership"
600
817
  ): TypedContractMethod<[], [void], "nonpayable">;
601
818
  getFunction(
602
- nameOrSignature: "addRegistrar"
603
- ): TypedContractMethod<[registrar: AddressLike], [void], "nonpayable">;
604
- getFunction(
605
- nameOrSignature: "attestIdentity"
819
+ nameOrSignature: "attestWithPermit"
606
820
  ): TypedContractMethod<
607
821
  [
608
- user: AddressLike,
822
+ permit: IIdentityRegistry.AttestPermitDataStruct,
609
823
  encBirthYearOffset: BytesLike,
610
824
  encCountryCode: BytesLike,
611
825
  encComplianceLevel: BytesLike,
@@ -619,20 +833,28 @@ export interface IdentityRegistry extends BaseContract {
619
833
  nameOrSignature: "attestationTimestamp"
620
834
  ): TypedContractMethod<[user: AddressLike], [bigint], "view">;
621
835
  getFunction(
622
- nameOrSignature: "confidentialProtocolId"
623
- ): TypedContractMethod<[], [bigint], "view">;
836
+ nameOrSignature: "checkCompliance"
837
+ ): TypedContractMethod<
838
+ [user: AddressLike, minLevel: BigNumberish],
839
+ [string],
840
+ "nonpayable"
841
+ >;
624
842
  getFunction(
625
843
  nameOrSignature: "currentAttestationId"
626
844
  ): TypedContractMethod<[user: AddressLike], [bigint], "view">;
627
845
  getFunction(
628
- nameOrSignature: "getAttestationMetadata"
846
+ nameOrSignature: "eip712Domain"
629
847
  ): TypedContractMethod<
630
- [user: AddressLike, attestationId: BigNumberish],
848
+ [],
631
849
  [
632
- [bigint, bigint, string] & {
633
- timestamp: bigint;
634
- revokedAt: bigint;
635
- registrar: string;
850
+ [string, string, string, bigint, string, string, bigint[]] & {
851
+ fields: string;
852
+ name: string;
853
+ version: string;
854
+ chainId: bigint;
855
+ verifyingContract: string;
856
+ salt: string;
857
+ extensions: bigint[];
636
858
  }
637
859
  ],
638
860
  "view"
@@ -640,35 +862,41 @@ export interface IdentityRegistry extends BaseContract {
640
862
  getFunction(
641
863
  nameOrSignature: "getBirthYearOffset"
642
864
  ): TypedContractMethod<[user: AddressLike], [string], "view">;
643
- getFunction(
644
- nameOrSignature: "getBlacklistResult"
645
- ): TypedContractMethod<[user: AddressLike], [string], "view">;
646
865
  getFunction(
647
866
  nameOrSignature: "getBlacklistStatus"
648
867
  ): TypedContractMethod<[user: AddressLike], [string], "view">;
649
868
  getFunction(
650
869
  nameOrSignature: "getComplianceLevel"
651
870
  ): TypedContractMethod<[user: AddressLike], [string], "view">;
652
- getFunction(
653
- nameOrSignature: "getComplianceLevelResult"
654
- ): TypedContractMethod<
655
- [user: AddressLike, minLevel: BigNumberish],
656
- [string],
657
- "view"
658
- >;
659
871
  getFunction(
660
872
  nameOrSignature: "getCountryCode"
661
873
  ): TypedContractMethod<[user: AddressLike], [string], "view">;
662
874
  getFunction(
663
- nameOrSignature: "getCountryResult"
875
+ nameOrSignature: "getGrantedAttributes"
664
876
  ): TypedContractMethod<
665
- [user: AddressLike, country: BigNumberish],
666
- [string],
877
+ [user: AddressLike, grantee: AddressLike],
878
+ [bigint],
667
879
  "view"
668
880
  >;
881
+ getFunction(
882
+ nameOrSignature: "getPolicyVersion"
883
+ ): TypedContractMethod<[user: AddressLike], [bigint], "view">;
884
+ getFunction(
885
+ nameOrSignature: "getProofSetHash"
886
+ ): TypedContractMethod<[user: AddressLike], [string], "view">;
887
+ getFunction(
888
+ nameOrSignature: "getVerificationResult"
889
+ ): TypedContractMethod<[key: BytesLike], [string], "view">;
669
890
  getFunction(
670
891
  nameOrSignature: "grantAccessTo"
671
892
  ): TypedContractMethod<[grantee: AddressLike], [void], "nonpayable">;
893
+ getFunction(
894
+ nameOrSignature: "grantAttributeAccess"
895
+ ): TypedContractMethod<
896
+ [grantee: AddressLike, attributeMask: BigNumberish, purpose: BigNumberish],
897
+ [void],
898
+ "nonpayable"
899
+ >;
672
900
  getFunction(
673
901
  nameOrSignature: "hasMinComplianceLevel"
674
902
  ): TypedContractMethod<
@@ -676,6 +904,9 @@ export interface IdentityRegistry extends BaseContract {
676
904
  [string],
677
905
  "nonpayable"
678
906
  >;
907
+ getFunction(
908
+ nameOrSignature: "initialize"
909
+ ): TypedContractMethod<[initialOwner: AddressLike], [void], "nonpayable">;
679
910
  getFunction(
680
911
  nameOrSignature: "isAttested"
681
912
  ): TypedContractMethod<[user: AddressLike], [boolean], "view">;
@@ -691,6 +922,9 @@ export interface IdentityRegistry extends BaseContract {
691
922
  ): TypedContractMethod<[user: AddressLike], [string], "nonpayable">;
692
923
  getFunction(
693
924
  nameOrSignature: "latestAttestationId"
925
+ ): TypedContractMethod<[], [bigint], "view">;
926
+ getFunction(
927
+ nameOrSignature: "nonces"
694
928
  ): TypedContractMethod<[user: AddressLike], [bigint], "view">;
695
929
  getFunction(
696
930
  nameOrSignature: "owner"
@@ -698,25 +932,58 @@ export interface IdentityRegistry extends BaseContract {
698
932
  getFunction(
699
933
  nameOrSignature: "pendingOwner"
700
934
  ): TypedContractMethod<[], [string], "view">;
935
+ getFunction(
936
+ nameOrSignature: "policyVersions"
937
+ ): TypedContractMethod<[user: AddressLike], [bigint], "view">;
938
+ getFunction(
939
+ nameOrSignature: "proofSetHashes"
940
+ ): TypedContractMethod<[user: AddressLike], [string], "view">;
941
+ getFunction(
942
+ nameOrSignature: "proxiableUUID"
943
+ ): TypedContractMethod<[], [string], "view">;
701
944
  getFunction(
702
945
  nameOrSignature: "registrars"
703
946
  ): TypedContractMethod<[registrar: AddressLike], [boolean], "view">;
704
947
  getFunction(
705
- nameOrSignature: "removeRegistrar"
706
- ): TypedContractMethod<[registrar: AddressLike], [void], "nonpayable">;
948
+ nameOrSignature: "renounceOwnership"
949
+ ): TypedContractMethod<[], [void], "nonpayable">;
707
950
  getFunction(
708
951
  nameOrSignature: "revokeIdentity"
952
+ ): TypedContractMethod<[], [void], "nonpayable">;
953
+ getFunction(
954
+ nameOrSignature: "revokeIdentityFor"
709
955
  ): TypedContractMethod<[user: AddressLike], [void], "nonpayable">;
956
+ getFunction(
957
+ nameOrSignature: "setRegistrar"
958
+ ): TypedContractMethod<
959
+ [registrar: AddressLike, status: boolean],
960
+ [void],
961
+ "nonpayable"
962
+ >;
710
963
  getFunction(
711
964
  nameOrSignature: "transferOwnership"
712
965
  ): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">;
966
+ getFunction(
967
+ nameOrSignature: "upgradeToAndCall"
968
+ ): TypedContractMethod<
969
+ [newImplementation: AddressLike, data: BytesLike],
970
+ [void],
971
+ "payable"
972
+ >;
713
973
 
714
974
  getEvent(
715
- key: "AccessGranted"
975
+ key: "AttributeAccessGranted"
716
976
  ): TypedContractEvent<
717
- AccessGrantedEvent.InputTuple,
718
- AccessGrantedEvent.OutputTuple,
719
- AccessGrantedEvent.OutputObject
977
+ AttributeAccessGrantedEvent.InputTuple,
978
+ AttributeAccessGrantedEvent.OutputTuple,
979
+ AttributeAccessGrantedEvent.OutputObject
980
+ >;
981
+ getEvent(
982
+ key: "EIP712DomainChanged"
983
+ ): TypedContractEvent<
984
+ EIP712DomainChangedEvent.InputTuple,
985
+ EIP712DomainChangedEvent.OutputTuple,
986
+ EIP712DomainChangedEvent.OutputObject
720
987
  >;
721
988
  getEvent(
722
989
  key: "IdentityAttested"
@@ -725,13 +992,6 @@ export interface IdentityRegistry extends BaseContract {
725
992
  IdentityAttestedEvent.OutputTuple,
726
993
  IdentityAttestedEvent.OutputObject
727
994
  >;
728
- getEvent(
729
- key: "IdentityAttestedDetailed"
730
- ): TypedContractEvent<
731
- IdentityAttestedDetailedEvent.InputTuple,
732
- IdentityAttestedDetailedEvent.OutputTuple,
733
- IdentityAttestedDetailedEvent.OutputObject
734
- >;
735
995
  getEvent(
736
996
  key: "IdentityRevoked"
737
997
  ): TypedContractEvent<
@@ -740,11 +1000,11 @@ export interface IdentityRegistry extends BaseContract {
740
1000
  IdentityRevokedEvent.OutputObject
741
1001
  >;
742
1002
  getEvent(
743
- key: "IdentityRevokedDetailed"
1003
+ key: "Initialized"
744
1004
  ): TypedContractEvent<
745
- IdentityRevokedDetailedEvent.InputTuple,
746
- IdentityRevokedDetailedEvent.OutputTuple,
747
- IdentityRevokedDetailedEvent.OutputObject
1005
+ InitializedEvent.InputTuple,
1006
+ InitializedEvent.OutputTuple,
1007
+ InitializedEvent.OutputObject
748
1008
  >;
749
1009
  getEvent(
750
1010
  key: "OwnershipTransferStarted"
@@ -761,33 +1021,44 @@ export interface IdentityRegistry extends BaseContract {
761
1021
  OwnershipTransferredEvent.OutputObject
762
1022
  >;
763
1023
  getEvent(
764
- key: "RegistrarAdded"
1024
+ key: "RegistrarUpdated"
765
1025
  ): TypedContractEvent<
766
- RegistrarAddedEvent.InputTuple,
767
- RegistrarAddedEvent.OutputTuple,
768
- RegistrarAddedEvent.OutputObject
1026
+ RegistrarUpdatedEvent.InputTuple,
1027
+ RegistrarUpdatedEvent.OutputTuple,
1028
+ RegistrarUpdatedEvent.OutputObject
769
1029
  >;
770
1030
  getEvent(
771
- key: "RegistrarRemoved"
1031
+ key: "Upgraded"
772
1032
  ): TypedContractEvent<
773
- RegistrarRemovedEvent.InputTuple,
774
- RegistrarRemovedEvent.OutputTuple,
775
- RegistrarRemovedEvent.OutputObject
1033
+ UpgradedEvent.InputTuple,
1034
+ UpgradedEvent.OutputTuple,
1035
+ UpgradedEvent.OutputObject
776
1036
  >;
777
1037
 
778
1038
  filters: {
779
- "AccessGranted(address,address)": TypedContractEvent<
780
- AccessGrantedEvent.InputTuple,
781
- AccessGrantedEvent.OutputTuple,
782
- AccessGrantedEvent.OutputObject
1039
+ "AttributeAccessGranted(address,address,uint8,uint8)": TypedContractEvent<
1040
+ AttributeAccessGrantedEvent.InputTuple,
1041
+ AttributeAccessGrantedEvent.OutputTuple,
1042
+ AttributeAccessGrantedEvent.OutputObject
1043
+ >;
1044
+ AttributeAccessGranted: TypedContractEvent<
1045
+ AttributeAccessGrantedEvent.InputTuple,
1046
+ AttributeAccessGrantedEvent.OutputTuple,
1047
+ AttributeAccessGrantedEvent.OutputObject
1048
+ >;
1049
+
1050
+ "EIP712DomainChanged()": TypedContractEvent<
1051
+ EIP712DomainChangedEvent.InputTuple,
1052
+ EIP712DomainChangedEvent.OutputTuple,
1053
+ EIP712DomainChangedEvent.OutputObject
783
1054
  >;
784
- AccessGranted: TypedContractEvent<
785
- AccessGrantedEvent.InputTuple,
786
- AccessGrantedEvent.OutputTuple,
787
- AccessGrantedEvent.OutputObject
1055
+ EIP712DomainChanged: TypedContractEvent<
1056
+ EIP712DomainChangedEvent.InputTuple,
1057
+ EIP712DomainChangedEvent.OutputTuple,
1058
+ EIP712DomainChangedEvent.OutputObject
788
1059
  >;
789
1060
 
790
- "IdentityAttested(address,address)": TypedContractEvent<
1061
+ "IdentityAttested(address)": TypedContractEvent<
791
1062
  IdentityAttestedEvent.InputTuple,
792
1063
  IdentityAttestedEvent.OutputTuple,
793
1064
  IdentityAttestedEvent.OutputObject
@@ -798,17 +1069,6 @@ export interface IdentityRegistry extends BaseContract {
798
1069
  IdentityAttestedEvent.OutputObject
799
1070
  >;
800
1071
 
801
- "IdentityAttestedDetailed(address,address,uint256,uint256)": TypedContractEvent<
802
- IdentityAttestedDetailedEvent.InputTuple,
803
- IdentityAttestedDetailedEvent.OutputTuple,
804
- IdentityAttestedDetailedEvent.OutputObject
805
- >;
806
- IdentityAttestedDetailed: TypedContractEvent<
807
- IdentityAttestedDetailedEvent.InputTuple,
808
- IdentityAttestedDetailedEvent.OutputTuple,
809
- IdentityAttestedDetailedEvent.OutputObject
810
- >;
811
-
812
1072
  "IdentityRevoked(address)": TypedContractEvent<
813
1073
  IdentityRevokedEvent.InputTuple,
814
1074
  IdentityRevokedEvent.OutputTuple,
@@ -820,15 +1080,15 @@ export interface IdentityRegistry extends BaseContract {
820
1080
  IdentityRevokedEvent.OutputObject
821
1081
  >;
822
1082
 
823
- "IdentityRevokedDetailed(address,address,uint256,uint256)": TypedContractEvent<
824
- IdentityRevokedDetailedEvent.InputTuple,
825
- IdentityRevokedDetailedEvent.OutputTuple,
826
- IdentityRevokedDetailedEvent.OutputObject
1083
+ "Initialized(uint64)": TypedContractEvent<
1084
+ InitializedEvent.InputTuple,
1085
+ InitializedEvent.OutputTuple,
1086
+ InitializedEvent.OutputObject
827
1087
  >;
828
- IdentityRevokedDetailed: TypedContractEvent<
829
- IdentityRevokedDetailedEvent.InputTuple,
830
- IdentityRevokedDetailedEvent.OutputTuple,
831
- IdentityRevokedDetailedEvent.OutputObject
1088
+ Initialized: TypedContractEvent<
1089
+ InitializedEvent.InputTuple,
1090
+ InitializedEvent.OutputTuple,
1091
+ InitializedEvent.OutputObject
832
1092
  >;
833
1093
 
834
1094
  "OwnershipTransferStarted(address,address)": TypedContractEvent<
@@ -853,26 +1113,26 @@ export interface IdentityRegistry extends BaseContract {
853
1113
  OwnershipTransferredEvent.OutputObject
854
1114
  >;
855
1115
 
856
- "RegistrarAdded(address)": TypedContractEvent<
857
- RegistrarAddedEvent.InputTuple,
858
- RegistrarAddedEvent.OutputTuple,
859
- RegistrarAddedEvent.OutputObject
1116
+ "RegistrarUpdated(address,bool)": TypedContractEvent<
1117
+ RegistrarUpdatedEvent.InputTuple,
1118
+ RegistrarUpdatedEvent.OutputTuple,
1119
+ RegistrarUpdatedEvent.OutputObject
860
1120
  >;
861
- RegistrarAdded: TypedContractEvent<
862
- RegistrarAddedEvent.InputTuple,
863
- RegistrarAddedEvent.OutputTuple,
864
- RegistrarAddedEvent.OutputObject
1121
+ RegistrarUpdated: TypedContractEvent<
1122
+ RegistrarUpdatedEvent.InputTuple,
1123
+ RegistrarUpdatedEvent.OutputTuple,
1124
+ RegistrarUpdatedEvent.OutputObject
865
1125
  >;
866
1126
 
867
- "RegistrarRemoved(address)": TypedContractEvent<
868
- RegistrarRemovedEvent.InputTuple,
869
- RegistrarRemovedEvent.OutputTuple,
870
- RegistrarRemovedEvent.OutputObject
1127
+ "Upgraded(address)": TypedContractEvent<
1128
+ UpgradedEvent.InputTuple,
1129
+ UpgradedEvent.OutputTuple,
1130
+ UpgradedEvent.OutputObject
871
1131
  >;
872
- RegistrarRemoved: TypedContractEvent<
873
- RegistrarRemovedEvent.InputTuple,
874
- RegistrarRemovedEvent.OutputTuple,
875
- RegistrarRemovedEvent.OutputObject
1132
+ Upgraded: TypedContractEvent<
1133
+ UpgradedEvent.InputTuple,
1134
+ UpgradedEvent.OutputTuple,
1135
+ UpgradedEvent.OutputObject
876
1136
  >;
877
1137
  };
878
1138
  }