@gearbox-protocol/sdk 17.12.2 → 17.13.0-next.10
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/dist/cjs/dev/index.js +2 -0
- package/dist/cjs/dev/lowerHealthFactor.js +32 -0
- package/dist/cjs/dev/ltUtils.js +3 -2
- package/dist/cjs/model/analytics.schema.js +71 -7
- package/dist/cjs/model/errors/index.js +4 -0
- package/dist/cjs/model/errors/liquidation-errors.js +9 -0
- package/dist/cjs/model/errors/operation-errors.js +27 -0
- package/dist/cjs/model/index.js +9 -1
- package/dist/cjs/model/liquidations.schema.js +5 -3
- package/dist/cjs/model/opportunities.schema.js +1 -1
- package/dist/cjs/model/positions.schema.js +3 -0
- package/dist/cjs/offchain/analytics/OffchainAnalyticsPositions.js +8 -0
- package/dist/cjs/onchain/accounts/CreditAccountsServiceV310.js +0 -37
- package/dist/cjs/onchain/accounts/index.js +3 -0
- package/dist/cjs/onchain/accounts/intents/index.js +1 -0
- package/dist/cjs/onchain/accounts/intents/operations.js +1 -1
- package/dist/cjs/onchain/accounts/intents/plan.js +21 -0
- package/dist/cjs/onchain/accounts/intents/realize.js +29 -7
- package/dist/cjs/onchain/accounts/intents/resolveQuotaUpdate.js +149 -0
- package/dist/cjs/onchain/accounts/intents/testing/sdk-mock.js +1 -0
- package/dist/cjs/onchain/accounts/intents/tests/update-quota.fixtures.js +102 -0
- package/dist/cjs/onchain/accounts/intents/utils/index.js +1 -0
- package/dist/cjs/onchain/accounts/intents/utils/quotas-for-update.js +28 -10
- package/dist/cjs/onchain/accounts/liquidations/LiquidationsService.js +175 -5
- package/dist/cjs/onchain/accounts/liquidations/MultichainLiquidationsService.js +28 -0
- package/dist/cjs/onchain/accounts/liquidations/constants.js +1 -1
- package/dist/cjs/onchain/accounts/liquidations/index.js +3 -0
- package/dist/cjs/onchain/accounts/liquidations/partialLiquidation.js +70 -0
- package/dist/cjs/onchain/base/TokensMeta.js +15 -0
- package/dist/cjs/onchain/constants/index.js +1 -0
- package/dist/cjs/onchain/constants/math.js +6 -0
- package/dist/cjs/onchain/index.js +15 -1
- package/dist/cjs/onchain/market/credit/CreditSuite.js +0 -60
- package/dist/cjs/onchain/market/credit/collateralUtils.js +3 -2
- package/dist/cjs/onchain/market/index.js +1 -1
- package/dist/cjs/onchain/market/math.js +34 -12
- package/dist/cjs/onchain/pools/PoolService.js +1 -0
- package/dist/cjs/onchain/positions/PositionsService.js +1 -0
- package/dist/cjs/onchain/positions/calcHealthFactor.js +1 -1
- package/dist/cjs/onchain/preview/preview/CreditAccountState.js +4 -2
- package/dist/cjs/onchain/validation/bundles/checkCreditOperation.js +2 -0
- package/dist/cjs/onchain/validation/bundles/checkLiquidationEligibility.js +8 -1
- package/dist/cjs/onchain/validation/bundles/checkLiquidationFunding.js +2 -1
- package/dist/cjs/onchain/validation/bundles/checkQuotaUpdates.js +45 -0
- package/dist/cjs/onchain/validation/bundles/index.js +2 -0
- package/dist/cjs/onchain/validation/checkLiquidation.js +2 -1
- package/dist/cjs/onchain/validation/checks/checkMaxQuota.js +18 -0
- package/dist/cjs/onchain/validation/checks/checkPartiallyLiquidatable.js +13 -0
- package/dist/cjs/onchain/validation/checks/checkQuotaActive.js +10 -0
- package/dist/cjs/onchain/validation/checks/checkQuotaChange.js +18 -0
- package/dist/cjs/onchain/validation/checks/index.js +8 -0
- package/dist/cjs/onchain/validation/index.js +10 -0
- package/dist/cjs/sdk/liquidations/LiquidationsNamespace.js +14 -0
- package/dist/cjs/sdk/prepare/PrepareApi.js +67 -0
- package/dist/cjs/sdk/rewards/merkl-api.js +1 -1
- package/dist/cjs/sdk/rewards/turtle-api.js +1 -1
- package/dist/esm/dev/index.js +2 -1
- package/dist/esm/dev/lowerHealthFactor.js +31 -0
- package/dist/esm/dev/ltUtils.js +3 -2
- package/dist/esm/dev/mint/index.js +1 -2
- package/dist/esm/model/analytics.schema.js +69 -9
- package/dist/esm/model/errors/index.js +3 -3
- package/dist/esm/model/errors/liquidation-errors.js +9 -1
- package/dist/esm/model/errors/operation-errors.js +25 -1
- package/dist/esm/model/index.js +5 -5
- package/dist/esm/model/liquidations.schema.js +5 -3
- package/dist/esm/model/opportunities.schema.js +1 -1
- package/dist/esm/model/positions.schema.js +3 -0
- package/dist/esm/offchain/analytics/OffchainAnalyticsPositions.js +9 -1
- package/dist/esm/offchain/notices/index.js +1 -2
- package/dist/esm/offchain/opportunities/index.js +1 -2
- package/dist/esm/offchain/positions/index.js +1 -2
- package/dist/esm/onchain/abi/index.js +1 -2
- package/dist/esm/onchain/accounts/CreditAccountsServiceV310.js +0 -37
- package/dist/esm/onchain/accounts/index.js +2 -1
- package/dist/esm/onchain/accounts/intents/index.js +2 -1
- package/dist/esm/onchain/accounts/intents/operations.js +1 -1
- package/dist/esm/onchain/accounts/intents/plan.js +22 -2
- package/dist/esm/onchain/accounts/intents/realize.js +29 -7
- package/dist/esm/onchain/accounts/intents/resolveQuotaUpdate.js +148 -0
- package/dist/esm/onchain/accounts/intents/testing/sdk-mock.js +1 -0
- package/dist/esm/onchain/accounts/intents/tests/update-quota.fixtures.js +92 -0
- package/dist/esm/onchain/accounts/intents/utils/index.js +2 -2
- package/dist/esm/onchain/accounts/intents/utils/quotas-for-update.js +28 -11
- package/dist/esm/onchain/accounts/liquidations/LiquidationsService.js +175 -5
- package/dist/esm/onchain/accounts/liquidations/MultichainLiquidationsService.js +28 -0
- package/dist/esm/onchain/accounts/liquidations/constants.js +1 -1
- package/dist/esm/onchain/accounts/liquidations/index.js +2 -1
- package/dist/esm/onchain/accounts/liquidations/partialLiquidation.js +68 -0
- package/dist/esm/onchain/base/TokensMeta.js +15 -0
- package/dist/esm/onchain/constants/index.js +2 -2
- package/dist/esm/onchain/constants/math.js +6 -1
- package/dist/esm/onchain/index.js +9 -3
- package/dist/esm/onchain/market/adapters/abi/midas/index.js +1 -2
- package/dist/esm/onchain/market/credit/CreditSuite.js +2 -62
- package/dist/esm/onchain/market/credit/collateralUtils.js +3 -2
- package/dist/esm/onchain/market/index.js +2 -2
- package/dist/esm/onchain/market/math.js +34 -12
- package/dist/esm/onchain/pools/PoolService.js +1 -0
- package/dist/esm/onchain/pools/index.js +1 -2
- package/dist/esm/onchain/positions/PositionsService.js +1 -0
- package/dist/esm/onchain/positions/calcHealthFactor.js +1 -1
- package/dist/esm/onchain/preview/preview/CreditAccountState.js +4 -2
- package/dist/esm/onchain/utils/internal/index.js +1 -2
- package/dist/esm/onchain/validation/bundles/checkCreditOperation.js +2 -0
- package/dist/esm/onchain/validation/bundles/checkLiquidationEligibility.js +8 -1
- package/dist/esm/onchain/validation/bundles/checkLiquidationFunding.js +2 -1
- package/dist/esm/onchain/validation/bundles/checkQuotaUpdates.js +44 -0
- package/dist/esm/onchain/validation/bundles/index.js +2 -1
- package/dist/esm/onchain/validation/checkLiquidation.js +2 -1
- package/dist/esm/onchain/validation/checks/checkMaxQuota.js +17 -0
- package/dist/esm/onchain/validation/checks/checkPartiallyLiquidatable.js +12 -0
- package/dist/esm/onchain/validation/checks/checkQuotaActive.js +9 -0
- package/dist/esm/onchain/validation/checks/checkQuotaChange.js +17 -0
- package/dist/esm/onchain/validation/checks/index.js +5 -1
- package/dist/esm/onchain/validation/index.js +6 -1
- package/dist/esm/permissionless/api/chains/index.js +1 -2
- package/dist/esm/permissionless/api/oracles/index.js +1 -2
- package/dist/esm/permissionless/api/transactions/index.js +1 -2
- package/dist/esm/permissionless/bindings/router/index.js +1 -2
- package/dist/esm/permissionless/core/index.js +1 -2
- package/dist/esm/plugins/accounts/index.js +1 -2
- package/dist/esm/plugins/accounts-counter/index.js +1 -2
- package/dist/esm/plugins/bots/abi/index.js +1 -2
- package/dist/esm/sdk/analytics/index.js +1 -2
- package/dist/esm/sdk/execute/index.js +1 -2
- package/dist/esm/sdk/liquidations/LiquidationsNamespace.js +14 -0
- package/dist/esm/sdk/liquidations/index.js +1 -2
- package/dist/esm/sdk/opportunities/index.js +1 -2
- package/dist/esm/sdk/positions/index.js +1 -2
- package/dist/esm/sdk/prepare/PrepareApi.js +67 -0
- package/dist/esm/sdk/preview/index.js +1 -2
- package/dist/esm/sdk/rewards/merkl-api.js +1 -1
- package/dist/esm/sdk/rewards/turtle-api.js +1 -1
- package/dist/types/abi/310/configure/creditSuiteParams.d.ts +4 -5
- package/dist/types/abi/310/configure/iCreditConfigureActions.d.ts +2 -3
- package/dist/types/abi/310/configure/iPoolConfigureActions.d.ts +2 -3
- package/dist/types/abi/310/configure/iPriceOracleConfigureActions.d.ts +2 -3
- package/dist/types/abi/310/crossChainMultisig.d.ts +2 -3
- package/dist/types/abi/310/generated.d.ts +15 -16
- package/dist/types/abi/310/iBytecodeRepository.d.ts +2 -3
- package/dist/types/abi/310/iLinearInterestRateModelV310.d.ts +2 -3
- package/dist/types/abi/310/iMarketConfiguratorFactory.d.ts +2 -3
- package/dist/types/abi/310/iPriceFeedStore.d.ts +2 -3
- package/dist/types/abi/310/iTreasurySplitter.d.ts +2 -3
- package/dist/types/abi/310/instanceManager.d.ts +2 -3
- package/dist/types/abi/AccountMigrator.d.ts +2 -3
- package/dist/types/abi/ILiquidationCompressorV313.d.ts +2 -3
- package/dist/types/abi/IWithdrawalCompressorV310.d.ts +2 -3
- package/dist/types/abi/IWithdrawalCompressorV311.d.ts +2 -3
- package/dist/types/abi/IWithdrawalCompressorV313.d.ts +2 -3
- package/dist/types/abi/compressors/creditAccountCompressor.d.ts +2 -3
- package/dist/types/abi/compressors/creditSuiteCompressor.d.ts +2 -3
- package/dist/types/abi/compressors/defillamaCompressor.d.ts +2 -3
- package/dist/types/abi/compressors/gaugeCompressor.d.ts +2 -3
- package/dist/types/abi/compressors/liquidationCompressor.d.ts +2 -3
- package/dist/types/abi/compressors/marketCompressor.d.ts +2 -3
- package/dist/types/abi/compressors/peripheryCompressor.d.ts +2 -3
- package/dist/types/abi/compressors/priceFeedCompressor.d.ts +2 -3
- package/dist/types/abi/compressors/rewardsCompressor.d.ts +2 -3
- package/dist/types/abi/compressors/rwaCompressor.d.ts +2 -3
- package/dist/types/abi/compressors/subcompressors/liquidation/midasLiquidationSubcompressor.d.ts +2 -3
- package/dist/types/abi/compressors/subcompressors/liquidation/securitizeLiquidationSubcompressor.d.ts +2 -3
- package/dist/types/abi/compressors/subcompressors/rwa/onDemandRWAUnderlyingSubcompressor.d.ts +2 -3
- package/dist/types/abi/compressors/subcompressors/rwa/securitizeRWAFactorySubcompressor.d.ts +2 -3
- package/dist/types/abi/compressors/subcompressors/withdrawal/infinifiWithdrawalSubcompressor.d.ts +2 -3
- package/dist/types/abi/compressors/subcompressors/withdrawal/kelpLRTWithdrawalSubcompressor.d.ts +2 -3
- package/dist/types/abi/compressors/subcompressors/withdrawal/mellowFlexibleDepositSubcompressor.d.ts +2 -3
- package/dist/types/abi/compressors/subcompressors/withdrawal/mellowFlexibleRedeemSubcompressor.d.ts +2 -3
- package/dist/types/abi/compressors/subcompressors/withdrawal/mellowWithdrawalSubcompressor.d.ts +2 -3
- package/dist/types/abi/compressors/subcompressors/withdrawal/midasWithdrawalSubcompressor.d.ts +2 -3
- package/dist/types/abi/compressors/subcompressors/withdrawal/securitizeRedemptionSubcompressor.d.ts +2 -3
- package/dist/types/abi/compressors/subcompressors/withdrawal/upshiftWithdrawalSubcompressor.d.ts +2 -3
- package/dist/types/abi/compressors/tokenCompressor.d.ts +2 -3
- package/dist/types/abi/compressors/withdrawalCompressor.d.ts +2 -3
- package/dist/types/abi/errors.d.ts +11 -12
- package/dist/types/abi/governance/batchesChain.d.ts +2 -3
- package/dist/types/abi/governance/governor.d.ts +2 -3
- package/dist/types/abi/governance/iTimeLock.d.ts +2 -3
- package/dist/types/abi/helpers/redemptionLogger.d.ts +2 -3
- package/dist/types/abi/iAirdropDistributor.d.ts +2 -3
- package/dist/types/abi/iBaseRewardPool.d.ts +2 -3
- package/dist/types/abi/iCurvePool.d.ts +2 -3
- package/dist/types/abi/iDefaultAccountFactoryV3.d.ts +2 -3
- package/dist/types/abi/iDegenNFTV2.d.ts +2 -3
- package/dist/types/abi/iERC20.d.ts +2 -3
- package/dist/types/abi/iERC20Permit.d.ts +2 -3
- package/dist/types/abi/iERC20Zapper.d.ts +2 -3
- package/dist/types/abi/iERC20ZapperDeposits.d.ts +2 -3
- package/dist/types/abi/iETHZapper.d.ts +2 -3
- package/dist/types/abi/iETHZapperDeposits.d.ts +2 -3
- package/dist/types/abi/iExpirable.d.ts +2 -3
- package/dist/types/abi/iFarmingPool.d.ts +2 -3
- package/dist/types/abi/iInterestRateModel.d.ts +2 -3
- package/dist/types/abi/iMulticall3.d.ts +2 -3
- package/dist/types/abi/iOffchainOracle.d.ts +2 -3
- package/dist/types/abi/iPausable.d.ts +2 -3
- package/dist/types/abi/iPhantomToken.d.ts +2 -3
- package/dist/types/abi/iPriceFeed.d.ts +2 -3
- package/dist/types/abi/iRedemptionLoggerV310.d.ts +2 -3
- package/dist/types/abi/iStateSerializer.d.ts +2 -3
- package/dist/types/abi/iUpdatablePriceFeed.d.ts +2 -3
- package/dist/types/abi/iVersion.d.ts +2 -3
- package/dist/types/abi/iZapper.d.ts +2 -3
- package/dist/types/abi/ierc4626Adapter.d.ts +2 -3
- package/dist/types/abi/mellow.d.ts +6 -7
- package/dist/types/abi/migration.d.ts +3 -4
- package/dist/types/abi/router/balancerV2Worker.d.ts +2 -3
- package/dist/types/abi/router/balancerV3Worker.d.ts +2 -3
- package/dist/types/abi/router/balancerV3WrapperWorker.d.ts +2 -3
- package/dist/types/abi/router/camelotV3Worker.d.ts +2 -3
- package/dist/types/abi/router/convexWorker.d.ts +2 -3
- package/dist/types/abi/router/curveWorker.d.ts +2 -3
- package/dist/types/abi/router/daiUsdsWorker.d.ts +2 -3
- package/dist/types/abi/router/equalizerRouterWorker.d.ts +2 -3
- package/dist/types/abi/router/erc4626Worker.d.ts +2 -3
- package/dist/types/abi/router/fluidDexWorker.d.ts +2 -3
- package/dist/types/abi/router/gearboxRouter.d.ts +2 -3
- package/dist/types/abi/router/infinifiWorker.d.ts +2 -3
- package/dist/types/abi/router/infraredVaultWorker.d.ts +2 -3
- package/dist/types/abi/router/kelpLRTDepositPoolWorker.d.ts +2 -3
- package/dist/types/abi/router/kodiakWorker.d.ts +2 -3
- package/dist/types/abi/router/lidoWorker.d.ts +2 -3
- package/dist/types/abi/router/mellow4626Worker.d.ts +2 -3
- package/dist/types/abi/router/mellowDVVWorker.d.ts +2 -3
- package/dist/types/abi/router/mellowVaultWorker.d.ts +2 -3
- package/dist/types/abi/router/midasWorker.d.ts +2 -3
- package/dist/types/abi/router/pendleRouterWorker.d.ts +2 -3
- package/dist/types/abi/router/routingManager.d.ts +2 -3
- package/dist/types/abi/router/securitizeOnrampWorker.d.ts +2 -3
- package/dist/types/abi/router/stakingRewardsWorker.d.ts +2 -3
- package/dist/types/abi/router/traderJoeWorker.d.ts +2 -3
- package/dist/types/abi/router/uniswapV2Worker.d.ts +2 -3
- package/dist/types/abi/router/uniswapV3Worker.d.ts +2 -3
- package/dist/types/abi/router/uniswapV4Worker.d.ts +2 -3
- package/dist/types/abi/router/upshiftWorker.d.ts +2 -3
- package/dist/types/abi/router/velodromeV2Worker.d.ts +2 -3
- package/dist/types/abi/router/wstETHWorker.d.ts +2 -3
- package/dist/types/abi/router/yearnV2Worker.d.ts +2 -3
- package/dist/types/abi/rwa/iDSRegistryService.d.ts +2 -3
- package/dist/types/abi/rwa/iDSToken.d.ts +2 -3
- package/dist/types/abi/rwa/iMidasAccessControl.d.ts +2 -3
- package/dist/types/abi/rwa/iMidasDegenNFT.d.ts +2 -3
- package/dist/types/abi/rwa/iMidasLiquidatorV311.d.ts +2 -3
- package/dist/types/abi/rwa/iRWACompressor.d.ts +2 -3
- package/dist/types/abi/rwa/iRWAFactory.d.ts +2 -3
- package/dist/types/abi/rwa/iRWAGateway.d.ts +2 -3
- package/dist/types/abi/rwa/iRWAUnderlying.d.ts +2 -3
- package/dist/types/abi/rwa/iSecuritizeDegenNFT.d.ts +2 -3
- package/dist/types/abi/rwa/iSecuritizeLiquidatorV311.d.ts +2 -3
- package/dist/types/abi/rwa/iSecuritizeRWAFactory.d.ts +2 -3
- package/dist/types/dev/AccountOpener.d.ts +9 -9
- package/dist/types/dev/EthCallSpy.d.ts +6 -7
- package/dist/types/dev/RevolverTransport.d.ts +12 -12
- package/dist/types/dev/abi.d.ts +6 -7
- package/dist/types/dev/calcLiquidatableLTs.d.ts +2 -3
- package/dist/types/dev/claimFromFaucet.d.ts +2 -2
- package/dist/types/dev/create2.d.ts +10 -11
- package/dist/types/dev/createAnvilClient.d.ts +13 -14
- package/dist/types/dev/detectChain.d.ts +2 -3
- package/dist/types/dev/index.d.ts +2 -1
- package/dist/types/dev/isOutOfSyncError.d.ts +2 -3
- package/dist/types/dev/isRateLimitError.d.ts +2 -3
- package/dist/types/dev/isTransientError.d.ts +2 -3
- package/dist/types/dev/kycUtils.d.ts +13 -14
- package/dist/types/dev/logSplitterTransport.d.ts +10 -10
- package/dist/types/dev/lowerHealthFactor.d.ts +34 -0
- package/dist/types/dev/ltUtils.d.ts +3 -4
- package/dist/types/dev/midasUtils.d.ts +8 -9
- package/dist/types/dev/migrateFaucet.d.ts +2 -3
- package/dist/types/dev/mint/AbstractMinter.d.ts +2 -3
- package/dist/types/dev/mint/DealMinter.d.ts +2 -3
- package/dist/types/dev/mint/DirectMinter.d.ts +2 -3
- package/dist/types/dev/mint/FallbackMinter.d.ts +2 -3
- package/dist/types/dev/mint/TransferMinter.d.ts +2 -3
- package/dist/types/dev/mint/factory.d.ts +2 -3
- package/dist/types/dev/mint/types.d.ts +2 -3
- package/dist/types/dev/mode-parity/compareOpportunities.d.ts +8 -8
- package/dist/types/dev/mode-parity/comparePositions.d.ts +12 -13
- package/dist/types/dev/mode-parity/compareRules.d.ts +6 -7
- package/dist/types/dev/mode-parity/fieldDiff.d.ts +29 -30
- package/dist/types/dev/mode-parity/scriptUtils.d.ts +18 -19
- package/dist/types/dev/providers.d.ts +10 -11
- package/dist/types/dev/replaceStorage.d.ts +3 -4
- package/dist/types/dev/resilientTransport.d.ts +6 -7
- package/dist/types/dev/securitizeUtils.d.ts +6 -6
- package/dist/types/dev/transports.d.ts +2 -3
- package/dist/types/dev/types.d.ts +4 -5
- package/dist/types/dev/verifyTestnet.d.ts +4 -5
- package/dist/types/dev/withdrawalAbi.d.ts +9 -10
- package/dist/types/dev/withdrawalUtils.d.ts +3 -4
- package/dist/types/history/assembleOperations.d.ts +3 -4
- package/dist/types/history/classifyMulticallOperations.d.ts +3 -4
- package/dist/types/history/mapOperations.d.ts +3 -4
- package/dist/types/history/parseCreditAccountTransaction.d.ts +3 -4
- package/dist/types/history/populateContractsRegister.d.ts +4 -5
- package/dist/types/history/toLegacyOperation.d.ts +6 -7
- package/dist/types/history/trace/errors.d.ts +6 -7
- package/dist/types/history/trace/extractAdapterCallTraces.d.ts +2 -3
- package/dist/types/history/trace/extractTransfers.d.ts +4 -4
- package/dist/types/history/trace/findFacadeCalls.d.ts +2 -3
- package/dist/types/history/trace/types.d.ts +3 -4
- package/dist/types/history/types.d.ts +13 -13
- package/dist/types/model/analytics.d.ts +66 -13
- package/dist/types/model/analytics.schema.d.ts +182 -39
- package/dist/types/model/charts.d.ts +29 -29
- package/dist/types/model/charts.schema.d.ts +16 -17
- package/dist/types/model/compare.schema.d.ts +9 -10
- package/dist/types/model/curators.d.ts +3 -4
- package/dist/types/model/curators.schema.d.ts +3 -4
- package/dist/types/model/delayed-intent.schema.d.ts +2 -3
- package/dist/types/model/delayed-intents.d.ts +9 -10
- package/dist/types/model/errors/base.d.ts +2 -3
- package/dist/types/model/errors/index.d.ts +3 -3
- package/dist/types/model/errors/liquidation-errors.d.ts +20 -8
- package/dist/types/model/errors/operation-errors.d.ts +76 -39
- package/dist/types/model/errors/oracle-errors.d.ts +3 -4
- package/dist/types/model/errors/prepare-errors.d.ts +21 -22
- package/dist/types/model/errors/preview-errors.d.ts +9 -10
- package/dist/types/model/filters.d.ts +6 -7
- package/dist/types/model/filters.schema.d.ts +5 -6
- package/dist/types/model/index.d.ts +6 -6
- package/dist/types/model/liquidations.d.ts +37 -18
- package/dist/types/model/liquidations.schema.d.ts +12 -10
- package/dist/types/model/notices.d.ts +4 -5
- package/dist/types/model/notices.schema.d.ts +3 -4
- package/dist/types/model/opportunities.d.ts +32 -33
- package/dist/types/model/opportunities.schema.d.ts +26 -27
- package/dist/types/model/positions.d.ts +34 -30
- package/dist/types/model/positions.schema.d.ts +102 -23
- package/dist/types/model/previews.d.ts +21 -21
- package/dist/types/model/primitives.d.ts +12 -13
- package/dist/types/model/primitives.schema.d.ts +11 -12
- package/dist/types/model/response.d.ts +8 -9
- package/dist/types/model/response.schema.d.ts +7 -8
- package/dist/types/model/result.d.ts +8 -9
- package/dist/types/model/rewards.d.ts +4 -5
- package/dist/types/model/rwa.d.ts +20 -21
- package/dist/types/model/rwa.schema.d.ts +3 -4
- package/dist/types/model/withdrawals.d.ts +5 -6
- package/dist/types/model/withdrawals.schema.d.ts +5 -6
- package/dist/types/offchain/AbstractOffchainNamespace.d.ts +4 -5
- package/dist/types/offchain/GearboxAPI.d.ts +2 -3
- package/dist/types/offchain/analytics/OffchainAnalytics.d.ts +2 -3
- package/dist/types/offchain/analytics/OffchainAnalyticsPositions.d.ts +6 -4
- package/dist/types/offchain/analytics/types.d.ts +17 -5
- package/dist/types/offchain/errors/OffchainInvalidJsonError.d.ts +2 -3
- package/dist/types/offchain/errors/OffchainNotConfiguredError.d.ts +2 -3
- package/dist/types/offchain/errors/OffchainNotImplementedError.d.ts +2 -3
- package/dist/types/offchain/errors/OffchainRequestFailedError.d.ts +2 -3
- package/dist/types/offchain/errors/OffchainStatusError.d.ts +2 -3
- package/dist/types/offchain/errors/OffchainTransportError.d.ts +3 -4
- package/dist/types/offchain/errors/OffchainValidationError.d.ts +2 -3
- package/dist/types/offchain/errors/backendMessage.d.ts +2 -3
- package/dist/types/offchain/errors/errorCause.d.ts +3 -4
- package/dist/types/offchain/errors/readResponseBody.d.ts +2 -3
- package/dist/types/offchain/notices/OffchainNotices.d.ts +2 -3
- package/dist/types/offchain/opportunities/OffchainOpportunities.d.ts +2 -3
- package/dist/types/offchain/opportunities/types.d.ts +3 -4
- package/dist/types/offchain/positions/OffchainPositions.d.ts +2 -3
- package/dist/types/offchain/positions/types.d.ts +3 -4
- package/dist/types/offchain/types.d.ts +2 -3
- package/dist/types/onchain/MultichainSDK.d.ts +7 -8
- package/dist/types/onchain/OnchainSDK.d.ts +8 -9
- package/dist/types/onchain/abi/oracles.d.ts +27 -28
- package/dist/types/onchain/accounts/CreditAccountsServiceV310.d.ts +3 -12
- package/dist/types/onchain/accounts/bots/AccountBotsService.d.ts +2 -3
- package/dist/types/onchain/accounts/bots/PeripheryCompressorV310Contract.d.ts +2 -2
- package/dist/types/onchain/accounts/bots/abi.d.ts +2 -3
- package/dist/types/onchain/accounts/bots/types.d.ts +13 -14
- package/dist/types/onchain/accounts/credit-account-compressor/CreditAccountCompressor.d.ts +2 -3
- package/dist/types/onchain/accounts/credit-account-compressor/CreditAccountCompressorV310Contract.d.ts +2 -2
- package/dist/types/onchain/accounts/credit-account-compressor/types.d.ts +11 -12
- package/dist/types/onchain/accounts/index.d.ts +5 -4
- package/dist/types/onchain/accounts/intents/borrow.d.ts +6 -7
- package/dist/types/onchain/accounts/intents/collateral-valuation.d.ts +4 -5
- package/dist/types/onchain/accounts/intents/guards.d.ts +7 -7
- package/dist/types/onchain/accounts/intents/index.d.ts +6 -6
- package/dist/types/onchain/accounts/intents/leverage-band.d.ts +4 -5
- package/dist/types/onchain/accounts/intents/math.d.ts +8 -8
- package/dist/types/onchain/accounts/intents/maxBorrow.d.ts +3 -4
- package/dist/types/onchain/accounts/intents/maxWithdrawCollateral.d.ts +3 -4
- package/dist/types/onchain/accounts/intents/open-strategy.d.ts +4 -5
- package/dist/types/onchain/accounts/intents/operations.d.ts +34 -28
- package/dist/types/onchain/accounts/intents/plan.d.ts +35 -19
- package/dist/types/onchain/accounts/intents/realize.d.ts +4 -5
- package/dist/types/onchain/accounts/intents/resolveQuotaUpdate.d.ts +38 -0
- package/dist/types/onchain/accounts/intents/strategyLimits.d.ts +2 -2
- package/dist/types/onchain/accounts/intents/tail.d.ts +4 -4
- package/dist/types/onchain/accounts/intents/testing/delayed.d.ts +2 -2
- package/dist/types/onchain/accounts/intents/testing/expect.d.ts +2 -2
- package/dist/types/onchain/accounts/intents/testing/market.d.ts +6 -6
- package/dist/types/onchain/accounts/intents/testing/sdk-mock.d.ts +3 -3
- package/dist/types/onchain/accounts/intents/tests/add-collateral.fixtures.d.ts +15 -16
- package/dist/types/onchain/accounts/intents/tests/adjust-leverage.fixtures.d.ts +22 -23
- package/dist/types/onchain/accounts/intents/tests/deposit.fixtures.d.ts +24 -25
- package/dist/types/onchain/accounts/intents/tests/finish-decrease-leverage.fixtures.d.ts +21 -21
- package/dist/types/onchain/accounts/intents/tests/finish-withdraw.fixtures.d.ts +30 -31
- package/dist/types/onchain/accounts/intents/tests/open-strategy.fixtures.d.ts +16 -17
- package/dist/types/onchain/accounts/intents/tests/update-quota.fixtures.d.ts +48 -0
- package/dist/types/onchain/accounts/intents/tests/withdraw-asset.fixtures.d.ts +16 -17
- package/dist/types/onchain/accounts/intents/tests/withdraw.fixtures.d.ts +26 -27
- package/dist/types/onchain/accounts/intents/types.d.ts +46 -30
- package/dist/types/onchain/accounts/intents/utils/adjust-state-to-snapshot.d.ts +2 -3
- package/dist/types/onchain/accounts/intents/utils/assemble-operation-calls.d.ts +2 -2
- package/dist/types/onchain/accounts/intents/utils/borrowed-amount-plus-interest-and-fees.d.ts +2 -3
- package/dist/types/onchain/accounts/intents/utils/common.d.ts +5 -6
- package/dist/types/onchain/accounts/intents/utils/credit-account-slice.d.ts +4 -5
- package/dist/types/onchain/accounts/intents/utils/index.d.ts +2 -2
- package/dist/types/onchain/accounts/intents/utils/ledger.d.ts +3 -4
- package/dist/types/onchain/accounts/intents/utils/pick-token.d.ts +6 -7
- package/dist/types/onchain/accounts/intents/utils/price-impact.d.ts +5 -6
- package/dist/types/onchain/accounts/intents/utils/quotas-for-update.d.ts +27 -9
- package/dist/types/onchain/accounts/intents/utils/router-path.d.ts +6 -7
- package/dist/types/onchain/accounts/intents/view.d.ts +2 -3
- package/dist/types/onchain/accounts/intents/withdraw-limits.d.ts +5 -6
- package/dist/types/onchain/accounts/liquidations/LiquidationsService.d.ts +50 -4
- package/dist/types/onchain/accounts/liquidations/MultichainLiquidationsService.d.ts +13 -4
- package/dist/types/onchain/accounts/liquidations/constants.d.ts +4 -5
- package/dist/types/onchain/accounts/liquidations/index.d.ts +3 -2
- package/dist/types/onchain/accounts/liquidations/partialLiquidation.d.ts +88 -0
- package/dist/types/onchain/accounts/liquidations/skipLiquidatableAccount.d.ts +2 -3
- package/dist/types/onchain/accounts/liquidations/types.d.ts +146 -21
- package/dist/types/onchain/accounts/multicall-utils.d.ts +4 -5
- package/dist/types/onchain/accounts/quota-utils.d.ts +11 -11
- package/dist/types/onchain/accounts/types.d.ts +18 -95
- package/dist/types/onchain/accounts/withdrawal-compressor/AbstractWithdrawalCompressorContract.d.ts +7 -7
- package/dist/types/onchain/accounts/withdrawal-compressor/RedemptionLoggerV310Contract.d.ts +2 -2
- package/dist/types/onchain/accounts/withdrawal-compressor/WithdrawalCompressorV310Contract.d.ts +2 -2
- package/dist/types/onchain/accounts/withdrawal-compressor/WithdrawalCompressorV311Contract.d.ts +2 -2
- package/dist/types/onchain/accounts/withdrawal-compressor/WithdrawalCompressorV313Contract.d.ts +2 -2
- package/dist/types/onchain/accounts/withdrawal-compressor/addresses.d.ts +4 -5
- package/dist/types/onchain/accounts/withdrawal-compressor/createRedemptionLogger.d.ts +2 -3
- package/dist/types/onchain/accounts/withdrawal-compressor/createWithdrawalCompressor.d.ts +2 -3
- package/dist/types/onchain/accounts/withdrawal-compressor/intent-codec.d.ts +5 -6
- package/dist/types/onchain/accounts/withdrawal-compressor/types.d.ts +16 -17
- package/dist/types/onchain/base/BaseContract.d.ts +5 -6
- package/dist/types/onchain/base/ChainContractsRegister.d.ts +3 -4
- package/dist/types/onchain/base/Construct.d.ts +3 -4
- package/dist/types/onchain/base/MultichainConstruct.d.ts +7 -8
- package/dist/types/onchain/base/SDKConstruct.d.ts +2 -3
- package/dist/types/onchain/base/TokensMeta.d.ts +13 -6
- package/dist/types/onchain/base/errors.d.ts +2 -3
- package/dist/types/onchain/base/token-types.d.ts +18 -18
- package/dist/types/onchain/base/types.d.ts +37 -38
- package/dist/types/onchain/chain/chains.d.ts +20 -21
- package/dist/types/onchain/chain/detectNetwork.d.ts +2 -3
- package/dist/types/onchain/constants/address-provider.d.ts +36 -37
- package/dist/types/onchain/constants/addresses.d.ts +5 -6
- package/dist/types/onchain/constants/bot-permissions.d.ts +3 -4
- package/dist/types/onchain/constants/index.d.ts +2 -2
- package/dist/types/onchain/constants/math.d.ts +25 -21
- package/dist/types/onchain/constants/networks.d.ts +3 -4
- package/dist/types/onchain/constants/periphery.d.ts +3 -4
- package/dist/types/onchain/constants/versions.d.ts +5 -6
- package/dist/types/onchain/core/AbstractAddressProviderContract.d.ts +2 -3
- package/dist/types/onchain/core/AddressProviderV310Contract.d.ts +2 -2
- package/dist/types/onchain/core/createAddressProvider.d.ts +3 -4
- package/dist/types/onchain/core/errors.d.ts +9 -10
- package/dist/types/onchain/core/types.d.ts +4 -5
- package/dist/types/onchain/index.d.ts +13 -7
- package/dist/types/onchain/market/MarketConfiguratorContract.d.ts +2 -2
- package/dist/types/onchain/market/MarketRegister.d.ts +4 -5
- package/dist/types/onchain/market/MarketSuite.d.ts +2 -3
- package/dist/types/onchain/market/ZapperRegister.d.ts +2 -3
- package/dist/types/onchain/market/adapters/abi/actionAbi.d.ts +4 -5
- package/dist/types/onchain/market/adapters/abi/adapters/erc4626ReferralAdapter.d.ts +2 -3
- package/dist/types/onchain/market/adapters/abi/adapters/iBalancerV3RouterAdapter.d.ts +2 -3
- package/dist/types/onchain/market/adapters/abi/adapters/iBalancerV3WrapperAdapter.d.ts +2 -3
- package/dist/types/onchain/market/adapters/abi/adapters/iCamelotV3Adapter.d.ts +2 -3
- package/dist/types/onchain/market/adapters/abi/adapters/iConvexV1BaseRewardPoolAdapter.d.ts +2 -3
- package/dist/types/onchain/market/adapters/abi/adapters/iConvexV1BoosterAdapter.d.ts +2 -3
- package/dist/types/onchain/market/adapters/abi/adapters/iCurveV1StableNgAdapter.d.ts +2 -3
- package/dist/types/onchain/market/adapters/abi/adapters/iCurveV1_2AssetsAdapter.d.ts +2 -3
- package/dist/types/onchain/market/adapters/abi/adapters/iCurveV1_3AssetsAdapter.d.ts +2 -3
- package/dist/types/onchain/market/adapters/abi/adapters/iCurveV1_4AssetsAdapter.d.ts +2 -3
- package/dist/types/onchain/market/adapters/abi/adapters/iDaiUsdsAdapter.d.ts +2 -3
- package/dist/types/onchain/market/adapters/abi/adapters/iFluidDexAdapter.d.ts +2 -3
- package/dist/types/onchain/market/adapters/abi/adapters/iInfinifiGatewayAdapter.d.ts +2 -3
- package/dist/types/onchain/market/adapters/abi/adapters/iInfinifiUnwindingGateway.d.ts +3 -4
- package/dist/types/onchain/market/adapters/abi/adapters/iKelpLrtDepositPool.d.ts +3 -4
- package/dist/types/onchain/market/adapters/abi/adapters/iKelpLrtWithdrawalManager.d.ts +3 -4
- package/dist/types/onchain/market/adapters/abi/adapters/iLidoV1Adapter.d.ts +2 -3
- package/dist/types/onchain/market/adapters/abi/adapters/iMellow4626VaultAdapter.d.ts +2 -3
- package/dist/types/onchain/market/adapters/abi/adapters/iMellowClaimerAdapter.d.ts +2 -3
- package/dist/types/onchain/market/adapters/abi/adapters/iMellowWrapperAdapter.d.ts +2 -3
- package/dist/types/onchain/market/adapters/abi/adapters/iMidasGatewayAdapterV311.d.ts +2 -3
- package/dist/types/onchain/market/adapters/abi/adapters/iMidasIssuanceVaultAdapterV310.d.ts +2 -3
- package/dist/types/onchain/market/adapters/abi/adapters/iMidasRedemptionVaultAdapterV310.d.ts +3 -4
- package/dist/types/onchain/market/adapters/abi/adapters/iPendleRouterAdapter.d.ts +2 -3
- package/dist/types/onchain/market/adapters/abi/adapters/iSecuritizeOnRampAdapterV310.d.ts +2 -3
- package/dist/types/onchain/market/adapters/abi/adapters/iSecuritizeRedemptionGatewayAdapterV311.d.ts +2 -3
- package/dist/types/onchain/market/adapters/abi/adapters/iStakingRewardsAdapter.d.ts +2 -3
- package/dist/types/onchain/market/adapters/abi/adapters/iTraderJoeRouterAdapter.d.ts +2 -3
- package/dist/types/onchain/market/adapters/abi/adapters/iUniswapV2Adapter.d.ts +2 -3
- package/dist/types/onchain/market/adapters/abi/adapters/iUniswapV3Adapter.d.ts +2 -3
- package/dist/types/onchain/market/adapters/abi/adapters/iUniswapV4Adapter.d.ts +3 -4
- package/dist/types/onchain/market/adapters/abi/adapters/iUpshiftVaultAdapter.d.ts +3 -4
- package/dist/types/onchain/market/adapters/abi/adapters/iVelodromeV2RouterAdapter.d.ts +2 -3
- package/dist/types/onchain/market/adapters/abi/adapters/iwstEthv1Adapter.d.ts +2 -3
- package/dist/types/onchain/market/adapters/abi/adapters/mellowDvvAdapter.d.ts +2 -3
- package/dist/types/onchain/market/adapters/abi/conctructorAbi.d.ts +2 -3
- package/dist/types/onchain/market/adapters/abi/conctructorAbiPatterns.d.ts +12 -13
- package/dist/types/onchain/market/adapters/abi/midas/iMidasGatewayV311.d.ts +2 -3
- package/dist/types/onchain/market/adapters/abi/securitize/iBaseOnRamp.d.ts +2 -3
- package/dist/types/onchain/market/adapters/abi/securitize/iSecuritizeOnRamp.d.ts +2 -3
- package/dist/types/onchain/market/adapters/abi/securitize/iSecuritizeRedemptionGatewayV311.d.ts +2 -3
- package/dist/types/onchain/market/adapters/abi/targetContractAbi.d.ts +29 -30
- package/dist/types/onchain/market/adapters/abi/utils.d.ts +7 -8
- package/dist/types/onchain/market/adapters/contracts/AbstractAdapter.d.ts +4 -5
- package/dist/types/onchain/market/adapters/contracts/AbstractCurveAdapter.d.ts +2 -3
- package/dist/types/onchain/market/adapters/contracts/AccountMigratorAdapterContract.d.ts +2 -2
- package/dist/types/onchain/market/adapters/contracts/BalancerV3RouterAdapterContract.d.ts +4 -4
- package/dist/types/onchain/market/adapters/contracts/BalancerV3WrapperAdapterContract.d.ts +2 -2
- package/dist/types/onchain/market/adapters/contracts/CamelotV3AdapterContract.d.ts +3 -3
- package/dist/types/onchain/market/adapters/contracts/ConvexV1BaseRewardPoolAdapterContract.d.ts +2 -2
- package/dist/types/onchain/market/adapters/contracts/ConvexV1BoosterAdapterContract.d.ts +2 -2
- package/dist/types/onchain/market/adapters/contracts/Curve2AssetsAdapterContract.d.ts +2 -2
- package/dist/types/onchain/market/adapters/contracts/Curve3AssetsAdapterContract.d.ts +2 -2
- package/dist/types/onchain/market/adapters/contracts/Curve4AssetsAdapterContract.d.ts +2 -2
- package/dist/types/onchain/market/adapters/contracts/CurveV1AdapterStETHContract.d.ts +2 -2
- package/dist/types/onchain/market/adapters/contracts/CurveV1StableNGAdapterContract.d.ts +2 -2
- package/dist/types/onchain/market/adapters/contracts/DaiUsdsAdapterContract.d.ts +2 -2
- package/dist/types/onchain/market/adapters/contracts/ERC4626AdapterContract.d.ts +2 -2
- package/dist/types/onchain/market/adapters/contracts/ERC4626ReferralAdapterContract.d.ts +2 -2
- package/dist/types/onchain/market/adapters/contracts/FluidDexAdapterContract.d.ts +2 -2
- package/dist/types/onchain/market/adapters/contracts/InfinifiGatewayAdapterContract.d.ts +2 -2
- package/dist/types/onchain/market/adapters/contracts/InfinifiUnwindingGatewayAdapterContract.d.ts +2 -2
- package/dist/types/onchain/market/adapters/contracts/KelpLRTDepositPoolAdapterContract.d.ts +2 -2
- package/dist/types/onchain/market/adapters/contracts/KelpLRTWithdrawalManagerAdapterContract.d.ts +2 -2
- package/dist/types/onchain/market/adapters/contracts/LidoV1AdapterContract.d.ts +2 -2
- package/dist/types/onchain/market/adapters/contracts/MellowClaimerAdapterContract.d.ts +2 -2
- package/dist/types/onchain/market/adapters/contracts/MellowDVVAdapterContract.d.ts +2 -2
- package/dist/types/onchain/market/adapters/contracts/MellowERC4626VaultAdapterContract.d.ts +2 -2
- package/dist/types/onchain/market/adapters/contracts/MellowWrapperAdapterContract.d.ts +2 -2
- package/dist/types/onchain/market/adapters/contracts/MidasGatewayAdapterContract.d.ts +2 -2
- package/dist/types/onchain/market/adapters/contracts/MidasIssuanceVaultAdapterContract.d.ts +2 -2
- package/dist/types/onchain/market/adapters/contracts/MidasRedemptionVaultAdapterContract.d.ts +2 -2
- package/dist/types/onchain/market/adapters/contracts/PendleRouterAdapterContract.d.ts +5 -5
- package/dist/types/onchain/market/adapters/contracts/SecuritizeOnRampAdapterContract.d.ts +2 -2
- package/dist/types/onchain/market/adapters/contracts/SecuritizeRedemptionGatewayAdapterContract.d.ts +2 -2
- package/dist/types/onchain/market/adapters/contracts/StakingRewardsAdapterContract.d.ts +2 -2
- package/dist/types/onchain/market/adapters/contracts/TraderJoeRouterAdapterContract.d.ts +4 -4
- package/dist/types/onchain/market/adapters/contracts/UniswapV2AdapterContract.d.ts +2 -2
- package/dist/types/onchain/market/adapters/contracts/UniswapV3AdapterContract.d.ts +2 -2
- package/dist/types/onchain/market/adapters/contracts/UniswapV4AdapterContract.d.ts +2 -2
- package/dist/types/onchain/market/adapters/contracts/UpshiftVaultAdapterContract.d.ts +2 -2
- package/dist/types/onchain/market/adapters/contracts/VelodromeV2AdapterContract.d.ts +2 -2
- package/dist/types/onchain/market/adapters/contracts/WstETHV1AdapterContract.d.ts +2 -2
- package/dist/types/onchain/market/adapters/createAdapter.d.ts +3 -4
- package/dist/types/onchain/market/adapters/legacyAdapterOperations.d.ts +27 -28
- package/dist/types/onchain/market/adapters/transferHelpers.d.ts +10 -11
- package/dist/types/onchain/market/adapters/transfers.d.ts +2 -3
- package/dist/types/onchain/market/adapters/types.d.ts +9 -10
- package/dist/types/onchain/market/credit/CreditConfiguratorV310Contract.d.ts +3 -3
- package/dist/types/onchain/market/credit/CreditFacadeV310BaseContract.d.ts +2 -2
- package/dist/types/onchain/market/credit/CreditFacadeV310Contract.d.ts +3 -3
- package/dist/types/onchain/market/credit/CreditManagerV310Contract.d.ts +3 -3
- package/dist/types/onchain/market/credit/CreditSuite.d.ts +3 -14
- package/dist/types/onchain/market/credit/CreditSuiteStrategy.d.ts +2 -3
- package/dist/types/onchain/market/credit/collateralUtils.d.ts +6 -6
- package/dist/types/onchain/market/credit/createCreditConfigurator.d.ts +2 -3
- package/dist/types/onchain/market/credit/createCreditFacade.d.ts +2 -3
- package/dist/types/onchain/market/credit/createCreditManager.d.ts +2 -3
- package/dist/types/onchain/market/credit/expectedBalanceDeltas.d.ts +4 -5
- package/dist/types/onchain/market/credit/index.d.ts +2 -2
- package/dist/types/onchain/market/credit/types.d.ts +10 -46
- package/dist/types/onchain/market/index.d.ts +3 -3
- package/dist/types/onchain/market/loss-policy/AliasLossPolicyV310Contract.d.ts +3 -3
- package/dist/types/onchain/market/loss-policy/LossPolicyContract.d.ts +2 -2
- package/dist/types/onchain/market/loss-policy/constants.d.ts +5 -6
- package/dist/types/onchain/market/loss-policy/createLossPolicy.d.ts +2 -3
- package/dist/types/onchain/market/loss-policy/types.d.ts +2 -3
- package/dist/types/onchain/market/math.d.ts +48 -30
- package/dist/types/onchain/market/oracle/PriceFeedAnswerMap.d.ts +2 -3
- package/dist/types/onchain/market/oracle/PriceOracleBaseContract.d.ts +2 -3
- package/dist/types/onchain/market/oracle/PriceOracleV310Contract.d.ts +2 -2
- package/dist/types/onchain/market/oracle/collateralPriceInUnderlying.d.ts +2 -3
- package/dist/types/onchain/market/oracle/createPriceOracle.d.ts +2 -3
- package/dist/types/onchain/market/oracle/types.d.ts +5 -6
- package/dist/types/onchain/market/pool/GaugeContract.d.ts +3 -3
- package/dist/types/onchain/market/pool/LinearInterestRateModelContract.d.ts +2 -2
- package/dist/types/onchain/market/pool/PoolQuotaKeeperV310Contract.d.ts +2 -2
- package/dist/types/onchain/market/pool/PoolSuite.d.ts +2 -3
- package/dist/types/onchain/market/pool/PoolV310Contract.d.ts +3 -3
- package/dist/types/onchain/market/pool/TumblerContract.d.ts +2 -2
- package/dist/types/onchain/market/pool/createInterestRateModel.d.ts +2 -3
- package/dist/types/onchain/market/pool/createPool.d.ts +2 -3
- package/dist/types/onchain/market/pool/createPoolQuotaKeeper.d.ts +2 -3
- package/dist/types/onchain/market/pool/createRateKeeper.d.ts +2 -3
- package/dist/types/onchain/market/pool/math.d.ts +6 -7
- package/dist/types/onchain/market/pool/types.d.ts +7 -8
- package/dist/types/onchain/market/pricefeeds/AbstractLPPriceFeed.d.ts +3 -4
- package/dist/types/onchain/market/pricefeeds/AbstractPriceFeed.d.ts +5 -6
- package/dist/types/onchain/market/pricefeeds/PriceFeedRef.d.ts +2 -3
- package/dist/types/onchain/market/pricefeeds/PriceFeedRegistry.d.ts +2 -3
- package/dist/types/onchain/market/pricefeeds/feeds/BalancerStablePriceFeed.d.ts +2 -2
- package/dist/types/onchain/market/pricefeeds/feeds/BalancerWeightedPriceFeed.d.ts +2 -2
- package/dist/types/onchain/market/pricefeeds/feeds/BoundedPriceFeed.d.ts +2 -2
- package/dist/types/onchain/market/pricefeeds/feeds/CompositePriceFeed.d.ts +2 -2
- package/dist/types/onchain/market/pricefeeds/feeds/ConstantPriceFeed.d.ts +2 -2
- package/dist/types/onchain/market/pricefeeds/feeds/CurveCryptoPriceFeed.d.ts +2 -2
- package/dist/types/onchain/market/pricefeeds/feeds/CurveStablePriceFeed.d.ts +2 -2
- package/dist/types/onchain/market/pricefeeds/feeds/CurveUSDPriceFeed.d.ts +2 -2
- package/dist/types/onchain/market/pricefeeds/feeds/Erc4626PriceFeed.d.ts +2 -2
- package/dist/types/onchain/market/pricefeeds/feeds/ExternalPriceFeed.d.ts +2 -2
- package/dist/types/onchain/market/pricefeeds/feeds/MellowLRTPriceFeed.d.ts +2 -2
- package/dist/types/onchain/market/pricefeeds/feeds/PendleTWAPPTPriceFeed.d.ts +2 -2
- package/dist/types/onchain/market/pricefeeds/feeds/PythPriceFeed.d.ts +2 -2
- package/dist/types/onchain/market/pricefeeds/feeds/RedstonePriceFeed.d.ts +2 -2
- package/dist/types/onchain/market/pricefeeds/feeds/WstETHPriceFeed.d.ts +2 -2
- package/dist/types/onchain/market/pricefeeds/feeds/YearnPriceFeed.d.ts +2 -2
- package/dist/types/onchain/market/pricefeeds/feeds/ZeroPriceFeed.d.ts +2 -2
- package/dist/types/onchain/market/pricefeeds/types.d.ts +5 -6
- package/dist/types/onchain/market/pricefeeds/updates/PriceUpdateTx.d.ts +2 -3
- package/dist/types/onchain/market/pricefeeds/updates/PriceUpdatesCache.d.ts +3 -4
- package/dist/types/onchain/market/pricefeeds/updates/UpdatablePriceFeedRegistry.d.ts +2 -3
- package/dist/types/onchain/market/pricefeeds/updates/getRawPriceUpdates.d.ts +2 -3
- package/dist/types/onchain/market/pricefeeds/updates/isUpdatablePriceFeed.d.ts +2 -3
- package/dist/types/onchain/market/pricefeeds/updates/types.d.ts +8 -9
- package/dist/types/onchain/market/pricefeeds/updates/updatableDependencies.d.ts +2 -3
- package/dist/types/onchain/market/rwa/RWARegistry.d.ts +3 -4
- package/dist/types/onchain/market/rwa/createDegenNFT.d.ts +2 -3
- package/dist/types/onchain/market/rwa/midas/MidasDegenNFT.d.ts +2 -2
- package/dist/types/onchain/market/rwa/midas/MidasLiquidatorContract.d.ts +2 -2
- package/dist/types/onchain/market/rwa/midas/constants.d.ts +4 -5
- package/dist/types/onchain/market/rwa/securitize/SecuritizeDegenNFT.d.ts +2 -2
- package/dist/types/onchain/market/rwa/securitize/SecuritizeLiquidatorContract.d.ts +2 -2
- package/dist/types/onchain/market/rwa/securitize/SecuritizeRWAFactory.d.ts +2 -2
- package/dist/types/onchain/market/rwa/securitize/constants.d.ts +4 -5
- package/dist/types/onchain/market/rwa/securitize/types.d.ts +5 -6
- package/dist/types/onchain/market/rwa/types.d.ts +16 -16
- package/dist/types/onchain/market/strategyName.d.ts +2 -3
- package/dist/types/onchain/market/types.d.ts +3 -4
- package/dist/types/onchain/market/zapper/IERC20ZapperContract.d.ts +2 -2
- package/dist/types/onchain/market/zapper/IETHZapperContract.d.ts +2 -2
- package/dist/types/onchain/market/zapper/ZapperContract.d.ts +2 -3
- package/dist/types/onchain/market/zapper/createZapper.d.ts +2 -3
- package/dist/types/onchain/market/zapper/types.d.ts +5 -6
- package/dist/types/onchain/opportunities/MultichainOpportunitiesService.d.ts +2 -3
- package/dist/types/onchain/opportunities/OpportunitiesService.d.ts +2 -3
- package/dist/types/onchain/opportunities/types.d.ts +2 -3
- package/dist/types/onchain/options.d.ts +4 -5
- package/dist/types/onchain/plugins/BasePlugin.d.ts +2 -3
- package/dist/types/onchain/plugins/errors.d.ts +2 -3
- package/dist/types/onchain/plugins/types.d.ts +9 -10
- package/dist/types/onchain/pools/PoolService.d.ts +2 -3
- package/dist/types/onchain/pools/types.d.ts +12 -13
- package/dist/types/onchain/positions/MultichainPositionsService.d.ts +2 -3
- package/dist/types/onchain/positions/PositionsService.d.ts +3 -4
- package/dist/types/onchain/positions/calcBorrowRate.d.ts +3 -4
- package/dist/types/onchain/positions/calcHealthFactor.d.ts +3 -4
- package/dist/types/onchain/positions/calcLiquidationPrice.d.ts +3 -4
- package/dist/types/onchain/positions/calcLiquidationPriceForTarget.d.ts +4 -5
- package/dist/types/onchain/positions/calcTimeToLiquidationMs.d.ts +2 -3
- package/dist/types/onchain/positions/types.d.ts +9 -10
- package/dist/types/onchain/preview/parse/classifyInnerOperations.d.ts +3 -4
- package/dist/types/onchain/preview/parse/parseFacadeOperationCalldata.d.ts +2 -3
- package/dist/types/onchain/preview/parse/parseOperationCalldata.d.ts +2 -3
- package/dist/types/onchain/preview/parse/parsePoolOperationCalldata.d.ts +2 -3
- package/dist/types/onchain/preview/parse/parseRWAFactoryOperationCalldata.d.ts +2 -3
- package/dist/types/onchain/preview/parse/types-adapters.d.ts +4 -5
- package/dist/types/onchain/preview/parse/types-facades.d.ts +20 -21
- package/dist/types/onchain/preview/parse/types-pools.d.ts +6 -7
- package/dist/types/onchain/preview/parse/types-rwa.d.ts +5 -6
- package/dist/types/onchain/preview/parse/types.d.ts +4 -4
- package/dist/types/onchain/preview/preview/CreditAccountState.d.ts +5 -5
- package/dist/types/onchain/preview/preview/buildDelayedStrategyPositionOperationPreview.d.ts +2 -3
- package/dist/types/onchain/preview/preview/detectCloseOrRepay.d.ts +3 -4
- package/dist/types/onchain/preview/preview/detectDelayedClaim.d.ts +4 -5
- package/dist/types/onchain/preview/preview/detectDelayedOperation.d.ts +3 -4
- package/dist/types/onchain/preview/preview/estimateClaimableAt.d.ts +2 -3
- package/dist/types/onchain/preview/preview/midasGreenlistsAccount.d.ts +2 -3
- package/dist/types/onchain/preview/preview/previewAdjustStrategyPosition.d.ts +2 -3
- package/dist/types/onchain/preview/preview/previewExitOrRepayStrategyPosition.d.ts +3 -4
- package/dist/types/onchain/preview/preview/previewOpenStrategyPosition.d.ts +2 -2
- package/dist/types/onchain/preview/preview/previewOperation.d.ts +3 -4
- package/dist/types/onchain/preview/preview/previewPoolPositionOperation.d.ts +2 -3
- package/dist/types/onchain/preview/preview/replayInnerOperations.d.ts +4 -5
- package/dist/types/onchain/preview/preview/replayMulticall.d.ts +4 -5
- package/dist/types/onchain/preview/preview/unwrapNativeCollateral.d.ts +2 -3
- package/dist/types/onchain/router/AbstractRouterContract.d.ts +4 -5
- package/dist/types/onchain/router/RouterV310Contract.d.ts +2 -2
- package/dist/types/onchain/router/createRouter.d.ts +2 -3
- package/dist/types/onchain/router/helpers.d.ts +3 -4
- package/dist/types/onchain/router/types.d.ts +15 -16
- package/dist/types/onchain/types/logger.d.ts +3 -4
- package/dist/types/onchain/types/multichain.d.ts +6 -7
- package/dist/types/onchain/types/state-human.d.ts +36 -37
- package/dist/types/onchain/types/state.d.ts +3 -4
- package/dist/types/onchain/types/transactions.d.ts +5 -6
- package/dist/types/onchain/utils/AddressMap.d.ts +2 -3
- package/dist/types/onchain/utils/AddressSet.d.ts +2 -3
- package/dist/types/onchain/utils/AssetsMap.d.ts +2 -3
- package/dist/types/onchain/utils/abi-decode.d.ts +4 -5
- package/dist/types/onchain/utils/bigint-math.d.ts +2 -3
- package/dist/types/onchain/utils/bytes32ToString.d.ts +2 -3
- package/dist/types/onchain/utils/childLogger.d.ts +2 -3
- package/dist/types/onchain/utils/createRawTx.d.ts +2 -3
- package/dist/types/onchain/utils/etherscan.d.ts +4 -5
- package/dist/types/onchain/utils/filterDust.d.ts +4 -5
- package/dist/types/onchain/utils/formatter.d.ts +17 -17
- package/dist/types/onchain/utils/hex.d.ts +2 -3
- package/dist/types/onchain/utils/internal/Hooks.d.ts +3 -4
- package/dist/types/onchain/utils/isDust.d.ts +3 -4
- package/dist/types/onchain/utils/json.d.ts +3 -4
- package/dist/types/onchain/utils/mappers.d.ts +5 -6
- package/dist/types/onchain/utils/retry.d.ts +3 -4
- package/dist/types/onchain/utils/toAddress.d.ts +2 -3
- package/dist/types/onchain/utils/trace.d.ts +8 -9
- package/dist/types/onchain/utils/type-utils.d.ts +2 -3
- package/dist/types/onchain/utils/viem/cast.d.ts +3 -4
- package/dist/types/onchain/utils/viem/executeDelegatedMulticalls.d.ts +3 -4
- package/dist/types/onchain/utils/viem/executeMulticallBatches.d.ts +4 -5
- package/dist/types/onchain/utils/viem/sendRawTx.d.ts +5 -6
- package/dist/types/onchain/utils/viem/simulateCall.d.ts +7 -8
- package/dist/types/onchain/utils/viem/simulateMulticall.d.ts +4 -5
- package/dist/types/onchain/utils/viem/simulateWithPriceUpdates.d.ts +8 -9
- package/dist/types/onchain/utils/viem/watchBlocksAsync.d.ts +4 -4
- package/dist/types/onchain/utils/zod.d.ts +4 -5
- package/dist/types/onchain/validation/bundles/checkAccountQuotas.d.ts +2 -3
- package/dist/types/onchain/validation/bundles/checkCollateralFunding.d.ts +4 -5
- package/dist/types/onchain/validation/bundles/checkCreditOperation.d.ts +6 -7
- package/dist/types/onchain/validation/bundles/checkHealthFactors.d.ts +4 -5
- package/dist/types/onchain/validation/bundles/checkIncreaseDebt.d.ts +2 -3
- package/dist/types/onchain/validation/bundles/checkIncreaseQuota.d.ts +2 -3
- package/dist/types/onchain/validation/bundles/checkLiquidationEligibility.d.ts +7 -7
- package/dist/types/onchain/validation/bundles/checkLiquidationFunding.d.ts +5 -5
- package/dist/types/onchain/validation/bundles/checkMarket.d.ts +3 -4
- package/dist/types/onchain/validation/bundles/checkMidasAccountGreenlist.d.ts +3 -4
- package/dist/types/onchain/validation/bundles/checkObtained.d.ts +2 -3
- package/dist/types/onchain/validation/bundles/checkPoolFunding.d.ts +3 -4
- package/dist/types/onchain/validation/bundles/checkPoolOperation.d.ts +4 -5
- package/dist/types/onchain/validation/bundles/checkQuotaUpdates.d.ts +15 -0
- package/dist/types/onchain/validation/bundles/checkRWAOpenRequirements.d.ts +3 -4
- package/dist/types/onchain/validation/bundles/checkRWAOpening.d.ts +4 -5
- package/dist/types/onchain/validation/bundles/checkWallet.d.ts +4 -5
- package/dist/types/onchain/validation/bundles/checkWalletAllowance.d.ts +3 -4
- package/dist/types/onchain/validation/bundles/checkWalletBalance.d.ts +3 -4
- package/dist/types/onchain/validation/bundles/index.d.ts +2 -1
- package/dist/types/onchain/validation/checkLiquidation.d.ts +7 -7
- package/dist/types/onchain/validation/checkOperation.d.ts +5 -6
- package/dist/types/onchain/validation/checkSimulation.d.ts +5 -6
- package/dist/types/onchain/validation/checks/checkBorrowLimit.d.ts +3 -4
- package/dist/types/onchain/validation/checks/checkCollateralised.d.ts +3 -4
- package/dist/types/onchain/validation/checks/checkCreditAccountFrozen.d.ts +3 -4
- package/dist/types/onchain/validation/checks/checkCreditManagerPaused.d.ts +3 -4
- package/dist/types/onchain/validation/checks/checkDebtLimits.d.ts +3 -4
- package/dist/types/onchain/validation/checks/checkEmergencyLiquidator.d.ts +3 -4
- package/dist/types/onchain/validation/checks/checkForbiddenToken.d.ts +3 -4
- package/dist/types/onchain/validation/checks/checkLeverage.d.ts +3 -4
- package/dist/types/onchain/validation/checks/checkLiquidatorEligible.d.ts +3 -4
- package/dist/types/onchain/validation/checks/checkMarketExpired.d.ts +3 -4
- package/dist/types/onchain/validation/checks/checkMaxQuota.d.ts +15 -0
- package/dist/types/onchain/validation/checks/checkPartiallyLiquidatable.d.ts +16 -0
- package/dist/types/onchain/validation/checks/checkPoolLiquidity.d.ts +3 -4
- package/dist/types/onchain/validation/checks/checkPoolPaused.d.ts +3 -4
- package/dist/types/onchain/validation/checks/checkPoolSunset.d.ts +3 -4
- package/dist/types/onchain/validation/checks/checkQuotaActive.d.ts +12 -0
- package/dist/types/onchain/validation/checks/checkQuotaChange.d.ts +16 -0
- package/dist/types/onchain/validation/checks/checkQuotaCount.d.ts +3 -4
- package/dist/types/onchain/validation/checks/checkQuotaLimit.d.ts +3 -4
- package/dist/types/onchain/validation/checks/checkReservePriceLimited.d.ts +3 -4
- package/dist/types/onchain/validation/checks/index.d.ts +5 -1
- package/dist/types/onchain/validation/helpers/amount.d.ts +2 -3
- package/dist/types/onchain/validation/helpers/health-factor-limits.d.ts +5 -6
- package/dist/types/onchain/validation/helpers/token.d.ts +3 -4
- package/dist/types/onchain/validation/index.d.ts +6 -1
- package/dist/types/onchain/validation/raise.d.ts +5 -6
- package/dist/types/permissionless/api/GearboxPermissionless.d.ts +2 -3
- package/dist/types/permissionless/api/chains/ChainsNamespace.d.ts +2 -3
- package/dist/types/permissionless/api/chains/schemas.d.ts +5 -6
- package/dist/types/permissionless/api/chains/types.d.ts +6 -7
- package/dist/types/permissionless/api/deploy/PermissionlessDeploy.d.ts +4 -5
- package/dist/types/permissionless/api/deploy/effective-staleness.d.ts +2 -3
- package/dist/types/permissionless/api/deploy/types.d.ts +6 -7
- package/dist/types/permissionless/api/errors.d.ts +6 -7
- package/dist/types/permissionless/api/oracles/PermissionlessOracles.d.ts +4 -5
- package/dist/types/permissionless/api/oracles/schemas.d.ts +5 -6
- package/dist/types/permissionless/api/oracles/types.d.ts +5 -6
- package/dist/types/permissionless/api/schemas.d.ts +4 -5
- package/dist/types/permissionless/api/transactions/InstanceOwnerTransactions.d.ts +2 -3
- package/dist/types/permissionless/api/transactions/lp-price-feeds.d.ts +3 -4
- package/dist/types/permissionless/api/transactions/types.d.ts +7 -8
- package/dist/types/permissionless/api/types.d.ts +2 -3
- package/dist/types/permissionless/bindings/address-provider.d.ts +2 -3
- package/dist/types/permissionless/bindings/bytecode-repository.d.ts +2 -2
- package/dist/types/permissionless/bindings/compressors/token-compressor.d.ts +2 -2
- package/dist/types/permissionless/bindings/compressors/withdrawal-compressor.d.ts +2 -2
- package/dist/types/permissionless/bindings/cross-chain-multisig.d.ts +4 -4
- package/dist/types/permissionless/bindings/factory/abstract-factory.d.ts +2 -3
- package/dist/types/permissionless/bindings/factory/credit-factory.d.ts +2 -2
- package/dist/types/permissionless/bindings/factory/loss-policy-factory.d.ts +2 -2
- package/dist/types/permissionless/bindings/factory/pool-factory.d.ts +2 -2
- package/dist/types/permissionless/bindings/factory/price-oracle-factory.d.ts +2 -2
- package/dist/types/permissionless/bindings/factory/rate-keeper-factory.d.ts +2 -2
- package/dist/types/permissionless/bindings/governance/batches-chain.d.ts +2 -2
- package/dist/types/permissionless/bindings/governance/governor.d.ts +2 -2
- package/dist/types/permissionless/bindings/governance/timelock.d.ts +2 -3
- package/dist/types/permissionless/bindings/governance/types.d.ts +7 -8
- package/dist/types/permissionless/bindings/instance-manager.d.ts +2 -2
- package/dist/types/permissionless/bindings/market-configurator-factory.d.ts +2 -2
- package/dist/types/permissionless/bindings/market-configurator.d.ts +2 -2
- package/dist/types/permissionless/bindings/price-feed-store.d.ts +2 -2
- package/dist/types/permissionless/bindings/pricefeeds/balancer-stable.d.ts +2 -3
- package/dist/types/permissionless/bindings/pricefeeds/balancer-weighted.d.ts +2 -3
- package/dist/types/permissionless/bindings/pricefeeds/bounded.d.ts +2 -3
- package/dist/types/permissionless/bindings/pricefeeds/composite.d.ts +2 -3
- package/dist/types/permissionless/bindings/pricefeeds/constant.d.ts +2 -3
- package/dist/types/permissionless/bindings/pricefeeds/curve-crypto.d.ts +2 -3
- package/dist/types/permissionless/bindings/pricefeeds/curve-stable.d.ts +2 -3
- package/dist/types/permissionless/bindings/pricefeeds/curve-twap.d.ts +2 -3
- package/dist/types/permissionless/bindings/pricefeeds/curve-usd.d.ts +2 -3
- package/dist/types/permissionless/bindings/pricefeeds/erc4626.d.ts +2 -3
- package/dist/types/permissionless/bindings/pricefeeds/external.d.ts +2 -3
- package/dist/types/permissionless/bindings/pricefeeds/index.d.ts +2 -3
- package/dist/types/permissionless/bindings/pricefeeds/kodiak.d.ts +2 -3
- package/dist/types/permissionless/bindings/pricefeeds/mellow-lrt.d.ts +2 -3
- package/dist/types/permissionless/bindings/pricefeeds/pendle-pt-twap.d.ts +2 -3
- package/dist/types/permissionless/bindings/pricefeeds/pyth.d.ts +2 -3
- package/dist/types/permissionless/bindings/pricefeeds/redstone.d.ts +2 -3
- package/dist/types/permissionless/bindings/pricefeeds/wsteth.d.ts +2 -3
- package/dist/types/permissionless/bindings/pricefeeds/zero.d.ts +2 -3
- package/dist/types/permissionless/bindings/router/routing-manager.d.ts +2 -2
- package/dist/types/permissionless/bindings/treasury-splitter.d.ts +2 -2
- package/dist/types/permissionless/bindings/types.d.ts +17 -18
- package/dist/types/permissionless/chains/archive-transport.d.ts +3 -4
- package/dist/types/permissionless/chains/chunked-log-transport.d.ts +2 -2
- package/dist/types/permissionless/core/auditor.d.ts +2 -3
- package/dist/types/permissionless/core/bytecode.d.ts +5 -6
- package/dist/types/permissionless/core/pricefeed-builder.d.ts +6 -7
- package/dist/types/permissionless/core/pricefeed.d.ts +2 -3
- package/dist/types/permissionless/core/proposal.d.ts +5 -6
- package/dist/types/permissionless/core/raw-tx.d.ts +2 -3
- package/dist/types/permissionless/deployment/addresses.d.ts +2 -3
- package/dist/types/permissionless/deployment/mainnet.d.ts +6 -7
- package/dist/types/permissionless/plugins/irm/constructor-params-abi.d.ts +8 -8
- package/dist/types/permissionless/plugins/loss-policies/constructor-params-abi.d.ts +8 -8
- package/dist/types/permissionless/plugins/rate-keepers/constructor-params-abi.d.ts +9 -9
- package/dist/types/permissionless/utils/abi-encoder.d.ts +4 -5
- package/dist/types/permissionless/utils/block-utils.d.ts +2 -3
- package/dist/types/permissionless/utils/create2.d.ts +9 -10
- package/dist/types/permissionless/utils/format.d.ts +7 -8
- package/dist/types/permissionless/utils/governance/batch.d.ts +5 -6
- package/dist/types/permissionless/utils/governance/timelock-txs.d.ts +2 -3
- package/dist/types/permissionless/utils/governance/types.d.ts +3 -4
- package/dist/types/permissionless/utils/literals.d.ts +8 -9
- package/dist/types/permissionless/utils/price-update/get-price-update-tx.d.ts +2 -3
- package/dist/types/permissionless/utils/price-update/get-prices.d.ts +2 -3
- package/dist/types/permissionless/utils/price-update/get-updatable-feeds.d.ts +3 -4
- package/dist/types/permissionless/utils/signature.d.ts +2 -3
- package/dist/types/plugins/accounts/AccountsPlugin.d.ts +3 -4
- package/dist/types/plugins/accounts-counter/AccountsCounterPlugin.d.ts +3 -4
- package/dist/types/plugins/bots/BotsPlugin.d.ts +2 -3
- package/dist/types/plugins/bots/PartialLiquidationBotV310Contract.d.ts +3 -3
- package/dist/types/plugins/bots/abi/iPartialLiquidationBotV310.d.ts +2 -3
- package/dist/types/plugins/bots/config.d.ts +6 -7
- package/dist/types/plugins/bots/deserializePartialLiquidationBotParams.d.ts +2 -3
- package/dist/types/plugins/bots/types.d.ts +11 -12
- package/dist/types/sdk/AbstractNamespace.d.ts +3 -4
- package/dist/types/sdk/GearboxSDK.d.ts +3 -4
- package/dist/types/sdk/analytics/AnalyticsNamespace.d.ts +2 -3
- package/dist/types/sdk/analytics/types.d.ts +3 -4
- package/dist/types/sdk/errors/AllSourcesFailedError.d.ts +2 -3
- package/dist/types/sdk/errors/MissingSourceError.d.ts +2 -3
- package/dist/types/sdk/errors/NoSourceServedError.d.ts +2 -3
- package/dist/types/sdk/errors/SourceChainMismatchError.d.ts +3 -4
- package/dist/types/sdk/errors/SourceUnavailableError.d.ts +2 -3
- package/dist/types/sdk/errors/assertSameChains.d.ts +2 -3
- package/dist/types/sdk/errors/everyChainFailed.d.ts +2 -3
- package/dist/types/sdk/execute/ExecuteApi.d.ts +2 -3
- package/dist/types/sdk/execute/types.d.ts +9 -10
- package/dist/types/sdk/index.d.ts +2 -2
- package/dist/types/sdk/liquidations/LiquidationsNamespace.d.ts +11 -4
- package/dist/types/sdk/liquidations/types.d.ts +24 -9
- package/dist/types/sdk/opportunities/OpportunitiesNamespace.d.ts +2 -3
- package/dist/types/sdk/opportunities/types.d.ts +9 -10
- package/dist/types/sdk/positions/PositionsNamespace.d.ts +2 -3
- package/dist/types/sdk/positions/mergePositionList.d.ts +2 -3
- package/dist/types/sdk/positions/types.d.ts +9 -10
- package/dist/types/sdk/prepare/PrepareApi.d.ts +14 -7
- package/dist/types/sdk/prepare/index.d.ts +2 -2
- package/dist/types/sdk/prepare/types.d.ts +72 -33
- package/dist/types/sdk/prepare/withdrawable-collaterals.d.ts +2 -3
- package/dist/types/sdk/preview/PreviewNamespace.d.ts +2 -3
- package/dist/types/sdk/preview/types.d.ts +4 -5
- package/dist/types/sdk/rewards/RewardsNamespace.d.ts +2 -3
- package/dist/types/sdk/rewards/errors.d.ts +3 -4
- package/dist/types/sdk/rewards/helpers.d.ts +7 -8
- package/dist/types/sdk/rewards/merkl-api.d.ts +6 -6
- package/dist/types/sdk/rewards/toMerklRewards.d.ts +2 -3
- package/dist/types/sdk/rewards/toTurtleRewards.d.ts +2 -3
- package/dist/types/sdk/rewards/turtle-api.d.ts +7 -8
- package/dist/types/sdk/rewards/types.d.ts +5 -6
- package/dist/types/sdk/types.d.ts +13 -14
- package/dist/types/sdk/utils/filterResponse.d.ts +2 -3
- package/dist/types/sdk/utils/mergeChains.d.ts +4 -5
- package/dist/types/sdk/utils/types.d.ts +5 -5
- package/package.json +15 -15
|
@@ -31,7 +31,7 @@ import { Chain, PublicClient, Transport } from "viem";
|
|
|
31
31
|
* aggregate over every market the backend knows and nothing should wait on
|
|
32
32
|
* that to start.
|
|
33
33
|
**/
|
|
34
|
-
declare class ChainsNamespace extends AbstractOffchainNamespace {
|
|
34
|
+
export declare class ChainsNamespace extends AbstractOffchainNamespace {
|
|
35
35
|
#private;
|
|
36
36
|
constructor(options: GearboxPermissionlessOptions);
|
|
37
37
|
/**
|
|
@@ -95,5 +95,4 @@ declare class ChainsNamespace extends AbstractOffchainNamespace {
|
|
|
95
95
|
**/
|
|
96
96
|
client(chainId: number): PublicClient<Transport, Chain>;
|
|
97
97
|
}
|
|
98
|
-
//#endregion
|
|
99
|
-
export { ChainsNamespace };
|
|
98
|
+
//#endregion
|
|
@@ -3,7 +3,7 @@ import { z } from "zod/v4";
|
|
|
3
3
|
/**
|
|
4
4
|
* Runtime schema for {@link PermissionlessChain}.
|
|
5
5
|
**/
|
|
6
|
-
declare const chainSchema: z.ZodObject<{
|
|
6
|
+
export declare const chainSchema: z.ZodObject<{
|
|
7
7
|
chainId: z.ZodNumber;
|
|
8
8
|
name: z.ZodString;
|
|
9
9
|
isPublic: z.ZodBoolean;
|
|
@@ -11,7 +11,7 @@ declare const chainSchema: z.ZodObject<{
|
|
|
11
11
|
explorerUrl: z.ZodString;
|
|
12
12
|
}, z.core.$loose>;
|
|
13
13
|
/** What `GET /chain/list` answers with. */
|
|
14
|
-
declare const chainListSchema: z.ZodArray<z.ZodObject<{
|
|
14
|
+
export declare const chainListSchema: z.ZodArray<z.ZodObject<{
|
|
15
15
|
chainId: z.ZodNumber;
|
|
16
16
|
name: z.ZodString;
|
|
17
17
|
isPublic: z.ZodBoolean;
|
|
@@ -26,7 +26,7 @@ declare const chainListSchema: z.ZodArray<z.ZodObject<{
|
|
|
26
26
|
* dashes where the numbers belong — a skew worth failing on rather than
|
|
27
27
|
* displaying.
|
|
28
28
|
**/
|
|
29
|
-
declare const chainSummarySchema: z.ZodObject<{
|
|
29
|
+
export declare const chainSummarySchema: z.ZodObject<{
|
|
30
30
|
chainId: z.ZodNumber;
|
|
31
31
|
name: z.ZodString;
|
|
32
32
|
isPublic: z.ZodBoolean;
|
|
@@ -36,7 +36,7 @@ declare const chainSummarySchema: z.ZodObject<{
|
|
|
36
36
|
marketsQty: z.ZodNumber;
|
|
37
37
|
}, z.core.$loose>;
|
|
38
38
|
/** What `GET /chain/summary` answers with. */
|
|
39
|
-
declare const chainSummaryListSchema: z.ZodArray<z.ZodObject<{
|
|
39
|
+
export declare const chainSummaryListSchema: z.ZodArray<z.ZodObject<{
|
|
40
40
|
chainId: z.ZodNumber;
|
|
41
41
|
name: z.ZodString;
|
|
42
42
|
isPublic: z.ZodBoolean;
|
|
@@ -45,5 +45,4 @@ declare const chainSummaryListSchema: z.ZodArray<z.ZodObject<{
|
|
|
45
45
|
riskCuratorsQty: z.ZodNumber;
|
|
46
46
|
marketsQty: z.ZodNumber;
|
|
47
47
|
}, z.core.$loose>>;
|
|
48
|
-
//#endregion
|
|
49
|
-
export { chainListSchema, chainSchema, chainSummaryListSchema, chainSummarySchema };
|
|
48
|
+
//#endregion
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* - `public` — the ones open to everyone, the backend's default;
|
|
6
6
|
* - `all` — those plus the private ones the caller may see.
|
|
7
7
|
**/
|
|
8
|
-
type ChainScope = "public" | "all";
|
|
8
|
+
export type ChainScope = "public" | "all";
|
|
9
9
|
/**
|
|
10
10
|
* One chain the permissionless stack is deployed on.
|
|
11
11
|
*
|
|
@@ -17,7 +17,7 @@ type ChainScope = "public" | "all";
|
|
|
17
17
|
* decides whether to show it. The counters are a second read, see
|
|
18
18
|
* {@link PermissionlessChainSummary}.
|
|
19
19
|
**/
|
|
20
|
-
interface PermissionlessChain {
|
|
20
|
+
export interface PermissionlessChain {
|
|
21
21
|
chainId: number;
|
|
22
22
|
name: string;
|
|
23
23
|
/** Whether the instance is open to everyone, or only to its own curators. */
|
|
@@ -33,19 +33,19 @@ interface PermissionlessChain {
|
|
|
33
33
|
* A chain with the counters a list renders next to it, see
|
|
34
34
|
* {@link ChainsNamespace.summary}.
|
|
35
35
|
**/
|
|
36
|
-
interface PermissionlessChainSummary extends PermissionlessChain {
|
|
36
|
+
export interface PermissionlessChainSummary extends PermissionlessChain {
|
|
37
37
|
riskCuratorsQty: number;
|
|
38
38
|
marketsQty: number;
|
|
39
39
|
}
|
|
40
40
|
/** Args of {@link ChainsNamespace.attach}. */
|
|
41
|
-
interface AttachChainsArgs {
|
|
41
|
+
export interface AttachChainsArgs {
|
|
42
42
|
/**
|
|
43
43
|
* @defaultValue `"public"`
|
|
44
44
|
**/
|
|
45
45
|
scope?: ChainScope;
|
|
46
46
|
}
|
|
47
47
|
/** Args of {@link ChainsNamespace.summary}. */
|
|
48
|
-
interface ChainSummaryArgs {
|
|
48
|
+
export interface ChainSummaryArgs {
|
|
49
49
|
/**
|
|
50
50
|
* Which chains to count.
|
|
51
51
|
*
|
|
@@ -54,5 +54,4 @@ interface ChainSummaryArgs {
|
|
|
54
54
|
**/
|
|
55
55
|
scope?: ChainScope;
|
|
56
56
|
}
|
|
57
|
-
//#endregion
|
|
58
|
-
export { AttachChainsArgs, ChainScope, ChainSummaryArgs, PermissionlessChain, PermissionlessChainSummary };
|
|
57
|
+
//#endregion
|
|
@@ -7,12 +7,12 @@ import { Hex } from "viem";
|
|
|
7
7
|
* deploys of the same type and arguments by the same owner collide under it,
|
|
8
8
|
* which for a singleton like a pause committee is the point.
|
|
9
9
|
**/
|
|
10
|
-
declare const DEFAULT_DEPLOY_SALT: Hex;
|
|
10
|
+
export declare const DEFAULT_DEPLOY_SALT: Hex;
|
|
11
11
|
/**
|
|
12
12
|
* The salt a price feed is deployed under, derived from its name so that two
|
|
13
13
|
* feeds of the same type and arguments get different addresses.
|
|
14
14
|
**/
|
|
15
|
-
declare function priceFeedSalt(name: string): Hex;
|
|
15
|
+
export declare function priceFeedSalt(name: string): Hex;
|
|
16
16
|
/**
|
|
17
17
|
* Deploys through the BytecodeRepository: the constructor arguments it wants,
|
|
18
18
|
* the CREATE2 address those produce, and the transaction that gets there.
|
|
@@ -36,7 +36,7 @@ declare function priceFeedSalt(name: string): Hex;
|
|
|
36
36
|
* }
|
|
37
37
|
* ```
|
|
38
38
|
**/
|
|
39
|
-
declare class PermissionlessDeploy {
|
|
39
|
+
export declare class PermissionlessDeploy {
|
|
40
40
|
#private;
|
|
41
41
|
constructor(chains: ChainsNamespace);
|
|
42
42
|
/**
|
|
@@ -65,5 +65,4 @@ declare class PermissionlessDeploy {
|
|
|
65
65
|
**/
|
|
66
66
|
contract(args: DeployContractArgs): Promise<PreparedDeployment>;
|
|
67
67
|
}
|
|
68
|
-
//#endregion
|
|
69
|
-
export { DEFAULT_DEPLOY_SALT, PermissionlessDeploy, priceFeedSalt };
|
|
68
|
+
//#endregion
|
|
@@ -14,6 +14,5 @@ import { Address, PublicClient } from "viem";
|
|
|
14
14
|
* underlying oracle can never satisfy produces a feed that reverts on every
|
|
15
15
|
* read and can never be added to the store.
|
|
16
16
|
**/
|
|
17
|
-
declare function deriveEffectiveStalenessPeriod(client: PublicClient, address: Address): Promise<number | null>;
|
|
18
|
-
//#endregion
|
|
19
|
-
export { deriveEffectiveStalenessPeriod };
|
|
17
|
+
export declare function deriveEffectiveStalenessPeriod(client: PublicClient, address: Address): Promise<number | null>;
|
|
18
|
+
//#endregion
|
|
@@ -14,14 +14,14 @@ import { Address, Hex } from "viem";
|
|
|
14
14
|
* The chain must be among the ones the client was constructed with, see
|
|
15
15
|
* {@link GearboxPermissionlessOptions.chains}.
|
|
16
16
|
**/
|
|
17
|
-
interface DeployArgs {
|
|
17
|
+
export interface DeployArgs {
|
|
18
18
|
chainId: number;
|
|
19
19
|
owner: Address;
|
|
20
20
|
contractType: string;
|
|
21
21
|
version: number;
|
|
22
22
|
}
|
|
23
23
|
/** Args of {@link PermissionlessDeploy.priceFeed}. */
|
|
24
|
-
interface DeployPriceFeedArgs extends DeployArgs {
|
|
24
|
+
export interface DeployPriceFeedArgs extends DeployArgs {
|
|
25
25
|
/**
|
|
26
26
|
* Constructor values keyed by the labels of the feed's
|
|
27
27
|
* {@link PriceFeedSetupParams}, i.e. what a form collects.
|
|
@@ -37,7 +37,7 @@ interface DeployPriceFeedArgs extends DeployArgs {
|
|
|
37
37
|
salt?: Hex;
|
|
38
38
|
}
|
|
39
39
|
/** Args of {@link PermissionlessDeploy.contract}. */
|
|
40
|
-
interface DeployContractArgs extends DeployArgs {
|
|
40
|
+
export interface DeployContractArgs extends DeployArgs {
|
|
41
41
|
/** Constructor values as ABI type/value pairs. */
|
|
42
42
|
values: FunctionParams[];
|
|
43
43
|
/**
|
|
@@ -53,7 +53,7 @@ interface DeployContractArgs extends DeployArgs {
|
|
|
53
53
|
* {@link tx} through `sendRawTx`; one on wagmi can either do the same or call
|
|
54
54
|
* `BytecodeRepository.deploy` itself with the fields below.
|
|
55
55
|
**/
|
|
56
|
-
interface PreparedDeployment {
|
|
56
|
+
export interface PreparedDeployment {
|
|
57
57
|
contractType: string;
|
|
58
58
|
version: number;
|
|
59
59
|
owner: Address;
|
|
@@ -74,7 +74,7 @@ interface PreparedDeployment {
|
|
|
74
74
|
* A prepared price feed deploy, plus the constructor values that were actually
|
|
75
75
|
* encoded.
|
|
76
76
|
**/
|
|
77
|
-
interface PreparedPriceFeedDeployment extends PreparedDeployment {
|
|
77
|
+
export interface PreparedPriceFeedDeployment extends PreparedDeployment {
|
|
78
78
|
/**
|
|
79
79
|
* {@link DeployPriceFeedArgs.values} after the bounds that had to be read
|
|
80
80
|
* off the chain were filled in, see
|
|
@@ -83,5 +83,4 @@ interface PreparedPriceFeedDeployment extends PreparedDeployment {
|
|
|
83
83
|
**/
|
|
84
84
|
values: Record<string, InputValueParams>;
|
|
85
85
|
}
|
|
86
|
-
//#endregion
|
|
87
|
-
export { DeployArgs, DeployContractArgs, DeployPriceFeedArgs, PreparedDeployment, PreparedPriceFeedDeployment };
|
|
86
|
+
//#endregion
|
|
@@ -8,7 +8,7 @@ import { Address, BaseError } from "viem";
|
|
|
8
8
|
* it arrives. Answering with an empty list instead would be indistinguishable
|
|
9
9
|
* from a backend that serves no chains at all.
|
|
10
10
|
**/
|
|
11
|
-
declare class PermissionlessNotAttachedError extends BaseError {
|
|
11
|
+
export declare class PermissionlessNotAttachedError extends BaseError {
|
|
12
12
|
name: string;
|
|
13
13
|
constructor();
|
|
14
14
|
}
|
|
@@ -19,7 +19,7 @@ declare class PermissionlessNotAttachedError extends BaseError {
|
|
|
19
19
|
* carries no definition for: endpoints come from the chain definition, since
|
|
20
20
|
* the backend's own urls carry provider keys and are never handed out.
|
|
21
21
|
**/
|
|
22
|
-
declare class PermissionlessChainUnreachableError extends BaseError {
|
|
22
|
+
export declare class PermissionlessChainUnreachableError extends BaseError {
|
|
23
23
|
name: string;
|
|
24
24
|
/** Chain that was asked for. */
|
|
25
25
|
readonly chainId: number;
|
|
@@ -30,7 +30,7 @@ declare class PermissionlessChainUnreachableError extends BaseError {
|
|
|
30
30
|
* is part of what the store holds, so there is nothing to change on a feed
|
|
31
31
|
* that never reached it.
|
|
32
32
|
**/
|
|
33
|
-
declare class PriceFeedNotInStoreError extends BaseError {
|
|
33
|
+
export declare class PriceFeedNotInStoreError extends BaseError {
|
|
34
34
|
name: string;
|
|
35
35
|
/** Feed that was named. */
|
|
36
36
|
readonly priceFeed: Address;
|
|
@@ -45,7 +45,7 @@ declare class PriceFeedNotInStoreError extends BaseError {
|
|
|
45
45
|
* never pass reverts on every read, and the store will not take it. The bound
|
|
46
46
|
* has to be set on the leg first.
|
|
47
47
|
**/
|
|
48
|
-
declare class PriceFeedStalenessUnknownError extends BaseError {
|
|
48
|
+
export declare class PriceFeedStalenessUnknownError extends BaseError {
|
|
49
49
|
name: string;
|
|
50
50
|
/** Leg whose bound could not be determined. */
|
|
51
51
|
readonly priceFeed: Address;
|
|
@@ -55,9 +55,8 @@ declare class PriceFeedStalenessUnknownError extends BaseError {
|
|
|
55
55
|
* Thrown when a price feed deploy names neither a salt nor the name one would
|
|
56
56
|
* be derived from, leaving CREATE2 nothing to distinguish it by.
|
|
57
57
|
**/
|
|
58
|
-
declare class PriceFeedSaltMissingError extends BaseError {
|
|
58
|
+
export declare class PriceFeedSaltMissingError extends BaseError {
|
|
59
59
|
name: string;
|
|
60
60
|
constructor();
|
|
61
61
|
}
|
|
62
|
-
//#endregion
|
|
63
|
-
export { PermissionlessChainUnreachableError, PermissionlessNotAttachedError, PriceFeedNotInStoreError, PriceFeedSaltMissingError, PriceFeedStalenessUnknownError };
|
|
62
|
+
//#endregion
|
|
@@ -4,8 +4,8 @@ import { ChainsNamespace } from "../chains/ChainsNamespace.js";
|
|
|
4
4
|
import { GetPricesArgs, PermissionlessPriceFeedStore, PermissionlessPrices } from "./types.js";
|
|
5
5
|
import { Address } from "viem";
|
|
6
6
|
//#region src/permissionless/api/oracles/PermissionlessOracles.d.ts
|
|
7
|
-
declare const GET_PRICES_GAS_LIMIT_BY_CHAIN_ID: Record<number, bigint>;
|
|
8
|
-
declare const GET_PRICES_CHUNK_SIZE = 200;
|
|
7
|
+
export declare const GET_PRICES_GAS_LIMIT_BY_CHAIN_ID: Record<number, bigint>;
|
|
8
|
+
export declare const GET_PRICES_CHUNK_SIZE = 200;
|
|
9
9
|
/**
|
|
10
10
|
* The price feeds of one chain: the PriceFeedStore as the backend has indexed
|
|
11
11
|
* it, and the prices behind it.
|
|
@@ -19,7 +19,7 @@ declare const GET_PRICES_CHUNK_SIZE = 200;
|
|
|
19
19
|
* there is a batch the instance owner executes — see
|
|
20
20
|
* {@link InstanceOwnerTransactions} — not a row a client writes here.
|
|
21
21
|
**/
|
|
22
|
-
declare class PermissionlessOracles extends AbstractOffchainNamespace {
|
|
22
|
+
export declare class PermissionlessOracles extends AbstractOffchainNamespace {
|
|
23
23
|
#private;
|
|
24
24
|
constructor(options: GearboxPermissionlessOptions, chains: ChainsNamespace);
|
|
25
25
|
/**
|
|
@@ -60,5 +60,4 @@ declare class PermissionlessOracles extends AbstractOffchainNamespace {
|
|
|
60
60
|
**/
|
|
61
61
|
getPrices({ chainId, priceFeeds }: GetPricesArgs): Promise<Record<Address, bigint | null>>;
|
|
62
62
|
}
|
|
63
|
-
//#endregion
|
|
64
|
-
export { GET_PRICES_CHUNK_SIZE, GET_PRICES_GAS_LIMIT_BY_CHAIN_ID, PermissionlessOracles };
|
|
63
|
+
//#endregion
|
|
@@ -9,7 +9,7 @@ import { z } from "zod/v4";
|
|
|
9
9
|
* the payload it decodes.
|
|
10
10
|
**/
|
|
11
11
|
/** {@link PriceFeed}, as the backend serves it. */
|
|
12
|
-
declare const priceFeedSchema: z.ZodObject<{
|
|
12
|
+
export declare const priceFeedSchema: z.ZodObject<{
|
|
13
13
|
address: z.ZodCustom<`0x${string}`, `0x${string}`>;
|
|
14
14
|
contractType: z.ZodString;
|
|
15
15
|
version: z.ZodNumber;
|
|
@@ -18,7 +18,7 @@ declare const priceFeedSchema: z.ZodObject<{
|
|
|
18
18
|
name: z.ZodString;
|
|
19
19
|
}, z.core.$loose>;
|
|
20
20
|
/** {@link PermissionlessAsset} */
|
|
21
|
-
declare const assetSchema: z.ZodObject<{
|
|
21
|
+
export declare const assetSchema: z.ZodObject<{
|
|
22
22
|
address: z.ZodCustom<`0x${string}`, `0x${string}`>;
|
|
23
23
|
symbol: z.ZodString;
|
|
24
24
|
name: z.ZodString;
|
|
@@ -34,7 +34,7 @@ declare const assetSchema: z.ZodObject<{
|
|
|
34
34
|
}, z.core.$loose>>;
|
|
35
35
|
}, z.core.$loose>;
|
|
36
36
|
/** {@link PermissionlessPriceFeedStore} */
|
|
37
|
-
declare const priceFeedStoreSchema: z.ZodObject<{
|
|
37
|
+
export declare const priceFeedStoreSchema: z.ZodObject<{
|
|
38
38
|
chainId: z.ZodNumber;
|
|
39
39
|
name: z.ZodString;
|
|
40
40
|
isPublic: z.ZodBoolean;
|
|
@@ -65,10 +65,9 @@ declare const priceFeedStoreSchema: z.ZodObject<{
|
|
|
65
65
|
}, z.core.$loose>>;
|
|
66
66
|
}, z.core.$loose>;
|
|
67
67
|
/** {@link PermissionlessPrices} */
|
|
68
|
-
declare const pricesSchema: z.ZodObject<{
|
|
68
|
+
export declare const pricesSchema: z.ZodObject<{
|
|
69
69
|
prices: z.ZodType<Record<`0x${string}`, string | null>, unknown, z.core.$ZodTypeInternals<Record<`0x${string}`, string | null>, unknown>>;
|
|
70
70
|
marketCaps: z.ZodType<Record<`0x${string}`, Record<`0x${string}`, string | null>>, unknown, z.core.$ZodTypeInternals<Record<`0x${string}`, Record<`0x${string}`, string | null>>, unknown>>;
|
|
71
71
|
time: z.ZodNumber;
|
|
72
72
|
}, z.core.$loose>;
|
|
73
|
-
//#endregion
|
|
74
|
-
export { assetSchema, priceFeedSchema, priceFeedStoreSchema, pricesSchema };
|
|
73
|
+
//#endregion
|
|
@@ -7,7 +7,7 @@ import { Address } from "viem";
|
|
|
7
7
|
* the chain, so every feed listed here is one the PriceFeedStore carries and
|
|
8
8
|
* allows for the asset.
|
|
9
9
|
**/
|
|
10
|
-
interface PermissionlessAsset {
|
|
10
|
+
export interface PermissionlessAsset {
|
|
11
11
|
address: Address;
|
|
12
12
|
symbol: string;
|
|
13
13
|
name: string;
|
|
@@ -19,7 +19,7 @@ interface PermissionlessAsset {
|
|
|
19
19
|
* The PriceFeedStore of one chain as the backend has indexed it: the assets
|
|
20
20
|
* it prices, the feeds it carries, and which feed is allowed on which asset.
|
|
21
21
|
**/
|
|
22
|
-
interface PermissionlessPriceFeedStore {
|
|
22
|
+
export interface PermissionlessPriceFeedStore {
|
|
23
23
|
chainId: number;
|
|
24
24
|
name: string;
|
|
25
25
|
isPublic: boolean;
|
|
@@ -32,13 +32,13 @@ interface PermissionlessPriceFeedStore {
|
|
|
32
32
|
* A price per feed, and a market cap per feed and the asset it prices.
|
|
33
33
|
* `null` is a price the backend could not read, not a zero.
|
|
34
34
|
**/
|
|
35
|
-
interface PermissionlessPrices {
|
|
35
|
+
export interface PermissionlessPrices {
|
|
36
36
|
prices: Record<Address, string | null>;
|
|
37
37
|
marketCaps: Record<Address, Record<Address, string | null>>;
|
|
38
38
|
time: number;
|
|
39
39
|
}
|
|
40
40
|
/** Args of {@link PermissionlessOracles.getPrices}. */
|
|
41
|
-
interface GetPricesArgs {
|
|
41
|
+
export interface GetPricesArgs {
|
|
42
42
|
chainId: number;
|
|
43
43
|
/**
|
|
44
44
|
* The feeds to price. Any address answering `latestRoundData` works — the
|
|
@@ -47,5 +47,4 @@ interface GetPricesArgs {
|
|
|
47
47
|
**/
|
|
48
48
|
priceFeeds: Address[];
|
|
49
49
|
}
|
|
50
|
-
//#endregion
|
|
51
|
-
export { GetPricesArgs, PermissionlessAsset, PermissionlessPriceFeedStore, PermissionlessPrices };
|
|
50
|
+
//#endregion
|
|
@@ -10,13 +10,12 @@ import { z } from "zod/v4";
|
|
|
10
10
|
* A caller that needs one form converts with viem's `getAddress`.
|
|
11
11
|
**/
|
|
12
12
|
/** An address, in whatever case the backend serves it. */
|
|
13
|
-
declare const addressSchema: z.ZodCustom<`0x${string}`, `0x${string}`>;
|
|
13
|
+
export declare const addressSchema: z.ZodCustom<`0x${string}`, `0x${string}`>;
|
|
14
14
|
/** A `0x`-prefixed hex string, as viem's `Hex`. */
|
|
15
|
-
declare const hexSchema: z.ZodCustom<`0x${string}`, `0x${string}`>;
|
|
15
|
+
export declare const hexSchema: z.ZodCustom<`0x${string}`, `0x${string}`>;
|
|
16
16
|
/**
|
|
17
17
|
* A record keyed by address. Spelled out here because zod types a record key
|
|
18
18
|
* by the schema's output, which the branded `Address` is not inferred as.
|
|
19
19
|
**/
|
|
20
|
-
declare function addressRecord<V extends z.ZodType>(value: V): z.ZodType<Record<Address, z.output<V>>>;
|
|
21
|
-
//#endregion
|
|
22
|
-
export { addressRecord, addressSchema, hexSchema };
|
|
20
|
+
export declare function addressRecord<V extends z.ZodType>(value: V): z.ZodType<Record<Address, z.output<V>>>;
|
|
21
|
+
//#endregion
|
|
@@ -26,7 +26,7 @@ import { AddFeedsArgs, ChangeNamesArgs, ChangeStalenessPeriodsArgs, ForbidFeedsA
|
|
|
26
26
|
* });
|
|
27
27
|
* ```
|
|
28
28
|
**/
|
|
29
|
-
declare class InstanceOwnerTransactions {
|
|
29
|
+
export declare class InstanceOwnerTransactions {
|
|
30
30
|
#private;
|
|
31
31
|
constructor(chains: ChainsNamespace, oracles: PermissionlessOracles);
|
|
32
32
|
/**
|
|
@@ -64,5 +64,4 @@ declare class InstanceOwnerTransactions {
|
|
|
64
64
|
**/
|
|
65
65
|
updateBounds({ chainId, owner }: InstanceTxsArgs): Promise<InstanceTxs>;
|
|
66
66
|
}
|
|
67
|
-
//#endregion
|
|
68
|
-
export { InstanceOwnerTransactions };
|
|
67
|
+
//#endregion
|
|
@@ -7,11 +7,10 @@ import { Address, PublicClient } from "viem";
|
|
|
7
7
|
* the rate has outgrown the bound or drifted far enough from it to be worth a
|
|
8
8
|
* transaction. Returns nothing when the bound still fits.
|
|
9
9
|
**/
|
|
10
|
-
declare function updateBounds(client: PublicClient, address: Address): Promise<RawTx[]>;
|
|
10
|
+
export declare function updateBounds(client: PublicClient, address: Address): Promise<RawTx[]>;
|
|
11
11
|
/**
|
|
12
12
|
* Of the whole feed tree behind `feeds`, the ones that are LP feeds: the
|
|
13
13
|
* probe keeps whatever answers `getLPExchangeRate`.
|
|
14
14
|
**/
|
|
15
|
-
declare function getFeedsToUpdate(client: PublicClient, pfCompressor: Address, feeds: Address[]): Promise<Address[]>;
|
|
16
|
-
//#endregion
|
|
17
|
-
export { getFeedsToUpdate, updateBounds };
|
|
15
|
+
export declare function getFeedsToUpdate(client: PublicClient, pfCompressor: Address, feeds: Address[]): Promise<Address[]>;
|
|
16
|
+
//#endregion
|
|
@@ -7,7 +7,7 @@ import { Address } from "viem";
|
|
|
7
7
|
* The chain must be one {@link ChainsNamespace} serves a client for: a batch
|
|
8
8
|
* is built off the chain it will be executed on.
|
|
9
9
|
**/
|
|
10
|
-
interface InstanceTxsArgs {
|
|
10
|
+
export interface InstanceTxsArgs {
|
|
11
11
|
chainId: number;
|
|
12
12
|
/**
|
|
13
13
|
* Whose rows the batch is built from, and who it records as its author.
|
|
@@ -22,12 +22,12 @@ interface InstanceTxsArgs {
|
|
|
22
22
|
* One asset-to-feed edge the store has to carry, see
|
|
23
23
|
* {@link AddFeedsArgs.pairs}.
|
|
24
24
|
**/
|
|
25
|
-
interface PriceFeedPair {
|
|
25
|
+
export interface PriceFeedPair {
|
|
26
26
|
asset: Address;
|
|
27
27
|
priceFeed: Address;
|
|
28
28
|
}
|
|
29
29
|
/** Args of {@link InstanceOwnerTransactions.addFeeds}. */
|
|
30
|
-
interface AddFeedsArgs extends InstanceTxsArgs {
|
|
30
|
+
export interface AddFeedsArgs extends InstanceTxsArgs {
|
|
31
31
|
/**
|
|
32
32
|
* The feeds to put in the store. Only what the store records is read, so a
|
|
33
33
|
* caller holding a whole {@link PriceFeed} passes it unchanged.
|
|
@@ -40,19 +40,18 @@ interface AddFeedsArgs extends InstanceTxsArgs {
|
|
|
40
40
|
pairs: PriceFeedPair[];
|
|
41
41
|
}
|
|
42
42
|
/** Args of {@link InstanceOwnerTransactions.changeNames}. */
|
|
43
|
-
interface ChangeNamesArgs extends InstanceTxsArgs {
|
|
43
|
+
export interface ChangeNamesArgs extends InstanceTxsArgs {
|
|
44
44
|
/** The new name of each feed, keyed by the feed's address. */
|
|
45
45
|
names: Record<Address, string>;
|
|
46
46
|
}
|
|
47
47
|
/** Args of {@link InstanceOwnerTransactions.changeStalenessPeriods}. */
|
|
48
|
-
interface ChangeStalenessPeriodsArgs extends InstanceTxsArgs {
|
|
48
|
+
export interface ChangeStalenessPeriodsArgs extends InstanceTxsArgs {
|
|
49
49
|
/** The new staleness period in seconds, keyed by the feed's address. */
|
|
50
50
|
periods: Record<Address, number>;
|
|
51
51
|
}
|
|
52
52
|
/** Args of {@link InstanceOwnerTransactions.forbidFeeds}. */
|
|
53
|
-
interface ForbidFeedsArgs extends InstanceTxsArgs {
|
|
53
|
+
export interface ForbidFeedsArgs extends InstanceTxsArgs {
|
|
54
54
|
/** The feeds to forbid, keyed by the asset they were allowed for. */
|
|
55
55
|
tokens: Record<Address, Address[]>;
|
|
56
56
|
}
|
|
57
|
-
//#endregion
|
|
58
|
-
export { AddFeedsArgs, ChangeNamesArgs, ChangeStalenessPeriodsArgs, ForbidFeedsArgs, InstanceTxsArgs, PriceFeedPair };
|
|
57
|
+
//#endregion
|
|
@@ -8,7 +8,7 @@ import { Transport } from "viem";
|
|
|
8
8
|
* backend, minus the chains: those the permissionless backend decides, and
|
|
9
9
|
* {@link ChainsNamespace} reads that list and builds the clients from it.
|
|
10
10
|
**/
|
|
11
|
-
type GearboxPermissionlessOptions = Omit<GearboxAPIOptions, "chainIds"> & {
|
|
11
|
+
export type GearboxPermissionlessOptions = Omit<GearboxAPIOptions, "chainIds"> & {
|
|
12
12
|
/**
|
|
13
13
|
* Transports to reach chains directly through, by chain id.
|
|
14
14
|
*
|
|
@@ -23,5 +23,4 @@ type GearboxPermissionlessOptions = Omit<GearboxAPIOptions, "chainIds"> & {
|
|
|
23
23
|
**/
|
|
24
24
|
transports?: Record<number, Transport>;
|
|
25
25
|
};
|
|
26
|
-
//#endregion
|
|
27
|
-
export { GearboxPermissionlessOptions };
|
|
26
|
+
//#endregion
|
|
@@ -2,11 +2,10 @@ import { AddressProviderV310Contract } from "../../onchain/core/AddressProviderV
|
|
|
2
2
|
import "../../onchain/index.js";
|
|
3
3
|
import { Address, Chain, PublicClient, Transport } from "viem";
|
|
4
4
|
//#region src/permissionless/bindings/address-provider.d.ts
|
|
5
|
-
declare class AddressProviderContract extends AddressProviderV310Contract {
|
|
5
|
+
export declare class AddressProviderContract extends AddressProviderV310Contract {
|
|
6
6
|
constructor(addr: Address, client: PublicClient<Transport, Chain>);
|
|
7
7
|
getAddressOrRevert(key: string, version?: bigint): Promise<Address>;
|
|
8
8
|
getLatestVersionAddress(key: string): Promise<Address>;
|
|
9
9
|
getLatestVersion(key: string): Promise<bigint>;
|
|
10
10
|
}
|
|
11
|
-
//#endregion
|
|
12
|
-
export { AddressProviderContract };
|
|
11
|
+
//#endregion
|
|
@@ -1152,7 +1152,7 @@ interface ComputeAddressArgs {
|
|
|
1152
1152
|
salt: Hex;
|
|
1153
1153
|
owner: Address;
|
|
1154
1154
|
}
|
|
1155
|
-
declare class BytecodeRepositoryContract extends BaseContract<typeof abi> {
|
|
1155
|
+
export declare class BytecodeRepositoryContract extends BaseContract<typeof abi> {
|
|
1156
1156
|
constructor(addr: Address, client: PublicClient<Transport, Chain>);
|
|
1157
1157
|
getBytecodeByHash(hash: `0x${string}`): Promise<{
|
|
1158
1158
|
author: `0x${string}`;
|
|
@@ -1354,4 +1354,4 @@ declare class BytecodeRepositoryContract extends BaseContract<typeof abi> {
|
|
|
1354
1354
|
}): RawTx;
|
|
1355
1355
|
}
|
|
1356
1356
|
//#endregion
|
|
1357
|
-
export {
|
|
1357
|
+
export {};
|
|
@@ -103,7 +103,7 @@ declare const abi: readonly [{
|
|
|
103
103
|
}];
|
|
104
104
|
readonly stateMutability: "view";
|
|
105
105
|
}];
|
|
106
|
-
declare class TokenCompressorContract extends BaseContract<typeof abi> {
|
|
106
|
+
export declare class TokenCompressorContract extends BaseContract<typeof abi> {
|
|
107
107
|
constructor(addr: Address, client: PublicClient<Transport, Chain>);
|
|
108
108
|
getTokenInfo(token: Address): Promise<{
|
|
109
109
|
name: string;
|
|
@@ -118,4 +118,4 @@ declare class TokenCompressorContract extends BaseContract<typeof abi> {
|
|
|
118
118
|
}[]>;
|
|
119
119
|
}
|
|
120
120
|
//#endregion
|
|
121
|
-
export {
|
|
121
|
+
export {};
|
|
@@ -778,9 +778,9 @@ declare const abi: readonly [{
|
|
|
778
778
|
}];
|
|
779
779
|
readonly anonymous: false;
|
|
780
780
|
}];
|
|
781
|
-
declare class WithdrawalCompressorContract extends BaseContract<typeof abi> {
|
|
781
|
+
export declare class WithdrawalCompressorContract extends BaseContract<typeof abi> {
|
|
782
782
|
constructor(addr: Address, client: PublicClient<Transport, Chain>);
|
|
783
783
|
protected parseFunctionParams(params: DecodeFunctionDataReturnType<typeof abi>): ParsedCallArgs;
|
|
784
784
|
}
|
|
785
785
|
//#endregion
|
|
786
|
-
export {
|
|
786
|
+
export {};
|
|
@@ -715,12 +715,12 @@ declare const abi: readonly [{
|
|
|
715
715
|
}];
|
|
716
716
|
readonly name: "StringTooLong";
|
|
717
717
|
}];
|
|
718
|
-
interface ConstructorParams {
|
|
718
|
+
export interface ConstructorParams {
|
|
719
719
|
signers: Address[];
|
|
720
720
|
threshold: number;
|
|
721
721
|
dao: Address;
|
|
722
722
|
}
|
|
723
|
-
interface Proposal {
|
|
723
|
+
export interface Proposal {
|
|
724
724
|
name: string;
|
|
725
725
|
calls: {
|
|
726
726
|
chainId: bigint;
|
|
@@ -728,7 +728,7 @@ interface Proposal {
|
|
|
728
728
|
callData: Hex;
|
|
729
729
|
}[];
|
|
730
730
|
}
|
|
731
|
-
declare class CrossChainMultisigContract extends BaseContract<typeof abi> {
|
|
731
|
+
export declare class CrossChainMultisigContract extends BaseContract<typeof abi> {
|
|
732
732
|
#private;
|
|
733
733
|
constructor(addr: Address, register: ChainContractsRegister);
|
|
734
734
|
getExecutedBatches(fromBlock: bigint, toBlock: bigint): Promise<Omit<Batch, "timestamp">[]>;
|
|
@@ -837,4 +837,4 @@ declare class CrossChainMultisigContract extends BaseContract<typeof abi> {
|
|
|
837
837
|
getConstructorParams(): Promise<ConstructorParams>;
|
|
838
838
|
}
|
|
839
839
|
//#endregion
|
|
840
|
-
export {
|
|
840
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Abi, ContractFunctionName, EncodeFunctionDataParameters, Hex } from "viem";
|
|
2
2
|
//#region src/permissionless/bindings/factory/abstract-factory.d.ts
|
|
3
|
-
declare class AbstractFactory<const abi extends Abi | readonly unknown[]> {
|
|
3
|
+
export declare class AbstractFactory<const abi extends Abi | readonly unknown[]> {
|
|
4
4
|
readonly abi: abi;
|
|
5
5
|
constructor(abi: abi);
|
|
6
6
|
createCallData<functionName extends ContractFunctionName<abi> | undefined = undefined>(parameters: Omit<EncodeFunctionDataParameters<abi, functionName>, "abi"> & {
|
|
@@ -16,5 +16,4 @@ declare class AbstractFactory<const abi extends Abi | readonly unknown[]> {
|
|
|
16
16
|
args: Record<string, string>;
|
|
17
17
|
} | null;
|
|
18
18
|
}
|
|
19
|
-
//#endregion
|
|
20
|
-
export { AbstractFactory };
|
|
19
|
+
//#endregion
|
|
@@ -189,7 +189,7 @@ declare const abi: readonly [{
|
|
|
189
189
|
readonly outputs: readonly [];
|
|
190
190
|
readonly stateMutability: "nonpayable";
|
|
191
191
|
}];
|
|
192
|
-
declare class CreditFactory extends AbstractFactory<typeof abi> {
|
|
192
|
+
export declare class CreditFactory extends AbstractFactory<typeof abi> {
|
|
193
193
|
constructor();
|
|
194
194
|
pause(): Hex;
|
|
195
195
|
unpause(): Hex;
|
|
@@ -223,4 +223,4 @@ declare class CreditFactory extends AbstractFactory<typeof abi> {
|
|
|
223
223
|
} | null;
|
|
224
224
|
}
|
|
225
225
|
//#endregion
|
|
226
|
-
export {
|
|
226
|
+
export {};
|
|
@@ -128,7 +128,7 @@ declare const abi: readonly [{
|
|
|
128
128
|
}];
|
|
129
129
|
readonly anonymous: false;
|
|
130
130
|
}];
|
|
131
|
-
declare class LossPolicyFactory extends AbstractFactory<typeof abi> {
|
|
131
|
+
export declare class LossPolicyFactory extends AbstractFactory<typeof abi> {
|
|
132
132
|
constructor();
|
|
133
133
|
setAccessMode(args: {
|
|
134
134
|
accessMode: AccessMode;
|
|
@@ -142,4 +142,4 @@ declare class LossPolicyFactory extends AbstractFactory<typeof abi> {
|
|
|
142
142
|
} | null;
|
|
143
143
|
}
|
|
144
144
|
//#endregion
|
|
145
|
-
export {
|
|
145
|
+
export {};
|
|
@@ -67,7 +67,7 @@ declare const abi: readonly [{
|
|
|
67
67
|
readonly outputs: readonly [];
|
|
68
68
|
readonly stateMutability: "nonpayable";
|
|
69
69
|
}];
|
|
70
|
-
declare class PoolFactory extends AbstractFactory<typeof abi> {
|
|
70
|
+
export declare class PoolFactory extends AbstractFactory<typeof abi> {
|
|
71
71
|
constructor();
|
|
72
72
|
pause(): Hex;
|
|
73
73
|
unpause(): Hex;
|
|
@@ -85,4 +85,4 @@ declare class PoolFactory extends AbstractFactory<typeof abi> {
|
|
|
85
85
|
}): Hex;
|
|
86
86
|
}
|
|
87
87
|
//#endregion
|
|
88
|
-
export {
|
|
88
|
+
export {};
|
|
@@ -31,10 +31,10 @@ declare const abi: readonly [{
|
|
|
31
31
|
readonly outputs: readonly [];
|
|
32
32
|
readonly stateMutability: "nonpayable";
|
|
33
33
|
}];
|
|
34
|
-
declare class PriceOracleFactory extends AbstractFactory<typeof abi> {
|
|
34
|
+
export declare class PriceOracleFactory extends AbstractFactory<typeof abi> {
|
|
35
35
|
constructor();
|
|
36
36
|
setPriceFeed(params: SetPriceFeedParams): Hex;
|
|
37
37
|
setReservePriceFeed(params: SetReservePriceFeedParams): Hex;
|
|
38
38
|
}
|
|
39
39
|
//#endregion
|
|
40
|
-
export {
|
|
40
|
+
export {};
|
|
@@ -174,8 +174,8 @@ declare const abi: readonly [{
|
|
|
174
174
|
}];
|
|
175
175
|
readonly name: "SetRate";
|
|
176
176
|
}];
|
|
177
|
-
declare class RateKeeperFactory extends AbstractFactory<typeof abi> {
|
|
177
|
+
export declare class RateKeeperFactory extends AbstractFactory<typeof abi> {
|
|
178
178
|
constructor();
|
|
179
179
|
}
|
|
180
180
|
//#endregion
|
|
181
|
-
export {
|
|
181
|
+
export {};
|