@huma-finance/shared 0.0.48-beta.279 → 0.0.48-beta.280

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.
@@ -1,23 +1,50 @@
1
1
  [
2
2
  {
3
3
  "inputs": [],
4
- "name": "notAuthorizedCaller",
4
+ "name": "AuthorizedContractCallerRequired",
5
5
  "type": "error"
6
6
  },
7
7
  {
8
8
  "inputs": [],
9
- "name": "notPool",
9
+ "name": "TrancheRequired",
10
10
  "type": "error"
11
11
  },
12
12
  {
13
13
  "inputs": [],
14
- "name": "todo",
14
+ "name": "ZeroAddressProvided",
15
15
  "type": "error"
16
16
  },
17
17
  {
18
- "inputs": [],
19
- "name": "zeroAddressProvided",
20
- "type": "error"
18
+ "anonymous": false,
19
+ "inputs": [
20
+ {
21
+ "indexed": false,
22
+ "internalType": "address",
23
+ "name": "previousAdmin",
24
+ "type": "address"
25
+ },
26
+ {
27
+ "indexed": false,
28
+ "internalType": "address",
29
+ "name": "newAdmin",
30
+ "type": "address"
31
+ }
32
+ ],
33
+ "name": "AdminChanged",
34
+ "type": "event"
35
+ },
36
+ {
37
+ "anonymous": false,
38
+ "inputs": [
39
+ {
40
+ "indexed": true,
41
+ "internalType": "address",
42
+ "name": "beacon",
43
+ "type": "address"
44
+ }
45
+ ],
46
+ "name": "BeaconUpgraded",
47
+ "type": "event"
21
48
  },
22
49
  {
23
50
  "anonymous": false,
@@ -64,6 +91,19 @@
64
91
  "name": "PoolConfigChanged",
65
92
  "type": "event"
66
93
  },
94
+ {
95
+ "anonymous": false,
96
+ "inputs": [
97
+ {
98
+ "indexed": true,
99
+ "internalType": "address",
100
+ "name": "implementation",
101
+ "type": "address"
102
+ }
103
+ ],
104
+ "name": "Upgraded",
105
+ "type": "event"
106
+ },
67
107
  {
68
108
  "inputs": [
69
109
  {
@@ -102,11 +142,11 @@
102
142
  },
103
143
  {
104
144
  "inputs": [],
105
- "name": "getAvailableLiquidityForFees",
145
+ "name": "getAvailableBalanceForFees",
106
146
  "outputs": [
107
147
  {
108
148
  "internalType": "uint256",
109
- "name": "liquidity",
149
+ "name": "availableBalance",
110
150
  "type": "uint256"
111
151
  }
112
152
  ],
@@ -115,11 +155,11 @@
115
155
  },
116
156
  {
117
157
  "inputs": [],
118
- "name": "getPoolLiquidity",
158
+ "name": "getAvailableBalanceForPool",
119
159
  "outputs": [
120
160
  {
121
161
  "internalType": "uint256",
122
- "name": "liquidity",
162
+ "name": "availableBalance",
123
163
  "type": "uint256"
124
164
  }
125
165
  ],
@@ -178,6 +218,19 @@
178
218
  "stateMutability": "view",
179
219
  "type": "function"
180
220
  },
221
+ {
222
+ "inputs": [],
223
+ "name": "proxiableUUID",
224
+ "outputs": [
225
+ {
226
+ "internalType": "bytes32",
227
+ "name": "",
228
+ "type": "bytes32"
229
+ }
230
+ ],
231
+ "stateMutability": "view",
232
+ "type": "function"
233
+ },
181
234
  {
182
235
  "inputs": [],
183
236
  "name": "resetUnprocessedProfit",
@@ -200,7 +253,7 @@
200
253
  },
201
254
  {
202
255
  "inputs": [],
203
- "name": "totalLiquidity",
256
+ "name": "totalBalance",
204
257
  "outputs": [
205
258
  {
206
259
  "internalType": "uint256",
@@ -250,6 +303,37 @@
250
303
  "stateMutability": "nonpayable",
251
304
  "type": "function"
252
305
  },
306
+ {
307
+ "inputs": [
308
+ {
309
+ "internalType": "address",
310
+ "name": "newImplementation",
311
+ "type": "address"
312
+ }
313
+ ],
314
+ "name": "upgradeTo",
315
+ "outputs": [],
316
+ "stateMutability": "nonpayable",
317
+ "type": "function"
318
+ },
319
+ {
320
+ "inputs": [
321
+ {
322
+ "internalType": "address",
323
+ "name": "newImplementation",
324
+ "type": "address"
325
+ },
326
+ {
327
+ "internalType": "bytes",
328
+ "name": "data",
329
+ "type": "bytes"
330
+ }
331
+ ],
332
+ "name": "upgradeToAndCall",
333
+ "outputs": [],
334
+ "stateMutability": "payable",
335
+ "type": "function"
336
+ },
253
337
  {
254
338
  "inputs": [
255
339
  {
@@ -1,4 +1,4 @@
1
- import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from 'ethers';
1
+ import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PayableOverrides, PopulatedTransaction, Signer, utils } from 'ethers';
2
2
  import type { FunctionFragment, Result, EventFragment } from '@ethersproject/abi';
3
3
  import type { Listener, Provider } from '@ethersproject/providers';
4
4
  import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent, PromiseOrValue } from './common';
@@ -6,60 +6,91 @@ export interface PoolSafeInterface extends utils.Interface {
6
6
  functions: {
7
7
  'addUnprocessedProfit(address,uint256)': FunctionFragment;
8
8
  'deposit(address,uint256)': FunctionFragment;
9
- 'getAvailableLiquidityForFees()': FunctionFragment;
10
- 'getPoolLiquidity()': FunctionFragment;
9
+ 'getAvailableBalanceForFees()': FunctionFragment;
10
+ 'getAvailableBalanceForPool()': FunctionFragment;
11
11
  'initialize(address)': FunctionFragment;
12
12
  'pool()': FunctionFragment;
13
13
  'poolConfig()': FunctionFragment;
14
14
  'poolFeeManager()': FunctionFragment;
15
+ 'proxiableUUID()': FunctionFragment;
15
16
  'resetUnprocessedProfit()': FunctionFragment;
16
17
  'setPoolConfig(address)': FunctionFragment;
17
- 'totalLiquidity()': FunctionFragment;
18
+ 'totalBalance()': FunctionFragment;
18
19
  'underlyingToken()': FunctionFragment;
19
20
  'unprocessedTrancheProfit(address)': FunctionFragment;
20
21
  'updatePoolConfigData()': FunctionFragment;
22
+ 'upgradeTo(address)': FunctionFragment;
23
+ 'upgradeToAndCall(address,bytes)': FunctionFragment;
21
24
  'withdraw(address,uint256)': FunctionFragment;
22
25
  };
23
- getFunction(nameOrSignatureOrTopic: 'addUnprocessedProfit' | 'deposit' | 'getAvailableLiquidityForFees' | 'getPoolLiquidity' | 'initialize' | 'pool' | 'poolConfig' | 'poolFeeManager' | 'resetUnprocessedProfit' | 'setPoolConfig' | 'totalLiquidity' | 'underlyingToken' | 'unprocessedTrancheProfit' | 'updatePoolConfigData' | 'withdraw'): FunctionFragment;
26
+ getFunction(nameOrSignatureOrTopic: 'addUnprocessedProfit' | 'deposit' | 'getAvailableBalanceForFees' | 'getAvailableBalanceForPool' | 'initialize' | 'pool' | 'poolConfig' | 'poolFeeManager' | 'proxiableUUID' | 'resetUnprocessedProfit' | 'setPoolConfig' | 'totalBalance' | 'underlyingToken' | 'unprocessedTrancheProfit' | 'updatePoolConfigData' | 'upgradeTo' | 'upgradeToAndCall' | 'withdraw'): FunctionFragment;
24
27
  encodeFunctionData(functionFragment: 'addUnprocessedProfit', values: [PromiseOrValue<string>, PromiseOrValue<BigNumberish>]): string;
25
28
  encodeFunctionData(functionFragment: 'deposit', values: [PromiseOrValue<string>, PromiseOrValue<BigNumberish>]): string;
26
- encodeFunctionData(functionFragment: 'getAvailableLiquidityForFees', values?: undefined): string;
27
- encodeFunctionData(functionFragment: 'getPoolLiquidity', values?: undefined): string;
29
+ encodeFunctionData(functionFragment: 'getAvailableBalanceForFees', values?: undefined): string;
30
+ encodeFunctionData(functionFragment: 'getAvailableBalanceForPool', values?: undefined): string;
28
31
  encodeFunctionData(functionFragment: 'initialize', values: [PromiseOrValue<string>]): string;
29
32
  encodeFunctionData(functionFragment: 'pool', values?: undefined): string;
30
33
  encodeFunctionData(functionFragment: 'poolConfig', values?: undefined): string;
31
34
  encodeFunctionData(functionFragment: 'poolFeeManager', values?: undefined): string;
35
+ encodeFunctionData(functionFragment: 'proxiableUUID', values?: undefined): string;
32
36
  encodeFunctionData(functionFragment: 'resetUnprocessedProfit', values?: undefined): string;
33
37
  encodeFunctionData(functionFragment: 'setPoolConfig', values: [PromiseOrValue<string>]): string;
34
- encodeFunctionData(functionFragment: 'totalLiquidity', values?: undefined): string;
38
+ encodeFunctionData(functionFragment: 'totalBalance', values?: undefined): string;
35
39
  encodeFunctionData(functionFragment: 'underlyingToken', values?: undefined): string;
36
40
  encodeFunctionData(functionFragment: 'unprocessedTrancheProfit', values: [PromiseOrValue<string>]): string;
37
41
  encodeFunctionData(functionFragment: 'updatePoolConfigData', values?: undefined): string;
42
+ encodeFunctionData(functionFragment: 'upgradeTo', values: [PromiseOrValue<string>]): string;
43
+ encodeFunctionData(functionFragment: 'upgradeToAndCall', values: [PromiseOrValue<string>, PromiseOrValue<BytesLike>]): string;
38
44
  encodeFunctionData(functionFragment: 'withdraw', values: [PromiseOrValue<string>, PromiseOrValue<BigNumberish>]): string;
39
45
  decodeFunctionResult(functionFragment: 'addUnprocessedProfit', data: BytesLike): Result;
40
46
  decodeFunctionResult(functionFragment: 'deposit', data: BytesLike): Result;
41
- decodeFunctionResult(functionFragment: 'getAvailableLiquidityForFees', data: BytesLike): Result;
42
- decodeFunctionResult(functionFragment: 'getPoolLiquidity', data: BytesLike): Result;
47
+ decodeFunctionResult(functionFragment: 'getAvailableBalanceForFees', data: BytesLike): Result;
48
+ decodeFunctionResult(functionFragment: 'getAvailableBalanceForPool', data: BytesLike): Result;
43
49
  decodeFunctionResult(functionFragment: 'initialize', data: BytesLike): Result;
44
50
  decodeFunctionResult(functionFragment: 'pool', data: BytesLike): Result;
45
51
  decodeFunctionResult(functionFragment: 'poolConfig', data: BytesLike): Result;
46
52
  decodeFunctionResult(functionFragment: 'poolFeeManager', data: BytesLike): Result;
53
+ decodeFunctionResult(functionFragment: 'proxiableUUID', data: BytesLike): Result;
47
54
  decodeFunctionResult(functionFragment: 'resetUnprocessedProfit', data: BytesLike): Result;
48
55
  decodeFunctionResult(functionFragment: 'setPoolConfig', data: BytesLike): Result;
49
- decodeFunctionResult(functionFragment: 'totalLiquidity', data: BytesLike): Result;
56
+ decodeFunctionResult(functionFragment: 'totalBalance', data: BytesLike): Result;
50
57
  decodeFunctionResult(functionFragment: 'underlyingToken', data: BytesLike): Result;
51
58
  decodeFunctionResult(functionFragment: 'unprocessedTrancheProfit', data: BytesLike): Result;
52
59
  decodeFunctionResult(functionFragment: 'updatePoolConfigData', data: BytesLike): Result;
60
+ decodeFunctionResult(functionFragment: 'upgradeTo', data: BytesLike): Result;
61
+ decodeFunctionResult(functionFragment: 'upgradeToAndCall', data: BytesLike): Result;
53
62
  decodeFunctionResult(functionFragment: 'withdraw', data: BytesLike): Result;
54
63
  events: {
64
+ 'AdminChanged(address,address)': EventFragment;
65
+ 'BeaconUpgraded(address)': EventFragment;
55
66
  'Initialized(uint8)': EventFragment;
56
67
  'PoolConfigCacheUpdated(address)': EventFragment;
57
68
  'PoolConfigChanged(address,address)': EventFragment;
69
+ 'Upgraded(address)': EventFragment;
58
70
  };
71
+ getEvent(nameOrSignatureOrTopic: 'AdminChanged'): EventFragment;
72
+ getEvent(nameOrSignatureOrTopic: 'BeaconUpgraded'): EventFragment;
59
73
  getEvent(nameOrSignatureOrTopic: 'Initialized'): EventFragment;
60
74
  getEvent(nameOrSignatureOrTopic: 'PoolConfigCacheUpdated'): EventFragment;
61
75
  getEvent(nameOrSignatureOrTopic: 'PoolConfigChanged'): EventFragment;
76
+ getEvent(nameOrSignatureOrTopic: 'Upgraded'): EventFragment;
62
77
  }
78
+ export interface AdminChangedEventObject {
79
+ previousAdmin: string;
80
+ newAdmin: string;
81
+ }
82
+ export type AdminChangedEvent = TypedEvent<[
83
+ string,
84
+ string
85
+ ], AdminChangedEventObject>;
86
+ export type AdminChangedEventFilter = TypedEventFilter<AdminChangedEvent>;
87
+ export interface BeaconUpgradedEventObject {
88
+ beacon: string;
89
+ }
90
+ export type BeaconUpgradedEvent = TypedEvent<[
91
+ string
92
+ ], BeaconUpgradedEventObject>;
93
+ export type BeaconUpgradedEventFilter = TypedEventFilter<BeaconUpgradedEvent>;
63
94
  export interface InitializedEventObject {
64
95
  version: number;
65
96
  }
@@ -81,6 +112,11 @@ export type PoolConfigChangedEvent = TypedEvent<[
81
112
  string
82
113
  ], PoolConfigChangedEventObject>;
83
114
  export type PoolConfigChangedEventFilter = TypedEventFilter<PoolConfigChangedEvent>;
115
+ export interface UpgradedEventObject {
116
+ implementation: string;
117
+ }
118
+ export type UpgradedEvent = TypedEvent<[string], UpgradedEventObject>;
119
+ export type UpgradedEventFilter = TypedEventFilter<UpgradedEvent>;
84
120
  export interface PoolSafe extends BaseContract {
85
121
  connect(signerOrProvider: Signer | Provider | string): this;
86
122
  attach(addressOrName: string): this;
@@ -102,11 +138,11 @@ export interface PoolSafe extends BaseContract {
102
138
  deposit(from: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
103
139
  from?: PromiseOrValue<string>;
104
140
  }): Promise<ContractTransaction>;
105
- getAvailableLiquidityForFees(overrides?: CallOverrides): Promise<[BigNumber] & {
106
- liquidity: BigNumber;
141
+ getAvailableBalanceForFees(overrides?: CallOverrides): Promise<[BigNumber] & {
142
+ availableBalance: BigNumber;
107
143
  }>;
108
- getPoolLiquidity(overrides?: CallOverrides): Promise<[BigNumber] & {
109
- liquidity: BigNumber;
144
+ getAvailableBalanceForPool(overrides?: CallOverrides): Promise<[BigNumber] & {
145
+ availableBalance: BigNumber;
110
146
  }>;
111
147
  initialize(_poolConfig: PromiseOrValue<string>, overrides?: Overrides & {
112
148
  from?: PromiseOrValue<string>;
@@ -114,13 +150,14 @@ export interface PoolSafe extends BaseContract {
114
150
  pool(overrides?: CallOverrides): Promise<[string]>;
115
151
  poolConfig(overrides?: CallOverrides): Promise<[string]>;
116
152
  poolFeeManager(overrides?: CallOverrides): Promise<[string]>;
153
+ proxiableUUID(overrides?: CallOverrides): Promise<[string]>;
117
154
  resetUnprocessedProfit(overrides?: Overrides & {
118
155
  from?: PromiseOrValue<string>;
119
156
  }): Promise<ContractTransaction>;
120
157
  setPoolConfig(_poolConfig: PromiseOrValue<string>, overrides?: Overrides & {
121
158
  from?: PromiseOrValue<string>;
122
159
  }): Promise<ContractTransaction>;
123
- totalLiquidity(overrides?: CallOverrides): Promise<[BigNumber] & {
160
+ totalBalance(overrides?: CallOverrides): Promise<[BigNumber] & {
124
161
  liquidity: BigNumber;
125
162
  }>;
126
163
  underlyingToken(overrides?: CallOverrides): Promise<[string]>;
@@ -128,6 +165,12 @@ export interface PoolSafe extends BaseContract {
128
165
  updatePoolConfigData(overrides?: Overrides & {
129
166
  from?: PromiseOrValue<string>;
130
167
  }): Promise<ContractTransaction>;
168
+ upgradeTo(newImplementation: PromiseOrValue<string>, overrides?: Overrides & {
169
+ from?: PromiseOrValue<string>;
170
+ }): Promise<ContractTransaction>;
171
+ upgradeToAndCall(newImplementation: PromiseOrValue<string>, data: PromiseOrValue<BytesLike>, overrides?: PayableOverrides & {
172
+ from?: PromiseOrValue<string>;
173
+ }): Promise<ContractTransaction>;
131
174
  withdraw(to: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
132
175
  from?: PromiseOrValue<string>;
133
176
  }): Promise<ContractTransaction>;
@@ -138,53 +181,69 @@ export interface PoolSafe extends BaseContract {
138
181
  deposit(from: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
139
182
  from?: PromiseOrValue<string>;
140
183
  }): Promise<ContractTransaction>;
141
- getAvailableLiquidityForFees(overrides?: CallOverrides): Promise<BigNumber>;
142
- getPoolLiquidity(overrides?: CallOverrides): Promise<BigNumber>;
184
+ getAvailableBalanceForFees(overrides?: CallOverrides): Promise<BigNumber>;
185
+ getAvailableBalanceForPool(overrides?: CallOverrides): Promise<BigNumber>;
143
186
  initialize(_poolConfig: PromiseOrValue<string>, overrides?: Overrides & {
144
187
  from?: PromiseOrValue<string>;
145
188
  }): Promise<ContractTransaction>;
146
189
  pool(overrides?: CallOverrides): Promise<string>;
147
190
  poolConfig(overrides?: CallOverrides): Promise<string>;
148
191
  poolFeeManager(overrides?: CallOverrides): Promise<string>;
192
+ proxiableUUID(overrides?: CallOverrides): Promise<string>;
149
193
  resetUnprocessedProfit(overrides?: Overrides & {
150
194
  from?: PromiseOrValue<string>;
151
195
  }): Promise<ContractTransaction>;
152
196
  setPoolConfig(_poolConfig: PromiseOrValue<string>, overrides?: Overrides & {
153
197
  from?: PromiseOrValue<string>;
154
198
  }): Promise<ContractTransaction>;
155
- totalLiquidity(overrides?: CallOverrides): Promise<BigNumber>;
199
+ totalBalance(overrides?: CallOverrides): Promise<BigNumber>;
156
200
  underlyingToken(overrides?: CallOverrides): Promise<string>;
157
201
  unprocessedTrancheProfit(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
158
202
  updatePoolConfigData(overrides?: Overrides & {
159
203
  from?: PromiseOrValue<string>;
160
204
  }): Promise<ContractTransaction>;
205
+ upgradeTo(newImplementation: PromiseOrValue<string>, overrides?: Overrides & {
206
+ from?: PromiseOrValue<string>;
207
+ }): Promise<ContractTransaction>;
208
+ upgradeToAndCall(newImplementation: PromiseOrValue<string>, data: PromiseOrValue<BytesLike>, overrides?: PayableOverrides & {
209
+ from?: PromiseOrValue<string>;
210
+ }): Promise<ContractTransaction>;
161
211
  withdraw(to: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
162
212
  from?: PromiseOrValue<string>;
163
213
  }): Promise<ContractTransaction>;
164
214
  callStatic: {
165
215
  addUnprocessedProfit(tranche: PromiseOrValue<string>, profit: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>;
166
216
  deposit(from: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>;
167
- getAvailableLiquidityForFees(overrides?: CallOverrides): Promise<BigNumber>;
168
- getPoolLiquidity(overrides?: CallOverrides): Promise<BigNumber>;
217
+ getAvailableBalanceForFees(overrides?: CallOverrides): Promise<BigNumber>;
218
+ getAvailableBalanceForPool(overrides?: CallOverrides): Promise<BigNumber>;
169
219
  initialize(_poolConfig: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>;
170
220
  pool(overrides?: CallOverrides): Promise<string>;
171
221
  poolConfig(overrides?: CallOverrides): Promise<string>;
172
222
  poolFeeManager(overrides?: CallOverrides): Promise<string>;
223
+ proxiableUUID(overrides?: CallOverrides): Promise<string>;
173
224
  resetUnprocessedProfit(overrides?: CallOverrides): Promise<void>;
174
225
  setPoolConfig(_poolConfig: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>;
175
- totalLiquidity(overrides?: CallOverrides): Promise<BigNumber>;
226
+ totalBalance(overrides?: CallOverrides): Promise<BigNumber>;
176
227
  underlyingToken(overrides?: CallOverrides): Promise<string>;
177
228
  unprocessedTrancheProfit(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
178
229
  updatePoolConfigData(overrides?: CallOverrides): Promise<void>;
230
+ upgradeTo(newImplementation: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>;
231
+ upgradeToAndCall(newImplementation: PromiseOrValue<string>, data: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<void>;
179
232
  withdraw(to: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>;
180
233
  };
181
234
  filters: {
235
+ 'AdminChanged(address,address)'(previousAdmin?: null, newAdmin?: null): AdminChangedEventFilter;
236
+ AdminChanged(previousAdmin?: null, newAdmin?: null): AdminChangedEventFilter;
237
+ 'BeaconUpgraded(address)'(beacon?: PromiseOrValue<string> | null): BeaconUpgradedEventFilter;
238
+ BeaconUpgraded(beacon?: PromiseOrValue<string> | null): BeaconUpgradedEventFilter;
182
239
  'Initialized(uint8)'(version?: null): InitializedEventFilter;
183
240
  Initialized(version?: null): InitializedEventFilter;
184
241
  'PoolConfigCacheUpdated(address)'(poolConfig?: PromiseOrValue<string> | null): PoolConfigCacheUpdatedEventFilter;
185
242
  PoolConfigCacheUpdated(poolConfig?: PromiseOrValue<string> | null): PoolConfigCacheUpdatedEventFilter;
186
243
  'PoolConfigChanged(address,address)'(newPoolConfig?: PromiseOrValue<string> | null, oldPoolConfig?: PromiseOrValue<string> | null): PoolConfigChangedEventFilter;
187
244
  PoolConfigChanged(newPoolConfig?: PromiseOrValue<string> | null, oldPoolConfig?: PromiseOrValue<string> | null): PoolConfigChangedEventFilter;
245
+ 'Upgraded(address)'(implementation?: PromiseOrValue<string> | null): UpgradedEventFilter;
246
+ Upgraded(implementation?: PromiseOrValue<string> | null): UpgradedEventFilter;
188
247
  };
189
248
  estimateGas: {
190
249
  addUnprocessedProfit(tranche: PromiseOrValue<string>, profit: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
@@ -193,26 +252,33 @@ export interface PoolSafe extends BaseContract {
193
252
  deposit(from: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
194
253
  from?: PromiseOrValue<string>;
195
254
  }): Promise<BigNumber>;
196
- getAvailableLiquidityForFees(overrides?: CallOverrides): Promise<BigNumber>;
197
- getPoolLiquidity(overrides?: CallOverrides): Promise<BigNumber>;
255
+ getAvailableBalanceForFees(overrides?: CallOverrides): Promise<BigNumber>;
256
+ getAvailableBalanceForPool(overrides?: CallOverrides): Promise<BigNumber>;
198
257
  initialize(_poolConfig: PromiseOrValue<string>, overrides?: Overrides & {
199
258
  from?: PromiseOrValue<string>;
200
259
  }): Promise<BigNumber>;
201
260
  pool(overrides?: CallOverrides): Promise<BigNumber>;
202
261
  poolConfig(overrides?: CallOverrides): Promise<BigNumber>;
203
262
  poolFeeManager(overrides?: CallOverrides): Promise<BigNumber>;
263
+ proxiableUUID(overrides?: CallOverrides): Promise<BigNumber>;
204
264
  resetUnprocessedProfit(overrides?: Overrides & {
205
265
  from?: PromiseOrValue<string>;
206
266
  }): Promise<BigNumber>;
207
267
  setPoolConfig(_poolConfig: PromiseOrValue<string>, overrides?: Overrides & {
208
268
  from?: PromiseOrValue<string>;
209
269
  }): Promise<BigNumber>;
210
- totalLiquidity(overrides?: CallOverrides): Promise<BigNumber>;
270
+ totalBalance(overrides?: CallOverrides): Promise<BigNumber>;
211
271
  underlyingToken(overrides?: CallOverrides): Promise<BigNumber>;
212
272
  unprocessedTrancheProfit(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
213
273
  updatePoolConfigData(overrides?: Overrides & {
214
274
  from?: PromiseOrValue<string>;
215
275
  }): Promise<BigNumber>;
276
+ upgradeTo(newImplementation: PromiseOrValue<string>, overrides?: Overrides & {
277
+ from?: PromiseOrValue<string>;
278
+ }): Promise<BigNumber>;
279
+ upgradeToAndCall(newImplementation: PromiseOrValue<string>, data: PromiseOrValue<BytesLike>, overrides?: PayableOverrides & {
280
+ from?: PromiseOrValue<string>;
281
+ }): Promise<BigNumber>;
216
282
  withdraw(to: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
217
283
  from?: PromiseOrValue<string>;
218
284
  }): Promise<BigNumber>;
@@ -224,26 +290,33 @@ export interface PoolSafe extends BaseContract {
224
290
  deposit(from: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
225
291
  from?: PromiseOrValue<string>;
226
292
  }): Promise<PopulatedTransaction>;
227
- getAvailableLiquidityForFees(overrides?: CallOverrides): Promise<PopulatedTransaction>;
228
- getPoolLiquidity(overrides?: CallOverrides): Promise<PopulatedTransaction>;
293
+ getAvailableBalanceForFees(overrides?: CallOverrides): Promise<PopulatedTransaction>;
294
+ getAvailableBalanceForPool(overrides?: CallOverrides): Promise<PopulatedTransaction>;
229
295
  initialize(_poolConfig: PromiseOrValue<string>, overrides?: Overrides & {
230
296
  from?: PromiseOrValue<string>;
231
297
  }): Promise<PopulatedTransaction>;
232
298
  pool(overrides?: CallOverrides): Promise<PopulatedTransaction>;
233
299
  poolConfig(overrides?: CallOverrides): Promise<PopulatedTransaction>;
234
300
  poolFeeManager(overrides?: CallOverrides): Promise<PopulatedTransaction>;
301
+ proxiableUUID(overrides?: CallOverrides): Promise<PopulatedTransaction>;
235
302
  resetUnprocessedProfit(overrides?: Overrides & {
236
303
  from?: PromiseOrValue<string>;
237
304
  }): Promise<PopulatedTransaction>;
238
305
  setPoolConfig(_poolConfig: PromiseOrValue<string>, overrides?: Overrides & {
239
306
  from?: PromiseOrValue<string>;
240
307
  }): Promise<PopulatedTransaction>;
241
- totalLiquidity(overrides?: CallOverrides): Promise<PopulatedTransaction>;
308
+ totalBalance(overrides?: CallOverrides): Promise<PopulatedTransaction>;
242
309
  underlyingToken(overrides?: CallOverrides): Promise<PopulatedTransaction>;
243
310
  unprocessedTrancheProfit(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
244
311
  updatePoolConfigData(overrides?: Overrides & {
245
312
  from?: PromiseOrValue<string>;
246
313
  }): Promise<PopulatedTransaction>;
314
+ upgradeTo(newImplementation: PromiseOrValue<string>, overrides?: Overrides & {
315
+ from?: PromiseOrValue<string>;
316
+ }): Promise<PopulatedTransaction>;
317
+ upgradeToAndCall(newImplementation: PromiseOrValue<string>, data: PromiseOrValue<BytesLike>, overrides?: PayableOverrides & {
318
+ from?: PromiseOrValue<string>;
319
+ }): Promise<PopulatedTransaction>;
247
320
  withdraw(to: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
248
321
  from?: PromiseOrValue<string>;
249
322
  }): Promise<PopulatedTransaction>;
@@ -4,20 +4,41 @@ import type { PoolSafe, PoolSafeInterface } from '../PoolSafe';
4
4
  export declare class PoolSafe__factory {
5
5
  static readonly abi: readonly [{
6
6
  readonly inputs: readonly [];
7
- readonly name: "notAuthorizedCaller";
7
+ readonly name: "AuthorizedContractCallerRequired";
8
8
  readonly type: "error";
9
9
  }, {
10
10
  readonly inputs: readonly [];
11
- readonly name: "notPool";
11
+ readonly name: "TrancheRequired";
12
12
  readonly type: "error";
13
13
  }, {
14
14
  readonly inputs: readonly [];
15
- readonly name: "todo";
15
+ readonly name: "ZeroAddressProvided";
16
16
  readonly type: "error";
17
17
  }, {
18
- readonly inputs: readonly [];
19
- readonly name: "zeroAddressProvided";
20
- readonly type: "error";
18
+ readonly anonymous: false;
19
+ readonly inputs: readonly [{
20
+ readonly indexed: false;
21
+ readonly internalType: "address";
22
+ readonly name: "previousAdmin";
23
+ readonly type: "address";
24
+ }, {
25
+ readonly indexed: false;
26
+ readonly internalType: "address";
27
+ readonly name: "newAdmin";
28
+ readonly type: "address";
29
+ }];
30
+ readonly name: "AdminChanged";
31
+ readonly type: "event";
32
+ }, {
33
+ readonly anonymous: false;
34
+ readonly inputs: readonly [{
35
+ readonly indexed: true;
36
+ readonly internalType: "address";
37
+ readonly name: "beacon";
38
+ readonly type: "address";
39
+ }];
40
+ readonly name: "BeaconUpgraded";
41
+ readonly type: "event";
21
42
  }, {
22
43
  readonly anonymous: false;
23
44
  readonly inputs: readonly [{
@@ -53,6 +74,16 @@ export declare class PoolSafe__factory {
53
74
  }];
54
75
  readonly name: "PoolConfigChanged";
55
76
  readonly type: "event";
77
+ }, {
78
+ readonly anonymous: false;
79
+ readonly inputs: readonly [{
80
+ readonly indexed: true;
81
+ readonly internalType: "address";
82
+ readonly name: "implementation";
83
+ readonly type: "address";
84
+ }];
85
+ readonly name: "Upgraded";
86
+ readonly type: "event";
56
87
  }, {
57
88
  readonly inputs: readonly [{
58
89
  readonly internalType: "address";
@@ -83,20 +114,20 @@ export declare class PoolSafe__factory {
83
114
  readonly type: "function";
84
115
  }, {
85
116
  readonly inputs: readonly [];
86
- readonly name: "getAvailableLiquidityForFees";
117
+ readonly name: "getAvailableBalanceForFees";
87
118
  readonly outputs: readonly [{
88
119
  readonly internalType: "uint256";
89
- readonly name: "liquidity";
120
+ readonly name: "availableBalance";
90
121
  readonly type: "uint256";
91
122
  }];
92
123
  readonly stateMutability: "view";
93
124
  readonly type: "function";
94
125
  }, {
95
126
  readonly inputs: readonly [];
96
- readonly name: "getPoolLiquidity";
127
+ readonly name: "getAvailableBalanceForPool";
97
128
  readonly outputs: readonly [{
98
129
  readonly internalType: "uint256";
99
- readonly name: "liquidity";
130
+ readonly name: "availableBalance";
100
131
  readonly type: "uint256";
101
132
  }];
102
133
  readonly stateMutability: "view";
@@ -141,6 +172,16 @@ export declare class PoolSafe__factory {
141
172
  }];
142
173
  readonly stateMutability: "view";
143
174
  readonly type: "function";
175
+ }, {
176
+ readonly inputs: readonly [];
177
+ readonly name: "proxiableUUID";
178
+ readonly outputs: readonly [{
179
+ readonly internalType: "bytes32";
180
+ readonly name: "";
181
+ readonly type: "bytes32";
182
+ }];
183
+ readonly stateMutability: "view";
184
+ readonly type: "function";
144
185
  }, {
145
186
  readonly inputs: readonly [];
146
187
  readonly name: "resetUnprocessedProfit";
@@ -159,7 +200,7 @@ export declare class PoolSafe__factory {
159
200
  readonly type: "function";
160
201
  }, {
161
202
  readonly inputs: readonly [];
162
- readonly name: "totalLiquidity";
203
+ readonly name: "totalBalance";
163
204
  readonly outputs: readonly [{
164
205
  readonly internalType: "uint256";
165
206
  readonly name: "liquidity";
@@ -197,6 +238,30 @@ export declare class PoolSafe__factory {
197
238
  readonly outputs: readonly [];
198
239
  readonly stateMutability: "nonpayable";
199
240
  readonly type: "function";
241
+ }, {
242
+ readonly inputs: readonly [{
243
+ readonly internalType: "address";
244
+ readonly name: "newImplementation";
245
+ readonly type: "address";
246
+ }];
247
+ readonly name: "upgradeTo";
248
+ readonly outputs: readonly [];
249
+ readonly stateMutability: "nonpayable";
250
+ readonly type: "function";
251
+ }, {
252
+ readonly inputs: readonly [{
253
+ readonly internalType: "address";
254
+ readonly name: "newImplementation";
255
+ readonly type: "address";
256
+ }, {
257
+ readonly internalType: "bytes";
258
+ readonly name: "data";
259
+ readonly type: "bytes";
260
+ }];
261
+ readonly name: "upgradeToAndCall";
262
+ readonly outputs: readonly [];
263
+ readonly stateMutability: "payable";
264
+ readonly type: "function";
200
265
  }, {
201
266
  readonly inputs: readonly [{
202
267
  readonly internalType: "address";