@zentity/fhevm-contracts 0.2.1 → 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.
- package/abi/ComplianceRules.json +25 -16
- package/abi/CompliantERC20.json +30 -16
- package/abi/IdentityRegistry.json +496 -119
- package/contracts/compliance/ComplianceRules.sol +40 -189
- package/contracts/core/IdentityRegistry.sol +280 -232
- package/contracts/interfaces/IComplianceRules.sol +30 -0
- package/contracts/interfaces/IIdentityRegistry.sol +133 -159
- package/contracts/proxy/ERC1967Proxy.sol +6 -0
- package/contracts/test/MockFacilitator.sol +40 -0
- package/contracts/tokens/CompliantERC20.sol +28 -242
- package/deployments/hardhat/addresses.json +3 -8
- package/deployments/sepolia/addresses.json +18 -0
- package/dist/index.d.ts +178 -14
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +71 -16
- package/package.json +3 -2
- package/typechain-types/@openzeppelin/contracts/access/Ownable.ts +153 -0
- package/typechain-types/@openzeppelin/contracts/access/Ownable2Step.ts +217 -0
- package/typechain-types/@openzeppelin/contracts/access/index.ts +5 -0
- package/typechain-types/@openzeppelin/contracts/index.ts +11 -0
- package/typechain-types/@openzeppelin/contracts/interfaces/IERC1967.ts +168 -0
- package/typechain-types/@openzeppelin/contracts/interfaces/IERC5267.ts +151 -0
- package/typechain-types/{contracts/tokens/CompliantERC20.sol/IComplianceChecker.ts → @openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable.ts} +12 -17
- package/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/index.ts +4 -0
- package/typechain-types/@openzeppelin/contracts/interfaces/index.ts +7 -0
- package/typechain-types/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.ts +105 -0
- package/typechain-types/@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.ts +69 -0
- package/typechain-types/@openzeppelin/contracts/proxy/ERC1967/index.ts +5 -0
- package/typechain-types/@openzeppelin/contracts/proxy/Proxy.ts +69 -0
- package/typechain-types/@openzeppelin/contracts/proxy/beacon/IBeacon.ts +90 -0
- package/typechain-types/@openzeppelin/contracts/proxy/beacon/index.ts +4 -0
- package/typechain-types/@openzeppelin/contracts/proxy/index.ts +8 -0
- package/typechain-types/@openzeppelin/contracts/utils/Address.ts +69 -0
- package/typechain-types/@openzeppelin/contracts/utils/Errors.ts +69 -0
- package/typechain-types/@openzeppelin/contracts/utils/Strings.ts +69 -0
- package/typechain-types/@openzeppelin/contracts/utils/cryptography/ECDSA.ts +69 -0
- package/typechain-types/@openzeppelin/contracts/utils/cryptography/index.ts +4 -0
- package/typechain-types/@openzeppelin/contracts/utils/index.ts +10 -0
- package/typechain-types/@openzeppelin/contracts/utils/math/SafeCast.ts +69 -0
- package/typechain-types/@openzeppelin/contracts/utils/math/index.ts +4 -0
- package/typechain-types/@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.ts +251 -0
- package/typechain-types/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.ts +186 -0
- package/typechain-types/@openzeppelin/contracts-upgradeable/access/index.ts +5 -0
- package/typechain-types/@openzeppelin/contracts-upgradeable/index.ts +9 -0
- package/typechain-types/@openzeppelin/contracts-upgradeable/proxy/index.ts +5 -0
- package/typechain-types/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.ts +105 -0
- package/typechain-types/@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.ts +196 -0
- package/typechain-types/@openzeppelin/contracts-upgradeable/proxy/utils/index.ts +5 -0
- package/typechain-types/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.ts +105 -0
- package/typechain-types/@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.ts +184 -0
- package/typechain-types/@openzeppelin/contracts-upgradeable/utils/cryptography/index.ts +4 -0
- package/typechain-types/@openzeppelin/contracts-upgradeable/utils/index.ts +6 -0
- package/typechain-types/@openzeppelin/index.ts +7 -0
- package/typechain-types/contracts/compliance/ComplianceRules.ts +18 -7
- package/typechain-types/contracts/core/IdentityRegistry.ts +493 -233
- package/typechain-types/contracts/index.ts +2 -0
- package/typechain-types/contracts/interfaces/IComplianceRules.ts +290 -0
- package/typechain-types/contracts/interfaces/IIdentityRegistry.ts +269 -341
- package/typechain-types/contracts/interfaces/index.ts +1 -0
- package/typechain-types/contracts/test/MockFacilitator.ts +187 -0
- package/typechain-types/contracts/test/index.ts +4 -0
- package/typechain-types/contracts/tokens/{CompliantERC20.sol/CompliantERC20.ts → CompliantERC20.ts} +19 -8
- package/typechain-types/contracts/tokens/index.ts +1 -2
- package/typechain-types/factories/@openzeppelin/contracts/access/Ownable2Step__factory.ts +138 -0
- package/typechain-types/factories/@openzeppelin/contracts/access/Ownable__factory.ts +96 -0
- package/typechain-types/factories/@openzeppelin/contracts/access/index.ts +5 -0
- package/typechain-types/factories/@openzeppelin/contracts/index.ts +7 -0
- package/typechain-types/factories/@openzeppelin/contracts/interfaces/IERC1967__factory.ts +67 -0
- package/typechain-types/factories/@openzeppelin/contracts/interfaces/IERC5267__factory.ts +71 -0
- package/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable__factory.ts +38 -0
- package/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/index.ts +4 -0
- package/typechain-types/factories/@openzeppelin/contracts/interfaces/index.ts +6 -0
- package/typechain-types/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy__factory.ts +144 -0
- package/typechain-types/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils__factory.ts +105 -0
- package/typechain-types/factories/@openzeppelin/contracts/proxy/ERC1967/index.ts +5 -0
- package/typechain-types/factories/@openzeppelin/contracts/proxy/Proxy__factory.ts +26 -0
- package/typechain-types/factories/@openzeppelin/contracts/proxy/beacon/IBeacon__factory.ts +35 -0
- package/typechain-types/factories/@openzeppelin/contracts/proxy/beacon/index.ts +4 -0
- package/typechain-types/factories/@openzeppelin/contracts/proxy/index.ts +6 -0
- package/typechain-types/factories/@openzeppelin/contracts/utils/Address__factory.ts +75 -0
- package/typechain-types/factories/@openzeppelin/contracts/utils/Errors__factory.ts +101 -0
- package/typechain-types/factories/@openzeppelin/contracts/utils/Strings__factory.ts +90 -0
- package/typechain-types/factories/@openzeppelin/contracts/utils/cryptography/ECDSA__factory.ts +91 -0
- package/typechain-types/factories/@openzeppelin/contracts/utils/cryptography/index.ts +4 -0
- package/typechain-types/factories/@openzeppelin/contracts/utils/index.ts +8 -0
- package/typechain-types/factories/@openzeppelin/contracts/utils/math/SafeCast__factory.ts +118 -0
- package/typechain-types/factories/@openzeppelin/contracts/utils/math/index.ts +4 -0
- package/typechain-types/factories/@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable__factory.ts +165 -0
- package/typechain-types/factories/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable__factory.ts +122 -0
- package/typechain-types/factories/@openzeppelin/contracts-upgradeable/access/index.ts +5 -0
- package/typechain-types/factories/@openzeppelin/contracts-upgradeable/index.ts +6 -0
- package/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/index.ts +4 -0
- package/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable__factory.ts +48 -0
- package/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable__factory.ts +153 -0
- package/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/index.ts +5 -0
- package/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable__factory.ts +48 -0
- package/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable__factory.ts +97 -0
- package/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/cryptography/index.ts +4 -0
- package/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/index.ts +5 -0
- package/typechain-types/factories/@openzeppelin/index.ts +5 -0
- package/typechain-types/factories/contracts/compliance/ComplianceRules__factory.ts +26 -17
- package/typechain-types/factories/contracts/core/IdentityRegistry__factory.ts +493 -116
- package/typechain-types/factories/contracts/index.ts +1 -0
- package/typechain-types/factories/contracts/interfaces/IComplianceRules__factory.ts +193 -0
- package/typechain-types/factories/contracts/interfaces/IIdentityRegistry__factory.ts +236 -186
- package/typechain-types/factories/contracts/interfaces/index.ts +1 -0
- package/typechain-types/factories/contracts/test/MockFacilitator__factory.ts +194 -0
- package/typechain-types/factories/contracts/test/index.ts +4 -0
- package/typechain-types/factories/contracts/tokens/CompliantERC20__factory.ts +595 -0
- package/typechain-types/factories/contracts/tokens/index.ts +1 -1
- package/typechain-types/factories/index.ts +1 -0
- package/typechain-types/hardhat.d.ts +394 -16
- package/typechain-types/index.ts +48 -4
- package/deployments/hardhat/.chainId +0 -1
- package/typechain-types/contracts/tokens/CompliantERC20.sol/index.ts +0 -5
- package/typechain-types/factories/contracts/tokens/CompliantERC20.sol/CompliantERC20__factory.ts +0 -581
- package/typechain-types/factories/contracts/tokens/CompliantERC20.sol/IComplianceChecker__factory.ts +0 -44
- package/typechain-types/factories/contracts/tokens/CompliantERC20.sol/index.ts +0 -5
|
@@ -9,6 +9,11 @@ import type {
|
|
|
9
9
|
} from "../../../contracts/interfaces/IIdentityRegistry";
|
|
10
10
|
|
|
11
11
|
const _abi = [
|
|
12
|
+
{
|
|
13
|
+
inputs: [],
|
|
14
|
+
name: "AccessProhibited",
|
|
15
|
+
type: "error",
|
|
16
|
+
},
|
|
12
17
|
{
|
|
13
18
|
inputs: [],
|
|
14
19
|
name: "AlreadyAttested",
|
|
@@ -16,7 +21,7 @@ const _abi = [
|
|
|
16
21
|
},
|
|
17
22
|
{
|
|
18
23
|
inputs: [],
|
|
19
|
-
name: "
|
|
24
|
+
name: "InvalidPermit",
|
|
20
25
|
type: "error",
|
|
21
26
|
},
|
|
22
27
|
{
|
|
@@ -26,17 +31,17 @@ const _abi = [
|
|
|
26
31
|
},
|
|
27
32
|
{
|
|
28
33
|
inputs: [],
|
|
29
|
-
name: "
|
|
34
|
+
name: "OnlyRegistrar",
|
|
30
35
|
type: "error",
|
|
31
36
|
},
|
|
32
37
|
{
|
|
33
38
|
inputs: [],
|
|
34
|
-
name: "
|
|
39
|
+
name: "PermitExpired",
|
|
35
40
|
type: "error",
|
|
36
41
|
},
|
|
37
42
|
{
|
|
38
43
|
inputs: [],
|
|
39
|
-
name: "
|
|
44
|
+
name: "ZeroAddress",
|
|
40
45
|
type: "error",
|
|
41
46
|
},
|
|
42
47
|
{
|
|
@@ -54,27 +59,20 @@ const _abi = [
|
|
|
54
59
|
name: "grantee",
|
|
55
60
|
type: "address",
|
|
56
61
|
},
|
|
57
|
-
],
|
|
58
|
-
name: "AccessGranted",
|
|
59
|
-
type: "event",
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
anonymous: false,
|
|
63
|
-
inputs: [
|
|
64
62
|
{
|
|
65
|
-
indexed:
|
|
66
|
-
internalType: "
|
|
67
|
-
name: "
|
|
68
|
-
type: "
|
|
63
|
+
indexed: false,
|
|
64
|
+
internalType: "uint8",
|
|
65
|
+
name: "attributeMask",
|
|
66
|
+
type: "uint8",
|
|
69
67
|
},
|
|
70
68
|
{
|
|
71
|
-
indexed:
|
|
72
|
-
internalType: "
|
|
73
|
-
name: "
|
|
74
|
-
type: "
|
|
69
|
+
indexed: false,
|
|
70
|
+
internalType: "enum IIdentityRegistry.Purpose",
|
|
71
|
+
name: "purpose",
|
|
72
|
+
type: "uint8",
|
|
75
73
|
},
|
|
76
74
|
],
|
|
77
|
-
name: "
|
|
75
|
+
name: "AttributeAccessGranted",
|
|
78
76
|
type: "event",
|
|
79
77
|
},
|
|
80
78
|
{
|
|
@@ -86,26 +84,8 @@ const _abi = [
|
|
|
86
84
|
name: "user",
|
|
87
85
|
type: "address",
|
|
88
86
|
},
|
|
89
|
-
{
|
|
90
|
-
indexed: true,
|
|
91
|
-
internalType: "address",
|
|
92
|
-
name: "registrar",
|
|
93
|
-
type: "address",
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
indexed: true,
|
|
97
|
-
internalType: "uint256",
|
|
98
|
-
name: "attestationId",
|
|
99
|
-
type: "uint256",
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
indexed: false,
|
|
103
|
-
internalType: "uint256",
|
|
104
|
-
name: "timestamp",
|
|
105
|
-
type: "uint256",
|
|
106
|
-
},
|
|
107
87
|
],
|
|
108
|
-
name: "
|
|
88
|
+
name: "IdentityAttested",
|
|
109
89
|
type: "event",
|
|
110
90
|
},
|
|
111
91
|
{
|
|
@@ -124,124 +104,145 @@ const _abi = [
|
|
|
124
104
|
{
|
|
125
105
|
anonymous: false,
|
|
126
106
|
inputs: [
|
|
127
|
-
{
|
|
128
|
-
indexed: true,
|
|
129
|
-
internalType: "address",
|
|
130
|
-
name: "user",
|
|
131
|
-
type: "address",
|
|
132
|
-
},
|
|
133
107
|
{
|
|
134
108
|
indexed: true,
|
|
135
109
|
internalType: "address",
|
|
136
110
|
name: "registrar",
|
|
137
111
|
type: "address",
|
|
138
112
|
},
|
|
139
|
-
{
|
|
140
|
-
indexed: true,
|
|
141
|
-
internalType: "uint256",
|
|
142
|
-
name: "attestationId",
|
|
143
|
-
type: "uint256",
|
|
144
|
-
},
|
|
145
113
|
{
|
|
146
114
|
indexed: false,
|
|
147
|
-
internalType: "
|
|
148
|
-
name: "
|
|
149
|
-
type: "
|
|
115
|
+
internalType: "bool",
|
|
116
|
+
name: "status",
|
|
117
|
+
type: "bool",
|
|
150
118
|
},
|
|
151
119
|
],
|
|
152
|
-
name: "
|
|
120
|
+
name: "RegistrarUpdated",
|
|
153
121
|
type: "event",
|
|
154
122
|
},
|
|
155
123
|
{
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
indexed: true,
|
|
160
|
-
internalType: "address",
|
|
161
|
-
name: "currentOwner",
|
|
162
|
-
type: "address",
|
|
163
|
-
},
|
|
124
|
+
inputs: [],
|
|
125
|
+
name: "ATTR_ALL",
|
|
126
|
+
outputs: [
|
|
164
127
|
{
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
type: "address",
|
|
128
|
+
internalType: "uint8",
|
|
129
|
+
name: "",
|
|
130
|
+
type: "uint8",
|
|
169
131
|
},
|
|
170
132
|
],
|
|
171
|
-
|
|
172
|
-
type: "
|
|
133
|
+
stateMutability: "pure",
|
|
134
|
+
type: "function",
|
|
173
135
|
},
|
|
174
136
|
{
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
indexed: true,
|
|
179
|
-
internalType: "address",
|
|
180
|
-
name: "previousOwner",
|
|
181
|
-
type: "address",
|
|
182
|
-
},
|
|
137
|
+
inputs: [],
|
|
138
|
+
name: "ATTR_BIRTH_YEAR",
|
|
139
|
+
outputs: [
|
|
183
140
|
{
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
type: "address",
|
|
141
|
+
internalType: "uint8",
|
|
142
|
+
name: "",
|
|
143
|
+
type: "uint8",
|
|
188
144
|
},
|
|
189
145
|
],
|
|
190
|
-
|
|
191
|
-
type: "
|
|
146
|
+
stateMutability: "pure",
|
|
147
|
+
type: "function",
|
|
192
148
|
},
|
|
193
149
|
{
|
|
194
|
-
|
|
195
|
-
|
|
150
|
+
inputs: [],
|
|
151
|
+
name: "ATTR_BLACKLIST",
|
|
152
|
+
outputs: [
|
|
196
153
|
{
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
type: "address",
|
|
154
|
+
internalType: "uint8",
|
|
155
|
+
name: "",
|
|
156
|
+
type: "uint8",
|
|
201
157
|
},
|
|
202
158
|
],
|
|
203
|
-
|
|
204
|
-
type: "
|
|
159
|
+
stateMutability: "pure",
|
|
160
|
+
type: "function",
|
|
205
161
|
},
|
|
206
162
|
{
|
|
207
|
-
|
|
208
|
-
|
|
163
|
+
inputs: [],
|
|
164
|
+
name: "ATTR_COMPLIANCE",
|
|
165
|
+
outputs: [
|
|
209
166
|
{
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
type: "address",
|
|
167
|
+
internalType: "uint8",
|
|
168
|
+
name: "",
|
|
169
|
+
type: "uint8",
|
|
214
170
|
},
|
|
215
171
|
],
|
|
216
|
-
|
|
217
|
-
type: "event",
|
|
218
|
-
},
|
|
219
|
-
{
|
|
220
|
-
inputs: [],
|
|
221
|
-
name: "acceptOwnership",
|
|
222
|
-
outputs: [],
|
|
223
|
-
stateMutability: "nonpayable",
|
|
172
|
+
stateMutability: "pure",
|
|
224
173
|
type: "function",
|
|
225
174
|
},
|
|
226
175
|
{
|
|
227
|
-
inputs: [
|
|
176
|
+
inputs: [],
|
|
177
|
+
name: "ATTR_COUNTRY",
|
|
178
|
+
outputs: [
|
|
228
179
|
{
|
|
229
|
-
internalType: "
|
|
230
|
-
name: "
|
|
231
|
-
type: "
|
|
180
|
+
internalType: "uint8",
|
|
181
|
+
name: "",
|
|
182
|
+
type: "uint8",
|
|
232
183
|
},
|
|
233
184
|
],
|
|
234
|
-
|
|
235
|
-
outputs: [],
|
|
236
|
-
stateMutability: "nonpayable",
|
|
185
|
+
stateMutability: "pure",
|
|
237
186
|
type: "function",
|
|
238
187
|
},
|
|
239
188
|
{
|
|
240
189
|
inputs: [
|
|
241
190
|
{
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
191
|
+
components: [
|
|
192
|
+
{
|
|
193
|
+
internalType: "uint8",
|
|
194
|
+
name: "birthYearOffset",
|
|
195
|
+
type: "uint8",
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
internalType: "uint16",
|
|
199
|
+
name: "countryCode",
|
|
200
|
+
type: "uint16",
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
internalType: "uint8",
|
|
204
|
+
name: "complianceLevel",
|
|
205
|
+
type: "uint8",
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
internalType: "bool",
|
|
209
|
+
name: "isBlacklisted",
|
|
210
|
+
type: "bool",
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
internalType: "bytes32",
|
|
214
|
+
name: "proofSetHash",
|
|
215
|
+
type: "bytes32",
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
internalType: "uint32",
|
|
219
|
+
name: "policyVersion",
|
|
220
|
+
type: "uint32",
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
internalType: "uint256",
|
|
224
|
+
name: "deadline",
|
|
225
|
+
type: "uint256",
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
internalType: "uint8",
|
|
229
|
+
name: "v",
|
|
230
|
+
type: "uint8",
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
internalType: "bytes32",
|
|
234
|
+
name: "r",
|
|
235
|
+
type: "bytes32",
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
internalType: "bytes32",
|
|
239
|
+
name: "s",
|
|
240
|
+
type: "bytes32",
|
|
241
|
+
},
|
|
242
|
+
],
|
|
243
|
+
internalType: "struct IIdentityRegistry.AttestPermitData",
|
|
244
|
+
name: "permit",
|
|
245
|
+
type: "tuple",
|
|
245
246
|
},
|
|
246
247
|
{
|
|
247
248
|
internalType: "externalEuint8",
|
|
@@ -269,7 +270,7 @@ const _abi = [
|
|
|
269
270
|
type: "bytes",
|
|
270
271
|
},
|
|
271
272
|
],
|
|
272
|
-
name: "
|
|
273
|
+
name: "attestWithPermit",
|
|
273
274
|
outputs: [],
|
|
274
275
|
stateMutability: "nonpayable",
|
|
275
276
|
type: "function",
|
|
@@ -300,16 +301,21 @@ const _abi = [
|
|
|
300
301
|
name: "user",
|
|
301
302
|
type: "address",
|
|
302
303
|
},
|
|
304
|
+
{
|
|
305
|
+
internalType: "uint8",
|
|
306
|
+
name: "minLevel",
|
|
307
|
+
type: "uint8",
|
|
308
|
+
},
|
|
303
309
|
],
|
|
304
|
-
name: "
|
|
310
|
+
name: "checkCompliance",
|
|
305
311
|
outputs: [
|
|
306
312
|
{
|
|
307
|
-
internalType: "
|
|
313
|
+
internalType: "ebool",
|
|
308
314
|
name: "",
|
|
309
|
-
type: "
|
|
315
|
+
type: "bytes32",
|
|
310
316
|
},
|
|
311
317
|
],
|
|
312
|
-
stateMutability: "
|
|
318
|
+
stateMutability: "nonpayable",
|
|
313
319
|
type: "function",
|
|
314
320
|
},
|
|
315
321
|
{
|
|
@@ -319,29 +325,14 @@ const _abi = [
|
|
|
319
325
|
name: "user",
|
|
320
326
|
type: "address",
|
|
321
327
|
},
|
|
322
|
-
{
|
|
323
|
-
internalType: "uint256",
|
|
324
|
-
name: "attestationId",
|
|
325
|
-
type: "uint256",
|
|
326
|
-
},
|
|
327
328
|
],
|
|
328
|
-
name: "
|
|
329
|
+
name: "currentAttestationId",
|
|
329
330
|
outputs: [
|
|
330
331
|
{
|
|
331
332
|
internalType: "uint256",
|
|
332
|
-
name: "
|
|
333
|
-
type: "uint256",
|
|
334
|
-
},
|
|
335
|
-
{
|
|
336
|
-
internalType: "uint256",
|
|
337
|
-
name: "revokedAt",
|
|
333
|
+
name: "",
|
|
338
334
|
type: "uint256",
|
|
339
335
|
},
|
|
340
|
-
{
|
|
341
|
-
internalType: "address",
|
|
342
|
-
name: "registrar",
|
|
343
|
-
type: "address",
|
|
344
|
-
},
|
|
345
336
|
],
|
|
346
337
|
stateMutability: "view",
|
|
347
338
|
type: "function",
|
|
@@ -422,6 +413,87 @@ const _abi = [
|
|
|
422
413
|
stateMutability: "view",
|
|
423
414
|
type: "function",
|
|
424
415
|
},
|
|
416
|
+
{
|
|
417
|
+
inputs: [
|
|
418
|
+
{
|
|
419
|
+
internalType: "address",
|
|
420
|
+
name: "user",
|
|
421
|
+
type: "address",
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
internalType: "address",
|
|
425
|
+
name: "grantee",
|
|
426
|
+
type: "address",
|
|
427
|
+
},
|
|
428
|
+
],
|
|
429
|
+
name: "getGrantedAttributes",
|
|
430
|
+
outputs: [
|
|
431
|
+
{
|
|
432
|
+
internalType: "uint8",
|
|
433
|
+
name: "",
|
|
434
|
+
type: "uint8",
|
|
435
|
+
},
|
|
436
|
+
],
|
|
437
|
+
stateMutability: "view",
|
|
438
|
+
type: "function",
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
inputs: [
|
|
442
|
+
{
|
|
443
|
+
internalType: "address",
|
|
444
|
+
name: "user",
|
|
445
|
+
type: "address",
|
|
446
|
+
},
|
|
447
|
+
],
|
|
448
|
+
name: "getPolicyVersion",
|
|
449
|
+
outputs: [
|
|
450
|
+
{
|
|
451
|
+
internalType: "uint32",
|
|
452
|
+
name: "",
|
|
453
|
+
type: "uint32",
|
|
454
|
+
},
|
|
455
|
+
],
|
|
456
|
+
stateMutability: "view",
|
|
457
|
+
type: "function",
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
inputs: [
|
|
461
|
+
{
|
|
462
|
+
internalType: "address",
|
|
463
|
+
name: "user",
|
|
464
|
+
type: "address",
|
|
465
|
+
},
|
|
466
|
+
],
|
|
467
|
+
name: "getProofSetHash",
|
|
468
|
+
outputs: [
|
|
469
|
+
{
|
|
470
|
+
internalType: "bytes32",
|
|
471
|
+
name: "",
|
|
472
|
+
type: "bytes32",
|
|
473
|
+
},
|
|
474
|
+
],
|
|
475
|
+
stateMutability: "view",
|
|
476
|
+
type: "function",
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
inputs: [
|
|
480
|
+
{
|
|
481
|
+
internalType: "bytes32",
|
|
482
|
+
name: "key",
|
|
483
|
+
type: "bytes32",
|
|
484
|
+
},
|
|
485
|
+
],
|
|
486
|
+
name: "getVerificationResult",
|
|
487
|
+
outputs: [
|
|
488
|
+
{
|
|
489
|
+
internalType: "ebool",
|
|
490
|
+
name: "",
|
|
491
|
+
type: "bytes32",
|
|
492
|
+
},
|
|
493
|
+
],
|
|
494
|
+
stateMutability: "view",
|
|
495
|
+
type: "function",
|
|
496
|
+
},
|
|
425
497
|
{
|
|
426
498
|
inputs: [
|
|
427
499
|
{
|
|
@@ -435,6 +507,29 @@ const _abi = [
|
|
|
435
507
|
stateMutability: "nonpayable",
|
|
436
508
|
type: "function",
|
|
437
509
|
},
|
|
510
|
+
{
|
|
511
|
+
inputs: [
|
|
512
|
+
{
|
|
513
|
+
internalType: "address",
|
|
514
|
+
name: "grantee",
|
|
515
|
+
type: "address",
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
internalType: "uint8",
|
|
519
|
+
name: "attributeMask",
|
|
520
|
+
type: "uint8",
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
internalType: "enum IIdentityRegistry.Purpose",
|
|
524
|
+
name: "purpose",
|
|
525
|
+
type: "uint8",
|
|
526
|
+
},
|
|
527
|
+
],
|
|
528
|
+
name: "grantAttributeAccess",
|
|
529
|
+
outputs: [],
|
|
530
|
+
stateMutability: "nonpayable",
|
|
531
|
+
type: "function",
|
|
532
|
+
},
|
|
438
533
|
{
|
|
439
534
|
inputs: [
|
|
440
535
|
{
|
|
@@ -529,7 +624,7 @@ const _abi = [
|
|
|
529
624
|
type: "address",
|
|
530
625
|
},
|
|
531
626
|
],
|
|
532
|
-
name: "
|
|
627
|
+
name: "nonces",
|
|
533
628
|
outputs: [
|
|
534
629
|
{
|
|
535
630
|
internalType: "uint256",
|
|
@@ -540,32 +635,6 @@ const _abi = [
|
|
|
540
635
|
stateMutability: "view",
|
|
541
636
|
type: "function",
|
|
542
637
|
},
|
|
543
|
-
{
|
|
544
|
-
inputs: [],
|
|
545
|
-
name: "owner",
|
|
546
|
-
outputs: [
|
|
547
|
-
{
|
|
548
|
-
internalType: "address",
|
|
549
|
-
name: "",
|
|
550
|
-
type: "address",
|
|
551
|
-
},
|
|
552
|
-
],
|
|
553
|
-
stateMutability: "view",
|
|
554
|
-
type: "function",
|
|
555
|
-
},
|
|
556
|
-
{
|
|
557
|
-
inputs: [],
|
|
558
|
-
name: "pendingOwner",
|
|
559
|
-
outputs: [
|
|
560
|
-
{
|
|
561
|
-
internalType: "address",
|
|
562
|
-
name: "",
|
|
563
|
-
type: "address",
|
|
564
|
-
},
|
|
565
|
-
],
|
|
566
|
-
stateMutability: "view",
|
|
567
|
-
type: "function",
|
|
568
|
-
},
|
|
569
638
|
{
|
|
570
639
|
inputs: [
|
|
571
640
|
{
|
|
@@ -586,26 +655,7 @@ const _abi = [
|
|
|
586
655
|
type: "function",
|
|
587
656
|
},
|
|
588
657
|
{
|
|
589
|
-
inputs: [
|
|
590
|
-
{
|
|
591
|
-
internalType: "address",
|
|
592
|
-
name: "registrar",
|
|
593
|
-
type: "address",
|
|
594
|
-
},
|
|
595
|
-
],
|
|
596
|
-
name: "removeRegistrar",
|
|
597
|
-
outputs: [],
|
|
598
|
-
stateMutability: "nonpayable",
|
|
599
|
-
type: "function",
|
|
600
|
-
},
|
|
601
|
-
{
|
|
602
|
-
inputs: [
|
|
603
|
-
{
|
|
604
|
-
internalType: "address",
|
|
605
|
-
name: "user",
|
|
606
|
-
type: "address",
|
|
607
|
-
},
|
|
608
|
-
],
|
|
658
|
+
inputs: [],
|
|
609
659
|
name: "revokeIdentity",
|
|
610
660
|
outputs: [],
|
|
611
661
|
stateMutability: "nonpayable",
|
|
@@ -615,11 +665,11 @@ const _abi = [
|
|
|
615
665
|
inputs: [
|
|
616
666
|
{
|
|
617
667
|
internalType: "address",
|
|
618
|
-
name: "
|
|
668
|
+
name: "user",
|
|
619
669
|
type: "address",
|
|
620
670
|
},
|
|
621
671
|
],
|
|
622
|
-
name: "
|
|
672
|
+
name: "revokeIdentityFor",
|
|
623
673
|
outputs: [],
|
|
624
674
|
stateMutability: "nonpayable",
|
|
625
675
|
type: "function",
|