@gearbox-protocol/sdk 17.13.0-next.4 → 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/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/esm/dev/mint/index.js +1 -2
- 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 +0 -37
- package/dist/esm/onchain/accounts/liquidations/LiquidationsService.js +116 -20
- 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/base/TokensMeta.js +15 -0
- package/dist/esm/onchain/index.js +2 -1
- package/dist/esm/onchain/market/adapters/abi/midas/index.js +1 -2
- package/dist/esm/onchain/pools/index.js +1 -2
- package/dist/esm/onchain/utils/internal/index.js +1 -2
- 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/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 +4 -5
- 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/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 +3 -4
- package/dist/types/sdk/prepare/types.d.ts +33 -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
|
@@ -5,11 +5,11 @@ import { ICreditAccountsService } from "../onchain/accounts/types.js";
|
|
|
5
5
|
import "../onchain/index.js";
|
|
6
6
|
import { Address, BaseError, Hash, Hex, PrivateKeyAccount } from "viem";
|
|
7
7
|
//#region src/dev/AccountOpener.d.ts
|
|
8
|
-
declare class OpenTxRevertedError extends BaseError {
|
|
8
|
+
export declare class OpenTxRevertedError extends BaseError {
|
|
9
9
|
readonly txHash: Hash;
|
|
10
10
|
constructor(txHash: Hash);
|
|
11
11
|
}
|
|
12
|
-
interface AccountOpenerOptions {
|
|
12
|
+
export interface AccountOpenerOptions {
|
|
13
13
|
faucet?: Address;
|
|
14
14
|
borrowerKey?: Hex;
|
|
15
15
|
depositorKey?: Hex;
|
|
@@ -18,7 +18,7 @@ interface AccountOpenerOptions {
|
|
|
18
18
|
leverageDelta?: bigint | string | number;
|
|
19
19
|
allowMint?: boolean;
|
|
20
20
|
}
|
|
21
|
-
interface TargetAccount {
|
|
21
|
+
export interface TargetAccount {
|
|
22
22
|
creditManager: Address;
|
|
23
23
|
/**
|
|
24
24
|
* Everything will be swapped into this token in the end
|
|
@@ -59,7 +59,7 @@ interface OpenAccountPreview {
|
|
|
59
59
|
averageQuota: Asset[];
|
|
60
60
|
slippage: number;
|
|
61
61
|
}
|
|
62
|
-
interface OpenAccountHumanizedPreview {
|
|
62
|
+
export interface OpenAccountHumanizedPreview {
|
|
63
63
|
creditManager: string;
|
|
64
64
|
target: string;
|
|
65
65
|
collateral: string;
|
|
@@ -68,7 +68,7 @@ interface OpenAccountHumanizedPreview {
|
|
|
68
68
|
minQuota: string[];
|
|
69
69
|
averageQuota: string[];
|
|
70
70
|
}
|
|
71
|
-
interface OpenAccountResult {
|
|
71
|
+
export interface OpenAccountResult {
|
|
72
72
|
input: TargetAccount;
|
|
73
73
|
humanizedInput?: OpenAccountHumanizedPreview;
|
|
74
74
|
error?: Error;
|
|
@@ -76,7 +76,7 @@ interface OpenAccountResult {
|
|
|
76
76
|
rawTx?: Pick<RawTx, "to" | "callData" | "value">;
|
|
77
77
|
account?: CreditAccountData;
|
|
78
78
|
}
|
|
79
|
-
type PoolDepositResult = {
|
|
79
|
+
export type PoolDepositResult = {
|
|
80
80
|
pool: Address;
|
|
81
81
|
token: Address;
|
|
82
82
|
amount: bigint;
|
|
@@ -88,11 +88,11 @@ type PoolDepositResult = {
|
|
|
88
88
|
error: Error;
|
|
89
89
|
txHash?: Hex;
|
|
90
90
|
});
|
|
91
|
-
interface OpenAccountsResult {
|
|
91
|
+
export interface OpenAccountsResult {
|
|
92
92
|
deposits: PoolDepositResult[];
|
|
93
93
|
accounts: OpenAccountResult[];
|
|
94
94
|
}
|
|
95
|
-
declare class AccountOpener extends SDKConstruct {
|
|
95
|
+
export declare class AccountOpener extends SDKConstruct {
|
|
96
96
|
#private;
|
|
97
97
|
readonly borrowerKey: Hex;
|
|
98
98
|
readonly depositorKey: Hex;
|
|
@@ -108,4 +108,4 @@ declare class AccountOpener extends SDKConstruct {
|
|
|
108
108
|
get faucet(): Address;
|
|
109
109
|
}
|
|
110
110
|
//#endregion
|
|
111
|
-
export {
|
|
111
|
+
export {};
|
|
@@ -3,20 +3,20 @@ import "../onchain/index.js";
|
|
|
3
3
|
import { RpcResponse } from "./types.js";
|
|
4
4
|
import { EIP1193Parameters, Hex, HttpTransportConfig, PublicRpcSchema, RequiredBy } from "viem";
|
|
5
5
|
//#region src/dev/EthCallSpy.d.ts
|
|
6
|
-
type EthCallMethod = Extract<PublicRpcSchema[number], {
|
|
6
|
+
export type EthCallMethod = Extract<PublicRpcSchema[number], {
|
|
7
7
|
Method: "eth_call";
|
|
8
8
|
}>;
|
|
9
|
-
type EthCallRequest = EIP1193Parameters<[EthCallMethod]>;
|
|
10
|
-
interface DetectedCall {
|
|
9
|
+
export type EthCallRequest = EIP1193Parameters<[EthCallMethod]>;
|
|
10
|
+
export interface DetectedCall {
|
|
11
11
|
request: EthCallRequest;
|
|
12
12
|
response?: RpcResponse<Hex>;
|
|
13
13
|
responseHeaders?: Record<string, string>;
|
|
14
14
|
}
|
|
15
|
-
type CheckMulticallFn = (data: EthCallRequest) => boolean;
|
|
15
|
+
export type CheckMulticallFn = (data: EthCallRequest) => boolean;
|
|
16
16
|
/**
|
|
17
17
|
* Helper to spy on eth_call requests and responses in viem transport
|
|
18
18
|
*/
|
|
19
|
-
declare class EthCallSpy<TCall extends DetectedCall = DetectedCall> {
|
|
19
|
+
export declare class EthCallSpy<TCall extends DetectedCall = DetectedCall> {
|
|
20
20
|
#private;
|
|
21
21
|
enabled: boolean;
|
|
22
22
|
constructor(check: CheckMulticallFn, logger?: ILogger, enabled?: boolean);
|
|
@@ -27,5 +27,4 @@ declare class EthCallSpy<TCall extends DetectedCall = DetectedCall> {
|
|
|
27
27
|
protected storeRequest(blockNumber: bigint, data: EthCallRequest): void;
|
|
28
28
|
protected storeResponse(_call: RequiredBy<TCall, "response" | "responseHeaders">): void | Promise<void>;
|
|
29
29
|
}
|
|
30
|
-
//#endregion
|
|
31
|
-
export { CheckMulticallFn, DetectedCall, EthCallMethod, EthCallRequest, EthCallSpy };
|
|
30
|
+
//#endregion
|
|
@@ -4,7 +4,7 @@ import { BaseError, EIP1193RequestFn, Transport, TransportConfig } from "viem";
|
|
|
4
4
|
import { z } from "zod/v4";
|
|
5
5
|
import { HttpRpcClientOptions } from "viem/utils";
|
|
6
6
|
//#region src/dev/RevolverTransport.d.ts
|
|
7
|
-
declare const providerConfigSchema: z.ZodObject<{
|
|
7
|
+
export declare const providerConfigSchema: z.ZodObject<{
|
|
8
8
|
name: z.ZodString;
|
|
9
9
|
url: z.ZodURL;
|
|
10
10
|
cooldown: z.ZodOptional<z.ZodNumber>;
|
|
@@ -24,14 +24,14 @@ declare const providerConfigSchema: z.ZodObject<{
|
|
|
24
24
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
25
25
|
}, z.core.$strip>>;
|
|
26
26
|
}, z.core.$strip>;
|
|
27
|
-
type ProviderConfig = z.infer<typeof providerConfigSchema>;
|
|
28
|
-
interface ProviderStatus {
|
|
27
|
+
export type ProviderConfig = z.infer<typeof providerConfigSchema>;
|
|
28
|
+
export interface ProviderStatus {
|
|
29
29
|
id: string;
|
|
30
30
|
status: "active" | "cooldown" | "standby";
|
|
31
31
|
}
|
|
32
32
|
type OnRequestFn = (providerName: string, ...args: Parameters<Required<HttpRpcClientOptions>["onRequest"]>) => ReturnType<Required<HttpRpcClientOptions>["onRequest"]>;
|
|
33
33
|
type OnResponseFn = (providerName: string, ...args: Parameters<Required<HttpRpcClientOptions>["onResponse"]>) => ReturnType<Required<HttpRpcClientOptions>["onResponse"]>;
|
|
34
|
-
declare const SelectionStrategy: z.ZodEnum<{
|
|
34
|
+
export declare const SelectionStrategy: z.ZodEnum<{
|
|
35
35
|
ordered: "ordered";
|
|
36
36
|
simple: "simple";
|
|
37
37
|
}>;
|
|
@@ -40,11 +40,11 @@ declare const SelectionStrategy: z.ZodEnum<{
|
|
|
40
40
|
* - simple: selects next transport after current that is not in cooldown by checking all transports in cyclic order
|
|
41
41
|
* - ordered: will select first available transport that is not in cooldown
|
|
42
42
|
*/
|
|
43
|
-
type SelectionStrategy = z.infer<typeof SelectionStrategy>;
|
|
43
|
+
export type SelectionStrategy = z.infer<typeof SelectionStrategy>;
|
|
44
44
|
/**
|
|
45
45
|
* Schema without underlying transport configs
|
|
46
46
|
*/
|
|
47
|
-
declare const revolverTransportConfigBaseSchema: z.ZodObject<{
|
|
47
|
+
export declare const revolverTransportConfigBaseSchema: z.ZodObject<{
|
|
48
48
|
selectionStrategy: z.ZodOptional<z.ZodEnum<{
|
|
49
49
|
ordered: "ordered";
|
|
50
50
|
simple: "simple";
|
|
@@ -68,7 +68,7 @@ declare const revolverTransportConfigBaseSchema: z.ZodObject<{
|
|
|
68
68
|
}, z.core.$strip>>;
|
|
69
69
|
defaultCooldown: z.ZodOptional<z.ZodNumber>;
|
|
70
70
|
}, z.core.$strip>;
|
|
71
|
-
declare const revolverTransportConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
71
|
+
export declare const revolverTransportConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
72
72
|
selectionStrategy: z.ZodOptional<z.ZodEnum<{
|
|
73
73
|
ordered: "ordered";
|
|
74
74
|
simple: "simple";
|
|
@@ -136,7 +136,7 @@ declare const revolverTransportConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
136
136
|
defaultCooldown: z.ZodOptional<z.ZodNumber>;
|
|
137
137
|
transports: z.ZodArray<z.ZodCustom<Transport, Transport>>;
|
|
138
138
|
}, z.core.$strip>]>;
|
|
139
|
-
type RevolverTransportConfig = {
|
|
139
|
+
export type RevolverTransportConfig = {
|
|
140
140
|
logger?: ILogger;
|
|
141
141
|
/**
|
|
142
142
|
* When single http transport should retry?
|
|
@@ -168,11 +168,11 @@ type RevolverTransportConfig = {
|
|
|
168
168
|
*/
|
|
169
169
|
onRotateFailed?: (oldTransportName: string, reason?: BaseError) => void | Promise<void>;
|
|
170
170
|
} & z.infer<typeof revolverTransportConfigSchema>;
|
|
171
|
-
declare class NoAvailableTransportsError extends BaseError {
|
|
171
|
+
export declare class NoAvailableTransportsError extends BaseError {
|
|
172
172
|
statuses: ProviderStatus[];
|
|
173
173
|
constructor(statuses: ProviderStatus[], cause?: Error);
|
|
174
174
|
}
|
|
175
|
-
interface RevolverTransportValue {
|
|
175
|
+
export interface RevolverTransportValue {
|
|
176
176
|
/**
|
|
177
177
|
* Manually try to rotate the transport
|
|
178
178
|
* @param reason
|
|
@@ -187,7 +187,7 @@ interface RevolverTransportValue {
|
|
|
187
187
|
*/
|
|
188
188
|
statuses: () => ProviderStatus[];
|
|
189
189
|
}
|
|
190
|
-
declare class RevolverTransport implements ReturnType<Transport<"revolver", RevolverTransportValue>> {
|
|
190
|
+
export declare class RevolverTransport implements ReturnType<Transport<"revolver", RevolverTransportValue>> {
|
|
191
191
|
#private;
|
|
192
192
|
private overrides?;
|
|
193
193
|
/**
|
|
@@ -211,4 +211,4 @@ declare class RevolverTransport implements ReturnType<Transport<"revolver", Revo
|
|
|
211
211
|
rotate(reason?: BaseError): Promise<void>;
|
|
212
212
|
}
|
|
213
213
|
//#endregion
|
|
214
|
-
export {
|
|
214
|
+
export {};
|
package/dist/types/dev/abi.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/dev/abi.d.ts
|
|
2
|
-
declare const iaclTraitAbi: readonly [{
|
|
2
|
+
export declare const iaclTraitAbi: readonly [{
|
|
3
3
|
readonly name: "acl";
|
|
4
4
|
readonly type: 'function';
|
|
5
5
|
readonly stateMutability: "view";
|
|
@@ -8,7 +8,7 @@ declare const iaclTraitAbi: readonly [{
|
|
|
8
8
|
readonly type: "address";
|
|
9
9
|
}];
|
|
10
10
|
}];
|
|
11
|
-
declare const iOwnableAbi: readonly [{
|
|
11
|
+
export declare const iOwnableAbi: readonly [{
|
|
12
12
|
readonly name: "owner";
|
|
13
13
|
readonly type: 'function';
|
|
14
14
|
readonly stateMutability: "view";
|
|
@@ -17,7 +17,7 @@ declare const iOwnableAbi: readonly [{
|
|
|
17
17
|
readonly type: "address";
|
|
18
18
|
}];
|
|
19
19
|
}];
|
|
20
|
-
declare const iDegenNftv2Abi: readonly [{
|
|
20
|
+
export declare const iDegenNftv2Abi: readonly [{
|
|
21
21
|
readonly name: "minter";
|
|
22
22
|
readonly type: 'function';
|
|
23
23
|
readonly stateMutability: "view";
|
|
@@ -38,7 +38,7 @@ declare const iDegenNftv2Abi: readonly [{
|
|
|
38
38
|
}];
|
|
39
39
|
readonly outputs: readonly [];
|
|
40
40
|
}];
|
|
41
|
-
declare const iFaucetAbi: readonly [{
|
|
41
|
+
export declare const iFaucetAbi: readonly [{
|
|
42
42
|
readonly type: "function";
|
|
43
43
|
readonly name: "assets";
|
|
44
44
|
readonly inputs: readonly [{
|
|
@@ -237,7 +237,7 @@ declare const iFaucetAbi: readonly [{
|
|
|
237
237
|
/**
|
|
238
238
|
* This contract is deployed on testnets and contains testnet executionId and forkAlias
|
|
239
239
|
*/
|
|
240
|
-
declare const iOnchainExecutionIdAbi: readonly [{
|
|
240
|
+
export declare const iOnchainExecutionIdAbi: readonly [{
|
|
241
241
|
readonly type: "function";
|
|
242
242
|
readonly name: "deployer";
|
|
243
243
|
readonly inputs: readonly [];
|
|
@@ -291,5 +291,4 @@ declare const iOnchainExecutionIdAbi: readonly [{
|
|
|
291
291
|
}];
|
|
292
292
|
readonly stateMutability: "view";
|
|
293
293
|
}];
|
|
294
|
-
//#endregion
|
|
295
|
-
export { iDegenNftv2Abi, iFaucetAbi, iOnchainExecutionIdAbi, iOwnableAbi, iaclTraitAbi };
|
|
294
|
+
//#endregion
|
|
@@ -8,6 +8,5 @@ import { Address } from "viem";
|
|
|
8
8
|
* Given credit accounts, calculates new liquidation thresholds that needs to be set to drop account health factor a bit to make it eligible for partial liquidation
|
|
9
9
|
* @param ca
|
|
10
10
|
*/
|
|
11
|
-
declare function calcLiquidatableLTs(sdk: OnchainSDK, ca: CreditAccountData, factor?: bigint, logger?: ILogger): Promise<Record<Address, number>>;
|
|
12
|
-
//#endregion
|
|
13
|
-
export { calcLiquidatableLTs };
|
|
11
|
+
export declare function calcLiquidatableLTs(sdk: OnchainSDK, ca: CreditAccountData, factor?: bigint, logger?: ILogger): Promise<Record<Address, number>>;
|
|
12
|
+
//#endregion
|
|
@@ -25,6 +25,6 @@ interface ClaimFromFaucetOptions {
|
|
|
25
25
|
gasMultiplier?: bigint;
|
|
26
26
|
logger?: ILogger;
|
|
27
27
|
}
|
|
28
|
-
declare function claimFromFaucet(opts: ClaimFromFaucetOptions): Promise<void>;
|
|
28
|
+
export declare function claimFromFaucet(opts: ClaimFromFaucetOptions): Promise<void>;
|
|
29
29
|
//#endregion
|
|
30
|
-
export {
|
|
30
|
+
export {};
|
|
@@ -3,9 +3,9 @@ import { Construct } from "../onchain/base/Construct.js";
|
|
|
3
3
|
import "../onchain/index.js";
|
|
4
4
|
import { Abi, Account, Address, Chain, Client, ContractConstructorArgs, GetChainParameter, Hash, Hex, SendTransactionParameters, SendTransactionReturnType, Transport, UnionEvaluate, UnionOmit, WalletClient } from "viem";
|
|
5
5
|
//#region src/dev/create2.d.ts
|
|
6
|
-
declare const PUBLIC_CREATE2_FACTORY: Address;
|
|
7
|
-
declare const DEFAULT_CREATE2_SALT = "GEARBOX";
|
|
8
|
-
type Create2Parameters<abi extends Abi | readonly unknown[] = Abi, chain extends Chain = Chain, account extends Account = Account, chainOverride extends Chain | undefined = Chain | undefined, allArgs = ContractConstructorArgs<abi>> = UnionOmit<SendTransactionParameters<chain, account, chainOverride>, "accessList" | "chain" | "to" | "data"> & GetChainParameter<chain, chainOverride> & UnionEvaluate<readonly [] extends allArgs ? {
|
|
6
|
+
export declare const PUBLIC_CREATE2_FACTORY: Address;
|
|
7
|
+
export declare const DEFAULT_CREATE2_SALT = "GEARBOX";
|
|
8
|
+
export type Create2Parameters<abi extends Abi | readonly unknown[] = Abi, chain extends Chain = Chain, account extends Account = Account, chainOverride extends Chain | undefined = Chain | undefined, allArgs = ContractConstructorArgs<abi>> = UnionOmit<SendTransactionParameters<chain, account, chainOverride>, "accessList" | "chain" | "to" | "data"> & GetChainParameter<chain, chainOverride> & UnionEvaluate<readonly [] extends allArgs ? {
|
|
9
9
|
args?: allArgs | undefined;
|
|
10
10
|
} : {
|
|
11
11
|
args: allArgs;
|
|
@@ -21,11 +21,11 @@ type Create2Parameters<abi extends Abi | readonly unknown[] = Abi, chain extends
|
|
|
21
21
|
*/
|
|
22
22
|
salt?: string;
|
|
23
23
|
};
|
|
24
|
-
interface EnsureExistsUsingPublicCreate2ReturnType {
|
|
24
|
+
export interface EnsureExistsUsingPublicCreate2ReturnType {
|
|
25
25
|
address: Address;
|
|
26
26
|
hash?: Hash;
|
|
27
27
|
}
|
|
28
|
-
declare class Create2Deployer<transport extends Transport = Transport, chain extends Chain = Chain, account extends Account = Account> extends Construct {
|
|
28
|
+
export declare class Create2Deployer<transport extends Transport = Transport, chain extends Chain = Chain, account extends Account = Account> extends Construct {
|
|
29
29
|
#private;
|
|
30
30
|
constructor(sdk: OnchainSDK, walletClient: WalletClient<transport, chain, account>);
|
|
31
31
|
ensureExists<abi extends Abi | readonly unknown[], chainOverride extends Chain | undefined = Chain | undefined>(parameters: Create2Parameters<abi, chain, account, chainOverride>): Promise<EnsureExistsUsingPublicCreate2ReturnType>;
|
|
@@ -33,8 +33,8 @@ declare class Create2Deployer<transport extends Transport = Transport, chain ext
|
|
|
33
33
|
/**
|
|
34
34
|
* Viem action that deploys a contract using the public CREATE2 factory
|
|
35
35
|
*/
|
|
36
|
-
declare function deployUsingPublicCreate2<const abi extends Abi | readonly unknown[], chain extends Chain, account extends Account, chainOverride extends Chain | undefined>(walletClient: Client<Transport, chain, account>, parameters: Create2Parameters<abi, chain, account, chainOverride>): Promise<SendTransactionReturnType>;
|
|
37
|
-
type GetCreate2AddressParameters<abi extends Abi | readonly unknown[] = Abi, allArgs = ContractConstructorArgs<abi>> = UnionEvaluate<readonly [] extends allArgs ? {
|
|
36
|
+
export declare function deployUsingPublicCreate2<const abi extends Abi | readonly unknown[], chain extends Chain, account extends Account, chainOverride extends Chain | undefined>(walletClient: Client<Transport, chain, account>, parameters: Create2Parameters<abi, chain, account, chainOverride>): Promise<SendTransactionReturnType>;
|
|
37
|
+
export type GetCreate2AddressParameters<abi extends Abi | readonly unknown[] = Abi, allArgs = ContractConstructorArgs<abi>> = UnionEvaluate<readonly [] extends allArgs ? {
|
|
38
38
|
args?: allArgs | undefined;
|
|
39
39
|
} : {
|
|
40
40
|
args: allArgs;
|
|
@@ -56,10 +56,9 @@ type GetCreate2AddressParameters<abi extends Abi | readonly unknown[] = Abi, all
|
|
|
56
56
|
* @param bytecode - The contract bytecode to deploy
|
|
57
57
|
* @returns Address of the deployed contract
|
|
58
58
|
*/
|
|
59
|
-
declare function getPublicCreate2Address<abi extends Abi | readonly unknown[]>(params: GetCreate2AddressParameters<abi>): Address;
|
|
59
|
+
export declare function getPublicCreate2Address<abi extends Abi | readonly unknown[]>(params: GetCreate2AddressParameters<abi>): Address;
|
|
60
60
|
/**
|
|
61
61
|
* Viem action that checks if contract is deployed using the public CREATE2 factory
|
|
62
62
|
*/
|
|
63
|
-
declare function isDeployedUsingPublicCreate2<const abi extends Abi | readonly unknown[], chain extends Chain | undefined, account extends Account | undefined>(client: Client<Transport, chain, account>, params: GetCreate2AddressParameters<abi>): Promise<boolean>;
|
|
64
|
-
//#endregion
|
|
65
|
-
export { Create2Deployer, Create2Parameters, DEFAULT_CREATE2_SALT, EnsureExistsUsingPublicCreate2ReturnType, GetCreate2AddressParameters, PUBLIC_CREATE2_FACTORY, deployUsingPublicCreate2, getPublicCreate2Address, isDeployedUsingPublicCreate2 };
|
|
63
|
+
export declare function isDeployedUsingPublicCreate2<const abi extends Abi | readonly unknown[], chain extends Chain | undefined, account extends Account | undefined>(client: Client<Transport, chain, account>, params: GetCreate2AddressParameters<abi>): Promise<boolean>;
|
|
64
|
+
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Abi, Account, Address, Block, Chain, Client, ContractFunctionArgs, ContractFunctionName, Hex, Prettify, PublicClient, TestActions, TestRpcSchema, Transport, WalletClient, WriteContractSyncParameters, WriteContractSyncReturnType } from "viem";
|
|
2
2
|
//#region src/dev/createAnvilClient.d.ts
|
|
3
|
-
interface AnvilNodeInfo {
|
|
3
|
+
export interface AnvilNodeInfo {
|
|
4
4
|
currentBlockNumber: string;
|
|
5
5
|
currentBlockTimestamp: number;
|
|
6
6
|
currentBlockHash: string;
|
|
@@ -18,7 +18,7 @@ interface AnvilNodeInfo {
|
|
|
18
18
|
forkRetryBackoff: number;
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
type AnvilRPCSchema = [...TestRpcSchema<"anvil">, {
|
|
21
|
+
export type AnvilRPCSchema = [...TestRpcSchema<"anvil">, {
|
|
22
22
|
Method: "anvil_nodeInfo";
|
|
23
23
|
Parameters: [];
|
|
24
24
|
ReturnType: AnvilNodeInfo;
|
|
@@ -27,7 +27,7 @@ type AnvilRPCSchema = [...TestRpcSchema<"anvil">, {
|
|
|
27
27
|
Parameters: [Hex];
|
|
28
28
|
ReturnType: Block<Hex>[];
|
|
29
29
|
}];
|
|
30
|
-
interface AnvilDealParameters {
|
|
30
|
+
export interface AnvilDealParameters {
|
|
31
31
|
/**
|
|
32
32
|
* ERC20 token address.
|
|
33
33
|
*/
|
|
@@ -41,7 +41,7 @@ interface AnvilDealParameters {
|
|
|
41
41
|
*/
|
|
42
42
|
amount: bigint;
|
|
43
43
|
}
|
|
44
|
-
type AnvilActions = {
|
|
44
|
+
export type AnvilActions = {
|
|
45
45
|
anvilNodeInfo: () => Promise<AnvilNodeInfo>;
|
|
46
46
|
isAnvil: () => Promise<boolean>;
|
|
47
47
|
evmMineDetailed: (
|
|
@@ -55,10 +55,10 @@ type AnvilActions = {
|
|
|
55
55
|
*/
|
|
56
56
|
deal: (params: AnvilDealParameters) => Promise<void>;
|
|
57
57
|
};
|
|
58
|
-
type AnvilClient = Prettify<{
|
|
58
|
+
export type AnvilClient = Prettify<{
|
|
59
59
|
mode: "anvil";
|
|
60
60
|
} & Client<Transport, Chain, undefined, AnvilRPCSchema, AnvilActions & TestActions>> & PublicClient & WalletClient;
|
|
61
|
-
interface AnvilClientConfig<transport extends Transport = Transport, chain extends Chain | undefined = Chain | undefined> {
|
|
61
|
+
export interface AnvilClientConfig<transport extends Transport = Transport, chain extends Chain | undefined = Chain | undefined> {
|
|
62
62
|
transport: transport;
|
|
63
63
|
chain?: chain;
|
|
64
64
|
cacheTime?: number;
|
|
@@ -72,33 +72,32 @@ interface AnvilClientConfig<transport extends Transport = Transport, chain exten
|
|
|
72
72
|
* Used to lift `sdk.client` into an `AnvilClient` shape on the fly when test
|
|
73
73
|
* RPCs (impersonateAccount, setBalance, setStorageAt, ...) are needed.
|
|
74
74
|
*/
|
|
75
|
-
declare function extendAnvilClient(client: PublicClient): AnvilClient;
|
|
76
|
-
declare function createAnvilClient({ chain, transport, cacheTime, pollingInterval }: AnvilClientConfig): AnvilClient;
|
|
75
|
+
export declare function extendAnvilClient(client: PublicClient): AnvilClient;
|
|
76
|
+
export declare function createAnvilClient({ chain, transport, cacheTime, pollingInterval }: AnvilClientConfig): AnvilClient;
|
|
77
77
|
/**
|
|
78
78
|
* View action to detect if client is an anvil client
|
|
79
79
|
* @param client
|
|
80
80
|
* @returns
|
|
81
81
|
*/
|
|
82
|
-
declare function isAnvil(client: Client<any, any, any, AnvilRPCSchema, any>): Promise<boolean>;
|
|
82
|
+
export declare function isAnvil(client: Client<any, any, any, AnvilRPCSchema, any>): Promise<boolean>;
|
|
83
83
|
/**
|
|
84
84
|
* Anvil node info
|
|
85
85
|
* @param client
|
|
86
86
|
* @returns
|
|
87
87
|
*/
|
|
88
|
-
declare function anvilNodeInfo(client: Client<any, any, any, AnvilRPCSchema, any>): Promise<AnvilNodeInfo>;
|
|
88
|
+
export declare function anvilNodeInfo(client: Client<any, any, any, AnvilRPCSchema, any>): Promise<AnvilNodeInfo>;
|
|
89
89
|
/**
|
|
90
90
|
* Safely tries to mine block with given timestamp
|
|
91
91
|
* @param client
|
|
92
92
|
* @param timestamp in seconds
|
|
93
93
|
* @returns
|
|
94
94
|
*/
|
|
95
|
-
declare function evmMineDetailed(client: Client<any, any, any, AnvilRPCSchema, any>, timestamp: bigint | number): Promise<Block<Hex> | undefined>;
|
|
95
|
+
export declare function evmMineDetailed(client: Client<any, any, any, AnvilRPCSchema, any>, timestamp: bigint | number): Promise<Block<Hex> | undefined>;
|
|
96
96
|
/**
|
|
97
97
|
* Anvil-compatible `writeContractSync`: send via `writeContract` (Anvil
|
|
98
98
|
* supports `eth_sendTransaction` / `eth_sendRawTransaction`) then wait for
|
|
99
99
|
* the receipt. Viem's own action uses `eth_sendRawTransactionSync`, which
|
|
100
100
|
* Anvil does not implement.
|
|
101
101
|
*/
|
|
102
|
-
declare function writeContractSync<chain extends Chain | undefined, account extends Account | undefined, const abi extends Abi | readonly unknown[], functionName extends ContractFunctionName<abi, "nonpayable" | "payable">, args extends ContractFunctionArgs<abi, "nonpayable" | "payable", functionName>, chainOverride extends Chain | undefined>(client: Client<Transport, chain, account>, parameters: WriteContractSyncParameters<abi, functionName, args, chain, account, chainOverride>): Promise<WriteContractSyncReturnType<chain>>;
|
|
103
|
-
//#endregion
|
|
104
|
-
export { AnvilActions, AnvilClient, AnvilClientConfig, AnvilDealParameters, AnvilNodeInfo, AnvilRPCSchema, anvilNodeInfo, createAnvilClient, evmMineDetailed, extendAnvilClient, isAnvil, writeContractSync };
|
|
102
|
+
export declare function writeContractSync<chain extends Chain | undefined, account extends Account | undefined, const abi extends Abi | readonly unknown[], functionName extends ContractFunctionName<abi, "nonpayable" | "payable">, args extends ContractFunctionArgs<abi, "nonpayable" | "payable", functionName>, chainOverride extends Chain | undefined>(client: Client<Transport, chain, account>, parameters: WriteContractSyncParameters<abi, functionName, args, chain, account, chainOverride>): Promise<WriteContractSyncReturnType<chain>>;
|
|
103
|
+
//#endregion
|
|
@@ -5,6 +5,5 @@ import { Chain, Transport } from "viem";
|
|
|
5
5
|
* @param transportOrRPC
|
|
6
6
|
* @returns
|
|
7
7
|
*/
|
|
8
|
-
declare function detectChain(transportOrRPC: Transport | string): Promise<Chain>;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { detectChain };
|
|
8
|
+
export declare function detectChain(transportOrRPC: Transport | string): Promise<Chain>;
|
|
9
|
+
//#endregion
|
|
@@ -2,6 +2,5 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Whether the error indicates an out-of-sync / missing block (e.g. pinned block not yet available on the node).
|
|
4
4
|
*/
|
|
5
|
-
declare function isOutOfSyncError(e: Error): boolean;
|
|
6
|
-
//#endregion
|
|
7
|
-
export { isOutOfSyncError };
|
|
5
|
+
export declare function isOutOfSyncError(e: Error): boolean;
|
|
6
|
+
//#endregion
|
|
@@ -3,6 +3,5 @@
|
|
|
3
3
|
* Whether the error indicates rate limiting. Returns `retryAfterMs` from the `Retry-After` header when available,
|
|
4
4
|
* otherwise from a retry hint in the error message (e.g. "retry in 10s").
|
|
5
5
|
*/
|
|
6
|
-
declare function isRateLimitError(e: Error): [checkResult: boolean, retryAfterMs?: number | undefined];
|
|
7
|
-
//#endregion
|
|
8
|
-
export { isRateLimitError };
|
|
6
|
+
export declare function isRateLimitError(e: Error): [checkResult: boolean, retryAfterMs?: number | undefined];
|
|
7
|
+
//#endregion
|
|
@@ -2,6 +2,5 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Whether the error indicates a transient, retryable failure (timeouts, connection issues, 5xx, etc.).
|
|
4
4
|
*/
|
|
5
|
-
declare function isTransientError(e: Error): boolean;
|
|
6
|
-
//#endregion
|
|
7
|
-
export { isTransientError };
|
|
5
|
+
export declare function isTransientError(e: Error): boolean;
|
|
6
|
+
//#endregion
|
|
@@ -4,7 +4,7 @@ import "../onchain/index.js";
|
|
|
4
4
|
import { AnvilClient } from "./createAnvilClient.js";
|
|
5
5
|
import { Address } from "viem";
|
|
6
6
|
//#region src/dev/kycUtils.d.ts
|
|
7
|
-
interface RegisterSecuritizeInvestorProps {
|
|
7
|
+
export interface RegisterSecuritizeInvestorProps {
|
|
8
8
|
anvil: AnvilClient;
|
|
9
9
|
/**
|
|
10
10
|
* Wallet to register in the Securitize DS registry
|
|
@@ -21,14 +21,14 @@ interface RegisterSecuritizeInvestorProps {
|
|
|
21
21
|
* trust service, same as periphery-v3 SecuritizeAttachHelper. MockDSToken
|
|
22
22
|
* returns itself as the trust service, so `admin()` is used instead.
|
|
23
23
|
*/
|
|
24
|
-
declare function getSecuritizeAdmin(anvil: AnvilClient, token: Address, logger?: ILogger): Promise<Address>;
|
|
24
|
+
export declare function getSecuritizeAdmin(anvil: AnvilClient, token: Address, logger?: ILogger): Promise<Address>;
|
|
25
25
|
/**
|
|
26
26
|
* Registers a wallet as a Securitize investor (fake KYC) in the DS registry
|
|
27
27
|
* service of a DSToken.
|
|
28
28
|
* Works both for MockDSToken and real DSToken connected by securitize-deploy script
|
|
29
29
|
*/
|
|
30
|
-
declare function registerSecuritizeInvestor(props: RegisterSecuritizeInvestorProps): Promise<void>;
|
|
31
|
-
interface RegisterMidasInvestorProps {
|
|
30
|
+
export declare function registerSecuritizeInvestor(props: RegisterSecuritizeInvestorProps): Promise<void>;
|
|
31
|
+
export interface RegisterMidasInvestorProps {
|
|
32
32
|
anvil: AnvilClient;
|
|
33
33
|
/**
|
|
34
34
|
* Investor EOA to greenlist
|
|
@@ -58,8 +58,8 @@ interface RegisterMidasInvestorProps {
|
|
|
58
58
|
* router-v3's RouterLiveTestMidas.sol) by impersonating the Midas access
|
|
59
59
|
* control admin instead of pranking it.
|
|
60
60
|
*/
|
|
61
|
-
declare function registerMidasInvestor(props: RegisterMidasInvestorProps): Promise<void>;
|
|
62
|
-
interface GreenlistMidasGatewayProps {
|
|
61
|
+
export declare function registerMidasInvestor(props: RegisterMidasInvestorProps): Promise<void>;
|
|
62
|
+
export interface GreenlistMidasGatewayProps {
|
|
63
63
|
anvil: AnvilClient;
|
|
64
64
|
/**
|
|
65
65
|
* Investor EOA to greenlist
|
|
@@ -79,13 +79,13 @@ interface GreenlistMidasGatewayProps {
|
|
|
79
79
|
/**
|
|
80
80
|
* Greenlists an investor in the access control of a single Midas gateway
|
|
81
81
|
*/
|
|
82
|
-
declare function greenlistMidasGateway(props: GreenlistMidasGatewayProps): Promise<void>;
|
|
82
|
+
export declare function greenlistMidasGateway(props: GreenlistMidasGatewayProps): Promise<void>;
|
|
83
83
|
/**
|
|
84
84
|
* Midas access control admin on mainnet. Holds the admin role of the greenlist
|
|
85
85
|
* operator role.
|
|
86
86
|
*/
|
|
87
|
-
declare const DEFAULT_MIDAS_ADMIN: Address;
|
|
88
|
-
interface RegisterRWAInvestorProps {
|
|
87
|
+
export declare const DEFAULT_MIDAS_ADMIN: Address;
|
|
88
|
+
export interface RegisterRWAInvestorProps {
|
|
89
89
|
anvil: AnvilClient;
|
|
90
90
|
/**
|
|
91
91
|
* Attached SDK, markets and RWA factories are read from it
|
|
@@ -102,14 +102,14 @@ interface RegisterRWAInvestorProps {
|
|
|
102
102
|
midasAdmin?: Address;
|
|
103
103
|
logger?: ILogger;
|
|
104
104
|
}
|
|
105
|
-
interface RWAKycFailure {
|
|
105
|
+
export interface RWAKycFailure {
|
|
106
106
|
/**
|
|
107
107
|
* DSToken or Midas gateway that failed
|
|
108
108
|
*/
|
|
109
109
|
target: Address;
|
|
110
110
|
error: unknown;
|
|
111
111
|
}
|
|
112
|
-
interface RegisterRWAInvestorResult {
|
|
112
|
+
export interface RegisterRWAInvestorResult {
|
|
113
113
|
/**
|
|
114
114
|
* DSTokens the investor was registered in
|
|
115
115
|
*/
|
|
@@ -127,6 +127,5 @@ interface RegisterRWAInvestorResult {
|
|
|
127
127
|
* Failures of a single token or gateway are collected and reported in the
|
|
128
128
|
* result instead of aborting the whole run.
|
|
129
129
|
*/
|
|
130
|
-
declare function registerRWAInvestor(props: RegisterRWAInvestorProps): Promise<RegisterRWAInvestorResult>;
|
|
131
|
-
//#endregion
|
|
132
|
-
export { DEFAULT_MIDAS_ADMIN, GreenlistMidasGatewayProps, RWAKycFailure, RegisterMidasInvestorProps, RegisterRWAInvestorProps, RegisterRWAInvestorResult, RegisterSecuritizeInvestorProps, getSecuritizeAdmin, greenlistMidasGateway, registerMidasInvestor, registerRWAInvestor, registerSecuritizeInvestor };
|
|
130
|
+
export declare function registerRWAInvestor(props: RegisterRWAInvestorProps): Promise<RegisterRWAInvestorResult>;
|
|
131
|
+
//#endregion
|
|
@@ -8,13 +8,13 @@ type EthGetLogsSchema = Extract<PublicRpcSchema[number], {
|
|
|
8
8
|
* Filter parameter for `eth_getLogs` as defined by viem's {@link PublicRpcSchema}.
|
|
9
9
|
* A discriminated union of block-range filters and block-hash filters.
|
|
10
10
|
*/
|
|
11
|
-
type EthGetLogsFilter = EthGetLogsSchema["Parameters"][0];
|
|
11
|
+
export type EthGetLogsFilter = EthGetLogsSchema["Parameters"][0];
|
|
12
12
|
/** Raw RPC return type for `eth_getLogs` (logs with hex-encoded quantities). */
|
|
13
|
-
type EthGetLogsResult = EthGetLogsSchema["ReturnType"];
|
|
13
|
+
export type EthGetLogsResult = EthGetLogsSchema["ReturnType"];
|
|
14
14
|
/**
|
|
15
15
|
* Options controlling pagination behaviour of {@link logSplitterTransport}.
|
|
16
16
|
*/
|
|
17
|
-
interface LogSplitterTransportOptions {
|
|
17
|
+
export interface LogSplitterTransportOptions {
|
|
18
18
|
/**
|
|
19
19
|
* Acts as a min page size hint when there's no explit hint in rpc error message.
|
|
20
20
|
* Has no effect once the page size is already below `softLimit`.
|
|
@@ -39,7 +39,7 @@ interface LogSplitterTransportOptions {
|
|
|
39
39
|
* @param filter - The `eth_getLogs` filter object.
|
|
40
40
|
* @returns Whether the filter describes a fixed, splittable block range.
|
|
41
41
|
*/
|
|
42
|
-
declare function isFixedBlockRange(filter: EthGetLogsFilter): boolean;
|
|
42
|
+
export declare function isFixedBlockRange(filter: EthGetLogsFilter): boolean;
|
|
43
43
|
/**
|
|
44
44
|
* Returns `true` when the error message matches known RPC range/size limit
|
|
45
45
|
* patterns. Transient errors (timeouts, rate limits, 5xx) are explicitly
|
|
@@ -48,7 +48,7 @@ declare function isFixedBlockRange(filter: EthGetLogsFilter): boolean;
|
|
|
48
48
|
* @param error - Any thrown value.
|
|
49
49
|
* @returns Whether the error indicates a block-range or result-size limit.
|
|
50
50
|
*/
|
|
51
|
-
declare function isRangeError(error: unknown): boolean;
|
|
51
|
+
export declare function isRangeError(error: unknown): boolean;
|
|
52
52
|
/**
|
|
53
53
|
* @internal
|
|
54
54
|
* Attempts to extract a concrete page-size hint from an error thrown by an
|
|
@@ -65,13 +65,13 @@ declare function isRangeError(error: unknown): boolean;
|
|
|
65
65
|
* @param error - Any thrown value.
|
|
66
66
|
* @returns The suggested page size, or `null` if no hint could be extracted.
|
|
67
67
|
*/
|
|
68
|
-
declare function parsePageSizeHint(error: unknown): number | null;
|
|
68
|
+
export declare function parsePageSizeHint(error: unknown): number | null;
|
|
69
69
|
/**
|
|
70
70
|
* @internal
|
|
71
71
|
* Callback that performs a single `eth_getLogs` RPC call for the given
|
|
72
72
|
* inclusive block range `[from, to]`.
|
|
73
73
|
*/
|
|
74
|
-
type CallRpcFn = (from: number, to: number) => Promise<EthGetLogsResult>;
|
|
74
|
+
export type CallRpcFn = (from: number, to: number) => Promise<EthGetLogsResult>;
|
|
75
75
|
/**
|
|
76
76
|
* @internal
|
|
77
77
|
* Fetches logs over `[from, to]` using a sequential linear walk with
|
|
@@ -89,7 +89,7 @@ type CallRpcFn = (from: number, to: number) => Promise<EthGetLogsResult>;
|
|
|
89
89
|
* @throws The original error when a single-block request fails or the error
|
|
90
90
|
* is not a recognised range error.
|
|
91
91
|
*/
|
|
92
|
-
declare function fetchLogsWithPagination(callRpc: CallRpcFn, from: number, to: number, options?: LogSplitterTransportOptions): Promise<EthGetLogsResult>;
|
|
92
|
+
export declare function fetchLogsWithPagination(callRpc: CallRpcFn, from: number, to: number, options?: LogSplitterTransportOptions): Promise<EthGetLogsResult>;
|
|
93
93
|
/**
|
|
94
94
|
* Wraps a viem {@link Transport} to transparently split `eth_getLogs` requests
|
|
95
95
|
* that exceed RPC provider block-range or result-size limits.
|
|
@@ -117,6 +117,6 @@ declare function fetchLogsWithPagination(callRpc: CallRpcFn, from: number, to: n
|
|
|
117
117
|
* });
|
|
118
118
|
* ```
|
|
119
119
|
*/
|
|
120
|
-
declare function logSplitterTransport(transport: Transport, logOptions?: LogSplitterTransportOptions): Transport;
|
|
120
|
+
export declare function logSplitterTransport(transport: Transport, logOptions?: LogSplitterTransportOptions): Transport;
|
|
121
121
|
//#endregion
|
|
122
|
-
export {
|
|
122
|
+
export {};
|
|
@@ -10,7 +10,6 @@ import { Address } from "viem";
|
|
|
10
10
|
* @param cm
|
|
11
11
|
* @param newLTs
|
|
12
12
|
*/
|
|
13
|
-
declare function setLTs(anvil: AnvilClient, cm: CreditSuiteState, newLTs: Record<Address, number>, logger?: ILogger): Promise<void>;
|
|
14
|
-
declare function setLTZero(anvil: AnvilClient, cm: CreditSuiteState, logger?: ILogger): Promise<void>;
|
|
15
|
-
//#endregion
|
|
16
|
-
export { setLTZero, setLTs };
|
|
13
|
+
export declare function setLTs(anvil: AnvilClient, cm: CreditSuiteState, newLTs: Record<Address, number>, logger?: ILogger): Promise<void>;
|
|
14
|
+
export declare function setLTZero(anvil: AnvilClient, cm: CreditSuiteState, logger?: ILogger): Promise<void>;
|
|
15
|
+
//#endregion
|