@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,196 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type {
|
|
5
|
+
BaseContract,
|
|
6
|
+
BigNumberish,
|
|
7
|
+
BytesLike,
|
|
8
|
+
FunctionFragment,
|
|
9
|
+
Result,
|
|
10
|
+
Interface,
|
|
11
|
+
EventFragment,
|
|
12
|
+
AddressLike,
|
|
13
|
+
ContractRunner,
|
|
14
|
+
ContractMethod,
|
|
15
|
+
Listener,
|
|
16
|
+
} from "ethers";
|
|
17
|
+
import type {
|
|
18
|
+
TypedContractEvent,
|
|
19
|
+
TypedDeferredTopicFilter,
|
|
20
|
+
TypedEventLog,
|
|
21
|
+
TypedLogDescription,
|
|
22
|
+
TypedListener,
|
|
23
|
+
TypedContractMethod,
|
|
24
|
+
} from "../../../../common";
|
|
25
|
+
|
|
26
|
+
export interface UUPSUpgradeableInterface extends Interface {
|
|
27
|
+
getFunction(
|
|
28
|
+
nameOrSignature:
|
|
29
|
+
| "UPGRADE_INTERFACE_VERSION"
|
|
30
|
+
| "proxiableUUID"
|
|
31
|
+
| "upgradeToAndCall"
|
|
32
|
+
): FunctionFragment;
|
|
33
|
+
|
|
34
|
+
getEvent(nameOrSignatureOrTopic: "Initialized" | "Upgraded"): EventFragment;
|
|
35
|
+
|
|
36
|
+
encodeFunctionData(
|
|
37
|
+
functionFragment: "UPGRADE_INTERFACE_VERSION",
|
|
38
|
+
values?: undefined
|
|
39
|
+
): string;
|
|
40
|
+
encodeFunctionData(
|
|
41
|
+
functionFragment: "proxiableUUID",
|
|
42
|
+
values?: undefined
|
|
43
|
+
): string;
|
|
44
|
+
encodeFunctionData(
|
|
45
|
+
functionFragment: "upgradeToAndCall",
|
|
46
|
+
values: [AddressLike, BytesLike]
|
|
47
|
+
): string;
|
|
48
|
+
|
|
49
|
+
decodeFunctionResult(
|
|
50
|
+
functionFragment: "UPGRADE_INTERFACE_VERSION",
|
|
51
|
+
data: BytesLike
|
|
52
|
+
): Result;
|
|
53
|
+
decodeFunctionResult(
|
|
54
|
+
functionFragment: "proxiableUUID",
|
|
55
|
+
data: BytesLike
|
|
56
|
+
): Result;
|
|
57
|
+
decodeFunctionResult(
|
|
58
|
+
functionFragment: "upgradeToAndCall",
|
|
59
|
+
data: BytesLike
|
|
60
|
+
): Result;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export namespace InitializedEvent {
|
|
64
|
+
export type InputTuple = [version: BigNumberish];
|
|
65
|
+
export type OutputTuple = [version: bigint];
|
|
66
|
+
export interface OutputObject {
|
|
67
|
+
version: bigint;
|
|
68
|
+
}
|
|
69
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
70
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
71
|
+
export type Log = TypedEventLog<Event>;
|
|
72
|
+
export type LogDescription = TypedLogDescription<Event>;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export namespace UpgradedEvent {
|
|
76
|
+
export type InputTuple = [implementation: AddressLike];
|
|
77
|
+
export type OutputTuple = [implementation: string];
|
|
78
|
+
export interface OutputObject {
|
|
79
|
+
implementation: string;
|
|
80
|
+
}
|
|
81
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
82
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
83
|
+
export type Log = TypedEventLog<Event>;
|
|
84
|
+
export type LogDescription = TypedLogDescription<Event>;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export interface UUPSUpgradeable extends BaseContract {
|
|
88
|
+
connect(runner?: ContractRunner | null): UUPSUpgradeable;
|
|
89
|
+
waitForDeployment(): Promise<this>;
|
|
90
|
+
|
|
91
|
+
interface: UUPSUpgradeableInterface;
|
|
92
|
+
|
|
93
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
|
94
|
+
event: TCEvent,
|
|
95
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
96
|
+
toBlock?: string | number | undefined
|
|
97
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
98
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
|
99
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
100
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
101
|
+
toBlock?: string | number | undefined
|
|
102
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
103
|
+
|
|
104
|
+
on<TCEvent extends TypedContractEvent>(
|
|
105
|
+
event: TCEvent,
|
|
106
|
+
listener: TypedListener<TCEvent>
|
|
107
|
+
): Promise<this>;
|
|
108
|
+
on<TCEvent extends TypedContractEvent>(
|
|
109
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
110
|
+
listener: TypedListener<TCEvent>
|
|
111
|
+
): Promise<this>;
|
|
112
|
+
|
|
113
|
+
once<TCEvent extends TypedContractEvent>(
|
|
114
|
+
event: TCEvent,
|
|
115
|
+
listener: TypedListener<TCEvent>
|
|
116
|
+
): Promise<this>;
|
|
117
|
+
once<TCEvent extends TypedContractEvent>(
|
|
118
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
119
|
+
listener: TypedListener<TCEvent>
|
|
120
|
+
): Promise<this>;
|
|
121
|
+
|
|
122
|
+
listeners<TCEvent extends TypedContractEvent>(
|
|
123
|
+
event: TCEvent
|
|
124
|
+
): Promise<Array<TypedListener<TCEvent>>>;
|
|
125
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
126
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(
|
|
127
|
+
event?: TCEvent
|
|
128
|
+
): Promise<this>;
|
|
129
|
+
|
|
130
|
+
UPGRADE_INTERFACE_VERSION: TypedContractMethod<[], [string], "view">;
|
|
131
|
+
|
|
132
|
+
proxiableUUID: TypedContractMethod<[], [string], "view">;
|
|
133
|
+
|
|
134
|
+
upgradeToAndCall: TypedContractMethod<
|
|
135
|
+
[newImplementation: AddressLike, data: BytesLike],
|
|
136
|
+
[void],
|
|
137
|
+
"payable"
|
|
138
|
+
>;
|
|
139
|
+
|
|
140
|
+
getFunction<T extends ContractMethod = ContractMethod>(
|
|
141
|
+
key: string | FunctionFragment
|
|
142
|
+
): T;
|
|
143
|
+
|
|
144
|
+
getFunction(
|
|
145
|
+
nameOrSignature: "UPGRADE_INTERFACE_VERSION"
|
|
146
|
+
): TypedContractMethod<[], [string], "view">;
|
|
147
|
+
getFunction(
|
|
148
|
+
nameOrSignature: "proxiableUUID"
|
|
149
|
+
): TypedContractMethod<[], [string], "view">;
|
|
150
|
+
getFunction(
|
|
151
|
+
nameOrSignature: "upgradeToAndCall"
|
|
152
|
+
): TypedContractMethod<
|
|
153
|
+
[newImplementation: AddressLike, data: BytesLike],
|
|
154
|
+
[void],
|
|
155
|
+
"payable"
|
|
156
|
+
>;
|
|
157
|
+
|
|
158
|
+
getEvent(
|
|
159
|
+
key: "Initialized"
|
|
160
|
+
): TypedContractEvent<
|
|
161
|
+
InitializedEvent.InputTuple,
|
|
162
|
+
InitializedEvent.OutputTuple,
|
|
163
|
+
InitializedEvent.OutputObject
|
|
164
|
+
>;
|
|
165
|
+
getEvent(
|
|
166
|
+
key: "Upgraded"
|
|
167
|
+
): TypedContractEvent<
|
|
168
|
+
UpgradedEvent.InputTuple,
|
|
169
|
+
UpgradedEvent.OutputTuple,
|
|
170
|
+
UpgradedEvent.OutputObject
|
|
171
|
+
>;
|
|
172
|
+
|
|
173
|
+
filters: {
|
|
174
|
+
"Initialized(uint64)": TypedContractEvent<
|
|
175
|
+
InitializedEvent.InputTuple,
|
|
176
|
+
InitializedEvent.OutputTuple,
|
|
177
|
+
InitializedEvent.OutputObject
|
|
178
|
+
>;
|
|
179
|
+
Initialized: TypedContractEvent<
|
|
180
|
+
InitializedEvent.InputTuple,
|
|
181
|
+
InitializedEvent.OutputTuple,
|
|
182
|
+
InitializedEvent.OutputObject
|
|
183
|
+
>;
|
|
184
|
+
|
|
185
|
+
"Upgraded(address)": TypedContractEvent<
|
|
186
|
+
UpgradedEvent.InputTuple,
|
|
187
|
+
UpgradedEvent.OutputTuple,
|
|
188
|
+
UpgradedEvent.OutputObject
|
|
189
|
+
>;
|
|
190
|
+
Upgraded: TypedContractEvent<
|
|
191
|
+
UpgradedEvent.InputTuple,
|
|
192
|
+
UpgradedEvent.OutputTuple,
|
|
193
|
+
UpgradedEvent.OutputObject
|
|
194
|
+
>;
|
|
195
|
+
};
|
|
196
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type {
|
|
5
|
+
BaseContract,
|
|
6
|
+
BigNumberish,
|
|
7
|
+
FunctionFragment,
|
|
8
|
+
Interface,
|
|
9
|
+
EventFragment,
|
|
10
|
+
ContractRunner,
|
|
11
|
+
ContractMethod,
|
|
12
|
+
Listener,
|
|
13
|
+
} from "ethers";
|
|
14
|
+
import type {
|
|
15
|
+
TypedContractEvent,
|
|
16
|
+
TypedDeferredTopicFilter,
|
|
17
|
+
TypedEventLog,
|
|
18
|
+
TypedLogDescription,
|
|
19
|
+
TypedListener,
|
|
20
|
+
} from "../../../common";
|
|
21
|
+
|
|
22
|
+
export interface ContextUpgradeableInterface extends Interface {
|
|
23
|
+
getEvent(nameOrSignatureOrTopic: "Initialized"): EventFragment;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export namespace InitializedEvent {
|
|
27
|
+
export type InputTuple = [version: BigNumberish];
|
|
28
|
+
export type OutputTuple = [version: bigint];
|
|
29
|
+
export interface OutputObject {
|
|
30
|
+
version: bigint;
|
|
31
|
+
}
|
|
32
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
33
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
34
|
+
export type Log = TypedEventLog<Event>;
|
|
35
|
+
export type LogDescription = TypedLogDescription<Event>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface ContextUpgradeable extends BaseContract {
|
|
39
|
+
connect(runner?: ContractRunner | null): ContextUpgradeable;
|
|
40
|
+
waitForDeployment(): Promise<this>;
|
|
41
|
+
|
|
42
|
+
interface: ContextUpgradeableInterface;
|
|
43
|
+
|
|
44
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
|
45
|
+
event: TCEvent,
|
|
46
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
47
|
+
toBlock?: string | number | undefined
|
|
48
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
49
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
|
50
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
51
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
52
|
+
toBlock?: string | number | undefined
|
|
53
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
54
|
+
|
|
55
|
+
on<TCEvent extends TypedContractEvent>(
|
|
56
|
+
event: TCEvent,
|
|
57
|
+
listener: TypedListener<TCEvent>
|
|
58
|
+
): Promise<this>;
|
|
59
|
+
on<TCEvent extends TypedContractEvent>(
|
|
60
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
61
|
+
listener: TypedListener<TCEvent>
|
|
62
|
+
): Promise<this>;
|
|
63
|
+
|
|
64
|
+
once<TCEvent extends TypedContractEvent>(
|
|
65
|
+
event: TCEvent,
|
|
66
|
+
listener: TypedListener<TCEvent>
|
|
67
|
+
): Promise<this>;
|
|
68
|
+
once<TCEvent extends TypedContractEvent>(
|
|
69
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
70
|
+
listener: TypedListener<TCEvent>
|
|
71
|
+
): Promise<this>;
|
|
72
|
+
|
|
73
|
+
listeners<TCEvent extends TypedContractEvent>(
|
|
74
|
+
event: TCEvent
|
|
75
|
+
): Promise<Array<TypedListener<TCEvent>>>;
|
|
76
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
77
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(
|
|
78
|
+
event?: TCEvent
|
|
79
|
+
): Promise<this>;
|
|
80
|
+
|
|
81
|
+
getFunction<T extends ContractMethod = ContractMethod>(
|
|
82
|
+
key: string | FunctionFragment
|
|
83
|
+
): T;
|
|
84
|
+
|
|
85
|
+
getEvent(
|
|
86
|
+
key: "Initialized"
|
|
87
|
+
): TypedContractEvent<
|
|
88
|
+
InitializedEvent.InputTuple,
|
|
89
|
+
InitializedEvent.OutputTuple,
|
|
90
|
+
InitializedEvent.OutputObject
|
|
91
|
+
>;
|
|
92
|
+
|
|
93
|
+
filters: {
|
|
94
|
+
"Initialized(uint64)": TypedContractEvent<
|
|
95
|
+
InitializedEvent.InputTuple,
|
|
96
|
+
InitializedEvent.OutputTuple,
|
|
97
|
+
InitializedEvent.OutputObject
|
|
98
|
+
>;
|
|
99
|
+
Initialized: TypedContractEvent<
|
|
100
|
+
InitializedEvent.InputTuple,
|
|
101
|
+
InitializedEvent.OutputTuple,
|
|
102
|
+
InitializedEvent.OutputObject
|
|
103
|
+
>;
|
|
104
|
+
};
|
|
105
|
+
}
|
package/typechain-types/@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.ts
ADDED
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type {
|
|
5
|
+
BaseContract,
|
|
6
|
+
BigNumberish,
|
|
7
|
+
BytesLike,
|
|
8
|
+
FunctionFragment,
|
|
9
|
+
Result,
|
|
10
|
+
Interface,
|
|
11
|
+
EventFragment,
|
|
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 EIP712UpgradeableInterface extends Interface {
|
|
26
|
+
getFunction(nameOrSignature: "eip712Domain"): FunctionFragment;
|
|
27
|
+
|
|
28
|
+
getEvent(
|
|
29
|
+
nameOrSignatureOrTopic: "EIP712DomainChanged" | "Initialized"
|
|
30
|
+
): EventFragment;
|
|
31
|
+
|
|
32
|
+
encodeFunctionData(
|
|
33
|
+
functionFragment: "eip712Domain",
|
|
34
|
+
values?: undefined
|
|
35
|
+
): string;
|
|
36
|
+
|
|
37
|
+
decodeFunctionResult(
|
|
38
|
+
functionFragment: "eip712Domain",
|
|
39
|
+
data: BytesLike
|
|
40
|
+
): Result;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export namespace EIP712DomainChangedEvent {
|
|
44
|
+
export type InputTuple = [];
|
|
45
|
+
export type OutputTuple = [];
|
|
46
|
+
export interface OutputObject {}
|
|
47
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
48
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
49
|
+
export type Log = TypedEventLog<Event>;
|
|
50
|
+
export type LogDescription = TypedLogDescription<Event>;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export namespace InitializedEvent {
|
|
54
|
+
export type InputTuple = [version: BigNumberish];
|
|
55
|
+
export type OutputTuple = [version: bigint];
|
|
56
|
+
export interface OutputObject {
|
|
57
|
+
version: bigint;
|
|
58
|
+
}
|
|
59
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
60
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
61
|
+
export type Log = TypedEventLog<Event>;
|
|
62
|
+
export type LogDescription = TypedLogDescription<Event>;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export interface EIP712Upgradeable extends BaseContract {
|
|
66
|
+
connect(runner?: ContractRunner | null): EIP712Upgradeable;
|
|
67
|
+
waitForDeployment(): Promise<this>;
|
|
68
|
+
|
|
69
|
+
interface: EIP712UpgradeableInterface;
|
|
70
|
+
|
|
71
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
|
72
|
+
event: TCEvent,
|
|
73
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
74
|
+
toBlock?: string | number | undefined
|
|
75
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
76
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
|
77
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
78
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
79
|
+
toBlock?: string | number | undefined
|
|
80
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
81
|
+
|
|
82
|
+
on<TCEvent extends TypedContractEvent>(
|
|
83
|
+
event: TCEvent,
|
|
84
|
+
listener: TypedListener<TCEvent>
|
|
85
|
+
): Promise<this>;
|
|
86
|
+
on<TCEvent extends TypedContractEvent>(
|
|
87
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
88
|
+
listener: TypedListener<TCEvent>
|
|
89
|
+
): Promise<this>;
|
|
90
|
+
|
|
91
|
+
once<TCEvent extends TypedContractEvent>(
|
|
92
|
+
event: TCEvent,
|
|
93
|
+
listener: TypedListener<TCEvent>
|
|
94
|
+
): Promise<this>;
|
|
95
|
+
once<TCEvent extends TypedContractEvent>(
|
|
96
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
97
|
+
listener: TypedListener<TCEvent>
|
|
98
|
+
): Promise<this>;
|
|
99
|
+
|
|
100
|
+
listeners<TCEvent extends TypedContractEvent>(
|
|
101
|
+
event: TCEvent
|
|
102
|
+
): Promise<Array<TypedListener<TCEvent>>>;
|
|
103
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
104
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(
|
|
105
|
+
event?: TCEvent
|
|
106
|
+
): Promise<this>;
|
|
107
|
+
|
|
108
|
+
eip712Domain: TypedContractMethod<
|
|
109
|
+
[],
|
|
110
|
+
[
|
|
111
|
+
[string, string, string, bigint, string, string, bigint[]] & {
|
|
112
|
+
fields: string;
|
|
113
|
+
name: string;
|
|
114
|
+
version: string;
|
|
115
|
+
chainId: bigint;
|
|
116
|
+
verifyingContract: string;
|
|
117
|
+
salt: string;
|
|
118
|
+
extensions: bigint[];
|
|
119
|
+
}
|
|
120
|
+
],
|
|
121
|
+
"view"
|
|
122
|
+
>;
|
|
123
|
+
|
|
124
|
+
getFunction<T extends ContractMethod = ContractMethod>(
|
|
125
|
+
key: string | FunctionFragment
|
|
126
|
+
): T;
|
|
127
|
+
|
|
128
|
+
getFunction(
|
|
129
|
+
nameOrSignature: "eip712Domain"
|
|
130
|
+
): TypedContractMethod<
|
|
131
|
+
[],
|
|
132
|
+
[
|
|
133
|
+
[string, string, string, bigint, string, string, bigint[]] & {
|
|
134
|
+
fields: string;
|
|
135
|
+
name: string;
|
|
136
|
+
version: string;
|
|
137
|
+
chainId: bigint;
|
|
138
|
+
verifyingContract: string;
|
|
139
|
+
salt: string;
|
|
140
|
+
extensions: bigint[];
|
|
141
|
+
}
|
|
142
|
+
],
|
|
143
|
+
"view"
|
|
144
|
+
>;
|
|
145
|
+
|
|
146
|
+
getEvent(
|
|
147
|
+
key: "EIP712DomainChanged"
|
|
148
|
+
): TypedContractEvent<
|
|
149
|
+
EIP712DomainChangedEvent.InputTuple,
|
|
150
|
+
EIP712DomainChangedEvent.OutputTuple,
|
|
151
|
+
EIP712DomainChangedEvent.OutputObject
|
|
152
|
+
>;
|
|
153
|
+
getEvent(
|
|
154
|
+
key: "Initialized"
|
|
155
|
+
): TypedContractEvent<
|
|
156
|
+
InitializedEvent.InputTuple,
|
|
157
|
+
InitializedEvent.OutputTuple,
|
|
158
|
+
InitializedEvent.OutputObject
|
|
159
|
+
>;
|
|
160
|
+
|
|
161
|
+
filters: {
|
|
162
|
+
"EIP712DomainChanged()": TypedContractEvent<
|
|
163
|
+
EIP712DomainChangedEvent.InputTuple,
|
|
164
|
+
EIP712DomainChangedEvent.OutputTuple,
|
|
165
|
+
EIP712DomainChangedEvent.OutputObject
|
|
166
|
+
>;
|
|
167
|
+
EIP712DomainChanged: TypedContractEvent<
|
|
168
|
+
EIP712DomainChangedEvent.InputTuple,
|
|
169
|
+
EIP712DomainChangedEvent.OutputTuple,
|
|
170
|
+
EIP712DomainChangedEvent.OutputObject
|
|
171
|
+
>;
|
|
172
|
+
|
|
173
|
+
"Initialized(uint64)": TypedContractEvent<
|
|
174
|
+
InitializedEvent.InputTuple,
|
|
175
|
+
InitializedEvent.OutputTuple,
|
|
176
|
+
InitializedEvent.OutputObject
|
|
177
|
+
>;
|
|
178
|
+
Initialized: TypedContractEvent<
|
|
179
|
+
InitializedEvent.InputTuple,
|
|
180
|
+
InitializedEvent.OutputTuple,
|
|
181
|
+
InitializedEvent.OutputObject
|
|
182
|
+
>;
|
|
183
|
+
};
|
|
184
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type * as contracts from "./contracts";
|
|
5
|
+
export type { contracts };
|
|
6
|
+
import type * as contractsUpgradeable from "./contracts-upgradeable";
|
|
7
|
+
export type { contractsUpgradeable };
|
|
@@ -37,6 +37,7 @@ export interface ComplianceRulesInterface extends Interface {
|
|
|
37
37
|
| "minComplianceLevel"
|
|
38
38
|
| "owner"
|
|
39
39
|
| "pendingOwner"
|
|
40
|
+
| "renounceOwnership"
|
|
40
41
|
| "setAuthorizedCaller"
|
|
41
42
|
| "setMinComplianceLevel"
|
|
42
43
|
| "transferOwnership"
|
|
@@ -92,6 +93,10 @@ export interface ComplianceRulesInterface extends Interface {
|
|
|
92
93
|
functionFragment: "pendingOwner",
|
|
93
94
|
values?: undefined
|
|
94
95
|
): string;
|
|
96
|
+
encodeFunctionData(
|
|
97
|
+
functionFragment: "renounceOwnership",
|
|
98
|
+
values?: undefined
|
|
99
|
+
): string;
|
|
95
100
|
encodeFunctionData(
|
|
96
101
|
functionFragment: "setAuthorizedCaller",
|
|
97
102
|
values: [AddressLike, boolean]
|
|
@@ -146,6 +151,10 @@ export interface ComplianceRulesInterface extends Interface {
|
|
|
146
151
|
functionFragment: "pendingOwner",
|
|
147
152
|
data: BytesLike
|
|
148
153
|
): Result;
|
|
154
|
+
decodeFunctionResult(
|
|
155
|
+
functionFragment: "renounceOwnership",
|
|
156
|
+
data: BytesLike
|
|
157
|
+
): Result;
|
|
149
158
|
decodeFunctionResult(
|
|
150
159
|
functionFragment: "setAuthorizedCaller",
|
|
151
160
|
data: BytesLike
|
|
@@ -198,14 +207,11 @@ export namespace MinComplianceLevelUpdatedEvent {
|
|
|
198
207
|
}
|
|
199
208
|
|
|
200
209
|
export namespace OwnershipTransferStartedEvent {
|
|
201
|
-
export type InputTuple = [
|
|
202
|
-
|
|
203
|
-
pendingOwner: AddressLike
|
|
204
|
-
];
|
|
205
|
-
export type OutputTuple = [currentOwner: string, pendingOwner: string];
|
|
210
|
+
export type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike];
|
|
211
|
+
export type OutputTuple = [previousOwner: string, newOwner: string];
|
|
206
212
|
export interface OutputObject {
|
|
207
|
-
|
|
208
|
-
|
|
213
|
+
previousOwner: string;
|
|
214
|
+
newOwner: string;
|
|
209
215
|
}
|
|
210
216
|
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
211
217
|
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
@@ -311,6 +317,8 @@ export interface ComplianceRules extends BaseContract {
|
|
|
311
317
|
|
|
312
318
|
pendingOwner: TypedContractMethod<[], [string], "view">;
|
|
313
319
|
|
|
320
|
+
renounceOwnership: TypedContractMethod<[], [void], "nonpayable">;
|
|
321
|
+
|
|
314
322
|
setAuthorizedCaller: TypedContractMethod<
|
|
315
323
|
[caller: AddressLike, allowed: boolean],
|
|
316
324
|
[void],
|
|
@@ -370,6 +378,9 @@ export interface ComplianceRules extends BaseContract {
|
|
|
370
378
|
getFunction(
|
|
371
379
|
nameOrSignature: "pendingOwner"
|
|
372
380
|
): TypedContractMethod<[], [string], "view">;
|
|
381
|
+
getFunction(
|
|
382
|
+
nameOrSignature: "renounceOwnership"
|
|
383
|
+
): TypedContractMethod<[], [void], "nonpayable">;
|
|
373
384
|
getFunction(
|
|
374
385
|
nameOrSignature: "setAuthorizedCaller"
|
|
375
386
|
): TypedContractMethod<
|