@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
package/lib/tokens/token.js
CHANGED
|
@@ -13,13 +13,14 @@ var __assign = (this && this.__assign) || function () {
|
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
14
|
exports.extractTokenData = exports.getDecimals = exports.isLPToken = exports.isSupportedToken = exports.tokenSymbolByAddress = exports.tokenDataByNetwork = exports.supportedTokens = exports.lpTokens = void 0;
|
|
15
15
|
var mappers_1 = require("../utils/mappers");
|
|
16
|
+
var balancer_1 = require("./balancer");
|
|
16
17
|
var convex_1 = require("./convex");
|
|
17
18
|
var curveLP_1 = require("./curveLP");
|
|
18
19
|
var decimals_1 = require("./decimals");
|
|
19
20
|
var gear_1 = require("./gear");
|
|
20
21
|
var normal_1 = require("./normal");
|
|
21
22
|
var yearn_1 = require("./yearn");
|
|
22
|
-
exports.lpTokens = __assign(__assign(__assign({}, curveLP_1.curveTokens), convex_1.convexTokens), yearn_1.yearnTokens);
|
|
23
|
+
exports.lpTokens = __assign(__assign(__assign(__assign({}, curveLP_1.curveTokens), convex_1.convexTokens), yearn_1.yearnTokens), balancer_1.balancerLpTokens);
|
|
23
24
|
exports.supportedTokens = __assign(__assign(__assign({}, normal_1.normalTokens), exports.lpTokens), gear_1.gearTokens);
|
|
24
25
|
exports.tokenDataByNetwork = {
|
|
25
26
|
//
|
|
@@ -40,6 +41,7 @@ exports.tokenDataByNetwork = {
|
|
|
40
41
|
WBTC: "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599",
|
|
41
42
|
WETH: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
|
|
42
43
|
YFI: "0x0bc529c00C6401aEF6D220BE8C6Ea1667F6Ad93e",
|
|
44
|
+
OHM: "0x64aa3364F17a4D01c6f1751Fd97C2BD3D7e7f1D5",
|
|
43
45
|
/// UPDATE
|
|
44
46
|
STETH: "0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84",
|
|
45
47
|
wstETH: "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0",
|
|
@@ -59,6 +61,7 @@ exports.tokenDataByNetwork = {
|
|
|
59
61
|
LUSD3CRV: "0xEd279fDD11cA84bEef15AF5D39BB4d4bEE23F0cA",
|
|
60
62
|
crvPlain3andSUSD: "0xC25a3A3b969415c80451098fa907EC722572917F",
|
|
61
63
|
gusd3CRV: "0xD2967f45c4f384DEEa880F807Be904762a3DeA07",
|
|
64
|
+
OHMFRAXBP: "0x5271045F7B73c17825A7A7aee6917eE46b0B7520",
|
|
62
65
|
// CONVEX LP TOKENS
|
|
63
66
|
cvx3Crv: "0x30D9410ED1D5DA1F6C8391af5338C93ab8d4035C",
|
|
64
67
|
cvxcrvFRAX: "0x117A0bab81F25e60900787d98061cCFae023560c",
|
|
@@ -67,6 +70,7 @@ exports.tokenDataByNetwork = {
|
|
|
67
70
|
cvxLUSD3CRV: "0xFB9B2f06FDb404Fd3E2278E9A9edc8f252F273d0",
|
|
68
71
|
cvxcrvPlain3andSUSD: "0x11D200ef1409cecA8D6d23e6496550f707772F11",
|
|
69
72
|
cvxgusd3CRV: "0x15c2471ef46Fa721990730cfa526BcFb45574576",
|
|
73
|
+
cvxOHMFRAXBP: "0xd8F1B275c320819c7D752ef79988d0780bf00446",
|
|
70
74
|
// CONVEX PHANTOM TOKEN ADDRESSES
|
|
71
75
|
stkcvx3Crv: "0xbAc7a431146aeAf3F57A16b9954f332Fd292F270",
|
|
72
76
|
stkcvxFRAX3CRV: "0xaF314b088B53835d5cF4e4CB81beABa5934a61fe",
|
|
@@ -75,6 +79,7 @@ exports.tokenDataByNetwork = {
|
|
|
75
79
|
stkcvxcrvPlain3andSUSD: "0x7e1992A7F28dAA5f6a2d34e2cd40f962f37B172C",
|
|
76
80
|
stkcvxLUSD3CRV: "0x0A1D4A25d0390899b90bCD22E1Ef155003EA76d7",
|
|
77
81
|
stkcvxcrvFRAX: "0x276187f24D41745513cbE2Bd5dFC33a4d8CDc9ed",
|
|
82
|
+
stkcvxOHMFRAXBP: "deploy me",
|
|
78
83
|
// YEARN TOKENS
|
|
79
84
|
yvDAI: "0xdA816459F1AB5631232FE5e97a05BBBb94970c95",
|
|
80
85
|
yvUSDC: "0xa354F35829Ae975e850e23e9615b11Da1B3dC4DE",
|
|
@@ -82,6 +87,10 @@ exports.tokenDataByNetwork = {
|
|
|
82
87
|
yvWBTC: "0xA696a63cc78DfFa1a63E9E50587C197387FF6C7E",
|
|
83
88
|
yvCurve_stETH: "0xdCD90C7f6324cfa40d7169ef80b12031770B4325",
|
|
84
89
|
yvCurve_FRAX: "0xB4AdA607B9d6b2c9Ee07A275e9616B84AC560139",
|
|
90
|
+
// BALANCER TOKENS
|
|
91
|
+
"50OHM_50DAI": "0x76FCf0e8C7Ff37A47a799FA2cd4c13cDe0D981C9",
|
|
92
|
+
"50OHM_50WETH": "0xD1eC5e215E8148D76F4460e4097FD3d5ae0A3558",
|
|
93
|
+
OHM_wstETH: "0xd4f79CA0Ac83192693bce4699d0c10C66Aa6Cf0F",
|
|
85
94
|
// GEARBOX
|
|
86
95
|
dDAI: "0x6CFaF95457d7688022FC53e7AbE052ef8DFBbdBA",
|
|
87
96
|
dUSDC: "0xc411dB5f5Eb3f7d552F9B8454B2D74097ccdE6E3",
|
|
@@ -112,6 +121,7 @@ exports.tokenDataByNetwork = {
|
|
|
112
121
|
WBTC: "0x34852e54D9B4Ec4325C7344C28b584Ce972e5E62",
|
|
113
122
|
WETH: "0x595DFFf822767c2E14CFB7D5e0b5a5e23eCfACdd",
|
|
114
123
|
YFI: "0xCad5D7701e0A85fe50B3aCaBDcdF7e75672F326e",
|
|
124
|
+
OHM: "deploy me",
|
|
115
125
|
/// UPDATE
|
|
116
126
|
STETH: "0xd628baa42b3080593a231016bF3F229161C9F745",
|
|
117
127
|
wstETH: "0x5E590e6c887A84098F3fa465267a44AaE058eBbb",
|
|
@@ -138,6 +148,7 @@ exports.tokenDataByNetwork = {
|
|
|
138
148
|
gusd3CRV: "0xbD919fcC47ae2b5Cc2fe646971aCcB1e88843DC5",
|
|
139
149
|
FRAX3CRV: "0x12Ad3125C67eC5325Cc94AFdA8B26cd12BCe1E9b",
|
|
140
150
|
LUSD3CRV: "0x348B1846b87cA12D23A9A4E73B1CfAc2Aad49cf4",
|
|
151
|
+
OHMFRAXBP: "deploy me",
|
|
141
152
|
// CONVEX LP TOKENS
|
|
142
153
|
cvx3Crv: "0xe12bFD868a81D1AD147731D0eC164d9C4A397FCd",
|
|
143
154
|
cvxcrvFRAX: "0x68345E6C192f97A7334a96ceda94e2486c08Fa0c",
|
|
@@ -146,6 +157,7 @@ exports.tokenDataByNetwork = {
|
|
|
146
157
|
cvxFRAX3CRV: "0x17181501B6986CE1e4efD9A9Df9975aD24b0c543",
|
|
147
158
|
cvxLUSD3CRV: "0xD944F38aa81804313db028924Cf0695B26B67e6E",
|
|
148
159
|
cvxgusd3CRV: "0xBA9e6B05b0F2C5B41Df2d56c0b1ddaFa03d53fed",
|
|
160
|
+
cvxOHMFRAXBP: "deploy me",
|
|
149
161
|
// CONVEX PHANTOM TOKEN ADDRESSES
|
|
150
162
|
stkcvx3Crv: "0xEB763389772eA09eddFcfed3EC571Bb20c187763",
|
|
151
163
|
stkcvxcrvFRAX: "0x6784ED28285ECd58F76f3A85F39A293E15080964",
|
|
@@ -154,6 +166,11 @@ exports.tokenDataByNetwork = {
|
|
|
154
166
|
stkcvxsteCRV: "0x3AE88c07D9A9b48706d7ea197aD53d30578ACdA1",
|
|
155
167
|
stkcvxcrvPlain3andSUSD: "0x49416516604eF33383Bd9F3a94fEcd4ee36E2d88",
|
|
156
168
|
stkcvxLUSD3CRV: "0x84c04976BA15AE880B8D6daC9CE1075D0eFD0d4D",
|
|
169
|
+
stkcvxOHMFRAXBP: "deploy me",
|
|
170
|
+
// BALANCER TOKENS
|
|
171
|
+
"50OHM_50DAI": "deploy me",
|
|
172
|
+
"50OHM_50WETH": "deploy me",
|
|
173
|
+
OHM_wstETH: "deploy me",
|
|
157
174
|
// GEARBOX
|
|
158
175
|
dDAI: "0x1726d8a1d3193D7C5A301Bb64b025cBD91BA791c",
|
|
159
176
|
dUSDC: "0x5bBDBDa8cE49B152ae48FB37F2397A5EBF35d59C",
|
|
@@ -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;
|