@gearbox-protocol/sdk 17.13.0-next.4 → 17.13.0-next.7
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/analytics.schema.js +71 -7
- 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 +6 -1
- package/dist/cjs/model/liquidations.schema.js +5 -3
- package/dist/cjs/model/opportunities.schema.js +1 -1
- package/dist/cjs/model/positions.schema.js +3 -0
- package/dist/cjs/offchain/analytics/OffchainAnalyticsPositions.js +8 -0
- package/dist/cjs/onchain/accounts/CreditAccountsServiceV310.js +0 -37
- package/dist/cjs/onchain/accounts/liquidations/LiquidationsService.js +130 -22
- 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/pools/PoolService.js +1 -0
- package/dist/cjs/onchain/positions/PositionsService.js +1 -0
- package/dist/cjs/onchain/validation/bundles/checkLiquidationEligibility.js +8 -1
- package/dist/cjs/onchain/validation/bundles/checkLiquidationFunding.js +2 -1
- package/dist/cjs/onchain/validation/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/AccountOpener.js +1 -1
- package/dist/esm/dev/mint/index.js +1 -2
- package/dist/esm/dev/withdrawalUtils.js +1 -1
- package/dist/esm/history/trace/extractTransfers.js +1 -1
- package/dist/esm/model/analytics.schema.js +69 -9
- 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 +4 -4
- package/dist/esm/model/liquidations.schema.js +5 -3
- package/dist/esm/model/opportunities.schema.js +1 -1
- package/dist/esm/model/positions.schema.js +3 -0
- package/dist/esm/offchain/analytics/OffchainAnalyticsPositions.js +9 -1
- package/dist/esm/offchain/notices/index.js +1 -2
- package/dist/esm/offchain/opportunities/index.js +1 -2
- package/dist/esm/offchain/positions/index.js +1 -2
- package/dist/esm/onchain/abi/index.js +1 -2
- package/dist/esm/onchain/accounts/CreditAccountsServiceV310.js +2 -39
- package/dist/esm/onchain/accounts/liquidations/LiquidationsService.js +131 -23
- package/dist/esm/onchain/accounts/liquidations/MultichainLiquidationsService.js +28 -0
- package/dist/esm/onchain/accounts/liquidations/constants.js +1 -1
- package/dist/esm/onchain/accounts/liquidations/partialLiquidation.js +7 -11
- package/dist/esm/onchain/accounts/withdrawal-compressor/RedemptionLoggerV310Contract.js +1 -1
- package/dist/esm/onchain/accounts/withdrawal-compressor/WithdrawalCompressorV310Contract.js +1 -1
- package/dist/esm/onchain/accounts/withdrawal-compressor/WithdrawalCompressorV311Contract.js +1 -1
- package/dist/esm/onchain/accounts/withdrawal-compressor/WithdrawalCompressorV313Contract.js +1 -1
- package/dist/esm/onchain/base/TokensMeta.js +18 -3
- package/dist/esm/onchain/core/createAddressProvider.js +1 -1
- package/dist/esm/onchain/index.js +2 -1
- package/dist/esm/onchain/market/adapters/abi/midas/index.js +1 -2
- package/dist/esm/onchain/market/adapters/contracts/AccountMigratorAdapterContract.js +1 -1
- package/dist/esm/onchain/market/adapters/contracts/ERC4626AdapterContract.js +1 -1
- package/dist/esm/onchain/market/credit/CreditFacadeV310BaseContract.js +1 -1
- package/dist/esm/onchain/market/pool/PoolV310Contract.js +1 -1
- package/dist/esm/onchain/market/rwa/createDegenNFT.js +1 -1
- package/dist/esm/onchain/market/zapper/IETHZapperContract.js +1 -1
- package/dist/esm/onchain/market/zapper/ZapperContract.js +1 -1
- package/dist/esm/onchain/pools/PoolService.js +1 -0
- package/dist/esm/onchain/pools/index.js +1 -2
- package/dist/esm/onchain/positions/PositionsService.js +1 -0
- package/dist/esm/onchain/preview/preview/previewPoolPositionOperation.js +2 -2
- package/dist/esm/onchain/utils/internal/index.js +1 -2
- package/dist/esm/onchain/utils/viem/simulateWithPriceUpdates.js +1 -1
- package/dist/esm/onchain/validation/bundles/checkLiquidationEligibility.js +8 -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 +66 -13
- package/dist/types/model/analytics.schema.d.ts +182 -39
- package/dist/types/model/charts.d.ts +29 -29
- package/dist/types/model/charts.schema.d.ts +16 -17
- package/dist/types/model/compare.schema.d.ts +9 -10
- package/dist/types/model/curators.d.ts +3 -4
- package/dist/types/model/curators.schema.d.ts +3 -4
- package/dist/types/model/delayed-intent.schema.d.ts +2 -3
- package/dist/types/model/delayed-intents.d.ts +9 -10
- package/dist/types/model/errors/base.d.ts +2 -3
- package/dist/types/model/errors/index.d.ts +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 +5 -5
- package/dist/types/model/liquidations.d.ts +38 -18
- package/dist/types/model/liquidations.schema.d.ts +12 -10
- package/dist/types/model/notices.d.ts +4 -5
- package/dist/types/model/notices.schema.d.ts +3 -4
- package/dist/types/model/opportunities.d.ts +32 -33
- package/dist/types/model/opportunities.schema.d.ts +26 -27
- package/dist/types/model/positions.d.ts +34 -30
- package/dist/types/model/positions.schema.d.ts +102 -23
- package/dist/types/model/previews.d.ts +21 -21
- package/dist/types/model/primitives.d.ts +12 -13
- package/dist/types/model/primitives.schema.d.ts +11 -12
- package/dist/types/model/response.d.ts +8 -9
- package/dist/types/model/response.schema.d.ts +7 -8
- package/dist/types/model/result.d.ts +8 -9
- package/dist/types/model/rewards.d.ts +4 -5
- package/dist/types/model/rwa.d.ts +20 -21
- package/dist/types/model/rwa.schema.d.ts +3 -4
- package/dist/types/model/withdrawals.d.ts +5 -6
- package/dist/types/model/withdrawals.schema.d.ts +5 -6
- package/dist/types/offchain/AbstractOffchainNamespace.d.ts +4 -5
- package/dist/types/offchain/GearboxAPI.d.ts +2 -3
- package/dist/types/offchain/analytics/OffchainAnalytics.d.ts +2 -3
- package/dist/types/offchain/analytics/OffchainAnalyticsPositions.d.ts +6 -4
- package/dist/types/offchain/analytics/types.d.ts +17 -5
- package/dist/types/offchain/errors/OffchainInvalidJsonError.d.ts +2 -3
- package/dist/types/offchain/errors/OffchainNotConfiguredError.d.ts +2 -3
- package/dist/types/offchain/errors/OffchainNotImplementedError.d.ts +2 -3
- package/dist/types/offchain/errors/OffchainRequestFailedError.d.ts +2 -3
- package/dist/types/offchain/errors/OffchainStatusError.d.ts +2 -3
- package/dist/types/offchain/errors/OffchainTransportError.d.ts +3 -4
- package/dist/types/offchain/errors/OffchainValidationError.d.ts +2 -3
- package/dist/types/offchain/errors/backendMessage.d.ts +2 -3
- package/dist/types/offchain/errors/errorCause.d.ts +3 -4
- package/dist/types/offchain/errors/readResponseBody.d.ts +2 -3
- package/dist/types/offchain/notices/OffchainNotices.d.ts +2 -3
- package/dist/types/offchain/opportunities/OffchainOpportunities.d.ts +2 -3
- package/dist/types/offchain/opportunities/types.d.ts +3 -4
- package/dist/types/offchain/positions/OffchainPositions.d.ts +2 -3
- package/dist/types/offchain/positions/types.d.ts +3 -4
- package/dist/types/offchain/types.d.ts +2 -3
- package/dist/types/onchain/MultichainSDK.d.ts +7 -8
- package/dist/types/onchain/OnchainSDK.d.ts +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 +16 -0
- package/dist/types/onchain/validation/checks/checkPoolLiquidity.d.ts +3 -4
- package/dist/types/onchain/validation/checks/checkPoolPaused.d.ts +3 -4
- package/dist/types/onchain/validation/checks/checkPoolSunset.d.ts +3 -4
- package/dist/types/onchain/validation/checks/checkQuotaActive.d.ts +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
|
@@ -1,70 +1,69 @@
|
|
|
1
1
|
import { Address, Hex } from "viem";
|
|
2
2
|
//#region src/permissionless/bindings/types.d.ts
|
|
3
|
-
interface DeployParams {
|
|
3
|
+
export interface DeployParams {
|
|
4
4
|
postfix: Hex;
|
|
5
5
|
salt: Hex;
|
|
6
6
|
constructorParams: Hex;
|
|
7
7
|
}
|
|
8
|
-
interface AllowTokenParams {
|
|
8
|
+
export interface AllowTokenParams {
|
|
9
9
|
creditManager: Address;
|
|
10
10
|
token: Address;
|
|
11
11
|
}
|
|
12
|
-
interface ForbidAdapterParams {
|
|
12
|
+
export interface ForbidAdapterParams {
|
|
13
13
|
creditManager: Address;
|
|
14
14
|
target: Address;
|
|
15
15
|
}
|
|
16
|
-
interface ForbidTokenParams {
|
|
16
|
+
export interface ForbidTokenParams {
|
|
17
17
|
creditManager: Address;
|
|
18
18
|
token: Address;
|
|
19
19
|
}
|
|
20
|
-
interface PauseCreditManagerParams {
|
|
20
|
+
export interface PauseCreditManagerParams {
|
|
21
21
|
creditManager: Address;
|
|
22
22
|
}
|
|
23
|
-
interface SetExpirationDateParams {
|
|
23
|
+
export interface SetExpirationDateParams {
|
|
24
24
|
creditManager: Address;
|
|
25
25
|
expirationDate: number;
|
|
26
26
|
}
|
|
27
|
-
interface CreditManagerFees {
|
|
27
|
+
export interface CreditManagerFees {
|
|
28
28
|
feeLiquidation: number;
|
|
29
29
|
feeLiquidationExpired: number;
|
|
30
30
|
feeLiquidationPremium: number;
|
|
31
31
|
feeLiquidationPremiumExpired: number;
|
|
32
32
|
}
|
|
33
|
-
interface SetFeesParams {
|
|
33
|
+
export interface SetFeesParams {
|
|
34
34
|
creditManager: Address;
|
|
35
35
|
params: CreditManagerFees;
|
|
36
36
|
}
|
|
37
|
-
interface UnpauseCreditManagerParams {
|
|
37
|
+
export interface UnpauseCreditManagerParams {
|
|
38
38
|
creditManager: Address;
|
|
39
39
|
}
|
|
40
|
-
interface AddAssetParams {
|
|
40
|
+
export interface AddAssetParams {
|
|
41
41
|
token: Address;
|
|
42
42
|
priceFeed: Address;
|
|
43
43
|
}
|
|
44
|
-
interface SetPriceFeedParams {
|
|
44
|
+
export interface SetPriceFeedParams {
|
|
45
45
|
token: Address;
|
|
46
46
|
priceFeed: Address;
|
|
47
47
|
}
|
|
48
|
-
interface SetReservePriceFeedParams {
|
|
48
|
+
export interface SetReservePriceFeedParams {
|
|
49
49
|
token: Address;
|
|
50
50
|
priceFeed: Address;
|
|
51
51
|
}
|
|
52
|
-
interface SetTokenQuotaIncreaseFeeParams {
|
|
52
|
+
export interface SetTokenQuotaIncreaseFeeParams {
|
|
53
53
|
token: Address;
|
|
54
54
|
fee: number;
|
|
55
55
|
}
|
|
56
|
-
interface Market {
|
|
56
|
+
export interface Market {
|
|
57
57
|
address: Address;
|
|
58
58
|
underlyingAsset: Address;
|
|
59
59
|
name: string;
|
|
60
60
|
symbol: string;
|
|
61
61
|
isDeployed: boolean;
|
|
62
62
|
}
|
|
63
|
-
declare enum AccessMode {
|
|
63
|
+
export declare enum AccessMode {
|
|
64
64
|
Permissionless = 0,
|
|
65
65
|
Permissioned = 1,
|
|
66
66
|
Forbidden = 2
|
|
67
67
|
}
|
|
68
|
-
type PeripheryDomain = "ZAPPER" | "DEGEN_NFT";
|
|
69
|
-
//#endregion
|
|
70
|
-
export { AccessMode, AddAssetParams, AllowTokenParams, CreditManagerFees, DeployParams, ForbidAdapterParams, ForbidTokenParams, Market, PauseCreditManagerParams, PeripheryDomain, SetExpirationDateParams, SetFeesParams, SetPriceFeedParams, SetReservePriceFeedParams, SetTokenQuotaIncreaseFeeParams, UnpauseCreditManagerParams };
|
|
68
|
+
export type PeripheryDomain = "ZAPPER" | "DEGEN_NFT";
|
|
69
|
+
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Transport } from "viem";
|
|
2
2
|
//#region src/permissionless/chains/archive-transport.d.ts
|
|
3
|
-
interface ArchiveTransportConfig {
|
|
3
|
+
export interface ArchiveTransportConfig {
|
|
4
4
|
primaryTransport?: Transport;
|
|
5
5
|
archiveTransport?: Transport;
|
|
6
6
|
primaryRpcUrl?: string;
|
|
@@ -11,7 +11,7 @@ interface ArchiveTransportConfig {
|
|
|
11
11
|
timeout?: number;
|
|
12
12
|
enableLogging?: boolean;
|
|
13
13
|
}
|
|
14
|
-
declare class ArchiveTransport {
|
|
14
|
+
export declare class ArchiveTransport {
|
|
15
15
|
private config;
|
|
16
16
|
private primaryTransport;
|
|
17
17
|
private archiveTransport;
|
|
@@ -46,5 +46,4 @@ declare class ArchiveTransport {
|
|
|
46
46
|
*/
|
|
47
47
|
setLogging(enabled: boolean): void;
|
|
48
48
|
}
|
|
49
|
-
//#endregion
|
|
50
|
-
export { ArchiveTransport, ArchiveTransportConfig };
|
|
49
|
+
//#endregion
|
|
@@ -27,6 +27,6 @@ interface ChunkedLogsTransportConfig {
|
|
|
27
27
|
*
|
|
28
28
|
* const client = createPublicClient({ transport });
|
|
29
29
|
*/
|
|
30
|
-
declare function chunkedLogsTransport({ transport, chunkSize, startBlock, enableLogging }: ChunkedLogsTransportConfig): Transport;
|
|
30
|
+
export declare function chunkedLogsTransport({ transport, chunkSize, startBlock, enableLogging }: ChunkedLogsTransportConfig): Transport;
|
|
31
31
|
//#endregion
|
|
32
|
-
export {
|
|
32
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Address, Hex } from "viem";
|
|
2
2
|
//#region src/permissionless/core/bytecode.d.ts
|
|
3
|
-
interface Bytecode {
|
|
3
|
+
export interface Bytecode {
|
|
4
4
|
bytecodeHash: Hex;
|
|
5
5
|
contractType: string;
|
|
6
6
|
version: number;
|
|
@@ -12,7 +12,7 @@ interface Bytecode {
|
|
|
12
12
|
transactionHash: Hex;
|
|
13
13
|
blockNumber: number;
|
|
14
14
|
}
|
|
15
|
-
interface AuditEvent {
|
|
15
|
+
export interface AuditEvent {
|
|
16
16
|
reportUrl: string;
|
|
17
17
|
auditor: Address;
|
|
18
18
|
bytecodeHash: Hex;
|
|
@@ -21,16 +21,15 @@ interface AuditEvent {
|
|
|
21
21
|
transactionHash: Hex;
|
|
22
22
|
blockNumber: number;
|
|
23
23
|
}
|
|
24
|
-
interface Deployment {
|
|
24
|
+
export interface Deployment {
|
|
25
25
|
chainId: number;
|
|
26
26
|
address: Address;
|
|
27
27
|
txHash: Hex;
|
|
28
28
|
blockNumber: number;
|
|
29
29
|
timestamp: number;
|
|
30
30
|
}
|
|
31
|
-
interface DeploymentExtended extends Deployment {
|
|
31
|
+
export interface DeploymentExtended extends Deployment {
|
|
32
32
|
bytecodeHash: Hex;
|
|
33
33
|
constructorParams?: Hex;
|
|
34
34
|
}
|
|
35
|
-
//#endregion
|
|
36
|
-
export { AuditEvent, Bytecode, Deployment, DeploymentExtended };
|
|
35
|
+
//#endregion
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Address, Hex, PublicClient } from "viem";
|
|
2
2
|
//#region src/permissionless/core/pricefeed-builder.d.ts
|
|
3
|
-
interface PriceFeedParams {
|
|
3
|
+
export interface PriceFeedParams {
|
|
4
4
|
address: Address;
|
|
5
5
|
stalenessPeriod: number;
|
|
6
6
|
}
|
|
7
|
-
type InputValueParams = string | number | boolean | string[] | PriceFeedParams[] | PriceFeedParams;
|
|
8
|
-
type PriceFeedParamType = {
|
|
7
|
+
export type InputValueParams = string | number | boolean | string[] | PriceFeedParams[] | PriceFeedParams;
|
|
8
|
+
export type PriceFeedParamType = {
|
|
9
9
|
type: "uint256";
|
|
10
10
|
decimals?: number;
|
|
11
11
|
} | {
|
|
@@ -46,17 +46,16 @@ type PriceFeedParamType = {
|
|
|
46
46
|
minNonZero?: number;
|
|
47
47
|
minNonZeroRefLabel?: string;
|
|
48
48
|
};
|
|
49
|
-
interface PriceFeedConstructorParam {
|
|
49
|
+
export interface PriceFeedConstructorParam {
|
|
50
50
|
label: string;
|
|
51
51
|
type: PriceFeedParamType;
|
|
52
52
|
defaultValue?: InputValueParams;
|
|
53
53
|
displayOrder?: number;
|
|
54
54
|
}
|
|
55
|
-
interface PriceFeedSetupParams {
|
|
55
|
+
export interface PriceFeedSetupParams {
|
|
56
56
|
contractType: string;
|
|
57
57
|
version: number;
|
|
58
58
|
constructorParams: PriceFeedConstructorParam[];
|
|
59
59
|
stalenessPeriod: boolean;
|
|
60
60
|
}
|
|
61
|
-
//#endregion
|
|
62
|
-
export { InputValueParams, PriceFeedConstructorParam, PriceFeedParamType, PriceFeedParams, PriceFeedSetupParams };
|
|
61
|
+
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Address } from "viem";
|
|
2
2
|
//#region src/permissionless/core/pricefeed.d.ts
|
|
3
|
-
interface PriceFeed {
|
|
3
|
+
export interface PriceFeed {
|
|
4
4
|
address: Address;
|
|
5
5
|
contractType: string;
|
|
6
6
|
version: number;
|
|
@@ -8,5 +8,4 @@ interface PriceFeed {
|
|
|
8
8
|
stalenessPeriod: number;
|
|
9
9
|
name: string;
|
|
10
10
|
}
|
|
11
|
-
//#endregion
|
|
12
|
-
export { PriceFeed };
|
|
11
|
+
//#endregion
|
|
@@ -2,16 +2,16 @@ import { ParsedCall } from "../../onchain/base/types.js";
|
|
|
2
2
|
import "../../onchain/index.js";
|
|
3
3
|
import { Address, Hex } from "viem";
|
|
4
4
|
//#region src/permissionless/core/proposal.d.ts
|
|
5
|
-
interface Signature {
|
|
5
|
+
export interface Signature {
|
|
6
6
|
signer: Address;
|
|
7
7
|
signature: Hex;
|
|
8
8
|
}
|
|
9
|
-
interface CrossChainCall {
|
|
9
|
+
export interface CrossChainCall {
|
|
10
10
|
chainId: number;
|
|
11
11
|
callData: Hex;
|
|
12
12
|
target: Address;
|
|
13
13
|
}
|
|
14
|
-
interface Batch {
|
|
14
|
+
export interface Batch {
|
|
15
15
|
name: string;
|
|
16
16
|
prevHash: Hex;
|
|
17
17
|
calls: CrossChainCall[];
|
|
@@ -22,10 +22,9 @@ interface Batch {
|
|
|
22
22
|
transactionHash?: Hex;
|
|
23
23
|
blockNumber?: number;
|
|
24
24
|
}
|
|
25
|
-
interface RecoveryMessage {
|
|
25
|
+
export interface RecoveryMessage {
|
|
26
26
|
chainId: number;
|
|
27
27
|
startingBatchHash: Hex;
|
|
28
28
|
signatures: Signature[];
|
|
29
29
|
}
|
|
30
|
-
//#endregion
|
|
31
|
-
export { Batch, CrossChainCall, RecoveryMessage, Signature };
|
|
30
|
+
//#endregion
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Abi, ContractFunctionName, EncodeFunctionDataParameters, Hex } from "viem";
|
|
2
2
|
//#region src/permissionless/core/raw-tx.d.ts
|
|
3
|
-
declare function createCallData<abi extends Abi | readonly unknown[], functionName extends ContractFunctionName<abi> | undefined = undefined>(_abi: abi, parameters: Omit<EncodeFunctionDataParameters<abi, functionName>, "abi"> & {
|
|
3
|
+
export declare function createCallData<abi extends Abi | readonly unknown[], functionName extends ContractFunctionName<abi> | undefined = undefined>(_abi: abi, parameters: Omit<EncodeFunctionDataParameters<abi, functionName>, "abi"> & {
|
|
4
4
|
description?: string;
|
|
5
5
|
}): Hex;
|
|
6
|
-
//#endregion
|
|
7
|
-
export { createCallData };
|
|
6
|
+
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/permissionless/deployment/addresses.d.ts
|
|
2
|
-
declare enum Addresses {
|
|
2
|
+
export declare enum Addresses {
|
|
3
3
|
ADDRESS_PROVIDER = "0xF7f0a609BfAb9a0A98786951ef10e5FE26cC1E38",
|
|
4
4
|
ZERO_PRICE_FEED = "0x5dC92eC92cd5423EF95aEbe8Ac96619BCc9ffC88",
|
|
5
5
|
PRICE_FEED_STORE = "0x74A868AC479EE145029bB80827BB77F7B7c441cB",
|
|
@@ -7,5 +7,4 @@ declare enum Addresses {
|
|
|
7
7
|
INSTANCE_MANAGER = "0x77777777144339Bdc3aCceE992D8d4D31734CB2e",
|
|
8
8
|
BYTECODE_REPOSITORY = "0x1cE2B1BE96a082b1b1539F80d5D8f82Ec06a0f9A"
|
|
9
9
|
}
|
|
10
|
-
//#endregion
|
|
11
|
-
export { Addresses };
|
|
10
|
+
//#endregion
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { Address } from "viem";
|
|
2
2
|
//#region src/permissionless/deployment/mainnet.d.ts
|
|
3
|
-
interface CCMConstructorParams {
|
|
3
|
+
export interface CCMConstructorParams {
|
|
4
4
|
signers: Address[];
|
|
5
5
|
threshold: number;
|
|
6
6
|
dao: Address;
|
|
7
7
|
}
|
|
8
|
-
declare const MAINNET_CCM_CONSTRUCTOR_PARAMS: CCMConstructorParams;
|
|
9
|
-
declare const MAINNET_DEPLOYMENT_CCM_SALT = "0x5e732654dc26892d02b6ae236f4a14577a726514abee949c570d011bcbcbcaac";
|
|
10
|
-
declare const MAINNET_DEPLOYMENT_IM_SALT = "0x528da0da2d7789d36e2cbb0bd2bebf3f7d136e9c6c4e036fd56f7fd71ec5eb87";
|
|
11
|
-
declare const MAINNET_DEPLOYMENT_BLOCK = 22358827;
|
|
12
|
-
//#endregion
|
|
13
|
-
export { CCMConstructorParams, MAINNET_CCM_CONSTRUCTOR_PARAMS, MAINNET_DEPLOYMENT_BLOCK, MAINNET_DEPLOYMENT_CCM_SALT, MAINNET_DEPLOYMENT_IM_SALT };
|
|
8
|
+
export declare const MAINNET_CCM_CONSTRUCTOR_PARAMS: CCMConstructorParams;
|
|
9
|
+
export declare const MAINNET_DEPLOYMENT_CCM_SALT = "0x5e732654dc26892d02b6ae236f4a14577a726514abee949c570d011bcbcbcaac";
|
|
10
|
+
export declare const MAINNET_DEPLOYMENT_IM_SALT = "0x528da0da2d7789d36e2cbb0bd2bebf3f7d136e9c6c4e036fd56f7fd71ec5eb87";
|
|
11
|
+
export declare const MAINNET_DEPLOYMENT_BLOCK = 22358827;
|
|
12
|
+
//#endregion
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Hex } from "viem";
|
|
2
2
|
//#region src/permissionless/plugins/irm/constructor-params-abi.d.ts
|
|
3
|
-
type InterestRateModelType = "LINEAR";
|
|
3
|
+
export type InterestRateModelType = "LINEAR";
|
|
4
4
|
type AbiParameter$1 = {
|
|
5
5
|
type: string;
|
|
6
6
|
name: string;
|
|
7
7
|
components?: readonly AbiParameter$1[];
|
|
8
8
|
};
|
|
9
|
-
declare const LINEAR_IRM_ABI: readonly [{
|
|
9
|
+
export declare const LINEAR_IRM_ABI: readonly [{
|
|
10
10
|
readonly type: "uint256";
|
|
11
11
|
readonly name: "U_1";
|
|
12
12
|
}, {
|
|
@@ -34,14 +34,14 @@ type VersionedAbi = Record<string, readonly AbiParameter$1[]>;
|
|
|
34
34
|
* These ABIs correspond to the constructor parameters used in each IRM's getDeployParams method
|
|
35
35
|
* Based on the actual encodeAbiParameters calls in the IRM implementations
|
|
36
36
|
*/
|
|
37
|
-
declare const irmDeployParamsAbiMapping: Record<InterestRateModelType, VersionedAbi>;
|
|
37
|
+
export declare const irmDeployParamsAbiMapping: Record<InterestRateModelType, VersionedAbi>;
|
|
38
38
|
/**
|
|
39
39
|
* Get the ABI for decoding deploy params for a specific IRM type
|
|
40
40
|
* @param irmType The IRM type
|
|
41
41
|
* @param version The version number (defaults to 310)
|
|
42
42
|
* @returns The ABI array for decoding deploy params or null if not found
|
|
43
43
|
*/
|
|
44
|
-
declare function getIrmDeployParamsAbi(irmType: InterestRateModelType, version?: number): readonly AbiParameter$1[] | null;
|
|
44
|
+
export declare function getIrmDeployParamsAbi(irmType: InterestRateModelType, version?: number): readonly AbiParameter$1[] | null;
|
|
45
45
|
/**
|
|
46
46
|
* Parse IRM deploy parameters from encoded hex data
|
|
47
47
|
* @param irmType The IRM type
|
|
@@ -49,17 +49,17 @@ declare function getIrmDeployParamsAbi(irmType: InterestRateModelType, version?:
|
|
|
49
49
|
* @param data The encoded hex data
|
|
50
50
|
* @returns Parsed parameters as key-value pairs or null if parsing fails
|
|
51
51
|
*/
|
|
52
|
-
declare function parseIrmDeployParams(irmPostfix: string, version: number, data: Hex): Record<string, string> | null;
|
|
52
|
+
export declare function parseIrmDeployParams(irmPostfix: string, version: number, data: Hex): Record<string, string> | null;
|
|
53
53
|
/**
|
|
54
54
|
* Check if an IRM type has a deploy params ABI defined
|
|
55
55
|
* @param irmType The IRM type to check
|
|
56
56
|
* @returns True if the IRM type has an ABI defined
|
|
57
57
|
*/
|
|
58
|
-
declare function hasIrmDeployParamsAbi(irmType: string): irmType is InterestRateModelType;
|
|
58
|
+
export declare function hasIrmDeployParamsAbi(irmType: string): irmType is InterestRateModelType;
|
|
59
59
|
/**
|
|
60
60
|
* Get all supported IRM types
|
|
61
61
|
* @returns Array of supported IRM types
|
|
62
62
|
*/
|
|
63
|
-
declare function getSupportedIrmTypes(): InterestRateModelType[];
|
|
63
|
+
export declare function getSupportedIrmTypes(): InterestRateModelType[];
|
|
64
64
|
//#endregion
|
|
65
|
-
export {
|
|
65
|
+
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Hex } from "viem";
|
|
2
2
|
//#region src/permissionless/plugins/loss-policies/constructor-params-abi.d.ts
|
|
3
|
-
type LossPolicyType = "ALIASED";
|
|
3
|
+
export type LossPolicyType = "ALIASED";
|
|
4
4
|
type AbiParameter$1 = {
|
|
5
5
|
type: string;
|
|
6
6
|
name: string;
|
|
7
7
|
components?: readonly AbiParameter$1[];
|
|
8
8
|
};
|
|
9
|
-
declare const ALIAS_LOSS_POLICY_ABI: readonly [{
|
|
9
|
+
export declare const ALIAS_LOSS_POLICY_ABI: readonly [{
|
|
10
10
|
readonly type: "address";
|
|
11
11
|
readonly name: "pool";
|
|
12
12
|
}, {
|
|
@@ -19,14 +19,14 @@ type VersionedAbi = Record<string, readonly AbiParameter$1[]>;
|
|
|
19
19
|
* These ABIs correspond to the constructor parameters used in each loss policy's getDeployParams method
|
|
20
20
|
* Based on the actual encodeAbiParameters calls in the loss policy implementations
|
|
21
21
|
*/
|
|
22
|
-
declare const lossPolicyDeployParamsAbiMapping: Record<LossPolicyType, VersionedAbi>;
|
|
22
|
+
export declare const lossPolicyDeployParamsAbiMapping: Record<LossPolicyType, VersionedAbi>;
|
|
23
23
|
/**
|
|
24
24
|
* Get the ABI for decoding deploy params for a specific loss policy type
|
|
25
25
|
* @param lossPolicyType The loss policy type
|
|
26
26
|
* @param version The version number (defaults to 310)
|
|
27
27
|
* @returns The ABI array for decoding deploy params or null if not found
|
|
28
28
|
*/
|
|
29
|
-
declare function getLossPolicyDeployParamsAbi(lossPolicyType: LossPolicyType, version?: number): readonly AbiParameter$1[] | null;
|
|
29
|
+
export declare function getLossPolicyDeployParamsAbi(lossPolicyType: LossPolicyType, version?: number): readonly AbiParameter$1[] | null;
|
|
30
30
|
/**
|
|
31
31
|
* Parse loss policy deploy parameters from encoded hex data
|
|
32
32
|
* @param lossPolicyType The loss policy type
|
|
@@ -34,17 +34,17 @@ declare function getLossPolicyDeployParamsAbi(lossPolicyType: LossPolicyType, ve
|
|
|
34
34
|
* @param data The encoded hex data
|
|
35
35
|
* @returns Parsed parameters as key-value pairs or null if parsing fails
|
|
36
36
|
*/
|
|
37
|
-
declare function parseLossPolicyDeployParams(lossPolicyPostfix: string, version: number, data: Hex): Record<string, string> | null;
|
|
37
|
+
export declare function parseLossPolicyDeployParams(lossPolicyPostfix: string, version: number, data: Hex): Record<string, string> | null;
|
|
38
38
|
/**
|
|
39
39
|
* Check if a loss policy type has a deploy params ABI defined
|
|
40
40
|
* @param lossPolicyType The loss policy type to check
|
|
41
41
|
* @returns True if the loss policy type has an ABI defined
|
|
42
42
|
*/
|
|
43
|
-
declare function hasLossPolicyDeployParamsAbi(lossPolicyType: string): lossPolicyType is LossPolicyType;
|
|
43
|
+
export declare function hasLossPolicyDeployParamsAbi(lossPolicyType: string): lossPolicyType is LossPolicyType;
|
|
44
44
|
/**
|
|
45
45
|
* Get all supported loss policy types
|
|
46
46
|
* @returns Array of supported loss policy types
|
|
47
47
|
*/
|
|
48
|
-
declare function getSupportedLossPolicyTypes(): LossPolicyType[];
|
|
48
|
+
export declare function getSupportedLossPolicyTypes(): LossPolicyType[];
|
|
49
49
|
//#endregion
|
|
50
|
-
export {
|
|
50
|
+
export {};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { Hex } from "viem";
|
|
2
2
|
//#region src/permissionless/plugins/rate-keepers/constructor-params-abi.d.ts
|
|
3
|
-
type RateKeeperType = "TUMBLER" | "GAUGE";
|
|
3
|
+
export type RateKeeperType = "TUMBLER" | "GAUGE";
|
|
4
4
|
type AbiParameter$1 = {
|
|
5
5
|
type: string;
|
|
6
6
|
name: string;
|
|
7
7
|
components?: readonly AbiParameter$1[];
|
|
8
8
|
};
|
|
9
|
-
declare const TUMBLER_RATE_KEEPER_ABI: readonly [{
|
|
9
|
+
export declare const TUMBLER_RATE_KEEPER_ABI: readonly [{
|
|
10
10
|
readonly type: "address";
|
|
11
11
|
readonly name: "pool";
|
|
12
12
|
}, {
|
|
13
13
|
readonly type: "uint256";
|
|
14
14
|
readonly name: "epochSeconds";
|
|
15
15
|
}];
|
|
16
|
-
declare const GAUGE_RATE_KEEPER_ABI: readonly [{
|
|
16
|
+
export declare const GAUGE_RATE_KEEPER_ABI: readonly [{
|
|
17
17
|
readonly type: "address";
|
|
18
18
|
readonly name: "pool";
|
|
19
19
|
}, {
|
|
@@ -26,14 +26,14 @@ type VersionedAbi = Record<string, readonly AbiParameter$1[]>;
|
|
|
26
26
|
* These ABIs correspond to the constructor parameters used in each rate keeper's getDeployParams method
|
|
27
27
|
* Based on the actual encodeAbiParameters calls in the rate keeper implementations
|
|
28
28
|
*/
|
|
29
|
-
declare const rateKeeperDeployParamsAbiMapping: Record<RateKeeperType, VersionedAbi>;
|
|
29
|
+
export declare const rateKeeperDeployParamsAbiMapping: Record<RateKeeperType, VersionedAbi>;
|
|
30
30
|
/**
|
|
31
31
|
* Get the ABI for decoding deploy params for a specific rate keeper type
|
|
32
32
|
* @param rateKeeperType The rate keeper type
|
|
33
33
|
* @param version The version number (defaults to 310)
|
|
34
34
|
* @returns The ABI array for decoding deploy params or null if not found
|
|
35
35
|
*/
|
|
36
|
-
declare function getRateKeeperDeployParamsAbi(rateKeeperType: RateKeeperType, version?: number): readonly AbiParameter$1[] | null;
|
|
36
|
+
export declare function getRateKeeperDeployParamsAbi(rateKeeperType: RateKeeperType, version?: number): readonly AbiParameter$1[] | null;
|
|
37
37
|
/**
|
|
38
38
|
* Parse rate keeper deploy parameters from encoded hex data
|
|
39
39
|
* @param rateKeeperType The rate keeper type
|
|
@@ -41,17 +41,17 @@ declare function getRateKeeperDeployParamsAbi(rateKeeperType: RateKeeperType, ve
|
|
|
41
41
|
* @param data The encoded hex data
|
|
42
42
|
* @returns Parsed parameters as key-value pairs or null if parsing fails
|
|
43
43
|
*/
|
|
44
|
-
declare function parseRateKeeperDeployParams(rateKeeperPostfix: string, version: number, data: Hex): Record<string, string> | null;
|
|
44
|
+
export declare function parseRateKeeperDeployParams(rateKeeperPostfix: string, version: number, data: Hex): Record<string, string> | null;
|
|
45
45
|
/**
|
|
46
46
|
* Check if a rate keeper type has a deploy params ABI defined
|
|
47
47
|
* @param rateKeeperType The rate keeper type to check
|
|
48
48
|
* @returns True if the rate keeper type has an ABI defined
|
|
49
49
|
*/
|
|
50
|
-
declare function hasRateKeeperDeployParamsAbi(rateKeeperType: string): rateKeeperType is RateKeeperType;
|
|
50
|
+
export declare function hasRateKeeperDeployParamsAbi(rateKeeperType: string): rateKeeperType is RateKeeperType;
|
|
51
51
|
/**
|
|
52
52
|
* Get all supported rate keeper types
|
|
53
53
|
* @returns Array of supported rate keeper types
|
|
54
54
|
*/
|
|
55
|
-
declare function getSupportedRateKeeperTypes(): RateKeeperType[];
|
|
55
|
+
export declare function getSupportedRateKeeperTypes(): RateKeeperType[];
|
|
56
56
|
//#endregion
|
|
57
|
-
export {
|
|
57
|
+
export {};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { Address, Hex } from "viem";
|
|
2
2
|
//#region src/permissionless/utils/abi-encoder.d.ts
|
|
3
|
-
type ValueParams = string | Address | Hex | number | bigint | boolean | string[] | Address[] | Hex[] | number[] | bigint[] | boolean[];
|
|
4
|
-
type FunctionParams = {
|
|
3
|
+
export type ValueParams = string | Address | Hex | number | bigint | boolean | string[] | Address[] | Hex[] | number[] | bigint[] | boolean[];
|
|
4
|
+
export type FunctionParams = {
|
|
5
5
|
type: string;
|
|
6
6
|
value: ValueParams;
|
|
7
7
|
};
|
|
8
|
-
declare function encodeFunctionParams(params: FunctionParams[]): Hex;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { FunctionParams, ValueParams, encodeFunctionParams };
|
|
8
|
+
export declare function encodeFunctionParams(params: FunctionParams[]): Hex;
|
|
9
|
+
//#endregion
|
|
@@ -6,6 +6,5 @@ import { PublicClient } from "viem";
|
|
|
6
6
|
* @param targetTimestamp - The timestamp to find the closest block for
|
|
7
7
|
* @returns Promise<number> - The block number closest to the target timestamp
|
|
8
8
|
*/
|
|
9
|
-
declare function getBlockNumberByTimestamp(client: PublicClient, targetTimestamp: number): Promise<number>;
|
|
10
|
-
//#endregion
|
|
11
|
-
export { getBlockNumberByTimestamp };
|
|
9
|
+
export declare function getBlockNumberByTimestamp(client: PublicClient, targetTimestamp: number): Promise<number>;
|
|
10
|
+
//#endregion
|
|
@@ -2,8 +2,8 @@ import { RawTx } from "../../onchain/types/transactions.js";
|
|
|
2
2
|
import "../../onchain/index.js";
|
|
3
3
|
import { Address, Hex, PublicClient, WalletClient } from "viem";
|
|
4
4
|
//#region src/permissionless/utils/create2.d.ts
|
|
5
|
-
declare const PUBLIC_CREATE2_FACTORY: "0x4e59b44847b379578588920ca78fbf26c0b4956c";
|
|
6
|
-
declare function handleSalt(salt: string | Hex): Hex;
|
|
5
|
+
export declare const PUBLIC_CREATE2_FACTORY: "0x4e59b44847b379578588920ca78fbf26c0b4956c";
|
|
6
|
+
export declare function handleSalt(salt: string | Hex): Hex;
|
|
7
7
|
/**
|
|
8
8
|
* Deploys a contract using the public CREATE2 factory
|
|
9
9
|
* @param sponsor - Wallet client for sending transactions
|
|
@@ -11,11 +11,10 @@ declare function handleSalt(salt: string | Hex): Hex;
|
|
|
11
11
|
* @param salt - Salt for the CREATE2 deployment (will be padded to 32 bytes)
|
|
12
12
|
* @returns Transaction hash of the deployment
|
|
13
13
|
*/
|
|
14
|
-
declare function deployUsingPublicCreate2(sponsor: WalletClient, bytecode: Hex, salt: string | Hex): Promise<Hex>;
|
|
15
|
-
declare function getCreate2AddressPublicFactory(salt: string | Hex, bytecode: Hex): Promise<Address>;
|
|
16
|
-
declare function createCreate2DeployRawTx(bytecode: Hex, salt: string | Hex): RawTx;
|
|
17
|
-
declare function getCreate2DeploymentAddress(bytecode: Hex, salt: string | Hex): Address;
|
|
18
|
-
declare function checkCreate2Deployment(client: PublicClient, bytecode: Hex, salt: string | Hex): Promise<boolean>;
|
|
19
|
-
declare function checkCreate2DeploymentAddress(client: PublicClient, bytecode: Hex, salt: string | Hex): Promise<[boolean, Address]>;
|
|
20
|
-
//#endregion
|
|
21
|
-
export { PUBLIC_CREATE2_FACTORY, checkCreate2Deployment, checkCreate2DeploymentAddress, createCreate2DeployRawTx, deployUsingPublicCreate2, getCreate2AddressPublicFactory, getCreate2DeploymentAddress, handleSalt };
|
|
14
|
+
export declare function deployUsingPublicCreate2(sponsor: WalletClient, bytecode: Hex, salt: string | Hex): Promise<Hex>;
|
|
15
|
+
export declare function getCreate2AddressPublicFactory(salt: string | Hex, bytecode: Hex): Promise<Address>;
|
|
16
|
+
export declare function createCreate2DeployRawTx(bytecode: Hex, salt: string | Hex): RawTx;
|
|
17
|
+
export declare function getCreate2DeploymentAddress(bytecode: Hex, salt: string | Hex): Address;
|
|
18
|
+
export declare function checkCreate2Deployment(client: PublicClient, bytecode: Hex, salt: string | Hex): Promise<boolean>;
|
|
19
|
+
export declare function checkCreate2DeploymentAddress(client: PublicClient, bytecode: Hex, salt: string | Hex): Promise<[boolean, Address]>;
|
|
20
|
+
//#endregion
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
//#region src/permissionless/utils/format.d.ts
|
|
2
|
-
declare function formatBytecodeSize(size: number): string;
|
|
3
|
-
declare function formatBytecodeVersion(version: number): string;
|
|
4
|
-
declare function shortenHash(hash: string, chars?: number): string;
|
|
5
|
-
declare function convertPercent(percent: number): number;
|
|
6
|
-
declare function significantTrunc(x: number): string;
|
|
7
|
-
declare function deepJsonParse(value: unknown): unknown;
|
|
8
|
-
//#endregion
|
|
9
|
-
export { convertPercent, deepJsonParse, formatBytecodeSize, formatBytecodeVersion, shortenHash, significantTrunc };
|
|
2
|
+
export declare function formatBytecodeSize(size: number): string;
|
|
3
|
+
export declare function formatBytecodeVersion(version: number): string;
|
|
4
|
+
export declare function shortenHash(hash: string, chars?: number): string;
|
|
5
|
+
export declare function convertPercent(percent: number): number;
|
|
6
|
+
export declare function significantTrunc(x: number): string;
|
|
7
|
+
export declare function deepJsonParse(value: unknown): unknown;
|
|
8
|
+
//#endregion
|
|
@@ -4,19 +4,18 @@ import { SafeBatch, SafeTx } from "../../bindings/governance/types.js";
|
|
|
4
4
|
import "../../bindings/index.js";
|
|
5
5
|
import { Address } from "viem";
|
|
6
6
|
//#region src/permissionless/utils/governance/batch.d.ts
|
|
7
|
-
declare function convertRawTxToSafeMultisigTx(tx: RawTx): SafeTx;
|
|
8
|
-
declare function calculateChecksum(multisigBatch: SafeBatch): string | undefined;
|
|
9
|
-
declare function getSafeBatch(args: {
|
|
7
|
+
export declare function convertRawTxToSafeMultisigTx(tx: RawTx): SafeTx;
|
|
8
|
+
export declare function calculateChecksum(multisigBatch: SafeBatch): string | undefined;
|
|
9
|
+
export declare function getSafeBatch(args: {
|
|
10
10
|
chainId: number;
|
|
11
11
|
safeAddress: Address;
|
|
12
12
|
name: string;
|
|
13
13
|
txs: SafeTx[];
|
|
14
14
|
}): SafeBatch;
|
|
15
|
-
declare function getSafeBatches(args: {
|
|
15
|
+
export declare function getSafeBatches(args: {
|
|
16
16
|
chainId: number;
|
|
17
17
|
safeAddress: Address;
|
|
18
18
|
name: string;
|
|
19
19
|
batches: SafeTx[][];
|
|
20
20
|
}): SafeBatch[];
|
|
21
|
-
//#endregion
|
|
22
|
-
export { calculateChecksum, convertRawTxToSafeMultisigTx, getSafeBatch, getSafeBatches };
|
|
21
|
+
//#endregion
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { SafeTx } from "../../bindings/governance/types.js";
|
|
2
2
|
import "../../bindings/index.js";
|
|
3
3
|
//#region src/permissionless/utils/governance/timelock-txs.d.ts
|
|
4
|
-
declare function convertQueueBatchToExecuteTx(queueBatch: SafeTx[]): SafeTx;
|
|
5
|
-
//#endregion
|
|
6
|
-
export { convertQueueBatchToExecuteTx };
|
|
4
|
+
export declare function convertQueueBatchToExecuteTx(queueBatch: SafeTx[]): SafeTx;
|
|
5
|
+
//#endregion
|
|
@@ -2,7 +2,7 @@ import { SafeTx } from "../../bindings/governance/types.js";
|
|
|
2
2
|
import "../../bindings/index.js";
|
|
3
3
|
import { Address } from "viem";
|
|
4
4
|
//#region src/permissionless/utils/governance/types.d.ts
|
|
5
|
-
interface TimelockTxs {
|
|
5
|
+
export interface TimelockTxs {
|
|
6
6
|
chainId: number;
|
|
7
7
|
eta: number;
|
|
8
8
|
author: Address;
|
|
@@ -11,7 +11,7 @@ interface TimelockTxs {
|
|
|
11
11
|
queueBatches: SafeTx[][];
|
|
12
12
|
updatableFeeds?: Address[][];
|
|
13
13
|
}
|
|
14
|
-
interface InstanceTxs {
|
|
14
|
+
export interface InstanceTxs {
|
|
15
15
|
chainId: number;
|
|
16
16
|
author: Address;
|
|
17
17
|
instanceManager: Address;
|
|
@@ -20,5 +20,4 @@ interface InstanceTxs {
|
|
|
20
20
|
updatableFeeds?: Address[][];
|
|
21
21
|
safeAddress?: Address;
|
|
22
22
|
}
|
|
23
|
-
//#endregion
|
|
24
|
-
export { InstanceTxs, TimelockTxs };
|
|
23
|
+
//#endregion
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
//#region src/permissionless/utils/literals.d.ts
|
|
2
|
-
declare const CROSS_CHAIN_GOVERNANCE = "CROSS_CHAIN_GOVERNANCE";
|
|
3
|
-
declare const BYTECODE_REPOSITORY = "BYTECODE_REPOSITORY";
|
|
4
|
-
declare const INSTANCE_MANAGER = "INSTANCE_MANAGER";
|
|
5
|
-
declare const TOKEN_COMPRESSOR = "GLOBAL::TOKEN_COMPRESSOR";
|
|
6
|
-
declare const CROSS_CHAIN_MULTISIG = "CROSS_CHAIN_MULTISIG";
|
|
7
|
-
declare const PRICE_FEED_STORE = "PRICE_FEED_STORE";
|
|
8
|
-
declare const MARKET_CONFIGURATOR_FACTORY = "MARKET_CONFIGURATOR_FACTORY";
|
|
9
|
-
//#endregion
|
|
10
|
-
export { BYTECODE_REPOSITORY, CROSS_CHAIN_GOVERNANCE, CROSS_CHAIN_MULTISIG, INSTANCE_MANAGER, MARKET_CONFIGURATOR_FACTORY, PRICE_FEED_STORE, TOKEN_COMPRESSOR };
|
|
2
|
+
export declare const CROSS_CHAIN_GOVERNANCE = "CROSS_CHAIN_GOVERNANCE";
|
|
3
|
+
export declare const BYTECODE_REPOSITORY = "BYTECODE_REPOSITORY";
|
|
4
|
+
export declare const INSTANCE_MANAGER = "INSTANCE_MANAGER";
|
|
5
|
+
export declare const TOKEN_COMPRESSOR = "GLOBAL::TOKEN_COMPRESSOR";
|
|
6
|
+
export declare const CROSS_CHAIN_MULTISIG = "CROSS_CHAIN_MULTISIG";
|
|
7
|
+
export declare const PRICE_FEED_STORE = "PRICE_FEED_STORE";
|
|
8
|
+
export declare const MARKET_CONFIGURATOR_FACTORY = "MARKET_CONFIGURATOR_FACTORY";
|
|
9
|
+
//#endregion
|
|
@@ -7,11 +7,10 @@ import { Address, Chain, PublicClient, Transport } from "viem";
|
|
|
7
7
|
* @param param0
|
|
8
8
|
* @returns
|
|
9
9
|
*/
|
|
10
|
-
declare function getPriceUpdateTx({ client, priceFeeds, useMulticall3, gasLimit }: {
|
|
10
|
+
export declare function getPriceUpdateTx({ client, priceFeeds, useMulticall3, gasLimit }: {
|
|
11
11
|
client: PublicClient<Transport, Chain>;
|
|
12
12
|
priceFeeds: Address[];
|
|
13
13
|
useMulticall3?: boolean;
|
|
14
14
|
gasLimit?: bigint;
|
|
15
15
|
}): Promise<RawTx | undefined>;
|
|
16
|
-
//#endregion
|
|
17
|
-
export { getPriceUpdateTx };
|
|
16
|
+
//#endregion
|