@gearbox-protocol/sdk 17.13.0-next.3 → 17.13.0-next.6
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/model/errors/index.js +1 -0
- package/dist/cjs/model/errors/liquidation-errors.js +9 -0
- package/dist/cjs/model/index.js +1 -0
- package/dist/cjs/model/liquidations.schema.js +2 -1
- package/dist/cjs/onchain/accounts/CreditAccountsServiceV310.js +0 -37
- package/dist/cjs/onchain/accounts/intents/resolveQuotaUpdate.js +3 -0
- package/dist/cjs/onchain/accounts/intents/testing/sdk-mock.js +1 -0
- package/dist/cjs/onchain/accounts/liquidations/LiquidationsService.js +116 -20
- 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/partialLiquidation.js +7 -11
- package/dist/cjs/onchain/base/TokensMeta.js +15 -0
- package/dist/cjs/onchain/index.js +2 -0
- package/dist/cjs/onchain/validation/bundles/checkLiquidationEligibility.js +7 -1
- package/dist/cjs/onchain/validation/bundles/checkLiquidationFunding.js +2 -1
- package/dist/cjs/onchain/validation/checkLiquidation.js +2 -1
- package/dist/cjs/onchain/validation/checks/checkPartiallyLiquidatable.js +13 -0
- package/dist/cjs/onchain/validation/checks/index.js +2 -0
- package/dist/cjs/onchain/validation/index.js +2 -0
- package/dist/cjs/sdk/liquidations/LiquidationsNamespace.js +14 -0
- package/dist/cjs/sdk/prepare/PrepareApi.js +57 -0
- package/dist/esm/dev/AccountOpener.js +1 -1
- package/dist/esm/dev/mint/index.js +1 -2
- package/dist/esm/dev/withdrawalUtils.js +1 -1
- package/dist/esm/history/trace/extractTransfers.js +1 -1
- package/dist/esm/model/errors/index.js +2 -2
- package/dist/esm/model/errors/liquidation-errors.js +9 -1
- package/dist/esm/model/index.js +2 -2
- package/dist/esm/model/liquidations.schema.js +2 -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 +2 -39
- package/dist/esm/onchain/accounts/intents/resolveQuotaUpdate.js +3 -0
- package/dist/esm/onchain/accounts/intents/testing/sdk-mock.js +1 -0
- package/dist/esm/onchain/accounts/liquidations/LiquidationsService.js +117 -21
- 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/partialLiquidation.js +7 -11
- package/dist/esm/onchain/accounts/withdrawal-compressor/RedemptionLoggerV310Contract.js +1 -1
- package/dist/esm/onchain/accounts/withdrawal-compressor/WithdrawalCompressorV310Contract.js +1 -1
- package/dist/esm/onchain/accounts/withdrawal-compressor/WithdrawalCompressorV311Contract.js +1 -1
- package/dist/esm/onchain/accounts/withdrawal-compressor/WithdrawalCompressorV313Contract.js +1 -1
- package/dist/esm/onchain/base/TokensMeta.js +18 -3
- package/dist/esm/onchain/core/createAddressProvider.js +1 -1
- package/dist/esm/onchain/index.js +2 -1
- package/dist/esm/onchain/market/adapters/abi/midas/index.js +1 -2
- package/dist/esm/onchain/market/adapters/contracts/AccountMigratorAdapterContract.js +1 -1
- package/dist/esm/onchain/market/adapters/contracts/ERC4626AdapterContract.js +1 -1
- package/dist/esm/onchain/market/credit/CreditFacadeV310BaseContract.js +1 -1
- package/dist/esm/onchain/market/pool/PoolV310Contract.js +1 -1
- package/dist/esm/onchain/market/rwa/createDegenNFT.js +1 -1
- package/dist/esm/onchain/market/zapper/IETHZapperContract.js +1 -1
- package/dist/esm/onchain/market/zapper/ZapperContract.js +1 -1
- package/dist/esm/onchain/pools/index.js +1 -2
- package/dist/esm/onchain/preview/preview/previewPoolPositionOperation.js +2 -2
- package/dist/esm/onchain/utils/internal/index.js +1 -2
- package/dist/esm/onchain/utils/viem/simulateWithPriceUpdates.js +1 -1
- package/dist/esm/onchain/validation/bundles/checkLiquidationEligibility.js +7 -1
- package/dist/esm/onchain/validation/bundles/checkLiquidationFunding.js +2 -1
- package/dist/esm/onchain/validation/checkLiquidation.js +2 -1
- package/dist/esm/onchain/validation/checks/checkPartiallyLiquidatable.js +12 -0
- package/dist/esm/onchain/validation/checks/index.js +2 -1
- package/dist/esm/onchain/validation/index.js +2 -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 +57 -0
- package/dist/esm/sdk/preview/index.js +1 -2
- 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/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/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 +11 -12
- package/dist/types/model/analytics.schema.d.ts +13 -14
- 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 +2 -2
- package/dist/types/model/errors/liquidation-errors.d.ts +20 -8
- package/dist/types/model/errors/operation-errors.d.ts +44 -45
- 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 +2 -2
- package/dist/types/model/liquidations.d.ts +29 -18
- package/dist/types/model/liquidations.schema.d.ts +10 -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 +31 -32
- package/dist/types/model/opportunities.schema.d.ts +26 -27
- package/dist/types/model/positions.d.ts +29 -30
- package/dist/types/model/positions.schema.d.ts +22 -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 +2 -3
- package/dist/types/offchain/analytics/types.d.ts +3 -4
- 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 +9 -10
- 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 +8 -8
- 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 +5 -5
- 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 +28 -28
- package/dist/types/onchain/accounts/intents/plan.d.ts +18 -19
- package/dist/types/onchain/accounts/intents/realize.d.ts +4 -5
- package/dist/types/onchain/accounts/intents/resolveQuotaUpdate.d.ts +10 -6
- 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 +12 -13
- 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 +30 -31
- 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/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 +8 -8
- 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 +32 -15
- 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 +2 -2
- package/dist/types/onchain/accounts/liquidations/partialLiquidation.d.ts +7 -8
- package/dist/types/onchain/accounts/liquidations/skipLiquidatableAccount.d.ts +2 -3
- package/dist/types/onchain/accounts/liquidations/types.d.ts +140 -27
- 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 +17 -96
- 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/math.d.ts +21 -22
- 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 +8 -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 +2 -3
- package/dist/types/onchain/market/credit/CreditSuiteStrategy.d.ts +2 -3
- package/dist/types/onchain/market/credit/collateralUtils.d.ts +5 -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/types.d.ts +10 -11
- 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 +23 -24
- 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 +3 -4
- 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 +5 -6
- 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 +3 -4
- 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/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 +3 -4
- package/dist/types/onchain/validation/checks/checkPartiallyLiquidatable.d.ts +15 -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 +3 -4
- package/dist/types/onchain/validation/checks/checkQuotaChange.d.ts +3 -4
- 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 +2 -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 +2 -1
- package/dist/types/onchain/validation/raise.d.ts +4 -5
- 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 +8 -9
- 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 +9 -6
- package/dist/types/sdk/prepare/index.d.ts +2 -2
- package/dist/types/sdk/prepare/types.d.ts +52 -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
|
@@ -10,11 +10,11 @@ import { Address, Hex } from "viem";
|
|
|
10
10
|
/**
|
|
11
11
|
* ERC4626 pool operation kind, as surfaced on a {@link PoolPositionOperationPreview}.
|
|
12
12
|
**/
|
|
13
|
-
type PoolOperationType = "Deposit" | "Mint" | "Withdraw" | "Redeem";
|
|
13
|
+
export type PoolOperationType = "Deposit" | "Mint" | "Withdraw" | "Redeem";
|
|
14
14
|
/**
|
|
15
15
|
* Raw-calldata operation to preview: the chain and the transaction fields.
|
|
16
16
|
**/
|
|
17
|
-
interface PreviewOperationInput {
|
|
17
|
+
export interface PreviewOperationInput {
|
|
18
18
|
/**
|
|
19
19
|
* Chain the transaction is sent on.
|
|
20
20
|
**/
|
|
@@ -39,7 +39,7 @@ interface PreviewOperationInput {
|
|
|
39
39
|
/**
|
|
40
40
|
* Options for previewing a raw operation.
|
|
41
41
|
**/
|
|
42
|
-
interface PreviewOperationOptions {
|
|
42
|
+
export interface PreviewOperationOptions {
|
|
43
43
|
/**
|
|
44
44
|
* Block to read/simulate at; defaults to latest. Only set for testnet
|
|
45
45
|
* forks.
|
|
@@ -51,7 +51,7 @@ interface PreviewOperationOptions {
|
|
|
51
51
|
* `prepare.deposit`, `prepare.withdraw` and `prepare.redeem`, read off calldata
|
|
52
52
|
* rather than planned into it.
|
|
53
53
|
**/
|
|
54
|
-
interface PoolPositionOperationPreview {
|
|
54
|
+
export interface PoolPositionOperationPreview {
|
|
55
55
|
operation: PoolOperationType;
|
|
56
56
|
/**
|
|
57
57
|
* Pool address
|
|
@@ -127,7 +127,7 @@ interface PoolPositionOperationPreview {
|
|
|
127
127
|
* open-strategy walk and the liquidatable-account rows all carry it, so a screen
|
|
128
128
|
* naming the market needs nothing beside the result it already holds.
|
|
129
129
|
**/
|
|
130
|
-
interface CreditOperationMarket {
|
|
130
|
+
export interface CreditOperationMarket {
|
|
131
131
|
/**
|
|
132
132
|
* Credit manager the account belongs to. Carried on the result itself so a
|
|
133
133
|
* caller weighing one — `checkSimulation` among them — needs nothing beside
|
|
@@ -171,7 +171,7 @@ interface CreditOperationMarket {
|
|
|
171
171
|
* The measured half of a {@link AccountProjection}: read off the balances the
|
|
172
172
|
* walk arrived at, without a formula between them and the answer.
|
|
173
173
|
**/
|
|
174
|
-
interface AccountHoldings {
|
|
174
|
+
export interface AccountHoldings {
|
|
175
175
|
/**
|
|
176
176
|
* Everything the account holds, denominated in the market's underlying.
|
|
177
177
|
**/
|
|
@@ -208,7 +208,7 @@ interface AccountHoldings {
|
|
|
208
208
|
* {@link AccountSnapshot}, so both halves of the SDK get them from one place —
|
|
209
209
|
* `sdk.positions.metrics` — and cannot drift into two answers for one account.
|
|
210
210
|
**/
|
|
211
|
-
interface AccountMetrics {
|
|
211
|
+
export interface AccountMetrics {
|
|
212
212
|
/**
|
|
213
213
|
* Health factor in basis points: below `10000` the account is liquidatable.
|
|
214
214
|
*
|
|
@@ -274,7 +274,7 @@ interface AccountMetrics {
|
|
|
274
274
|
* what they mean on a {@link StrategyPosition}, down to the token an amount
|
|
275
275
|
* names — an RWA market reports USDC, not the dcUSDC wrapper the pool holds.
|
|
276
276
|
**/
|
|
277
|
-
interface AccountProjection extends CreditOperationMarket, AccountHoldings, AccountMetrics {}
|
|
277
|
+
export interface AccountProjection extends CreditOperationMarket, AccountHoldings, AccountMetrics {}
|
|
278
278
|
/**
|
|
279
279
|
* The fields of an {@link AccountProjection} a routed leg's outcome decides.
|
|
280
280
|
*
|
|
@@ -295,7 +295,7 @@ interface AccountProjection extends CreditOperationMarket, AccountHoldings, Acco
|
|
|
295
295
|
* field cannot be half prefixed, and the half that moves is the half a screen
|
|
296
296
|
* shows, so the whole breakdown carries the marker.
|
|
297
297
|
**/
|
|
298
|
-
type RoutedField = "totalValue" | "netValue" | "assets" | "healthFactor" | "safeHealthFactor" | "borrowRate" | "timeToLiquidation" | "liquidationPrice" | "leverage";
|
|
298
|
+
export type RoutedField = "totalValue" | "netValue" | "assets" | "healthFactor" | "safeHealthFactor" | "borrowRate" | "timeToLiquidation" | "liquidationPrice" | "leverage";
|
|
299
299
|
/**
|
|
300
300
|
* `x` becomes `estX`, for a projection assembled from the guaranteed floor.
|
|
301
301
|
*
|
|
@@ -303,7 +303,7 @@ type RoutedField = "totalValue" | "netValue" | "assets" | "healthFactor" | "safe
|
|
|
303
303
|
* answers to different questions, and naming them alike would invite a screen
|
|
304
304
|
* to show one as the other or a test to hold them equal.
|
|
305
305
|
**/
|
|
306
|
-
type Estimated<T> = { [K in keyof T as `est${Capitalize<string & K>}`]: T[K]; };
|
|
306
|
+
export type Estimated<T> = { [K in keyof T as `est${Capitalize<string & K>}`]: T[K]; };
|
|
307
307
|
/**
|
|
308
308
|
* A projection as `preview` can answer it: the branch-independent half under the
|
|
309
309
|
* shared names, and everything a route decides marked `est`.
|
|
@@ -311,7 +311,7 @@ type Estimated<T> = { [K in keyof T as `est${Capitalize<string & K>}`]: T[K]; };
|
|
|
311
311
|
* Same builder, same formulas, same units as an {@link AccountProjection} — only
|
|
312
312
|
* the snapshot underneath is the floor rather than the expected outcome.
|
|
313
313
|
**/
|
|
314
|
-
type EstimatedProjection = Omit<AccountProjection, RoutedField> & Estimated<Pick<AccountProjection, RoutedField>>;
|
|
314
|
+
export type EstimatedProjection = Omit<AccountProjection, RoutedField> & Estimated<Pick<AccountProjection, RoutedField>>;
|
|
315
315
|
/**
|
|
316
316
|
* Renames a projection's routed fields, for a caller that built one from floor
|
|
317
317
|
* balances.
|
|
@@ -319,7 +319,7 @@ type EstimatedProjection = Omit<AccountProjection, RoutedField> & Estimated<Pick
|
|
|
319
319
|
* Lives beside the type so the two cannot drift: a field added to
|
|
320
320
|
* {@link RoutedField} fails to compile until it is renamed here too.
|
|
321
321
|
**/
|
|
322
|
-
declare function asEstimated(p: AccountProjection): EstimatedProjection;
|
|
322
|
+
export declare function asEstimated(p: AccountProjection): EstimatedProjection;
|
|
323
323
|
/**
|
|
324
324
|
* What an operation moved, as opposed to where it left the account.
|
|
325
325
|
*
|
|
@@ -328,7 +328,7 @@ declare function asEstimated(p: AccountProjection): EstimatedProjection;
|
|
|
328
328
|
* calls that get there. Split out so the two halves agree on the names for the
|
|
329
329
|
* day prepare reports deltas too.
|
|
330
330
|
**/
|
|
331
|
-
interface AccountStateChange {
|
|
331
|
+
export interface AccountStateChange {
|
|
332
332
|
/**
|
|
333
333
|
* Debt after minus debt before. A repayment settles interest and fees
|
|
334
334
|
* before principal, so this is the payment itself rather than the part of
|
|
@@ -388,7 +388,7 @@ interface OpenStrategyPositionProjection extends EstimatedProjection {
|
|
|
388
388
|
* counterpart of `prepare.openNewStrategy` and `prepare.borrow`, read off
|
|
389
389
|
* calldata rather than planned into it.
|
|
390
390
|
**/
|
|
391
|
-
interface OpenStrategyPositionPreview extends OpenStrategyPositionProjection {
|
|
391
|
+
export interface OpenStrategyPositionPreview extends OpenStrategyPositionProjection {
|
|
392
392
|
operation: "OpenCreditAccount";
|
|
393
393
|
/**
|
|
394
394
|
* Existing zero-debt, zero-quota account this operation reopens.
|
|
@@ -412,7 +412,7 @@ interface OpenStrategyPositionPreview extends OpenStrategyPositionProjection {
|
|
|
412
412
|
* `addCollateral`, `withdrawCollateral`, `adjustLeverage`), read off calldata
|
|
413
413
|
* rather than planned into it.
|
|
414
414
|
**/
|
|
415
|
-
interface AdjustStrategyPositionPreview extends EstimatedProjection, AccountStateChange {
|
|
415
|
+
export interface AdjustStrategyPositionPreview extends EstimatedProjection, AccountStateChange {
|
|
416
416
|
operation: "AdjustCreditAccount";
|
|
417
417
|
/**
|
|
418
418
|
* Credit account that is being adjusted
|
|
@@ -450,7 +450,7 @@ interface AdjustStrategyPositionPreview extends EstimatedProjection, AccountStat
|
|
|
450
450
|
* `prepare.withdrawStrategy` asked for everything, read off calldata rather
|
|
451
451
|
* than planned into it.
|
|
452
452
|
**/
|
|
453
|
-
interface ExitStrategyPositionPreview extends EstimatedProjection {
|
|
453
|
+
export interface ExitStrategyPositionPreview extends EstimatedProjection {
|
|
454
454
|
operation: "CloseCreditAccount";
|
|
455
455
|
/**
|
|
456
456
|
* True when the account is closed permanently (facade `closeCreditAccount`
|
|
@@ -490,7 +490,7 @@ interface ExitStrategyPositionPreview extends EstimatedProjection {
|
|
|
490
490
|
* `prepare.repayStrategy` asked for the whole debt, read off calldata rather
|
|
491
491
|
* than planned into it.
|
|
492
492
|
**/
|
|
493
|
-
interface RepayStrategyPositionPreview extends EstimatedProjection {
|
|
493
|
+
export interface RepayStrategyPositionPreview extends EstimatedProjection {
|
|
494
494
|
operation: "RepayCreditAccount";
|
|
495
495
|
/**
|
|
496
496
|
* True when the account is closed permanently (facade `closeCreditAccount`
|
|
@@ -543,14 +543,14 @@ interface RepayStrategyPositionPreview extends EstimatedProjection {
|
|
|
543
543
|
* account: what the transaction does in the same block, before any delayed
|
|
544
544
|
* withdrawal is claimed.
|
|
545
545
|
*/
|
|
546
|
-
type InstantStrategyPositionOperationPreview = AdjustStrategyPositionPreview | ExitStrategyPositionPreview | RepayStrategyPositionPreview;
|
|
546
|
+
export type InstantStrategyPositionOperationPreview = AdjustStrategyPositionPreview | ExitStrategyPositionPreview | RepayStrategyPositionPreview;
|
|
547
547
|
/**
|
|
548
548
|
* Preview of a multicall that requests a delayed withdrawal (e.g. Securitize
|
|
549
549
|
* redemption): the source token is spent now and a withdrawal phantom token is received;
|
|
550
550
|
* the actual claim token materializes later, when the withdrawal is claimed and
|
|
551
551
|
* the recorded (if any) is resumed
|
|
552
552
|
*/
|
|
553
|
-
interface DelayedStrategyPositionOperationPreview extends CreditOperationMarket {
|
|
553
|
+
export interface DelayedStrategyPositionOperationPreview extends CreditOperationMarket {
|
|
554
554
|
operation: "DelayedCreditAccountOperation";
|
|
555
555
|
/**
|
|
556
556
|
* Credit account the operation is performed on
|
|
@@ -589,6 +589,6 @@ interface DelayedStrategyPositionOperationPreview extends CreditOperationMarket
|
|
|
589
589
|
* credit account opening, adjustment, closure, repayment and delayed
|
|
590
590
|
* withdrawal operations are supported.
|
|
591
591
|
*/
|
|
592
|
-
type OperationPreview = PoolPositionOperationPreview | OpenStrategyPositionPreview | AdjustStrategyPositionPreview | ExitStrategyPositionPreview | RepayStrategyPositionPreview | DelayedStrategyPositionOperationPreview;
|
|
592
|
+
export type OperationPreview = PoolPositionOperationPreview | OpenStrategyPositionPreview | AdjustStrategyPositionPreview | ExitStrategyPositionPreview | RepayStrategyPositionPreview | DelayedStrategyPositionOperationPreview;
|
|
593
593
|
//#endregion
|
|
594
|
-
export {
|
|
594
|
+
export {};
|
|
@@ -9,7 +9,7 @@ import { Address, Hex } from "viem";
|
|
|
9
9
|
* const arbitrum: ChainId = 42161;
|
|
10
10
|
* ```
|
|
11
11
|
**/
|
|
12
|
-
type ChainId = number;
|
|
12
|
+
export type ChainId = number;
|
|
13
13
|
/**
|
|
14
14
|
* Unix timestamp in seconds (not milliseconds).
|
|
15
15
|
*
|
|
@@ -18,7 +18,7 @@ type ChainId = number;
|
|
|
18
18
|
* const t: Timestamp = 1719792000; // 2024-07-01T00:00:00Z
|
|
19
19
|
* ```
|
|
20
20
|
**/
|
|
21
|
-
type Timestamp = number;
|
|
21
|
+
export type Timestamp = number;
|
|
22
22
|
/**
|
|
23
23
|
* Basis points: an integer where `10000` means 100%.
|
|
24
24
|
*
|
|
@@ -35,7 +35,7 @@ type Timestamp = number;
|
|
|
35
35
|
* const smallest: Bps = 1; // 0.01%
|
|
36
36
|
* ```
|
|
37
37
|
**/
|
|
38
|
-
type Bps = number;
|
|
38
|
+
export type Bps = number;
|
|
39
39
|
/**
|
|
40
40
|
* Coarse denomination class of a token, used to group and filter opportunities
|
|
41
41
|
* by what they are ultimately priced in.
|
|
@@ -49,7 +49,7 @@ type Bps = number;
|
|
|
49
49
|
* const wsteth: AssetType = "ETH";
|
|
50
50
|
* ```
|
|
51
51
|
**/
|
|
52
|
-
type AssetType = "Stable" | "ETH" | "BTC";
|
|
52
|
+
export type AssetType = "Stable" | "ETH" | "BTC";
|
|
53
53
|
/**
|
|
54
54
|
* Leverage as a plain multiplier, not a percentage and not in basis points.
|
|
55
55
|
* Floating point number.
|
|
@@ -61,12 +61,12 @@ type AssetType = "Stable" | "ETH" | "BTC";
|
|
|
61
61
|
* const unavailable: Leverage = 0;
|
|
62
62
|
* ```
|
|
63
63
|
**/
|
|
64
|
-
type Leverage = number;
|
|
64
|
+
export type Leverage = number;
|
|
65
65
|
/**
|
|
66
66
|
* A token address paired with a balance, used throughout the SDK to
|
|
67
67
|
* represent holdings, collateral inputs, and leftover targets.
|
|
68
68
|
**/
|
|
69
|
-
interface Asset {
|
|
69
|
+
export interface Asset {
|
|
70
70
|
/**
|
|
71
71
|
* ERC-20 token address.
|
|
72
72
|
**/
|
|
@@ -92,7 +92,7 @@ interface Asset {
|
|
|
92
92
|
* const amount: Amount = { value: 1_500_500_000n, valueUsd: 1500.5 };
|
|
93
93
|
* ```
|
|
94
94
|
**/
|
|
95
|
-
interface Amount {
|
|
95
|
+
export interface Amount {
|
|
96
96
|
/**
|
|
97
97
|
* Amount in the base units of the owning group's token, i.e. scaled by
|
|
98
98
|
* `10 ** decimals`.
|
|
@@ -114,7 +114,7 @@ interface Amount {
|
|
|
114
114
|
* Tokens are always fully inlined rather than referenced by address, so a row
|
|
115
115
|
* is renderable without a separate token dictionary.
|
|
116
116
|
**/
|
|
117
|
-
interface Token {
|
|
117
|
+
export interface Token {
|
|
118
118
|
/**
|
|
119
119
|
* Chain the token is deployed on.
|
|
120
120
|
*
|
|
@@ -164,7 +164,7 @@ interface Token {
|
|
|
164
164
|
* amounts denominated in it stay exact; {@link wrappedAddress} names the
|
|
165
165
|
* wrapper when there is one.
|
|
166
166
|
**/
|
|
167
|
-
interface UnderlyingToken extends Token {
|
|
167
|
+
export interface UnderlyingToken extends Token {
|
|
168
168
|
/**
|
|
169
169
|
* Address of the compliance wrapper the pool actually holds (e.g. dcUSDC)
|
|
170
170
|
* when the market underlying is an RWA wrapper, or `null` when the
|
|
@@ -175,7 +175,7 @@ interface UnderlyingToken extends Token {
|
|
|
175
175
|
/**
|
|
176
176
|
* An {@link Amount} that names its own token.
|
|
177
177
|
**/
|
|
178
|
-
interface TokenAmount extends Amount {
|
|
178
|
+
export interface TokenAmount extends Amount {
|
|
179
179
|
/**
|
|
180
180
|
* Token {@link Amount.value} is denominated in.
|
|
181
181
|
**/
|
|
@@ -185,7 +185,7 @@ interface TokenAmount extends Amount {
|
|
|
185
185
|
* The minimal transaction the read model hands out: enough to sign and send,
|
|
186
186
|
* with no ABI metadata attached.
|
|
187
187
|
**/
|
|
188
|
-
interface TxCall {
|
|
188
|
+
export interface TxCall {
|
|
189
189
|
/**
|
|
190
190
|
* Contract the transaction is sent to.
|
|
191
191
|
**/
|
|
@@ -201,5 +201,4 @@ interface TxCall {
|
|
|
201
201
|
**/
|
|
202
202
|
value?: bigint;
|
|
203
203
|
}
|
|
204
|
-
//#endregion
|
|
205
|
-
export { Amount, Asset, AssetType, Bps, ChainId, Leverage, Timestamp, Token, TokenAmount, TxCall, UnderlyingToken };
|
|
204
|
+
//#endregion
|
|
@@ -11,35 +11,35 @@ import { z } from "zod/v4";
|
|
|
11
11
|
/**
|
|
12
12
|
* {@link ChainId}
|
|
13
13
|
**/
|
|
14
|
-
declare const chainIdSchema: z.ZodNumber;
|
|
14
|
+
export declare const chainIdSchema: z.ZodNumber;
|
|
15
15
|
/**
|
|
16
16
|
* {@link Timestamp}
|
|
17
17
|
**/
|
|
18
|
-
declare const timestampSchema: z.ZodNumber;
|
|
18
|
+
export declare const timestampSchema: z.ZodNumber;
|
|
19
19
|
/**
|
|
20
20
|
* {@link Bps}. Integer, not bounded to `0..10000`: rates may exceed 100%.
|
|
21
21
|
**/
|
|
22
|
-
declare const bpsSchema: z.ZodNumber;
|
|
22
|
+
export declare const bpsSchema: z.ZodNumber;
|
|
23
23
|
/**
|
|
24
24
|
* {@link AssetType}
|
|
25
25
|
**/
|
|
26
|
-
declare const assetTypeSchema: z.ZodUnion<readonly [z.ZodLiteral<"Stable">, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>;
|
|
26
|
+
export declare const assetTypeSchema: z.ZodUnion<readonly [z.ZodLiteral<"Stable">, z.ZodLiteral<"ETH">, z.ZodLiteral<"BTC">]>;
|
|
27
27
|
/**
|
|
28
28
|
* {@link Leverage}. Nonnegative rather than positive: `0` is the backend's
|
|
29
29
|
* encoding of "leverage unavailable".
|
|
30
30
|
**/
|
|
31
|
-
declare const leverageSchema: z.ZodNumber;
|
|
31
|
+
export declare const leverageSchema: z.ZodNumber;
|
|
32
32
|
/**
|
|
33
33
|
* {@link Amount}
|
|
34
34
|
**/
|
|
35
|
-
declare const amountSchema: z.ZodObject<{
|
|
35
|
+
export declare const amountSchema: z.ZodObject<{
|
|
36
36
|
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
37
37
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
38
38
|
}, z.core.$strip>;
|
|
39
39
|
/**
|
|
40
40
|
* {@link Token}
|
|
41
41
|
**/
|
|
42
|
-
declare const tokenSchema: z.ZodObject<{
|
|
42
|
+
export declare const tokenSchema: z.ZodObject<{
|
|
43
43
|
chainId: z.ZodNumber;
|
|
44
44
|
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
45
45
|
symbol: z.ZodString;
|
|
@@ -50,7 +50,7 @@ declare const tokenSchema: z.ZodObject<{
|
|
|
50
50
|
/**
|
|
51
51
|
* {@link UnderlyingToken}
|
|
52
52
|
**/
|
|
53
|
-
declare const underlyingTokenSchema: z.ZodObject<{
|
|
53
|
+
export declare const underlyingTokenSchema: z.ZodObject<{
|
|
54
54
|
chainId: z.ZodNumber;
|
|
55
55
|
address: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
56
56
|
symbol: z.ZodString;
|
|
@@ -62,7 +62,7 @@ declare const underlyingTokenSchema: z.ZodObject<{
|
|
|
62
62
|
/**
|
|
63
63
|
* {@link TokenAmount}
|
|
64
64
|
**/
|
|
65
|
-
declare const tokenAmountSchema: z.ZodObject<{
|
|
65
|
+
export declare const tokenAmountSchema: z.ZodObject<{
|
|
66
66
|
value: z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>;
|
|
67
67
|
valueUsd: z.ZodNullable<z.ZodNumber>;
|
|
68
68
|
token: z.ZodObject<{
|
|
@@ -77,10 +77,9 @@ declare const tokenAmountSchema: z.ZodObject<{
|
|
|
77
77
|
/**
|
|
78
78
|
* {@link TxCall}
|
|
79
79
|
**/
|
|
80
|
-
declare const txCallSchema: z.ZodObject<{
|
|
80
|
+
export declare const txCallSchema: z.ZodObject<{
|
|
81
81
|
to: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
82
82
|
callData: z.ZodCodec<z.ZodString, z.ZodCustom<`0x${string}`, `0x${string}`>>;
|
|
83
83
|
value: z.ZodOptional<z.ZodCodec<z.ZodUnion<[z.ZodString, z.ZodBigInt]>, z.ZodBigInt>>;
|
|
84
84
|
}, z.core.$strip>;
|
|
85
|
-
//#endregion
|
|
86
|
-
export { amountSchema, assetTypeSchema, bpsSchema, chainIdSchema, leverageSchema, timestampSchema, tokenAmountSchema, tokenSchema, txCallSchema, underlyingTokenSchema };
|
|
85
|
+
//#endregion
|
|
@@ -10,7 +10,7 @@ import { ChainId, Timestamp } from "./primitives.js";
|
|
|
10
10
|
*
|
|
11
11
|
* @typeParam T - Payload type
|
|
12
12
|
**/
|
|
13
|
-
interface DataResponse<T> {
|
|
13
|
+
export interface DataResponse<T> {
|
|
14
14
|
/**
|
|
15
15
|
* Response payload.
|
|
16
16
|
**/
|
|
@@ -23,7 +23,7 @@ interface DataResponse<T> {
|
|
|
23
23
|
/**
|
|
24
24
|
* Per-chain outcomes attached to every {@link DataResponse}.
|
|
25
25
|
**/
|
|
26
|
-
interface ResponseMetadata {
|
|
26
|
+
export interface ResponseMetadata {
|
|
27
27
|
/**
|
|
28
28
|
* One entry per chain the read asked. After a merge, each success names the
|
|
29
29
|
* side that won it in {@link ChainSucceeded.source}, so a consumer can tell
|
|
@@ -35,14 +35,14 @@ interface ResponseMetadata {
|
|
|
35
35
|
/**
|
|
36
36
|
* Which side produced a chain's data.
|
|
37
37
|
**/
|
|
38
|
-
type DataSource = "onchain" | "offchain";
|
|
38
|
+
export type DataSource = "onchain" | "offchain";
|
|
39
39
|
/**
|
|
40
40
|
* Chain that answered, which source served it, and the block it answered from.
|
|
41
41
|
*
|
|
42
42
|
* Discriminated from {@link ChainFailed} on {@link status}, so a success
|
|
43
43
|
* without a source, or without the block it reflects, is unrepresentable.
|
|
44
44
|
**/
|
|
45
|
-
interface ChainSucceeded {
|
|
45
|
+
export interface ChainSucceeded {
|
|
46
46
|
/**
|
|
47
47
|
* Chain the entry describes.
|
|
48
48
|
**/
|
|
@@ -67,7 +67,7 @@ interface ChainSucceeded {
|
|
|
67
67
|
/**
|
|
68
68
|
* Chain that did not answer.
|
|
69
69
|
**/
|
|
70
|
-
interface ChainFailed {
|
|
70
|
+
export interface ChainFailed {
|
|
71
71
|
/**
|
|
72
72
|
* Chain the entry describes.
|
|
73
73
|
**/
|
|
@@ -91,15 +91,14 @@ interface ChainFailed {
|
|
|
91
91
|
* Per-chain outcome, discriminated on {@link ChainSucceeded.status} /
|
|
92
92
|
* {@link ChainFailed.status}.
|
|
93
93
|
**/
|
|
94
|
-
type ChainMetadata = ChainSucceeded | ChainFailed;
|
|
94
|
+
export type ChainMetadata = ChainSucceeded | ChainFailed;
|
|
95
95
|
/**
|
|
96
96
|
* Anything the read model scopes to one chain, i.e. every list row.
|
|
97
97
|
**/
|
|
98
|
-
interface ChainScoped {
|
|
98
|
+
export interface ChainScoped {
|
|
99
99
|
/**
|
|
100
100
|
* Chain the row lives on.
|
|
101
101
|
**/
|
|
102
102
|
chainId: ChainId;
|
|
103
103
|
}
|
|
104
|
-
//#endregion
|
|
105
|
-
export { ChainFailed, ChainMetadata, ChainScoped, ChainSucceeded, DataResponse, DataSource, ResponseMetadata };
|
|
104
|
+
//#endregion
|
|
@@ -11,7 +11,7 @@ import { z } from "zod/v4";
|
|
|
11
11
|
/**
|
|
12
12
|
* {@link DataSource}
|
|
13
13
|
**/
|
|
14
|
-
declare const dataSourceSchema: z.ZodEnum<{
|
|
14
|
+
export declare const dataSourceSchema: z.ZodEnum<{
|
|
15
15
|
offchain: "offchain";
|
|
16
16
|
onchain: "onchain";
|
|
17
17
|
}>;
|
|
@@ -21,7 +21,7 @@ declare const dataSourceSchema: z.ZodEnum<{
|
|
|
21
21
|
* `source` may be omitted by the backend and decodes to `"offchain"`. The block
|
|
22
22
|
* has no such default: a success that omits it fails validation.
|
|
23
23
|
**/
|
|
24
|
-
declare const chainSucceededSchema: z.ZodObject<{
|
|
24
|
+
export declare const chainSucceededSchema: z.ZodObject<{
|
|
25
25
|
chainId: z.ZodNumber;
|
|
26
26
|
status: z.ZodLiteral<"success">;
|
|
27
27
|
source: z.ZodDefault<z.ZodEnum<{
|
|
@@ -37,7 +37,7 @@ declare const chainSucceededSchema: z.ZodObject<{
|
|
|
37
37
|
* `error` is a `string` in a JSON body. The schema accepts `unknown` so the
|
|
38
38
|
* same codec also validates a locally produced envelope carrying an `Error`.
|
|
39
39
|
**/
|
|
40
|
-
declare const chainFailedSchema: z.ZodObject<{
|
|
40
|
+
export declare const chainFailedSchema: z.ZodObject<{
|
|
41
41
|
chainId: z.ZodNumber;
|
|
42
42
|
status: z.ZodLiteral<"error">;
|
|
43
43
|
source: z.ZodOptional<z.ZodEnum<{
|
|
@@ -49,7 +49,7 @@ declare const chainFailedSchema: z.ZodObject<{
|
|
|
49
49
|
/**
|
|
50
50
|
* {@link ChainMetadata}
|
|
51
51
|
**/
|
|
52
|
-
declare const chainMetadataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
52
|
+
export declare const chainMetadataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
53
53
|
chainId: z.ZodNumber;
|
|
54
54
|
status: z.ZodLiteral<"success">;
|
|
55
55
|
source: z.ZodDefault<z.ZodEnum<{
|
|
@@ -70,7 +70,7 @@ declare const chainMetadataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
70
70
|
/**
|
|
71
71
|
* {@link ResponseMetadata}
|
|
72
72
|
**/
|
|
73
|
-
declare const responseMetadataSchema: z.ZodObject<{
|
|
73
|
+
export declare const responseMetadataSchema: z.ZodObject<{
|
|
74
74
|
chains: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
75
75
|
chainId: z.ZodNumber;
|
|
76
76
|
status: z.ZodLiteral<"success">;
|
|
@@ -93,6 +93,5 @@ declare const responseMetadataSchema: z.ZodObject<{
|
|
|
93
93
|
/**
|
|
94
94
|
* {@link DataResponse} parameterized by the payload schema.
|
|
95
95
|
**/
|
|
96
|
-
declare function responseSchema<S extends z.ZodType>(payloadSchema: S): z.ZodType<DataResponse<z.output<S>>>;
|
|
97
|
-
//#endregion
|
|
98
|
-
export { chainFailedSchema, chainMetadataSchema, chainSucceededSchema, dataSourceSchema, responseMetadataSchema, responseSchema };
|
|
96
|
+
export declare function responseSchema<S extends z.ZodType>(payloadSchema: S): z.ZodType<DataResponse<z.output<S>>>;
|
|
97
|
+
//#endregion
|
|
@@ -5,7 +5,7 @@ import "./errors/index.js";
|
|
|
5
5
|
* The success half of every refusable answer: the data the method was asked
|
|
6
6
|
* for, behind the `ok` discriminant a caller must narrow first.
|
|
7
7
|
**/
|
|
8
|
-
interface SDKResult<T> {
|
|
8
|
+
export interface SDKResult<T> {
|
|
9
9
|
ok: true;
|
|
10
10
|
data: T;
|
|
11
11
|
}
|
|
@@ -13,7 +13,7 @@ interface SDKResult<T> {
|
|
|
13
13
|
* The failure half: one of the errors that method's own signature names —
|
|
14
14
|
* see {@link IGearboxError} for what every error carries.
|
|
15
15
|
**/
|
|
16
|
-
interface SDKError<E extends IGearboxError = IGearboxError> {
|
|
16
|
+
export interface SDKError<E extends IGearboxError = IGearboxError> {
|
|
17
17
|
ok: false;
|
|
18
18
|
error: E;
|
|
19
19
|
}
|
|
@@ -35,7 +35,7 @@ interface SDKError<E extends IGearboxError = IGearboxError> {
|
|
|
35
35
|
* per method is the point: the union is the list of everything a caller has
|
|
36
36
|
* to handle, checked by the compiler.
|
|
37
37
|
**/
|
|
38
|
-
type SDKReturn<T, E extends IGearboxError> = SDKResult<T> | SDKError<E>;
|
|
38
|
+
export type SDKReturn<T, E extends IGearboxError> = SDKResult<T> | SDKError<E>;
|
|
39
39
|
/**
|
|
40
40
|
* Best-effort result: `value` is always present (zero / empty when nothing
|
|
41
41
|
* worked), `error` is set when it was degraded.
|
|
@@ -43,17 +43,16 @@ type SDKReturn<T, E extends IGearboxError> = SDKResult<T> | SDKError<E>;
|
|
|
43
43
|
* Opposite of {@link SDKReturn}, which is exclusive (ok XOR error: a refusal).
|
|
44
44
|
* Later safe-priced figures reuse this type.
|
|
45
45
|
**/
|
|
46
|
-
interface SafeValue<T, E extends IGearboxError = IGearboxError> {
|
|
46
|
+
export interface SafeValue<T, E extends IGearboxError = IGearboxError> {
|
|
47
47
|
value: T;
|
|
48
48
|
error?: E;
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
51
51
|
* Builds a {@link SafeValue}. Omits `error` when the value was not degraded.
|
|
52
52
|
**/
|
|
53
|
-
declare function safeValue<T, E extends IGearboxError = IGearboxError>(value: T, error?: E): SafeValue<T, E>;
|
|
53
|
+
export declare function safeValue<T, E extends IGearboxError = IGearboxError>(value: T, error?: E): SafeValue<T, E>;
|
|
54
54
|
/** The success half, built. */
|
|
55
|
-
declare function sdkOk<T>(data: T): SDKResult<T>;
|
|
55
|
+
export declare function sdkOk<T>(data: T): SDKResult<T>;
|
|
56
56
|
/** The failure half, built. */
|
|
57
|
-
declare function sdkErr<E extends IGearboxError>(error: E): SDKError<E>;
|
|
58
|
-
//#endregion
|
|
59
|
-
export { SDKError, SDKResult, SDKReturn, SafeValue, safeValue, sdkErr, sdkOk };
|
|
57
|
+
export declare function sdkErr<E extends IGearboxError>(error: E): SDKError<E>;
|
|
58
|
+
//#endregion
|
|
@@ -8,7 +8,7 @@ import { Address } from "viem";
|
|
|
8
8
|
* Both tokens arrive resolved, so a consumer neither looks one up nor
|
|
9
9
|
* reassembles one out of the loose fields a source sends.
|
|
10
10
|
*/
|
|
11
|
-
interface MerklReward {
|
|
11
|
+
export interface MerklReward {
|
|
12
12
|
/** Where the reward is claimed. */
|
|
13
13
|
readonly source: "merkl" | "turtle";
|
|
14
14
|
readonly chainId: ChainId;
|
|
@@ -28,9 +28,8 @@ interface MerklReward {
|
|
|
28
28
|
readonly amount: TokenAmount;
|
|
29
29
|
}
|
|
30
30
|
/** Points have no token and no price, and are not claimed. */
|
|
31
|
-
interface PointsReward extends Omit<MerklReward, "amount"> {
|
|
31
|
+
export interface PointsReward extends Omit<MerklReward, "amount"> {
|
|
32
32
|
readonly points: PointsProgramPnL;
|
|
33
33
|
}
|
|
34
|
-
type Reward = MerklReward | PointsReward;
|
|
35
|
-
//#endregion
|
|
36
|
-
export { MerklReward, PointsReward, Reward };
|
|
34
|
+
export type Reward = MerklReward | PointsReward;
|
|
35
|
+
//#endregion
|
|
@@ -4,20 +4,20 @@ import { Address, Hex, TypedDataDefinition } from "viem";
|
|
|
4
4
|
/**
|
|
5
5
|
* Discriminant of the Securitize RWA factory contract type.
|
|
6
6
|
**/
|
|
7
|
-
declare const RWA_FACTORY_SECURITIZE = "RWA_FACTORY::SECURITIZE";
|
|
7
|
+
export declare const RWA_FACTORY_SECURITIZE = "RWA_FACTORY::SECURITIZE";
|
|
8
8
|
/**
|
|
9
9
|
* Discriminated union of all known RWA factory contract type strings.
|
|
10
10
|
**/
|
|
11
|
-
declare const RWA_FACTORY_TYPES: readonly ["RWA_FACTORY::SECURITIZE"];
|
|
11
|
+
export declare const RWA_FACTORY_TYPES: readonly ["RWA_FACTORY::SECURITIZE"];
|
|
12
12
|
/**
|
|
13
13
|
* String literal union of known RWA factory types.
|
|
14
14
|
**/
|
|
15
|
-
type RWAFactoryType = (typeof RWA_FACTORY_TYPES)[number];
|
|
15
|
+
export type RWAFactoryType = (typeof RWA_FACTORY_TYPES)[number];
|
|
16
16
|
/**
|
|
17
17
|
* Cached registration signature for a single DSToken, stored in the
|
|
18
18
|
* @see SecuritizeDegenNFT in https://github.com/Gearbox-protocol/periphery-v3
|
|
19
19
|
**/
|
|
20
|
-
interface SecuritizeRegisterMessage {
|
|
20
|
+
export interface SecuritizeRegisterMessage {
|
|
21
21
|
/** DSToken address the signature authorises. */
|
|
22
22
|
token: Address;
|
|
23
23
|
/** EIP-712 deadline + raw signature bytes. */
|
|
@@ -26,7 +26,7 @@ interface SecuritizeRegisterMessage {
|
|
|
26
26
|
/**
|
|
27
27
|
* Deadline-bound EIP-712 signature produced by the investor.
|
|
28
28
|
**/
|
|
29
|
-
interface SecuritizeSignature {
|
|
29
|
+
export interface SecuritizeSignature {
|
|
30
30
|
/** Unix timestamp after which the signature is no longer valid. */
|
|
31
31
|
deadline: bigint;
|
|
32
32
|
/** Raw EIP-712 signature bytes. */
|
|
@@ -36,7 +36,7 @@ interface SecuritizeSignature {
|
|
|
36
36
|
* EIP-712 type schema for the `RegisterVault` message expected by Securitize's
|
|
37
37
|
* VaultRegistrar. Matches the contract's `RegisterVault` typehash field order.
|
|
38
38
|
**/
|
|
39
|
-
declare const SECURITIZE_REGISTER_VAULT_TYPES: {
|
|
39
|
+
export declare const SECURITIZE_REGISTER_VAULT_TYPES: {
|
|
40
40
|
readonly RegisterVault: readonly [{
|
|
41
41
|
readonly name: "investor";
|
|
42
42
|
readonly type: "address";
|
|
@@ -71,22 +71,22 @@ declare const SECURITIZE_REGISTER_VAULT_TYPES: {
|
|
|
71
71
|
*
|
|
72
72
|
* @see VaultRegistrar in https://github.com/Gearbox-protocol/periphery-v3
|
|
73
73
|
**/
|
|
74
|
-
type SecuritizeRegisterVaultMessage = TypedDataDefinition<typeof SECURITIZE_REGISTER_VAULT_TYPES, "RegisterVault">;
|
|
74
|
+
export type SecuritizeRegisterVaultMessage = TypedDataDefinition<typeof SECURITIZE_REGISTER_VAULT_TYPES, "RegisterVault">;
|
|
75
75
|
/**
|
|
76
76
|
* RWA protocols that require dedicated flows
|
|
77
77
|
**/
|
|
78
|
-
declare const RWA_PROTOCOLS: readonly ["securitize", "midas"];
|
|
78
|
+
export declare const RWA_PROTOCOLS: readonly ["securitize", "midas"];
|
|
79
79
|
/** String literal union of {@link RWA_PROTOCOLS}. */
|
|
80
|
-
type RWAProtocol = (typeof RWA_PROTOCOLS)[number];
|
|
80
|
+
export type RWAProtocol = (typeof RWA_PROTOCOLS)[number];
|
|
81
81
|
/**
|
|
82
82
|
* KYC is only ever an RWA concern today, so the two names coincide.
|
|
83
83
|
**/
|
|
84
|
-
type KycProtocol = RWAProtocol;
|
|
84
|
+
export type KycProtocol = RWAProtocol;
|
|
85
85
|
/**
|
|
86
86
|
* Factory-specific args for a Securitize RWA factory `multicall` /
|
|
87
87
|
* `openCreditAccount`.
|
|
88
88
|
**/
|
|
89
|
-
interface SecuritizeOperationArgs {
|
|
89
|
+
export interface SecuritizeOperationArgs {
|
|
90
90
|
protocol: "securitize";
|
|
91
91
|
/** DSToken addresses to register for this operation. */
|
|
92
92
|
tokensToRegister: Address[];
|
|
@@ -98,7 +98,7 @@ interface SecuritizeOperationArgs {
|
|
|
98
98
|
* the params already carried by the transaction calldata. `undefined` there means the
|
|
99
99
|
* requirements are satisfied.
|
|
100
100
|
**/
|
|
101
|
-
interface SecuritizeMissingOpenAccountRequirements {
|
|
101
|
+
export interface SecuritizeMissingOpenAccountRequirements {
|
|
102
102
|
protocol: "securitize";
|
|
103
103
|
/**
|
|
104
104
|
* EIP-712 messages the investor still has to sign (not covered by
|
|
@@ -108,7 +108,7 @@ interface SecuritizeMissingOpenAccountRequirements {
|
|
|
108
108
|
*/
|
|
109
109
|
requiredSignatures: SecuritizeRegisterVaultMessage[];
|
|
110
110
|
}
|
|
111
|
-
interface SecuritizeOpenAccountRequirements {
|
|
111
|
+
export interface SecuritizeOpenAccountRequirements {
|
|
112
112
|
protocol: "securitize";
|
|
113
113
|
/**
|
|
114
114
|
* RWA Factory contract address whose `openCreditAccount`/`multicall`
|
|
@@ -136,7 +136,7 @@ interface SecuritizeOpenAccountRequirements {
|
|
|
136
136
|
* What a wallet still has to do before a Permissioned Midas market lets it
|
|
137
137
|
* open. There are no tx args: Midas grants a role off-chain.
|
|
138
138
|
**/
|
|
139
|
-
interface MidasOpenAccountRequirements {
|
|
139
|
+
export interface MidasOpenAccountRequirements {
|
|
140
140
|
protocol: "midas";
|
|
141
141
|
/** mToken the gateway greenlists wallets for. */
|
|
142
142
|
token: Address;
|
|
@@ -147,21 +147,21 @@ interface MidasOpenAccountRequirements {
|
|
|
147
147
|
* Open-account requirements for an RWA protocol, defaults to the union of all
|
|
148
148
|
* protocols. Discriminated by {@link RWAProtocol}.
|
|
149
149
|
**/
|
|
150
|
-
type RWAOpenAccountRequirements<P extends RWAProtocol = RWAProtocol> = Extract<SecuritizeOpenAccountRequirements | MidasOpenAccountRequirements, {
|
|
150
|
+
export type RWAOpenAccountRequirements<P extends RWAProtocol = RWAProtocol> = Extract<SecuritizeOpenAccountRequirements | MidasOpenAccountRequirements, {
|
|
151
151
|
protocol: P;
|
|
152
152
|
}>;
|
|
153
153
|
/**
|
|
154
154
|
* Subset of {@link RWAOpenAccountRequirements} that is still unfulfilled given
|
|
155
155
|
* the params already on the transaction. Midas has none (`never`).
|
|
156
156
|
**/
|
|
157
|
-
type RWAMissingOpenAccountRequirements<P extends RWAProtocol = RWAProtocol> = Extract<SecuritizeMissingOpenAccountRequirements, {
|
|
157
|
+
export type RWAMissingOpenAccountRequirements<P extends RWAProtocol = RWAProtocol> = Extract<SecuritizeMissingOpenAccountRequirements, {
|
|
158
158
|
protocol: P;
|
|
159
159
|
}>;
|
|
160
160
|
/**
|
|
161
161
|
* Open credit account/Multicall extra params for an RWA protocol. Midas has
|
|
162
162
|
* none (`never`): accounts open through the plain facade.
|
|
163
163
|
**/
|
|
164
|
-
type RWAOperationArgs<P extends RWAProtocol = RWAProtocol> = Extract<SecuritizeOperationArgs, {
|
|
164
|
+
export type RWAOperationArgs<P extends RWAProtocol = RWAProtocol> = Extract<SecuritizeOperationArgs, {
|
|
165
165
|
protocol: P;
|
|
166
166
|
}>;
|
|
167
167
|
/**
|
|
@@ -169,7 +169,7 @@ type RWAOperationArgs<P extends RWAProtocol = RWAProtocol> = Extract<SecuritizeO
|
|
|
169
169
|
* the gate itself, independent of any particular wallet. `null` on a
|
|
170
170
|
* strategy that is not gated.
|
|
171
171
|
**/
|
|
172
|
-
interface KycRequirement {
|
|
172
|
+
export interface KycRequirement {
|
|
173
173
|
protocol: KycProtocol;
|
|
174
174
|
/**
|
|
175
175
|
* Token the wallet must be registered for; `undefined` when unknown to the
|
|
@@ -182,6 +182,5 @@ interface KycRequirement {
|
|
|
182
182
|
/**
|
|
183
183
|
* Hardcoded registration URLs for each {@link RWAProtocol}.
|
|
184
184
|
**/
|
|
185
|
-
declare const KYC_REGISTRATION_LINKS: Record<RWAProtocol, string>;
|
|
186
|
-
//#endregion
|
|
187
|
-
export { KYC_REGISTRATION_LINKS, KycProtocol, KycRequirement, MidasOpenAccountRequirements, RWAFactoryType, RWAMissingOpenAccountRequirements, RWAOpenAccountRequirements, RWAOperationArgs, RWAProtocol, RWA_FACTORY_SECURITIZE, RWA_FACTORY_TYPES, RWA_PROTOCOLS, SECURITIZE_REGISTER_VAULT_TYPES, SecuritizeMissingOpenAccountRequirements, SecuritizeOpenAccountRequirements, SecuritizeOperationArgs, SecuritizeRegisterMessage, SecuritizeRegisterVaultMessage, SecuritizeSignature };
|
|
185
|
+
export declare const KYC_REGISTRATION_LINKS: Record<RWAProtocol, string>;
|
|
186
|
+
//#endregion
|