@gearbox-protocol/sdk 1.20.22 → 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 +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 +1 -1
|
@@ -2,7 +2,7 @@ import { BigNumber } from "ethers";
|
|
|
2
2
|
import { NetworkType } from "../core/chains";
|
|
3
3
|
import { TokenDataPayload } from "../payload/token";
|
|
4
4
|
import { SupportedToken } from "./token";
|
|
5
|
-
|
|
5
|
+
type SymbolReplacements = Record<string, string>;
|
|
6
6
|
export declare class TokenData {
|
|
7
7
|
readonly id: string;
|
|
8
8
|
readonly symbol: string;
|
package/lib/tokens/tokenType.js
CHANGED
|
@@ -13,4 +13,5 @@ var TokenType;
|
|
|
13
13
|
TokenType[TokenType["DIESEL_LP_TOKEN"] = 7] = "DIESEL_LP_TOKEN";
|
|
14
14
|
TokenType[TokenType["GEAR_TOKEN"] = 8] = "GEAR_TOKEN";
|
|
15
15
|
TokenType[TokenType["C_TOKEN"] = 9] = "C_TOKEN";
|
|
16
|
+
TokenType[TokenType["BALANCER_LP_TOKEN"] = 10] = "BALANCER_LP_TOKEN";
|
|
16
17
|
})(TokenType = exports.TokenType || (exports.TokenType = {}));
|
package/lib/tokens/yearn.d.ts
CHANGED
|
@@ -4,22 +4,22 @@ import type { CurveLPToken } from "./curveLP";
|
|
|
4
4
|
import { NormalToken } from "./normal";
|
|
5
5
|
import type { TokenBase } from "./token";
|
|
6
6
|
import { TokenType } from "./tokenType";
|
|
7
|
-
export
|
|
8
|
-
export
|
|
7
|
+
export type YearnLPToken = "yvDAI" | "yvUSDC" | "yvWETH" | "yvWBTC" | "yvCurve_stETH" | "yvCurve_FRAX";
|
|
8
|
+
export type YearnVaultTokenData = {
|
|
9
9
|
symbol: YearnLPToken;
|
|
10
10
|
type: TokenType.YEARN_ON_NORMAL_TOKEN;
|
|
11
11
|
underlying: NormalToken;
|
|
12
12
|
lpActions: Array<TradeAction>;
|
|
13
13
|
vault: YearnVaultContract;
|
|
14
14
|
} & TokenBase;
|
|
15
|
-
export
|
|
15
|
+
export type YearnVaultOfCurveLPTokenData = {
|
|
16
16
|
symbol: YearnLPToken;
|
|
17
17
|
type: TokenType.YEARN_ON_CURVE_TOKEN;
|
|
18
18
|
underlying: CurveLPToken;
|
|
19
19
|
lpActions: Array<TradeAction>;
|
|
20
20
|
vault: YearnVaultContract;
|
|
21
21
|
} & TokenBase;
|
|
22
|
-
export
|
|
22
|
+
export type YearnVaultOfMetaCurveLPTokenData = {
|
|
23
23
|
symbol: YearnLPToken;
|
|
24
24
|
type: TokenType.YEARN_ON_CURVE_TOKEN;
|
|
25
25
|
underlying: CurveLPToken;
|
|
@@ -33,23 +33,23 @@ export interface AnswerUpdatedEventObject {
|
|
|
33
33
|
roundId: BigNumber;
|
|
34
34
|
updatedAt: BigNumber;
|
|
35
35
|
}
|
|
36
|
-
export
|
|
36
|
+
export type AnswerUpdatedEvent = TypedEvent<[
|
|
37
37
|
BigNumber,
|
|
38
38
|
BigNumber,
|
|
39
39
|
BigNumber
|
|
40
40
|
], AnswerUpdatedEventObject>;
|
|
41
|
-
export
|
|
41
|
+
export type AnswerUpdatedEventFilter = TypedEventFilter<AnswerUpdatedEvent>;
|
|
42
42
|
export interface NewRoundEventObject {
|
|
43
43
|
roundId: BigNumber;
|
|
44
44
|
startedBy: string;
|
|
45
45
|
startedAt: BigNumber;
|
|
46
46
|
}
|
|
47
|
-
export
|
|
47
|
+
export type NewRoundEvent = TypedEvent<[
|
|
48
48
|
BigNumber,
|
|
49
49
|
string,
|
|
50
50
|
BigNumber
|
|
51
51
|
], NewRoundEventObject>;
|
|
52
|
-
export
|
|
52
|
+
export type NewRoundEventFilter = TypedEventFilter<NewRoundEvent>;
|
|
53
53
|
export interface AggregatorInterface extends BaseContract {
|
|
54
54
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
55
55
|
attach(addressOrName: string): this;
|
|
@@ -48,23 +48,23 @@ export interface AnswerUpdatedEventObject {
|
|
|
48
48
|
roundId: BigNumber;
|
|
49
49
|
updatedAt: BigNumber;
|
|
50
50
|
}
|
|
51
|
-
export
|
|
51
|
+
export type AnswerUpdatedEvent = TypedEvent<[
|
|
52
52
|
BigNumber,
|
|
53
53
|
BigNumber,
|
|
54
54
|
BigNumber
|
|
55
55
|
], AnswerUpdatedEventObject>;
|
|
56
|
-
export
|
|
56
|
+
export type AnswerUpdatedEventFilter = TypedEventFilter<AnswerUpdatedEvent>;
|
|
57
57
|
export interface NewRoundEventObject {
|
|
58
58
|
roundId: BigNumber;
|
|
59
59
|
startedBy: string;
|
|
60
60
|
startedAt: BigNumber;
|
|
61
61
|
}
|
|
62
|
-
export
|
|
62
|
+
export type NewRoundEvent = TypedEvent<[
|
|
63
63
|
BigNumber,
|
|
64
64
|
string,
|
|
65
65
|
BigNumber
|
|
66
66
|
], NewRoundEventObject>;
|
|
67
|
-
export
|
|
67
|
+
export type NewRoundEventFilter = TypedEventFilter<NewRoundEvent>;
|
|
68
68
|
export interface AggregatorV2V3Interface extends BaseContract {
|
|
69
69
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
70
70
|
attach(addressOrName: string): this;
|
|
@@ -35,31 +35,31 @@ export interface IACLInterface extends utils.Interface {
|
|
|
35
35
|
export interface PausableAdminAddedEventObject {
|
|
36
36
|
newAdmin: string;
|
|
37
37
|
}
|
|
38
|
-
export
|
|
38
|
+
export type PausableAdminAddedEvent = TypedEvent<[
|
|
39
39
|
string
|
|
40
40
|
], PausableAdminAddedEventObject>;
|
|
41
|
-
export
|
|
41
|
+
export type PausableAdminAddedEventFilter = TypedEventFilter<PausableAdminAddedEvent>;
|
|
42
42
|
export interface PausableAdminRemovedEventObject {
|
|
43
43
|
admin: string;
|
|
44
44
|
}
|
|
45
|
-
export
|
|
45
|
+
export type PausableAdminRemovedEvent = TypedEvent<[
|
|
46
46
|
string
|
|
47
47
|
], PausableAdminRemovedEventObject>;
|
|
48
|
-
export
|
|
48
|
+
export type PausableAdminRemovedEventFilter = TypedEventFilter<PausableAdminRemovedEvent>;
|
|
49
49
|
export interface UnpausableAdminAddedEventObject {
|
|
50
50
|
newAdmin: string;
|
|
51
51
|
}
|
|
52
|
-
export
|
|
52
|
+
export type UnpausableAdminAddedEvent = TypedEvent<[
|
|
53
53
|
string
|
|
54
54
|
], UnpausableAdminAddedEventObject>;
|
|
55
|
-
export
|
|
55
|
+
export type UnpausableAdminAddedEventFilter = TypedEventFilter<UnpausableAdminAddedEvent>;
|
|
56
56
|
export interface UnpausableAdminRemovedEventObject {
|
|
57
57
|
admin: string;
|
|
58
58
|
}
|
|
59
|
-
export
|
|
59
|
+
export type UnpausableAdminRemovedEvent = TypedEvent<[
|
|
60
60
|
string
|
|
61
61
|
], UnpausableAdminRemovedEventObject>;
|
|
62
|
-
export
|
|
62
|
+
export type UnpausableAdminRemovedEventFilter = TypedEventFilter<UnpausableAdminRemovedEvent>;
|
|
63
63
|
export interface IACL extends BaseContract {
|
|
64
64
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
65
65
|
attach(addressOrName: string): this;
|
|
@@ -18,31 +18,31 @@ export interface IACLEventsInterface extends utils.Interface {
|
|
|
18
18
|
export interface PausableAdminAddedEventObject {
|
|
19
19
|
newAdmin: string;
|
|
20
20
|
}
|
|
21
|
-
export
|
|
21
|
+
export type PausableAdminAddedEvent = TypedEvent<[
|
|
22
22
|
string
|
|
23
23
|
], PausableAdminAddedEventObject>;
|
|
24
|
-
export
|
|
24
|
+
export type PausableAdminAddedEventFilter = TypedEventFilter<PausableAdminAddedEvent>;
|
|
25
25
|
export interface PausableAdminRemovedEventObject {
|
|
26
26
|
admin: string;
|
|
27
27
|
}
|
|
28
|
-
export
|
|
28
|
+
export type PausableAdminRemovedEvent = TypedEvent<[
|
|
29
29
|
string
|
|
30
30
|
], PausableAdminRemovedEventObject>;
|
|
31
|
-
export
|
|
31
|
+
export type PausableAdminRemovedEventFilter = TypedEventFilter<PausableAdminRemovedEvent>;
|
|
32
32
|
export interface UnpausableAdminAddedEventObject {
|
|
33
33
|
newAdmin: string;
|
|
34
34
|
}
|
|
35
|
-
export
|
|
35
|
+
export type UnpausableAdminAddedEvent = TypedEvent<[
|
|
36
36
|
string
|
|
37
37
|
], UnpausableAdminAddedEventObject>;
|
|
38
|
-
export
|
|
38
|
+
export type UnpausableAdminAddedEventFilter = TypedEventFilter<UnpausableAdminAddedEvent>;
|
|
39
39
|
export interface UnpausableAdminRemovedEventObject {
|
|
40
40
|
admin: string;
|
|
41
41
|
}
|
|
42
|
-
export
|
|
42
|
+
export type UnpausableAdminRemovedEvent = TypedEvent<[
|
|
43
43
|
string
|
|
44
44
|
], UnpausableAdminRemovedEventObject>;
|
|
45
|
-
export
|
|
45
|
+
export type UnpausableAdminRemovedEventFilter = TypedEventFilter<UnpausableAdminRemovedEvent>;
|
|
46
46
|
export interface IACLEvents extends BaseContract {
|
|
47
47
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
48
48
|
attach(addressOrName: string): this;
|
|
@@ -49,42 +49,42 @@ export interface IAccountFactoryInterface extends utils.Interface {
|
|
|
49
49
|
export interface AccountMinerChangedEventObject {
|
|
50
50
|
miner: string;
|
|
51
51
|
}
|
|
52
|
-
export
|
|
52
|
+
export type AccountMinerChangedEvent = TypedEvent<[
|
|
53
53
|
string
|
|
54
54
|
], AccountMinerChangedEventObject>;
|
|
55
|
-
export
|
|
55
|
+
export type AccountMinerChangedEventFilter = TypedEventFilter<AccountMinerChangedEvent>;
|
|
56
56
|
export interface InitializeCreditAccountEventObject {
|
|
57
57
|
account: string;
|
|
58
58
|
creditManager: string;
|
|
59
59
|
}
|
|
60
|
-
export
|
|
60
|
+
export type InitializeCreditAccountEvent = TypedEvent<[
|
|
61
61
|
string,
|
|
62
62
|
string
|
|
63
63
|
], InitializeCreditAccountEventObject>;
|
|
64
|
-
export
|
|
64
|
+
export type InitializeCreditAccountEventFilter = TypedEventFilter<InitializeCreditAccountEvent>;
|
|
65
65
|
export interface NewCreditAccountEventObject {
|
|
66
66
|
account: string;
|
|
67
67
|
}
|
|
68
|
-
export
|
|
68
|
+
export type NewCreditAccountEvent = TypedEvent<[
|
|
69
69
|
string
|
|
70
70
|
], NewCreditAccountEventObject>;
|
|
71
|
-
export
|
|
71
|
+
export type NewCreditAccountEventFilter = TypedEventFilter<NewCreditAccountEvent>;
|
|
72
72
|
export interface ReturnCreditAccountEventObject {
|
|
73
73
|
account: string;
|
|
74
74
|
}
|
|
75
|
-
export
|
|
75
|
+
export type ReturnCreditAccountEvent = TypedEvent<[
|
|
76
76
|
string
|
|
77
77
|
], ReturnCreditAccountEventObject>;
|
|
78
|
-
export
|
|
78
|
+
export type ReturnCreditAccountEventFilter = TypedEventFilter<ReturnCreditAccountEvent>;
|
|
79
79
|
export interface TakeForeverEventObject {
|
|
80
80
|
creditAccount: string;
|
|
81
81
|
to: string;
|
|
82
82
|
}
|
|
83
|
-
export
|
|
83
|
+
export type TakeForeverEvent = TypedEvent<[
|
|
84
84
|
string,
|
|
85
85
|
string
|
|
86
86
|
], TakeForeverEventObject>;
|
|
87
|
-
export
|
|
87
|
+
export type TakeForeverEventFilter = TypedEventFilter<TakeForeverEvent>;
|
|
88
88
|
export interface IAccountFactory extends BaseContract {
|
|
89
89
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
90
90
|
attach(addressOrName: string): this;
|
|
@@ -20,42 +20,42 @@ export interface IAccountFactoryEventsInterface extends utils.Interface {
|
|
|
20
20
|
export interface AccountMinerChangedEventObject {
|
|
21
21
|
miner: string;
|
|
22
22
|
}
|
|
23
|
-
export
|
|
23
|
+
export type AccountMinerChangedEvent = TypedEvent<[
|
|
24
24
|
string
|
|
25
25
|
], AccountMinerChangedEventObject>;
|
|
26
|
-
export
|
|
26
|
+
export type AccountMinerChangedEventFilter = TypedEventFilter<AccountMinerChangedEvent>;
|
|
27
27
|
export interface InitializeCreditAccountEventObject {
|
|
28
28
|
account: string;
|
|
29
29
|
creditManager: string;
|
|
30
30
|
}
|
|
31
|
-
export
|
|
31
|
+
export type InitializeCreditAccountEvent = TypedEvent<[
|
|
32
32
|
string,
|
|
33
33
|
string
|
|
34
34
|
], InitializeCreditAccountEventObject>;
|
|
35
|
-
export
|
|
35
|
+
export type InitializeCreditAccountEventFilter = TypedEventFilter<InitializeCreditAccountEvent>;
|
|
36
36
|
export interface NewCreditAccountEventObject {
|
|
37
37
|
account: string;
|
|
38
38
|
}
|
|
39
|
-
export
|
|
39
|
+
export type NewCreditAccountEvent = TypedEvent<[
|
|
40
40
|
string
|
|
41
41
|
], NewCreditAccountEventObject>;
|
|
42
|
-
export
|
|
42
|
+
export type NewCreditAccountEventFilter = TypedEventFilter<NewCreditAccountEvent>;
|
|
43
43
|
export interface ReturnCreditAccountEventObject {
|
|
44
44
|
account: string;
|
|
45
45
|
}
|
|
46
|
-
export
|
|
46
|
+
export type ReturnCreditAccountEvent = TypedEvent<[
|
|
47
47
|
string
|
|
48
48
|
], ReturnCreditAccountEventObject>;
|
|
49
|
-
export
|
|
49
|
+
export type ReturnCreditAccountEventFilter = TypedEventFilter<ReturnCreditAccountEvent>;
|
|
50
50
|
export interface TakeForeverEventObject {
|
|
51
51
|
creditAccount: string;
|
|
52
52
|
to: string;
|
|
53
53
|
}
|
|
54
|
-
export
|
|
54
|
+
export type TakeForeverEvent = TypedEvent<[
|
|
55
55
|
string,
|
|
56
56
|
string
|
|
57
57
|
], TakeForeverEventObject>;
|
|
58
|
-
export
|
|
58
|
+
export type TakeForeverEventFilter = TypedEventFilter<TakeForeverEvent>;
|
|
59
59
|
export interface IAccountFactoryEvents extends BaseContract {
|
|
60
60
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
61
61
|
attach(addressOrName: string): this;
|
|
@@ -48,11 +48,11 @@ export interface AddressSetEventObject {
|
|
|
48
48
|
service: string;
|
|
49
49
|
newAddress: string;
|
|
50
50
|
}
|
|
51
|
-
export
|
|
51
|
+
export type AddressSetEvent = TypedEvent<[
|
|
52
52
|
string,
|
|
53
53
|
string
|
|
54
54
|
], AddressSetEventObject>;
|
|
55
|
-
export
|
|
55
|
+
export type AddressSetEventFilter = TypedEventFilter<AddressSetEvent>;
|
|
56
56
|
export interface IAddressProvider extends BaseContract {
|
|
57
57
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
58
58
|
attach(addressOrName: string): this;
|
|
@@ -13,11 +13,11 @@ export interface AddressSetEventObject {
|
|
|
13
13
|
service: string;
|
|
14
14
|
newAddress: string;
|
|
15
15
|
}
|
|
16
|
-
export
|
|
16
|
+
export type AddressSetEvent = TypedEvent<[
|
|
17
17
|
string,
|
|
18
18
|
string
|
|
19
19
|
], AddressSetEventObject>;
|
|
20
|
-
export
|
|
20
|
+
export type AddressSetEventFilter = TypedEventFilter<AddressSetEvent>;
|
|
21
21
|
export interface IAddressProviderEvents extends BaseContract {
|
|
22
22
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
23
23
|
attach(addressOrName: string): this;
|
|
@@ -32,32 +32,32 @@ export interface ClaimedEventObject {
|
|
|
32
32
|
amount: BigNumber;
|
|
33
33
|
historic: boolean;
|
|
34
34
|
}
|
|
35
|
-
export
|
|
35
|
+
export type ClaimedEvent = TypedEvent<[
|
|
36
36
|
string,
|
|
37
37
|
BigNumber,
|
|
38
38
|
boolean
|
|
39
39
|
], ClaimedEventObject>;
|
|
40
|
-
export
|
|
40
|
+
export type ClaimedEventFilter = TypedEventFilter<ClaimedEvent>;
|
|
41
41
|
export interface RootUpdatedEventObject {
|
|
42
42
|
oldRoot: string;
|
|
43
43
|
newRoot: string;
|
|
44
44
|
}
|
|
45
|
-
export
|
|
45
|
+
export type RootUpdatedEvent = TypedEvent<[
|
|
46
46
|
string,
|
|
47
47
|
string
|
|
48
48
|
], RootUpdatedEventObject>;
|
|
49
|
-
export
|
|
49
|
+
export type RootUpdatedEventFilter = TypedEventFilter<RootUpdatedEvent>;
|
|
50
50
|
export interface TokenAllocatedEventObject {
|
|
51
51
|
account: string;
|
|
52
52
|
campaignId: number;
|
|
53
53
|
amount: BigNumber;
|
|
54
54
|
}
|
|
55
|
-
export
|
|
55
|
+
export type TokenAllocatedEvent = TypedEvent<[
|
|
56
56
|
string,
|
|
57
57
|
number,
|
|
58
58
|
BigNumber
|
|
59
59
|
], TokenAllocatedEventObject>;
|
|
60
|
-
export
|
|
60
|
+
export type TokenAllocatedEventFilter = TypedEventFilter<TokenAllocatedEvent>;
|
|
61
61
|
export interface IAirdropDistributor extends BaseContract {
|
|
62
62
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
63
63
|
attach(addressOrName: string): this;
|
|
@@ -18,32 +18,32 @@ export interface ClaimedEventObject {
|
|
|
18
18
|
amount: BigNumber;
|
|
19
19
|
historic: boolean;
|
|
20
20
|
}
|
|
21
|
-
export
|
|
21
|
+
export type ClaimedEvent = TypedEvent<[
|
|
22
22
|
string,
|
|
23
23
|
BigNumber,
|
|
24
24
|
boolean
|
|
25
25
|
], ClaimedEventObject>;
|
|
26
|
-
export
|
|
26
|
+
export type ClaimedEventFilter = TypedEventFilter<ClaimedEvent>;
|
|
27
27
|
export interface RootUpdatedEventObject {
|
|
28
28
|
oldRoot: string;
|
|
29
29
|
newRoot: string;
|
|
30
30
|
}
|
|
31
|
-
export
|
|
31
|
+
export type RootUpdatedEvent = TypedEvent<[
|
|
32
32
|
string,
|
|
33
33
|
string
|
|
34
34
|
], RootUpdatedEventObject>;
|
|
35
|
-
export
|
|
35
|
+
export type RootUpdatedEventFilter = TypedEventFilter<RootUpdatedEvent>;
|
|
36
36
|
export interface TokenAllocatedEventObject {
|
|
37
37
|
account: string;
|
|
38
38
|
campaignId: number;
|
|
39
39
|
amount: BigNumber;
|
|
40
40
|
}
|
|
41
|
-
export
|
|
41
|
+
export type TokenAllocatedEvent = TypedEvent<[
|
|
42
42
|
string,
|
|
43
43
|
number,
|
|
44
44
|
BigNumber
|
|
45
45
|
], TokenAllocatedEventObject>;
|
|
46
|
-
export
|
|
46
|
+
export type TokenAllocatedEventFilter = TypedEventFilter<TokenAllocatedEvent>;
|
|
47
47
|
export interface IAirdropDistributorEvents extends BaseContract {
|
|
48
48
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
49
49
|
attach(addressOrName: string): this;
|
|
@@ -43,15 +43,15 @@ export interface IContractsRegisterInterface extends utils.Interface {
|
|
|
43
43
|
export interface NewCreditManagerAddedEventObject {
|
|
44
44
|
creditManager: string;
|
|
45
45
|
}
|
|
46
|
-
export
|
|
46
|
+
export type NewCreditManagerAddedEvent = TypedEvent<[
|
|
47
47
|
string
|
|
48
48
|
], NewCreditManagerAddedEventObject>;
|
|
49
|
-
export
|
|
49
|
+
export type NewCreditManagerAddedEventFilter = TypedEventFilter<NewCreditManagerAddedEvent>;
|
|
50
50
|
export interface NewPoolAddedEventObject {
|
|
51
51
|
pool: string;
|
|
52
52
|
}
|
|
53
|
-
export
|
|
54
|
-
export
|
|
53
|
+
export type NewPoolAddedEvent = TypedEvent<[string], NewPoolAddedEventObject>;
|
|
54
|
+
export type NewPoolAddedEventFilter = TypedEventFilter<NewPoolAddedEvent>;
|
|
55
55
|
export interface IContractsRegister extends BaseContract {
|
|
56
56
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
57
57
|
attach(addressOrName: string): this;
|
|
@@ -14,15 +14,15 @@ export interface IContractsRegisterEventsInterface extends utils.Interface {
|
|
|
14
14
|
export interface NewCreditManagerAddedEventObject {
|
|
15
15
|
creditManager: string;
|
|
16
16
|
}
|
|
17
|
-
export
|
|
17
|
+
export type NewCreditManagerAddedEvent = TypedEvent<[
|
|
18
18
|
string
|
|
19
19
|
], NewCreditManagerAddedEventObject>;
|
|
20
|
-
export
|
|
20
|
+
export type NewCreditManagerAddedEventFilter = TypedEventFilter<NewCreditManagerAddedEvent>;
|
|
21
21
|
export interface NewPoolAddedEventObject {
|
|
22
22
|
pool: string;
|
|
23
23
|
}
|
|
24
|
-
export
|
|
25
|
-
export
|
|
24
|
+
export type NewPoolAddedEvent = TypedEvent<[string], NewPoolAddedEventObject>;
|
|
25
|
+
export type NewPoolAddedEventFilter = TypedEventFilter<NewPoolAddedEvent>;
|
|
26
26
|
export interface IContractsRegisterEvents extends BaseContract {
|
|
27
27
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
28
28
|
attach(addressOrName: string): this;
|
|
@@ -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;
|