@gearbox-protocol/sdk 1.20.21 → 1.20.23
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/README.md +4 -0
- package/lib/apy/convexAPY.d.ts +2 -2
- package/lib/apy/curveAPY.d.ts +2 -2
- package/lib/apy/curveAPY.js +4 -2
- package/lib/apy/index.d.ts +3 -3
- package/lib/apy/lidoAPY.js +1 -1
- package/lib/apy/yearnAPY.d.ts +1 -1
- package/lib/apy/yearnAPY.js +1 -1
- package/lib/contracts/adapters.d.ts +2 -1
- package/lib/contracts/adapters.js +1 -0
- package/lib/contracts/contracts.d.ts +21 -17
- package/lib/contracts/contracts.js +27 -8
- package/lib/contracts/contractsRegister.d.ts +1 -1
- package/lib/contracts/protocols.d.ts +2 -1
- package/lib/contracts/protocols.js +5 -0
- package/lib/core/assets.d.ts +1 -1
- package/lib/core/chains.d.ts +1 -1
- package/lib/core/chains.js +1 -1
- package/lib/core/creditSession.d.ts +6 -5
- package/lib/core/creditSession.js +1 -0
- package/lib/core/errors.d.ts +1 -1
- package/lib/core/eventOrTx.d.ts +4 -4
- package/lib/core/events.d.ts +2 -2
- package/lib/core/history.d.ts +2 -2
- package/lib/core/pool/data.js +1 -1
- package/lib/core/pool/operation.d.ts +1 -1
- package/lib/core/rewardClaimer.js +1 -1
- package/lib/core/rewardConvex.js +1 -1
- package/lib/core/strategy.d.ts +1 -1
- package/lib/core/trade.d.ts +1 -1
- package/lib/core/trade.js +1 -1
- package/lib/core/transactions.d.ts +1 -1
- package/lib/core/wcOperation/index.d.ts +2 -2
- package/lib/core/wcOperation/operations.d.ts +5 -5
- package/lib/oracles/oracles.d.ts +13 -2
- package/lib/oracles/oracles.js +5 -0
- package/lib/oracles/priceFeeds.js +56 -0
- package/lib/pathfinder/pathOptions.d.ts +1 -1
- package/lib/pathfinder/pathfinder.js +1 -1
- package/lib/pathfinder/tradeTypes.d.ts +13 -2
- package/lib/pathfinder/tradeTypes.js +2 -0
- package/lib/payload/creditAccount.d.ts +2 -2
- package/lib/payload/creditManager.d.ts +1 -1
- package/lib/payload/creditSession.d.ts +1 -0
- package/lib/payload/pool.d.ts +1 -1
- package/lib/tokens/balancer.d.ts +22 -0
- package/lib/tokens/balancer.js +53 -0
- package/lib/tokens/convex.d.ts +5 -5
- package/lib/tokens/convex.js +42 -0
- package/lib/tokens/curveLP.d.ts +4 -4
- package/lib/tokens/curveLP.js +23 -0
- package/lib/tokens/decimals.js +7 -0
- package/lib/tokens/gear.d.ts +4 -4
- package/lib/tokens/normal.d.ts +2 -2
- package/lib/tokens/normal.js +35 -0
- package/lib/tokens/token.d.ts +5 -4
- package/lib/tokens/token.js +18 -1
- package/lib/tokens/tokenData.d.ts +1 -1
- package/lib/tokens/tokenType.d.ts +2 -1
- package/lib/tokens/tokenType.js +1 -0
- package/lib/tokens/yearn.d.ts +4 -4
- package/lib/types/@chainlink/contracts/src/v0.8/interfaces/AggregatorInterface.d.ts +4 -4
- package/lib/types/@chainlink/contracts/src/v0.8/interfaces/AggregatorV2V3Interface.d.ts +4 -4
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/IACL.sol/IACL.d.ts +8 -8
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/IACL.sol/IACLEvents.d.ts +8 -8
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/IAccountFactory.sol/IAccountFactory.d.ts +10 -10
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/IAccountFactory.sol/IAccountFactoryEvents.d.ts +10 -10
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/IAddressProvider.sol/IAddressProvider.d.ts +2 -2
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/IAddressProvider.sol/IAddressProviderEvents.d.ts +2 -2
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/IAirdropDistributor.sol/IAirdropDistributor.d.ts +6 -6
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/IAirdropDistributor.sol/IAirdropDistributorEvents.d.ts +6 -6
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/IContractsRegister.sol/IContractsRegister.d.ts +4 -4
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/IContractsRegister.sol/IContractsRegisterEvents.d.ts +4 -4
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/ICreditConfigurator.sol/ICreditConfigurator.d.ts +38 -38
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/ICreditConfigurator.sol/ICreditConfiguratorEvents.d.ts +38 -38
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/ICreditFacade.sol/ICreditFacade.d.ts +28 -28
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/ICreditFacade.sol/ICreditFacadeEvents.d.ts +26 -26
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/ICreditFacade.sol/ICreditFacadeExtended.d.ts +2 -2
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/ICreditManagerV2.sol/ICreditManagerV2.d.ts +4 -4
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/ICreditManagerV2.sol/ICreditManagerV2Events.d.ts +4 -4
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/IDataCompressor.sol/IDataCompressor.d.ts +10 -10
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/IDegenDistributor.sol/IDegenDistributor.d.ts +4 -4
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/IDegenDistributor.sol/IDegenDistributorEvents.d.ts +4 -4
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/IDegenNFT.sol/IDegenNFT.d.ts +12 -12
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/IDegenNFT.sol/IDegenNFTEvents.d.ts +6 -6
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/IDieselToken.sol/IDieselToken.d.ts +4 -4
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/ILPPriceFeed.sol/ILPPriceFeed.d.ts +2 -2
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/ILPPriceFeed.sol/ILPPriceFeedEvents.d.ts +2 -2
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/IPhantomERC20.d.ts +4 -4
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/IPoolService.sol/IPoolService.d.ts +20 -20
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/IPoolService.sol/IPoolServiceEvents.d.ts +20 -20
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/IPriceOracle.sol/IPriceOracleV2.d.ts +2 -2
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/IPriceOracle.sol/IPriceOracleV2Events.d.ts +2 -2
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/IPriceOracle.sol/IPriceOracleV2Ext.d.ts +2 -2
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/V1/ICreditFilter.d.ts +16 -16
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/V1/ICreditManager.d.ts +20 -20
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/adapters/IUniversalAdapter.sol/IUniversalAdapter.d.ts +2 -2
- package/lib/types/@gearbox-protocol/core-v2/contracts/pool/PoolService.d.ts +24 -24
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/integrations/convex/IConvexToken.d.ts +4 -4
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/integrations/lido/IstETH.sol/IstETH.d.ts +4 -4
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/integrations/lido/IstETH.sol/IstETHGetters.d.ts +4 -4
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/integrations/lido/IwstETH.sol/IwstETH.d.ts +4 -4
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/integrations/lido/IwstETH.sol/IwstETHGetters.d.ts +4 -4
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/integrations/yearn/IYVault.d.ts +4 -4
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/interfaces/lido/ILidoV1Adapter.sol/ILidoV1Adapter.d.ts +2 -2
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/interfaces/lido/ILidoV1Adapter.sol/ILidoV1AdapterEvents.d.ts +2 -2
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/interfaces/yearn/IYearnV2Adapter.d.ts +4 -4
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/test/mocks/integrations/LidoMock.sol/ILidoMockEvents.d.ts +2 -2
- package/lib/types/@gearbox-protocol/router/contracts/interfaces/IClosePathResolver.d.ts +10 -10
- package/lib/types/@gearbox-protocol/router/contracts/interfaces/IDepositor.sol/IDepositor.d.ts +8 -8
- package/lib/types/@gearbox-protocol/router/contracts/interfaces/IDepositor.sol/IDepositorOptions.d.ts +8 -8
- package/lib/types/@gearbox-protocol/router/contracts/interfaces/ILPWorker.sol/ILPWorker.d.ts +8 -8
- package/lib/types/@gearbox-protocol/router/contracts/interfaces/ILPWorker.sol/ILPWorkerOptions.d.ts +8 -8
- package/lib/types/@gearbox-protocol/router/contracts/interfaces/IPathResolver.d.ts +8 -8
- package/lib/types/@gearbox-protocol/router/contracts/interfaces/IRouter.d.ts +16 -16
- package/lib/types/@gearbox-protocol/router/contracts/interfaces/ISwapAggregator.d.ts +12 -12
- package/lib/types/@gearbox-protocol/router/contracts/interfaces/ISwapper.d.ts +6 -6
- package/lib/types/@gearbox-protocol/router/contracts/interfaces/IWithdrawer.sol/IWithdrawer.d.ts +8 -8
- package/lib/types/@gearbox-protocol/router/contracts/interfaces/IWithdrawer.sol/IWithdrawerOptions.d.ts +10 -10
- package/lib/types/@gearbox-protocol/router/contracts/interfaces/IWrapper.d.ts +6 -6
- package/lib/types/@openzeppelin/contracts/token/ERC20/IERC20.d.ts +4 -4
- package/lib/types/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.d.ts +4 -4
- package/lib/types/@openzeppelin/contracts/token/ERC721/IERC721.d.ts +6 -6
- package/lib/types/@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.d.ts +6 -6
- package/lib/types/common.d.ts +4 -4
- package/lib/types/contracts/ITokenDistributor.sol/ITokenDistributor.d.ts +8 -8
- package/lib/types/contracts/ITokenDistributor.sol/ITokenDistributorEvents.d.ts +8 -8
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/pool/PoolService__factory.d.ts +1 -1
- package/lib/types/factories/contracts/support/MultiCall.sol/Multicall2__factory.d.ts +1 -1
- package/lib/utils/mappers.d.ts +1 -1
- package/lib/utils/multicall.js +1 -1
- package/lib/utils/repeater.js +1 -1
- package/lib/utils/types.d.ts +5 -5
- package/lib/watchers/creditAccountWatcher.d.ts +1 -1
- package/lib/watchers/creditAccountWatcher.js +1 -1
- package/lib/watchers/creditManagerWatcher.js +1 -1
- package/package.json +1 -1
|
@@ -134,68 +134,68 @@ export interface ICreditConfiguratorInterface extends utils.Interface {
|
|
|
134
134
|
export interface AdapterForbiddenEventObject {
|
|
135
135
|
adapter: string;
|
|
136
136
|
}
|
|
137
|
-
export
|
|
137
|
+
export type AdapterForbiddenEvent = TypedEvent<[
|
|
138
138
|
string
|
|
139
139
|
], AdapterForbiddenEventObject>;
|
|
140
|
-
export
|
|
140
|
+
export type AdapterForbiddenEventFilter = TypedEventFilter<AdapterForbiddenEvent>;
|
|
141
141
|
export interface AddedToUpgradeableEventObject {
|
|
142
142
|
arg0: string;
|
|
143
143
|
}
|
|
144
|
-
export
|
|
144
|
+
export type AddedToUpgradeableEvent = TypedEvent<[
|
|
145
145
|
string
|
|
146
146
|
], AddedToUpgradeableEventObject>;
|
|
147
|
-
export
|
|
147
|
+
export type AddedToUpgradeableEventFilter = TypedEventFilter<AddedToUpgradeableEvent>;
|
|
148
148
|
export interface ContractAllowedEventObject {
|
|
149
149
|
protocol: string;
|
|
150
150
|
adapter: string;
|
|
151
151
|
}
|
|
152
|
-
export
|
|
152
|
+
export type ContractAllowedEvent = TypedEvent<[
|
|
153
153
|
string,
|
|
154
154
|
string
|
|
155
155
|
], ContractAllowedEventObject>;
|
|
156
|
-
export
|
|
156
|
+
export type ContractAllowedEventFilter = TypedEventFilter<ContractAllowedEvent>;
|
|
157
157
|
export interface ContractForbiddenEventObject {
|
|
158
158
|
protocol: string;
|
|
159
159
|
}
|
|
160
|
-
export
|
|
160
|
+
export type ContractForbiddenEvent = TypedEvent<[
|
|
161
161
|
string
|
|
162
162
|
], ContractForbiddenEventObject>;
|
|
163
|
-
export
|
|
163
|
+
export type ContractForbiddenEventFilter = TypedEventFilter<ContractForbiddenEvent>;
|
|
164
164
|
export interface CreditConfiguratorUpgradedEventObject {
|
|
165
165
|
newCreditConfigurator: string;
|
|
166
166
|
}
|
|
167
|
-
export
|
|
167
|
+
export type CreditConfiguratorUpgradedEvent = TypedEvent<[
|
|
168
168
|
string
|
|
169
169
|
], CreditConfiguratorUpgradedEventObject>;
|
|
170
|
-
export
|
|
170
|
+
export type CreditConfiguratorUpgradedEventFilter = TypedEventFilter<CreditConfiguratorUpgradedEvent>;
|
|
171
171
|
export interface CreditFacadeUpgradedEventObject {
|
|
172
172
|
newCreditFacade: string;
|
|
173
173
|
}
|
|
174
|
-
export
|
|
174
|
+
export type CreditFacadeUpgradedEvent = TypedEvent<[
|
|
175
175
|
string
|
|
176
176
|
], CreditFacadeUpgradedEventObject>;
|
|
177
|
-
export
|
|
177
|
+
export type CreditFacadeUpgradedEventFilter = TypedEventFilter<CreditFacadeUpgradedEvent>;
|
|
178
178
|
export interface EmergencyLiquidatorAddedEventObject {
|
|
179
179
|
arg0: string;
|
|
180
180
|
}
|
|
181
|
-
export
|
|
181
|
+
export type EmergencyLiquidatorAddedEvent = TypedEvent<[
|
|
182
182
|
string
|
|
183
183
|
], EmergencyLiquidatorAddedEventObject>;
|
|
184
|
-
export
|
|
184
|
+
export type EmergencyLiquidatorAddedEventFilter = TypedEventFilter<EmergencyLiquidatorAddedEvent>;
|
|
185
185
|
export interface EmergencyLiquidatorRemovedEventObject {
|
|
186
186
|
arg0: string;
|
|
187
187
|
}
|
|
188
|
-
export
|
|
188
|
+
export type EmergencyLiquidatorRemovedEvent = TypedEvent<[
|
|
189
189
|
string
|
|
190
190
|
], EmergencyLiquidatorRemovedEventObject>;
|
|
191
|
-
export
|
|
191
|
+
export type EmergencyLiquidatorRemovedEventFilter = TypedEventFilter<EmergencyLiquidatorRemovedEvent>;
|
|
192
192
|
export interface ExpirationDateUpdatedEventObject {
|
|
193
193
|
arg0: number;
|
|
194
194
|
}
|
|
195
|
-
export
|
|
195
|
+
export type ExpirationDateUpdatedEvent = TypedEvent<[
|
|
196
196
|
number
|
|
197
197
|
], ExpirationDateUpdatedEventObject>;
|
|
198
|
-
export
|
|
198
|
+
export type ExpirationDateUpdatedEventFilter = TypedEventFilter<ExpirationDateUpdatedEvent>;
|
|
199
199
|
export interface FeesUpdatedEventObject {
|
|
200
200
|
feeInterest: number;
|
|
201
201
|
feeLiquidation: number;
|
|
@@ -203,79 +203,79 @@ export interface FeesUpdatedEventObject {
|
|
|
203
203
|
feeLiquidationExpired: number;
|
|
204
204
|
liquidationPremiumExpired: number;
|
|
205
205
|
}
|
|
206
|
-
export
|
|
206
|
+
export type FeesUpdatedEvent = TypedEvent<[
|
|
207
207
|
number,
|
|
208
208
|
number,
|
|
209
209
|
number,
|
|
210
210
|
number,
|
|
211
211
|
number
|
|
212
212
|
], FeesUpdatedEventObject>;
|
|
213
|
-
export
|
|
213
|
+
export type FeesUpdatedEventFilter = TypedEventFilter<FeesUpdatedEvent>;
|
|
214
214
|
export interface IncreaseDebtForbiddenModeChangedEventObject {
|
|
215
215
|
arg0: boolean;
|
|
216
216
|
}
|
|
217
|
-
export
|
|
217
|
+
export type IncreaseDebtForbiddenModeChangedEvent = TypedEvent<[
|
|
218
218
|
boolean
|
|
219
219
|
], IncreaseDebtForbiddenModeChangedEventObject>;
|
|
220
|
-
export
|
|
220
|
+
export type IncreaseDebtForbiddenModeChangedEventFilter = TypedEventFilter<IncreaseDebtForbiddenModeChangedEvent>;
|
|
221
221
|
export interface LimitPerBlockUpdatedEventObject {
|
|
222
222
|
arg0: BigNumber;
|
|
223
223
|
}
|
|
224
|
-
export
|
|
224
|
+
export type LimitPerBlockUpdatedEvent = TypedEvent<[
|
|
225
225
|
BigNumber
|
|
226
226
|
], LimitPerBlockUpdatedEventObject>;
|
|
227
|
-
export
|
|
227
|
+
export type LimitPerBlockUpdatedEventFilter = TypedEventFilter<LimitPerBlockUpdatedEvent>;
|
|
228
228
|
export interface LimitsUpdatedEventObject {
|
|
229
229
|
minBorrowedAmount: BigNumber;
|
|
230
230
|
maxBorrowedAmount: BigNumber;
|
|
231
231
|
}
|
|
232
|
-
export
|
|
232
|
+
export type LimitsUpdatedEvent = TypedEvent<[
|
|
233
233
|
BigNumber,
|
|
234
234
|
BigNumber
|
|
235
235
|
], LimitsUpdatedEventObject>;
|
|
236
|
-
export
|
|
236
|
+
export type LimitsUpdatedEventFilter = TypedEventFilter<LimitsUpdatedEvent>;
|
|
237
237
|
export interface MaxEnabledTokensUpdatedEventObject {
|
|
238
238
|
arg0: number;
|
|
239
239
|
}
|
|
240
|
-
export
|
|
240
|
+
export type MaxEnabledTokensUpdatedEvent = TypedEvent<[
|
|
241
241
|
number
|
|
242
242
|
], MaxEnabledTokensUpdatedEventObject>;
|
|
243
|
-
export
|
|
243
|
+
export type MaxEnabledTokensUpdatedEventFilter = TypedEventFilter<MaxEnabledTokensUpdatedEvent>;
|
|
244
244
|
export interface PriceOracleUpgradedEventObject {
|
|
245
245
|
newPriceOracle: string;
|
|
246
246
|
}
|
|
247
|
-
export
|
|
247
|
+
export type PriceOracleUpgradedEvent = TypedEvent<[
|
|
248
248
|
string
|
|
249
249
|
], PriceOracleUpgradedEventObject>;
|
|
250
|
-
export
|
|
250
|
+
export type PriceOracleUpgradedEventFilter = TypedEventFilter<PriceOracleUpgradedEvent>;
|
|
251
251
|
export interface RemovedFromUpgradeableEventObject {
|
|
252
252
|
arg0: string;
|
|
253
253
|
}
|
|
254
|
-
export
|
|
254
|
+
export type RemovedFromUpgradeableEvent = TypedEvent<[
|
|
255
255
|
string
|
|
256
256
|
], RemovedFromUpgradeableEventObject>;
|
|
257
|
-
export
|
|
257
|
+
export type RemovedFromUpgradeableEventFilter = TypedEventFilter<RemovedFromUpgradeableEvent>;
|
|
258
258
|
export interface TokenAllowedEventObject {
|
|
259
259
|
token: string;
|
|
260
260
|
}
|
|
261
|
-
export
|
|
262
|
-
export
|
|
261
|
+
export type TokenAllowedEvent = TypedEvent<[string], TokenAllowedEventObject>;
|
|
262
|
+
export type TokenAllowedEventFilter = TypedEventFilter<TokenAllowedEvent>;
|
|
263
263
|
export interface TokenForbiddenEventObject {
|
|
264
264
|
token: string;
|
|
265
265
|
}
|
|
266
|
-
export
|
|
266
|
+
export type TokenForbiddenEvent = TypedEvent<[
|
|
267
267
|
string
|
|
268
268
|
], TokenForbiddenEventObject>;
|
|
269
|
-
export
|
|
269
|
+
export type TokenForbiddenEventFilter = TypedEventFilter<TokenForbiddenEvent>;
|
|
270
270
|
export interface TokenLiquidationThresholdUpdatedEventObject {
|
|
271
271
|
token: string;
|
|
272
272
|
liquidityThreshold: number;
|
|
273
273
|
}
|
|
274
|
-
export
|
|
274
|
+
export type TokenLiquidationThresholdUpdatedEvent = TypedEvent<[
|
|
275
275
|
string,
|
|
276
276
|
number
|
|
277
277
|
], TokenLiquidationThresholdUpdatedEventObject>;
|
|
278
|
-
export
|
|
278
|
+
export type TokenLiquidationThresholdUpdatedEventFilter = TypedEventFilter<TokenLiquidationThresholdUpdatedEvent>;
|
|
279
279
|
export interface ICreditConfigurator extends BaseContract {
|
|
280
280
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
281
281
|
attach(addressOrName: string): this;
|
|
@@ -48,68 +48,68 @@ export interface ICreditConfiguratorEventsInterface extends utils.Interface {
|
|
|
48
48
|
export interface AdapterForbiddenEventObject {
|
|
49
49
|
adapter: string;
|
|
50
50
|
}
|
|
51
|
-
export
|
|
51
|
+
export type AdapterForbiddenEvent = TypedEvent<[
|
|
52
52
|
string
|
|
53
53
|
], AdapterForbiddenEventObject>;
|
|
54
|
-
export
|
|
54
|
+
export type AdapterForbiddenEventFilter = TypedEventFilter<AdapterForbiddenEvent>;
|
|
55
55
|
export interface AddedToUpgradeableEventObject {
|
|
56
56
|
arg0: string;
|
|
57
57
|
}
|
|
58
|
-
export
|
|
58
|
+
export type AddedToUpgradeableEvent = TypedEvent<[
|
|
59
59
|
string
|
|
60
60
|
], AddedToUpgradeableEventObject>;
|
|
61
|
-
export
|
|
61
|
+
export type AddedToUpgradeableEventFilter = TypedEventFilter<AddedToUpgradeableEvent>;
|
|
62
62
|
export interface ContractAllowedEventObject {
|
|
63
63
|
protocol: string;
|
|
64
64
|
adapter: string;
|
|
65
65
|
}
|
|
66
|
-
export
|
|
66
|
+
export type ContractAllowedEvent = TypedEvent<[
|
|
67
67
|
string,
|
|
68
68
|
string
|
|
69
69
|
], ContractAllowedEventObject>;
|
|
70
|
-
export
|
|
70
|
+
export type ContractAllowedEventFilter = TypedEventFilter<ContractAllowedEvent>;
|
|
71
71
|
export interface ContractForbiddenEventObject {
|
|
72
72
|
protocol: string;
|
|
73
73
|
}
|
|
74
|
-
export
|
|
74
|
+
export type ContractForbiddenEvent = TypedEvent<[
|
|
75
75
|
string
|
|
76
76
|
], ContractForbiddenEventObject>;
|
|
77
|
-
export
|
|
77
|
+
export type ContractForbiddenEventFilter = TypedEventFilter<ContractForbiddenEvent>;
|
|
78
78
|
export interface CreditConfiguratorUpgradedEventObject {
|
|
79
79
|
newCreditConfigurator: string;
|
|
80
80
|
}
|
|
81
|
-
export
|
|
81
|
+
export type CreditConfiguratorUpgradedEvent = TypedEvent<[
|
|
82
82
|
string
|
|
83
83
|
], CreditConfiguratorUpgradedEventObject>;
|
|
84
|
-
export
|
|
84
|
+
export type CreditConfiguratorUpgradedEventFilter = TypedEventFilter<CreditConfiguratorUpgradedEvent>;
|
|
85
85
|
export interface CreditFacadeUpgradedEventObject {
|
|
86
86
|
newCreditFacade: string;
|
|
87
87
|
}
|
|
88
|
-
export
|
|
88
|
+
export type CreditFacadeUpgradedEvent = TypedEvent<[
|
|
89
89
|
string
|
|
90
90
|
], CreditFacadeUpgradedEventObject>;
|
|
91
|
-
export
|
|
91
|
+
export type CreditFacadeUpgradedEventFilter = TypedEventFilter<CreditFacadeUpgradedEvent>;
|
|
92
92
|
export interface EmergencyLiquidatorAddedEventObject {
|
|
93
93
|
arg0: string;
|
|
94
94
|
}
|
|
95
|
-
export
|
|
95
|
+
export type EmergencyLiquidatorAddedEvent = TypedEvent<[
|
|
96
96
|
string
|
|
97
97
|
], EmergencyLiquidatorAddedEventObject>;
|
|
98
|
-
export
|
|
98
|
+
export type EmergencyLiquidatorAddedEventFilter = TypedEventFilter<EmergencyLiquidatorAddedEvent>;
|
|
99
99
|
export interface EmergencyLiquidatorRemovedEventObject {
|
|
100
100
|
arg0: string;
|
|
101
101
|
}
|
|
102
|
-
export
|
|
102
|
+
export type EmergencyLiquidatorRemovedEvent = TypedEvent<[
|
|
103
103
|
string
|
|
104
104
|
], EmergencyLiquidatorRemovedEventObject>;
|
|
105
|
-
export
|
|
105
|
+
export type EmergencyLiquidatorRemovedEventFilter = TypedEventFilter<EmergencyLiquidatorRemovedEvent>;
|
|
106
106
|
export interface ExpirationDateUpdatedEventObject {
|
|
107
107
|
arg0: number;
|
|
108
108
|
}
|
|
109
|
-
export
|
|
109
|
+
export type ExpirationDateUpdatedEvent = TypedEvent<[
|
|
110
110
|
number
|
|
111
111
|
], ExpirationDateUpdatedEventObject>;
|
|
112
|
-
export
|
|
112
|
+
export type ExpirationDateUpdatedEventFilter = TypedEventFilter<ExpirationDateUpdatedEvent>;
|
|
113
113
|
export interface FeesUpdatedEventObject {
|
|
114
114
|
feeInterest: number;
|
|
115
115
|
feeLiquidation: number;
|
|
@@ -117,79 +117,79 @@ export interface FeesUpdatedEventObject {
|
|
|
117
117
|
feeLiquidationExpired: number;
|
|
118
118
|
liquidationPremiumExpired: number;
|
|
119
119
|
}
|
|
120
|
-
export
|
|
120
|
+
export type FeesUpdatedEvent = TypedEvent<[
|
|
121
121
|
number,
|
|
122
122
|
number,
|
|
123
123
|
number,
|
|
124
124
|
number,
|
|
125
125
|
number
|
|
126
126
|
], FeesUpdatedEventObject>;
|
|
127
|
-
export
|
|
127
|
+
export type FeesUpdatedEventFilter = TypedEventFilter<FeesUpdatedEvent>;
|
|
128
128
|
export interface IncreaseDebtForbiddenModeChangedEventObject {
|
|
129
129
|
arg0: boolean;
|
|
130
130
|
}
|
|
131
|
-
export
|
|
131
|
+
export type IncreaseDebtForbiddenModeChangedEvent = TypedEvent<[
|
|
132
132
|
boolean
|
|
133
133
|
], IncreaseDebtForbiddenModeChangedEventObject>;
|
|
134
|
-
export
|
|
134
|
+
export type IncreaseDebtForbiddenModeChangedEventFilter = TypedEventFilter<IncreaseDebtForbiddenModeChangedEvent>;
|
|
135
135
|
export interface LimitPerBlockUpdatedEventObject {
|
|
136
136
|
arg0: BigNumber;
|
|
137
137
|
}
|
|
138
|
-
export
|
|
138
|
+
export type LimitPerBlockUpdatedEvent = TypedEvent<[
|
|
139
139
|
BigNumber
|
|
140
140
|
], LimitPerBlockUpdatedEventObject>;
|
|
141
|
-
export
|
|
141
|
+
export type LimitPerBlockUpdatedEventFilter = TypedEventFilter<LimitPerBlockUpdatedEvent>;
|
|
142
142
|
export interface LimitsUpdatedEventObject {
|
|
143
143
|
minBorrowedAmount: BigNumber;
|
|
144
144
|
maxBorrowedAmount: BigNumber;
|
|
145
145
|
}
|
|
146
|
-
export
|
|
146
|
+
export type LimitsUpdatedEvent = TypedEvent<[
|
|
147
147
|
BigNumber,
|
|
148
148
|
BigNumber
|
|
149
149
|
], LimitsUpdatedEventObject>;
|
|
150
|
-
export
|
|
150
|
+
export type LimitsUpdatedEventFilter = TypedEventFilter<LimitsUpdatedEvent>;
|
|
151
151
|
export interface MaxEnabledTokensUpdatedEventObject {
|
|
152
152
|
arg0: number;
|
|
153
153
|
}
|
|
154
|
-
export
|
|
154
|
+
export type MaxEnabledTokensUpdatedEvent = TypedEvent<[
|
|
155
155
|
number
|
|
156
156
|
], MaxEnabledTokensUpdatedEventObject>;
|
|
157
|
-
export
|
|
157
|
+
export type MaxEnabledTokensUpdatedEventFilter = TypedEventFilter<MaxEnabledTokensUpdatedEvent>;
|
|
158
158
|
export interface PriceOracleUpgradedEventObject {
|
|
159
159
|
newPriceOracle: string;
|
|
160
160
|
}
|
|
161
|
-
export
|
|
161
|
+
export type PriceOracleUpgradedEvent = TypedEvent<[
|
|
162
162
|
string
|
|
163
163
|
], PriceOracleUpgradedEventObject>;
|
|
164
|
-
export
|
|
164
|
+
export type PriceOracleUpgradedEventFilter = TypedEventFilter<PriceOracleUpgradedEvent>;
|
|
165
165
|
export interface RemovedFromUpgradeableEventObject {
|
|
166
166
|
arg0: string;
|
|
167
167
|
}
|
|
168
|
-
export
|
|
168
|
+
export type RemovedFromUpgradeableEvent = TypedEvent<[
|
|
169
169
|
string
|
|
170
170
|
], RemovedFromUpgradeableEventObject>;
|
|
171
|
-
export
|
|
171
|
+
export type RemovedFromUpgradeableEventFilter = TypedEventFilter<RemovedFromUpgradeableEvent>;
|
|
172
172
|
export interface TokenAllowedEventObject {
|
|
173
173
|
token: string;
|
|
174
174
|
}
|
|
175
|
-
export
|
|
176
|
-
export
|
|
175
|
+
export type TokenAllowedEvent = TypedEvent<[string], TokenAllowedEventObject>;
|
|
176
|
+
export type TokenAllowedEventFilter = TypedEventFilter<TokenAllowedEvent>;
|
|
177
177
|
export interface TokenForbiddenEventObject {
|
|
178
178
|
token: string;
|
|
179
179
|
}
|
|
180
|
-
export
|
|
180
|
+
export type TokenForbiddenEvent = TypedEvent<[
|
|
181
181
|
string
|
|
182
182
|
], TokenForbiddenEventObject>;
|
|
183
|
-
export
|
|
183
|
+
export type TokenForbiddenEventFilter = TypedEventFilter<TokenForbiddenEvent>;
|
|
184
184
|
export interface TokenLiquidationThresholdUpdatedEventObject {
|
|
185
185
|
token: string;
|
|
186
186
|
liquidityThreshold: number;
|
|
187
187
|
}
|
|
188
|
-
export
|
|
188
|
+
export type TokenLiquidationThresholdUpdatedEvent = TypedEvent<[
|
|
189
189
|
string,
|
|
190
190
|
number
|
|
191
191
|
], TokenLiquidationThresholdUpdatedEventObject>;
|
|
192
|
-
export
|
|
192
|
+
export type TokenLiquidationThresholdUpdatedEventFilter = TypedEventFilter<TokenLiquidationThresholdUpdatedEvent>;
|
|
193
193
|
export interface ICreditConfiguratorEvents extends BaseContract {
|
|
194
194
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
195
195
|
attach(addressOrName: string): this;
|
|
@@ -2,11 +2,11 @@ import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, C
|
|
|
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 } from "../../../../../common";
|
|
5
|
-
export
|
|
5
|
+
export type MultiCallStruct = {
|
|
6
6
|
target: string;
|
|
7
7
|
callData: BytesLike;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type MultiCallStructOutput = [string, string] & {
|
|
10
10
|
target: string;
|
|
11
11
|
callData: string;
|
|
12
12
|
};
|
|
@@ -120,128 +120,128 @@ export interface AddCollateralEventObject {
|
|
|
120
120
|
token: string;
|
|
121
121
|
value: BigNumber;
|
|
122
122
|
}
|
|
123
|
-
export
|
|
123
|
+
export type AddCollateralEvent = TypedEvent<[
|
|
124
124
|
string,
|
|
125
125
|
string,
|
|
126
126
|
BigNumber
|
|
127
127
|
], AddCollateralEventObject>;
|
|
128
|
-
export
|
|
128
|
+
export type AddCollateralEventFilter = TypedEventFilter<AddCollateralEvent>;
|
|
129
129
|
export interface CloseCreditAccountEventObject {
|
|
130
130
|
borrower: string;
|
|
131
131
|
to: string;
|
|
132
132
|
}
|
|
133
|
-
export
|
|
133
|
+
export type CloseCreditAccountEvent = TypedEvent<[
|
|
134
134
|
string,
|
|
135
135
|
string
|
|
136
136
|
], CloseCreditAccountEventObject>;
|
|
137
|
-
export
|
|
137
|
+
export type CloseCreditAccountEventFilter = TypedEventFilter<CloseCreditAccountEvent>;
|
|
138
138
|
export interface DecreaseBorrowedAmountEventObject {
|
|
139
139
|
borrower: string;
|
|
140
140
|
amount: BigNumber;
|
|
141
141
|
}
|
|
142
|
-
export
|
|
142
|
+
export type DecreaseBorrowedAmountEvent = TypedEvent<[
|
|
143
143
|
string,
|
|
144
144
|
BigNumber
|
|
145
145
|
], DecreaseBorrowedAmountEventObject>;
|
|
146
|
-
export
|
|
146
|
+
export type DecreaseBorrowedAmountEventFilter = TypedEventFilter<DecreaseBorrowedAmountEvent>;
|
|
147
147
|
export interface IncreaseBorrowedAmountEventObject {
|
|
148
148
|
borrower: string;
|
|
149
149
|
amount: BigNumber;
|
|
150
150
|
}
|
|
151
|
-
export
|
|
151
|
+
export type IncreaseBorrowedAmountEvent = TypedEvent<[
|
|
152
152
|
string,
|
|
153
153
|
BigNumber
|
|
154
154
|
], IncreaseBorrowedAmountEventObject>;
|
|
155
|
-
export
|
|
155
|
+
export type IncreaseBorrowedAmountEventFilter = TypedEventFilter<IncreaseBorrowedAmountEvent>;
|
|
156
156
|
export interface LiquidateCreditAccountEventObject {
|
|
157
157
|
borrower: string;
|
|
158
158
|
liquidator: string;
|
|
159
159
|
to: string;
|
|
160
160
|
remainingFunds: BigNumber;
|
|
161
161
|
}
|
|
162
|
-
export
|
|
162
|
+
export type LiquidateCreditAccountEvent = TypedEvent<[
|
|
163
163
|
string,
|
|
164
164
|
string,
|
|
165
165
|
string,
|
|
166
166
|
BigNumber
|
|
167
167
|
], LiquidateCreditAccountEventObject>;
|
|
168
|
-
export
|
|
168
|
+
export type LiquidateCreditAccountEventFilter = TypedEventFilter<LiquidateCreditAccountEvent>;
|
|
169
169
|
export interface LiquidateExpiredCreditAccountEventObject {
|
|
170
170
|
borrower: string;
|
|
171
171
|
liquidator: string;
|
|
172
172
|
to: string;
|
|
173
173
|
remainingFunds: BigNumber;
|
|
174
174
|
}
|
|
175
|
-
export
|
|
175
|
+
export type LiquidateExpiredCreditAccountEvent = TypedEvent<[
|
|
176
176
|
string,
|
|
177
177
|
string,
|
|
178
178
|
string,
|
|
179
179
|
BigNumber
|
|
180
180
|
], LiquidateExpiredCreditAccountEventObject>;
|
|
181
|
-
export
|
|
181
|
+
export type LiquidateExpiredCreditAccountEventFilter = TypedEventFilter<LiquidateExpiredCreditAccountEvent>;
|
|
182
182
|
export interface MultiCallFinishedEventObject {
|
|
183
183
|
}
|
|
184
|
-
export
|
|
184
|
+
export type MultiCallFinishedEvent = TypedEvent<[
|
|
185
185
|
], MultiCallFinishedEventObject>;
|
|
186
|
-
export
|
|
186
|
+
export type MultiCallFinishedEventFilter = TypedEventFilter<MultiCallFinishedEvent>;
|
|
187
187
|
export interface MultiCallStartedEventObject {
|
|
188
188
|
borrower: string;
|
|
189
189
|
}
|
|
190
|
-
export
|
|
190
|
+
export type MultiCallStartedEvent = TypedEvent<[
|
|
191
191
|
string
|
|
192
192
|
], MultiCallStartedEventObject>;
|
|
193
|
-
export
|
|
193
|
+
export type MultiCallStartedEventFilter = TypedEventFilter<MultiCallStartedEvent>;
|
|
194
194
|
export interface OpenCreditAccountEventObject {
|
|
195
195
|
onBehalfOf: string;
|
|
196
196
|
creditAccount: string;
|
|
197
197
|
borrowAmount: BigNumber;
|
|
198
198
|
referralCode: number;
|
|
199
199
|
}
|
|
200
|
-
export
|
|
200
|
+
export type OpenCreditAccountEvent = TypedEvent<[
|
|
201
201
|
string,
|
|
202
202
|
string,
|
|
203
203
|
BigNumber,
|
|
204
204
|
number
|
|
205
205
|
], OpenCreditAccountEventObject>;
|
|
206
|
-
export
|
|
206
|
+
export type OpenCreditAccountEventFilter = TypedEventFilter<OpenCreditAccountEvent>;
|
|
207
207
|
export interface TokenDisabledEventObject {
|
|
208
208
|
borrower: string;
|
|
209
209
|
token: string;
|
|
210
210
|
}
|
|
211
|
-
export
|
|
211
|
+
export type TokenDisabledEvent = TypedEvent<[
|
|
212
212
|
string,
|
|
213
213
|
string
|
|
214
214
|
], TokenDisabledEventObject>;
|
|
215
|
-
export
|
|
215
|
+
export type TokenDisabledEventFilter = TypedEventFilter<TokenDisabledEvent>;
|
|
216
216
|
export interface TokenEnabledEventObject {
|
|
217
217
|
borrower: string;
|
|
218
218
|
token: string;
|
|
219
219
|
}
|
|
220
|
-
export
|
|
220
|
+
export type TokenEnabledEvent = TypedEvent<[
|
|
221
221
|
string,
|
|
222
222
|
string
|
|
223
223
|
], TokenEnabledEventObject>;
|
|
224
|
-
export
|
|
224
|
+
export type TokenEnabledEventFilter = TypedEventFilter<TokenEnabledEvent>;
|
|
225
225
|
export interface TransferAccountEventObject {
|
|
226
226
|
oldOwner: string;
|
|
227
227
|
newOwner: string;
|
|
228
228
|
}
|
|
229
|
-
export
|
|
229
|
+
export type TransferAccountEvent = TypedEvent<[
|
|
230
230
|
string,
|
|
231
231
|
string
|
|
232
232
|
], TransferAccountEventObject>;
|
|
233
|
-
export
|
|
233
|
+
export type TransferAccountEventFilter = TypedEventFilter<TransferAccountEvent>;
|
|
234
234
|
export interface TransferAccountAllowedEventObject {
|
|
235
235
|
from: string;
|
|
236
236
|
to: string;
|
|
237
237
|
state: boolean;
|
|
238
238
|
}
|
|
239
|
-
export
|
|
239
|
+
export type TransferAccountAllowedEvent = TypedEvent<[
|
|
240
240
|
string,
|
|
241
241
|
string,
|
|
242
242
|
boolean
|
|
243
243
|
], TransferAccountAllowedEventObject>;
|
|
244
|
-
export
|
|
244
|
+
export type TransferAccountAllowedEventFilter = TypedEventFilter<TransferAccountAllowedEvent>;
|
|
245
245
|
export interface ICreditFacade extends BaseContract {
|
|
246
246
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
247
247
|
attach(addressOrName: string): this;
|