@venusprotocol/venus-periphery 1.0.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/LICENSE +11 -0
- package/README.md +131 -0
- package/artifacts/build-info/3cc16515983b4ebd468ee3d5a8f0ac53.json +1 -0
- package/artifacts/hardhat-deploy/solc_0.8/openzeppelin/access/Ownable.sol/Ownable.dbg.json +4 -0
- package/artifacts/hardhat-deploy/solc_0.8/openzeppelin/access/Ownable.sol/Ownable.json +63 -0
- package/artifacts/hardhat-deploy/solc_0.8/openzeppelin/interfaces/draft-IERC1822.sol/IERC1822Proxiable.dbg.json +4 -0
- package/artifacts/hardhat-deploy/solc_0.8/openzeppelin/interfaces/draft-IERC1822.sol/IERC1822Proxiable.json +24 -0
- package/artifacts/hardhat-deploy/solc_0.8/openzeppelin/proxy/ERC1967/ERC1967Proxy.sol/ERC1967Proxy.dbg.json +4 -0
- package/artifacts/hardhat-deploy/solc_0.8/openzeppelin/proxy/ERC1967/ERC1967Proxy.sol/ERC1967Proxy.json +80 -0
- package/artifacts/hardhat-deploy/solc_0.8/openzeppelin/proxy/ERC1967/ERC1967Upgrade.sol/ERC1967Upgrade.dbg.json +4 -0
- package/artifacts/hardhat-deploy/solc_0.8/openzeppelin/proxy/ERC1967/ERC1967Upgrade.sol/ERC1967Upgrade.json +56 -0
- package/artifacts/hardhat-deploy/solc_0.8/openzeppelin/proxy/Proxy.sol/Proxy.dbg.json +4 -0
- package/artifacts/hardhat-deploy/solc_0.8/openzeppelin/proxy/Proxy.sol/Proxy.json +19 -0
- package/artifacts/hardhat-deploy/solc_0.8/openzeppelin/proxy/beacon/IBeacon.sol/IBeacon.dbg.json +4 -0
- package/artifacts/hardhat-deploy/solc_0.8/openzeppelin/proxy/beacon/IBeacon.sol/IBeacon.json +24 -0
- package/artifacts/hardhat-deploy/solc_0.8/openzeppelin/proxy/transparent/ProxyAdmin.sol/ProxyAdmin.dbg.json +4 -0
- package/artifacts/hardhat-deploy/solc_0.8/openzeppelin/proxy/transparent/ProxyAdmin.sol/ProxyAdmin.json +171 -0
- package/artifacts/hardhat-deploy/solc_0.8/openzeppelin/proxy/transparent/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy.dbg.json +4 -0
- package/artifacts/hardhat-deploy/solc_0.8/openzeppelin/proxy/transparent/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy.json +155 -0
- package/artifacts/hardhat-deploy/solc_0.8/openzeppelin/utils/Address.sol/Address.dbg.json +4 -0
- package/artifacts/hardhat-deploy/solc_0.8/openzeppelin/utils/Address.sol/Address.json +10 -0
- package/artifacts/hardhat-deploy/solc_0.8/openzeppelin/utils/Context.sol/Context.dbg.json +4 -0
- package/artifacts/hardhat-deploy/solc_0.8/openzeppelin/utils/Context.sol/Context.json +10 -0
- package/artifacts/hardhat-deploy/solc_0.8/openzeppelin/utils/StorageSlot.sol/StorageSlot.dbg.json +4 -0
- package/artifacts/hardhat-deploy/solc_0.8/openzeppelin/utils/StorageSlot.sol/StorageSlot.json +10 -0
- package/artifacts/hardhat-deploy/solc_0.8/proxy/OptimizedTransparentUpgradeableProxy.sol/OptimizedTransparentUpgradeableProxy.dbg.json +4 -0
- package/artifacts/hardhat-deploy/solc_0.8/proxy/OptimizedTransparentUpgradeableProxy.sol/OptimizedTransparentUpgradeableProxy.json +142 -0
- package/deployments/arbitrumone.json +5 -0
- package/deployments/arbitrumone_addresses.json +5 -0
- package/deployments/arbitrumsepolia.json +5 -0
- package/deployments/arbitrumsepolia_addresses.json +5 -0
- package/deployments/basemainnet.json +5 -0
- package/deployments/basemainnet_addresses.json +5 -0
- package/deployments/basesepolia.json +5 -0
- package/deployments/basesepolia_addresses.json +5 -0
- package/deployments/bscmainnet.json +5 -0
- package/deployments/bscmainnet_addresses.json +5 -0
- package/deployments/bsctestnet.json +5 -0
- package/deployments/bsctestnet_addresses.json +5 -0
- package/deployments/ethereum.json +5 -0
- package/deployments/ethereum_addresses.json +5 -0
- package/deployments/opbnbmainnet.json +5 -0
- package/deployments/opbnbmainnet_addresses.json +5 -0
- package/deployments/opbnbtestnet.json +5 -0
- package/deployments/opbnbtestnet_addresses.json +5 -0
- package/deployments/opmainnet.json +5 -0
- package/deployments/opmainnet_addresses.json +5 -0
- package/deployments/opsepolia.json +5 -0
- package/deployments/opsepolia_addresses.json +5 -0
- package/deployments/sepolia.json +5 -0
- package/deployments/sepolia_addresses.json +5 -0
- package/deployments/unichainmainnet.json +5 -0
- package/deployments/unichainmainnet_addresses.json +5 -0
- package/deployments/unichainsepolia.json +5 -0
- package/deployments/unichainsepolia_addresses.json +5 -0
- package/deployments/zksyncmainnet.json +5 -0
- package/deployments/zksyncmainnet_addresses.json +5 -0
- package/deployments/zksyncsepolia.json +5 -0
- package/deployments/zksyncsepolia_addresses.json +5 -0
- package/dist/hardhat.config.d.ts +15 -0
- package/dist/hardhat.config.js +407 -0
- package/dist/helpers/deploymentConfig.d.ts +112 -0
- package/dist/helpers/deploymentConfig.js +201 -0
- package/dist/helpers/deploymentUtils.d.ts +3 -0
- package/dist/helpers/deploymentUtils.js +21 -0
- package/dist/helpers/utils.d.ts +3 -0
- package/dist/helpers/utils.js +28 -0
- package/dist/type-extensions.d.ts +6 -0
- package/dist/type-extensions.js +3 -0
- package/dist/typechain/factories/ERC1967Proxy__factory.d.ts +45 -0
- package/dist/typechain/factories/ERC1967Proxy__factory.js +110 -0
- package/dist/typechain/factories/ERC1967Upgrade__factory.d.ts +18 -0
- package/dist/typechain/factories/ERC1967Upgrade__factory.js +64 -0
- package/dist/typechain/factories/IBeacon__factory.d.ts +18 -0
- package/dist/typechain/factories/IBeacon__factory.js +32 -0
- package/dist/typechain/factories/IERC1822Proxiable__factory.d.ts +18 -0
- package/dist/typechain/factories/IERC1822Proxiable__factory.js +32 -0
- package/dist/typechain/factories/OptimizedTransparentUpgradeableProxy__factory.d.ts +70 -0
- package/dist/typechain/factories/OptimizedTransparentUpgradeableProxy__factory.js +172 -0
- package/dist/typechain/factories/Ownable__factory.d.ts +42 -0
- package/dist/typechain/factories/Ownable__factory.js +71 -0
- package/dist/typechain/factories/ProxyAdmin__factory.d.ts +56 -0
- package/dist/typechain/factories/ProxyAdmin__factory.js +201 -0
- package/dist/typechain/factories/Proxy__factory.d.ts +11 -0
- package/dist/typechain/factories/Proxy__factory.js +27 -0
- package/dist/typechain/factories/TransparentUpgradeableProxy__factory.d.ts +70 -0
- package/dist/typechain/factories/TransparentUpgradeableProxy__factory.js +185 -0
- package/dist/typechain/index.d.ts +18 -0
- package/dist/typechain/index.js +21 -0
- package/package.json +128 -0
- package/typechain/ERC1967Proxy.d.ts +126 -0
- package/typechain/ERC1967Upgrade.d.ts +126 -0
- package/typechain/IBeacon.d.ts +101 -0
- package/typechain/IERC1822Proxiable.d.ts +101 -0
- package/typechain/OptimizedTransparentUpgradeableProxy.d.ts +248 -0
- package/typechain/Ownable.d.ts +181 -0
- package/typechain/Proxy.d.ts +78 -0
- package/typechain/ProxyAdmin.d.ts +357 -0
- package/typechain/TransparentUpgradeableProxy.d.ts +275 -0
- package/typechain/common.d.ts +35 -0
- package/typechain/factories/ERC1967Proxy__factory.ts +137 -0
- package/typechain/factories/ERC1967Upgrade__factory.ts +71 -0
- package/typechain/factories/IBeacon__factory.ts +36 -0
- package/typechain/factories/IERC1822Proxiable__factory.ts +39 -0
- package/typechain/factories/OptimizedTransparentUpgradeableProxy__factory.ts +213 -0
- package/typechain/factories/Ownable__factory.ts +75 -0
- package/typechain/factories/ProxyAdmin__factory.ts +215 -0
- package/typechain/factories/Proxy__factory.ts +28 -0
- package/typechain/factories/TransparentUpgradeableProxy__factory.ts +222 -0
- package/typechain/index.ts +22 -0
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
ethers,
|
|
7
|
+
EventFilter,
|
|
8
|
+
Signer,
|
|
9
|
+
BigNumber,
|
|
10
|
+
BigNumberish,
|
|
11
|
+
PopulatedTransaction,
|
|
12
|
+
BaseContract,
|
|
13
|
+
ContractTransaction,
|
|
14
|
+
Overrides,
|
|
15
|
+
PayableOverrides,
|
|
16
|
+
CallOverrides,
|
|
17
|
+
} from "ethers";
|
|
18
|
+
import { BytesLike } from "@ethersproject/bytes";
|
|
19
|
+
import { Listener, Provider } from "@ethersproject/providers";
|
|
20
|
+
import { FunctionFragment, EventFragment, Result } from "@ethersproject/abi";
|
|
21
|
+
import type { TypedEventFilter, TypedEvent, TypedListener } from "./common";
|
|
22
|
+
|
|
23
|
+
interface TransparentUpgradeableProxyInterface extends ethers.utils.Interface {
|
|
24
|
+
functions: {
|
|
25
|
+
"admin()": FunctionFragment;
|
|
26
|
+
"changeAdmin(address)": FunctionFragment;
|
|
27
|
+
"implementation()": FunctionFragment;
|
|
28
|
+
"upgradeTo(address)": FunctionFragment;
|
|
29
|
+
"upgradeToAndCall(address,bytes)": FunctionFragment;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
encodeFunctionData(functionFragment: "admin", values?: undefined): string;
|
|
33
|
+
encodeFunctionData(functionFragment: "changeAdmin", values: [string]): string;
|
|
34
|
+
encodeFunctionData(
|
|
35
|
+
functionFragment: "implementation",
|
|
36
|
+
values?: undefined
|
|
37
|
+
): string;
|
|
38
|
+
encodeFunctionData(functionFragment: "upgradeTo", values: [string]): string;
|
|
39
|
+
encodeFunctionData(
|
|
40
|
+
functionFragment: "upgradeToAndCall",
|
|
41
|
+
values: [string, BytesLike]
|
|
42
|
+
): string;
|
|
43
|
+
|
|
44
|
+
decodeFunctionResult(functionFragment: "admin", data: BytesLike): Result;
|
|
45
|
+
decodeFunctionResult(
|
|
46
|
+
functionFragment: "changeAdmin",
|
|
47
|
+
data: BytesLike
|
|
48
|
+
): Result;
|
|
49
|
+
decodeFunctionResult(
|
|
50
|
+
functionFragment: "implementation",
|
|
51
|
+
data: BytesLike
|
|
52
|
+
): Result;
|
|
53
|
+
decodeFunctionResult(functionFragment: "upgradeTo", data: BytesLike): Result;
|
|
54
|
+
decodeFunctionResult(
|
|
55
|
+
functionFragment: "upgradeToAndCall",
|
|
56
|
+
data: BytesLike
|
|
57
|
+
): Result;
|
|
58
|
+
|
|
59
|
+
events: {
|
|
60
|
+
"AdminChanged(address,address)": EventFragment;
|
|
61
|
+
"BeaconUpgraded(address)": EventFragment;
|
|
62
|
+
"Upgraded(address)": EventFragment;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
getEvent(nameOrSignatureOrTopic: "AdminChanged"): EventFragment;
|
|
66
|
+
getEvent(nameOrSignatureOrTopic: "BeaconUpgraded"): EventFragment;
|
|
67
|
+
getEvent(nameOrSignatureOrTopic: "Upgraded"): EventFragment;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export type AdminChangedEvent = TypedEvent<
|
|
71
|
+
[string, string] & { previousAdmin: string; newAdmin: string }
|
|
72
|
+
>;
|
|
73
|
+
|
|
74
|
+
export type BeaconUpgradedEvent = TypedEvent<[string] & { beacon: string }>;
|
|
75
|
+
|
|
76
|
+
export type UpgradedEvent = TypedEvent<[string] & { implementation: string }>;
|
|
77
|
+
|
|
78
|
+
export class TransparentUpgradeableProxy extends BaseContract {
|
|
79
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
80
|
+
attach(addressOrName: string): this;
|
|
81
|
+
deployed(): Promise<this>;
|
|
82
|
+
|
|
83
|
+
listeners<EventArgsArray extends Array<any>, EventArgsObject>(
|
|
84
|
+
eventFilter?: TypedEventFilter<EventArgsArray, EventArgsObject>
|
|
85
|
+
): Array<TypedListener<EventArgsArray, EventArgsObject>>;
|
|
86
|
+
off<EventArgsArray extends Array<any>, EventArgsObject>(
|
|
87
|
+
eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
|
|
88
|
+
listener: TypedListener<EventArgsArray, EventArgsObject>
|
|
89
|
+
): this;
|
|
90
|
+
on<EventArgsArray extends Array<any>, EventArgsObject>(
|
|
91
|
+
eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
|
|
92
|
+
listener: TypedListener<EventArgsArray, EventArgsObject>
|
|
93
|
+
): this;
|
|
94
|
+
once<EventArgsArray extends Array<any>, EventArgsObject>(
|
|
95
|
+
eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
|
|
96
|
+
listener: TypedListener<EventArgsArray, EventArgsObject>
|
|
97
|
+
): this;
|
|
98
|
+
removeListener<EventArgsArray extends Array<any>, EventArgsObject>(
|
|
99
|
+
eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
|
|
100
|
+
listener: TypedListener<EventArgsArray, EventArgsObject>
|
|
101
|
+
): this;
|
|
102
|
+
removeAllListeners<EventArgsArray extends Array<any>, EventArgsObject>(
|
|
103
|
+
eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
|
|
104
|
+
): this;
|
|
105
|
+
|
|
106
|
+
listeners(eventName?: string): Array<Listener>;
|
|
107
|
+
off(eventName: string, listener: Listener): this;
|
|
108
|
+
on(eventName: string, listener: Listener): this;
|
|
109
|
+
once(eventName: string, listener: Listener): this;
|
|
110
|
+
removeListener(eventName: string, listener: Listener): this;
|
|
111
|
+
removeAllListeners(eventName?: string): this;
|
|
112
|
+
|
|
113
|
+
queryFilter<EventArgsArray extends Array<any>, EventArgsObject>(
|
|
114
|
+
event: TypedEventFilter<EventArgsArray, EventArgsObject>,
|
|
115
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
116
|
+
toBlock?: string | number | undefined
|
|
117
|
+
): Promise<Array<TypedEvent<EventArgsArray & EventArgsObject>>>;
|
|
118
|
+
|
|
119
|
+
interface: TransparentUpgradeableProxyInterface;
|
|
120
|
+
|
|
121
|
+
functions: {
|
|
122
|
+
admin(
|
|
123
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
124
|
+
): Promise<ContractTransaction>;
|
|
125
|
+
|
|
126
|
+
changeAdmin(
|
|
127
|
+
newAdmin: string,
|
|
128
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
129
|
+
): Promise<ContractTransaction>;
|
|
130
|
+
|
|
131
|
+
implementation(
|
|
132
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
133
|
+
): Promise<ContractTransaction>;
|
|
134
|
+
|
|
135
|
+
upgradeTo(
|
|
136
|
+
newImplementation: string,
|
|
137
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
138
|
+
): Promise<ContractTransaction>;
|
|
139
|
+
|
|
140
|
+
upgradeToAndCall(
|
|
141
|
+
newImplementation: string,
|
|
142
|
+
data: BytesLike,
|
|
143
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
144
|
+
): Promise<ContractTransaction>;
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
admin(
|
|
148
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
149
|
+
): Promise<ContractTransaction>;
|
|
150
|
+
|
|
151
|
+
changeAdmin(
|
|
152
|
+
newAdmin: string,
|
|
153
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
154
|
+
): Promise<ContractTransaction>;
|
|
155
|
+
|
|
156
|
+
implementation(
|
|
157
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
158
|
+
): Promise<ContractTransaction>;
|
|
159
|
+
|
|
160
|
+
upgradeTo(
|
|
161
|
+
newImplementation: string,
|
|
162
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
163
|
+
): Promise<ContractTransaction>;
|
|
164
|
+
|
|
165
|
+
upgradeToAndCall(
|
|
166
|
+
newImplementation: string,
|
|
167
|
+
data: BytesLike,
|
|
168
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
169
|
+
): Promise<ContractTransaction>;
|
|
170
|
+
|
|
171
|
+
callStatic: {
|
|
172
|
+
admin(overrides?: CallOverrides): Promise<string>;
|
|
173
|
+
|
|
174
|
+
changeAdmin(newAdmin: string, overrides?: CallOverrides): Promise<void>;
|
|
175
|
+
|
|
176
|
+
implementation(overrides?: CallOverrides): Promise<string>;
|
|
177
|
+
|
|
178
|
+
upgradeTo(
|
|
179
|
+
newImplementation: string,
|
|
180
|
+
overrides?: CallOverrides
|
|
181
|
+
): Promise<void>;
|
|
182
|
+
|
|
183
|
+
upgradeToAndCall(
|
|
184
|
+
newImplementation: string,
|
|
185
|
+
data: BytesLike,
|
|
186
|
+
overrides?: CallOverrides
|
|
187
|
+
): Promise<void>;
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
filters: {
|
|
191
|
+
"AdminChanged(address,address)"(
|
|
192
|
+
previousAdmin?: null,
|
|
193
|
+
newAdmin?: null
|
|
194
|
+
): TypedEventFilter<
|
|
195
|
+
[string, string],
|
|
196
|
+
{ previousAdmin: string; newAdmin: string }
|
|
197
|
+
>;
|
|
198
|
+
|
|
199
|
+
AdminChanged(
|
|
200
|
+
previousAdmin?: null,
|
|
201
|
+
newAdmin?: null
|
|
202
|
+
): TypedEventFilter<
|
|
203
|
+
[string, string],
|
|
204
|
+
{ previousAdmin: string; newAdmin: string }
|
|
205
|
+
>;
|
|
206
|
+
|
|
207
|
+
"BeaconUpgraded(address)"(
|
|
208
|
+
beacon?: string | null
|
|
209
|
+
): TypedEventFilter<[string], { beacon: string }>;
|
|
210
|
+
|
|
211
|
+
BeaconUpgraded(
|
|
212
|
+
beacon?: string | null
|
|
213
|
+
): TypedEventFilter<[string], { beacon: string }>;
|
|
214
|
+
|
|
215
|
+
"Upgraded(address)"(
|
|
216
|
+
implementation?: string | null
|
|
217
|
+
): TypedEventFilter<[string], { implementation: string }>;
|
|
218
|
+
|
|
219
|
+
Upgraded(
|
|
220
|
+
implementation?: string | null
|
|
221
|
+
): TypedEventFilter<[string], { implementation: string }>;
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
estimateGas: {
|
|
225
|
+
admin(
|
|
226
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
227
|
+
): Promise<BigNumber>;
|
|
228
|
+
|
|
229
|
+
changeAdmin(
|
|
230
|
+
newAdmin: string,
|
|
231
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
232
|
+
): Promise<BigNumber>;
|
|
233
|
+
|
|
234
|
+
implementation(
|
|
235
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
236
|
+
): Promise<BigNumber>;
|
|
237
|
+
|
|
238
|
+
upgradeTo(
|
|
239
|
+
newImplementation: string,
|
|
240
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
241
|
+
): Promise<BigNumber>;
|
|
242
|
+
|
|
243
|
+
upgradeToAndCall(
|
|
244
|
+
newImplementation: string,
|
|
245
|
+
data: BytesLike,
|
|
246
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
247
|
+
): Promise<BigNumber>;
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
populateTransaction: {
|
|
251
|
+
admin(
|
|
252
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
253
|
+
): Promise<PopulatedTransaction>;
|
|
254
|
+
|
|
255
|
+
changeAdmin(
|
|
256
|
+
newAdmin: string,
|
|
257
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
258
|
+
): Promise<PopulatedTransaction>;
|
|
259
|
+
|
|
260
|
+
implementation(
|
|
261
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
262
|
+
): Promise<PopulatedTransaction>;
|
|
263
|
+
|
|
264
|
+
upgradeTo(
|
|
265
|
+
newImplementation: string,
|
|
266
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
|
267
|
+
): Promise<PopulatedTransaction>;
|
|
268
|
+
|
|
269
|
+
upgradeToAndCall(
|
|
270
|
+
newImplementation: string,
|
|
271
|
+
data: BytesLike,
|
|
272
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
273
|
+
): Promise<PopulatedTransaction>;
|
|
274
|
+
};
|
|
275
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { EventFilter, Event } from "ethers";
|
|
5
|
+
import { Result } from "@ethersproject/abi";
|
|
6
|
+
|
|
7
|
+
export interface TypedEventFilter<_EventArgsArray, _EventArgsObject>
|
|
8
|
+
extends EventFilter {}
|
|
9
|
+
|
|
10
|
+
export interface TypedEvent<EventArgs extends Result> extends Event {
|
|
11
|
+
args: EventArgs;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type TypedListener<
|
|
15
|
+
EventArgsArray extends Array<any>,
|
|
16
|
+
EventArgsObject
|
|
17
|
+
> = (
|
|
18
|
+
...listenerArg: [
|
|
19
|
+
...EventArgsArray,
|
|
20
|
+
TypedEvent<EventArgsArray & EventArgsObject>
|
|
21
|
+
]
|
|
22
|
+
) => void;
|
|
23
|
+
|
|
24
|
+
export type MinEthersFactory<C, ARGS> = {
|
|
25
|
+
deploy(...a: ARGS[]): Promise<C>;
|
|
26
|
+
};
|
|
27
|
+
export type GetContractTypeFromFactory<F> = F extends MinEthersFactory<
|
|
28
|
+
infer C,
|
|
29
|
+
any
|
|
30
|
+
>
|
|
31
|
+
? C
|
|
32
|
+
: never;
|
|
33
|
+
export type GetARGsTypeFromFactory<F> = F extends MinEthersFactory<any, any>
|
|
34
|
+
? Parameters<F["deploy"]>
|
|
35
|
+
: never;
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
Signer,
|
|
7
|
+
utils,
|
|
8
|
+
BytesLike,
|
|
9
|
+
Contract,
|
|
10
|
+
ContractFactory,
|
|
11
|
+
PayableOverrides,
|
|
12
|
+
} from "ethers";
|
|
13
|
+
import { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
14
|
+
import type { ERC1967Proxy, ERC1967ProxyInterface } from "../ERC1967Proxy";
|
|
15
|
+
|
|
16
|
+
const _abi = [
|
|
17
|
+
{
|
|
18
|
+
inputs: [
|
|
19
|
+
{
|
|
20
|
+
internalType: "address",
|
|
21
|
+
name: "_logic",
|
|
22
|
+
type: "address",
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
internalType: "bytes",
|
|
26
|
+
name: "_data",
|
|
27
|
+
type: "bytes",
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
stateMutability: "payable",
|
|
31
|
+
type: "constructor",
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
anonymous: false,
|
|
35
|
+
inputs: [
|
|
36
|
+
{
|
|
37
|
+
indexed: false,
|
|
38
|
+
internalType: "address",
|
|
39
|
+
name: "previousAdmin",
|
|
40
|
+
type: "address",
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
indexed: false,
|
|
44
|
+
internalType: "address",
|
|
45
|
+
name: "newAdmin",
|
|
46
|
+
type: "address",
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
name: "AdminChanged",
|
|
50
|
+
type: "event",
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
anonymous: false,
|
|
54
|
+
inputs: [
|
|
55
|
+
{
|
|
56
|
+
indexed: true,
|
|
57
|
+
internalType: "address",
|
|
58
|
+
name: "beacon",
|
|
59
|
+
type: "address",
|
|
60
|
+
},
|
|
61
|
+
],
|
|
62
|
+
name: "BeaconUpgraded",
|
|
63
|
+
type: "event",
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
anonymous: false,
|
|
67
|
+
inputs: [
|
|
68
|
+
{
|
|
69
|
+
indexed: true,
|
|
70
|
+
internalType: "address",
|
|
71
|
+
name: "implementation",
|
|
72
|
+
type: "address",
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
name: "Upgraded",
|
|
76
|
+
type: "event",
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
stateMutability: "payable",
|
|
80
|
+
type: "fallback",
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
stateMutability: "payable",
|
|
84
|
+
type: "receive",
|
|
85
|
+
},
|
|
86
|
+
];
|
|
87
|
+
|
|
88
|
+
const _bytecode =
|
|
89
|
+
"0x60806040526040516106163803806106168339810160408190526100229161036f565b61004d60017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd6103d6565b5f805160206105cf83398151915214610068576100686103e9565b61007382825f61007a565b5050610519565b610083836100a5565b5f8251118061008f5750805b156100a05761009e83836100e4565b505b505050565b6100ae81610112565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a250565b606061010983836040518060600160405280602781526020016105ef60279139610170565b90505b92915050565b6001600160a01b0381163b6101425760405162461bcd60e51b815260040161013990610449565b60405180910390fd5b5f805160206105cf83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b60606001600160a01b0384163b6101995760405162461bcd60e51b81526004016101399061049b565b5f80856001600160a01b0316856040516101b391906104cc565b5f60405180830381855af49150503d805f81146101eb576040519150601f19603f3d011682016040523d82523d5f602084013e6101f0565b606091505b50909250905061020182828661020d565b925050505b9392505050565b6060831561021c575081610206565b82511561022c5782518084602001fd5b8160405162461bcd60e51b81526004016101399190610508565b5f6001600160a01b03821661010c565b61025f81610246565b8114610269575f80fd5b50565b805161010c81610256565b634e487b7160e01b5f52604160045260245ffd5b601f19601f83011681018181106001600160401b03821117156102b0576102b0610277565b6040525050565b5f6102c160405190565b90506102cd828261028b565b919050565b5f6001600160401b038211156102ea576102ea610277565b601f19601f83011660200192915050565b8281835e505f910152565b5f610318610313846102d2565b6102b7565b905082815260208101848484011115610332576103325f80fd5b61033d8482856102fb565b509392505050565b5f82601f830112610357576103575f80fd5b8151610367848260208601610306565b949350505050565b5f8060408385031215610383576103835f80fd5b5f61038e858561026c565b92505060208301516001600160401b038111156103ac576103ac5f80fd5b6103b885828601610345565b9150509250929050565b634e487b7160e01b5f52601160045260245ffd5b8181038181111561010c5761010c6103c2565b634e487b7160e01b5f52600160045260245ffd5b602d81525f602082017f455243313936373a206e657720696d706c656d656e746174696f6e206973206e81526c1bdd08184818dbdb9d1c9858dd609a1b602082015291505b5060400190565b6020808252810161010c816103fd565b602681525f602082017f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f8152651b9d1c9858dd60d21b60208201529150610442565b6020808252810161010c81610459565b5f6104b4825190565b6104c28185602086016102fb565b9290920192915050565b5f61020682846104ab565b5f6104e0825190565b8084526020840193506104f78185602086016102fb565b601f01601f19169290920192915050565b6020808252810161010981846104d7565b60aa806105255f395ff3fe608060405236601057600e6013565b005b600e5b601f601b6021565b6057565b565b5f60527f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b365f80375f80365f845af43d5f803e8080156070573d5ff35b3d5ffdfea2646970667358221220685391581ec7088fded0c77239b142e848a2993393b8f4a66f42ef818e3b719864736f6c63430008190033360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564";
|
|
90
|
+
|
|
91
|
+
export class ERC1967Proxy__factory extends ContractFactory {
|
|
92
|
+
constructor(
|
|
93
|
+
...args: [signer: Signer] | ConstructorParameters<typeof ContractFactory>
|
|
94
|
+
) {
|
|
95
|
+
if (args.length === 1) {
|
|
96
|
+
super(_abi, _bytecode, args[0]);
|
|
97
|
+
} else {
|
|
98
|
+
super(...args);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
deploy(
|
|
103
|
+
_logic: string,
|
|
104
|
+
_data: BytesLike,
|
|
105
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
106
|
+
): Promise<ERC1967Proxy> {
|
|
107
|
+
return super.deploy(
|
|
108
|
+
_logic,
|
|
109
|
+
_data,
|
|
110
|
+
overrides || {}
|
|
111
|
+
) as Promise<ERC1967Proxy>;
|
|
112
|
+
}
|
|
113
|
+
getDeployTransaction(
|
|
114
|
+
_logic: string,
|
|
115
|
+
_data: BytesLike,
|
|
116
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
|
117
|
+
): TransactionRequest {
|
|
118
|
+
return super.getDeployTransaction(_logic, _data, overrides || {});
|
|
119
|
+
}
|
|
120
|
+
attach(address: string): ERC1967Proxy {
|
|
121
|
+
return super.attach(address) as ERC1967Proxy;
|
|
122
|
+
}
|
|
123
|
+
connect(signer: Signer): ERC1967Proxy__factory {
|
|
124
|
+
return super.connect(signer) as ERC1967Proxy__factory;
|
|
125
|
+
}
|
|
126
|
+
static readonly bytecode = _bytecode;
|
|
127
|
+
static readonly abi = _abi;
|
|
128
|
+
static createInterface(): ERC1967ProxyInterface {
|
|
129
|
+
return new utils.Interface(_abi) as ERC1967ProxyInterface;
|
|
130
|
+
}
|
|
131
|
+
static connect(
|
|
132
|
+
address: string,
|
|
133
|
+
signerOrProvider: Signer | Provider
|
|
134
|
+
): ERC1967Proxy {
|
|
135
|
+
return new Contract(address, _abi, signerOrProvider) as ERC1967Proxy;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { Contract, Signer, utils } from "ethers";
|
|
6
|
+
import { Provider } from "@ethersproject/providers";
|
|
7
|
+
import type {
|
|
8
|
+
ERC1967Upgrade,
|
|
9
|
+
ERC1967UpgradeInterface,
|
|
10
|
+
} from "../ERC1967Upgrade";
|
|
11
|
+
|
|
12
|
+
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
anonymous: false,
|
|
15
|
+
inputs: [
|
|
16
|
+
{
|
|
17
|
+
indexed: false,
|
|
18
|
+
internalType: "address",
|
|
19
|
+
name: "previousAdmin",
|
|
20
|
+
type: "address",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
indexed: false,
|
|
24
|
+
internalType: "address",
|
|
25
|
+
name: "newAdmin",
|
|
26
|
+
type: "address",
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
name: "AdminChanged",
|
|
30
|
+
type: "event",
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
anonymous: false,
|
|
34
|
+
inputs: [
|
|
35
|
+
{
|
|
36
|
+
indexed: true,
|
|
37
|
+
internalType: "address",
|
|
38
|
+
name: "beacon",
|
|
39
|
+
type: "address",
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
name: "BeaconUpgraded",
|
|
43
|
+
type: "event",
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
anonymous: false,
|
|
47
|
+
inputs: [
|
|
48
|
+
{
|
|
49
|
+
indexed: true,
|
|
50
|
+
internalType: "address",
|
|
51
|
+
name: "implementation",
|
|
52
|
+
type: "address",
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
name: "Upgraded",
|
|
56
|
+
type: "event",
|
|
57
|
+
},
|
|
58
|
+
];
|
|
59
|
+
|
|
60
|
+
export class ERC1967Upgrade__factory {
|
|
61
|
+
static readonly abi = _abi;
|
|
62
|
+
static createInterface(): ERC1967UpgradeInterface {
|
|
63
|
+
return new utils.Interface(_abi) as ERC1967UpgradeInterface;
|
|
64
|
+
}
|
|
65
|
+
static connect(
|
|
66
|
+
address: string,
|
|
67
|
+
signerOrProvider: Signer | Provider
|
|
68
|
+
): ERC1967Upgrade {
|
|
69
|
+
return new Contract(address, _abi, signerOrProvider) as ERC1967Upgrade;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { Contract, Signer, utils } from "ethers";
|
|
6
|
+
import { Provider } from "@ethersproject/providers";
|
|
7
|
+
import type { IBeacon, IBeaconInterface } from "../IBeacon";
|
|
8
|
+
|
|
9
|
+
const _abi = [
|
|
10
|
+
{
|
|
11
|
+
inputs: [],
|
|
12
|
+
name: "implementation",
|
|
13
|
+
outputs: [
|
|
14
|
+
{
|
|
15
|
+
internalType: "address",
|
|
16
|
+
name: "",
|
|
17
|
+
type: "address",
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
stateMutability: "view",
|
|
21
|
+
type: "function",
|
|
22
|
+
},
|
|
23
|
+
];
|
|
24
|
+
|
|
25
|
+
export class IBeacon__factory {
|
|
26
|
+
static readonly abi = _abi;
|
|
27
|
+
static createInterface(): IBeaconInterface {
|
|
28
|
+
return new utils.Interface(_abi) as IBeaconInterface;
|
|
29
|
+
}
|
|
30
|
+
static connect(
|
|
31
|
+
address: string,
|
|
32
|
+
signerOrProvider: Signer | Provider
|
|
33
|
+
): IBeacon {
|
|
34
|
+
return new Contract(address, _abi, signerOrProvider) as IBeacon;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { Contract, Signer, utils } from "ethers";
|
|
6
|
+
import { Provider } from "@ethersproject/providers";
|
|
7
|
+
import type {
|
|
8
|
+
IERC1822Proxiable,
|
|
9
|
+
IERC1822ProxiableInterface,
|
|
10
|
+
} from "../IERC1822Proxiable";
|
|
11
|
+
|
|
12
|
+
const _abi = [
|
|
13
|
+
{
|
|
14
|
+
inputs: [],
|
|
15
|
+
name: "proxiableUUID",
|
|
16
|
+
outputs: [
|
|
17
|
+
{
|
|
18
|
+
internalType: "bytes32",
|
|
19
|
+
name: "",
|
|
20
|
+
type: "bytes32",
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
stateMutability: "view",
|
|
24
|
+
type: "function",
|
|
25
|
+
},
|
|
26
|
+
];
|
|
27
|
+
|
|
28
|
+
export class IERC1822Proxiable__factory {
|
|
29
|
+
static readonly abi = _abi;
|
|
30
|
+
static createInterface(): IERC1822ProxiableInterface {
|
|
31
|
+
return new utils.Interface(_abi) as IERC1822ProxiableInterface;
|
|
32
|
+
}
|
|
33
|
+
static connect(
|
|
34
|
+
address: string,
|
|
35
|
+
signerOrProvider: Signer | Provider
|
|
36
|
+
): IERC1822Proxiable {
|
|
37
|
+
return new Contract(address, _abi, signerOrProvider) as IERC1822Proxiable;
|
|
38
|
+
}
|
|
39
|
+
}
|