@skalenetwork/upgrade-tools 0.0.1-custom.4 → 0.0.1-custom.8
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/dist/deploy.d.ts +5 -0
- package/dist/deploy.js +99 -0
- package/dist/hardhat.config.d.ts +2 -0
- package/dist/hardhat.config.js +20 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +7 -1
- package/dist/src/abi.d.ts +2 -0
- package/dist/src/abi.js +16 -0
- package/dist/src/deploy.d.ts +5 -0
- package/dist/src/deploy.js +99 -0
- package/dist/src/gnosis-safe.d.ts +25 -0
- package/dist/src/gnosis-safe.js +209 -0
- package/dist/src/index.d.ts +7 -0
- package/dist/src/index.js +19 -0
- package/dist/src/multiSend.d.ts +2 -0
- package/dist/src/multiSend.js +46 -0
- package/dist/src/types.d.ts +12 -0
- package/dist/src/types.js +2 -0
- package/dist/src/upgrade.d.ts +6 -0
- package/dist/src/upgrade.js +202 -0
- package/dist/src/verification.d.ts +2 -0
- package/dist/src/verification.js +53 -0
- package/dist/src/version.d.ts +1 -0
- package/dist/src/version.js +34 -0
- package/dist/typechain-types/AccessControlEnumerableUpgradeable.d.ts +175 -0
- package/dist/typechain-types/AccessControlEnumerableUpgradeable.js +2 -0
- package/dist/typechain-types/AccessControlUpgradeable.d.ts +159 -0
- package/dist/typechain-types/AccessControlUpgradeable.js +2 -0
- package/dist/typechain-types/AdminUpgradeabilityProxy.d.ts +145 -0
- package/dist/typechain-types/AdminUpgradeabilityProxy.js +2 -0
- package/dist/typechain-types/ERC165Upgradeable.d.ts +43 -0
- package/dist/typechain-types/ERC165Upgradeable.js +2 -0
- package/dist/typechain-types/IAccessControlEnumerableUpgradeable.d.ts +159 -0
- package/dist/typechain-types/IAccessControlEnumerableUpgradeable.js +2 -0
- package/dist/typechain-types/IAccessControlUpgradeable.d.ts +143 -0
- package/dist/typechain-types/IAccessControlUpgradeable.js +2 -0
- package/dist/typechain-types/IERC165Upgradeable.d.ts +43 -0
- package/dist/typechain-types/IERC165Upgradeable.js +2 -0
- package/dist/typechain-types/ISafeMock.d.ts +67 -0
- package/dist/typechain-types/ISafeMock.js +2 -0
- package/dist/typechain-types/OwnableUpgradeable.d.ts +89 -0
- package/dist/typechain-types/OwnableUpgradeable.js +2 -0
- package/dist/typechain-types/ProxyAdmin.d.ts +153 -0
- package/dist/typechain-types/ProxyAdmin.js +2 -0
- package/dist/typechain-types/SafeMock.d.ts +129 -0
- package/dist/typechain-types/SafeMock.js +2 -0
- package/dist/typechain-types/common.d.ts +21 -0
- package/dist/typechain-types/common.js +2 -0
- package/dist/typechain-types/factories/AccessControlEnumerableUpgradeable__factory.d.ts +35 -0
- package/dist/typechain-types/factories/AccessControlEnumerableUpgradeable__factory.js +266 -0
- package/dist/typechain-types/factories/AccessControlUpgradeable__factory.d.ts +35 -0
- package/dist/typechain-types/factories/AccessControlUpgradeable__factory.js +223 -0
- package/dist/typechain-types/factories/AdminUpgradeabilityProxy__factory.d.ts +74 -0
- package/dist/typechain-types/factories/AdminUpgradeabilityProxy__factory.js +187 -0
- package/dist/typechain-types/factories/ERC165Upgradeable__factory.d.ts +22 -0
- package/dist/typechain-types/factories/ERC165Upgradeable__factory.js +38 -0
- package/dist/typechain-types/factories/IAccessControlEnumerableUpgradeable__factory.d.ts +35 -0
- package/dist/typechain-types/factories/IAccessControlEnumerableUpgradeable__factory.js +234 -0
- package/dist/typechain-types/factories/IAccessControlUpgradeable__factory.d.ts +35 -0
- package/dist/typechain-types/factories/IAccessControlUpgradeable__factory.js +191 -0
- package/dist/typechain-types/factories/IERC165Upgradeable__factory.d.ts +22 -0
- package/dist/typechain-types/factories/IERC165Upgradeable__factory.js +38 -0
- package/dist/typechain-types/factories/ISafeMock__factory.d.ts +18 -0
- package/dist/typechain-types/factories/ISafeMock__factory.js +50 -0
- package/dist/typechain-types/factories/OwnableUpgradeable__factory.d.ts +42 -0
- package/dist/typechain-types/factories/OwnableUpgradeable__factory.js +71 -0
- package/dist/typechain-types/factories/ProxyAdmin__factory.d.ts +49 -0
- package/dist/typechain-types/factories/ProxyAdmin__factory.js +192 -0
- package/dist/typechain-types/factories/SafeMock__factory.d.ts +63 -0
- package/dist/typechain-types/factories/SafeMock__factory.js +144 -0
- package/dist/typechain-types/index.d.ts +22 -0
- package/dist/typechain-types/index.js +25 -0
- package/dist/upgrade.d.ts +6 -0
- package/dist/upgrade.js +209 -0
- package/package.json +15 -5
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { BaseContract, BigNumber, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers";
|
|
2
|
+
import { FunctionFragment, Result, EventFragment } from "@ethersproject/abi";
|
|
3
|
+
import { Listener, Provider } from "@ethersproject/providers";
|
|
4
|
+
import { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common";
|
|
5
|
+
export interface OwnableUpgradeableInterface extends utils.Interface {
|
|
6
|
+
contractName: "OwnableUpgradeable";
|
|
7
|
+
functions: {
|
|
8
|
+
"owner()": FunctionFragment;
|
|
9
|
+
"renounceOwnership()": FunctionFragment;
|
|
10
|
+
"transferOwnership(address)": FunctionFragment;
|
|
11
|
+
};
|
|
12
|
+
encodeFunctionData(functionFragment: "owner", values?: undefined): string;
|
|
13
|
+
encodeFunctionData(functionFragment: "renounceOwnership", values?: undefined): string;
|
|
14
|
+
encodeFunctionData(functionFragment: "transferOwnership", values: [string]): string;
|
|
15
|
+
decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
|
|
16
|
+
decodeFunctionResult(functionFragment: "renounceOwnership", data: BytesLike): Result;
|
|
17
|
+
decodeFunctionResult(functionFragment: "transferOwnership", data: BytesLike): Result;
|
|
18
|
+
events: {
|
|
19
|
+
"OwnershipTransferred(address,address)": EventFragment;
|
|
20
|
+
};
|
|
21
|
+
getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment;
|
|
22
|
+
}
|
|
23
|
+
export declare type OwnershipTransferredEvent = TypedEvent<[
|
|
24
|
+
string,
|
|
25
|
+
string
|
|
26
|
+
], {
|
|
27
|
+
previousOwner: string;
|
|
28
|
+
newOwner: string;
|
|
29
|
+
}>;
|
|
30
|
+
export declare type OwnershipTransferredEventFilter = TypedEventFilter<OwnershipTransferredEvent>;
|
|
31
|
+
export interface OwnableUpgradeable extends BaseContract {
|
|
32
|
+
contractName: "OwnableUpgradeable";
|
|
33
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
34
|
+
attach(addressOrName: string): this;
|
|
35
|
+
deployed(): Promise<this>;
|
|
36
|
+
interface: OwnableUpgradeableInterface;
|
|
37
|
+
queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
|
|
38
|
+
listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
|
|
39
|
+
listeners(eventName?: string): Array<Listener>;
|
|
40
|
+
removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
|
|
41
|
+
removeAllListeners(eventName?: string): this;
|
|
42
|
+
off: OnEvent<this>;
|
|
43
|
+
on: OnEvent<this>;
|
|
44
|
+
once: OnEvent<this>;
|
|
45
|
+
removeListener: OnEvent<this>;
|
|
46
|
+
functions: {
|
|
47
|
+
owner(overrides?: CallOverrides): Promise<[string]>;
|
|
48
|
+
renounceOwnership(overrides?: Overrides & {
|
|
49
|
+
from?: string | Promise<string>;
|
|
50
|
+
}): Promise<ContractTransaction>;
|
|
51
|
+
transferOwnership(newOwner: string, overrides?: Overrides & {
|
|
52
|
+
from?: string | Promise<string>;
|
|
53
|
+
}): Promise<ContractTransaction>;
|
|
54
|
+
};
|
|
55
|
+
owner(overrides?: CallOverrides): Promise<string>;
|
|
56
|
+
renounceOwnership(overrides?: Overrides & {
|
|
57
|
+
from?: string | Promise<string>;
|
|
58
|
+
}): Promise<ContractTransaction>;
|
|
59
|
+
transferOwnership(newOwner: string, overrides?: Overrides & {
|
|
60
|
+
from?: string | Promise<string>;
|
|
61
|
+
}): Promise<ContractTransaction>;
|
|
62
|
+
callStatic: {
|
|
63
|
+
owner(overrides?: CallOverrides): Promise<string>;
|
|
64
|
+
renounceOwnership(overrides?: CallOverrides): Promise<void>;
|
|
65
|
+
transferOwnership(newOwner: string, overrides?: CallOverrides): Promise<void>;
|
|
66
|
+
};
|
|
67
|
+
filters: {
|
|
68
|
+
"OwnershipTransferred(address,address)"(previousOwner?: string | null, newOwner?: string | null): OwnershipTransferredEventFilter;
|
|
69
|
+
OwnershipTransferred(previousOwner?: string | null, newOwner?: string | null): OwnershipTransferredEventFilter;
|
|
70
|
+
};
|
|
71
|
+
estimateGas: {
|
|
72
|
+
owner(overrides?: CallOverrides): Promise<BigNumber>;
|
|
73
|
+
renounceOwnership(overrides?: Overrides & {
|
|
74
|
+
from?: string | Promise<string>;
|
|
75
|
+
}): Promise<BigNumber>;
|
|
76
|
+
transferOwnership(newOwner: string, overrides?: Overrides & {
|
|
77
|
+
from?: string | Promise<string>;
|
|
78
|
+
}): Promise<BigNumber>;
|
|
79
|
+
};
|
|
80
|
+
populateTransaction: {
|
|
81
|
+
owner(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
82
|
+
renounceOwnership(overrides?: Overrides & {
|
|
83
|
+
from?: string | Promise<string>;
|
|
84
|
+
}): Promise<PopulatedTransaction>;
|
|
85
|
+
transferOwnership(newOwner: string, overrides?: Overrides & {
|
|
86
|
+
from?: string | Promise<string>;
|
|
87
|
+
}): Promise<PopulatedTransaction>;
|
|
88
|
+
};
|
|
89
|
+
}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { BaseContract, BigNumber, BytesLike, CallOverrides, ContractTransaction, Overrides, PayableOverrides, PopulatedTransaction, Signer, utils } from "ethers";
|
|
2
|
+
import { FunctionFragment, Result, EventFragment } from "@ethersproject/abi";
|
|
3
|
+
import { Listener, Provider } from "@ethersproject/providers";
|
|
4
|
+
import { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common";
|
|
5
|
+
export interface ProxyAdminInterface extends utils.Interface {
|
|
6
|
+
contractName: "ProxyAdmin";
|
|
7
|
+
functions: {
|
|
8
|
+
"changeProxyAdmin(address,address)": FunctionFragment;
|
|
9
|
+
"getProxyAdmin(address)": FunctionFragment;
|
|
10
|
+
"getProxyImplementation(address)": FunctionFragment;
|
|
11
|
+
"owner()": FunctionFragment;
|
|
12
|
+
"renounceOwnership()": FunctionFragment;
|
|
13
|
+
"transferOwnership(address)": FunctionFragment;
|
|
14
|
+
"upgrade(address,address)": FunctionFragment;
|
|
15
|
+
"upgradeAndCall(address,address,bytes)": FunctionFragment;
|
|
16
|
+
};
|
|
17
|
+
encodeFunctionData(functionFragment: "changeProxyAdmin", values: [string, string]): string;
|
|
18
|
+
encodeFunctionData(functionFragment: "getProxyAdmin", values: [string]): string;
|
|
19
|
+
encodeFunctionData(functionFragment: "getProxyImplementation", values: [string]): string;
|
|
20
|
+
encodeFunctionData(functionFragment: "owner", values?: undefined): string;
|
|
21
|
+
encodeFunctionData(functionFragment: "renounceOwnership", values?: undefined): string;
|
|
22
|
+
encodeFunctionData(functionFragment: "transferOwnership", values: [string]): string;
|
|
23
|
+
encodeFunctionData(functionFragment: "upgrade", values: [string, string]): string;
|
|
24
|
+
encodeFunctionData(functionFragment: "upgradeAndCall", values: [string, string, BytesLike]): string;
|
|
25
|
+
decodeFunctionResult(functionFragment: "changeProxyAdmin", data: BytesLike): Result;
|
|
26
|
+
decodeFunctionResult(functionFragment: "getProxyAdmin", data: BytesLike): Result;
|
|
27
|
+
decodeFunctionResult(functionFragment: "getProxyImplementation", data: BytesLike): Result;
|
|
28
|
+
decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
|
|
29
|
+
decodeFunctionResult(functionFragment: "renounceOwnership", data: BytesLike): Result;
|
|
30
|
+
decodeFunctionResult(functionFragment: "transferOwnership", data: BytesLike): Result;
|
|
31
|
+
decodeFunctionResult(functionFragment: "upgrade", data: BytesLike): Result;
|
|
32
|
+
decodeFunctionResult(functionFragment: "upgradeAndCall", data: BytesLike): Result;
|
|
33
|
+
events: {
|
|
34
|
+
"OwnershipTransferred(address,address)": EventFragment;
|
|
35
|
+
};
|
|
36
|
+
getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment;
|
|
37
|
+
}
|
|
38
|
+
export declare type OwnershipTransferredEvent = TypedEvent<[
|
|
39
|
+
string,
|
|
40
|
+
string
|
|
41
|
+
], {
|
|
42
|
+
previousOwner: string;
|
|
43
|
+
newOwner: string;
|
|
44
|
+
}>;
|
|
45
|
+
export declare type OwnershipTransferredEventFilter = TypedEventFilter<OwnershipTransferredEvent>;
|
|
46
|
+
export interface ProxyAdmin extends BaseContract {
|
|
47
|
+
contractName: "ProxyAdmin";
|
|
48
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
49
|
+
attach(addressOrName: string): this;
|
|
50
|
+
deployed(): Promise<this>;
|
|
51
|
+
interface: ProxyAdminInterface;
|
|
52
|
+
queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
|
|
53
|
+
listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
|
|
54
|
+
listeners(eventName?: string): Array<Listener>;
|
|
55
|
+
removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
|
|
56
|
+
removeAllListeners(eventName?: string): this;
|
|
57
|
+
off: OnEvent<this>;
|
|
58
|
+
on: OnEvent<this>;
|
|
59
|
+
once: OnEvent<this>;
|
|
60
|
+
removeListener: OnEvent<this>;
|
|
61
|
+
functions: {
|
|
62
|
+
changeProxyAdmin(proxy: string, newAdmin: string, overrides?: Overrides & {
|
|
63
|
+
from?: string | Promise<string>;
|
|
64
|
+
}): Promise<ContractTransaction>;
|
|
65
|
+
getProxyAdmin(proxy: string, overrides?: CallOverrides): Promise<[string]>;
|
|
66
|
+
getProxyImplementation(proxy: string, overrides?: CallOverrides): Promise<[string]>;
|
|
67
|
+
owner(overrides?: CallOverrides): Promise<[string]>;
|
|
68
|
+
renounceOwnership(overrides?: Overrides & {
|
|
69
|
+
from?: string | Promise<string>;
|
|
70
|
+
}): Promise<ContractTransaction>;
|
|
71
|
+
transferOwnership(newOwner: string, overrides?: Overrides & {
|
|
72
|
+
from?: string | Promise<string>;
|
|
73
|
+
}): Promise<ContractTransaction>;
|
|
74
|
+
upgrade(proxy: string, implementation: string, overrides?: Overrides & {
|
|
75
|
+
from?: string | Promise<string>;
|
|
76
|
+
}): Promise<ContractTransaction>;
|
|
77
|
+
upgradeAndCall(proxy: string, implementation: string, data: BytesLike, overrides?: PayableOverrides & {
|
|
78
|
+
from?: string | Promise<string>;
|
|
79
|
+
}): Promise<ContractTransaction>;
|
|
80
|
+
};
|
|
81
|
+
changeProxyAdmin(proxy: string, newAdmin: string, overrides?: Overrides & {
|
|
82
|
+
from?: string | Promise<string>;
|
|
83
|
+
}): Promise<ContractTransaction>;
|
|
84
|
+
getProxyAdmin(proxy: string, overrides?: CallOverrides): Promise<string>;
|
|
85
|
+
getProxyImplementation(proxy: string, overrides?: CallOverrides): Promise<string>;
|
|
86
|
+
owner(overrides?: CallOverrides): Promise<string>;
|
|
87
|
+
renounceOwnership(overrides?: Overrides & {
|
|
88
|
+
from?: string | Promise<string>;
|
|
89
|
+
}): Promise<ContractTransaction>;
|
|
90
|
+
transferOwnership(newOwner: string, overrides?: Overrides & {
|
|
91
|
+
from?: string | Promise<string>;
|
|
92
|
+
}): Promise<ContractTransaction>;
|
|
93
|
+
upgrade(proxy: string, implementation: string, overrides?: Overrides & {
|
|
94
|
+
from?: string | Promise<string>;
|
|
95
|
+
}): Promise<ContractTransaction>;
|
|
96
|
+
upgradeAndCall(proxy: string, implementation: string, data: BytesLike, overrides?: PayableOverrides & {
|
|
97
|
+
from?: string | Promise<string>;
|
|
98
|
+
}): Promise<ContractTransaction>;
|
|
99
|
+
callStatic: {
|
|
100
|
+
changeProxyAdmin(proxy: string, newAdmin: string, overrides?: CallOverrides): Promise<void>;
|
|
101
|
+
getProxyAdmin(proxy: string, overrides?: CallOverrides): Promise<string>;
|
|
102
|
+
getProxyImplementation(proxy: string, overrides?: CallOverrides): Promise<string>;
|
|
103
|
+
owner(overrides?: CallOverrides): Promise<string>;
|
|
104
|
+
renounceOwnership(overrides?: CallOverrides): Promise<void>;
|
|
105
|
+
transferOwnership(newOwner: string, overrides?: CallOverrides): Promise<void>;
|
|
106
|
+
upgrade(proxy: string, implementation: string, overrides?: CallOverrides): Promise<void>;
|
|
107
|
+
upgradeAndCall(proxy: string, implementation: string, data: BytesLike, overrides?: CallOverrides): Promise<void>;
|
|
108
|
+
};
|
|
109
|
+
filters: {
|
|
110
|
+
"OwnershipTransferred(address,address)"(previousOwner?: string | null, newOwner?: string | null): OwnershipTransferredEventFilter;
|
|
111
|
+
OwnershipTransferred(previousOwner?: string | null, newOwner?: string | null): OwnershipTransferredEventFilter;
|
|
112
|
+
};
|
|
113
|
+
estimateGas: {
|
|
114
|
+
changeProxyAdmin(proxy: string, newAdmin: string, overrides?: Overrides & {
|
|
115
|
+
from?: string | Promise<string>;
|
|
116
|
+
}): Promise<BigNumber>;
|
|
117
|
+
getProxyAdmin(proxy: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
118
|
+
getProxyImplementation(proxy: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
119
|
+
owner(overrides?: CallOverrides): Promise<BigNumber>;
|
|
120
|
+
renounceOwnership(overrides?: Overrides & {
|
|
121
|
+
from?: string | Promise<string>;
|
|
122
|
+
}): Promise<BigNumber>;
|
|
123
|
+
transferOwnership(newOwner: string, overrides?: Overrides & {
|
|
124
|
+
from?: string | Promise<string>;
|
|
125
|
+
}): Promise<BigNumber>;
|
|
126
|
+
upgrade(proxy: string, implementation: string, overrides?: Overrides & {
|
|
127
|
+
from?: string | Promise<string>;
|
|
128
|
+
}): Promise<BigNumber>;
|
|
129
|
+
upgradeAndCall(proxy: string, implementation: string, data: BytesLike, overrides?: PayableOverrides & {
|
|
130
|
+
from?: string | Promise<string>;
|
|
131
|
+
}): Promise<BigNumber>;
|
|
132
|
+
};
|
|
133
|
+
populateTransaction: {
|
|
134
|
+
changeProxyAdmin(proxy: string, newAdmin: string, overrides?: Overrides & {
|
|
135
|
+
from?: string | Promise<string>;
|
|
136
|
+
}): Promise<PopulatedTransaction>;
|
|
137
|
+
getProxyAdmin(proxy: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
138
|
+
getProxyImplementation(proxy: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
139
|
+
owner(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
140
|
+
renounceOwnership(overrides?: Overrides & {
|
|
141
|
+
from?: string | Promise<string>;
|
|
142
|
+
}): Promise<PopulatedTransaction>;
|
|
143
|
+
transferOwnership(newOwner: string, overrides?: Overrides & {
|
|
144
|
+
from?: string | Promise<string>;
|
|
145
|
+
}): Promise<PopulatedTransaction>;
|
|
146
|
+
upgrade(proxy: string, implementation: string, overrides?: Overrides & {
|
|
147
|
+
from?: string | Promise<string>;
|
|
148
|
+
}): Promise<PopulatedTransaction>;
|
|
149
|
+
upgradeAndCall(proxy: string, implementation: string, data: BytesLike, overrides?: PayableOverrides & {
|
|
150
|
+
from?: string | Promise<string>;
|
|
151
|
+
}): Promise<PopulatedTransaction>;
|
|
152
|
+
};
|
|
153
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { BaseContract, BigNumber, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers";
|
|
2
|
+
import { FunctionFragment, Result, EventFragment } from "@ethersproject/abi";
|
|
3
|
+
import { Listener, Provider } from "@ethersproject/providers";
|
|
4
|
+
import { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common";
|
|
5
|
+
export interface SafeMockInterface extends utils.Interface {
|
|
6
|
+
contractName: "SafeMock";
|
|
7
|
+
functions: {
|
|
8
|
+
"IS_SAFE_MOCK()": FunctionFragment;
|
|
9
|
+
"multiSend(bytes)": FunctionFragment;
|
|
10
|
+
"owner()": FunctionFragment;
|
|
11
|
+
"renounceOwnership()": FunctionFragment;
|
|
12
|
+
"transferOwnership(address)": FunctionFragment;
|
|
13
|
+
"transferProxyAdminOwnership(address,address)": FunctionFragment;
|
|
14
|
+
};
|
|
15
|
+
encodeFunctionData(functionFragment: "IS_SAFE_MOCK", values?: undefined): string;
|
|
16
|
+
encodeFunctionData(functionFragment: "multiSend", values: [BytesLike]): string;
|
|
17
|
+
encodeFunctionData(functionFragment: "owner", values?: undefined): string;
|
|
18
|
+
encodeFunctionData(functionFragment: "renounceOwnership", values?: undefined): string;
|
|
19
|
+
encodeFunctionData(functionFragment: "transferOwnership", values: [string]): string;
|
|
20
|
+
encodeFunctionData(functionFragment: "transferProxyAdminOwnership", values: [string, string]): string;
|
|
21
|
+
decodeFunctionResult(functionFragment: "IS_SAFE_MOCK", data: BytesLike): Result;
|
|
22
|
+
decodeFunctionResult(functionFragment: "multiSend", data: BytesLike): Result;
|
|
23
|
+
decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
|
|
24
|
+
decodeFunctionResult(functionFragment: "renounceOwnership", data: BytesLike): Result;
|
|
25
|
+
decodeFunctionResult(functionFragment: "transferOwnership", data: BytesLike): Result;
|
|
26
|
+
decodeFunctionResult(functionFragment: "transferProxyAdminOwnership", data: BytesLike): Result;
|
|
27
|
+
events: {
|
|
28
|
+
"OwnershipTransferred(address,address)": EventFragment;
|
|
29
|
+
};
|
|
30
|
+
getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment;
|
|
31
|
+
}
|
|
32
|
+
export declare type OwnershipTransferredEvent = TypedEvent<[
|
|
33
|
+
string,
|
|
34
|
+
string
|
|
35
|
+
], {
|
|
36
|
+
previousOwner: string;
|
|
37
|
+
newOwner: string;
|
|
38
|
+
}>;
|
|
39
|
+
export declare type OwnershipTransferredEventFilter = TypedEventFilter<OwnershipTransferredEvent>;
|
|
40
|
+
export interface SafeMock extends BaseContract {
|
|
41
|
+
contractName: "SafeMock";
|
|
42
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
43
|
+
attach(addressOrName: string): this;
|
|
44
|
+
deployed(): Promise<this>;
|
|
45
|
+
interface: SafeMockInterface;
|
|
46
|
+
queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
|
|
47
|
+
listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
|
|
48
|
+
listeners(eventName?: string): Array<Listener>;
|
|
49
|
+
removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
|
|
50
|
+
removeAllListeners(eventName?: string): this;
|
|
51
|
+
off: OnEvent<this>;
|
|
52
|
+
on: OnEvent<this>;
|
|
53
|
+
once: OnEvent<this>;
|
|
54
|
+
removeListener: OnEvent<this>;
|
|
55
|
+
functions: {
|
|
56
|
+
IS_SAFE_MOCK(overrides?: CallOverrides): Promise<[boolean]>;
|
|
57
|
+
multiSend(transactions: BytesLike, overrides?: Overrides & {
|
|
58
|
+
from?: string | Promise<string>;
|
|
59
|
+
}): Promise<ContractTransaction>;
|
|
60
|
+
owner(overrides?: CallOverrides): Promise<[string]>;
|
|
61
|
+
renounceOwnership(overrides?: Overrides & {
|
|
62
|
+
from?: string | Promise<string>;
|
|
63
|
+
}): Promise<ContractTransaction>;
|
|
64
|
+
transferOwnership(newOwner: string, overrides?: Overrides & {
|
|
65
|
+
from?: string | Promise<string>;
|
|
66
|
+
}): Promise<ContractTransaction>;
|
|
67
|
+
transferProxyAdminOwnership(proxyAdmin: string, newOwner: string, overrides?: Overrides & {
|
|
68
|
+
from?: string | Promise<string>;
|
|
69
|
+
}): Promise<ContractTransaction>;
|
|
70
|
+
};
|
|
71
|
+
IS_SAFE_MOCK(overrides?: CallOverrides): Promise<boolean>;
|
|
72
|
+
multiSend(transactions: BytesLike, overrides?: Overrides & {
|
|
73
|
+
from?: string | Promise<string>;
|
|
74
|
+
}): Promise<ContractTransaction>;
|
|
75
|
+
owner(overrides?: CallOverrides): Promise<string>;
|
|
76
|
+
renounceOwnership(overrides?: Overrides & {
|
|
77
|
+
from?: string | Promise<string>;
|
|
78
|
+
}): Promise<ContractTransaction>;
|
|
79
|
+
transferOwnership(newOwner: string, overrides?: Overrides & {
|
|
80
|
+
from?: string | Promise<string>;
|
|
81
|
+
}): Promise<ContractTransaction>;
|
|
82
|
+
transferProxyAdminOwnership(proxyAdmin: string, newOwner: string, overrides?: Overrides & {
|
|
83
|
+
from?: string | Promise<string>;
|
|
84
|
+
}): Promise<ContractTransaction>;
|
|
85
|
+
callStatic: {
|
|
86
|
+
IS_SAFE_MOCK(overrides?: CallOverrides): Promise<boolean>;
|
|
87
|
+
multiSend(transactions: BytesLike, overrides?: CallOverrides): Promise<void>;
|
|
88
|
+
owner(overrides?: CallOverrides): Promise<string>;
|
|
89
|
+
renounceOwnership(overrides?: CallOverrides): Promise<void>;
|
|
90
|
+
transferOwnership(newOwner: string, overrides?: CallOverrides): Promise<void>;
|
|
91
|
+
transferProxyAdminOwnership(proxyAdmin: string, newOwner: string, overrides?: CallOverrides): Promise<void>;
|
|
92
|
+
};
|
|
93
|
+
filters: {
|
|
94
|
+
"OwnershipTransferred(address,address)"(previousOwner?: string | null, newOwner?: string | null): OwnershipTransferredEventFilter;
|
|
95
|
+
OwnershipTransferred(previousOwner?: string | null, newOwner?: string | null): OwnershipTransferredEventFilter;
|
|
96
|
+
};
|
|
97
|
+
estimateGas: {
|
|
98
|
+
IS_SAFE_MOCK(overrides?: CallOverrides): Promise<BigNumber>;
|
|
99
|
+
multiSend(transactions: BytesLike, overrides?: Overrides & {
|
|
100
|
+
from?: string | Promise<string>;
|
|
101
|
+
}): Promise<BigNumber>;
|
|
102
|
+
owner(overrides?: CallOverrides): Promise<BigNumber>;
|
|
103
|
+
renounceOwnership(overrides?: Overrides & {
|
|
104
|
+
from?: string | Promise<string>;
|
|
105
|
+
}): Promise<BigNumber>;
|
|
106
|
+
transferOwnership(newOwner: string, overrides?: Overrides & {
|
|
107
|
+
from?: string | Promise<string>;
|
|
108
|
+
}): Promise<BigNumber>;
|
|
109
|
+
transferProxyAdminOwnership(proxyAdmin: string, newOwner: string, overrides?: Overrides & {
|
|
110
|
+
from?: string | Promise<string>;
|
|
111
|
+
}): Promise<BigNumber>;
|
|
112
|
+
};
|
|
113
|
+
populateTransaction: {
|
|
114
|
+
IS_SAFE_MOCK(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
115
|
+
multiSend(transactions: BytesLike, overrides?: Overrides & {
|
|
116
|
+
from?: string | Promise<string>;
|
|
117
|
+
}): Promise<PopulatedTransaction>;
|
|
118
|
+
owner(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
119
|
+
renounceOwnership(overrides?: Overrides & {
|
|
120
|
+
from?: string | Promise<string>;
|
|
121
|
+
}): Promise<PopulatedTransaction>;
|
|
122
|
+
transferOwnership(newOwner: string, overrides?: Overrides & {
|
|
123
|
+
from?: string | Promise<string>;
|
|
124
|
+
}): Promise<PopulatedTransaction>;
|
|
125
|
+
transferProxyAdminOwnership(proxyAdmin: string, newOwner: string, overrides?: Overrides & {
|
|
126
|
+
from?: string | Promise<string>;
|
|
127
|
+
}): Promise<PopulatedTransaction>;
|
|
128
|
+
};
|
|
129
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Listener } from "@ethersproject/providers";
|
|
2
|
+
import type { Event, EventFilter } from "ethers";
|
|
3
|
+
export interface TypedEvent<TArgsArray extends Array<any> = any, TArgsObject = any> extends Event {
|
|
4
|
+
args: TArgsArray & TArgsObject;
|
|
5
|
+
}
|
|
6
|
+
export interface TypedEventFilter<_TEvent extends TypedEvent> extends EventFilter {
|
|
7
|
+
}
|
|
8
|
+
export interface TypedListener<TEvent extends TypedEvent> {
|
|
9
|
+
(...listenerArg: [...__TypechainArgsArray<TEvent>, TEvent]): void;
|
|
10
|
+
}
|
|
11
|
+
declare type __TypechainArgsArray<T> = T extends TypedEvent<infer U> ? U : never;
|
|
12
|
+
export interface OnEvent<TRes> {
|
|
13
|
+
<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>, listener: TypedListener<TEvent>): TRes;
|
|
14
|
+
(eventName: string, listener: Listener): TRes;
|
|
15
|
+
}
|
|
16
|
+
export declare type MinEthersFactory<C, ARGS> = {
|
|
17
|
+
deploy(...a: ARGS[]): Promise<C>;
|
|
18
|
+
};
|
|
19
|
+
export declare type GetContractTypeFromFactory<F> = F extends MinEthersFactory<infer C, any> ? C : never;
|
|
20
|
+
export declare type GetARGsTypeFromFactory<F> = F extends MinEthersFactory<any, any> ? Parameters<F["deploy"]> : never;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import { Provider } from "@ethersproject/providers";
|
|
3
|
+
import type { AccessControlEnumerableUpgradeable, AccessControlEnumerableUpgradeableInterface } from "../AccessControlEnumerableUpgradeable";
|
|
4
|
+
export declare class AccessControlEnumerableUpgradeable__factory {
|
|
5
|
+
static readonly abi: ({
|
|
6
|
+
anonymous: boolean;
|
|
7
|
+
inputs: {
|
|
8
|
+
indexed: boolean;
|
|
9
|
+
internalType: string;
|
|
10
|
+
name: string;
|
|
11
|
+
type: string;
|
|
12
|
+
}[];
|
|
13
|
+
name: string;
|
|
14
|
+
type: string;
|
|
15
|
+
outputs?: undefined;
|
|
16
|
+
stateMutability?: undefined;
|
|
17
|
+
} | {
|
|
18
|
+
inputs: {
|
|
19
|
+
internalType: string;
|
|
20
|
+
name: string;
|
|
21
|
+
type: string;
|
|
22
|
+
}[];
|
|
23
|
+
name: string;
|
|
24
|
+
outputs: {
|
|
25
|
+
internalType: string;
|
|
26
|
+
name: string;
|
|
27
|
+
type: string;
|
|
28
|
+
}[];
|
|
29
|
+
stateMutability: string;
|
|
30
|
+
type: string;
|
|
31
|
+
anonymous?: undefined;
|
|
32
|
+
})[];
|
|
33
|
+
static createInterface(): AccessControlEnumerableUpgradeableInterface;
|
|
34
|
+
static connect(address: string, signerOrProvider: Signer | Provider): AccessControlEnumerableUpgradeable;
|
|
35
|
+
}
|