@zentity/fhevm-contracts 0.1.2 → 0.2.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/README.md +2 -1
- package/abi/ComplianceRules.json +4 -4
- package/abi/IdentityRegistry.json +14 -14
- package/contracts/ARCHITECTURE.md +1 -1
- package/contracts/ARCHITECTURE_EXPLAINER.md +4 -4
- package/contracts/compliance/ComplianceRules.sol +17 -17
- package/contracts/core/IdentityRegistry.sol +18 -18
- package/contracts/interfaces/IIdentityRegistry.sol +8 -8
- package/deployments/hardhat/.chainId +1 -0
- package/deployments/sepolia/ComplianceRules.json +31 -31
- package/deployments/sepolia/CompliantERC20.json +11 -11
- package/deployments/sepolia/IdentityRegistry.json +56 -56
- package/package.json +2 -2
- package/typechain-types/contracts/compliance/ComplianceRules.ts +24 -24
- package/typechain-types/contracts/core/IdentityRegistry.ts +33 -29
- package/typechain-types/contracts/interfaces/IIdentityRegistry.ts +20 -16
- package/typechain-types/factories/contracts/compliance/ComplianceRules__factory.ts +9 -9
- package/typechain-types/factories/contracts/core/IdentityRegistry__factory.ts +15 -15
- package/typechain-types/factories/contracts/interfaces/IIdentityRegistry__factory.ts +6 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zentity/fhevm-contracts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "fhEVM smart contracts for Zentity privacy-preserving identity attestations",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"fhe",
|
|
101
101
|
"zama",
|
|
102
102
|
"identity",
|
|
103
|
-
"
|
|
103
|
+
"compliance",
|
|
104
104
|
"privacy",
|
|
105
105
|
"ethereum",
|
|
106
106
|
"solidity"
|
|
@@ -34,11 +34,11 @@ export interface ComplianceRulesInterface extends Interface {
|
|
|
34
34
|
| "getComplianceResult"
|
|
35
35
|
| "hasComplianceResult"
|
|
36
36
|
| "identityRegistry"
|
|
37
|
-
| "
|
|
37
|
+
| "minComplianceLevel"
|
|
38
38
|
| "owner"
|
|
39
39
|
| "pendingOwner"
|
|
40
40
|
| "setAuthorizedCaller"
|
|
41
|
-
| "
|
|
41
|
+
| "setMinComplianceLevel"
|
|
42
42
|
| "transferOwnership"
|
|
43
43
|
): FunctionFragment;
|
|
44
44
|
|
|
@@ -46,7 +46,7 @@ export interface ComplianceRulesInterface extends Interface {
|
|
|
46
46
|
nameOrSignatureOrTopic:
|
|
47
47
|
| "AuthorizedCallerUpdated"
|
|
48
48
|
| "ComplianceChecked"
|
|
49
|
-
| "
|
|
49
|
+
| "MinComplianceLevelUpdated"
|
|
50
50
|
| "OwnershipTransferStarted"
|
|
51
51
|
| "OwnershipTransferred"
|
|
52
52
|
): EventFragment;
|
|
@@ -84,7 +84,7 @@ export interface ComplianceRulesInterface extends Interface {
|
|
|
84
84
|
values?: undefined
|
|
85
85
|
): string;
|
|
86
86
|
encodeFunctionData(
|
|
87
|
-
functionFragment: "
|
|
87
|
+
functionFragment: "minComplianceLevel",
|
|
88
88
|
values?: undefined
|
|
89
89
|
): string;
|
|
90
90
|
encodeFunctionData(functionFragment: "owner", values?: undefined): string;
|
|
@@ -97,7 +97,7 @@ export interface ComplianceRulesInterface extends Interface {
|
|
|
97
97
|
values: [AddressLike, boolean]
|
|
98
98
|
): string;
|
|
99
99
|
encodeFunctionData(
|
|
100
|
-
functionFragment: "
|
|
100
|
+
functionFragment: "setMinComplianceLevel",
|
|
101
101
|
values: [BigNumberish]
|
|
102
102
|
): string;
|
|
103
103
|
encodeFunctionData(
|
|
@@ -138,7 +138,7 @@ export interface ComplianceRulesInterface extends Interface {
|
|
|
138
138
|
data: BytesLike
|
|
139
139
|
): Result;
|
|
140
140
|
decodeFunctionResult(
|
|
141
|
-
functionFragment: "
|
|
141
|
+
functionFragment: "minComplianceLevel",
|
|
142
142
|
data: BytesLike
|
|
143
143
|
): Result;
|
|
144
144
|
decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
|
|
@@ -151,7 +151,7 @@ export interface ComplianceRulesInterface extends Interface {
|
|
|
151
151
|
data: BytesLike
|
|
152
152
|
): Result;
|
|
153
153
|
decodeFunctionResult(
|
|
154
|
-
functionFragment: "
|
|
154
|
+
functionFragment: "setMinComplianceLevel",
|
|
155
155
|
data: BytesLike
|
|
156
156
|
): Result;
|
|
157
157
|
decodeFunctionResult(
|
|
@@ -185,7 +185,7 @@ export namespace ComplianceCheckedEvent {
|
|
|
185
185
|
export type LogDescription = TypedLogDescription<Event>;
|
|
186
186
|
}
|
|
187
187
|
|
|
188
|
-
export namespace
|
|
188
|
+
export namespace MinComplianceLevelUpdatedEvent {
|
|
189
189
|
export type InputTuple = [newLevel: BigNumberish];
|
|
190
190
|
export type OutputTuple = [newLevel: bigint];
|
|
191
191
|
export interface OutputObject {
|
|
@@ -305,7 +305,7 @@ export interface ComplianceRules extends BaseContract {
|
|
|
305
305
|
|
|
306
306
|
identityRegistry: TypedContractMethod<[], [string], "view">;
|
|
307
307
|
|
|
308
|
-
|
|
308
|
+
minComplianceLevel: TypedContractMethod<[], [bigint], "view">;
|
|
309
309
|
|
|
310
310
|
owner: TypedContractMethod<[], [string], "view">;
|
|
311
311
|
|
|
@@ -317,7 +317,7 @@ export interface ComplianceRules extends BaseContract {
|
|
|
317
317
|
"nonpayable"
|
|
318
318
|
>;
|
|
319
319
|
|
|
320
|
-
|
|
320
|
+
setMinComplianceLevel: TypedContractMethod<
|
|
321
321
|
[newLevel: BigNumberish],
|
|
322
322
|
[void],
|
|
323
323
|
"nonpayable"
|
|
@@ -362,7 +362,7 @@ export interface ComplianceRules extends BaseContract {
|
|
|
362
362
|
nameOrSignature: "identityRegistry"
|
|
363
363
|
): TypedContractMethod<[], [string], "view">;
|
|
364
364
|
getFunction(
|
|
365
|
-
nameOrSignature: "
|
|
365
|
+
nameOrSignature: "minComplianceLevel"
|
|
366
366
|
): TypedContractMethod<[], [bigint], "view">;
|
|
367
367
|
getFunction(
|
|
368
368
|
nameOrSignature: "owner"
|
|
@@ -378,7 +378,7 @@ export interface ComplianceRules extends BaseContract {
|
|
|
378
378
|
"nonpayable"
|
|
379
379
|
>;
|
|
380
380
|
getFunction(
|
|
381
|
-
nameOrSignature: "
|
|
381
|
+
nameOrSignature: "setMinComplianceLevel"
|
|
382
382
|
): TypedContractMethod<[newLevel: BigNumberish], [void], "nonpayable">;
|
|
383
383
|
getFunction(
|
|
384
384
|
nameOrSignature: "transferOwnership"
|
|
@@ -399,11 +399,11 @@ export interface ComplianceRules extends BaseContract {
|
|
|
399
399
|
ComplianceCheckedEvent.OutputObject
|
|
400
400
|
>;
|
|
401
401
|
getEvent(
|
|
402
|
-
key: "
|
|
402
|
+
key: "MinComplianceLevelUpdated"
|
|
403
403
|
): TypedContractEvent<
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
404
|
+
MinComplianceLevelUpdatedEvent.InputTuple,
|
|
405
|
+
MinComplianceLevelUpdatedEvent.OutputTuple,
|
|
406
|
+
MinComplianceLevelUpdatedEvent.OutputObject
|
|
407
407
|
>;
|
|
408
408
|
getEvent(
|
|
409
409
|
key: "OwnershipTransferStarted"
|
|
@@ -443,15 +443,15 @@ export interface ComplianceRules extends BaseContract {
|
|
|
443
443
|
ComplianceCheckedEvent.OutputObject
|
|
444
444
|
>;
|
|
445
445
|
|
|
446
|
-
"
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
446
|
+
"MinComplianceLevelUpdated(uint8)": TypedContractEvent<
|
|
447
|
+
MinComplianceLevelUpdatedEvent.InputTuple,
|
|
448
|
+
MinComplianceLevelUpdatedEvent.OutputTuple,
|
|
449
|
+
MinComplianceLevelUpdatedEvent.OutputObject
|
|
450
450
|
>;
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
451
|
+
MinComplianceLevelUpdated: TypedContractEvent<
|
|
452
|
+
MinComplianceLevelUpdatedEvent.InputTuple,
|
|
453
|
+
MinComplianceLevelUpdatedEvent.OutputTuple,
|
|
454
|
+
MinComplianceLevelUpdatedEvent.OutputObject
|
|
455
455
|
>;
|
|
456
456
|
|
|
457
457
|
"OwnershipTransferStarted(address,address)": TypedContractEvent<
|
|
@@ -36,12 +36,12 @@ export interface IdentityRegistryInterface extends Interface {
|
|
|
36
36
|
| "getBirthYearOffset"
|
|
37
37
|
| "getBlacklistResult"
|
|
38
38
|
| "getBlacklistStatus"
|
|
39
|
+
| "getComplianceLevel"
|
|
40
|
+
| "getComplianceLevelResult"
|
|
39
41
|
| "getCountryCode"
|
|
40
42
|
| "getCountryResult"
|
|
41
|
-
| "getKycLevel"
|
|
42
|
-
| "getKycLevelResult"
|
|
43
43
|
| "grantAccessTo"
|
|
44
|
-
| "
|
|
44
|
+
| "hasMinComplianceLevel"
|
|
45
45
|
| "isAttested"
|
|
46
46
|
| "isFromCountry"
|
|
47
47
|
| "isNotBlacklisted"
|
|
@@ -108,19 +108,19 @@ export interface IdentityRegistryInterface extends Interface {
|
|
|
108
108
|
values: [AddressLike]
|
|
109
109
|
): string;
|
|
110
110
|
encodeFunctionData(
|
|
111
|
-
functionFragment: "
|
|
111
|
+
functionFragment: "getComplianceLevel",
|
|
112
112
|
values: [AddressLike]
|
|
113
113
|
): string;
|
|
114
114
|
encodeFunctionData(
|
|
115
|
-
functionFragment: "
|
|
115
|
+
functionFragment: "getComplianceLevelResult",
|
|
116
116
|
values: [AddressLike, BigNumberish]
|
|
117
117
|
): string;
|
|
118
118
|
encodeFunctionData(
|
|
119
|
-
functionFragment: "
|
|
119
|
+
functionFragment: "getCountryCode",
|
|
120
120
|
values: [AddressLike]
|
|
121
121
|
): string;
|
|
122
122
|
encodeFunctionData(
|
|
123
|
-
functionFragment: "
|
|
123
|
+
functionFragment: "getCountryResult",
|
|
124
124
|
values: [AddressLike, BigNumberish]
|
|
125
125
|
): string;
|
|
126
126
|
encodeFunctionData(
|
|
@@ -128,7 +128,7 @@ export interface IdentityRegistryInterface extends Interface {
|
|
|
128
128
|
values: [AddressLike]
|
|
129
129
|
): string;
|
|
130
130
|
encodeFunctionData(
|
|
131
|
-
functionFragment: "
|
|
131
|
+
functionFragment: "hasMinComplianceLevel",
|
|
132
132
|
values: [AddressLike, BigNumberish]
|
|
133
133
|
): string;
|
|
134
134
|
encodeFunctionData(
|
|
@@ -210,19 +210,19 @@ export interface IdentityRegistryInterface extends Interface {
|
|
|
210
210
|
data: BytesLike
|
|
211
211
|
): Result;
|
|
212
212
|
decodeFunctionResult(
|
|
213
|
-
functionFragment: "
|
|
213
|
+
functionFragment: "getComplianceLevel",
|
|
214
214
|
data: BytesLike
|
|
215
215
|
): Result;
|
|
216
216
|
decodeFunctionResult(
|
|
217
|
-
functionFragment: "
|
|
217
|
+
functionFragment: "getComplianceLevelResult",
|
|
218
218
|
data: BytesLike
|
|
219
219
|
): Result;
|
|
220
220
|
decodeFunctionResult(
|
|
221
|
-
functionFragment: "
|
|
221
|
+
functionFragment: "getCountryCode",
|
|
222
222
|
data: BytesLike
|
|
223
223
|
): Result;
|
|
224
224
|
decodeFunctionResult(
|
|
225
|
-
functionFragment: "
|
|
225
|
+
functionFragment: "getCountryResult",
|
|
226
226
|
data: BytesLike
|
|
227
227
|
): Result;
|
|
228
228
|
decodeFunctionResult(
|
|
@@ -230,7 +230,7 @@ export interface IdentityRegistryInterface extends Interface {
|
|
|
230
230
|
data: BytesLike
|
|
231
231
|
): Result;
|
|
232
232
|
decodeFunctionResult(
|
|
233
|
-
functionFragment: "
|
|
233
|
+
functionFragment: "hasMinComplianceLevel",
|
|
234
234
|
data: BytesLike
|
|
235
235
|
): Result;
|
|
236
236
|
decodeFunctionResult(functionFragment: "isAttested", data: BytesLike): Result;
|
|
@@ -463,7 +463,7 @@ export interface IdentityRegistry extends BaseContract {
|
|
|
463
463
|
user: AddressLike,
|
|
464
464
|
encBirthYearOffset: BytesLike,
|
|
465
465
|
encCountryCode: BytesLike,
|
|
466
|
-
|
|
466
|
+
encComplianceLevel: BytesLike,
|
|
467
467
|
encIsBlacklisted: BytesLike,
|
|
468
468
|
inputProof: BytesLike
|
|
469
469
|
],
|
|
@@ -515,18 +515,22 @@ export interface IdentityRegistry extends BaseContract {
|
|
|
515
515
|
"view"
|
|
516
516
|
>;
|
|
517
517
|
|
|
518
|
-
|
|
518
|
+
getComplianceLevel: TypedContractMethod<
|
|
519
|
+
[user: AddressLike],
|
|
520
|
+
[string],
|
|
521
|
+
"view"
|
|
522
|
+
>;
|
|
519
523
|
|
|
520
|
-
|
|
521
|
-
[user: AddressLike,
|
|
524
|
+
getComplianceLevelResult: TypedContractMethod<
|
|
525
|
+
[user: AddressLike, minLevel: BigNumberish],
|
|
522
526
|
[string],
|
|
523
527
|
"view"
|
|
524
528
|
>;
|
|
525
529
|
|
|
526
|
-
|
|
530
|
+
getCountryCode: TypedContractMethod<[user: AddressLike], [string], "view">;
|
|
527
531
|
|
|
528
|
-
|
|
529
|
-
[user: AddressLike,
|
|
532
|
+
getCountryResult: TypedContractMethod<
|
|
533
|
+
[user: AddressLike, country: BigNumberish],
|
|
530
534
|
[string],
|
|
531
535
|
"view"
|
|
532
536
|
>;
|
|
@@ -537,7 +541,7 @@ export interface IdentityRegistry extends BaseContract {
|
|
|
537
541
|
"nonpayable"
|
|
538
542
|
>;
|
|
539
543
|
|
|
540
|
-
|
|
544
|
+
hasMinComplianceLevel: TypedContractMethod<
|
|
541
545
|
[user: AddressLike, minLevel: BigNumberish],
|
|
542
546
|
[string],
|
|
543
547
|
"nonpayable"
|
|
@@ -604,7 +608,7 @@ export interface IdentityRegistry extends BaseContract {
|
|
|
604
608
|
user: AddressLike,
|
|
605
609
|
encBirthYearOffset: BytesLike,
|
|
606
610
|
encCountryCode: BytesLike,
|
|
607
|
-
|
|
611
|
+
encComplianceLevel: BytesLike,
|
|
608
612
|
encIsBlacklisted: BytesLike,
|
|
609
613
|
inputProof: BytesLike
|
|
610
614
|
],
|
|
@@ -643,22 +647,22 @@ export interface IdentityRegistry extends BaseContract {
|
|
|
643
647
|
nameOrSignature: "getBlacklistStatus"
|
|
644
648
|
): TypedContractMethod<[user: AddressLike], [string], "view">;
|
|
645
649
|
getFunction(
|
|
646
|
-
nameOrSignature: "
|
|
650
|
+
nameOrSignature: "getComplianceLevel"
|
|
647
651
|
): TypedContractMethod<[user: AddressLike], [string], "view">;
|
|
648
652
|
getFunction(
|
|
649
|
-
nameOrSignature: "
|
|
653
|
+
nameOrSignature: "getComplianceLevelResult"
|
|
650
654
|
): TypedContractMethod<
|
|
651
|
-
[user: AddressLike,
|
|
655
|
+
[user: AddressLike, minLevel: BigNumberish],
|
|
652
656
|
[string],
|
|
653
657
|
"view"
|
|
654
658
|
>;
|
|
655
659
|
getFunction(
|
|
656
|
-
nameOrSignature: "
|
|
660
|
+
nameOrSignature: "getCountryCode"
|
|
657
661
|
): TypedContractMethod<[user: AddressLike], [string], "view">;
|
|
658
662
|
getFunction(
|
|
659
|
-
nameOrSignature: "
|
|
663
|
+
nameOrSignature: "getCountryResult"
|
|
660
664
|
): TypedContractMethod<
|
|
661
|
-
[user: AddressLike,
|
|
665
|
+
[user: AddressLike, country: BigNumberish],
|
|
662
666
|
[string],
|
|
663
667
|
"view"
|
|
664
668
|
>;
|
|
@@ -666,7 +670,7 @@ export interface IdentityRegistry extends BaseContract {
|
|
|
666
670
|
nameOrSignature: "grantAccessTo"
|
|
667
671
|
): TypedContractMethod<[grantee: AddressLike], [void], "nonpayable">;
|
|
668
672
|
getFunction(
|
|
669
|
-
nameOrSignature: "
|
|
673
|
+
nameOrSignature: "hasMinComplianceLevel"
|
|
670
674
|
): TypedContractMethod<
|
|
671
675
|
[user: AddressLike, minLevel: BigNumberish],
|
|
672
676
|
[string],
|
|
@@ -34,10 +34,10 @@ export interface IIdentityRegistryInterface extends Interface {
|
|
|
34
34
|
| "getAttestationMetadata"
|
|
35
35
|
| "getBirthYearOffset"
|
|
36
36
|
| "getBlacklistStatus"
|
|
37
|
+
| "getComplianceLevel"
|
|
37
38
|
| "getCountryCode"
|
|
38
|
-
| "getKycLevel"
|
|
39
39
|
| "grantAccessTo"
|
|
40
|
-
| "
|
|
40
|
+
| "hasMinComplianceLevel"
|
|
41
41
|
| "isAttested"
|
|
42
42
|
| "isFromCountry"
|
|
43
43
|
| "isNotBlacklisted"
|
|
@@ -96,11 +96,11 @@ export interface IIdentityRegistryInterface extends Interface {
|
|
|
96
96
|
values: [AddressLike]
|
|
97
97
|
): string;
|
|
98
98
|
encodeFunctionData(
|
|
99
|
-
functionFragment: "
|
|
99
|
+
functionFragment: "getComplianceLevel",
|
|
100
100
|
values: [AddressLike]
|
|
101
101
|
): string;
|
|
102
102
|
encodeFunctionData(
|
|
103
|
-
functionFragment: "
|
|
103
|
+
functionFragment: "getCountryCode",
|
|
104
104
|
values: [AddressLike]
|
|
105
105
|
): string;
|
|
106
106
|
encodeFunctionData(
|
|
@@ -108,7 +108,7 @@ export interface IIdentityRegistryInterface extends Interface {
|
|
|
108
108
|
values: [AddressLike]
|
|
109
109
|
): string;
|
|
110
110
|
encodeFunctionData(
|
|
111
|
-
functionFragment: "
|
|
111
|
+
functionFragment: "hasMinComplianceLevel",
|
|
112
112
|
values: [AddressLike, BigNumberish]
|
|
113
113
|
): string;
|
|
114
114
|
encodeFunctionData(
|
|
@@ -182,11 +182,11 @@ export interface IIdentityRegistryInterface extends Interface {
|
|
|
182
182
|
data: BytesLike
|
|
183
183
|
): Result;
|
|
184
184
|
decodeFunctionResult(
|
|
185
|
-
functionFragment: "
|
|
185
|
+
functionFragment: "getComplianceLevel",
|
|
186
186
|
data: BytesLike
|
|
187
187
|
): Result;
|
|
188
188
|
decodeFunctionResult(
|
|
189
|
-
functionFragment: "
|
|
189
|
+
functionFragment: "getCountryCode",
|
|
190
190
|
data: BytesLike
|
|
191
191
|
): Result;
|
|
192
192
|
decodeFunctionResult(
|
|
@@ -194,7 +194,7 @@ export interface IIdentityRegistryInterface extends Interface {
|
|
|
194
194
|
data: BytesLike
|
|
195
195
|
): Result;
|
|
196
196
|
decodeFunctionResult(
|
|
197
|
-
functionFragment: "
|
|
197
|
+
functionFragment: "hasMinComplianceLevel",
|
|
198
198
|
data: BytesLike
|
|
199
199
|
): Result;
|
|
200
200
|
decodeFunctionResult(functionFragment: "isAttested", data: BytesLike): Result;
|
|
@@ -427,7 +427,7 @@ export interface IIdentityRegistry extends BaseContract {
|
|
|
427
427
|
user: AddressLike,
|
|
428
428
|
encBirthYearOffset: BytesLike,
|
|
429
429
|
encCountryCode: BytesLike,
|
|
430
|
-
|
|
430
|
+
encComplianceLevel: BytesLike,
|
|
431
431
|
encIsBlacklisted: BytesLike,
|
|
432
432
|
inputProof: BytesLike
|
|
433
433
|
],
|
|
@@ -471,9 +471,13 @@ export interface IIdentityRegistry extends BaseContract {
|
|
|
471
471
|
"view"
|
|
472
472
|
>;
|
|
473
473
|
|
|
474
|
-
|
|
474
|
+
getComplianceLevel: TypedContractMethod<
|
|
475
|
+
[user: AddressLike],
|
|
476
|
+
[string],
|
|
477
|
+
"view"
|
|
478
|
+
>;
|
|
475
479
|
|
|
476
|
-
|
|
480
|
+
getCountryCode: TypedContractMethod<[user: AddressLike], [string], "view">;
|
|
477
481
|
|
|
478
482
|
grantAccessTo: TypedContractMethod<
|
|
479
483
|
[grantee: AddressLike],
|
|
@@ -481,7 +485,7 @@ export interface IIdentityRegistry extends BaseContract {
|
|
|
481
485
|
"nonpayable"
|
|
482
486
|
>;
|
|
483
487
|
|
|
484
|
-
|
|
488
|
+
hasMinComplianceLevel: TypedContractMethod<
|
|
485
489
|
[user: AddressLike, minLevel: BigNumberish],
|
|
486
490
|
[string],
|
|
487
491
|
"nonpayable"
|
|
@@ -548,7 +552,7 @@ export interface IIdentityRegistry extends BaseContract {
|
|
|
548
552
|
user: AddressLike,
|
|
549
553
|
encBirthYearOffset: BytesLike,
|
|
550
554
|
encCountryCode: BytesLike,
|
|
551
|
-
|
|
555
|
+
encComplianceLevel: BytesLike,
|
|
552
556
|
encIsBlacklisted: BytesLike,
|
|
553
557
|
inputProof: BytesLike
|
|
554
558
|
],
|
|
@@ -581,16 +585,16 @@ export interface IIdentityRegistry extends BaseContract {
|
|
|
581
585
|
nameOrSignature: "getBlacklistStatus"
|
|
582
586
|
): TypedContractMethod<[user: AddressLike], [string], "view">;
|
|
583
587
|
getFunction(
|
|
584
|
-
nameOrSignature: "
|
|
588
|
+
nameOrSignature: "getComplianceLevel"
|
|
585
589
|
): TypedContractMethod<[user: AddressLike], [string], "view">;
|
|
586
590
|
getFunction(
|
|
587
|
-
nameOrSignature: "
|
|
591
|
+
nameOrSignature: "getCountryCode"
|
|
588
592
|
): TypedContractMethod<[user: AddressLike], [string], "view">;
|
|
589
593
|
getFunction(
|
|
590
594
|
nameOrSignature: "grantAccessTo"
|
|
591
595
|
): TypedContractMethod<[grantee: AddressLike], [void], "nonpayable">;
|
|
592
596
|
getFunction(
|
|
593
|
-
nameOrSignature: "
|
|
597
|
+
nameOrSignature: "hasMinComplianceLevel"
|
|
594
598
|
): TypedContractMethod<
|
|
595
599
|
[user: AddressLike, minLevel: BigNumberish],
|
|
596
600
|
[string],
|
|
@@ -30,7 +30,7 @@ const _abi = [
|
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
internalType: "uint8",
|
|
33
|
-
name: "
|
|
33
|
+
name: "initialMinComplianceLevel",
|
|
34
34
|
type: "uint8",
|
|
35
35
|
},
|
|
36
36
|
],
|
|
@@ -114,7 +114,7 @@ const _abi = [
|
|
|
114
114
|
type: "uint8",
|
|
115
115
|
},
|
|
116
116
|
],
|
|
117
|
-
name: "
|
|
117
|
+
name: "MinComplianceLevelUpdated",
|
|
118
118
|
type: "event",
|
|
119
119
|
},
|
|
120
120
|
{
|
|
@@ -290,7 +290,7 @@ const _abi = [
|
|
|
290
290
|
},
|
|
291
291
|
{
|
|
292
292
|
inputs: [],
|
|
293
|
-
name: "
|
|
293
|
+
name: "minComplianceLevel",
|
|
294
294
|
outputs: [
|
|
295
295
|
{
|
|
296
296
|
internalType: "uint8",
|
|
@@ -353,7 +353,7 @@ const _abi = [
|
|
|
353
353
|
type: "uint8",
|
|
354
354
|
},
|
|
355
355
|
],
|
|
356
|
-
name: "
|
|
356
|
+
name: "setMinComplianceLevel",
|
|
357
357
|
outputs: [],
|
|
358
358
|
stateMutability: "nonpayable",
|
|
359
359
|
type: "function",
|
|
@@ -374,7 +374,7 @@ const _abi = [
|
|
|
374
374
|
] as const;
|
|
375
375
|
|
|
376
376
|
const _bytecode =
|
|
377
|
-
"
|
|
377
|
+
"0x60a060405234801561000f575f5ffd5b5060405161129138038061129183398101604081905261002e916102ba565b6100e261003961014b565b80517f9e7b61f58c47dc699ac88507c4f5bb9f121c03808c5676a8078fe583e464970080546001600160a01b03199081166001600160a01b039384161790915560208301517f9e7b61f58c47dc699ac88507c4f5bb9f121c03808c5676a8078fe583e46497018054831691841691909117905560408301517f9e7b61f58c47dc699ac88507c4f5bb9f121c03808c5676a8078fe583e46497028054909216921691909117905550565b6001600160a01b03821661010957604051630e048e7160e41b815260040160405180910390fd5b6001600160a01b039091166080525f80546001600160a01b031916331790556001805460ff909216600160a01b0260ff60a01b19909216919091179055610302565b604080516060810182525f8082526020820181905291810191909152466001036101a4575060408051606080820183525f8083526020808401829052928401819052835191820184528082529181018290529182015290565b4662aa36a703610223575060408051606080820183525f8083526020808401829052928401528251908101835273f0ffdc93b7e186bc2f8cb3daa75d86d1930a433d81527392c920834ec8941d2c77d188936e1f7a6f49c1279181019190915273be0e383937d564d7ff0bc3b46c51f0bf8d5c311a9181019190915290565b46617a69036102a1575060408051606080820183525f808352602080840182905292840152825190810183527350157cffd6bbfa2dece204a89ec419c23ef5755d815273e3a9105a3a932253a70f126eb1e3b589c643dd249181019190915273be0e383937d564d7ff0bc3b46c51f0bf8d5c311a9181019190915290565b6040516373cac13b60e01b815260040160405180910390fd5b5f5f604083850312156102cb575f5ffd5b82516001600160a01b03811681146102e1575f5ffd5b602084015190925060ff811681146102f7575f5ffd5b809150509250929050565b608051610f4661034b5f395f818161012e01528181610329015281816103f20152818161048001528181610518015281816106560152818161073901526107c70152610f465ff3fe608060405234801561000f575f5ffd5b50600436106100e5575f3560e01c8063714d3178116100885780638da5cb5b116100635780638da5cb5b14610204578063e30c397814610216578063e451a1b414610229578063f2fde38b1461023c575f5ffd5b8063714d3178146101e157806379ba5097146101f45780638927b030146101fc575f5ffd5b806322005b5e116100c357806322005b5e146101685780632c289dcf14610189578063454bbd291461019c578063536fff6c146101af575f5ffd5b806306615943146100e95780630d4e4b7514610114578063134e18f414610129575b5f5ffd5b6001546100fd90600160a01b900460ff1681565b60405160ff90911681526020015b60405180910390f35b610127610122366004610dc5565b61024f565b005b6101507f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161010b565b61017b610176366004610e00565b6102c2565b60405190815260200161010b565b61017b610197366004610e3b565b6105ef565b6101276101aa366004610e64565b6108ad565b6101d16101bd366004610e3b565b60036020525f908152604090205460ff1681565b604051901515815260200161010b565b6101d16101ef366004610e3b565b61092a565b61012761094b565b61017b6109cf565b5f54610150906001600160a01b031681565b600154610150906001600160a01b031681565b61017b610237366004610e3b565b6109dd565b61012761024a366004610e3b565b610a1b565b5f546001600160a01b0316331461027957604051635fc483c560e01b815260040160405180910390fd5b6001805460ff60a01b1916600160a01b60ff8416908102919091179091556040517f4fc1353c57e2c1137fcdf224e12f79bc39769d1abd44cd593ff3554435677471905f90a250565b5f82336001600160a01b038216148015906102ec5750335f9081526003602052604090205460ff16155b1561030a5760405163c183bcef60e01b815260040160405180910390fd5b604051631e11d7dd60e11b81526001600160a01b0385811660048301527f00000000000000000000000000000000000000000000000000000000000000001690633c23afba90602401602060405180830381865afa15801561036e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103929190610e8e565b6103be575f6103a05f610abc565b90506103ab81610ad7565b506103b68133610ae6565b5091506105e8565b60015460405163488baabf60e01b81526001600160a01b038681166004830152600160a01b90920460ff1660248201525f917f0000000000000000000000000000000000000000000000000000000000000000169063488baabf906044016020604051808303815f875af1158015610438573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061045c9190610ea9565b60405163b745e8b160e01b81526001600160a01b0387811660048301529192505f917f0000000000000000000000000000000000000000000000000000000000000000169063b745e8b1906024016020604051808303815f875af11580156104c6573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104ea9190610ea9565b6040516391b4975560e01b81526001600160a01b03888116600483015261ffff881660248301529192505f917f000000000000000000000000000000000000000000000000000000000000000016906391b49755906044016020604051808303815f875af115801561055e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105829190610ea9565b90505f6105986105928585610af8565b83610af8565b90506105a381610ad7565b506105ae8133610ae6565b506040516001600160a01b038916907f296fb6ae07b0cc29ce12d17d682365452ebd827f6f17a1ff7478ef0a1edae665905f90a294505050505b5092915050565b5f81336001600160a01b038216148015906106195750335f9081526003602052604090205460ff16155b156106375760405163c183bcef60e01b815260040160405180910390fd5b604051631e11d7dd60e11b81526001600160a01b0384811660048301527f00000000000000000000000000000000000000000000000000000000000000001690633c23afba90602401602060405180830381865afa15801561069b573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106bf9190610e8e565b610705575f6106cd5f610abc565b90506106d881610ad7565b506106e38133610ae6565b506001600160a01b0384165f90815260026020526040902081905591506108a7565b60015460405163488baabf60e01b81526001600160a01b038581166004830152600160a01b90920460ff1660248201525f917f0000000000000000000000000000000000000000000000000000000000000000169063488baabf906044016020604051808303815f875af115801561077f573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107a39190610ea9565b60405163b745e8b160e01b81526001600160a01b0386811660048301529192505f917f0000000000000000000000000000000000000000000000000000000000000000169063b745e8b1906024016020604051808303815f875af115801561080d573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108319190610ea9565b90505f61083e8383610af8565b6001600160a01b0387165f908152600260205260409020819055905061086381610ad7565b5061086e8133610ae6565b506040516001600160a01b038716907f296fb6ae07b0cc29ce12d17d682365452ebd827f6f17a1ff7478ef0a1edae665905f90a2935050505b50919050565b5f546001600160a01b031633146108d757604051635fc483c560e01b815260040160405180910390fd5b6001600160a01b0382165f81815260036020526040808220805460ff191685151590811790915590519092917fad857fa38c9319cb80848f1ef2f924383b90297eb5d71755738ff037d100faa191a35050565b6001600160a01b0381165f9081526002602052604081205415155b92915050565b6001546001600160a01b03163314610976576040516303c25d1960e61b815260040160405180910390fd5b5f8054600180546001600160a01b038082166001600160a01b031980861682178755909216909255604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a350565b5f6109d8610b2d565b905090565b6001600160a01b0381165f908152600260205260408120546109fe81610b61565b61094557604051631a6bd1fd60e01b815260040160405180910390fd5b5f546001600160a01b03163314610a4557604051635fc483c560e01b815260040160405180910390fd5b6001600160a01b038116610a6c576040516349e27cff60e01b815260040160405180910390fd5b600180546001600160a01b0319166001600160a01b038381169182179092555f8054604051929316917f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e227009190a350565b5f61094582610acb575f610ace565b60015b60ff165f610b6c565b5f610ae28230610c16565b5090565b5f610af18383610c16565b5090919050565b5f82610b0a57610b075f610abc565b92505b81610b1b57610b185f610abc565b91505b610b2683835f610c8c565b9392505050565b5f46600103610b3c5750600190565b4662aa36a703610b4d575061271190565b46617a6903610b5c57505f1990565b505f90565b5f6109458233610d41565b7f9e7b61f58c47dc699ac88507c4f5bb9f121c03808c5676a8078fe583e464970154604051639cd07acb60e01b81525f915f516020610ef15f395f51905f52916001600160a01b0390911690639cd07acb90610bce9087908790600401610ec0565b6020604051808303815f875af1158015610bea573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c0e9190610ea9565b949350505050565b5f5f516020610ef15f395f51905f528054604051635ca4b5b160e11b8152600481018690526001600160a01b03858116602483015292935091169063b9496b62906044015f604051808303815f87803b158015610c71575f5ffd5b505af1158015610c83573d5f5f3e3d5ffd5b50505050505050565b5f5f8215610c9f5750600160f81b610ca2565b505f5b5f5f516020610ef15f395f51905f52600181015460405163d99882d560e01b815260048101899052602481018890526001600160f81b0319851660448201529192506001600160a01b03169063d99882d5906064016020604051808303815f875af1158015610d13573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d379190610ea9565b9695505050505050565b5f805f516020610ef15f395f51905f5280546040516382027b6d60e01b8152600481018790526001600160a01b0386811660248301529293509116906382027b6d90604401602060405180830381865afa158015610da1573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c0e9190610e8e565b5f60208284031215610dd5575f5ffd5b813560ff81168114610b26575f5ffd5b80356001600160a01b0381168114610dfb575f5ffd5b919050565b5f5f60408385031215610e11575f5ffd5b610e1a83610de5565b9150602083013561ffff81168114610e30575f5ffd5b809150509250929050565b5f60208284031215610e4b575f5ffd5b610b2682610de5565b8015158114610e61575f5ffd5b50565b5f5f60408385031215610e75575f5ffd5b610e7e83610de5565b91506020830135610e3081610e54565b5f60208284031215610e9e575f5ffd5b8151610b2681610e54565b5f60208284031215610eb9575f5ffd5b5051919050565b8281526040810160548310610ee357634e487b7160e01b5f52602160045260245ffd5b826020830152939250505056fe9e7b61f58c47dc699ac88507c4f5bb9f121c03808c5676a8078fe583e4649700a26469706673582212207ee19db8335e99339027444cc69485c28cdb977098f4705471dda6d4708d102964736f6c634300081b0033";
|
|
378
378
|
|
|
379
379
|
type ComplianceRulesConstructorParams =
|
|
380
380
|
| [signer?: Signer]
|
|
@@ -395,23 +395,23 @@ export class ComplianceRules__factory extends ContractFactory {
|
|
|
395
395
|
|
|
396
396
|
override getDeployTransaction(
|
|
397
397
|
registry: AddressLike,
|
|
398
|
-
|
|
398
|
+
initialMinComplianceLevel: BigNumberish,
|
|
399
399
|
overrides?: NonPayableOverrides & { from?: string }
|
|
400
400
|
): Promise<ContractDeployTransaction> {
|
|
401
401
|
return super.getDeployTransaction(
|
|
402
402
|
registry,
|
|
403
|
-
|
|
403
|
+
initialMinComplianceLevel,
|
|
404
404
|
overrides || {}
|
|
405
405
|
);
|
|
406
406
|
}
|
|
407
407
|
override deploy(
|
|
408
408
|
registry: AddressLike,
|
|
409
|
-
|
|
409
|
+
initialMinComplianceLevel: BigNumberish,
|
|
410
410
|
overrides?: NonPayableOverrides & { from?: string }
|
|
411
411
|
) {
|
|
412
412
|
return super.deploy(
|
|
413
413
|
registry,
|
|
414
|
-
|
|
414
|
+
initialMinComplianceLevel,
|
|
415
415
|
overrides || {}
|
|
416
416
|
) as Promise<
|
|
417
417
|
ComplianceRules & {
|