@gearbox-protocol/sdk 1.20.22 → 1.20.24
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 +5 -5
- 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/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 +2 -2
|
@@ -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;
|
|
@@ -38,128 +38,128 @@ export interface AddCollateralEventObject {
|
|
|
38
38
|
token: string;
|
|
39
39
|
value: BigNumber;
|
|
40
40
|
}
|
|
41
|
-
export
|
|
41
|
+
export type AddCollateralEvent = TypedEvent<[
|
|
42
42
|
string,
|
|
43
43
|
string,
|
|
44
44
|
BigNumber
|
|
45
45
|
], AddCollateralEventObject>;
|
|
46
|
-
export
|
|
46
|
+
export type AddCollateralEventFilter = TypedEventFilter<AddCollateralEvent>;
|
|
47
47
|
export interface CloseCreditAccountEventObject {
|
|
48
48
|
borrower: string;
|
|
49
49
|
to: string;
|
|
50
50
|
}
|
|
51
|
-
export
|
|
51
|
+
export type CloseCreditAccountEvent = TypedEvent<[
|
|
52
52
|
string,
|
|
53
53
|
string
|
|
54
54
|
], CloseCreditAccountEventObject>;
|
|
55
|
-
export
|
|
55
|
+
export type CloseCreditAccountEventFilter = TypedEventFilter<CloseCreditAccountEvent>;
|
|
56
56
|
export interface DecreaseBorrowedAmountEventObject {
|
|
57
57
|
borrower: string;
|
|
58
58
|
amount: BigNumber;
|
|
59
59
|
}
|
|
60
|
-
export
|
|
60
|
+
export type DecreaseBorrowedAmountEvent = TypedEvent<[
|
|
61
61
|
string,
|
|
62
62
|
BigNumber
|
|
63
63
|
], DecreaseBorrowedAmountEventObject>;
|
|
64
|
-
export
|
|
64
|
+
export type DecreaseBorrowedAmountEventFilter = TypedEventFilter<DecreaseBorrowedAmountEvent>;
|
|
65
65
|
export interface IncreaseBorrowedAmountEventObject {
|
|
66
66
|
borrower: string;
|
|
67
67
|
amount: BigNumber;
|
|
68
68
|
}
|
|
69
|
-
export
|
|
69
|
+
export type IncreaseBorrowedAmountEvent = TypedEvent<[
|
|
70
70
|
string,
|
|
71
71
|
BigNumber
|
|
72
72
|
], IncreaseBorrowedAmountEventObject>;
|
|
73
|
-
export
|
|
73
|
+
export type IncreaseBorrowedAmountEventFilter = TypedEventFilter<IncreaseBorrowedAmountEvent>;
|
|
74
74
|
export interface LiquidateCreditAccountEventObject {
|
|
75
75
|
borrower: string;
|
|
76
76
|
liquidator: string;
|
|
77
77
|
to: string;
|
|
78
78
|
remainingFunds: BigNumber;
|
|
79
79
|
}
|
|
80
|
-
export
|
|
80
|
+
export type LiquidateCreditAccountEvent = TypedEvent<[
|
|
81
81
|
string,
|
|
82
82
|
string,
|
|
83
83
|
string,
|
|
84
84
|
BigNumber
|
|
85
85
|
], LiquidateCreditAccountEventObject>;
|
|
86
|
-
export
|
|
86
|
+
export type LiquidateCreditAccountEventFilter = TypedEventFilter<LiquidateCreditAccountEvent>;
|
|
87
87
|
export interface LiquidateExpiredCreditAccountEventObject {
|
|
88
88
|
borrower: string;
|
|
89
89
|
liquidator: string;
|
|
90
90
|
to: string;
|
|
91
91
|
remainingFunds: BigNumber;
|
|
92
92
|
}
|
|
93
|
-
export
|
|
93
|
+
export type LiquidateExpiredCreditAccountEvent = TypedEvent<[
|
|
94
94
|
string,
|
|
95
95
|
string,
|
|
96
96
|
string,
|
|
97
97
|
BigNumber
|
|
98
98
|
], LiquidateExpiredCreditAccountEventObject>;
|
|
99
|
-
export
|
|
99
|
+
export type LiquidateExpiredCreditAccountEventFilter = TypedEventFilter<LiquidateExpiredCreditAccountEvent>;
|
|
100
100
|
export interface MultiCallFinishedEventObject {
|
|
101
101
|
}
|
|
102
|
-
export
|
|
102
|
+
export type MultiCallFinishedEvent = TypedEvent<[
|
|
103
103
|
], MultiCallFinishedEventObject>;
|
|
104
|
-
export
|
|
104
|
+
export type MultiCallFinishedEventFilter = TypedEventFilter<MultiCallFinishedEvent>;
|
|
105
105
|
export interface MultiCallStartedEventObject {
|
|
106
106
|
borrower: string;
|
|
107
107
|
}
|
|
108
|
-
export
|
|
108
|
+
export type MultiCallStartedEvent = TypedEvent<[
|
|
109
109
|
string
|
|
110
110
|
], MultiCallStartedEventObject>;
|
|
111
|
-
export
|
|
111
|
+
export type MultiCallStartedEventFilter = TypedEventFilter<MultiCallStartedEvent>;
|
|
112
112
|
export interface OpenCreditAccountEventObject {
|
|
113
113
|
onBehalfOf: string;
|
|
114
114
|
creditAccount: string;
|
|
115
115
|
borrowAmount: BigNumber;
|
|
116
116
|
referralCode: number;
|
|
117
117
|
}
|
|
118
|
-
export
|
|
118
|
+
export type OpenCreditAccountEvent = TypedEvent<[
|
|
119
119
|
string,
|
|
120
120
|
string,
|
|
121
121
|
BigNumber,
|
|
122
122
|
number
|
|
123
123
|
], OpenCreditAccountEventObject>;
|
|
124
|
-
export
|
|
124
|
+
export type OpenCreditAccountEventFilter = TypedEventFilter<OpenCreditAccountEvent>;
|
|
125
125
|
export interface TokenDisabledEventObject {
|
|
126
126
|
borrower: string;
|
|
127
127
|
token: string;
|
|
128
128
|
}
|
|
129
|
-
export
|
|
129
|
+
export type TokenDisabledEvent = TypedEvent<[
|
|
130
130
|
string,
|
|
131
131
|
string
|
|
132
132
|
], TokenDisabledEventObject>;
|
|
133
|
-
export
|
|
133
|
+
export type TokenDisabledEventFilter = TypedEventFilter<TokenDisabledEvent>;
|
|
134
134
|
export interface TokenEnabledEventObject {
|
|
135
135
|
borrower: string;
|
|
136
136
|
token: string;
|
|
137
137
|
}
|
|
138
|
-
export
|
|
138
|
+
export type TokenEnabledEvent = TypedEvent<[
|
|
139
139
|
string,
|
|
140
140
|
string
|
|
141
141
|
], TokenEnabledEventObject>;
|
|
142
|
-
export
|
|
142
|
+
export type TokenEnabledEventFilter = TypedEventFilter<TokenEnabledEvent>;
|
|
143
143
|
export interface TransferAccountEventObject {
|
|
144
144
|
oldOwner: string;
|
|
145
145
|
newOwner: string;
|
|
146
146
|
}
|
|
147
|
-
export
|
|
147
|
+
export type TransferAccountEvent = TypedEvent<[
|
|
148
148
|
string,
|
|
149
149
|
string
|
|
150
150
|
], TransferAccountEventObject>;
|
|
151
|
-
export
|
|
151
|
+
export type TransferAccountEventFilter = TypedEventFilter<TransferAccountEvent>;
|
|
152
152
|
export interface TransferAccountAllowedEventObject {
|
|
153
153
|
from: string;
|
|
154
154
|
to: string;
|
|
155
155
|
state: boolean;
|
|
156
156
|
}
|
|
157
|
-
export
|
|
157
|
+
export type TransferAccountAllowedEvent = TypedEvent<[
|
|
158
158
|
string,
|
|
159
159
|
string,
|
|
160
160
|
boolean
|
|
161
161
|
], TransferAccountAllowedEventObject>;
|
|
162
|
-
export
|
|
162
|
+
export type TransferAccountAllowedEventFilter = TypedEventFilter<TransferAccountAllowedEvent>;
|
|
163
163
|
export interface ICreditFacadeEvents extends BaseContract {
|
|
164
164
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
165
165
|
attach(addressOrName: string): this;
|
|
@@ -2,11 +2,11 @@ import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, C
|
|
|
2
2
|
import type { FunctionFragment, Result } 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 BalanceStruct = {
|
|
6
6
|
token: string;
|
|
7
7
|
balance: BigNumberish;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type BalanceStructOutput = [string, BigNumber] & {
|
|
10
10
|
token: string;
|
|
11
11
|
balance: BigNumber;
|
|
12
12
|
};
|
|
@@ -142,18 +142,18 @@ export interface ExecuteOrderEventObject {
|
|
|
142
142
|
borrower: string;
|
|
143
143
|
target: string;
|
|
144
144
|
}
|
|
145
|
-
export
|
|
145
|
+
export type ExecuteOrderEvent = TypedEvent<[
|
|
146
146
|
string,
|
|
147
147
|
string
|
|
148
148
|
], ExecuteOrderEventObject>;
|
|
149
|
-
export
|
|
149
|
+
export type ExecuteOrderEventFilter = TypedEventFilter<ExecuteOrderEvent>;
|
|
150
150
|
export interface NewConfiguratorEventObject {
|
|
151
151
|
newConfigurator: string;
|
|
152
152
|
}
|
|
153
|
-
export
|
|
153
|
+
export type NewConfiguratorEvent = TypedEvent<[
|
|
154
154
|
string
|
|
155
155
|
], NewConfiguratorEventObject>;
|
|
156
|
-
export
|
|
156
|
+
export type NewConfiguratorEventFilter = TypedEventFilter<NewConfiguratorEvent>;
|
|
157
157
|
export interface ICreditManagerV2 extends BaseContract {
|
|
158
158
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
159
159
|
attach(addressOrName: string): this;
|
|
@@ -15,18 +15,18 @@ export interface ExecuteOrderEventObject {
|
|
|
15
15
|
borrower: string;
|
|
16
16
|
target: string;
|
|
17
17
|
}
|
|
18
|
-
export
|
|
18
|
+
export type ExecuteOrderEvent = TypedEvent<[
|
|
19
19
|
string,
|
|
20
20
|
string
|
|
21
21
|
], ExecuteOrderEventObject>;
|
|
22
|
-
export
|
|
22
|
+
export type ExecuteOrderEventFilter = TypedEventFilter<ExecuteOrderEvent>;
|
|
23
23
|
export interface NewConfiguratorEventObject {
|
|
24
24
|
newConfigurator: string;
|
|
25
25
|
}
|
|
26
|
-
export
|
|
26
|
+
export type NewConfiguratorEvent = TypedEvent<[
|
|
27
27
|
string
|
|
28
28
|
], NewConfiguratorEventObject>;
|
|
29
|
-
export
|
|
29
|
+
export type NewConfiguratorEventFilter = TypedEventFilter<NewConfiguratorEvent>;
|
|
30
30
|
export interface ICreditManagerV2Events extends BaseContract {
|
|
31
31
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
32
32
|
attach(addressOrName: string): this;
|
|
@@ -2,19 +2,19 @@ import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, P
|
|
|
2
2
|
import type { FunctionFragment, Result } 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 TokenBalanceStruct = {
|
|
6
6
|
token: string;
|
|
7
7
|
balance: BigNumberish;
|
|
8
8
|
isAllowed: boolean;
|
|
9
9
|
isEnabled: boolean;
|
|
10
10
|
};
|
|
11
|
-
export
|
|
11
|
+
export type TokenBalanceStructOutput = [string, BigNumber, boolean, boolean] & {
|
|
12
12
|
token: string;
|
|
13
13
|
balance: BigNumber;
|
|
14
14
|
isAllowed: boolean;
|
|
15
15
|
isEnabled: boolean;
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type CreditAccountDataStruct = {
|
|
18
18
|
addr: string;
|
|
19
19
|
borrower: string;
|
|
20
20
|
inUse: boolean;
|
|
@@ -35,7 +35,7 @@ export declare type CreditAccountDataStruct = {
|
|
|
35
35
|
version: BigNumberish;
|
|
36
36
|
enabledTokenMask: BigNumberish;
|
|
37
37
|
};
|
|
38
|
-
export
|
|
38
|
+
export type CreditAccountDataStructOutput = [
|
|
39
39
|
string,
|
|
40
40
|
string,
|
|
41
41
|
boolean,
|
|
@@ -76,15 +76,15 @@ export declare type CreditAccountDataStructOutput = [
|
|
|
76
76
|
version: number;
|
|
77
77
|
enabledTokenMask: BigNumber;
|
|
78
78
|
};
|
|
79
|
-
export
|
|
79
|
+
export type ContractAdapterStruct = {
|
|
80
80
|
allowedContract: string;
|
|
81
81
|
adapter: string;
|
|
82
82
|
};
|
|
83
|
-
export
|
|
83
|
+
export type ContractAdapterStructOutput = [string, string] & {
|
|
84
84
|
allowedContract: string;
|
|
85
85
|
adapter: string;
|
|
86
86
|
};
|
|
87
|
-
export
|
|
87
|
+
export type CreditManagerDataStruct = {
|
|
88
88
|
addr: string;
|
|
89
89
|
underlying: string;
|
|
90
90
|
pool: string;
|
|
@@ -112,7 +112,7 @@ export declare type CreditManagerDataStruct = {
|
|
|
112
112
|
feeLiquidationExpired: BigNumberish;
|
|
113
113
|
liquidationDiscountExpired: BigNumberish;
|
|
114
114
|
};
|
|
115
|
-
export
|
|
115
|
+
export type CreditManagerDataStructOutput = [
|
|
116
116
|
string,
|
|
117
117
|
string,
|
|
118
118
|
string,
|
|
@@ -167,7 +167,7 @@ export declare type CreditManagerDataStructOutput = [
|
|
|
167
167
|
feeLiquidationExpired: number;
|
|
168
168
|
liquidationDiscountExpired: number;
|
|
169
169
|
};
|
|
170
|
-
export
|
|
170
|
+
export type PoolDataStruct = {
|
|
171
171
|
addr: string;
|
|
172
172
|
isWETH: boolean;
|
|
173
173
|
underlying: string;
|
|
@@ -185,7 +185,7 @@ export declare type PoolDataStruct = {
|
|
|
185
185
|
timestampLU: BigNumberish;
|
|
186
186
|
version: BigNumberish;
|
|
187
187
|
};
|
|
188
|
-
export
|
|
188
|
+
export type PoolDataStructOutput = [
|
|
189
189
|
string,
|
|
190
190
|
boolean,
|
|
191
191
|
string,
|