@gearbox-protocol/sdk 3.0.0-next.131 → 3.0.0-next.133
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/contracts/index.sol +2 -2
- package/lib/payload/creditAccount.d.ts +1 -1
- package/lib/payload/creditManager.d.ts +1 -1
- package/lib/payload/gauge.d.ts +1 -1
- package/lib/payload/pool.d.ts +2 -2
- package/lib/types/{IDataCompressorV2_10.d.ts → IDataCompressorV2_1.d.ts} +3 -3
- package/lib/types/{IDataCompressorV3_00.d.ts → IDataCompressorV3.d.ts} +3 -3
- package/lib/types/factories/{IDataCompressorV2_10__factory.d.ts → IDataCompressorV2_1__factory.d.ts} +4 -4
- package/lib/types/factories/{IDataCompressorV2_10__factory.js → IDataCompressorV2_1__factory.js} +3 -3
- package/lib/types/factories/{IDataCompressorV3_00__factory.d.ts → IDataCompressorV3__factory.d.ts} +4 -4
- package/lib/types/factories/{IDataCompressorV3_00__factory.js → IDataCompressorV3__factory.js} +3 -3
- package/lib/types/factories/index.d.ts +2 -2
- package/lib/types/factories/index.js +5 -5
- package/lib/types/index.d.ts +4 -4
- package/lib/types/index.js +5 -5
- package/lib/watchers/creditAccountWatcher.js +1 -1
- package/lib/watchers/creditManagerWatcher.js +2 -2
- package/package.json +7 -7
- /package/lib/types/{IDataCompressorV2_10.js → IDataCompressorV2_1.js} +0 -0
- /package/lib/types/{IDataCompressorV3_00.js → IDataCompressorV3.js} +0 -0
package/contracts/index.sol
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
pragma solidity ^0.8.10;
|
|
6
6
|
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import {IDataCompressorV2_1} from "@gearbox-protocol/periphery-v3/contracts/interfaces/IDataCompressorV2_1.sol";
|
|
8
|
+
import {IDataCompressorV3} from "@gearbox-protocol/periphery-v3/contracts/interfaces/IDataCompressorV3.sol";
|
|
9
9
|
import {IAddressProviderV3} from "@gearbox-protocol/core-v3/contracts/interfaces/IAddressProviderV3.sol";
|
|
10
10
|
import {IContractsRegister} from "@gearbox-protocol/core-v2/contracts/interfaces/IContractsRegister.sol";
|
|
11
11
|
import {IPoolV3} from "@gearbox-protocol/core-v3/contracts/interfaces/IPoolV3.sol";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ExcludeArrayProps } from "@gearbox-protocol/sdk-gov";
|
|
2
|
-
import { CreditAccountDataStructOutput, TokenBalanceStructOutput } from "../types/
|
|
2
|
+
import { CreditAccountDataStructOutput, TokenBalanceStructOutput } from "../types/IDataCompressorV3";
|
|
3
3
|
import { BigintifyProps, PartialKeys } from "../utils/types";
|
|
4
4
|
export type CaTokenBalance = BigintifyProps<ExcludeArrayProps<TokenBalanceStructOutput>>;
|
|
5
5
|
export type CreditAccountDataPayload = PartialKeys<ExcludeArrayProps<CreditAccountDataStructOutput>, "accruedInterest" | "accruedFees" | "healthFactor" | "totalValue">;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ExcludeArrayProps } from "@gearbox-protocol/sdk-gov";
|
|
2
2
|
import { BigNumberish } from "ethers";
|
|
3
3
|
import { ICreditFacadeV2 } from "../types";
|
|
4
|
-
import { CreditManagerDataStructOutput, CreditManagerDebtParamsStructOutput, QuotaInfoStructOutput } from "../types/
|
|
4
|
+
import { CreditManagerDataStructOutput, CreditManagerDebtParamsStructOutput, QuotaInfoStructOutput } from "../types/IDataCompressorV3";
|
|
5
5
|
import { BigintifyProps } from "../utils/types";
|
|
6
6
|
export type CreditManagerDebtParams = BigintifyProps<ExcludeArrayProps<CreditManagerDebtParamsStructOutput>>;
|
|
7
7
|
export type QuotaInfo = BigintifyProps<ExcludeArrayProps<QuotaInfoStructOutput>>;
|
package/lib/payload/gauge.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AwaitedRes, ExcludeArrayProps } from "@gearbox-protocol/sdk-gov";
|
|
2
2
|
import { IGearStakingV3 } from "../types";
|
|
3
|
-
import { GaugeInfoStructOutput, GaugeQuotaParamsStructOutput } from "../types/
|
|
3
|
+
import { GaugeInfoStructOutput, GaugeQuotaParamsStructOutput } from "../types/IDataCompressorV3";
|
|
4
4
|
import { BigintifyProps } from "../utils/types";
|
|
5
5
|
export type GaugeQuotaParams = BigintifyProps<ExcludeArrayProps<GaugeQuotaParamsStructOutput>>;
|
|
6
6
|
export type GaugeDataPayload = ExcludeArrayProps<GaugeInfoStructOutput>;
|
package/lib/payload/pool.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ExcludeArrayProps } from "@gearbox-protocol/sdk-gov";
|
|
2
2
|
import { BigNumberish } from "ethers";
|
|
3
|
-
import { ZapperInfoStructOutput } from "../types/
|
|
4
|
-
import { LinearModelStructOutput, PoolDataStructOutput } from "../types/
|
|
3
|
+
import { ZapperInfoStructOutput } from "../types/IDataCompressorV2_1";
|
|
4
|
+
import { LinearModelStructOutput, PoolDataStructOutput } from "../types/IDataCompressorV3";
|
|
5
5
|
export type PoolDataPayload = Omit<ExcludeArrayProps<PoolDataStructOutput>, "zappers"> & {
|
|
6
6
|
stakedDieselToken: Array<string>;
|
|
7
7
|
zappers: Array<PoolZapper>;
|
|
@@ -376,7 +376,7 @@ export type PoolDataStructOutput = [
|
|
|
376
376
|
lirm: LinearModelStructOutput;
|
|
377
377
|
isPaused: boolean;
|
|
378
378
|
};
|
|
379
|
-
export interface
|
|
379
|
+
export interface IDataCompressorV2_1Interface extends utils.Interface {
|
|
380
380
|
functions: {
|
|
381
381
|
"getAdapter(address,address)": FunctionFragment;
|
|
382
382
|
"getCreditAccountData(address,address)": FunctionFragment;
|
|
@@ -409,11 +409,11 @@ export interface IDataCompressorV2_10Interface extends utils.Interface {
|
|
|
409
409
|
decodeFunctionResult(functionFragment: "version", data: BytesLike): Result;
|
|
410
410
|
events: {};
|
|
411
411
|
}
|
|
412
|
-
export interface
|
|
412
|
+
export interface IDataCompressorV2_1 extends BaseContract {
|
|
413
413
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
414
414
|
attach(addressOrName: string): this;
|
|
415
415
|
deployed(): Promise<this>;
|
|
416
|
-
interface:
|
|
416
|
+
interface: IDataCompressorV2_1Interface;
|
|
417
417
|
queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
|
|
418
418
|
listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
|
|
419
419
|
listeners(eventName?: string): Array<Listener>;
|
|
@@ -454,7 +454,7 @@ export type PoolDataStructOutput = [
|
|
|
454
454
|
lirm: LinearModelStructOutput;
|
|
455
455
|
isPaused: boolean;
|
|
456
456
|
};
|
|
457
|
-
export interface
|
|
457
|
+
export interface IDataCompressorV3Interface extends utils.Interface {
|
|
458
458
|
functions: {
|
|
459
459
|
"getCreditAccountData(address,(address,bytes)[])": FunctionFragment;
|
|
460
460
|
"getCreditAccountsByBorrower(address,(address,bytes)[])": FunctionFragment;
|
|
@@ -490,11 +490,11 @@ export interface IDataCompressorV3_00Interface extends utils.Interface {
|
|
|
490
490
|
decodeFunctionResult(functionFragment: "version", data: BytesLike): Result;
|
|
491
491
|
events: {};
|
|
492
492
|
}
|
|
493
|
-
export interface
|
|
493
|
+
export interface IDataCompressorV3 extends BaseContract {
|
|
494
494
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
495
495
|
attach(addressOrName: string): this;
|
|
496
496
|
deployed(): Promise<this>;
|
|
497
|
-
interface:
|
|
497
|
+
interface: IDataCompressorV3Interface;
|
|
498
498
|
queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
|
|
499
499
|
listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
|
|
500
500
|
listeners(eventName?: string): Array<Listener>;
|
package/lib/types/factories/{IDataCompressorV2_10__factory.d.ts → IDataCompressorV2_1__factory.d.ts}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Signer } from "ethers";
|
|
2
2
|
import type { Provider } from "@ethersproject/providers";
|
|
3
|
-
import type {
|
|
4
|
-
export declare class
|
|
3
|
+
import type { IDataCompressorV2_1, IDataCompressorV2_1Interface } from "../IDataCompressorV2_1";
|
|
4
|
+
export declare class IDataCompressorV2_1__factory {
|
|
5
5
|
static readonly abi: readonly [{
|
|
6
6
|
readonly type: "function";
|
|
7
7
|
readonly name: "getAdapter";
|
|
@@ -1167,6 +1167,6 @@ export declare class IDataCompressorV2_10__factory {
|
|
|
1167
1167
|
}];
|
|
1168
1168
|
readonly stateMutability: "view";
|
|
1169
1169
|
}];
|
|
1170
|
-
static createInterface():
|
|
1171
|
-
static connect(address: string, signerOrProvider: Signer | Provider):
|
|
1170
|
+
static createInterface(): IDataCompressorV2_1Interface;
|
|
1171
|
+
static connect(address: string, signerOrProvider: Signer | Provider): IDataCompressorV2_1;
|
|
1172
1172
|
}
|
package/lib/types/factories/{IDataCompressorV2_10__factory.js → IDataCompressorV2_1__factory.js}
RENAMED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.IDataCompressorV2_1__factory = void 0;
|
|
7
7
|
const ethers_1 = require("ethers");
|
|
8
8
|
const _abi = [
|
|
9
9
|
{
|
|
@@ -1489,7 +1489,7 @@ const _abi = [
|
|
|
1489
1489
|
stateMutability: "view",
|
|
1490
1490
|
},
|
|
1491
1491
|
];
|
|
1492
|
-
class
|
|
1492
|
+
class IDataCompressorV2_1__factory {
|
|
1493
1493
|
static abi = _abi;
|
|
1494
1494
|
static createInterface() {
|
|
1495
1495
|
return new ethers_1.utils.Interface(_abi);
|
|
@@ -1498,4 +1498,4 @@ class IDataCompressorV2_10__factory {
|
|
|
1498
1498
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
1499
1499
|
}
|
|
1500
1500
|
}
|
|
1501
|
-
exports.
|
|
1501
|
+
exports.IDataCompressorV2_1__factory = IDataCompressorV2_1__factory;
|
package/lib/types/factories/{IDataCompressorV3_00__factory.d.ts → IDataCompressorV3__factory.d.ts}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Signer } from "ethers";
|
|
2
2
|
import type { Provider } from "@ethersproject/providers";
|
|
3
|
-
import type {
|
|
4
|
-
export declare class
|
|
3
|
+
import type { IDataCompressorV3, IDataCompressorV3Interface } from "../IDataCompressorV3";
|
|
4
|
+
export declare class IDataCompressorV3__factory {
|
|
5
5
|
static readonly abi: readonly [{
|
|
6
6
|
readonly type: "function";
|
|
7
7
|
readonly name: "getCreditAccountData";
|
|
@@ -1575,6 +1575,6 @@ export declare class IDataCompressorV3_00__factory {
|
|
|
1575
1575
|
}];
|
|
1576
1576
|
readonly stateMutability: "view";
|
|
1577
1577
|
}];
|
|
1578
|
-
static createInterface():
|
|
1579
|
-
static connect(address: string, signerOrProvider: Signer | Provider):
|
|
1578
|
+
static createInterface(): IDataCompressorV3Interface;
|
|
1579
|
+
static connect(address: string, signerOrProvider: Signer | Provider): IDataCompressorV3;
|
|
1580
1580
|
}
|
package/lib/types/factories/{IDataCompressorV3_00__factory.js → IDataCompressorV3__factory.js}
RENAMED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.IDataCompressorV3__factory = void 0;
|
|
7
7
|
const ethers_1 = require("ethers");
|
|
8
8
|
const _abi = [
|
|
9
9
|
{
|
|
@@ -2008,7 +2008,7 @@ const _abi = [
|
|
|
2008
2008
|
stateMutability: "view",
|
|
2009
2009
|
},
|
|
2010
2010
|
];
|
|
2011
|
-
class
|
|
2011
|
+
class IDataCompressorV3__factory {
|
|
2012
2012
|
static abi = _abi;
|
|
2013
2013
|
static createInterface() {
|
|
2014
2014
|
return new ethers_1.utils.Interface(_abi);
|
|
@@ -2017,4 +2017,4 @@ class IDataCompressorV3_00__factory {
|
|
|
2017
2017
|
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
2018
2018
|
}
|
|
2019
2019
|
}
|
|
2020
|
-
exports.
|
|
2020
|
+
exports.IDataCompressorV3__factory = IDataCompressorV3__factory;
|
|
@@ -56,8 +56,8 @@ export { ICurveV1_2AssetsAdapter__factory } from "./ICurveV1_2AssetsAdapter__fac
|
|
|
56
56
|
export { ICurveV1_3AssetsAdapter__factory } from "./ICurveV1_3AssetsAdapter__factory";
|
|
57
57
|
export { ICurveV1_4AssetsAdapter__factory } from "./ICurveV1_4AssetsAdapter__factory";
|
|
58
58
|
export { IDaiLikePermit__factory } from "./IDaiLikePermit__factory";
|
|
59
|
-
export {
|
|
60
|
-
export {
|
|
59
|
+
export { IDataCompressorV2_1__factory } from "./IDataCompressorV2_1__factory";
|
|
60
|
+
export { IDataCompressorV3__factory } from "./IDataCompressorV3__factory";
|
|
61
61
|
export { IERC165__factory } from "./IERC165__factory";
|
|
62
62
|
export { IERC20__factory } from "./IERC20__factory";
|
|
63
63
|
export { IERC20Metadata__factory } from "./IERC20Metadata__factory";
|
|
@@ -24,7 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.IConvexToken__factory = exports.IBaseRewardPool__factory = exports.IAdapter__factory = exports.IAaveV2_WrappedATokenAdapter__factory = exports.IAaveV2_LendingPoolAdapter__factory = exports.FarmAccounting__factory = exports.Errors__factory = exports.ERC20__factory = exports.Claimable__factory = exports.CalldataExtractor__factory = exports.AddressProvider__factory = exports.contracts = exports.redstonePriceFeedSol = exports.iwstEthGatewaySol = exports.iwstEthSol = exports.istEthSol = exports.iUniswapV3AdapterSol = exports.iUniswapV3Sol = exports.iUniswapV2AdapterSol = exports.iPriceOracleV3Sol = exports.iPriceOracleSol = exports.iPriceFeedSol = exports.iPoolV3Sol = exports.iPoolServiceSol = exports.iPoolQuotaKeeperV3Sol = exports.ilpPriceFeedSol = exports.iGearStakingV3Sol = exports.iGaugeV3Sol = exports.iDegenNftv2Sol = exports.iDegenDistributorSol = exports.iCurvePool4Sol = exports.iCurvePool3Sol = exports.iCurvePool2Sol = exports.iCreditManagerV3Sol = exports.iCreditManagerV2Sol = exports.iCreditFacadeV3Sol = exports.iCreditFacadeV2Sol = exports.iCreditConfiguratorV3Sol = exports.iCreditConfiguratorV2Sol = exports.iConvexV1BoosterAdapterSol = exports.iControllerTimelockV3Sol = exports.iContractsRegisterSol = exports.iCompoundV2CTokenAdapterSol = exports.iBotListV3Sol = exports.iBalancerV2VaultAdapterSol = exports.iBalancerV2VaultSol = exports.iAirdropDistributorSol = exports.iAddressProviderV3Sol = exports.iAddressProviderSol = exports.balancesSol = void 0;
|
|
27
|
-
exports.SafeERC20__factory = exports.RedstoneDefaultsLib__factory = exports.RedstoneConsumerNumericBase__factory = exports.RedstoneConsumerBase__factory = exports.RedstoneConstants__factory = exports.Ownable__factory = exports.NumericArrayLib__factory = exports.IwstETHV1Adapter__factory = exports.IZapperRegister__factory = exports.IZapper__factory = exports.IYearnV2Adapter__factory = exports.IYVault__factory = exports.IWETHGateway__factory = exports.IWETH__factory = exports.IVotingContractV3__factory = exports.IVersion__factory = exports.IRouterV3__factory = exports.IRouter__factory = exports.IPriceOracleBase__factory = exports.IPermit2__factory = exports.IOffchainOracle__factory = exports.ILinearInterestRateModelV3__factory = exports.ILidoV1Adapter__factory = exports.IInterestRateModel__factory = exports.IFarmingPool__factory = exports.IETHZapperDeposits__factory = exports.IERC721Metadata__factory = exports.IERC721__factory = exports.IERC4626Adapter__factory = exports.IERC4626__factory = exports.IERC20ZapperDeposits__factory = exports.IERC20Permit__factory = exports.IERC20Metadata__factory = exports.IERC20__factory = exports.IERC165__factory = exports.
|
|
27
|
+
exports.SafeERC20__factory = exports.RedstoneDefaultsLib__factory = exports.RedstoneConsumerNumericBase__factory = exports.RedstoneConsumerBase__factory = exports.RedstoneConstants__factory = exports.Ownable__factory = exports.NumericArrayLib__factory = exports.IwstETHV1Adapter__factory = exports.IZapperRegister__factory = exports.IZapper__factory = exports.IYearnV2Adapter__factory = exports.IYVault__factory = exports.IWETHGateway__factory = exports.IWETH__factory = exports.IVotingContractV3__factory = exports.IVersion__factory = exports.IRouterV3__factory = exports.IRouter__factory = exports.IPriceOracleBase__factory = exports.IPermit2__factory = exports.IOffchainOracle__factory = exports.ILinearInterestRateModelV3__factory = exports.ILidoV1Adapter__factory = exports.IInterestRateModel__factory = exports.IFarmingPool__factory = exports.IETHZapperDeposits__factory = exports.IERC721Metadata__factory = exports.IERC721__factory = exports.IERC4626Adapter__factory = exports.IERC4626__factory = exports.IERC20ZapperDeposits__factory = exports.IERC20Permit__factory = exports.IERC20Metadata__factory = exports.IERC20__factory = exports.IERC165__factory = exports.IDataCompressorV3__factory = exports.IDataCompressorV2_1__factory = exports.IDaiLikePermit__factory = exports.ICurveV1_4AssetsAdapter__factory = exports.ICurveV1_3AssetsAdapter__factory = exports.ICurveV1_2AssetsAdapter__factory = exports.ICurveV1Adapter__factory = exports.ICurvePool__factory = exports.ICreditFacadeV3Multicall__factory = exports.IConvexV1BaseRewardPoolAdapter__factory = void 0;
|
|
28
28
|
/* Autogenerated file. Do not edit manually. */
|
|
29
29
|
/* tslint:disable */
|
|
30
30
|
/* eslint-disable */
|
|
@@ -105,10 +105,10 @@ var ICurveV1_4AssetsAdapter__factory_1 = require("./ICurveV1_4AssetsAdapter__fac
|
|
|
105
105
|
Object.defineProperty(exports, "ICurveV1_4AssetsAdapter__factory", { enumerable: true, get: function () { return ICurveV1_4AssetsAdapter__factory_1.ICurveV1_4AssetsAdapter__factory; } });
|
|
106
106
|
var IDaiLikePermit__factory_1 = require("./IDaiLikePermit__factory");
|
|
107
107
|
Object.defineProperty(exports, "IDaiLikePermit__factory", { enumerable: true, get: function () { return IDaiLikePermit__factory_1.IDaiLikePermit__factory; } });
|
|
108
|
-
var
|
|
109
|
-
Object.defineProperty(exports, "
|
|
110
|
-
var
|
|
111
|
-
Object.defineProperty(exports, "
|
|
108
|
+
var IDataCompressorV2_1__factory_1 = require("./IDataCompressorV2_1__factory");
|
|
109
|
+
Object.defineProperty(exports, "IDataCompressorV2_1__factory", { enumerable: true, get: function () { return IDataCompressorV2_1__factory_1.IDataCompressorV2_1__factory; } });
|
|
110
|
+
var IDataCompressorV3__factory_1 = require("./IDataCompressorV3__factory");
|
|
111
|
+
Object.defineProperty(exports, "IDataCompressorV3__factory", { enumerable: true, get: function () { return IDataCompressorV3__factory_1.IDataCompressorV3__factory; } });
|
|
112
112
|
var IERC165__factory_1 = require("./IERC165__factory");
|
|
113
113
|
Object.defineProperty(exports, "IERC165__factory", { enumerable: true, get: function () { return IERC165__factory_1.IERC165__factory; } });
|
|
114
114
|
var IERC20__factory_1 = require("./IERC20__factory");
|
package/lib/types/index.d.ts
CHANGED
|
@@ -95,8 +95,8 @@ export type { ICurveV1_2AssetsAdapter } from "./ICurveV1_2AssetsAdapter";
|
|
|
95
95
|
export type { ICurveV1_3AssetsAdapter } from "./ICurveV1_3AssetsAdapter";
|
|
96
96
|
export type { ICurveV1_4AssetsAdapter } from "./ICurveV1_4AssetsAdapter";
|
|
97
97
|
export type { IDaiLikePermit } from "./IDaiLikePermit";
|
|
98
|
-
export type {
|
|
99
|
-
export type {
|
|
98
|
+
export type { IDataCompressorV2_1 } from "./IDataCompressorV2_1";
|
|
99
|
+
export type { IDataCompressorV3 } from "./IDataCompressorV3";
|
|
100
100
|
export type { IERC165 } from "./IERC165";
|
|
101
101
|
export type { IERC20 } from "./IERC20";
|
|
102
102
|
export type { IERC20Metadata } from "./IERC20Metadata";
|
|
@@ -238,8 +238,8 @@ export { ICurveV1_3AssetsAdapter__factory } from "./factories/ICurveV1_3AssetsAd
|
|
|
238
238
|
export { ICurveV1_4AssetsAdapter__factory } from "./factories/ICurveV1_4AssetsAdapter__factory";
|
|
239
239
|
export { ICurveV1Adapter__factory } from "./factories/ICurveV1Adapter__factory";
|
|
240
240
|
export { IDaiLikePermit__factory } from "./factories/IDaiLikePermit__factory";
|
|
241
|
-
export {
|
|
242
|
-
export {
|
|
241
|
+
export { IDataCompressorV2_1__factory } from "./factories/IDataCompressorV2_1__factory";
|
|
242
|
+
export { IDataCompressorV3__factory } from "./factories/IDataCompressorV3__factory";
|
|
243
243
|
export type { IDegenDistributor } from "./IDegenDistributor.sol/IDegenDistributor";
|
|
244
244
|
export { IDegenDistributor__factory } from "./factories/IDegenDistributor.sol/IDegenDistributor__factory";
|
|
245
245
|
export type { IDegenDistributorEvents } from "./IDegenDistributor.sol/IDegenDistributorEvents";
|
package/lib/types/index.js
CHANGED
|
@@ -24,7 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.ICreditManagerV2__factory = exports.ICreditFacadeV3Multicall__factory = exports.ICreditFacadeV3Events__factory = exports.ICreditFacadeV3__factory = exports.ICreditFacadeV2V2__factory = exports.ICreditFacadeV2Extended__factory = exports.ICreditFacadeV2Exceptions__factory = exports.ICreditFacadeV2Events__factory = exports.ICreditFacadeV2__factory = exports.ICreditConfiguratorV3Events__factory = exports.ICreditConfiguratorV3__factory = exports.ICreditConfiguratorV2Exceptions__factory = exports.ICreditConfiguratorV2Events__factory = exports.ICreditConfiguratorV2__factory = exports.IConvexV1BoosterAdapterEvents__factory = exports.IConvexV1BoosterAdapter__factory = exports.IConvexV1BaseRewardPoolAdapter__factory = exports.IConvexToken__factory = exports.IControllerTimelockV3Events__factory = exports.IControllerTimelockV3__factory = exports.IContractsRegisterEvents__factory = exports.IContractsRegister__factory = exports.ICompoundV2_Exceptions__factory = exports.ICompoundV2_CTokenAdapter__factory = exports.IBotListV3Events__factory = exports.IBotListV3__factory = exports.IBaseRewardPool__factory = exports.IBalancerV2VaultAdapterExceptions__factory = exports.IBalancerV2VaultAdapterEvents__factory = exports.IBalancerV2VaultAdapter__factory = exports.IBalancerV2VaultGetters__factory = exports.IBalancerV2Vault__factory = exports.IAirdropDistributorEvents__factory = exports.IAirdropDistributor__factory = exports.IAddressProviderV3Events__factory = exports.IAddressProviderV3__factory = exports.IAddressProviderEvents__factory = exports.IAddressProvider__factory = exports.IAdapter__factory = exports.IAaveV2_WrappedATokenAdapter__factory = exports.IAaveV2_LendingPoolAdapter__factory = exports.FarmAccounting__factory = exports.Errors__factory = exports.ERC20__factory = exports.IGasPricer__factory = exports.Claimable__factory = exports.CalldataExtractor__factory = exports.BalanceOps__factory = exports.AddressProvider__factory = exports.factories = void 0;
|
|
27
|
-
exports.IPriceFeed__factory = exports.IPoolV3Events__factory = exports.IPoolV3__factory = exports.IPoolServiceEvents__factory = exports.IPoolService__factory = exports.IPoolQuotaKeeperV3Events__factory = exports.IPoolQuotaKeeperV3__factory = exports.IPermit2__factory = exports.IOffchainOracle__factory = exports.ILPPriceFeedExceptions__factory = exports.ILPPriceFeedEvents__factory = exports.ILPPriceFeed__factory = exports.ILinearInterestRateModelV3__factory = exports.ILidoV1Adapter__factory = exports.IInterestRateModel__factory = exports.IGearStakingV3Events__factory = exports.IGearStakingV3__factory = exports.IGaugeV3Events__factory = exports.IGaugeV3__factory = exports.IFarmingPool__factory = exports.IETHZapperDeposits__factory = exports.IERC721Metadata__factory = exports.IERC721__factory = exports.IERC4626Adapter__factory = exports.IERC4626__factory = exports.IERC20ZapperDeposits__factory = exports.IERC20Permit__factory = exports.IERC20Metadata__factory = exports.IERC20__factory = exports.IERC165__factory = exports.IDegenNFTV2Exceptions__factory = exports.IDegenNFTV2Events__factory = exports.IDegenNFTV2__factory = exports.IDegenDistributorEvents__factory = exports.IDegenDistributor__factory = exports.
|
|
27
|
+
exports.IPriceFeed__factory = exports.IPoolV3Events__factory = exports.IPoolV3__factory = exports.IPoolServiceEvents__factory = exports.IPoolService__factory = exports.IPoolQuotaKeeperV3Events__factory = exports.IPoolQuotaKeeperV3__factory = exports.IPermit2__factory = exports.IOffchainOracle__factory = exports.ILPPriceFeedExceptions__factory = exports.ILPPriceFeedEvents__factory = exports.ILPPriceFeed__factory = exports.ILinearInterestRateModelV3__factory = exports.ILidoV1Adapter__factory = exports.IInterestRateModel__factory = exports.IGearStakingV3Events__factory = exports.IGearStakingV3__factory = exports.IGaugeV3Events__factory = exports.IGaugeV3__factory = exports.IFarmingPool__factory = exports.IETHZapperDeposits__factory = exports.IERC721Metadata__factory = exports.IERC721__factory = exports.IERC4626Adapter__factory = exports.IERC4626__factory = exports.IERC20ZapperDeposits__factory = exports.IERC20Permit__factory = exports.IERC20Metadata__factory = exports.IERC20__factory = exports.IERC165__factory = exports.IDegenNFTV2Exceptions__factory = exports.IDegenNFTV2Events__factory = exports.IDegenNFTV2__factory = exports.IDegenDistributorEvents__factory = exports.IDegenDistributor__factory = exports.IDataCompressorV3__factory = exports.IDataCompressorV2_1__factory = exports.IDaiLikePermit__factory = exports.ICurveV1Adapter__factory = exports.ICurveV1_4AssetsAdapter__factory = exports.ICurveV1_3AssetsAdapter__factory = exports.ICurveV1_2AssetsAdapter__factory = exports.ICurvePool__factory = exports.ICurvePool4Assets__factory = exports.ICurvePool3Assets__factory = exports.ICurvePool2Assets__factory = exports.ICreditManagerV3Events__factory = exports.ICreditManagerV3__factory = exports.ICreditManagerV2Exceptions__factory = exports.ICreditManagerV2Events__factory = void 0;
|
|
28
28
|
exports.SafeERC20__factory = exports.RedstonePriceFeed__factory = exports.IRedstonePriceFeedExceptions__factory = exports.IRedstonePriceFeedEvents__factory = exports.RedstoneDefaultsLib__factory = exports.RedstoneConsumerNumericBase__factory = exports.RedstoneConsumerBase__factory = exports.RedstoneConstants__factory = exports.Ownable__factory = exports.NumericArrayLib__factory = exports.IZapperRegister__factory = exports.IZapper__factory = exports.IYVault__factory = exports.IYearnV2Adapter__factory = exports.IwstETHV1Adapter__factory = exports.IwstETHGateWay__factory = exports.IwstETHGetters__factory = exports.IwstETH__factory = exports.IWETHGateway__factory = exports.IWETH__factory = exports.IVotingContractV3__factory = exports.IVersion__factory = exports.IUniswapV3AdapterExceptions__factory = exports.IUniswapV3AdapterEvents__factory = exports.IUniswapV3Adapter__factory = exports.ISwapRouter__factory = exports.IUniswapV2AdapterExceptions__factory = exports.IUniswapV2AdapterEvents__factory = exports.IUniswapV2Adapter__factory = exports.IstETHGetters__factory = exports.IstETH__factory = exports.IRouterV3__factory = exports.IRouter__factory = exports.IPriceOracleV3Events__factory = exports.IPriceOracleV3__factory = exports.IPriceOracleBase__factory = exports.IPriceOracleV2Ext__factory = exports.IPriceOracleV2Exceptions__factory = exports.IPriceOracleV2Events__factory = exports.IPriceOracleV2__factory = exports.IUpdatablePriceFeed__factory = void 0;
|
|
29
29
|
exports.factories = __importStar(require("./factories"));
|
|
30
30
|
var AddressProvider__factory_1 = require("./factories/AddressProvider__factory");
|
|
@@ -151,10 +151,10 @@ var ICurveV1Adapter__factory_1 = require("./factories/ICurveV1Adapter__factory")
|
|
|
151
151
|
Object.defineProperty(exports, "ICurveV1Adapter__factory", { enumerable: true, get: function () { return ICurveV1Adapter__factory_1.ICurveV1Adapter__factory; } });
|
|
152
152
|
var IDaiLikePermit__factory_1 = require("./factories/IDaiLikePermit__factory");
|
|
153
153
|
Object.defineProperty(exports, "IDaiLikePermit__factory", { enumerable: true, get: function () { return IDaiLikePermit__factory_1.IDaiLikePermit__factory; } });
|
|
154
|
-
var
|
|
155
|
-
Object.defineProperty(exports, "
|
|
156
|
-
var
|
|
157
|
-
Object.defineProperty(exports, "
|
|
154
|
+
var IDataCompressorV2_1__factory_1 = require("./factories/IDataCompressorV2_1__factory");
|
|
155
|
+
Object.defineProperty(exports, "IDataCompressorV2_1__factory", { enumerable: true, get: function () { return IDataCompressorV2_1__factory_1.IDataCompressorV2_1__factory; } });
|
|
156
|
+
var IDataCompressorV3__factory_1 = require("./factories/IDataCompressorV3__factory");
|
|
157
|
+
Object.defineProperty(exports, "IDataCompressorV3__factory", { enumerable: true, get: function () { return IDataCompressorV3__factory_1.IDataCompressorV3__factory; } });
|
|
158
158
|
var IDegenDistributor__factory_1 = require("./factories/IDegenDistributor.sol/IDegenDistributor__factory");
|
|
159
159
|
Object.defineProperty(exports, "IDegenDistributor__factory", { enumerable: true, get: function () { return IDegenDistributor__factory_1.IDegenDistributor__factory; } });
|
|
160
160
|
var IDegenDistributorEvents__factory_1 = require("./factories/IDegenDistributor.sol/IDegenDistributorEvents__factory");
|
|
@@ -91,7 +91,7 @@ class CreditAccountWatcherV2 {
|
|
|
91
91
|
else {
|
|
92
92
|
atBlock = options;
|
|
93
93
|
}
|
|
94
|
-
const dcInterface = types_1.
|
|
94
|
+
const dcInterface = types_1.IDataCompressorV2_1__factory.createInterface();
|
|
95
95
|
const dcmc = new sdk_gov_1.MultiCallContract(dataCompressor210, dcInterface, signer);
|
|
96
96
|
const calls = [];
|
|
97
97
|
for (let i = 0; i < accs.length; i++) {
|
|
@@ -25,7 +25,7 @@ class CreditManagerWatcher {
|
|
|
25
25
|
}
|
|
26
26
|
static async getV2CreditManagers(dataCompressorV210, signer, atBlock) {
|
|
27
27
|
const creditManagers = {};
|
|
28
|
-
const creditManagersPayload = await types_1.
|
|
28
|
+
const creditManagersPayload = await types_1.IDataCompressorV2_1__factory.connect(dataCompressorV210, signer).getCreditManagersV2List({ blockTag: atBlock });
|
|
29
29
|
creditManagersPayload.forEach(c => {
|
|
30
30
|
creditManagers[c.addr.toLowerCase()] = new creditManager_1.CreditManagerData(c);
|
|
31
31
|
});
|
|
@@ -33,7 +33,7 @@ class CreditManagerWatcher {
|
|
|
33
33
|
}
|
|
34
34
|
static async getV3CreditManagers(dataCompressorV300, signer, atBlock) {
|
|
35
35
|
const creditManagers = {};
|
|
36
|
-
const creditManagersPayload = await types_1.
|
|
36
|
+
const creditManagersPayload = await types_1.IDataCompressorV3__factory.connect(dataCompressorV300, signer).getCreditManagersV3List({ blockTag: atBlock });
|
|
37
37
|
creditManagersPayload.forEach(c => {
|
|
38
38
|
creditManagers[c.addr.toLowerCase()] = new creditManager_1.CreditManagerData(c);
|
|
39
39
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gearbox-protocol/sdk",
|
|
3
|
-
"version": "3.0.0-next.
|
|
3
|
+
"version": "3.0.0-next.133",
|
|
4
4
|
"description": "Gearbox SDK",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"test": "npx mocha -r ts-node/register -r dotenv/config 'src/**/*.spec.ts'"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@gearbox-protocol/sdk-gov": "^1.
|
|
33
|
+
"@gearbox-protocol/sdk-gov": "^1.37.2",
|
|
34
34
|
"axios": "^1.2.6",
|
|
35
35
|
"decimal.js-light": "^2.5.1",
|
|
36
36
|
"deep-eql": "^4.1.0",
|
|
@@ -42,14 +42,14 @@
|
|
|
42
42
|
"@commitlint/cli": "^17.6.3",
|
|
43
43
|
"@commitlint/config-conventional": "^17.0.3",
|
|
44
44
|
"@gearbox-protocol/core-v2": "1.19.0-base.17",
|
|
45
|
-
"@gearbox-protocol/core-v3": "^1.47.
|
|
45
|
+
"@gearbox-protocol/core-v3": "^1.47.3",
|
|
46
46
|
"@gearbox-protocol/eslint-config": "^1.4.1",
|
|
47
|
-
"@gearbox-protocol/integrations-v3": "^1.
|
|
48
|
-
"@gearbox-protocol/oracles-v3": "^1.10.
|
|
49
|
-
"@gearbox-protocol/periphery-v3": "^1.3
|
|
47
|
+
"@gearbox-protocol/integrations-v3": "^1.36.0",
|
|
48
|
+
"@gearbox-protocol/oracles-v3": "^1.10.1",
|
|
49
|
+
"@gearbox-protocol/periphery-v3": "^1.5.3",
|
|
50
50
|
"@gearbox-protocol/prettier-config": "^1.4.1",
|
|
51
51
|
"@gearbox-protocol/router": "^1.5.5",
|
|
52
|
-
"@gearbox-protocol/router-v3": "^1.16.
|
|
52
|
+
"@gearbox-protocol/router-v3": "^1.16.5",
|
|
53
53
|
"@openzeppelin/contracts": "^4.9.3",
|
|
54
54
|
"@redstone-finance/evm-connector": "^0.3.6",
|
|
55
55
|
"@typechain/ethers-v5": "^10.1.0",
|
|
File without changes
|
|
File without changes
|