@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
|
@@ -33,92 +33,92 @@ export interface AddLiquidityEventObject {
|
|
|
33
33
|
amount: BigNumber;
|
|
34
34
|
referralCode: BigNumber;
|
|
35
35
|
}
|
|
36
|
-
export
|
|
36
|
+
export type AddLiquidityEvent = TypedEvent<[
|
|
37
37
|
string,
|
|
38
38
|
string,
|
|
39
39
|
BigNumber,
|
|
40
40
|
BigNumber
|
|
41
41
|
], AddLiquidityEventObject>;
|
|
42
|
-
export
|
|
42
|
+
export type AddLiquidityEventFilter = TypedEventFilter<AddLiquidityEvent>;
|
|
43
43
|
export interface BorrowEventObject {
|
|
44
44
|
creditManager: string;
|
|
45
45
|
creditAccount: string;
|
|
46
46
|
amount: BigNumber;
|
|
47
47
|
}
|
|
48
|
-
export
|
|
48
|
+
export type BorrowEvent = TypedEvent<[
|
|
49
49
|
string,
|
|
50
50
|
string,
|
|
51
51
|
BigNumber
|
|
52
52
|
], BorrowEventObject>;
|
|
53
|
-
export
|
|
53
|
+
export type BorrowEventFilter = TypedEventFilter<BorrowEvent>;
|
|
54
54
|
export interface BorrowForbiddenEventObject {
|
|
55
55
|
creditManager: string;
|
|
56
56
|
}
|
|
57
|
-
export
|
|
57
|
+
export type BorrowForbiddenEvent = TypedEvent<[
|
|
58
58
|
string
|
|
59
59
|
], BorrowForbiddenEventObject>;
|
|
60
|
-
export
|
|
60
|
+
export type BorrowForbiddenEventFilter = TypedEventFilter<BorrowForbiddenEvent>;
|
|
61
61
|
export interface NewCreditManagerConnectedEventObject {
|
|
62
62
|
creditManager: string;
|
|
63
63
|
}
|
|
64
|
-
export
|
|
64
|
+
export type NewCreditManagerConnectedEvent = TypedEvent<[
|
|
65
65
|
string
|
|
66
66
|
], NewCreditManagerConnectedEventObject>;
|
|
67
|
-
export
|
|
67
|
+
export type NewCreditManagerConnectedEventFilter = TypedEventFilter<NewCreditManagerConnectedEvent>;
|
|
68
68
|
export interface NewExpectedLiquidityLimitEventObject {
|
|
69
69
|
newLimit: BigNumber;
|
|
70
70
|
}
|
|
71
|
-
export
|
|
71
|
+
export type NewExpectedLiquidityLimitEvent = TypedEvent<[
|
|
72
72
|
BigNumber
|
|
73
73
|
], NewExpectedLiquidityLimitEventObject>;
|
|
74
|
-
export
|
|
74
|
+
export type NewExpectedLiquidityLimitEventFilter = TypedEventFilter<NewExpectedLiquidityLimitEvent>;
|
|
75
75
|
export interface NewInterestRateModelEventObject {
|
|
76
76
|
newInterestRateModel: string;
|
|
77
77
|
}
|
|
78
|
-
export
|
|
78
|
+
export type NewInterestRateModelEvent = TypedEvent<[
|
|
79
79
|
string
|
|
80
80
|
], NewInterestRateModelEventObject>;
|
|
81
|
-
export
|
|
81
|
+
export type NewInterestRateModelEventFilter = TypedEventFilter<NewInterestRateModelEvent>;
|
|
82
82
|
export interface NewWithdrawFeeEventObject {
|
|
83
83
|
fee: BigNumber;
|
|
84
84
|
}
|
|
85
|
-
export
|
|
85
|
+
export type NewWithdrawFeeEvent = TypedEvent<[
|
|
86
86
|
BigNumber
|
|
87
87
|
], NewWithdrawFeeEventObject>;
|
|
88
|
-
export
|
|
88
|
+
export type NewWithdrawFeeEventFilter = TypedEventFilter<NewWithdrawFeeEvent>;
|
|
89
89
|
export interface RemoveLiquidityEventObject {
|
|
90
90
|
sender: string;
|
|
91
91
|
to: string;
|
|
92
92
|
amount: BigNumber;
|
|
93
93
|
}
|
|
94
|
-
export
|
|
94
|
+
export type RemoveLiquidityEvent = TypedEvent<[
|
|
95
95
|
string,
|
|
96
96
|
string,
|
|
97
97
|
BigNumber
|
|
98
98
|
], RemoveLiquidityEventObject>;
|
|
99
|
-
export
|
|
99
|
+
export type RemoveLiquidityEventFilter = TypedEventFilter<RemoveLiquidityEvent>;
|
|
100
100
|
export interface RepayEventObject {
|
|
101
101
|
creditManager: string;
|
|
102
102
|
borrowedAmount: BigNumber;
|
|
103
103
|
profit: BigNumber;
|
|
104
104
|
loss: BigNumber;
|
|
105
105
|
}
|
|
106
|
-
export
|
|
106
|
+
export type RepayEvent = TypedEvent<[
|
|
107
107
|
string,
|
|
108
108
|
BigNumber,
|
|
109
109
|
BigNumber,
|
|
110
110
|
BigNumber
|
|
111
111
|
], RepayEventObject>;
|
|
112
|
-
export
|
|
112
|
+
export type RepayEventFilter = TypedEventFilter<RepayEvent>;
|
|
113
113
|
export interface UncoveredLossEventObject {
|
|
114
114
|
creditManager: string;
|
|
115
115
|
loss: BigNumber;
|
|
116
116
|
}
|
|
117
|
-
export
|
|
117
|
+
export type UncoveredLossEvent = TypedEvent<[
|
|
118
118
|
string,
|
|
119
119
|
BigNumber
|
|
120
120
|
], UncoveredLossEventObject>;
|
|
121
|
-
export
|
|
121
|
+
export type UncoveredLossEventFilter = TypedEventFilter<UncoveredLossEvent>;
|
|
122
122
|
export interface IPoolServiceEvents extends BaseContract {
|
|
123
123
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
124
124
|
attach(addressOrName: string): this;
|
|
@@ -39,11 +39,11 @@ export interface NewPriceFeedEventObject {
|
|
|
39
39
|
token: string;
|
|
40
40
|
priceFeed: string;
|
|
41
41
|
}
|
|
42
|
-
export
|
|
42
|
+
export type NewPriceFeedEvent = TypedEvent<[
|
|
43
43
|
string,
|
|
44
44
|
string
|
|
45
45
|
], NewPriceFeedEventObject>;
|
|
46
|
-
export
|
|
46
|
+
export type NewPriceFeedEventFilter = TypedEventFilter<NewPriceFeedEvent>;
|
|
47
47
|
export interface IPriceOracleV2 extends BaseContract {
|
|
48
48
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
49
49
|
attach(addressOrName: string): this;
|
|
@@ -13,11 +13,11 @@ export interface NewPriceFeedEventObject {
|
|
|
13
13
|
token: string;
|
|
14
14
|
priceFeed: string;
|
|
15
15
|
}
|
|
16
|
-
export
|
|
16
|
+
export type NewPriceFeedEvent = TypedEvent<[
|
|
17
17
|
string,
|
|
18
18
|
string
|
|
19
19
|
], NewPriceFeedEventObject>;
|
|
20
|
-
export
|
|
20
|
+
export type NewPriceFeedEventFilter = TypedEventFilter<NewPriceFeedEvent>;
|
|
21
21
|
export interface IPriceOracleV2Events extends BaseContract {
|
|
22
22
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
23
23
|
attach(addressOrName: string): this;
|
|
@@ -42,11 +42,11 @@ export interface NewPriceFeedEventObject {
|
|
|
42
42
|
token: string;
|
|
43
43
|
priceFeed: string;
|
|
44
44
|
}
|
|
45
|
-
export
|
|
45
|
+
export type NewPriceFeedEvent = TypedEvent<[
|
|
46
46
|
string,
|
|
47
47
|
string
|
|
48
48
|
], NewPriceFeedEventObject>;
|
|
49
|
-
export
|
|
49
|
+
export type NewPriceFeedEventFilter = TypedEventFilter<NewPriceFeedEvent>;
|
|
50
50
|
export interface IPriceOracleV2Ext extends BaseContract {
|
|
51
51
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
52
52
|
attach(addressOrName: string): this;
|
|
@@ -116,70 +116,70 @@ export interface ContractAllowedEventObject {
|
|
|
116
116
|
protocol: string;
|
|
117
117
|
adapter: string;
|
|
118
118
|
}
|
|
119
|
-
export
|
|
119
|
+
export type ContractAllowedEvent = TypedEvent<[
|
|
120
120
|
string,
|
|
121
121
|
string
|
|
122
122
|
], ContractAllowedEventObject>;
|
|
123
|
-
export
|
|
123
|
+
export type ContractAllowedEventFilter = TypedEventFilter<ContractAllowedEvent>;
|
|
124
124
|
export interface ContractForbiddenEventObject {
|
|
125
125
|
protocol: string;
|
|
126
126
|
}
|
|
127
|
-
export
|
|
127
|
+
export type ContractForbiddenEvent = TypedEvent<[
|
|
128
128
|
string
|
|
129
129
|
], ContractForbiddenEventObject>;
|
|
130
|
-
export
|
|
130
|
+
export type ContractForbiddenEventFilter = TypedEventFilter<ContractForbiddenEvent>;
|
|
131
131
|
export interface NewFastCheckParametersEventObject {
|
|
132
132
|
chiThreshold: BigNumber;
|
|
133
133
|
fastCheckDelay: BigNumber;
|
|
134
134
|
}
|
|
135
|
-
export
|
|
135
|
+
export type NewFastCheckParametersEvent = TypedEvent<[
|
|
136
136
|
BigNumber,
|
|
137
137
|
BigNumber
|
|
138
138
|
], NewFastCheckParametersEventObject>;
|
|
139
|
-
export
|
|
139
|
+
export type NewFastCheckParametersEventFilter = TypedEventFilter<NewFastCheckParametersEvent>;
|
|
140
140
|
export interface PriceOracleUpdatedEventObject {
|
|
141
141
|
newPriceOracle: string;
|
|
142
142
|
}
|
|
143
|
-
export
|
|
143
|
+
export type PriceOracleUpdatedEvent = TypedEvent<[
|
|
144
144
|
string
|
|
145
145
|
], PriceOracleUpdatedEventObject>;
|
|
146
|
-
export
|
|
146
|
+
export type PriceOracleUpdatedEventFilter = TypedEventFilter<PriceOracleUpdatedEvent>;
|
|
147
147
|
export interface TokenAllowedEventObject {
|
|
148
148
|
token: string;
|
|
149
149
|
liquidityThreshold: BigNumber;
|
|
150
150
|
}
|
|
151
|
-
export
|
|
151
|
+
export type TokenAllowedEvent = TypedEvent<[
|
|
152
152
|
string,
|
|
153
153
|
BigNumber
|
|
154
154
|
], TokenAllowedEventObject>;
|
|
155
|
-
export
|
|
155
|
+
export type TokenAllowedEventFilter = TypedEventFilter<TokenAllowedEvent>;
|
|
156
156
|
export interface TokenForbiddenEventObject {
|
|
157
157
|
token: string;
|
|
158
158
|
}
|
|
159
|
-
export
|
|
159
|
+
export type TokenForbiddenEvent = TypedEvent<[
|
|
160
160
|
string
|
|
161
161
|
], TokenForbiddenEventObject>;
|
|
162
|
-
export
|
|
162
|
+
export type TokenForbiddenEventFilter = TypedEventFilter<TokenForbiddenEvent>;
|
|
163
163
|
export interface TransferAccountAllowedEventObject {
|
|
164
164
|
from: string;
|
|
165
165
|
to: string;
|
|
166
166
|
state: boolean;
|
|
167
167
|
}
|
|
168
|
-
export
|
|
168
|
+
export type TransferAccountAllowedEvent = TypedEvent<[
|
|
169
169
|
string,
|
|
170
170
|
string,
|
|
171
171
|
boolean
|
|
172
172
|
], TransferAccountAllowedEventObject>;
|
|
173
|
-
export
|
|
173
|
+
export type TransferAccountAllowedEventFilter = TypedEventFilter<TransferAccountAllowedEvent>;
|
|
174
174
|
export interface TransferPluginAllowedEventObject {
|
|
175
175
|
plugin: string;
|
|
176
176
|
state: boolean;
|
|
177
177
|
}
|
|
178
|
-
export
|
|
178
|
+
export type TransferPluginAllowedEvent = TypedEvent<[
|
|
179
179
|
string,
|
|
180
180
|
boolean
|
|
181
181
|
], TransferPluginAllowedEventObject>;
|
|
182
|
-
export
|
|
182
|
+
export type TransferPluginAllowedEventFilter = TypedEventFilter<TransferPluginAllowedEvent>;
|
|
183
183
|
export interface ICreditFilter extends BaseContract {
|
|
184
184
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
185
185
|
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 ExchangeStruct = {
|
|
6
6
|
path: string[];
|
|
7
7
|
amountOutMin: BigNumberish;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type ExchangeStructOutput = [string[], BigNumber] & {
|
|
10
10
|
path: string[];
|
|
11
11
|
amountOutMin: BigNumber;
|
|
12
12
|
};
|
|
@@ -121,52 +121,52 @@ export interface AddCollateralEventObject {
|
|
|
121
121
|
token: string;
|
|
122
122
|
value: BigNumber;
|
|
123
123
|
}
|
|
124
|
-
export
|
|
124
|
+
export type AddCollateralEvent = TypedEvent<[
|
|
125
125
|
string,
|
|
126
126
|
string,
|
|
127
127
|
BigNumber
|
|
128
128
|
], AddCollateralEventObject>;
|
|
129
|
-
export
|
|
129
|
+
export type AddCollateralEventFilter = TypedEventFilter<AddCollateralEvent>;
|
|
130
130
|
export interface CloseCreditAccountEventObject {
|
|
131
131
|
owner: string;
|
|
132
132
|
to: string;
|
|
133
133
|
remainingFunds: BigNumber;
|
|
134
134
|
}
|
|
135
|
-
export
|
|
135
|
+
export type CloseCreditAccountEvent = TypedEvent<[
|
|
136
136
|
string,
|
|
137
137
|
string,
|
|
138
138
|
BigNumber
|
|
139
139
|
], CloseCreditAccountEventObject>;
|
|
140
|
-
export
|
|
140
|
+
export type CloseCreditAccountEventFilter = TypedEventFilter<CloseCreditAccountEvent>;
|
|
141
141
|
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 IncreaseBorrowedAmountEventObject {
|
|
151
151
|
borrower: string;
|
|
152
152
|
amount: BigNumber;
|
|
153
153
|
}
|
|
154
|
-
export
|
|
154
|
+
export type IncreaseBorrowedAmountEvent = TypedEvent<[
|
|
155
155
|
string,
|
|
156
156
|
BigNumber
|
|
157
157
|
], IncreaseBorrowedAmountEventObject>;
|
|
158
|
-
export
|
|
158
|
+
export type IncreaseBorrowedAmountEventFilter = TypedEventFilter<IncreaseBorrowedAmountEvent>;
|
|
159
159
|
export interface LiquidateCreditAccountEventObject {
|
|
160
160
|
owner: string;
|
|
161
161
|
liquidator: string;
|
|
162
162
|
remainingFunds: BigNumber;
|
|
163
163
|
}
|
|
164
|
-
export
|
|
164
|
+
export type LiquidateCreditAccountEvent = TypedEvent<[
|
|
165
165
|
string,
|
|
166
166
|
string,
|
|
167
167
|
BigNumber
|
|
168
168
|
], LiquidateCreditAccountEventObject>;
|
|
169
|
-
export
|
|
169
|
+
export type LiquidateCreditAccountEventFilter = TypedEventFilter<LiquidateCreditAccountEvent>;
|
|
170
170
|
export interface NewParametersEventObject {
|
|
171
171
|
minAmount: BigNumber;
|
|
172
172
|
maxAmount: BigNumber;
|
|
@@ -175,7 +175,7 @@ export interface NewParametersEventObject {
|
|
|
175
175
|
feeLiquidation: BigNumber;
|
|
176
176
|
liquidationDiscount: BigNumber;
|
|
177
177
|
}
|
|
178
|
-
export
|
|
178
|
+
export type NewParametersEvent = TypedEvent<[
|
|
179
179
|
BigNumber,
|
|
180
180
|
BigNumber,
|
|
181
181
|
BigNumber,
|
|
@@ -183,7 +183,7 @@ export declare type NewParametersEvent = TypedEvent<[
|
|
|
183
183
|
BigNumber,
|
|
184
184
|
BigNumber
|
|
185
185
|
], NewParametersEventObject>;
|
|
186
|
-
export
|
|
186
|
+
export type NewParametersEventFilter = TypedEventFilter<NewParametersEvent>;
|
|
187
187
|
export interface OpenCreditAccountEventObject {
|
|
188
188
|
sender: string;
|
|
189
189
|
onBehalfOf: string;
|
|
@@ -192,7 +192,7 @@ export interface OpenCreditAccountEventObject {
|
|
|
192
192
|
borrowAmount: BigNumber;
|
|
193
193
|
referralCode: BigNumber;
|
|
194
194
|
}
|
|
195
|
-
export
|
|
195
|
+
export type OpenCreditAccountEvent = TypedEvent<[
|
|
196
196
|
string,
|
|
197
197
|
string,
|
|
198
198
|
string,
|
|
@@ -200,25 +200,25 @@ export declare type OpenCreditAccountEvent = TypedEvent<[
|
|
|
200
200
|
BigNumber,
|
|
201
201
|
BigNumber
|
|
202
202
|
], OpenCreditAccountEventObject>;
|
|
203
|
-
export
|
|
203
|
+
export type OpenCreditAccountEventFilter = TypedEventFilter<OpenCreditAccountEvent>;
|
|
204
204
|
export interface RepayCreditAccountEventObject {
|
|
205
205
|
owner: string;
|
|
206
206
|
to: string;
|
|
207
207
|
}
|
|
208
|
-
export
|
|
208
|
+
export type RepayCreditAccountEvent = TypedEvent<[
|
|
209
209
|
string,
|
|
210
210
|
string
|
|
211
211
|
], RepayCreditAccountEventObject>;
|
|
212
|
-
export
|
|
212
|
+
export type RepayCreditAccountEventFilter = TypedEventFilter<RepayCreditAccountEvent>;
|
|
213
213
|
export interface TransferAccountEventObject {
|
|
214
214
|
oldOwner: string;
|
|
215
215
|
newOwner: string;
|
|
216
216
|
}
|
|
217
|
-
export
|
|
217
|
+
export type TransferAccountEvent = TypedEvent<[
|
|
218
218
|
string,
|
|
219
219
|
string
|
|
220
220
|
], TransferAccountEventObject>;
|
|
221
|
-
export
|
|
221
|
+
export type TransferAccountEventFilter = TypedEventFilter<TransferAccountEvent>;
|
|
222
222
|
export interface ICreditManager extends BaseContract {
|
|
223
223
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
224
224
|
attach(addressOrName: string): this;
|
|
@@ -2,11 +2,11 @@ import type { BaseContract, BigNumber, BytesLike, CallOverrides, ContractTransac
|
|
|
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 RevocationPairStruct = {
|
|
6
6
|
spender: string;
|
|
7
7
|
token: string;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type RevocationPairStructOutput = [string, string] & {
|
|
10
10
|
spender: string;
|
|
11
11
|
token: string;
|
|
12
12
|
};
|
|
@@ -150,102 +150,102 @@ export interface AddLiquidityEventObject {
|
|
|
150
150
|
amount: BigNumber;
|
|
151
151
|
referralCode: BigNumber;
|
|
152
152
|
}
|
|
153
|
-
export
|
|
153
|
+
export type AddLiquidityEvent = TypedEvent<[
|
|
154
154
|
string,
|
|
155
155
|
string,
|
|
156
156
|
BigNumber,
|
|
157
157
|
BigNumber
|
|
158
158
|
], AddLiquidityEventObject>;
|
|
159
|
-
export
|
|
159
|
+
export type AddLiquidityEventFilter = TypedEventFilter<AddLiquidityEvent>;
|
|
160
160
|
export interface BorrowEventObject {
|
|
161
161
|
creditManager: string;
|
|
162
162
|
creditAccount: string;
|
|
163
163
|
amount: BigNumber;
|
|
164
164
|
}
|
|
165
|
-
export
|
|
165
|
+
export type BorrowEvent = TypedEvent<[
|
|
166
166
|
string,
|
|
167
167
|
string,
|
|
168
168
|
BigNumber
|
|
169
169
|
], BorrowEventObject>;
|
|
170
|
-
export
|
|
170
|
+
export type BorrowEventFilter = TypedEventFilter<BorrowEvent>;
|
|
171
171
|
export interface BorrowForbiddenEventObject {
|
|
172
172
|
creditManager: string;
|
|
173
173
|
}
|
|
174
|
-
export
|
|
174
|
+
export type BorrowForbiddenEvent = TypedEvent<[
|
|
175
175
|
string
|
|
176
176
|
], BorrowForbiddenEventObject>;
|
|
177
|
-
export
|
|
177
|
+
export type BorrowForbiddenEventFilter = TypedEventFilter<BorrowForbiddenEvent>;
|
|
178
178
|
export interface NewCreditManagerConnectedEventObject {
|
|
179
179
|
creditManager: string;
|
|
180
180
|
}
|
|
181
|
-
export
|
|
181
|
+
export type NewCreditManagerConnectedEvent = TypedEvent<[
|
|
182
182
|
string
|
|
183
183
|
], NewCreditManagerConnectedEventObject>;
|
|
184
|
-
export
|
|
184
|
+
export type NewCreditManagerConnectedEventFilter = TypedEventFilter<NewCreditManagerConnectedEvent>;
|
|
185
185
|
export interface NewExpectedLiquidityLimitEventObject {
|
|
186
186
|
newLimit: BigNumber;
|
|
187
187
|
}
|
|
188
|
-
export
|
|
188
|
+
export type NewExpectedLiquidityLimitEvent = TypedEvent<[
|
|
189
189
|
BigNumber
|
|
190
190
|
], NewExpectedLiquidityLimitEventObject>;
|
|
191
|
-
export
|
|
191
|
+
export type NewExpectedLiquidityLimitEventFilter = TypedEventFilter<NewExpectedLiquidityLimitEvent>;
|
|
192
192
|
export interface NewInterestRateModelEventObject {
|
|
193
193
|
newInterestRateModel: string;
|
|
194
194
|
}
|
|
195
|
-
export
|
|
195
|
+
export type NewInterestRateModelEvent = TypedEvent<[
|
|
196
196
|
string
|
|
197
197
|
], NewInterestRateModelEventObject>;
|
|
198
|
-
export
|
|
198
|
+
export type NewInterestRateModelEventFilter = TypedEventFilter<NewInterestRateModelEvent>;
|
|
199
199
|
export interface NewWithdrawFeeEventObject {
|
|
200
200
|
fee: BigNumber;
|
|
201
201
|
}
|
|
202
|
-
export
|
|
202
|
+
export type NewWithdrawFeeEvent = TypedEvent<[
|
|
203
203
|
BigNumber
|
|
204
204
|
], NewWithdrawFeeEventObject>;
|
|
205
|
-
export
|
|
205
|
+
export type NewWithdrawFeeEventFilter = TypedEventFilter<NewWithdrawFeeEvent>;
|
|
206
206
|
export interface PausedEventObject {
|
|
207
207
|
account: string;
|
|
208
208
|
}
|
|
209
|
-
export
|
|
210
|
-
export
|
|
209
|
+
export type PausedEvent = TypedEvent<[string], PausedEventObject>;
|
|
210
|
+
export type PausedEventFilter = TypedEventFilter<PausedEvent>;
|
|
211
211
|
export interface RemoveLiquidityEventObject {
|
|
212
212
|
sender: string;
|
|
213
213
|
to: string;
|
|
214
214
|
amount: BigNumber;
|
|
215
215
|
}
|
|
216
|
-
export
|
|
216
|
+
export type RemoveLiquidityEvent = TypedEvent<[
|
|
217
217
|
string,
|
|
218
218
|
string,
|
|
219
219
|
BigNumber
|
|
220
220
|
], RemoveLiquidityEventObject>;
|
|
221
|
-
export
|
|
221
|
+
export type RemoveLiquidityEventFilter = TypedEventFilter<RemoveLiquidityEvent>;
|
|
222
222
|
export interface RepayEventObject {
|
|
223
223
|
creditManager: string;
|
|
224
224
|
borrowedAmount: BigNumber;
|
|
225
225
|
profit: BigNumber;
|
|
226
226
|
loss: BigNumber;
|
|
227
227
|
}
|
|
228
|
-
export
|
|
228
|
+
export type RepayEvent = TypedEvent<[
|
|
229
229
|
string,
|
|
230
230
|
BigNumber,
|
|
231
231
|
BigNumber,
|
|
232
232
|
BigNumber
|
|
233
233
|
], RepayEventObject>;
|
|
234
|
-
export
|
|
234
|
+
export type RepayEventFilter = TypedEventFilter<RepayEvent>;
|
|
235
235
|
export interface UncoveredLossEventObject {
|
|
236
236
|
creditManager: string;
|
|
237
237
|
loss: BigNumber;
|
|
238
238
|
}
|
|
239
|
-
export
|
|
239
|
+
export type UncoveredLossEvent = TypedEvent<[
|
|
240
240
|
string,
|
|
241
241
|
BigNumber
|
|
242
242
|
], UncoveredLossEventObject>;
|
|
243
|
-
export
|
|
243
|
+
export type UncoveredLossEventFilter = TypedEventFilter<UncoveredLossEvent>;
|
|
244
244
|
export interface UnpausedEventObject {
|
|
245
245
|
account: string;
|
|
246
246
|
}
|
|
247
|
-
export
|
|
248
|
-
export
|
|
247
|
+
export type UnpausedEvent = TypedEvent<[string], UnpausedEventObject>;
|
|
248
|
+
export type UnpausedEventFilter = TypedEventFilter<UnpausedEvent>;
|
|
249
249
|
export interface PoolService extends BaseContract {
|
|
250
250
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
251
251
|
attach(addressOrName: string): this;
|
package/lib/types/@gearbox-protocol/integrations-v2/contracts/integrations/convex/IConvexToken.d.ts
CHANGED
|
@@ -51,23 +51,23 @@ export interface ApprovalEventObject {
|
|
|
51
51
|
spender: string;
|
|
52
52
|
value: BigNumber;
|
|
53
53
|
}
|
|
54
|
-
export
|
|
54
|
+
export type ApprovalEvent = TypedEvent<[
|
|
55
55
|
string,
|
|
56
56
|
string,
|
|
57
57
|
BigNumber
|
|
58
58
|
], ApprovalEventObject>;
|
|
59
|
-
export
|
|
59
|
+
export type ApprovalEventFilter = TypedEventFilter<ApprovalEvent>;
|
|
60
60
|
export interface TransferEventObject {
|
|
61
61
|
from: string;
|
|
62
62
|
to: string;
|
|
63
63
|
value: BigNumber;
|
|
64
64
|
}
|
|
65
|
-
export
|
|
65
|
+
export type TransferEvent = TypedEvent<[
|
|
66
66
|
string,
|
|
67
67
|
string,
|
|
68
68
|
BigNumber
|
|
69
69
|
], TransferEventObject>;
|
|
70
|
-
export
|
|
70
|
+
export type TransferEventFilter = TypedEventFilter<TransferEvent>;
|
|
71
71
|
export interface IConvexToken extends BaseContract {
|
|
72
72
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
73
73
|
attach(addressOrName: string): this;
|
|
@@ -66,23 +66,23 @@ export interface ApprovalEventObject {
|
|
|
66
66
|
spender: string;
|
|
67
67
|
value: BigNumber;
|
|
68
68
|
}
|
|
69
|
-
export
|
|
69
|
+
export type ApprovalEvent = TypedEvent<[
|
|
70
70
|
string,
|
|
71
71
|
string,
|
|
72
72
|
BigNumber
|
|
73
73
|
], ApprovalEventObject>;
|
|
74
|
-
export
|
|
74
|
+
export type ApprovalEventFilter = TypedEventFilter<ApprovalEvent>;
|
|
75
75
|
export interface TransferEventObject {
|
|
76
76
|
from: string;
|
|
77
77
|
to: string;
|
|
78
78
|
value: BigNumber;
|
|
79
79
|
}
|
|
80
|
-
export
|
|
80
|
+
export type TransferEvent = TypedEvent<[
|
|
81
81
|
string,
|
|
82
82
|
string,
|
|
83
83
|
BigNumber
|
|
84
84
|
], TransferEventObject>;
|
|
85
|
-
export
|
|
85
|
+
export type TransferEventFilter = TypedEventFilter<TransferEvent>;
|
|
86
86
|
export interface IstETH extends BaseContract {
|
|
87
87
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
88
88
|
attach(addressOrName: string): this;
|
|
@@ -63,23 +63,23 @@ export interface ApprovalEventObject {
|
|
|
63
63
|
spender: string;
|
|
64
64
|
value: BigNumber;
|
|
65
65
|
}
|
|
66
|
-
export
|
|
66
|
+
export type ApprovalEvent = TypedEvent<[
|
|
67
67
|
string,
|
|
68
68
|
string,
|
|
69
69
|
BigNumber
|
|
70
70
|
], ApprovalEventObject>;
|
|
71
|
-
export
|
|
71
|
+
export type ApprovalEventFilter = TypedEventFilter<ApprovalEvent>;
|
|
72
72
|
export interface TransferEventObject {
|
|
73
73
|
from: string;
|
|
74
74
|
to: string;
|
|
75
75
|
value: BigNumber;
|
|
76
76
|
}
|
|
77
|
-
export
|
|
77
|
+
export type TransferEvent = TypedEvent<[
|
|
78
78
|
string,
|
|
79
79
|
string,
|
|
80
80
|
BigNumber
|
|
81
81
|
], TransferEventObject>;
|
|
82
|
-
export
|
|
82
|
+
export type TransferEventFilter = TypedEventFilter<TransferEvent>;
|
|
83
83
|
export interface IstETHGetters extends BaseContract {
|
|
84
84
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
85
85
|
attach(addressOrName: string): this;
|
|
@@ -66,23 +66,23 @@ export interface ApprovalEventObject {
|
|
|
66
66
|
spender: string;
|
|
67
67
|
value: BigNumber;
|
|
68
68
|
}
|
|
69
|
-
export
|
|
69
|
+
export type ApprovalEvent = TypedEvent<[
|
|
70
70
|
string,
|
|
71
71
|
string,
|
|
72
72
|
BigNumber
|
|
73
73
|
], ApprovalEventObject>;
|
|
74
|
-
export
|
|
74
|
+
export type ApprovalEventFilter = TypedEventFilter<ApprovalEvent>;
|
|
75
75
|
export interface TransferEventObject {
|
|
76
76
|
from: string;
|
|
77
77
|
to: string;
|
|
78
78
|
value: BigNumber;
|
|
79
79
|
}
|
|
80
|
-
export
|
|
80
|
+
export type TransferEvent = TypedEvent<[
|
|
81
81
|
string,
|
|
82
82
|
string,
|
|
83
83
|
BigNumber
|
|
84
84
|
], TransferEventObject>;
|
|
85
|
-
export
|
|
85
|
+
export type TransferEventFilter = TypedEventFilter<TransferEvent>;
|
|
86
86
|
export interface IwstETH extends BaseContract {
|
|
87
87
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
88
88
|
attach(addressOrName: string): this;
|