@gearbox-protocol/sdk 3.0.0-next.301 → 3.0.0-next.303

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.
Files changed (62) hide show
  1. package/lib/apy/index.d.ts +1 -1
  2. package/lib/contracts/contractsRegister.d.ts +2 -2
  3. package/lib/core/assets.d.ts +2 -2
  4. package/lib/core/bot.d.ts +2 -2
  5. package/lib/core/creditAccount.d.ts +6 -6
  6. package/lib/core/creditManager.d.ts +4 -4
  7. package/lib/core/creditSession.d.ts +3 -3
  8. package/lib/core/endpoint.d.ts +2 -2
  9. package/lib/core/eventOrTx.d.ts +3 -3
  10. package/lib/core/gauge.d.ts +2 -2
  11. package/lib/core/gaugeMath.d.ts +2 -2
  12. package/lib/core/pool.d.ts +2 -2
  13. package/lib/core/priceOracle.d.ts +1 -1
  14. package/lib/core/protocols.d.ts +1 -1
  15. package/lib/core/rewardClaimer/index.d.ts +5 -5
  16. package/lib/core/rewardClaimer/rewardConvex.d.ts +6 -5
  17. package/lib/core/rewardClaimer/stakingRewards.d.ts +5 -5
  18. package/lib/core/strategy.d.ts +3 -3
  19. package/lib/core/trade.d.ts +4 -3
  20. package/lib/core/transactions.d.ts +5 -4
  21. package/lib/gearboxRewards/api.d.ts +5 -5
  22. package/lib/gearboxRewards/apy.d.ts +6 -6
  23. package/lib/gearboxRewards/extraAPY.d.ts +5 -5
  24. package/lib/gearboxRewards/merklAPI.d.ts +2 -2
  25. package/lib/parsers/ERC20Parser.d.ts +3 -3
  26. package/lib/parsers/aaveV2LendingPoolAdapterParser.d.ts +3 -3
  27. package/lib/parsers/aaveV2WrappedATokenAdapterParser.d.ts +3 -3
  28. package/lib/parsers/abstractParser.d.ts +3 -3
  29. package/lib/parsers/balancerV2VaultParser.d.ts +3 -3
  30. package/lib/parsers/compoundV2CTokenAdapterParser.d.ts +3 -3
  31. package/lib/parsers/convexBaseRewardPoolAdapterParser.d.ts +4 -4
  32. package/lib/parsers/convexBoosterAdapterParser.d.ts +3 -3
  33. package/lib/parsers/convextRewardPoolParser.d.ts +3 -3
  34. package/lib/parsers/creditFacadeParser.d.ts +4 -4
  35. package/lib/parsers/creditManagerParser.d.ts +2 -2
  36. package/lib/parsers/curveAdapterParser.d.ts +4 -4
  37. package/lib/parsers/erc626AdapterParser.d.ts +3 -3
  38. package/lib/parsers/iParser.d.ts +2 -2
  39. package/lib/parsers/lidoAdapterParser.d.ts +3 -3
  40. package/lib/parsers/lidoSTETHParser.d.ts +3 -3
  41. package/lib/parsers/priceOracleParser.d.ts +2 -2
  42. package/lib/parsers/stakingRewardsAdapterParser.d.ts +4 -4
  43. package/lib/parsers/txParser.d.ts +5 -5
  44. package/lib/parsers/uniV2AdapterParser.d.ts +3 -3
  45. package/lib/parsers/uniV3AdapterParser.d.ts +3 -3
  46. package/lib/parsers/wstETHAdapterParser.d.ts +3 -3
  47. package/lib/parsers/yearnV2AdapterParser.d.ts +3 -3
  48. package/lib/pathfinder/core.d.ts +1 -1
  49. package/lib/pathfinder/pathOptions.d.ts +3 -3
  50. package/lib/pathfinder/pathfinder.d.ts +6 -6
  51. package/lib/pathfinder/utils.d.ts +2 -2
  52. package/lib/payload/bot.d.ts +1 -1
  53. package/lib/payload/creditAccount.d.ts +1 -1
  54. package/lib/payload/creditManager.d.ts +3 -3
  55. package/lib/payload/creditSession.d.ts +2 -2
  56. package/lib/payload/gauge.d.ts +1 -1
  57. package/lib/payload/pool.d.ts +1 -1
  58. package/lib/payload/token.d.ts +2 -2
  59. package/lib/redstone/api.d.ts +3 -3
  60. package/lib/tokens/tokenData.d.ts +3 -3
  61. package/lib/utils/calls.d.ts +1 -1
  62. package/package.json +7 -7
@@ -1,4 +1,4 @@
1
- import { LPTokens, PartialRecord, SupportedToken } from "@gearbox-protocol/sdk-gov";
1
+ import type { LPTokens, PartialRecord, SupportedToken } from "@gearbox-protocol/sdk-gov";
2
2
  type ExtraFarmTokens = Extract<SupportedToken, "STETH" | "rETH" | "osETH" | "cbETH" | "wstETH" | "weETH" | "ezETH" | "sfrxETH" | "USDe" | "rsETH" | "rswETH" | "pufETH" | "pzETH" | "rstETH" | "steakLRT" | "amphrETH" | "LBTC" | "Re7LRT" | "PT_ezETH_26DEC2024" | "PT_eETH_26DEC2024" | "PT_sUSDe_26DEC2024" | "PT_eBTC_26DEC2024" | "PT_LBTC_27MAR2025" | "eBTC" | "PT_cornLBTC_26DEC2024" | "PT_corn_eBTC_27MAR2025" | "PT_corn_pumpBTC_26DEC2024" | "pumpBTC" | "PT_sUSDe_27MAR2025" | "DVstETH" | "beraSTONE" | "PT_sUSDe_29MAY2025" | "tETH" | "PT_beraSTONE_10APR2025" | "stS" | "csUSDL" | "scUSD">;
3
3
  type ExtraTokensWithAPY = Extract<ExtraFarmTokens, "STETH" | "rETH" | "osETH" | "cbETH" | "wstETH" | "sfrxETH" | "pzETH" | "ezETH" | "Re7LRT" | "rsETH" | "weETH" | "rswETH" | "rstETH" | "steakLRT" | "amphrETH" | "pufETH" | "PT_ezETH_26DEC2024" | "PT_eETH_26DEC2024" | "PT_sUSDe_26DEC2024" | "PT_eBTC_26DEC2024" | "PT_LBTC_27MAR2025" | "PT_cornLBTC_26DEC2024" | "PT_corn_eBTC_27MAR2025" | "PT_corn_pumpBTC_26DEC2024" | "PT_sUSDe_27MAR2025" | "DVstETH" | "PT_sUSDe_29MAY2025" | "tETH" | "PT_beraSTONE_10APR2025" | "stS" | "csUSDL" | "scUSD">;
4
4
  type LRTAndLSTTokens = Exclude<ExtraFarmTokens, "USDe">;
@@ -1,5 +1,5 @@
1
- import { NetworkType } from "@gearbox-protocol/sdk-gov";
2
- import { Address } from "viem";
1
+ import type { NetworkType } from "@gearbox-protocol/sdk-gov";
2
+ import type { Address } from "viem";
3
3
  export declare const stEthPoolWrapper: Record<NetworkType, Address>;
4
4
  type MainnetCreditManagersV1 = "DAI_V1" | "USDC_V1" | "WETH_V1" | "WBTC_V1";
5
5
  type MainnetCreditManagersV2 = "DAI_V2" | "USDC_V2" | "WETH_V2" | "WSTETH_V2" | "WBTC_V2" | "FRAX_V2";
@@ -1,5 +1,5 @@
1
- import { Address } from "viem";
2
- import { TokenData } from "../tokens/tokenData";
1
+ import type { Address } from "viem";
2
+ import type { TokenData } from "../tokens/tokenData";
3
3
  export interface Asset {
4
4
  token: Address;
5
5
  balance: bigint;
package/lib/core/bot.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { Address } from "viem";
2
- import { BotBaseType, BotDataPayload, BotDetailedType } from "../payload/bot";
1
+ import type { Address } from "viem";
2
+ import type { BotBaseType, BotDataPayload, BotDetailedType } from "../payload/bot";
3
3
  export declare class BotData {
4
4
  readonly address: Address;
5
5
  readonly baseType: BotBaseType;
@@ -1,9 +1,9 @@
1
- import { Address } from "viem";
2
- import { TokensWithApyRecord } from "../apy";
3
- import { CaTokenBalance, CreditAccountDataPayload } from "../payload/creditAccount";
4
- import { QuotaInfo } from "../payload/creditManager";
5
- import { TokenData } from "../tokens/tokenData";
6
- import { Asset, AssetWithAmountInTarget } from "./assets";
1
+ import type { Address } from "viem";
2
+ import type { TokensWithApyRecord } from "../apy";
3
+ import type { CaTokenBalance, CreditAccountDataPayload } from "../payload/creditAccount";
4
+ import type { QuotaInfo } from "../payload/creditManager";
5
+ import type { TokenData } from "../tokens/tokenData";
6
+ import type { Asset, AssetWithAmountInTarget } from "./assets";
7
7
  export declare const MIN_INT96 = -39614081257132168796771975168n;
8
8
  export declare const MAX_UINT256 = 115792089237316195423570985008687907853269984665640564039457584007913129639935n;
9
9
  export interface CalcOverallAPYProps {
@@ -1,7 +1,7 @@
1
- import { Address } from "viem";
2
- import { MultiCall } from "../pathfinder/core";
3
- import { ChartsCreditManagerPayload, CreditManagerDataPayload, QuotaInfo } from "../payload/creditManager";
4
- import { LinearModel } from "../payload/pool";
1
+ import type { Address } from "viem";
2
+ import type { MultiCall } from "../pathfinder/core";
3
+ import type { ChartsCreditManagerPayload, CreditManagerDataPayload, QuotaInfo } from "../payload/creditManager";
4
+ import type { LinearModel } from "../payload/pool";
5
5
  export type CreditManagerType = "universal" | "trade" | "farm" | "restaking";
6
6
  export declare class CreditManagerData {
7
7
  readonly address: Address;
@@ -1,6 +1,6 @@
1
- import { Address } from "viem";
2
- import { CreditSessionFilteredPayload, CreditSessionPayload, CreditSessionsAggregatedStatsPayload, SecondaryStatus, UserCreditSessionsAggregatedStatsPayload } from "../payload/creditSession";
3
- import { AssetWithView } from "./assets";
1
+ import type { Address } from "viem";
2
+ import type { CreditSessionFilteredPayload, CreditSessionPayload, CreditSessionsAggregatedStatsPayload, SecondaryStatus, UserCreditSessionsAggregatedStatsPayload } from "../payload/creditSession";
3
+ import type { AssetWithView } from "./assets";
4
4
  export interface CreditSessionAsset extends AssetWithView {
5
5
  ind: number;
6
6
  isForbidden: boolean;
@@ -1,5 +1,5 @@
1
- import { NetworkType } from "@gearbox-protocol/sdk-gov";
2
- import { Address } from "viem";
1
+ import type { NetworkType } from "@gearbox-protocol/sdk-gov";
2
+ import type { Address } from "viem";
3
3
  export declare const TESTNET_CHAINS: Record<NetworkType, number>;
4
4
  type ChartsPriceSource = "chainlink" | "spot";
5
5
  export declare class GearboxBackendApi {
@@ -1,6 +1,6 @@
1
- import { Address } from "viem";
2
- import { TokenData } from "../tokens/tokenData";
3
- import { PartialKeys } from "../utils/types";
1
+ import type { Address } from "viem";
2
+ import type { TokenData } from "../tokens/tokenData";
3
+ import type { PartialKeys } from "../utils/types";
4
4
  import type { TxSerialized } from "./transactions";
5
5
  export interface Display {
6
6
  toString: (tokenData: Record<string, TokenData>) => string;
@@ -1,5 +1,5 @@
1
- import { Address } from "viem";
2
- import { GaugeDataPayload, GaugeStakingDataPayload } from "../payload/gauge";
1
+ import type { Address } from "viem";
2
+ import type { GaugeDataPayload, GaugeStakingDataPayload } from "../payload/gauge";
3
3
  export declare class GaugeData {
4
4
  readonly address: Address;
5
5
  readonly pool: Address;
@@ -1,5 +1,5 @@
1
- import { Address } from "viem";
2
- import { GaugeData } from "./gauge";
1
+ import type { Address } from "viem";
2
+ import type { GaugeData } from "./gauge";
3
3
  export type BaseVoteType = "raise" | "lower";
4
4
  export type VoteType = BaseVoteType | "remove";
5
5
  export interface BaseVote {
@@ -1,5 +1,5 @@
1
- import { Address, PublicClient } from "viem";
2
- import { ChartsPoolDataPayload, LinearModel, PoolDataExtraPayload, PoolDataPayload, UserPoolPayload } from "../payload/pool";
1
+ import type { Address, PublicClient } from "viem";
2
+ import type { ChartsPoolDataPayload, LinearModel, PoolDataExtraPayload, PoolDataPayload, UserPoolPayload } from "../payload/pool";
3
3
  export type PoolType = "universal" | "trade" | "farm";
4
4
  export declare class PoolData {
5
5
  readonly address: Address;
@@ -1,4 +1,4 @@
1
- import { BigNumberish } from "../utils/formatter";
1
+ import type { BigNumberish } from "../utils/formatter";
2
2
  export interface PriceUpdate {
3
3
  token: string;
4
4
  price: BigNumberish;
@@ -1,4 +1,4 @@
1
- import { Protocols } from "@gearbox-protocol/sdk-gov";
1
+ import type { Protocols } from "@gearbox-protocol/sdk-gov";
2
2
  interface ProtocolData {
3
3
  name: string;
4
4
  icon: string;
@@ -1,8 +1,8 @@
1
- import { NetworkType, PartialRecord, Protocols, SupportedContract, SupportedToken } from "@gearbox-protocol/sdk-gov";
2
- import { Address, PublicClient } from "viem";
3
- import { MultiCall } from "../../pathfinder/core";
4
- import { CreditAccountData } from "../creditAccount";
5
- import { CreditManagerData } from "../creditManager";
1
+ import type { NetworkType, PartialRecord, Protocols, SupportedContract, SupportedToken } from "@gearbox-protocol/sdk-gov";
2
+ import type { Address, PublicClient } from "viem";
3
+ import type { MultiCall } from "../../pathfinder/core";
4
+ import type { CreditAccountData } from "../creditAccount";
5
+ import type { CreditManagerData } from "../creditManager";
6
6
  export interface Rewards {
7
7
  contract: SupportedContract;
8
8
  protocol: Protocols.Aura | Protocols.Convex | Protocols.Sky;
@@ -1,8 +1,9 @@
1
- import { NetworkType, Protocols, SupportedToken } from "@gearbox-protocol/sdk-gov";
2
- import { Abi, Address, PublicClient } from "viem";
3
- import { CreditAccountData } from "../creditAccount";
4
- import { CreditManagerData } from "../creditManager";
5
- import { AdapterWithType, Rewards } from "../rewardClaimer";
1
+ import type { NetworkType, SupportedToken } from "@gearbox-protocol/sdk-gov";
2
+ import { Protocols } from "@gearbox-protocol/sdk-gov";
3
+ import type { Abi, Address, PublicClient } from "viem";
4
+ import type { CreditAccountData } from "../creditAccount";
5
+ import type { CreditManagerData } from "../creditManager";
6
+ import type { AdapterWithType, Rewards } from "../rewardClaimer";
6
7
  type DistributionList = Array<Array<RewardDistribution>>;
7
8
  type CallsList = Array<Array<{
8
9
  address: Address;
@@ -1,8 +1,8 @@
1
- import { SupportedToken } from "@gearbox-protocol/sdk-gov";
2
- import { Abi, Address, PublicClient } from "viem";
3
- import { CreditAccountData } from "../creditAccount";
4
- import { CreditManagerData } from "../creditManager";
5
- import { AdapterWithType, Rewards } from "../rewardClaimer";
1
+ import type { SupportedToken } from "@gearbox-protocol/sdk-gov";
2
+ import type { Abi, Address, PublicClient } from "viem";
3
+ import type { CreditAccountData } from "../creditAccount";
4
+ import type { CreditManagerData } from "../creditManager";
5
+ import type { AdapterWithType, Rewards } from "../rewardClaimer";
6
6
  type DistributionList = Array<Array<RewardDistribution>>;
7
7
  type CallsList = Array<Array<{
8
8
  address: Address;
@@ -1,6 +1,6 @@
1
- import { NetworkType, PartialRecord } from "@gearbox-protocol/sdk-gov";
2
- import { Address } from "viem";
3
- import { CreditManagerData } from "./creditManager";
1
+ import type { NetworkType, PartialRecord } from "@gearbox-protocol/sdk-gov";
2
+ import type { Address } from "viem";
3
+ import type { CreditManagerData } from "./creditManager";
4
4
  export type ReleaseAt = undefined | number | PartialRecord<NetworkType, number>;
5
5
  interface CalculateMaxAPYProps {
6
6
  apy: number;
@@ -1,6 +1,7 @@
1
- import { Address } from "viem";
2
- import { MultiCall, PathFinderResult, SwapOperation } from "../pathfinder/core";
3
- import { CreditManagerData } from "./creditManager";
1
+ import type { Address } from "viem";
2
+ import type { MultiCall, PathFinderResult } from "../pathfinder/core";
3
+ import { SwapOperation } from "../pathfinder/core";
4
+ import type { CreditManagerData } from "./creditManager";
4
5
  interface Info {
5
6
  name: string;
6
7
  creditManager: Address;
@@ -1,7 +1,8 @@
1
- import { SupportedContract } from "@gearbox-protocol/sdk-gov";
2
- import { Address } from "viem";
3
- import { Asset } from "./assets";
4
- import { EVMTx, EVMTxProps } from "./eventOrTx";
1
+ import type { SupportedContract } from "@gearbox-protocol/sdk-gov";
2
+ import type { Address } from "viem";
3
+ import type { Asset } from "./assets";
4
+ import type { EVMTxProps } from "./eventOrTx";
5
+ import { EVMTx } from "./eventOrTx";
5
6
  interface CMEvent {
6
7
  readonly creditManager: Address;
7
8
  readonly creditManagerName?: string;
@@ -1,8 +1,8 @@
1
- import { NetworkType, SupportedToken } from "@gearbox-protocol/sdk-gov";
2
- import { Address, PublicClient, WalletClient } from "viem";
3
- import { PoolData } from "../core/pool";
4
- import { TokenData } from "../tokens/tokenData";
5
- import { ExtraRewardApy } from "./apy";
1
+ import type { NetworkType, SupportedToken } from "@gearbox-protocol/sdk-gov";
2
+ import type { Address, PublicClient, WalletClient } from "viem";
3
+ import type { PoolData } from "../core/pool";
4
+ import type { TokenData } from "../tokens/tokenData";
5
+ import type { ExtraRewardApy } from "./apy";
6
6
  export interface GearboxExtraMerkleLmReward {
7
7
  pool: Address;
8
8
  poolToken: Address;
@@ -1,9 +1,9 @@
1
- import { SupportedToken } from "@gearbox-protocol/sdk-gov";
2
- import { Address } from "viem";
3
- import { Asset } from "../core/assets";
4
- import { PoolData } from "../core/pool";
5
- import { TokenData } from "../tokens/tokenData";
6
- import { FarmInfo } from "./api";
1
+ import type { SupportedToken } from "@gearbox-protocol/sdk-gov";
2
+ import type { Address } from "viem";
3
+ import type { Asset } from "../core/assets";
4
+ import type { PoolData } from "../core/pool";
5
+ import type { TokenData } from "../tokens/tokenData";
6
+ import type { FarmInfo } from "./api";
7
7
  interface CalculateV3PoolLmAPYProps {
8
8
  currentTimestamp: number;
9
9
  info: FarmInfo;
@@ -1,8 +1,8 @@
1
- import { NetworkType } from "@gearbox-protocol/sdk-gov";
2
- import { Address } from "viem";
3
- import { Asset } from "../core/assets";
4
- import { PoolData } from "../core/pool";
5
- import { TokenData } from "../tokens/tokenData";
1
+ import type { NetworkType } from "@gearbox-protocol/sdk-gov";
2
+ import type { Address } from "viem";
3
+ import type { Asset } from "../core/assets";
4
+ import type { PoolData } from "../core/pool";
5
+ import type { TokenData } from "../tokens/tokenData";
6
6
  export interface PoolPointsInfo {
7
7
  pool: Address;
8
8
  token: Address;
@@ -1,5 +1,5 @@
1
- import { Address } from "viem";
2
- import { BigNumberish } from "../utils/formatter";
1
+ import type { Address } from "viem";
2
+ import type { BigNumberish } from "../utils/formatter";
3
3
  interface UserOptions {
4
4
  params: {
5
5
  user: string;
@@ -1,7 +1,7 @@
1
- import { SupportedToken } from "@gearbox-protocol/sdk-gov";
2
- import { Address } from "viem";
1
+ import type { SupportedToken } from "@gearbox-protocol/sdk-gov";
2
+ import type { Address } from "viem";
3
3
  import { AbstractParser } from "./abstractParser";
4
- import { IParser } from "./iParser";
4
+ import type { IParser } from "./iParser";
5
5
  export declare class ERC20Parser extends AbstractParser implements IParser {
6
6
  constructor(symbol: SupportedToken);
7
7
  parse(calldata: Address): string;
@@ -1,7 +1,7 @@
1
- import { SupportedContract } from "@gearbox-protocol/sdk-gov";
2
- import { Address } from "viem";
1
+ import type { SupportedContract } from "@gearbox-protocol/sdk-gov";
2
+ import type { Address } from "viem";
3
3
  import { AbstractParser } from "./abstractParser";
4
- import { IParser } from "./iParser";
4
+ import type { IParser } from "./iParser";
5
5
  export declare class AaveV2LendingPoolAdapterParser extends AbstractParser implements IParser {
6
6
  constructor(contract: SupportedContract, isContract: boolean);
7
7
  parse(calldata: Address): string;
@@ -1,7 +1,7 @@
1
- import { SupportedContract } from "@gearbox-protocol/sdk-gov";
2
- import { Address } from "viem";
1
+ import type { SupportedContract } from "@gearbox-protocol/sdk-gov";
2
+ import type { Address } from "viem";
3
3
  import { AbstractParser } from "./abstractParser";
4
- import { IParser } from "./iParser";
4
+ import type { IParser } from "./iParser";
5
5
  export declare class AaveV2WrappedATokenAdapterParser extends AbstractParser implements IParser {
6
6
  constructor(contract: SupportedContract, isContract: boolean);
7
7
  parse(calldata: Address): string;
@@ -1,6 +1,6 @@
1
- import { SupportedToken, TickerToken } from "@gearbox-protocol/sdk-gov";
2
- import { Abi, Address } from "viem";
3
- import { BigNumberish } from "../utils/formatter";
1
+ import type { SupportedToken, TickerToken } from "@gearbox-protocol/sdk-gov";
2
+ import type { Abi, Address } from "viem";
3
+ import type { BigNumberish } from "../utils/formatter";
4
4
  export interface ParsedObject {
5
5
  address: Address;
6
6
  functionName: string;
@@ -1,7 +1,7 @@
1
- import { SupportedContract } from "@gearbox-protocol/sdk-gov";
2
- import { Address } from "viem";
1
+ import type { SupportedContract } from "@gearbox-protocol/sdk-gov";
2
+ import type { Address } from "viem";
3
3
  import { AbstractParser } from "./abstractParser";
4
- import { IParser } from "./iParser";
4
+ import type { IParser } from "./iParser";
5
5
  export declare class BalancerV2VaultParser extends AbstractParser implements IParser {
6
6
  constructor(contract: SupportedContract, isContract: boolean);
7
7
  parse(calldata: Address): string;
@@ -1,7 +1,7 @@
1
- import { SupportedContract } from "@gearbox-protocol/sdk-gov";
2
- import { Address } from "viem";
1
+ import type { SupportedContract } from "@gearbox-protocol/sdk-gov";
2
+ import type { Address } from "viem";
3
3
  import { AbstractParser } from "./abstractParser";
4
- import { IParser } from "./iParser";
4
+ import type { IParser } from "./iParser";
5
5
  export declare class CompoundV2CTokenAdapterParser extends AbstractParser implements IParser {
6
6
  constructor(contract: SupportedContract, isContract: boolean);
7
7
  parse(calldata: Address): string;
@@ -1,8 +1,8 @@
1
- import { SupportedContract } from "@gearbox-protocol/sdk-gov";
2
- import { Address } from "viem";
3
- import { BigNumberish } from "../utils/formatter";
1
+ import type { SupportedContract } from "@gearbox-protocol/sdk-gov";
2
+ import type { Address } from "viem";
3
+ import type { BigNumberish } from "../utils/formatter";
4
4
  import { AbstractParser } from "./abstractParser";
5
- import { IParser } from "./iParser";
5
+ import type { IParser } from "./iParser";
6
6
  export declare class ConvexBaseRewardPoolAdapterParser extends AbstractParser implements IParser {
7
7
  constructor(contract: SupportedContract, isContract: boolean);
8
8
  parse(calldata: Address): string;
@@ -1,7 +1,7 @@
1
- import { Address, SupportedContract } from "@gearbox-protocol/sdk-gov";
2
- import { BigNumberish } from "../utils/formatter";
1
+ import type { Address, SupportedContract } from "@gearbox-protocol/sdk-gov";
2
+ import type { BigNumberish } from "../utils/formatter";
3
3
  import { AbstractParser } from "./abstractParser";
4
- import { IParser } from "./iParser";
4
+ import type { IParser } from "./iParser";
5
5
  export declare class ConvexBoosterAdapterParser extends AbstractParser implements IParser {
6
6
  constructor(contract: SupportedContract, isContract: boolean);
7
7
  parse(calldata: Address): string;
@@ -1,7 +1,7 @@
1
- import { NormalToken } from "@gearbox-protocol/sdk-gov";
2
- import { Address } from "viem";
1
+ import type { NormalToken } from "@gearbox-protocol/sdk-gov";
2
+ import type { Address } from "viem";
3
3
  import { AbstractParser } from "./abstractParser";
4
- import { IParser } from "./iParser";
4
+ import type { IParser } from "./iParser";
5
5
  export declare class ConvexRewardPoolParser extends AbstractParser implements IParser {
6
6
  constructor(token: NormalToken);
7
7
  parse(calldata: Address): string;
@@ -1,8 +1,8 @@
1
- import { SupportedToken } from "@gearbox-protocol/sdk-gov";
2
- import { Address } from "viem";
3
- import { BigNumberish } from "../utils/formatter";
1
+ import type { SupportedToken } from "@gearbox-protocol/sdk-gov";
2
+ import type { Address } from "viem";
3
+ import type { BigNumberish } from "../utils/formatter";
4
4
  import { AbstractParser } from "./abstractParser";
5
- import { IParser } from "./iParser";
5
+ import type { IParser } from "./iParser";
6
6
  export declare class CreditFacadeParser extends AbstractParser implements IParser {
7
7
  version: number;
8
8
  constructor(token: SupportedToken, version: number);
@@ -1,6 +1,6 @@
1
- import { Address } from "viem";
1
+ import type { Address } from "viem";
2
2
  import { AbstractParser } from "./abstractParser";
3
- import { IParser } from "./iParser";
3
+ import type { IParser } from "./iParser";
4
4
  export declare class CreditManagerParser extends AbstractParser implements IParser {
5
5
  constructor(version: number);
6
6
  parse(calldata: Address): string;
@@ -1,8 +1,8 @@
1
- import { SupportedContract, SupportedToken } from "@gearbox-protocol/sdk-gov";
2
- import { Address } from "viem";
3
- import { BigNumberish } from "../utils/formatter";
1
+ import type { SupportedContract, SupportedToken } from "@gearbox-protocol/sdk-gov";
2
+ import type { Address } from "viem";
3
+ import type { BigNumberish } from "../utils/formatter";
4
4
  import { AbstractParser } from "./abstractParser";
5
- import { IParser } from "./iParser";
5
+ import type { IParser } from "./iParser";
6
6
  export declare class CurveAdapterParser extends AbstractParser implements IParser {
7
7
  protected lpToken: SupportedToken;
8
8
  constructor(contract: SupportedContract, isContract: boolean);
@@ -1,7 +1,7 @@
1
- import { SupportedContract } from "@gearbox-protocol/sdk-gov";
2
- import { Address } from "viem";
1
+ import type { SupportedContract } from "@gearbox-protocol/sdk-gov";
2
+ import type { Address } from "viem";
3
3
  import { AbstractParser } from "./abstractParser";
4
- import { IParser } from "./iParser";
4
+ import type { IParser } from "./iParser";
5
5
  export declare class ERC4626AdapterParser extends AbstractParser implements IParser {
6
6
  constructor(contract: SupportedContract, isContract: boolean);
7
7
  parse(calldata: Address): string;
@@ -1,5 +1,5 @@
1
- import { Address } from "viem";
2
- import { ParsedObject } from "./abstractParser";
1
+ import type { Address } from "viem";
2
+ import type { ParsedObject } from "./abstractParser";
3
3
  export interface IParser {
4
4
  parse: (calldata: Address) => string;
5
5
  parseToObject?: (address: Address, calldata: Address) => ParsedObject;
@@ -1,7 +1,7 @@
1
- import { SupportedContract } from "@gearbox-protocol/sdk-gov";
2
- import { Address } from "viem";
1
+ import type { SupportedContract } from "@gearbox-protocol/sdk-gov";
2
+ import type { Address } from "viem";
3
3
  import { AbstractParser } from "./abstractParser";
4
- import { IParser } from "./iParser";
4
+ import type { IParser } from "./iParser";
5
5
  export declare class LidoAdapterParser extends AbstractParser implements IParser {
6
6
  constructor(contract: SupportedContract, isContract: boolean);
7
7
  parse(calldata: Address): string;
@@ -1,7 +1,7 @@
1
- import { SupportedToken } from "@gearbox-protocol/sdk-gov";
2
- import { Address } from "viem";
1
+ import type { SupportedToken } from "@gearbox-protocol/sdk-gov";
2
+ import type { Address } from "viem";
3
3
  import { AbstractParser } from "./abstractParser";
4
- import { IParser } from "./iParser";
4
+ import type { IParser } from "./iParser";
5
5
  export declare class LidoSTETHParser extends AbstractParser implements IParser {
6
6
  constructor(symbol: SupportedToken);
7
7
  parse(calldata: Address): string;
@@ -1,6 +1,6 @@
1
- import { Address } from "viem";
1
+ import type { Address } from "viem";
2
2
  import { AbstractParser } from "./abstractParser";
3
- import { IParser } from "./iParser";
3
+ import type { IParser } from "./iParser";
4
4
  export declare class PriceOracleParser extends AbstractParser implements IParser {
5
5
  constructor();
6
6
  parse(calldata: Address): string;
@@ -1,8 +1,8 @@
1
- import { SupportedContract } from "@gearbox-protocol/sdk-gov";
2
- import { Address } from "viem";
3
- import { BigNumberish } from "../utils/formatter";
1
+ import type { SupportedContract } from "@gearbox-protocol/sdk-gov";
2
+ import type { Address } from "viem";
3
+ import type { BigNumberish } from "../utils/formatter";
4
4
  import { AbstractParser } from "./abstractParser";
5
- import { IParser } from "./iParser";
5
+ import type { IParser } from "./iParser";
6
6
  export declare class StakingRewardsAdapterParser extends AbstractParser implements IParser {
7
7
  constructor(contract: SupportedContract, isContract: boolean);
8
8
  parse(calldata: Address): string;
@@ -1,8 +1,8 @@
1
- import { NetworkType, SupportedContract, SupportedToken } from "@gearbox-protocol/sdk-gov";
2
- import { Address } from "viem";
3
- import { MultiCall } from "../pathfinder/core";
4
- import { AbstractParser } from "./abstractParser";
5
- import { IParser } from "./iParser";
1
+ import type { NetworkType, SupportedContract, SupportedToken } from "@gearbox-protocol/sdk-gov";
2
+ import type { Address } from "viem";
3
+ import type { MultiCall } from "../pathfinder/core";
4
+ import type { AbstractParser } from "./abstractParser";
5
+ import type { IParser } from "./iParser";
6
6
  export interface AdapterForParser {
7
7
  adapter: Address;
8
8
  contract: Address;
@@ -1,7 +1,7 @@
1
- import { SupportedContract } from "@gearbox-protocol/sdk-gov";
2
- import { Address } from "viem";
1
+ import type { SupportedContract } from "@gearbox-protocol/sdk-gov";
2
+ import type { Address } from "viem";
3
3
  import { AbstractParser } from "./abstractParser";
4
- import { IParser } from "./iParser";
4
+ import type { IParser } from "./iParser";
5
5
  export declare class UniswapV2AdapterParser extends AbstractParser implements IParser {
6
6
  constructor(contract: SupportedContract, isContract: boolean);
7
7
  parse(calldata: Address): string;
@@ -1,7 +1,7 @@
1
- import { SupportedContract } from "@gearbox-protocol/sdk-gov";
2
- import { Address } from "viem";
1
+ import type { SupportedContract } from "@gearbox-protocol/sdk-gov";
2
+ import type { Address } from "viem";
3
3
  import { AbstractParser } from "./abstractParser";
4
- import { IParser } from "./iParser";
4
+ import type { IParser } from "./iParser";
5
5
  export declare class UniswapV3AdapterParser extends AbstractParser implements IParser {
6
6
  constructor(contract: SupportedContract, isContract: boolean);
7
7
  parse(calldata: Address): string;
@@ -1,7 +1,7 @@
1
- import { SupportedContract } from "@gearbox-protocol/sdk-gov";
2
- import { Address } from "viem";
1
+ import type { SupportedContract } from "@gearbox-protocol/sdk-gov";
2
+ import type { Address } from "viem";
3
3
  import { AbstractParser } from "./abstractParser";
4
- import { IParser } from "./iParser";
4
+ import type { IParser } from "./iParser";
5
5
  export declare class WstETHAdapterParser extends AbstractParser implements IParser {
6
6
  constructor(contract: SupportedContract, isContract: boolean);
7
7
  parse(calldata: Address): string;
@@ -1,7 +1,7 @@
1
- import { SupportedContract } from "@gearbox-protocol/sdk-gov";
2
- import { Address } from "viem";
1
+ import type { SupportedContract } from "@gearbox-protocol/sdk-gov";
2
+ import type { Address } from "viem";
3
3
  import { AbstractParser } from "./abstractParser";
4
- import { IParser } from "./iParser";
4
+ import type { IParser } from "./iParser";
5
5
  export declare class YearnV2AdapterParser extends AbstractParser implements IParser {
6
6
  constructor(contract: SupportedContract, isContract: boolean);
7
7
  parse(calldata: Address): string;
@@ -1,4 +1,4 @@
1
- import { Address } from "viem";
1
+ import type { Address } from "viem";
2
2
  export declare enum SwapOperation {
3
3
  EXACT_INPUT = 0,
4
4
  EXACT_INPUT_ALL = 1,
@@ -1,6 +1,6 @@
1
- import { BalancerLPToken, CurveLPToken, NetworkType } from "@gearbox-protocol/sdk-gov";
2
- import { Address } from "viem";
3
- import { CaTokenBalance } from "../payload/creditAccount";
1
+ import type { BalancerLPToken, CurveLPToken, NetworkType } from "@gearbox-protocol/sdk-gov";
2
+ import type { Address } from "viem";
3
+ import type { CaTokenBalance } from "../payload/creditAccount";
4
4
  export interface PathOption {
5
5
  target: Address;
6
6
  option: number;
@@ -1,10 +1,10 @@
1
- import { NetworkType } from "@gearbox-protocol/sdk-gov";
2
- import { Address, GetContractReturnType, PublicClient } from "viem";
3
- import { Asset } from "../core/assets";
4
- import { CreditAccountData } from "../core/creditAccount";
5
- import { CreditManagerData } from "../core/creditManager";
1
+ import type { NetworkType } from "@gearbox-protocol/sdk-gov";
2
+ import type { Address, GetContractReturnType, PublicClient } from "viem";
3
+ import type { Asset } from "../core/assets";
4
+ import type { CreditAccountData } from "../core/creditAccount";
5
+ import type { CreditManagerData } from "../core/creditManager";
6
6
  import { iRouterV3Abi } from "../types";
7
- import { PathFinderCloseResult, PathFinderOpenStrategyResult, PathFinderResult, SwapOperation } from "./core";
7
+ import type { PathFinderCloseResult, PathFinderOpenStrategyResult, PathFinderResult, SwapOperation } from "./core";
8
8
  interface FindAllSwapsProps {
9
9
  creditAccount: CreditAccountData;
10
10
  swapOperation: SwapOperation;
@@ -1,5 +1,5 @@
1
- import { Address, PublicClient } from "viem";
2
- import { MultiCall } from "./core";
1
+ import type { Address, PublicClient } from "viem";
2
+ import type { MultiCall } from "./core";
3
3
  export interface FeeInfo {
4
4
  type: KnownFeeTypes;
5
5
  value: bigint;
@@ -1,4 +1,4 @@
1
- import { Address } from "viem";
1
+ import type { Address } from "viem";
2
2
  export type BotBaseType = "liquidationProtection";
3
3
  export type LiquidationBotType = "deleverageBotPegged" | "deleverageBotLV" | "deleverageBotHV";
4
4
  export type BotDetailedType = LiquidationBotType;
@@ -1,4 +1,4 @@
1
- import { Address } from "viem";
1
+ import type { Address } from "viem";
2
2
  export interface CaTokenBalance {
3
3
  token: Address;
4
4
  balance: bigint;
@@ -1,6 +1,6 @@
1
- import { Address } from "viem";
2
- import { BigNumberish } from "../utils/formatter";
3
- import { PoolDataPayload } from "./pool";
1
+ import type { Address } from "viem";
2
+ import type { BigNumberish } from "../utils/formatter";
3
+ import type { PoolDataPayload } from "./pool";
4
4
  export interface CreditManagerDebtParamsSDK {
5
5
  creditManager: Address;
6
6
  borrowed: bigint;
@@ -1,5 +1,5 @@
1
- import { Address } from "viem";
2
- import { BigNumberish } from "../utils/formatter";
1
+ import type { Address } from "viem";
2
+ import type { BigNumberish } from "../utils/formatter";
3
3
  export interface CreditSessionBalancePayload {
4
4
  BI: string;
5
5
  F: number;
@@ -1,4 +1,4 @@
1
- import { Address } from "viem";
1
+ import type { Address } from "viem";
2
2
  export interface MultiVote {
3
3
  votingContract: Address;
4
4
  voteAmount: bigint;
@@ -1,4 +1,4 @@
1
- import { Address } from "viem";
1
+ import type { Address } from "viem";
2
2
  export interface PoolDataPayload {
3
3
  addr: Address;
4
4
  underlying: Address;
@@ -1,5 +1,5 @@
1
- import { SupportedToken } from "@gearbox-protocol/sdk-gov";
2
- import { Address } from "viem";
1
+ import type { SupportedToken } from "@gearbox-protocol/sdk-gov";
2
+ import type { Address } from "viem";
3
3
  export interface TokenDataPayload {
4
4
  title?: string;
5
5
  addr: Address;
@@ -1,6 +1,6 @@
1
- import { NetworkType, SupportedToken, TickerInfo } from "@gearbox-protocol/sdk-gov";
2
- import { SignedDataPackage } from "@redstone-finance/protocol";
3
- import { Address, PublicClient } from "viem";
1
+ import type { NetworkType, SupportedToken, TickerInfo } from "@gearbox-protocol/sdk-gov";
2
+ import type { SignedDataPackage } from "@redstone-finance/protocol";
3
+ import type { Address, PublicClient } from "viem";
4
4
  export declare const DEFAULT_DATA_SERVICE_ID = "redstone-primary-prod";
5
5
  export declare const REDSTONE_SIGNERS_THRESHOLD: number;
6
6
  interface RedstonePriceFeedInfo {
@@ -1,6 +1,6 @@
1
- import { SupportedToken } from "@gearbox-protocol/sdk-gov";
2
- import { Address } from "viem";
3
- import { TokenDataPayload } from "../payload/token";
1
+ import type { SupportedToken } from "@gearbox-protocol/sdk-gov";
2
+ import type { Address } from "viem";
3
+ import type { TokenDataPayload } from "../payload/token";
4
4
  export declare class TokenData {
5
5
  readonly title: string;
6
6
  readonly symbol: SupportedToken;
@@ -1,4 +1,4 @@
1
- import { Abi, Address, PublicClient } from "viem";
1
+ import type { Abi, Address, PublicClient } from "viem";
2
2
  export interface MinimalTxInfo {
3
3
  hash: string;
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "3.0.0-next.301",
3
+ "version": "3.0.0-next.303",
4
4
  "description": "Gearbox SDK",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -28,7 +28,7 @@
28
28
  "test": "npx mocha -r ts-node/register -r dotenv/config 'src/**/*.spec.ts'"
29
29
  },
30
30
  "dependencies": {
31
- "@gearbox-protocol/sdk-gov": "^2.36.5",
31
+ "@gearbox-protocol/sdk-gov": "^2.36.6",
32
32
  "@wagmi/cli": "^2.1.13",
33
33
  "axios": "^1.2.6",
34
34
  "decimal.js-light": "^2.5.1",
@@ -37,16 +37,16 @@
37
37
  "devDependencies": {
38
38
  "@1inch/farming": "^3.1.0",
39
39
  "@1inch/solidity-utils": "^2.2.27",
40
- "@commitlint/cli": "^17.6.7",
41
- "@commitlint/config-conventional": "^17.6.7",
40
+ "@commitlint/cli": "^19.6.1",
41
+ "@commitlint/config-conventional": "^19.6.0",
42
42
  "@gearbox-protocol/bots-v3": "^1.5.1",
43
43
  "@gearbox-protocol/core-v2": "1.19.0-base.17",
44
44
  "@gearbox-protocol/core-v3": "^1.51.0",
45
- "@gearbox-protocol/eslint-config": "^1.6.1",
45
+ "@gearbox-protocol/eslint-config": "^2.0.0-next.2",
46
46
  "@gearbox-protocol/integrations-v3": "^1.44.0",
47
47
  "@gearbox-protocol/oracles-v3": "^1.13.0",
48
48
  "@gearbox-protocol/periphery-v3": "^1.6.1",
49
- "@gearbox-protocol/prettier-config": "^1.5.0",
49
+ "@gearbox-protocol/prettier-config": "^2.0.0",
50
50
  "@gearbox-protocol/router": "^1.5.5",
51
51
  "@gearbox-protocol/router-v3": "^1.41.0",
52
52
  "@openzeppelin/contracts": "^4.9.3",
@@ -59,7 +59,7 @@
59
59
  "@types/rimraf": "^3.0.2",
60
60
  "chai": "^4.3.6",
61
61
  "dotenv": "^16.0.1",
62
- "eslint": "^8.46.0",
62
+ "eslint": "^8.57.1",
63
63
  "husky": ">=6",
64
64
  "jest": "^29.7.0",
65
65
  "lint-staged": "^13.2.3",