@cryptonergy/smart-contracts-sdk 1.0.0-dev.3
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/types/index.d.ts +1 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/index.ts +11 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/IERC1363.ts +412 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/IERC1967.ts +168 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/IERC4626.ts +618 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable.ts +90 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/index.ts +4 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors.ts +69 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors.ts +69 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors.ts +69 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/index.ts +6 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/index.ts +10 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.ts +105 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.ts +69 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/proxy/ERC1967/index.ts +5 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/proxy/Proxy.ts +69 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/proxy/beacon/IBeacon.ts +90 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/proxy/beacon/index.ts +4 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/proxy/index.ts +8 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/ERC20.ts +286 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.ts +262 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.ts +286 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/index.ts +4 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/index.ts +9 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/utils/SafeERC20.ts +69 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/utils/index.ts +4 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/token/index.ts +5 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/Address.ts +69 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/Errors.ts +69 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/index.ts +9 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/introspection/IERC165.ts +94 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/introspection/index.ts +4 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/math/SafeCast.ts +69 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/math/index.ts +4 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.ts +186 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/access/index.ts +4 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/index.ts +11 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/proxy/index.ts +5 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.ts +105 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.ts +196 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/proxy/utils/index.ts +5 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.ts +318 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC4626Upgradeable.ts +653 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/index.ts +4 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/token/ERC20/index.ts +6 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/token/index.ts +5 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.ts +105 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/utils/ReentrancyGuardUpgradeable.ts +105 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/utils/index.ts +5 -0
- package/dist/types/typechain-types/@openzeppelin/index.ts +7 -0
- package/dist/types/typechain-types/common.ts +131 -0
- package/dist/types/typechain-types/contracts/ManagementFeeUpgradeableV1.ts +285 -0
- package/dist/types/typechain-types/contracts/PerformanceFeeUpgradeableV1.ts +320 -0
- package/dist/types/typechain-types/contracts/VaultFactoryV1.ts +456 -0
- package/dist/types/typechain-types/contracts/VaultV1.ts +1383 -0
- package/dist/types/typechain-types/contracts/index.ts +13 -0
- package/dist/types/typechain-types/contracts/mocks/MockERC20.ts +305 -0
- package/dist/types/typechain-types/contracts/mocks/index.ts +4 -0
- package/dist/types/typechain-types/contracts/providers/AddressProviderV1.ts +342 -0
- package/dist/types/typechain-types/contracts/providers/index.ts +4 -0
- package/dist/types/typechain-types/contracts/registers/VaultRegistryV1.ts +558 -0
- package/dist/types/typechain-types/contracts/registers/index.ts +4 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/index.ts +7 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/IERC1363__factory.ts +393 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/IERC1967__factory.ts +67 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/IERC4626__factory.ts +634 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable__factory.ts +38 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/index.ts +4 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors__factory.ts +127 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors__factory.ts +111 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors__factory.ts +128 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/index.ts +6 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/index.ts +8 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy__factory.ts +144 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils__factory.ts +105 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/ERC1967/index.ts +5 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/Proxy__factory.ts +26 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/beacon/IBeacon__factory.ts +35 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/beacon/index.ts +4 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/index.ts +6 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/ERC20__factory.ts +330 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.ts +205 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory.ts +247 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/index.ts +4 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/index.ts +7 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/utils/SafeERC20__factory.ts +96 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/utils/index.ts +4 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/index.ts +4 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/Address__factory.ts +75 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/Errors__factory.ts +101 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/index.ts +7 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/introspection/IERC165__factory.ts +41 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/introspection/index.ts +4 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/math/SafeCast__factory.ts +118 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/math/index.ts +4 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable__factory.ts +122 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/access/index.ts +4 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/index.ts +7 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/index.ts +4 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable__factory.ts +48 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable__factory.ts +153 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/index.ts +5 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable__factory.ts +356 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC4626Upgradeable__factory.ts +841 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/index.ts +4 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/token/ERC20/index.ts +5 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/token/index.ts +4 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable__factory.ts +48 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/ReentrancyGuardUpgradeable__factory.ts +57 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/index.ts +5 -0
- package/dist/types/typechain-types/factories/@openzeppelin/index.ts +5 -0
- package/dist/types/typechain-types/factories/contracts/ManagementFeeUpgradeableV1__factory.ts +175 -0
- package/dist/types/typechain-types/factories/contracts/PerformanceFeeUpgradeableV1__factory.ts +194 -0
- package/dist/types/typechain-types/factories/contracts/VaultFactoryV1__factory.ts +449 -0
- package/dist/types/typechain-types/factories/contracts/VaultV1__factory.ts +1523 -0
- package/dist/types/typechain-types/factories/contracts/index.ts +10 -0
- package/dist/types/typechain-types/factories/contracts/mocks/MockERC20__factory.ts +412 -0
- package/dist/types/typechain-types/factories/contracts/mocks/index.ts +4 -0
- package/dist/types/typechain-types/factories/contracts/providers/AddressProviderV1__factory.ts +359 -0
- package/dist/types/typechain-types/factories/contracts/providers/index.ts +4 -0
- package/dist/types/typechain-types/factories/contracts/registers/VaultRegistryV1__factory.ts +554 -0
- package/dist/types/typechain-types/factories/contracts/registers/index.ts +4 -0
- package/dist/types/typechain-types/factories/index.ts +5 -0
- package/dist/types/typechain-types/hardhat.d.ts +639 -0
- package/dist/types/typechain-types/index.ts +74 -0
- package/package.json +23 -0
|
@@ -0,0 +1,558 @@
|
|
|
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 declare namespace VaultRegistryV1 {
|
|
27
|
+
export type VaultInfoStruct = {
|
|
28
|
+
vault: AddressLike;
|
|
29
|
+
asset: AddressLike;
|
|
30
|
+
createdAt: BigNumberish;
|
|
31
|
+
active: boolean;
|
|
32
|
+
name: string;
|
|
33
|
+
symbol: string;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export type VaultInfoStructOutput = [
|
|
37
|
+
vault: string,
|
|
38
|
+
asset: string,
|
|
39
|
+
createdAt: bigint,
|
|
40
|
+
active: boolean,
|
|
41
|
+
name: string,
|
|
42
|
+
symbol: string
|
|
43
|
+
] & {
|
|
44
|
+
vault: string;
|
|
45
|
+
asset: string;
|
|
46
|
+
createdAt: bigint;
|
|
47
|
+
active: boolean;
|
|
48
|
+
name: string;
|
|
49
|
+
symbol: string;
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export interface VaultRegistryV1Interface extends Interface {
|
|
54
|
+
getFunction(
|
|
55
|
+
nameOrSignature:
|
|
56
|
+
| "UPGRADE_INTERFACE_VERSION"
|
|
57
|
+
| "allVaultsLength"
|
|
58
|
+
| "factory"
|
|
59
|
+
| "getAllVaults"
|
|
60
|
+
| "getVault"
|
|
61
|
+
| "getVaultsByAsset"
|
|
62
|
+
| "initialize"
|
|
63
|
+
| "owner"
|
|
64
|
+
| "proxiableUUID"
|
|
65
|
+
| "registerVault"
|
|
66
|
+
| "renounceOwnership"
|
|
67
|
+
| "setFactory"
|
|
68
|
+
| "setVaultActive"
|
|
69
|
+
| "transferOwnership"
|
|
70
|
+
| "upgradeToAndCall"
|
|
71
|
+
): FunctionFragment;
|
|
72
|
+
|
|
73
|
+
getEvent(
|
|
74
|
+
nameOrSignatureOrTopic:
|
|
75
|
+
| "FactoryUpdated"
|
|
76
|
+
| "Initialized"
|
|
77
|
+
| "OwnershipTransferred"
|
|
78
|
+
| "Upgraded"
|
|
79
|
+
| "VaultRegistered"
|
|
80
|
+
| "VaultStatusUpdated"
|
|
81
|
+
): EventFragment;
|
|
82
|
+
|
|
83
|
+
encodeFunctionData(
|
|
84
|
+
functionFragment: "UPGRADE_INTERFACE_VERSION",
|
|
85
|
+
values?: undefined
|
|
86
|
+
): string;
|
|
87
|
+
encodeFunctionData(
|
|
88
|
+
functionFragment: "allVaultsLength",
|
|
89
|
+
values?: undefined
|
|
90
|
+
): string;
|
|
91
|
+
encodeFunctionData(functionFragment: "factory", values?: undefined): string;
|
|
92
|
+
encodeFunctionData(
|
|
93
|
+
functionFragment: "getAllVaults",
|
|
94
|
+
values?: undefined
|
|
95
|
+
): string;
|
|
96
|
+
encodeFunctionData(
|
|
97
|
+
functionFragment: "getVault",
|
|
98
|
+
values: [AddressLike]
|
|
99
|
+
): string;
|
|
100
|
+
encodeFunctionData(
|
|
101
|
+
functionFragment: "getVaultsByAsset",
|
|
102
|
+
values: [AddressLike]
|
|
103
|
+
): string;
|
|
104
|
+
encodeFunctionData(
|
|
105
|
+
functionFragment: "initialize",
|
|
106
|
+
values: [AddressLike, AddressLike]
|
|
107
|
+
): string;
|
|
108
|
+
encodeFunctionData(functionFragment: "owner", values?: undefined): string;
|
|
109
|
+
encodeFunctionData(
|
|
110
|
+
functionFragment: "proxiableUUID",
|
|
111
|
+
values?: undefined
|
|
112
|
+
): string;
|
|
113
|
+
encodeFunctionData(
|
|
114
|
+
functionFragment: "registerVault",
|
|
115
|
+
values: [AddressLike, AddressLike, string, string]
|
|
116
|
+
): string;
|
|
117
|
+
encodeFunctionData(
|
|
118
|
+
functionFragment: "renounceOwnership",
|
|
119
|
+
values?: undefined
|
|
120
|
+
): string;
|
|
121
|
+
encodeFunctionData(
|
|
122
|
+
functionFragment: "setFactory",
|
|
123
|
+
values: [AddressLike]
|
|
124
|
+
): string;
|
|
125
|
+
encodeFunctionData(
|
|
126
|
+
functionFragment: "setVaultActive",
|
|
127
|
+
values: [AddressLike, boolean]
|
|
128
|
+
): string;
|
|
129
|
+
encodeFunctionData(
|
|
130
|
+
functionFragment: "transferOwnership",
|
|
131
|
+
values: [AddressLike]
|
|
132
|
+
): string;
|
|
133
|
+
encodeFunctionData(
|
|
134
|
+
functionFragment: "upgradeToAndCall",
|
|
135
|
+
values: [AddressLike, BytesLike]
|
|
136
|
+
): string;
|
|
137
|
+
|
|
138
|
+
decodeFunctionResult(
|
|
139
|
+
functionFragment: "UPGRADE_INTERFACE_VERSION",
|
|
140
|
+
data: BytesLike
|
|
141
|
+
): Result;
|
|
142
|
+
decodeFunctionResult(
|
|
143
|
+
functionFragment: "allVaultsLength",
|
|
144
|
+
data: BytesLike
|
|
145
|
+
): Result;
|
|
146
|
+
decodeFunctionResult(functionFragment: "factory", data: BytesLike): Result;
|
|
147
|
+
decodeFunctionResult(
|
|
148
|
+
functionFragment: "getAllVaults",
|
|
149
|
+
data: BytesLike
|
|
150
|
+
): Result;
|
|
151
|
+
decodeFunctionResult(functionFragment: "getVault", data: BytesLike): Result;
|
|
152
|
+
decodeFunctionResult(
|
|
153
|
+
functionFragment: "getVaultsByAsset",
|
|
154
|
+
data: BytesLike
|
|
155
|
+
): Result;
|
|
156
|
+
decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
|
|
157
|
+
decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
|
|
158
|
+
decodeFunctionResult(
|
|
159
|
+
functionFragment: "proxiableUUID",
|
|
160
|
+
data: BytesLike
|
|
161
|
+
): Result;
|
|
162
|
+
decodeFunctionResult(
|
|
163
|
+
functionFragment: "registerVault",
|
|
164
|
+
data: BytesLike
|
|
165
|
+
): Result;
|
|
166
|
+
decodeFunctionResult(
|
|
167
|
+
functionFragment: "renounceOwnership",
|
|
168
|
+
data: BytesLike
|
|
169
|
+
): Result;
|
|
170
|
+
decodeFunctionResult(functionFragment: "setFactory", data: BytesLike): Result;
|
|
171
|
+
decodeFunctionResult(
|
|
172
|
+
functionFragment: "setVaultActive",
|
|
173
|
+
data: BytesLike
|
|
174
|
+
): Result;
|
|
175
|
+
decodeFunctionResult(
|
|
176
|
+
functionFragment: "transferOwnership",
|
|
177
|
+
data: BytesLike
|
|
178
|
+
): Result;
|
|
179
|
+
decodeFunctionResult(
|
|
180
|
+
functionFragment: "upgradeToAndCall",
|
|
181
|
+
data: BytesLike
|
|
182
|
+
): Result;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export namespace FactoryUpdatedEvent {
|
|
186
|
+
export type InputTuple = [oldFactory: AddressLike, newFactory: AddressLike];
|
|
187
|
+
export type OutputTuple = [oldFactory: string, newFactory: string];
|
|
188
|
+
export interface OutputObject {
|
|
189
|
+
oldFactory: string;
|
|
190
|
+
newFactory: string;
|
|
191
|
+
}
|
|
192
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
193
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
194
|
+
export type Log = TypedEventLog<Event>;
|
|
195
|
+
export type LogDescription = TypedLogDescription<Event>;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
export namespace InitializedEvent {
|
|
199
|
+
export type InputTuple = [version: BigNumberish];
|
|
200
|
+
export type OutputTuple = [version: bigint];
|
|
201
|
+
export interface OutputObject {
|
|
202
|
+
version: bigint;
|
|
203
|
+
}
|
|
204
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
205
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
206
|
+
export type Log = TypedEventLog<Event>;
|
|
207
|
+
export type LogDescription = TypedLogDescription<Event>;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
export namespace OwnershipTransferredEvent {
|
|
211
|
+
export type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike];
|
|
212
|
+
export type OutputTuple = [previousOwner: string, newOwner: string];
|
|
213
|
+
export interface OutputObject {
|
|
214
|
+
previousOwner: string;
|
|
215
|
+
newOwner: string;
|
|
216
|
+
}
|
|
217
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
218
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
219
|
+
export type Log = TypedEventLog<Event>;
|
|
220
|
+
export type LogDescription = TypedLogDescription<Event>;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export namespace UpgradedEvent {
|
|
224
|
+
export type InputTuple = [implementation: AddressLike];
|
|
225
|
+
export type OutputTuple = [implementation: string];
|
|
226
|
+
export interface OutputObject {
|
|
227
|
+
implementation: string;
|
|
228
|
+
}
|
|
229
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
230
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
231
|
+
export type Log = TypedEventLog<Event>;
|
|
232
|
+
export type LogDescription = TypedLogDescription<Event>;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export namespace VaultRegisteredEvent {
|
|
236
|
+
export type InputTuple = [
|
|
237
|
+
vault: AddressLike,
|
|
238
|
+
asset: AddressLike,
|
|
239
|
+
name: string,
|
|
240
|
+
symbol: string
|
|
241
|
+
];
|
|
242
|
+
export type OutputTuple = [
|
|
243
|
+
vault: string,
|
|
244
|
+
asset: string,
|
|
245
|
+
name: string,
|
|
246
|
+
symbol: string
|
|
247
|
+
];
|
|
248
|
+
export interface OutputObject {
|
|
249
|
+
vault: string;
|
|
250
|
+
asset: string;
|
|
251
|
+
name: string;
|
|
252
|
+
symbol: string;
|
|
253
|
+
}
|
|
254
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
255
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
256
|
+
export type Log = TypedEventLog<Event>;
|
|
257
|
+
export type LogDescription = TypedLogDescription<Event>;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
export namespace VaultStatusUpdatedEvent {
|
|
261
|
+
export type InputTuple = [vault: AddressLike, active: boolean];
|
|
262
|
+
export type OutputTuple = [vault: string, active: boolean];
|
|
263
|
+
export interface OutputObject {
|
|
264
|
+
vault: string;
|
|
265
|
+
active: boolean;
|
|
266
|
+
}
|
|
267
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
268
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
269
|
+
export type Log = TypedEventLog<Event>;
|
|
270
|
+
export type LogDescription = TypedLogDescription<Event>;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
export interface VaultRegistryV1 extends BaseContract {
|
|
274
|
+
connect(runner?: ContractRunner | null): VaultRegistryV1;
|
|
275
|
+
waitForDeployment(): Promise<this>;
|
|
276
|
+
|
|
277
|
+
interface: VaultRegistryV1Interface;
|
|
278
|
+
|
|
279
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
|
280
|
+
event: TCEvent,
|
|
281
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
282
|
+
toBlock?: string | number | undefined
|
|
283
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
284
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
|
285
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
286
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
287
|
+
toBlock?: string | number | undefined
|
|
288
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
289
|
+
|
|
290
|
+
on<TCEvent extends TypedContractEvent>(
|
|
291
|
+
event: TCEvent,
|
|
292
|
+
listener: TypedListener<TCEvent>
|
|
293
|
+
): Promise<this>;
|
|
294
|
+
on<TCEvent extends TypedContractEvent>(
|
|
295
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
296
|
+
listener: TypedListener<TCEvent>
|
|
297
|
+
): Promise<this>;
|
|
298
|
+
|
|
299
|
+
once<TCEvent extends TypedContractEvent>(
|
|
300
|
+
event: TCEvent,
|
|
301
|
+
listener: TypedListener<TCEvent>
|
|
302
|
+
): Promise<this>;
|
|
303
|
+
once<TCEvent extends TypedContractEvent>(
|
|
304
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
305
|
+
listener: TypedListener<TCEvent>
|
|
306
|
+
): Promise<this>;
|
|
307
|
+
|
|
308
|
+
listeners<TCEvent extends TypedContractEvent>(
|
|
309
|
+
event: TCEvent
|
|
310
|
+
): Promise<Array<TypedListener<TCEvent>>>;
|
|
311
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
312
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(
|
|
313
|
+
event?: TCEvent
|
|
314
|
+
): Promise<this>;
|
|
315
|
+
|
|
316
|
+
UPGRADE_INTERFACE_VERSION: TypedContractMethod<[], [string], "view">;
|
|
317
|
+
|
|
318
|
+
allVaultsLength: TypedContractMethod<[], [bigint], "view">;
|
|
319
|
+
|
|
320
|
+
factory: TypedContractMethod<[], [string], "view">;
|
|
321
|
+
|
|
322
|
+
getAllVaults: TypedContractMethod<[], [string[]], "view">;
|
|
323
|
+
|
|
324
|
+
getVault: TypedContractMethod<
|
|
325
|
+
[vault: AddressLike],
|
|
326
|
+
[VaultRegistryV1.VaultInfoStructOutput],
|
|
327
|
+
"view"
|
|
328
|
+
>;
|
|
329
|
+
|
|
330
|
+
getVaultsByAsset: TypedContractMethod<
|
|
331
|
+
[asset: AddressLike],
|
|
332
|
+
[string[]],
|
|
333
|
+
"view"
|
|
334
|
+
>;
|
|
335
|
+
|
|
336
|
+
initialize: TypedContractMethod<
|
|
337
|
+
[initialOwner: AddressLike, factory_: AddressLike],
|
|
338
|
+
[void],
|
|
339
|
+
"nonpayable"
|
|
340
|
+
>;
|
|
341
|
+
|
|
342
|
+
owner: TypedContractMethod<[], [string], "view">;
|
|
343
|
+
|
|
344
|
+
proxiableUUID: TypedContractMethod<[], [string], "view">;
|
|
345
|
+
|
|
346
|
+
registerVault: TypedContractMethod<
|
|
347
|
+
[vault: AddressLike, asset: AddressLike, name: string, symbol: string],
|
|
348
|
+
[void],
|
|
349
|
+
"nonpayable"
|
|
350
|
+
>;
|
|
351
|
+
|
|
352
|
+
renounceOwnership: TypedContractMethod<[], [void], "nonpayable">;
|
|
353
|
+
|
|
354
|
+
setFactory: TypedContractMethod<
|
|
355
|
+
[newFactory: AddressLike],
|
|
356
|
+
[void],
|
|
357
|
+
"nonpayable"
|
|
358
|
+
>;
|
|
359
|
+
|
|
360
|
+
setVaultActive: TypedContractMethod<
|
|
361
|
+
[vault: AddressLike, active: boolean],
|
|
362
|
+
[void],
|
|
363
|
+
"nonpayable"
|
|
364
|
+
>;
|
|
365
|
+
|
|
366
|
+
transferOwnership: TypedContractMethod<
|
|
367
|
+
[newOwner: AddressLike],
|
|
368
|
+
[void],
|
|
369
|
+
"nonpayable"
|
|
370
|
+
>;
|
|
371
|
+
|
|
372
|
+
upgradeToAndCall: TypedContractMethod<
|
|
373
|
+
[newImplementation: AddressLike, data: BytesLike],
|
|
374
|
+
[void],
|
|
375
|
+
"payable"
|
|
376
|
+
>;
|
|
377
|
+
|
|
378
|
+
getFunction<T extends ContractMethod = ContractMethod>(
|
|
379
|
+
key: string | FunctionFragment
|
|
380
|
+
): T;
|
|
381
|
+
|
|
382
|
+
getFunction(
|
|
383
|
+
nameOrSignature: "UPGRADE_INTERFACE_VERSION"
|
|
384
|
+
): TypedContractMethod<[], [string], "view">;
|
|
385
|
+
getFunction(
|
|
386
|
+
nameOrSignature: "allVaultsLength"
|
|
387
|
+
): TypedContractMethod<[], [bigint], "view">;
|
|
388
|
+
getFunction(
|
|
389
|
+
nameOrSignature: "factory"
|
|
390
|
+
): TypedContractMethod<[], [string], "view">;
|
|
391
|
+
getFunction(
|
|
392
|
+
nameOrSignature: "getAllVaults"
|
|
393
|
+
): TypedContractMethod<[], [string[]], "view">;
|
|
394
|
+
getFunction(
|
|
395
|
+
nameOrSignature: "getVault"
|
|
396
|
+
): TypedContractMethod<
|
|
397
|
+
[vault: AddressLike],
|
|
398
|
+
[VaultRegistryV1.VaultInfoStructOutput],
|
|
399
|
+
"view"
|
|
400
|
+
>;
|
|
401
|
+
getFunction(
|
|
402
|
+
nameOrSignature: "getVaultsByAsset"
|
|
403
|
+
): TypedContractMethod<[asset: AddressLike], [string[]], "view">;
|
|
404
|
+
getFunction(
|
|
405
|
+
nameOrSignature: "initialize"
|
|
406
|
+
): TypedContractMethod<
|
|
407
|
+
[initialOwner: AddressLike, factory_: AddressLike],
|
|
408
|
+
[void],
|
|
409
|
+
"nonpayable"
|
|
410
|
+
>;
|
|
411
|
+
getFunction(
|
|
412
|
+
nameOrSignature: "owner"
|
|
413
|
+
): TypedContractMethod<[], [string], "view">;
|
|
414
|
+
getFunction(
|
|
415
|
+
nameOrSignature: "proxiableUUID"
|
|
416
|
+
): TypedContractMethod<[], [string], "view">;
|
|
417
|
+
getFunction(
|
|
418
|
+
nameOrSignature: "registerVault"
|
|
419
|
+
): TypedContractMethod<
|
|
420
|
+
[vault: AddressLike, asset: AddressLike, name: string, symbol: string],
|
|
421
|
+
[void],
|
|
422
|
+
"nonpayable"
|
|
423
|
+
>;
|
|
424
|
+
getFunction(
|
|
425
|
+
nameOrSignature: "renounceOwnership"
|
|
426
|
+
): TypedContractMethod<[], [void], "nonpayable">;
|
|
427
|
+
getFunction(
|
|
428
|
+
nameOrSignature: "setFactory"
|
|
429
|
+
): TypedContractMethod<[newFactory: AddressLike], [void], "nonpayable">;
|
|
430
|
+
getFunction(
|
|
431
|
+
nameOrSignature: "setVaultActive"
|
|
432
|
+
): TypedContractMethod<
|
|
433
|
+
[vault: AddressLike, active: boolean],
|
|
434
|
+
[void],
|
|
435
|
+
"nonpayable"
|
|
436
|
+
>;
|
|
437
|
+
getFunction(
|
|
438
|
+
nameOrSignature: "transferOwnership"
|
|
439
|
+
): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">;
|
|
440
|
+
getFunction(
|
|
441
|
+
nameOrSignature: "upgradeToAndCall"
|
|
442
|
+
): TypedContractMethod<
|
|
443
|
+
[newImplementation: AddressLike, data: BytesLike],
|
|
444
|
+
[void],
|
|
445
|
+
"payable"
|
|
446
|
+
>;
|
|
447
|
+
|
|
448
|
+
getEvent(
|
|
449
|
+
key: "FactoryUpdated"
|
|
450
|
+
): TypedContractEvent<
|
|
451
|
+
FactoryUpdatedEvent.InputTuple,
|
|
452
|
+
FactoryUpdatedEvent.OutputTuple,
|
|
453
|
+
FactoryUpdatedEvent.OutputObject
|
|
454
|
+
>;
|
|
455
|
+
getEvent(
|
|
456
|
+
key: "Initialized"
|
|
457
|
+
): TypedContractEvent<
|
|
458
|
+
InitializedEvent.InputTuple,
|
|
459
|
+
InitializedEvent.OutputTuple,
|
|
460
|
+
InitializedEvent.OutputObject
|
|
461
|
+
>;
|
|
462
|
+
getEvent(
|
|
463
|
+
key: "OwnershipTransferred"
|
|
464
|
+
): TypedContractEvent<
|
|
465
|
+
OwnershipTransferredEvent.InputTuple,
|
|
466
|
+
OwnershipTransferredEvent.OutputTuple,
|
|
467
|
+
OwnershipTransferredEvent.OutputObject
|
|
468
|
+
>;
|
|
469
|
+
getEvent(
|
|
470
|
+
key: "Upgraded"
|
|
471
|
+
): TypedContractEvent<
|
|
472
|
+
UpgradedEvent.InputTuple,
|
|
473
|
+
UpgradedEvent.OutputTuple,
|
|
474
|
+
UpgradedEvent.OutputObject
|
|
475
|
+
>;
|
|
476
|
+
getEvent(
|
|
477
|
+
key: "VaultRegistered"
|
|
478
|
+
): TypedContractEvent<
|
|
479
|
+
VaultRegisteredEvent.InputTuple,
|
|
480
|
+
VaultRegisteredEvent.OutputTuple,
|
|
481
|
+
VaultRegisteredEvent.OutputObject
|
|
482
|
+
>;
|
|
483
|
+
getEvent(
|
|
484
|
+
key: "VaultStatusUpdated"
|
|
485
|
+
): TypedContractEvent<
|
|
486
|
+
VaultStatusUpdatedEvent.InputTuple,
|
|
487
|
+
VaultStatusUpdatedEvent.OutputTuple,
|
|
488
|
+
VaultStatusUpdatedEvent.OutputObject
|
|
489
|
+
>;
|
|
490
|
+
|
|
491
|
+
filters: {
|
|
492
|
+
"FactoryUpdated(address,address)": TypedContractEvent<
|
|
493
|
+
FactoryUpdatedEvent.InputTuple,
|
|
494
|
+
FactoryUpdatedEvent.OutputTuple,
|
|
495
|
+
FactoryUpdatedEvent.OutputObject
|
|
496
|
+
>;
|
|
497
|
+
FactoryUpdated: TypedContractEvent<
|
|
498
|
+
FactoryUpdatedEvent.InputTuple,
|
|
499
|
+
FactoryUpdatedEvent.OutputTuple,
|
|
500
|
+
FactoryUpdatedEvent.OutputObject
|
|
501
|
+
>;
|
|
502
|
+
|
|
503
|
+
"Initialized(uint64)": TypedContractEvent<
|
|
504
|
+
InitializedEvent.InputTuple,
|
|
505
|
+
InitializedEvent.OutputTuple,
|
|
506
|
+
InitializedEvent.OutputObject
|
|
507
|
+
>;
|
|
508
|
+
Initialized: TypedContractEvent<
|
|
509
|
+
InitializedEvent.InputTuple,
|
|
510
|
+
InitializedEvent.OutputTuple,
|
|
511
|
+
InitializedEvent.OutputObject
|
|
512
|
+
>;
|
|
513
|
+
|
|
514
|
+
"OwnershipTransferred(address,address)": TypedContractEvent<
|
|
515
|
+
OwnershipTransferredEvent.InputTuple,
|
|
516
|
+
OwnershipTransferredEvent.OutputTuple,
|
|
517
|
+
OwnershipTransferredEvent.OutputObject
|
|
518
|
+
>;
|
|
519
|
+
OwnershipTransferred: TypedContractEvent<
|
|
520
|
+
OwnershipTransferredEvent.InputTuple,
|
|
521
|
+
OwnershipTransferredEvent.OutputTuple,
|
|
522
|
+
OwnershipTransferredEvent.OutputObject
|
|
523
|
+
>;
|
|
524
|
+
|
|
525
|
+
"Upgraded(address)": TypedContractEvent<
|
|
526
|
+
UpgradedEvent.InputTuple,
|
|
527
|
+
UpgradedEvent.OutputTuple,
|
|
528
|
+
UpgradedEvent.OutputObject
|
|
529
|
+
>;
|
|
530
|
+
Upgraded: TypedContractEvent<
|
|
531
|
+
UpgradedEvent.InputTuple,
|
|
532
|
+
UpgradedEvent.OutputTuple,
|
|
533
|
+
UpgradedEvent.OutputObject
|
|
534
|
+
>;
|
|
535
|
+
|
|
536
|
+
"VaultRegistered(address,address,string,string)": TypedContractEvent<
|
|
537
|
+
VaultRegisteredEvent.InputTuple,
|
|
538
|
+
VaultRegisteredEvent.OutputTuple,
|
|
539
|
+
VaultRegisteredEvent.OutputObject
|
|
540
|
+
>;
|
|
541
|
+
VaultRegistered: TypedContractEvent<
|
|
542
|
+
VaultRegisteredEvent.InputTuple,
|
|
543
|
+
VaultRegisteredEvent.OutputTuple,
|
|
544
|
+
VaultRegisteredEvent.OutputObject
|
|
545
|
+
>;
|
|
546
|
+
|
|
547
|
+
"VaultStatusUpdated(address,bool)": TypedContractEvent<
|
|
548
|
+
VaultStatusUpdatedEvent.InputTuple,
|
|
549
|
+
VaultStatusUpdatedEvent.OutputTuple,
|
|
550
|
+
VaultStatusUpdatedEvent.OutputObject
|
|
551
|
+
>;
|
|
552
|
+
VaultStatusUpdated: TypedContractEvent<
|
|
553
|
+
VaultStatusUpdatedEvent.InputTuple,
|
|
554
|
+
VaultStatusUpdatedEvent.OutputTuple,
|
|
555
|
+
VaultStatusUpdatedEvent.OutputObject
|
|
556
|
+
>;
|
|
557
|
+
};
|
|
558
|
+
}
|