@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
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type {
|
|
5
|
+
BaseContract,
|
|
6
|
+
BytesLike,
|
|
7
|
+
FunctionFragment,
|
|
8
|
+
Result,
|
|
9
|
+
Interface,
|
|
10
|
+
EventFragment,
|
|
11
|
+
AddressLike,
|
|
12
|
+
ContractRunner,
|
|
13
|
+
ContractMethod,
|
|
14
|
+
Listener,
|
|
15
|
+
} from "ethers";
|
|
16
|
+
import type {
|
|
17
|
+
TypedContractEvent,
|
|
18
|
+
TypedDeferredTopicFilter,
|
|
19
|
+
TypedEventLog,
|
|
20
|
+
TypedLogDescription,
|
|
21
|
+
TypedListener,
|
|
22
|
+
TypedContractMethod,
|
|
23
|
+
} from "../../common";
|
|
24
|
+
|
|
25
|
+
export interface MockFacilitatorInterface extends Interface {
|
|
26
|
+
getFunction(
|
|
27
|
+
nameOrSignature:
|
|
28
|
+
| "confidentialProtocolId"
|
|
29
|
+
| "registry"
|
|
30
|
+
| "requiredLevel"
|
|
31
|
+
| "settleWithCompliance"
|
|
32
|
+
| "settlementResults"
|
|
33
|
+
): FunctionFragment;
|
|
34
|
+
|
|
35
|
+
getEvent(nameOrSignatureOrTopic: "SettlementAttempted"): EventFragment;
|
|
36
|
+
|
|
37
|
+
encodeFunctionData(
|
|
38
|
+
functionFragment: "confidentialProtocolId",
|
|
39
|
+
values?: undefined
|
|
40
|
+
): string;
|
|
41
|
+
encodeFunctionData(functionFragment: "registry", values?: undefined): string;
|
|
42
|
+
encodeFunctionData(
|
|
43
|
+
functionFragment: "requiredLevel",
|
|
44
|
+
values?: undefined
|
|
45
|
+
): string;
|
|
46
|
+
encodeFunctionData(
|
|
47
|
+
functionFragment: "settleWithCompliance",
|
|
48
|
+
values: [AddressLike]
|
|
49
|
+
): string;
|
|
50
|
+
encodeFunctionData(
|
|
51
|
+
functionFragment: "settlementResults",
|
|
52
|
+
values: [AddressLike]
|
|
53
|
+
): string;
|
|
54
|
+
|
|
55
|
+
decodeFunctionResult(
|
|
56
|
+
functionFragment: "confidentialProtocolId",
|
|
57
|
+
data: BytesLike
|
|
58
|
+
): Result;
|
|
59
|
+
decodeFunctionResult(functionFragment: "registry", data: BytesLike): Result;
|
|
60
|
+
decodeFunctionResult(
|
|
61
|
+
functionFragment: "requiredLevel",
|
|
62
|
+
data: BytesLike
|
|
63
|
+
): Result;
|
|
64
|
+
decodeFunctionResult(
|
|
65
|
+
functionFragment: "settleWithCompliance",
|
|
66
|
+
data: BytesLike
|
|
67
|
+
): Result;
|
|
68
|
+
decodeFunctionResult(
|
|
69
|
+
functionFragment: "settlementResults",
|
|
70
|
+
data: BytesLike
|
|
71
|
+
): Result;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export namespace SettlementAttemptedEvent {
|
|
75
|
+
export type InputTuple = [payer: AddressLike];
|
|
76
|
+
export type OutputTuple = [payer: string];
|
|
77
|
+
export interface OutputObject {
|
|
78
|
+
payer: string;
|
|
79
|
+
}
|
|
80
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
81
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
82
|
+
export type Log = TypedEventLog<Event>;
|
|
83
|
+
export type LogDescription = TypedLogDescription<Event>;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export interface MockFacilitator extends BaseContract {
|
|
87
|
+
connect(runner?: ContractRunner | null): MockFacilitator;
|
|
88
|
+
waitForDeployment(): Promise<this>;
|
|
89
|
+
|
|
90
|
+
interface: MockFacilitatorInterface;
|
|
91
|
+
|
|
92
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
|
93
|
+
event: TCEvent,
|
|
94
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
95
|
+
toBlock?: string | number | undefined
|
|
96
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
97
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
|
98
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
99
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
100
|
+
toBlock?: string | number | undefined
|
|
101
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
102
|
+
|
|
103
|
+
on<TCEvent extends TypedContractEvent>(
|
|
104
|
+
event: TCEvent,
|
|
105
|
+
listener: TypedListener<TCEvent>
|
|
106
|
+
): Promise<this>;
|
|
107
|
+
on<TCEvent extends TypedContractEvent>(
|
|
108
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
109
|
+
listener: TypedListener<TCEvent>
|
|
110
|
+
): Promise<this>;
|
|
111
|
+
|
|
112
|
+
once<TCEvent extends TypedContractEvent>(
|
|
113
|
+
event: TCEvent,
|
|
114
|
+
listener: TypedListener<TCEvent>
|
|
115
|
+
): Promise<this>;
|
|
116
|
+
once<TCEvent extends TypedContractEvent>(
|
|
117
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
118
|
+
listener: TypedListener<TCEvent>
|
|
119
|
+
): Promise<this>;
|
|
120
|
+
|
|
121
|
+
listeners<TCEvent extends TypedContractEvent>(
|
|
122
|
+
event: TCEvent
|
|
123
|
+
): Promise<Array<TypedListener<TCEvent>>>;
|
|
124
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
125
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(
|
|
126
|
+
event?: TCEvent
|
|
127
|
+
): Promise<this>;
|
|
128
|
+
|
|
129
|
+
confidentialProtocolId: TypedContractMethod<[], [bigint], "view">;
|
|
130
|
+
|
|
131
|
+
registry: TypedContractMethod<[], [string], "view">;
|
|
132
|
+
|
|
133
|
+
requiredLevel: TypedContractMethod<[], [bigint], "view">;
|
|
134
|
+
|
|
135
|
+
settleWithCompliance: TypedContractMethod<
|
|
136
|
+
[payer: AddressLike],
|
|
137
|
+
[string],
|
|
138
|
+
"nonpayable"
|
|
139
|
+
>;
|
|
140
|
+
|
|
141
|
+
settlementResults: TypedContractMethod<
|
|
142
|
+
[payer: AddressLike],
|
|
143
|
+
[string],
|
|
144
|
+
"view"
|
|
145
|
+
>;
|
|
146
|
+
|
|
147
|
+
getFunction<T extends ContractMethod = ContractMethod>(
|
|
148
|
+
key: string | FunctionFragment
|
|
149
|
+
): T;
|
|
150
|
+
|
|
151
|
+
getFunction(
|
|
152
|
+
nameOrSignature: "confidentialProtocolId"
|
|
153
|
+
): TypedContractMethod<[], [bigint], "view">;
|
|
154
|
+
getFunction(
|
|
155
|
+
nameOrSignature: "registry"
|
|
156
|
+
): TypedContractMethod<[], [string], "view">;
|
|
157
|
+
getFunction(
|
|
158
|
+
nameOrSignature: "requiredLevel"
|
|
159
|
+
): TypedContractMethod<[], [bigint], "view">;
|
|
160
|
+
getFunction(
|
|
161
|
+
nameOrSignature: "settleWithCompliance"
|
|
162
|
+
): TypedContractMethod<[payer: AddressLike], [string], "nonpayable">;
|
|
163
|
+
getFunction(
|
|
164
|
+
nameOrSignature: "settlementResults"
|
|
165
|
+
): TypedContractMethod<[payer: AddressLike], [string], "view">;
|
|
166
|
+
|
|
167
|
+
getEvent(
|
|
168
|
+
key: "SettlementAttempted"
|
|
169
|
+
): TypedContractEvent<
|
|
170
|
+
SettlementAttemptedEvent.InputTuple,
|
|
171
|
+
SettlementAttemptedEvent.OutputTuple,
|
|
172
|
+
SettlementAttemptedEvent.OutputObject
|
|
173
|
+
>;
|
|
174
|
+
|
|
175
|
+
filters: {
|
|
176
|
+
"SettlementAttempted(address)": TypedContractEvent<
|
|
177
|
+
SettlementAttemptedEvent.InputTuple,
|
|
178
|
+
SettlementAttemptedEvent.OutputTuple,
|
|
179
|
+
SettlementAttemptedEvent.OutputObject
|
|
180
|
+
>;
|
|
181
|
+
SettlementAttempted: TypedContractEvent<
|
|
182
|
+
SettlementAttemptedEvent.InputTuple,
|
|
183
|
+
SettlementAttemptedEvent.OutputTuple,
|
|
184
|
+
SettlementAttemptedEvent.OutputObject
|
|
185
|
+
>;
|
|
186
|
+
};
|
|
187
|
+
}
|
package/typechain-types/contracts/tokens/{CompliantERC20.sol/CompliantERC20.ts → CompliantERC20.ts}
RENAMED
|
@@ -21,7 +21,7 @@ import type {
|
|
|
21
21
|
TypedLogDescription,
|
|
22
22
|
TypedListener,
|
|
23
23
|
TypedContractMethod,
|
|
24
|
-
} from "
|
|
24
|
+
} from "../../common";
|
|
25
25
|
|
|
26
26
|
export interface CompliantERC20Interface extends Interface {
|
|
27
27
|
getFunction(
|
|
@@ -38,6 +38,7 @@ export interface CompliantERC20Interface extends Interface {
|
|
|
38
38
|
| "name"
|
|
39
39
|
| "owner"
|
|
40
40
|
| "pendingOwner"
|
|
41
|
+
| "renounceOwnership"
|
|
41
42
|
| "setComplianceChecker"
|
|
42
43
|
| "symbol"
|
|
43
44
|
| "totalSupply"
|
|
@@ -93,6 +94,10 @@ export interface CompliantERC20Interface extends Interface {
|
|
|
93
94
|
functionFragment: "pendingOwner",
|
|
94
95
|
values?: undefined
|
|
95
96
|
): string;
|
|
97
|
+
encodeFunctionData(
|
|
98
|
+
functionFragment: "renounceOwnership",
|
|
99
|
+
values?: undefined
|
|
100
|
+
): string;
|
|
96
101
|
encodeFunctionData(
|
|
97
102
|
functionFragment: "setComplianceChecker",
|
|
98
103
|
values: [AddressLike]
|
|
@@ -143,6 +148,10 @@ export interface CompliantERC20Interface extends Interface {
|
|
|
143
148
|
functionFragment: "pendingOwner",
|
|
144
149
|
data: BytesLike
|
|
145
150
|
): Result;
|
|
151
|
+
decodeFunctionResult(
|
|
152
|
+
functionFragment: "renounceOwnership",
|
|
153
|
+
data: BytesLike
|
|
154
|
+
): Result;
|
|
146
155
|
decodeFunctionResult(
|
|
147
156
|
functionFragment: "setComplianceChecker",
|
|
148
157
|
data: BytesLike
|
|
@@ -209,14 +218,11 @@ export namespace MintEvent {
|
|
|
209
218
|
}
|
|
210
219
|
|
|
211
220
|
export namespace OwnershipTransferStartedEvent {
|
|
212
|
-
export type InputTuple = [
|
|
213
|
-
|
|
214
|
-
pendingOwner: AddressLike
|
|
215
|
-
];
|
|
216
|
-
export type OutputTuple = [currentOwner: string, pendingOwner: string];
|
|
221
|
+
export type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike];
|
|
222
|
+
export type OutputTuple = [previousOwner: string, newOwner: string];
|
|
217
223
|
export interface OutputObject {
|
|
218
|
-
|
|
219
|
-
|
|
224
|
+
previousOwner: string;
|
|
225
|
+
newOwner: string;
|
|
220
226
|
}
|
|
221
227
|
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
222
228
|
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
@@ -329,6 +335,8 @@ export interface CompliantERC20 extends BaseContract {
|
|
|
329
335
|
|
|
330
336
|
pendingOwner: TypedContractMethod<[], [string], "view">;
|
|
331
337
|
|
|
338
|
+
renounceOwnership: TypedContractMethod<[], [void], "nonpayable">;
|
|
339
|
+
|
|
332
340
|
setComplianceChecker: TypedContractMethod<
|
|
333
341
|
[checker: AddressLike],
|
|
334
342
|
[void],
|
|
@@ -420,6 +428,9 @@ export interface CompliantERC20 extends BaseContract {
|
|
|
420
428
|
getFunction(
|
|
421
429
|
nameOrSignature: "pendingOwner"
|
|
422
430
|
): TypedContractMethod<[], [string], "view">;
|
|
431
|
+
getFunction(
|
|
432
|
+
nameOrSignature: "renounceOwnership"
|
|
433
|
+
): TypedContractMethod<[], [void], "nonpayable">;
|
|
423
434
|
getFunction(
|
|
424
435
|
nameOrSignature: "setComplianceChecker"
|
|
425
436
|
): TypedContractMethod<[checker: AddressLike], [void], "nonpayable">;
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { Contract, Interface, type ContractRunner } from "ethers";
|
|
6
|
+
import type {
|
|
7
|
+
Ownable2Step,
|
|
8
|
+
Ownable2StepInterface,
|
|
9
|
+
} from "../../../../@openzeppelin/contracts/access/Ownable2Step";
|
|
10
|
+
|
|
11
|
+
const _abi = [
|
|
12
|
+
{
|
|
13
|
+
inputs: [
|
|
14
|
+
{
|
|
15
|
+
internalType: "address",
|
|
16
|
+
name: "owner",
|
|
17
|
+
type: "address",
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
name: "OwnableInvalidOwner",
|
|
21
|
+
type: "error",
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
inputs: [
|
|
25
|
+
{
|
|
26
|
+
internalType: "address",
|
|
27
|
+
name: "account",
|
|
28
|
+
type: "address",
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
name: "OwnableUnauthorizedAccount",
|
|
32
|
+
type: "error",
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
anonymous: false,
|
|
36
|
+
inputs: [
|
|
37
|
+
{
|
|
38
|
+
indexed: true,
|
|
39
|
+
internalType: "address",
|
|
40
|
+
name: "previousOwner",
|
|
41
|
+
type: "address",
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
indexed: true,
|
|
45
|
+
internalType: "address",
|
|
46
|
+
name: "newOwner",
|
|
47
|
+
type: "address",
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
name: "OwnershipTransferStarted",
|
|
51
|
+
type: "event",
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
anonymous: false,
|
|
55
|
+
inputs: [
|
|
56
|
+
{
|
|
57
|
+
indexed: true,
|
|
58
|
+
internalType: "address",
|
|
59
|
+
name: "previousOwner",
|
|
60
|
+
type: "address",
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
indexed: true,
|
|
64
|
+
internalType: "address",
|
|
65
|
+
name: "newOwner",
|
|
66
|
+
type: "address",
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
name: "OwnershipTransferred",
|
|
70
|
+
type: "event",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
inputs: [],
|
|
74
|
+
name: "acceptOwnership",
|
|
75
|
+
outputs: [],
|
|
76
|
+
stateMutability: "nonpayable",
|
|
77
|
+
type: "function",
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
inputs: [],
|
|
81
|
+
name: "owner",
|
|
82
|
+
outputs: [
|
|
83
|
+
{
|
|
84
|
+
internalType: "address",
|
|
85
|
+
name: "",
|
|
86
|
+
type: "address",
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
stateMutability: "view",
|
|
90
|
+
type: "function",
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
inputs: [],
|
|
94
|
+
name: "pendingOwner",
|
|
95
|
+
outputs: [
|
|
96
|
+
{
|
|
97
|
+
internalType: "address",
|
|
98
|
+
name: "",
|
|
99
|
+
type: "address",
|
|
100
|
+
},
|
|
101
|
+
],
|
|
102
|
+
stateMutability: "view",
|
|
103
|
+
type: "function",
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
inputs: [],
|
|
107
|
+
name: "renounceOwnership",
|
|
108
|
+
outputs: [],
|
|
109
|
+
stateMutability: "nonpayable",
|
|
110
|
+
type: "function",
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
inputs: [
|
|
114
|
+
{
|
|
115
|
+
internalType: "address",
|
|
116
|
+
name: "newOwner",
|
|
117
|
+
type: "address",
|
|
118
|
+
},
|
|
119
|
+
],
|
|
120
|
+
name: "transferOwnership",
|
|
121
|
+
outputs: [],
|
|
122
|
+
stateMutability: "nonpayable",
|
|
123
|
+
type: "function",
|
|
124
|
+
},
|
|
125
|
+
] as const;
|
|
126
|
+
|
|
127
|
+
export class Ownable2Step__factory {
|
|
128
|
+
static readonly abi = _abi;
|
|
129
|
+
static createInterface(): Ownable2StepInterface {
|
|
130
|
+
return new Interface(_abi) as Ownable2StepInterface;
|
|
131
|
+
}
|
|
132
|
+
static connect(
|
|
133
|
+
address: string,
|
|
134
|
+
runner?: ContractRunner | null
|
|
135
|
+
): Ownable2Step {
|
|
136
|
+
return new Contract(address, _abi, runner) as unknown as Ownable2Step;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { Contract, Interface, type ContractRunner } from "ethers";
|
|
6
|
+
import type {
|
|
7
|
+
Ownable,
|
|
8
|
+
OwnableInterface,
|
|
9
|
+
} from "../../../../@openzeppelin/contracts/access/Ownable";
|
|
10
|
+
|
|
11
|
+
const _abi = [
|
|
12
|
+
{
|
|
13
|
+
inputs: [
|
|
14
|
+
{
|
|
15
|
+
internalType: "address",
|
|
16
|
+
name: "owner",
|
|
17
|
+
type: "address",
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
name: "OwnableInvalidOwner",
|
|
21
|
+
type: "error",
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
inputs: [
|
|
25
|
+
{
|
|
26
|
+
internalType: "address",
|
|
27
|
+
name: "account",
|
|
28
|
+
type: "address",
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
name: "OwnableUnauthorizedAccount",
|
|
32
|
+
type: "error",
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
anonymous: false,
|
|
36
|
+
inputs: [
|
|
37
|
+
{
|
|
38
|
+
indexed: true,
|
|
39
|
+
internalType: "address",
|
|
40
|
+
name: "previousOwner",
|
|
41
|
+
type: "address",
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
indexed: true,
|
|
45
|
+
internalType: "address",
|
|
46
|
+
name: "newOwner",
|
|
47
|
+
type: "address",
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
name: "OwnershipTransferred",
|
|
51
|
+
type: "event",
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
inputs: [],
|
|
55
|
+
name: "owner",
|
|
56
|
+
outputs: [
|
|
57
|
+
{
|
|
58
|
+
internalType: "address",
|
|
59
|
+
name: "",
|
|
60
|
+
type: "address",
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
stateMutability: "view",
|
|
64
|
+
type: "function",
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
inputs: [],
|
|
68
|
+
name: "renounceOwnership",
|
|
69
|
+
outputs: [],
|
|
70
|
+
stateMutability: "nonpayable",
|
|
71
|
+
type: "function",
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
inputs: [
|
|
75
|
+
{
|
|
76
|
+
internalType: "address",
|
|
77
|
+
name: "newOwner",
|
|
78
|
+
type: "address",
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
name: "transferOwnership",
|
|
82
|
+
outputs: [],
|
|
83
|
+
stateMutability: "nonpayable",
|
|
84
|
+
type: "function",
|
|
85
|
+
},
|
|
86
|
+
] as const;
|
|
87
|
+
|
|
88
|
+
export class Ownable__factory {
|
|
89
|
+
static readonly abi = _abi;
|
|
90
|
+
static createInterface(): OwnableInterface {
|
|
91
|
+
return new Interface(_abi) as OwnableInterface;
|
|
92
|
+
}
|
|
93
|
+
static connect(address: string, runner?: ContractRunner | null): Ownable {
|
|
94
|
+
return new Contract(address, _abi, runner) as unknown as Ownable;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { Contract, Interface, type ContractRunner } from "ethers";
|
|
6
|
+
import type {
|
|
7
|
+
IERC1967,
|
|
8
|
+
IERC1967Interface,
|
|
9
|
+
} from "../../../../@openzeppelin/contracts/interfaces/IERC1967";
|
|
10
|
+
|
|
11
|
+
const _abi = [
|
|
12
|
+
{
|
|
13
|
+
anonymous: false,
|
|
14
|
+
inputs: [
|
|
15
|
+
{
|
|
16
|
+
indexed: false,
|
|
17
|
+
internalType: "address",
|
|
18
|
+
name: "previousAdmin",
|
|
19
|
+
type: "address",
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
indexed: false,
|
|
23
|
+
internalType: "address",
|
|
24
|
+
name: "newAdmin",
|
|
25
|
+
type: "address",
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
name: "AdminChanged",
|
|
29
|
+
type: "event",
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
anonymous: false,
|
|
33
|
+
inputs: [
|
|
34
|
+
{
|
|
35
|
+
indexed: true,
|
|
36
|
+
internalType: "address",
|
|
37
|
+
name: "beacon",
|
|
38
|
+
type: "address",
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
name: "BeaconUpgraded",
|
|
42
|
+
type: "event",
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
anonymous: false,
|
|
46
|
+
inputs: [
|
|
47
|
+
{
|
|
48
|
+
indexed: true,
|
|
49
|
+
internalType: "address",
|
|
50
|
+
name: "implementation",
|
|
51
|
+
type: "address",
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
name: "Upgraded",
|
|
55
|
+
type: "event",
|
|
56
|
+
},
|
|
57
|
+
] as const;
|
|
58
|
+
|
|
59
|
+
export class IERC1967__factory {
|
|
60
|
+
static readonly abi = _abi;
|
|
61
|
+
static createInterface(): IERC1967Interface {
|
|
62
|
+
return new Interface(_abi) as IERC1967Interface;
|
|
63
|
+
}
|
|
64
|
+
static connect(address: string, runner?: ContractRunner | null): IERC1967 {
|
|
65
|
+
return new Contract(address, _abi, runner) as unknown as IERC1967;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { Contract, Interface, type ContractRunner } from "ethers";
|
|
6
|
+
import type {
|
|
7
|
+
IERC5267,
|
|
8
|
+
IERC5267Interface,
|
|
9
|
+
} from "../../../../@openzeppelin/contracts/interfaces/IERC5267";
|
|
10
|
+
|
|
11
|
+
const _abi = [
|
|
12
|
+
{
|
|
13
|
+
anonymous: false,
|
|
14
|
+
inputs: [],
|
|
15
|
+
name: "EIP712DomainChanged",
|
|
16
|
+
type: "event",
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
inputs: [],
|
|
20
|
+
name: "eip712Domain",
|
|
21
|
+
outputs: [
|
|
22
|
+
{
|
|
23
|
+
internalType: "bytes1",
|
|
24
|
+
name: "fields",
|
|
25
|
+
type: "bytes1",
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
internalType: "string",
|
|
29
|
+
name: "name",
|
|
30
|
+
type: "string",
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
internalType: "string",
|
|
34
|
+
name: "version",
|
|
35
|
+
type: "string",
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
internalType: "uint256",
|
|
39
|
+
name: "chainId",
|
|
40
|
+
type: "uint256",
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
internalType: "address",
|
|
44
|
+
name: "verifyingContract",
|
|
45
|
+
type: "address",
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
internalType: "bytes32",
|
|
49
|
+
name: "salt",
|
|
50
|
+
type: "bytes32",
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
internalType: "uint256[]",
|
|
54
|
+
name: "extensions",
|
|
55
|
+
type: "uint256[]",
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
stateMutability: "view",
|
|
59
|
+
type: "function",
|
|
60
|
+
},
|
|
61
|
+
] as const;
|
|
62
|
+
|
|
63
|
+
export class IERC5267__factory {
|
|
64
|
+
static readonly abi = _abi;
|
|
65
|
+
static createInterface(): IERC5267Interface {
|
|
66
|
+
return new Interface(_abi) as IERC5267Interface;
|
|
67
|
+
}
|
|
68
|
+
static connect(address: string, runner?: ContractRunner | null): IERC5267 {
|
|
69
|
+
return new Contract(address, _abi, runner) as unknown as IERC5267;
|
|
70
|
+
}
|
|
71
|
+
}
|