@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,69 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type {
|
|
5
|
+
BaseContract,
|
|
6
|
+
FunctionFragment,
|
|
7
|
+
Interface,
|
|
8
|
+
ContractRunner,
|
|
9
|
+
ContractMethod,
|
|
10
|
+
Listener,
|
|
11
|
+
} from "ethers";
|
|
12
|
+
import type {
|
|
13
|
+
TypedContractEvent,
|
|
14
|
+
TypedDeferredTopicFilter,
|
|
15
|
+
TypedEventLog,
|
|
16
|
+
TypedListener,
|
|
17
|
+
} from "../../../../common";
|
|
18
|
+
|
|
19
|
+
export interface SafeCastInterface extends Interface {}
|
|
20
|
+
|
|
21
|
+
export interface SafeCast extends BaseContract {
|
|
22
|
+
connect(runner?: ContractRunner | null): SafeCast;
|
|
23
|
+
waitForDeployment(): Promise<this>;
|
|
24
|
+
|
|
25
|
+
interface: SafeCastInterface;
|
|
26
|
+
|
|
27
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
|
28
|
+
event: TCEvent,
|
|
29
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
30
|
+
toBlock?: string | number | undefined
|
|
31
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
32
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
|
33
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
34
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
35
|
+
toBlock?: string | number | undefined
|
|
36
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
37
|
+
|
|
38
|
+
on<TCEvent extends TypedContractEvent>(
|
|
39
|
+
event: TCEvent,
|
|
40
|
+
listener: TypedListener<TCEvent>
|
|
41
|
+
): Promise<this>;
|
|
42
|
+
on<TCEvent extends TypedContractEvent>(
|
|
43
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
44
|
+
listener: TypedListener<TCEvent>
|
|
45
|
+
): Promise<this>;
|
|
46
|
+
|
|
47
|
+
once<TCEvent extends TypedContractEvent>(
|
|
48
|
+
event: TCEvent,
|
|
49
|
+
listener: TypedListener<TCEvent>
|
|
50
|
+
): Promise<this>;
|
|
51
|
+
once<TCEvent extends TypedContractEvent>(
|
|
52
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
53
|
+
listener: TypedListener<TCEvent>
|
|
54
|
+
): Promise<this>;
|
|
55
|
+
|
|
56
|
+
listeners<TCEvent extends TypedContractEvent>(
|
|
57
|
+
event: TCEvent
|
|
58
|
+
): Promise<Array<TypedListener<TCEvent>>>;
|
|
59
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
60
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(
|
|
61
|
+
event?: TCEvent
|
|
62
|
+
): Promise<this>;
|
|
63
|
+
|
|
64
|
+
getFunction<T extends ContractMethod = ContractMethod>(
|
|
65
|
+
key: string | FunctionFragment
|
|
66
|
+
): T;
|
|
67
|
+
|
|
68
|
+
filters: {};
|
|
69
|
+
}
|
|
@@ -0,0 +1,251 @@
|
|
|
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 Ownable2StepUpgradeableInterface extends Interface {
|
|
27
|
+
getFunction(
|
|
28
|
+
nameOrSignature:
|
|
29
|
+
| "acceptOwnership"
|
|
30
|
+
| "owner"
|
|
31
|
+
| "pendingOwner"
|
|
32
|
+
| "renounceOwnership"
|
|
33
|
+
| "transferOwnership"
|
|
34
|
+
): FunctionFragment;
|
|
35
|
+
|
|
36
|
+
getEvent(
|
|
37
|
+
nameOrSignatureOrTopic:
|
|
38
|
+
| "Initialized"
|
|
39
|
+
| "OwnershipTransferStarted"
|
|
40
|
+
| "OwnershipTransferred"
|
|
41
|
+
): EventFragment;
|
|
42
|
+
|
|
43
|
+
encodeFunctionData(
|
|
44
|
+
functionFragment: "acceptOwnership",
|
|
45
|
+
values?: undefined
|
|
46
|
+
): string;
|
|
47
|
+
encodeFunctionData(functionFragment: "owner", values?: undefined): string;
|
|
48
|
+
encodeFunctionData(
|
|
49
|
+
functionFragment: "pendingOwner",
|
|
50
|
+
values?: undefined
|
|
51
|
+
): string;
|
|
52
|
+
encodeFunctionData(
|
|
53
|
+
functionFragment: "renounceOwnership",
|
|
54
|
+
values?: undefined
|
|
55
|
+
): string;
|
|
56
|
+
encodeFunctionData(
|
|
57
|
+
functionFragment: "transferOwnership",
|
|
58
|
+
values: [AddressLike]
|
|
59
|
+
): string;
|
|
60
|
+
|
|
61
|
+
decodeFunctionResult(
|
|
62
|
+
functionFragment: "acceptOwnership",
|
|
63
|
+
data: BytesLike
|
|
64
|
+
): Result;
|
|
65
|
+
decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
|
|
66
|
+
decodeFunctionResult(
|
|
67
|
+
functionFragment: "pendingOwner",
|
|
68
|
+
data: BytesLike
|
|
69
|
+
): Result;
|
|
70
|
+
decodeFunctionResult(
|
|
71
|
+
functionFragment: "renounceOwnership",
|
|
72
|
+
data: BytesLike
|
|
73
|
+
): Result;
|
|
74
|
+
decodeFunctionResult(
|
|
75
|
+
functionFragment: "transferOwnership",
|
|
76
|
+
data: BytesLike
|
|
77
|
+
): Result;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export namespace InitializedEvent {
|
|
81
|
+
export type InputTuple = [version: BigNumberish];
|
|
82
|
+
export type OutputTuple = [version: bigint];
|
|
83
|
+
export interface OutputObject {
|
|
84
|
+
version: bigint;
|
|
85
|
+
}
|
|
86
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
87
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
88
|
+
export type Log = TypedEventLog<Event>;
|
|
89
|
+
export type LogDescription = TypedLogDescription<Event>;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export namespace OwnershipTransferStartedEvent {
|
|
93
|
+
export type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike];
|
|
94
|
+
export type OutputTuple = [previousOwner: string, newOwner: string];
|
|
95
|
+
export interface OutputObject {
|
|
96
|
+
previousOwner: string;
|
|
97
|
+
newOwner: string;
|
|
98
|
+
}
|
|
99
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
100
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
101
|
+
export type Log = TypedEventLog<Event>;
|
|
102
|
+
export type LogDescription = TypedLogDescription<Event>;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export namespace OwnershipTransferredEvent {
|
|
106
|
+
export type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike];
|
|
107
|
+
export type OutputTuple = [previousOwner: string, newOwner: string];
|
|
108
|
+
export interface OutputObject {
|
|
109
|
+
previousOwner: string;
|
|
110
|
+
newOwner: string;
|
|
111
|
+
}
|
|
112
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
113
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
114
|
+
export type Log = TypedEventLog<Event>;
|
|
115
|
+
export type LogDescription = TypedLogDescription<Event>;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export interface Ownable2StepUpgradeable extends BaseContract {
|
|
119
|
+
connect(runner?: ContractRunner | null): Ownable2StepUpgradeable;
|
|
120
|
+
waitForDeployment(): Promise<this>;
|
|
121
|
+
|
|
122
|
+
interface: Ownable2StepUpgradeableInterface;
|
|
123
|
+
|
|
124
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
|
125
|
+
event: TCEvent,
|
|
126
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
127
|
+
toBlock?: string | number | undefined
|
|
128
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
129
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
|
130
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
131
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
132
|
+
toBlock?: string | number | undefined
|
|
133
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
134
|
+
|
|
135
|
+
on<TCEvent extends TypedContractEvent>(
|
|
136
|
+
event: TCEvent,
|
|
137
|
+
listener: TypedListener<TCEvent>
|
|
138
|
+
): Promise<this>;
|
|
139
|
+
on<TCEvent extends TypedContractEvent>(
|
|
140
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
141
|
+
listener: TypedListener<TCEvent>
|
|
142
|
+
): Promise<this>;
|
|
143
|
+
|
|
144
|
+
once<TCEvent extends TypedContractEvent>(
|
|
145
|
+
event: TCEvent,
|
|
146
|
+
listener: TypedListener<TCEvent>
|
|
147
|
+
): Promise<this>;
|
|
148
|
+
once<TCEvent extends TypedContractEvent>(
|
|
149
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
150
|
+
listener: TypedListener<TCEvent>
|
|
151
|
+
): Promise<this>;
|
|
152
|
+
|
|
153
|
+
listeners<TCEvent extends TypedContractEvent>(
|
|
154
|
+
event: TCEvent
|
|
155
|
+
): Promise<Array<TypedListener<TCEvent>>>;
|
|
156
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
157
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(
|
|
158
|
+
event?: TCEvent
|
|
159
|
+
): Promise<this>;
|
|
160
|
+
|
|
161
|
+
acceptOwnership: TypedContractMethod<[], [void], "nonpayable">;
|
|
162
|
+
|
|
163
|
+
owner: TypedContractMethod<[], [string], "view">;
|
|
164
|
+
|
|
165
|
+
pendingOwner: TypedContractMethod<[], [string], "view">;
|
|
166
|
+
|
|
167
|
+
renounceOwnership: TypedContractMethod<[], [void], "nonpayable">;
|
|
168
|
+
|
|
169
|
+
transferOwnership: TypedContractMethod<
|
|
170
|
+
[newOwner: AddressLike],
|
|
171
|
+
[void],
|
|
172
|
+
"nonpayable"
|
|
173
|
+
>;
|
|
174
|
+
|
|
175
|
+
getFunction<T extends ContractMethod = ContractMethod>(
|
|
176
|
+
key: string | FunctionFragment
|
|
177
|
+
): T;
|
|
178
|
+
|
|
179
|
+
getFunction(
|
|
180
|
+
nameOrSignature: "acceptOwnership"
|
|
181
|
+
): TypedContractMethod<[], [void], "nonpayable">;
|
|
182
|
+
getFunction(
|
|
183
|
+
nameOrSignature: "owner"
|
|
184
|
+
): TypedContractMethod<[], [string], "view">;
|
|
185
|
+
getFunction(
|
|
186
|
+
nameOrSignature: "pendingOwner"
|
|
187
|
+
): TypedContractMethod<[], [string], "view">;
|
|
188
|
+
getFunction(
|
|
189
|
+
nameOrSignature: "renounceOwnership"
|
|
190
|
+
): TypedContractMethod<[], [void], "nonpayable">;
|
|
191
|
+
getFunction(
|
|
192
|
+
nameOrSignature: "transferOwnership"
|
|
193
|
+
): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">;
|
|
194
|
+
|
|
195
|
+
getEvent(
|
|
196
|
+
key: "Initialized"
|
|
197
|
+
): TypedContractEvent<
|
|
198
|
+
InitializedEvent.InputTuple,
|
|
199
|
+
InitializedEvent.OutputTuple,
|
|
200
|
+
InitializedEvent.OutputObject
|
|
201
|
+
>;
|
|
202
|
+
getEvent(
|
|
203
|
+
key: "OwnershipTransferStarted"
|
|
204
|
+
): TypedContractEvent<
|
|
205
|
+
OwnershipTransferStartedEvent.InputTuple,
|
|
206
|
+
OwnershipTransferStartedEvent.OutputTuple,
|
|
207
|
+
OwnershipTransferStartedEvent.OutputObject
|
|
208
|
+
>;
|
|
209
|
+
getEvent(
|
|
210
|
+
key: "OwnershipTransferred"
|
|
211
|
+
): TypedContractEvent<
|
|
212
|
+
OwnershipTransferredEvent.InputTuple,
|
|
213
|
+
OwnershipTransferredEvent.OutputTuple,
|
|
214
|
+
OwnershipTransferredEvent.OutputObject
|
|
215
|
+
>;
|
|
216
|
+
|
|
217
|
+
filters: {
|
|
218
|
+
"Initialized(uint64)": TypedContractEvent<
|
|
219
|
+
InitializedEvent.InputTuple,
|
|
220
|
+
InitializedEvent.OutputTuple,
|
|
221
|
+
InitializedEvent.OutputObject
|
|
222
|
+
>;
|
|
223
|
+
Initialized: TypedContractEvent<
|
|
224
|
+
InitializedEvent.InputTuple,
|
|
225
|
+
InitializedEvent.OutputTuple,
|
|
226
|
+
InitializedEvent.OutputObject
|
|
227
|
+
>;
|
|
228
|
+
|
|
229
|
+
"OwnershipTransferStarted(address,address)": TypedContractEvent<
|
|
230
|
+
OwnershipTransferStartedEvent.InputTuple,
|
|
231
|
+
OwnershipTransferStartedEvent.OutputTuple,
|
|
232
|
+
OwnershipTransferStartedEvent.OutputObject
|
|
233
|
+
>;
|
|
234
|
+
OwnershipTransferStarted: TypedContractEvent<
|
|
235
|
+
OwnershipTransferStartedEvent.InputTuple,
|
|
236
|
+
OwnershipTransferStartedEvent.OutputTuple,
|
|
237
|
+
OwnershipTransferStartedEvent.OutputObject
|
|
238
|
+
>;
|
|
239
|
+
|
|
240
|
+
"OwnershipTransferred(address,address)": TypedContractEvent<
|
|
241
|
+
OwnershipTransferredEvent.InputTuple,
|
|
242
|
+
OwnershipTransferredEvent.OutputTuple,
|
|
243
|
+
OwnershipTransferredEvent.OutputObject
|
|
244
|
+
>;
|
|
245
|
+
OwnershipTransferred: TypedContractEvent<
|
|
246
|
+
OwnershipTransferredEvent.InputTuple,
|
|
247
|
+
OwnershipTransferredEvent.OutputTuple,
|
|
248
|
+
OwnershipTransferredEvent.OutputObject
|
|
249
|
+
>;
|
|
250
|
+
};
|
|
251
|
+
}
|
|
@@ -0,0 +1,186 @@
|
|
|
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 OwnableUpgradeableInterface extends Interface {
|
|
27
|
+
getFunction(
|
|
28
|
+
nameOrSignature: "owner" | "renounceOwnership" | "transferOwnership"
|
|
29
|
+
): FunctionFragment;
|
|
30
|
+
|
|
31
|
+
getEvent(
|
|
32
|
+
nameOrSignatureOrTopic: "Initialized" | "OwnershipTransferred"
|
|
33
|
+
): EventFragment;
|
|
34
|
+
|
|
35
|
+
encodeFunctionData(functionFragment: "owner", values?: undefined): string;
|
|
36
|
+
encodeFunctionData(
|
|
37
|
+
functionFragment: "renounceOwnership",
|
|
38
|
+
values?: undefined
|
|
39
|
+
): string;
|
|
40
|
+
encodeFunctionData(
|
|
41
|
+
functionFragment: "transferOwnership",
|
|
42
|
+
values: [AddressLike]
|
|
43
|
+
): string;
|
|
44
|
+
|
|
45
|
+
decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
|
|
46
|
+
decodeFunctionResult(
|
|
47
|
+
functionFragment: "renounceOwnership",
|
|
48
|
+
data: BytesLike
|
|
49
|
+
): Result;
|
|
50
|
+
decodeFunctionResult(
|
|
51
|
+
functionFragment: "transferOwnership",
|
|
52
|
+
data: BytesLike
|
|
53
|
+
): Result;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export namespace InitializedEvent {
|
|
57
|
+
export type InputTuple = [version: BigNumberish];
|
|
58
|
+
export type OutputTuple = [version: bigint];
|
|
59
|
+
export interface OutputObject {
|
|
60
|
+
version: bigint;
|
|
61
|
+
}
|
|
62
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
63
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
64
|
+
export type Log = TypedEventLog<Event>;
|
|
65
|
+
export type LogDescription = TypedLogDescription<Event>;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export namespace OwnershipTransferredEvent {
|
|
69
|
+
export type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike];
|
|
70
|
+
export type OutputTuple = [previousOwner: string, newOwner: string];
|
|
71
|
+
export interface OutputObject {
|
|
72
|
+
previousOwner: string;
|
|
73
|
+
newOwner: string;
|
|
74
|
+
}
|
|
75
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
76
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
77
|
+
export type Log = TypedEventLog<Event>;
|
|
78
|
+
export type LogDescription = TypedLogDescription<Event>;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export interface OwnableUpgradeable extends BaseContract {
|
|
82
|
+
connect(runner?: ContractRunner | null): OwnableUpgradeable;
|
|
83
|
+
waitForDeployment(): Promise<this>;
|
|
84
|
+
|
|
85
|
+
interface: OwnableUpgradeableInterface;
|
|
86
|
+
|
|
87
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
|
88
|
+
event: TCEvent,
|
|
89
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
90
|
+
toBlock?: string | number | undefined
|
|
91
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
92
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
|
93
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
94
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
95
|
+
toBlock?: string | number | undefined
|
|
96
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
97
|
+
|
|
98
|
+
on<TCEvent extends TypedContractEvent>(
|
|
99
|
+
event: TCEvent,
|
|
100
|
+
listener: TypedListener<TCEvent>
|
|
101
|
+
): Promise<this>;
|
|
102
|
+
on<TCEvent extends TypedContractEvent>(
|
|
103
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
104
|
+
listener: TypedListener<TCEvent>
|
|
105
|
+
): Promise<this>;
|
|
106
|
+
|
|
107
|
+
once<TCEvent extends TypedContractEvent>(
|
|
108
|
+
event: TCEvent,
|
|
109
|
+
listener: TypedListener<TCEvent>
|
|
110
|
+
): Promise<this>;
|
|
111
|
+
once<TCEvent extends TypedContractEvent>(
|
|
112
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
113
|
+
listener: TypedListener<TCEvent>
|
|
114
|
+
): Promise<this>;
|
|
115
|
+
|
|
116
|
+
listeners<TCEvent extends TypedContractEvent>(
|
|
117
|
+
event: TCEvent
|
|
118
|
+
): Promise<Array<TypedListener<TCEvent>>>;
|
|
119
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
120
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(
|
|
121
|
+
event?: TCEvent
|
|
122
|
+
): Promise<this>;
|
|
123
|
+
|
|
124
|
+
owner: TypedContractMethod<[], [string], "view">;
|
|
125
|
+
|
|
126
|
+
renounceOwnership: TypedContractMethod<[], [void], "nonpayable">;
|
|
127
|
+
|
|
128
|
+
transferOwnership: TypedContractMethod<
|
|
129
|
+
[newOwner: AddressLike],
|
|
130
|
+
[void],
|
|
131
|
+
"nonpayable"
|
|
132
|
+
>;
|
|
133
|
+
|
|
134
|
+
getFunction<T extends ContractMethod = ContractMethod>(
|
|
135
|
+
key: string | FunctionFragment
|
|
136
|
+
): T;
|
|
137
|
+
|
|
138
|
+
getFunction(
|
|
139
|
+
nameOrSignature: "owner"
|
|
140
|
+
): TypedContractMethod<[], [string], "view">;
|
|
141
|
+
getFunction(
|
|
142
|
+
nameOrSignature: "renounceOwnership"
|
|
143
|
+
): TypedContractMethod<[], [void], "nonpayable">;
|
|
144
|
+
getFunction(
|
|
145
|
+
nameOrSignature: "transferOwnership"
|
|
146
|
+
): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">;
|
|
147
|
+
|
|
148
|
+
getEvent(
|
|
149
|
+
key: "Initialized"
|
|
150
|
+
): TypedContractEvent<
|
|
151
|
+
InitializedEvent.InputTuple,
|
|
152
|
+
InitializedEvent.OutputTuple,
|
|
153
|
+
InitializedEvent.OutputObject
|
|
154
|
+
>;
|
|
155
|
+
getEvent(
|
|
156
|
+
key: "OwnershipTransferred"
|
|
157
|
+
): TypedContractEvent<
|
|
158
|
+
OwnershipTransferredEvent.InputTuple,
|
|
159
|
+
OwnershipTransferredEvent.OutputTuple,
|
|
160
|
+
OwnershipTransferredEvent.OutputObject
|
|
161
|
+
>;
|
|
162
|
+
|
|
163
|
+
filters: {
|
|
164
|
+
"Initialized(uint64)": TypedContractEvent<
|
|
165
|
+
InitializedEvent.InputTuple,
|
|
166
|
+
InitializedEvent.OutputTuple,
|
|
167
|
+
InitializedEvent.OutputObject
|
|
168
|
+
>;
|
|
169
|
+
Initialized: TypedContractEvent<
|
|
170
|
+
InitializedEvent.InputTuple,
|
|
171
|
+
InitializedEvent.OutputTuple,
|
|
172
|
+
InitializedEvent.OutputObject
|
|
173
|
+
>;
|
|
174
|
+
|
|
175
|
+
"OwnershipTransferred(address,address)": TypedContractEvent<
|
|
176
|
+
OwnershipTransferredEvent.InputTuple,
|
|
177
|
+
OwnershipTransferredEvent.OutputTuple,
|
|
178
|
+
OwnershipTransferredEvent.OutputObject
|
|
179
|
+
>;
|
|
180
|
+
OwnershipTransferred: TypedContractEvent<
|
|
181
|
+
OwnershipTransferredEvent.InputTuple,
|
|
182
|
+
OwnershipTransferredEvent.OutputTuple,
|
|
183
|
+
OwnershipTransferredEvent.OutputObject
|
|
184
|
+
>;
|
|
185
|
+
};
|
|
186
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type * as access from "./access";
|
|
5
|
+
export type { access };
|
|
6
|
+
import type * as proxy from "./proxy";
|
|
7
|
+
export type { proxy };
|
|
8
|
+
import type * as utils from "./utils";
|
|
9
|
+
export type { utils };
|
|
@@ -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 InitializableInterface 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 Initializable extends BaseContract {
|
|
39
|
+
connect(runner?: ContractRunner | null): Initializable;
|
|
40
|
+
waitForDeployment(): Promise<this>;
|
|
41
|
+
|
|
42
|
+
interface: InitializableInterface;
|
|
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
|
+
}
|