@gearbox-protocol/sdk 18.5.0-next.4 → 18.5.0-next.5
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/onchain/market/loss-policy/AliasLossPolicyV310Contract.js +1 -1
- package/dist/cjs/onchain/market/loss-policy/constants.js +6 -0
- package/dist/cjs/onchain/market/loss-policy/createLossPolicy.js +2 -1
- package/dist/cjs/permissionless/bindings/market-configurator.js +8 -4
- package/dist/cjs/permissionless/curator/actions/addAssetActionData.js +1 -0
- package/dist/cjs/permissionless/curator/actions/addCollateralTokenActionData.js +1 -0
- package/dist/cjs/permissionless/curator/actions/addPeripheryContractActionData.js +4 -4
- package/dist/cjs/permissionless/curator/actions/allowAdapterActionData.js +1 -0
- package/dist/cjs/permissionless/curator/actions/createMarketActionData.js +3 -4
- package/dist/cjs/permissionless/curator/actions/deployContractActionData.js +4 -6
- package/dist/cjs/permissionless/curator/actions/setPriceFeedActionData.js +1 -0
- package/dist/cjs/permissionless/curator/actions/setReservePriceFeedActionData.js +1 -0
- package/dist/cjs/permissionless/curator/actions/updateLossPolicyActionData.js +6 -5
- package/dist/cjs/permissionless/curator/actions/updateRateKeeperActionData.js +2 -1
- package/dist/cjs/permissionless/curator/actions/upgradeCreditFacadeActionData.js +1 -0
- package/dist/cjs/permissionless/curator/actions/utils/priceFeedChecks.js +5 -14
- package/dist/cjs/permissionless/curator/actions/utils/systemContracts.js +35 -0
- package/dist/cjs/permissionless/curator/executor/MarketExecutor.js +44 -8
- package/dist/cjs/permissionless/curator/index.js +5 -0
- package/dist/cjs/permissionless/curator/plugins/adapters/abstract-adapter/getAbstractAdapterPlugin.js +20 -2
- package/dist/cjs/permissionless/curator/plugins/adapters/builtinAdapterPlugins.js +4 -0
- package/dist/cjs/permissionless/curator/plugins/adapters/treehouse-router/setAssetStatusBatchActionData.js +42 -0
- package/dist/cjs/permissionless/curator/plugins/adapters/treehouse-router/treehouseRouterAdapterPlugin.js +36 -0
- package/dist/cjs/permissionless/curator/plugins/index.js +5 -0
- package/dist/cjs/permissionless/curator/plugins/loss-policies/alias/actions/setAccessModeActionData.js +2 -1
- package/dist/cjs/permissionless/curator/plugins/loss-policies/alias/actions/setAliasActionData.js +3 -1
- package/dist/cjs/permissionless/curator/plugins/loss-policies/alias/actions/setChecksEnabledActionData.js +2 -1
- package/dist/cjs/permissionless/curator/plugins/loss-policies/alias/aliasPlugin.js +7 -37
- package/dist/cjs/permissionless/curator/plugins/loss-policies/alias/aliasedLossPolicyPlugin.js +52 -0
- package/dist/cjs/permissionless/curator/plugins/loss-policies/alias/updateAliasLossPolicy.js +6 -2
- package/dist/cjs/permissionless/curator/plugins/loss-policies/lossPolicyPlugins.js +6 -2
- package/dist/cjs/permissionless/curator/plugins/loss-policies/midas-alias/midasAliasPlugin.js +17 -0
- package/dist/cjs/permissionless/curator/session/CuratorSession.js +5 -4
- package/dist/cjs/permissionless/curator/session/rwaPeripheryLookups.js +3 -9
- package/dist/cjs/permissionless/curator/state/market/buildLossPolicyState.js +3 -1
- package/dist/cjs/permissionless/index.js +8 -3
- package/dist/cjs/permissionless/plugins/loss-policies/constructor-params-abi.js +4 -1
- package/dist/esm/dev/AccountOpener.js +1 -1
- package/dist/esm/dev/withdrawalUtils.js +1 -1
- package/dist/esm/history/trace/extractTransfers.js +1 -1
- package/dist/esm/onchain/accounts/CreditAccountsServiceV310.js +4 -4
- package/dist/esm/onchain/accounts/liquidations/LiquidationsService.js +6 -6
- package/dist/esm/onchain/accounts/withdrawal-compressor/RedemptionLoggerV310Contract.js +2 -2
- package/dist/esm/onchain/base/TokensMeta.js +4 -4
- package/dist/esm/onchain/core/createAddressProvider.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/loss-policy/AliasLossPolicyV310Contract.js +2 -2
- package/dist/esm/onchain/market/loss-policy/constants.js +6 -1
- package/dist/esm/onchain/market/loss-policy/createLossPolicy.js +3 -2
- package/dist/esm/onchain/market/pool/PoolV310Contract.js +3 -3
- package/dist/esm/onchain/market/rwa/createDegenNFT.js +1 -1
- package/dist/esm/onchain/market/zapper/ZapperContract.js +2 -2
- package/dist/esm/onchain/pools/PoolService.js +1 -1
- package/dist/esm/onchain/preview/preview/previewPoolPositionOperation.js +1 -1
- package/dist/esm/permissionless/bindings/market-configurator.js +8 -4
- package/dist/esm/permissionless/curator/actions/addAssetActionData.js +1 -0
- package/dist/esm/permissionless/curator/actions/addCollateralTokenActionData.js +1 -0
- package/dist/esm/permissionless/curator/actions/addPeripheryContractActionData.js +4 -4
- package/dist/esm/permissionless/curator/actions/allowAdapterActionData.js +1 -0
- package/dist/esm/permissionless/curator/actions/createMarketActionData.js +3 -4
- package/dist/esm/permissionless/curator/actions/deployContractActionData.js +4 -6
- package/dist/esm/permissionless/curator/actions/setPriceFeedActionData.js +1 -0
- package/dist/esm/permissionless/curator/actions/setReservePriceFeedActionData.js +1 -0
- package/dist/esm/permissionless/curator/actions/updateLossPolicyActionData.js +4 -4
- package/dist/esm/permissionless/curator/actions/updateRateKeeperActionData.js +2 -1
- package/dist/esm/permissionless/curator/actions/upgradeCreditFacadeActionData.js +1 -0
- package/dist/esm/permissionless/curator/actions/utils/priceFeedChecks.js +5 -14
- package/dist/esm/permissionless/curator/actions/utils/systemContracts.js +29 -0
- package/dist/esm/permissionless/curator/executor/MarketExecutor.js +44 -8
- package/dist/esm/permissionless/curator/index.js +3 -1
- package/dist/esm/permissionless/curator/plugins/adapters/abstract-adapter/getAbstractAdapterPlugin.js +20 -2
- package/dist/esm/permissionless/curator/plugins/adapters/builtinAdapterPlugins.js +4 -0
- package/dist/esm/permissionless/curator/plugins/adapters/treehouse-router/setAssetStatusBatchActionData.js +40 -0
- package/dist/esm/permissionless/curator/plugins/adapters/treehouse-router/treehouseRouterAdapterPlugin.js +35 -0
- package/dist/esm/permissionless/curator/plugins/index.js +3 -1
- package/dist/esm/permissionless/curator/plugins/loss-policies/alias/actions/setAccessModeActionData.js +2 -1
- package/dist/esm/permissionless/curator/plugins/loss-policies/alias/actions/setAliasActionData.js +3 -1
- package/dist/esm/permissionless/curator/plugins/loss-policies/alias/actions/setChecksEnabledActionData.js +2 -1
- package/dist/esm/permissionless/curator/plugins/loss-policies/alias/aliasPlugin.js +8 -37
- package/dist/esm/permissionless/curator/plugins/loss-policies/alias/aliasedLossPolicyPlugin.js +50 -0
- package/dist/esm/permissionless/curator/plugins/loss-policies/alias/updateAliasLossPolicy.js +6 -2
- package/dist/esm/permissionless/curator/plugins/loss-policies/lossPolicyPlugins.js +6 -2
- package/dist/esm/permissionless/curator/plugins/loss-policies/midas-alias/midasAliasPlugin.js +16 -0
- package/dist/esm/permissionless/curator/session/CuratorSession.js +5 -4
- package/dist/esm/permissionless/curator/session/rwaPeripheryLookups.js +3 -9
- package/dist/esm/permissionless/curator/state/market/buildLossPolicyState.js +3 -1
- package/dist/esm/permissionless/index.js +6 -4
- package/dist/esm/permissionless/plugins/loss-policies/constructor-params-abi.js +4 -1
- package/dist/types/onchain/accounts/liquidations/types.d.ts +3 -3
- package/dist/types/onchain/accounts/withdrawal-compressor/AbstractWithdrawalCompressorContract.d.ts +2 -2
- package/dist/types/onchain/market/loss-policy/constants.d.ts +5 -0
- package/dist/types/onchain/types/state-human.d.ts +1 -1
- package/dist/types/permissionless/bindings/market-configurator.d.ts +5 -0
- package/dist/types/permissionless/curator/actions/defineMarketAction.d.ts +6 -0
- package/dist/types/permissionless/curator/actions/index.d.ts +2 -2
- package/dist/types/permissionless/curator/actions/marketActionDefinitions.d.ts +2 -2
- package/dist/types/permissionless/curator/actions/updateLossPolicyActionData.d.ts +1 -6
- package/dist/types/permissionless/curator/actions/utils/systemContracts.d.ts +40764 -0
- package/dist/types/permissionless/curator/index.d.ts +7 -4
- package/dist/types/permissionless/curator/plugins/adapters/abstract-adapter/getAbstractAdapterPlugin.d.ts +1 -1
- package/dist/types/permissionless/curator/plugins/adapters/builtinAdapterPlugins.d.ts +5 -1
- package/dist/types/permissionless/curator/plugins/adapters/treehouse-router/setAssetStatusBatchActionData.d.ts +20 -0
- package/dist/types/permissionless/curator/plugins/adapters/treehouse-router/treehouseRouterAdapterPlugin.d.ts +16 -0
- package/dist/types/permissionless/curator/plugins/index.d.ts +7 -4
- package/dist/types/permissionless/curator/plugins/loss-policies/alias/aliasPlugin.d.ts +8 -16
- package/dist/types/permissionless/curator/plugins/loss-policies/alias/aliasedLossPolicyPlugin.d.ts +37 -0
- package/dist/types/permissionless/curator/plugins/loss-policies/alias/updateAliasLossPolicy.d.ts +6 -3
- package/dist/types/permissionless/curator/plugins/loss-policies/lossPolicyPlugins.d.ts +8 -2
- package/dist/types/permissionless/curator/plugins/loss-policies/midas-alias/midasAliasPlugin.d.ts +13 -0
- package/dist/types/permissionless/index.d.ts +7 -4
- package/dist/types/permissionless/plugins/loss-policies/constructor-params-abi.d.ts +1 -1
- package/package.json +1 -1
|
@@ -30,14 +30,16 @@ import { UnpausePoolAction, unpausePoolActionData } from "./actions/unpausePoolA
|
|
|
30
30
|
import { LinearInterestRateModelParams, LinearInterestRateModelState, linearInterestRateModelDeployParamsSchema, linearPlugin } from "./plugins/irm/linear/linearPlugin.js";
|
|
31
31
|
import { DEFAULT_INTEREST_RATE_MODEL_PARAMS, IRMPlugin, InterestRateModelParams, InterestRateModelState, InterestRateModelType, irmDeployParamsSchema, irmPlugins } from "./plugins/irm/irmPlugins.js";
|
|
32
32
|
import { UpdateInterestRateModelAction, updateInterestRateModelActionData } from "./actions/updateInterestRateModelActionData.js";
|
|
33
|
+
import { AliasedLossPolicyParams, AliasedLossPolicyState, AliasedLossPolicyType, isAliasedLossPolicy } from "./plugins/loss-policies/alias/aliasedLossPolicyPlugin.js";
|
|
34
|
+
import { AliasLossPolicyParams, AliasLossPolicyState, aliasDeployParamsSchema, aliasPlugin } from "./plugins/loss-policies/alias/aliasPlugin.js";
|
|
35
|
+
import { MidasAliasLossPolicyParams, MidasAliasLossPolicyState, midasAliasDeployParamsSchema, midasAliasPlugin } from "./plugins/loss-policies/midas-alias/midasAliasPlugin.js";
|
|
36
|
+
import { AbstractLossPolicyState, DEFAULT_LOSS_POLICY_PARAMS, LossPolicyDeployParams, LossPolicyPlugin, LossPolicyState, LossPolicyType, lossPolicyDeployParamsSchema, lossPolicyMarketActionsData, lossPolicyPlugins } from "./plugins/loss-policies/lossPolicyPlugins.js";
|
|
37
|
+
import { UpdateLossPolicyAction, updateLossPolicyActionData } from "./actions/updateLossPolicyActionData.js";
|
|
33
38
|
import { CreateCreditSuiteAction, CreateCreditSuiteResolution, createCreditSuite, createCreditSuiteActionData, createCreditSuiteSchema } from "./actions/createCreditSuiteActionData.js";
|
|
34
39
|
import { CreateMarketAction, CreateMarketResolution, createMarketActionData } from "./actions/createMarketActionData.js";
|
|
35
40
|
import { DeployContractAction, DeployContractResolution, deployContractActionData, isContractDeploymentQueued, peripheryDomainOf } from "./actions/deployContractActionData.js";
|
|
36
41
|
import { SetPriceFeedAction, setPriceFeedActionData } from "./actions/setPriceFeedActionData.js";
|
|
37
42
|
import { SetReservePriceFeedAction, setReservePriceFeedActionData } from "./actions/setReservePriceFeedActionData.js";
|
|
38
|
-
import { AliasLossPolicyParams, AliasLossPolicyState, aliasDeployParamsSchema, aliasPlugin } from "./plugins/loss-policies/alias/aliasPlugin.js";
|
|
39
|
-
import { AbstractLossPolicyState, DEFAULT_LOSS_POLICY_PARAMS, LossPolicyDeployParams, LossPolicyPlugin, LossPolicyState, LossPolicyType, lossPolicyDeployParamsSchema, lossPolicyMarketActionsData, lossPolicyPlugins } from "./plugins/loss-policies/lossPolicyPlugins.js";
|
|
40
|
-
import { UpdateLossPolicyAction, UpdateLossPolicyResolution, updateLossPolicyActionData } from "./actions/updateLossPolicyActionData.js";
|
|
41
43
|
import { GaugeRateKeeperParams, GaugeRateKeeperState, gaugeDeployParamsSchema, gaugeMarketActionsData, gaugePlugin } from "./plugins/rate-keepers/gauge/gaugePlugin.js";
|
|
42
44
|
import { TumblerRateKeeperParams, TumblerRateKeeperState, tumblerDeployParamsSchema, tumblerDiagnostics, tumblerMarketActionsData, tumblerPlugin } from "./plugins/rate-keepers/tumbler/tumblerPlugin.js";
|
|
43
45
|
import { DEFAULT_RATE_KEEPER_PARAMS, RateKeeperDeployParams, RateKeeperPlugin, RateKeeperState, RateKeeperType, rateKeeperDeployParamsSchema, rateKeeperMarketActionsData, rateKeeperPlugins } from "./plugins/rate-keepers/rateKeeperPlugins.js";
|
|
@@ -108,6 +110,7 @@ import { PendleAdapterDeployParams, PendleAdapterState } from "./plugins/adapter
|
|
|
108
110
|
import { SecuritizeRedemptionAdapterDeployParams, SecuritizeRedemptionAdapterState } from "./plugins/adapters/securitize-redemption/securitizeRedemptionAdapterPlugin.js";
|
|
109
111
|
import { StakingRewardsAdapter311DeployParams, StakingRewardsAdapterDeployParams, StakingRewardsAdapterState } from "./plugins/adapters/staking-rewards/stakingRewardsPlugin.js";
|
|
110
112
|
import { TraderJoeAdapterDeployParams, TraderJoeAdapterState } from "./plugins/adapters/traderjoe/traderJoePlugin.js";
|
|
113
|
+
import { TreehouseRouterAdapterDeployParams, TreehouseRouterAdapterState } from "./plugins/adapters/treehouse-router/treehouseRouterAdapterPlugin.js";
|
|
111
114
|
import { UniswapV3AdapterDeployParams, UniswapV3AdapterState } from "./plugins/adapters/uniswap-v3/uniswapV3Plugin.js";
|
|
112
115
|
import { UniswapV4AdapterDeployParams, UniswapV4AdapterState } from "./plugins/adapters/uniswap-v4/uniswapV4Plugin.js";
|
|
113
116
|
import { VelodromeV2AdapterDeployParams, VelodromeV2AdapterState } from "./plugins/adapters/velodrome-v2/velodromeV2Plugin.js";
|
|
@@ -139,4 +142,4 @@ import { ActionFootprintArgs, ActionOf, AnyMarketAction, ApplyArgs, CheckArgs, E
|
|
|
139
142
|
import "./utils/index.js";
|
|
140
143
|
import { AccountFactoryType, AccountFactoryTypes, ActionEnv, BaseMarketAction, BasicParams, CreateMarketParams, DeployCreateSuiteParams } from "./actions/actionTypes.js";
|
|
141
144
|
import { CuratorSession, CuratorSessionArgs, CuratorSessionOptions } from "./session/CuratorSession.js";
|
|
142
|
-
export { ABSTRACT_ADAPTER_TYPES, type AbstractAdapterDeployParams, type AbstractAdapterState, type AbstractAdapterTypes, AbstractLossPolicyState, type AccountFactoryType, AccountFactoryTypes, type ActionDefinitionsOf, type ActionDiagnostic, type ActionDiagnosticPath, type ActionDiagnosticSeverity, type ActionEnv, type ActionFootprintArgs, type ActionOf, type ActionScope, type AdapterActionContext, type AdapterActions, AdapterDeployParams, type AdapterDeployParamsBase, AdapterMarketActionDefinition, type AdapterPluginDefinition, AdapterState, type AdapterStateBase, type AdapterStateOf, AdapterType, type AdapterValidation, AddAdminAction, type AddAssetAction, type AddCollateralTokenAction, type AddCollateralTokenContext, type AddPeripheryContractAction, type AdminRole, AliasLossPolicyParams, AliasLossPolicyState, type AllowAdapterAction, type AllowAdapterResolution, type AllowTokenAction, type AnvilSimulationOptions, type AnyMarketAction, type ApplyArgs, BUNDLE_TARGET, type BalancerV3AdapterDeployParams, type BalancerV3AdapterState, type BaseMarketAction, type BasicParams, type BatchTxs, type Bundle, type BundleApplication, type BundleCustomization, type CamelotV3AdapterDeployParams, type CamelotV3AdapterState, CancelConfigureAction, type Canon, type CanonTree, type CheckArgs, type CollateralResolution, type CollateralToken, type ComparisonVerdict, ConfigurationExecutor, type ConfiguratorActionDefinition, type ConfiguratorActionInput, type ConfiguratorActionType, type ConfiguratorActions, ConfiguratorBuilder, type ConfiguratorGipPlan, type ConfiguratorPreview, type ConfiguratorScopedAction, type ConfiguratorScopedDefinition, type ConfiguratorSimulationComparison, type ConfiguratorState, type ConfiguratorStateChanges, type ConfiguratorStateDiff, type ConfiguratorTx, ContractReader, type ConvexV1BaseRewardPoolAdapterDeployParams, type ConvexV1BaseRewardPoolAdapterState, type ConvexV1BoosterAdapterDeployParams, type ConvexV1BoosterAdapterState, type CreateCreditSuiteAction, type CreateCreditSuiteResolution, type CreateMarketAction, type CreateMarketParams, type CreateMarketResolution, type CreditManagerTarget, type CreditSuiteRef, CuratorSession, type CuratorSessionArgs, type CuratorSessionOptions, type CurveV1Adapter310DeployParams, type CurveV1Adapter311DeployParams, type CurveV1AdapterDeployParams, type CurveV1AdapterState, type CurveV1AdapterTypes, type CurveV1StETHAdapterDeployParams, type CurveV1StETHAdapterState, DEFAULT_INTEREST_RATE_MODEL_PARAMS, DEFAULT_LOSS_POLICY_PARAMS, DEFAULT_RATE_KEEPER_PARAMS, DEFAULT_RWA_UNDERLYING_TYPE, type DaiUsdsAdapterDeployParams, type DaiUsdsAdapterState, type DeployContractAction, type DeployContractResolution, type DeployCreateSuiteParams, type DeployParamsOf, type DiagnosticMarket, type DiffDiagnostic, type DiffOptions, type DiffSkipped, DistributeAction, type EncodeArgs, type Erc4626Adapter312DeployParams, type Erc4626AdapterDeployParams, type Erc4626AdapterState, type Erc4626ReferralAdapterDeployParams, type Erc4626ReferralAdapterState, type ExecutorOptions, type ExpectedMarketState, type ExternalAdapterAction, type Fields, type ForbidAdapterAction, type ForbidTokenAction, type ForkExecutionCall, type ForkExecutionReceipt, GaugeRateKeeperParams, GaugeRateKeeperState, type GipActionDiagnostic, GipActionError, type GipAnvilForkOptions, type GipBuilderContext, GipBuilderError, type GipBuilderErrorCode, type GipDiagnostic, type GipExpectedState, type GipForkSession, type GipForkSessionBase, type GipForkSimulationResult, type GipMarketAction, type GipPayloadForkSession, type GipPayloadSimulationRequest, type GipPlan, type GipPlanBase, type GipPlanGas, type GipPreview, GipRegistry, GipScopeError, type GipScopeErrorCode, type GipSimulationComparison, GipSimulationError, type GipSimulationFailure, type GipSimulationOptions, type GipSimulationOutcome, type GipSimulationPlan, type GipSimulationTarget, type GipSourceSnapshot, GipTargetResolutionError, type GovernorState, IRMPlugin, type IncompleteCheck, IncompleteRwaPeripherySetup, InterestRateModelParams, InterestRateModelState, InterestRateModelType, type InvalidActionParam, type ItemOf, type LeafNode, LinearInterestRateModelParams, LinearInterestRateModelState, type ListNode, LossPolicyDeployParams, LossPolicyPlugin, LossPolicyState, LossPolicyType, type MarketActionDefinition, type MarketActionInput, type MarketActionOf, type MarketActionType, type MarketActions, type MarketAsset, MarketBuilder, type MarketBundleOptions, type MarketCreditManagerState, type MarketDiagnostic, type MarketExecution, MarketExecutor, type MarketExecutorOptions, type MarketGipPlan, type MarketIntent, type MarketPreview, type MarketProjection, type MarketReadOptions, type MarketScopedAction, type MarketScopedDefinition, type MarketSimulationComparison, type MarketState, type MarketStateChanges, type MarketTx, type MellowClaimerAdapterDeployParams, type MellowClaimerAdapterState, type MellowErc4626Adapter312DeployParams, type MellowErc4626AdapterDeployParams, type MellowErc4626AdapterState, type MellowWrapperAdapterDeployParams, type MellowWrapperAdapterState, type MergePolicy, MergedGip, type MergedGipPlan, type MergedGipPreview, type MidasGatewayAdapterDeployParams, type MidasGatewayAdapterState, type MidasIssuanceAdapterDeployParams, type MidasIssuanceAdapterState, type MidasRedemptionAdapterDeployParams, type MidasRedemptionAdapterState, NO_LIMIT, ON_DEMAND_RWA_UNDERLYING_TYPE, type ObjectNode, type ParsedMarketTx, type PauseCreditManagerAction, type PausePoolAction, type PendleAdapterDeployParams, type PendleAdapterState, type PeripheryContractDomain, type PeripheryRegistryEntry, type PeripheryResolution, type PeripheryState, type PeripheryStatus, type PredictedDeployment, RWA_UNDERLYING_TYPE_PREFIX, RWA_ZAPPER_CONTRACT_TYPE, RWA_ZAPPER_VERSION, type RampLiquidationThresholdAction, type RampLiquidationThresholdContext, type RampStartRequest, RateKeeperDeployParams, RateKeeperPlugin, RateKeeperState, RateKeeperType, type RecordNode, type RegisteredMarketActionDefinition, RemoveAdminAction, type ResolveAdapterValidationArgs, type ResolveArgs, ResolveCache, type ResolvedParams, type Role, RwaPeripheryLookups, RwaPeripheryRequirement, RwaPeripheryRequirementKind, RwaPeripherySetupPlan, RwaZapperDeployParams, SECURITIZE_RWA_FACTORY_TYPE, type SchemaNode, type SecuritizeRedemptionAdapterDeployParams, type SecuritizeRedemptionAdapterState, SecuritizeRwaSetup, type SetCreditManagerDebtLimitAction, SetDefaultSplitAction, type SetDefaultSplitProposal, SetEmergencyAdminAction, type SetExpirationDateAction, type SetFeesAction, type SetMaxDebtPerBlockMultiplierAction, type SetPriceFeedAction, type SetReservePriceFeedAction, type SetTokenLimitAction, type SetTokenLimitContext, type SetTokenQuotaIncreaseFeeAction, type SetTotalDebtLimitAction, type Side, type SignedTimelockTxs, type SignedTimelockTxsWithHashes, type Split, type StakingRewardsAdapter311DeployParams, type StakingRewardsAdapterDeployParams, type StakingRewardsAdapterState, type StateChange, type StateDiff, type StatePath, type StateProvenance, type SuppressRule, type TimelockTxsIpfs, type TraderJoeAdapterDeployParams, type TraderJoeAdapterState, type TreasurySplitterState, type TreasuryState, type TreasuryTokenBalance, TumblerRateKeeperParams, TumblerRateKeeperState, type TwoAdminProposal, type UnionNode, type UniswapV2AdapterDeployParams, type UniswapV2AdapterState, type UniswapV3AdapterDeployParams, type UniswapV3AdapterState, type UniswapV4AdapterDeployParams, type UniswapV4AdapterState, type UnpauseCreditManagerAction, type UnpausePoolAction, type UpdateInterestRateModelAction, type UpdateLossPolicyAction, type UpdateLossPolicyResolution, type UpdateRateKeeperAction, type UpdateRateKeeperResolution, type UpgradeCreditFacadeAction, type ValidMarketAction, type ValidateAdapterParamsArgs, type VelodromeV2AdapterDeployParams, type VelodromeV2AdapterState, actionEnv, actionError, actionWarning, adapterPluginKit, adapterPlugins, addAdminActionData, addAssetActionData, addCollateralTokenActionData, addConfiguratorAction, addConfiguratorActions, addMarketAction, addMarketActions, addPeripheryContractActionData, adminRoleLabelMap, adminRoleSchema, aliasDeployParamsSchema, aliasPlugin, allowAdapterActionData, allowTokenActionData, applyBundle, applyChanges, assertNotBlocked, batchMarketTransactions, bindBundleTarget, buildMarketStateSchema, builtinAdapterPlugins, bundleActions, bundleSuiteId, cancelConfigureActionData, canonicalize, compareConfiguratorStates, compareGipForkState, completeRwaPeripheryActions, contractReaderFromClient, convertTokenAmount, copyCmActions, copyCmActionsForMarket, createAction, createCreditSuite, createCreditSuiteActionData, createCreditSuiteSchema, createMarketActionData, creditManagerFeesSchema, creditManagerTargetSchema, creditSuiteId, creditSuiteRef, creditSuiteRefSchema, customizeBundle, defineConfiguratorAction, defineMarketAction, deployContractActionData, deserializeGipPlan, diffMarketStates, diffStates, distributeActionData, findIncompleteRwaPeripherySetups, forbidAdapterActionData, forbidTokenActionData, formatMarketStateDiff, formatStateDiff, gaugeDeployParamsSchema, gaugeMarketActionsData, gaugePlugin, getAbstractAdapterPlugin, getActionScope, getConfiguratorState, getGipDiagnostics, getGovernorContract, getInitialMarketState, getMarketState, getRawTxHash, getRwaZapperDeployAction, getRwaZapperDeployParams, getTimelockTransactions, getTimelockTransactionsForExecution, hasErrors, insertRwaZapperDeployment, irmDeployParamsSchema, irmPlugins, isContractDeploymentQueued, isCreditSuiteRef, isPeripheryContractAdded, isRwaZapperRegistration, isSameTarget, isZeroFeed, linearInterestRateModelDeployParamsSchema, linearPlugin, locateDiagnostics, lossPolicyDeployParamsSchema, lossPolicyMarketActionsData, lossPolicyPlugins, marketIdentity, marketStateSchema, normalizeBundleTarget, numberToDecimalString, parseConfiguratorScopedAction, parseContractType, parseMarketScopedAction, pauseCreditManagerActionData, pausePoolActionData, peripheryContractDomains, peripheryDomainOf, peripheryStatus, planRwaPeripheryActions, previewCreditSuiteAddress, rampLiquidationThresholdActionData, rateKeeperDeployParamsSchema, rateKeeperMarketActionsData, rateKeeperPlugins, readContractType, reconcileRwaPeripheryActions, removeAdapterActions, removeAdminActionData, replaceCmActions, resolveSecuritizeRwaSetup, retargetCreditManager, revertTo, sameTree, selectMarketDegenNfts, serializeGipPlan, setCreditManagerDebtLimitActionData, setDefaultSplitActionData, setEmergencyAdminActionData, setExpirationDateActionData, setFeesActionData, setMaxDebtPerBlockMultiplierActionData, setPriceFeedActionData, setReservePriceFeedActionData, setTokenLimitActionData, setTokenQuotaIncreaseFeeActionData, setTotalDebtLimitActionData, simulateGipOnFork, simulateGipPayloadOnFork, simulateOnAnvil, stateSchema, targetKey, targetOf, tumblerDeployParamsSchema, tumblerDiagnostics, tumblerMarketActionsData, tumblerPlugin, unpauseCreditManagerActionData, unpausePoolActionData, updateInterestRateModelActionData, updateLossPolicyActionData, updateRateKeeperActionData, upgradeCreditFacadeActionData, usesBundleTarget, validateForkExecutionCalls };
|
|
145
|
+
export { ABSTRACT_ADAPTER_TYPES, type AbstractAdapterDeployParams, type AbstractAdapterState, type AbstractAdapterTypes, AbstractLossPolicyState, type AccountFactoryType, AccountFactoryTypes, type ActionDefinitionsOf, type ActionDiagnostic, type ActionDiagnosticPath, type ActionDiagnosticSeverity, type ActionEnv, type ActionFootprintArgs, type ActionOf, type ActionScope, type AdapterActionContext, type AdapterActions, AdapterDeployParams, type AdapterDeployParamsBase, AdapterMarketActionDefinition, type AdapterPluginDefinition, AdapterState, type AdapterStateBase, type AdapterStateOf, AdapterType, type AdapterValidation, AddAdminAction, type AddAssetAction, type AddCollateralTokenAction, type AddCollateralTokenContext, type AddPeripheryContractAction, type AdminRole, AliasLossPolicyParams, AliasLossPolicyState, type AliasedLossPolicyParams, type AliasedLossPolicyState, type AliasedLossPolicyType, type AllowAdapterAction, type AllowAdapterResolution, type AllowTokenAction, type AnvilSimulationOptions, type AnyMarketAction, type ApplyArgs, BUNDLE_TARGET, type BalancerV3AdapterDeployParams, type BalancerV3AdapterState, type BaseMarketAction, type BasicParams, type BatchTxs, type Bundle, type BundleApplication, type BundleCustomization, type CamelotV3AdapterDeployParams, type CamelotV3AdapterState, CancelConfigureAction, type Canon, type CanonTree, type CheckArgs, type CollateralResolution, type CollateralToken, type ComparisonVerdict, ConfigurationExecutor, type ConfiguratorActionDefinition, type ConfiguratorActionInput, type ConfiguratorActionType, type ConfiguratorActions, ConfiguratorBuilder, type ConfiguratorGipPlan, type ConfiguratorPreview, type ConfiguratorScopedAction, type ConfiguratorScopedDefinition, type ConfiguratorSimulationComparison, type ConfiguratorState, type ConfiguratorStateChanges, type ConfiguratorStateDiff, type ConfiguratorTx, ContractReader, type ConvexV1BaseRewardPoolAdapterDeployParams, type ConvexV1BaseRewardPoolAdapterState, type ConvexV1BoosterAdapterDeployParams, type ConvexV1BoosterAdapterState, type CreateCreditSuiteAction, type CreateCreditSuiteResolution, type CreateMarketAction, type CreateMarketParams, type CreateMarketResolution, type CreditManagerTarget, type CreditSuiteRef, CuratorSession, type CuratorSessionArgs, type CuratorSessionOptions, type CurveV1Adapter310DeployParams, type CurveV1Adapter311DeployParams, type CurveV1AdapterDeployParams, type CurveV1AdapterState, type CurveV1AdapterTypes, type CurveV1StETHAdapterDeployParams, type CurveV1StETHAdapterState, DEFAULT_INTEREST_RATE_MODEL_PARAMS, DEFAULT_LOSS_POLICY_PARAMS, DEFAULT_RATE_KEEPER_PARAMS, DEFAULT_RWA_UNDERLYING_TYPE, type DaiUsdsAdapterDeployParams, type DaiUsdsAdapterState, type DeployContractAction, type DeployContractResolution, type DeployCreateSuiteParams, type DeployParamsOf, type DiagnosticMarket, type DiffDiagnostic, type DiffOptions, type DiffSkipped, DistributeAction, type EncodeArgs, type Erc4626Adapter312DeployParams, type Erc4626AdapterDeployParams, type Erc4626AdapterState, type Erc4626ReferralAdapterDeployParams, type Erc4626ReferralAdapterState, type ExecutorOptions, type ExpectedMarketState, type ExternalAdapterAction, type Fields, type ForbidAdapterAction, type ForbidTokenAction, type ForkExecutionCall, type ForkExecutionReceipt, GaugeRateKeeperParams, GaugeRateKeeperState, type GipActionDiagnostic, GipActionError, type GipAnvilForkOptions, type GipBuilderContext, GipBuilderError, type GipBuilderErrorCode, type GipDiagnostic, type GipExpectedState, type GipForkSession, type GipForkSessionBase, type GipForkSimulationResult, type GipMarketAction, type GipPayloadForkSession, type GipPayloadSimulationRequest, type GipPlan, type GipPlanBase, type GipPlanGas, type GipPreview, GipRegistry, GipScopeError, type GipScopeErrorCode, type GipSimulationComparison, GipSimulationError, type GipSimulationFailure, type GipSimulationOptions, type GipSimulationOutcome, type GipSimulationPlan, type GipSimulationTarget, type GipSourceSnapshot, GipTargetResolutionError, type GovernorState, IRMPlugin, type IncompleteCheck, IncompleteRwaPeripherySetup, InterestRateModelParams, InterestRateModelState, InterestRateModelType, type InvalidActionParam, type ItemOf, type LeafNode, LinearInterestRateModelParams, LinearInterestRateModelState, type ListNode, LossPolicyDeployParams, LossPolicyPlugin, LossPolicyState, LossPolicyType, type MarketActionDefinition, type MarketActionInput, type MarketActionOf, type MarketActionType, type MarketActions, type MarketAsset, MarketBuilder, type MarketBundleOptions, type MarketCreditManagerState, type MarketDiagnostic, type MarketExecution, MarketExecutor, type MarketExecutorOptions, type MarketGipPlan, type MarketIntent, type MarketPreview, type MarketProjection, type MarketReadOptions, type MarketScopedAction, type MarketScopedDefinition, type MarketSimulationComparison, type MarketState, type MarketStateChanges, type MarketTx, type MellowClaimerAdapterDeployParams, type MellowClaimerAdapterState, type MellowErc4626Adapter312DeployParams, type MellowErc4626AdapterDeployParams, type MellowErc4626AdapterState, type MellowWrapperAdapterDeployParams, type MellowWrapperAdapterState, type MergePolicy, MergedGip, type MergedGipPlan, type MergedGipPreview, MidasAliasLossPolicyParams, MidasAliasLossPolicyState, type MidasGatewayAdapterDeployParams, type MidasGatewayAdapterState, type MidasIssuanceAdapterDeployParams, type MidasIssuanceAdapterState, type MidasRedemptionAdapterDeployParams, type MidasRedemptionAdapterState, NO_LIMIT, ON_DEMAND_RWA_UNDERLYING_TYPE, type ObjectNode, type ParsedMarketTx, type PauseCreditManagerAction, type PausePoolAction, type PendleAdapterDeployParams, type PendleAdapterState, type PeripheryContractDomain, type PeripheryRegistryEntry, type PeripheryResolution, type PeripheryState, type PeripheryStatus, type PredictedDeployment, RWA_UNDERLYING_TYPE_PREFIX, RWA_ZAPPER_CONTRACT_TYPE, RWA_ZAPPER_VERSION, type RampLiquidationThresholdAction, type RampLiquidationThresholdContext, type RampStartRequest, RateKeeperDeployParams, RateKeeperPlugin, RateKeeperState, RateKeeperType, type RecordNode, type RegisteredMarketActionDefinition, RemoveAdminAction, type ResolveAdapterValidationArgs, type ResolveArgs, ResolveCache, type ResolvedParams, type Role, RwaPeripheryLookups, RwaPeripheryRequirement, RwaPeripheryRequirementKind, RwaPeripherySetupPlan, RwaZapperDeployParams, SECURITIZE_RWA_FACTORY_TYPE, type SchemaNode, type SecuritizeRedemptionAdapterDeployParams, type SecuritizeRedemptionAdapterState, SecuritizeRwaSetup, type SetCreditManagerDebtLimitAction, SetDefaultSplitAction, type SetDefaultSplitProposal, SetEmergencyAdminAction, type SetExpirationDateAction, type SetFeesAction, type SetMaxDebtPerBlockMultiplierAction, type SetPriceFeedAction, type SetReservePriceFeedAction, type SetTokenLimitAction, type SetTokenLimitContext, type SetTokenQuotaIncreaseFeeAction, type SetTotalDebtLimitAction, type Side, type SignedTimelockTxs, type SignedTimelockTxsWithHashes, type Split, type StakingRewardsAdapter311DeployParams, type StakingRewardsAdapterDeployParams, type StakingRewardsAdapterState, type StateChange, type StateDiff, type StatePath, type StateProvenance, type SuppressRule, type TimelockTxsIpfs, type TraderJoeAdapterDeployParams, type TraderJoeAdapterState, type TreasurySplitterState, type TreasuryState, type TreasuryTokenBalance, type TreehouseRouterAdapterDeployParams, type TreehouseRouterAdapterState, TumblerRateKeeperParams, TumblerRateKeeperState, type TwoAdminProposal, type UnionNode, type UniswapV2AdapterDeployParams, type UniswapV2AdapterState, type UniswapV3AdapterDeployParams, type UniswapV3AdapterState, type UniswapV4AdapterDeployParams, type UniswapV4AdapterState, type UnpauseCreditManagerAction, type UnpausePoolAction, type UpdateInterestRateModelAction, type UpdateLossPolicyAction, type UpdateRateKeeperAction, type UpdateRateKeeperResolution, type UpgradeCreditFacadeAction, type ValidMarketAction, type ValidateAdapterParamsArgs, type VelodromeV2AdapterDeployParams, type VelodromeV2AdapterState, actionEnv, actionError, actionWarning, adapterPluginKit, adapterPlugins, addAdminActionData, addAssetActionData, addCollateralTokenActionData, addConfiguratorAction, addConfiguratorActions, addMarketAction, addMarketActions, addPeripheryContractActionData, adminRoleLabelMap, adminRoleSchema, aliasDeployParamsSchema, aliasPlugin, allowAdapterActionData, allowTokenActionData, applyBundle, applyChanges, assertNotBlocked, batchMarketTransactions, bindBundleTarget, buildMarketStateSchema, builtinAdapterPlugins, bundleActions, bundleSuiteId, cancelConfigureActionData, canonicalize, compareConfiguratorStates, compareGipForkState, completeRwaPeripheryActions, contractReaderFromClient, convertTokenAmount, copyCmActions, copyCmActionsForMarket, createAction, createCreditSuite, createCreditSuiteActionData, createCreditSuiteSchema, createMarketActionData, creditManagerFeesSchema, creditManagerTargetSchema, creditSuiteId, creditSuiteRef, creditSuiteRefSchema, customizeBundle, defineConfiguratorAction, defineMarketAction, deployContractActionData, deserializeGipPlan, diffMarketStates, diffStates, distributeActionData, findIncompleteRwaPeripherySetups, forbidAdapterActionData, forbidTokenActionData, formatMarketStateDiff, formatStateDiff, gaugeDeployParamsSchema, gaugeMarketActionsData, gaugePlugin, getAbstractAdapterPlugin, getActionScope, getConfiguratorState, getGipDiagnostics, getGovernorContract, getInitialMarketState, getMarketState, getRawTxHash, getRwaZapperDeployAction, getRwaZapperDeployParams, getTimelockTransactions, getTimelockTransactionsForExecution, hasErrors, insertRwaZapperDeployment, irmDeployParamsSchema, irmPlugins, isAliasedLossPolicy, isContractDeploymentQueued, isCreditSuiteRef, isPeripheryContractAdded, isRwaZapperRegistration, isSameTarget, isZeroFeed, linearInterestRateModelDeployParamsSchema, linearPlugin, locateDiagnostics, lossPolicyDeployParamsSchema, lossPolicyMarketActionsData, lossPolicyPlugins, marketIdentity, marketStateSchema, midasAliasDeployParamsSchema, midasAliasPlugin, normalizeBundleTarget, numberToDecimalString, parseConfiguratorScopedAction, parseContractType, parseMarketScopedAction, pauseCreditManagerActionData, pausePoolActionData, peripheryContractDomains, peripheryDomainOf, peripheryStatus, planRwaPeripheryActions, previewCreditSuiteAddress, rampLiquidationThresholdActionData, rateKeeperDeployParamsSchema, rateKeeperMarketActionsData, rateKeeperPlugins, readContractType, reconcileRwaPeripheryActions, removeAdapterActions, removeAdminActionData, replaceCmActions, resolveSecuritizeRwaSetup, retargetCreditManager, revertTo, sameTree, selectMarketDegenNfts, serializeGipPlan, setCreditManagerDebtLimitActionData, setDefaultSplitActionData, setEmergencyAdminActionData, setExpirationDateActionData, setFeesActionData, setMaxDebtPerBlockMultiplierActionData, setPriceFeedActionData, setReservePriceFeedActionData, setTokenLimitActionData, setTokenQuotaIncreaseFeeActionData, setTotalDebtLimitActionData, simulateGipOnFork, simulateGipPayloadOnFork, simulateOnAnvil, stateSchema, targetKey, targetOf, tumblerDeployParamsSchema, tumblerDiagnostics, tumblerMarketActionsData, tumblerPlugin, unpauseCreditManagerActionData, unpausePoolActionData, updateInterestRateModelActionData, updateLossPolicyActionData, updateRateKeeperActionData, upgradeCreditFacadeActionData, usesBundleTarget, validateForkExecutionCalls };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AdapterPluginDefinition, AdapterStateBase } from "../defineAdapterPlugin.js";
|
|
2
2
|
import { Address } from "viem";
|
|
3
3
|
export type AbstractAdapterState = AdapterStateBase;
|
|
4
|
-
export declare const ABSTRACT_ADAPTER_TYPES: readonly ["LIDO_V1", "LIDO_WSTETH_V1", "MELLOW_DVV", "FLUID_DEX", "BALANCER_V3_WRAPPER", "SECURITIZE_ONRAMP"];
|
|
4
|
+
export declare const ABSTRACT_ADAPTER_TYPES: readonly ["LIDO_V1", "LIDO_WSTETH_V1", "MELLOW_DVV", "FLUID_DEX", "BALANCER_V3_WRAPPER", "SECURITIZE_ONRAMP", "TREEHOUSE_FASTLANE", "TREEHOUSE_GATEWAY"];
|
|
5
5
|
export type AbstractAdapterTypes = (typeof ABSTRACT_ADAPTER_TYPES)[number];
|
|
6
6
|
export interface AbstractAdapterDeployParams {
|
|
7
7
|
type: AbstractAdapterTypes;
|
|
@@ -17,6 +17,8 @@ import { PendleAdapterDeployParams, PendleAdapterState } from "./pendle/pendlePl
|
|
|
17
17
|
import { SetPairBatchStatusAction as SetPairBatchStatusAction$1 } from "./pendle/setPairBatchStatusActionData.js";
|
|
18
18
|
import { MidasGatewayAdapterDeployParams } from "./midas-gateway/midasGatewayAdapterPlugin.js";
|
|
19
19
|
import { SecuritizeRedemptionAdapterDeployParams } from "./securitize-redemption/securitizeRedemptionAdapterPlugin.js";
|
|
20
|
+
import { TreehouseRouterAdapterDeployParams, TreehouseRouterAdapterState } from "./treehouse-router/treehouseRouterAdapterPlugin.js";
|
|
21
|
+
import { SetAssetStatusBatchAction } from "./treehouse-router/setAssetStatusBatchActionData.js";
|
|
20
22
|
import { MellowErc4626AdapterDeployParams } from "./mellow-erc4626/mellowErc4626AdapterPlugin.js";
|
|
21
23
|
import { MellowWrapperAdapterDeployParams, MellowWrapperAdapterState } from "./mellow-wrapper/mellowWrapperAdapterPlugin.js";
|
|
22
24
|
import { SetVaultStatusBatchAction } from "./mellow-wrapper/setVaultStatusBatchActionData.js";
|
|
@@ -49,7 +51,9 @@ export declare const builtinAdapterPlugins: readonly [AdapterPluginDefinition<Un
|
|
|
49
51
|
readonly setPoolStatusBatch: MarketScopedDefinition<SetPoolBatchStatusAction$1>;
|
|
50
52
|
}>, AdapterPluginDefinition<AbstractAdapterDeployParams, AdapterStateBase, {}>, AdapterPluginDefinition<CurveV1AdapterDeployParams, AdapterStateBase, {}>, AdapterPluginDefinition<CurveV1AdapterDeployParams, AdapterStateBase, {}>, AdapterPluginDefinition<CurveV1AdapterDeployParams, AdapterStateBase, {}>, AdapterPluginDefinition<CurveV1AdapterDeployParams, AdapterStateBase, {}>, AdapterPluginDefinition<CurveV1StETHAdapterDeployParams, AdapterStateBase, {}>, AdapterPluginDefinition<Erc4626AdapterDeployParams, AdapterStateBase, {}>, AdapterPluginDefinition<Erc4626ReferralAdapterDeployParams, AdapterStateBase, {}>, AdapterPluginDefinition<PendleAdapterDeployParams, PendleAdapterState, {
|
|
51
53
|
readonly setPairStatusBatch: MarketScopedDefinition<SetPairBatchStatusAction$1>;
|
|
52
|
-
}>, AdapterPluginDefinition<MidasGatewayAdapterDeployParams, AdapterStateBase, {}>, AdapterPluginDefinition<SecuritizeRedemptionAdapterDeployParams, AdapterStateBase, {}>, AdapterPluginDefinition<AbstractAdapterDeployParams, AdapterStateBase, {}>, AdapterPluginDefinition<
|
|
54
|
+
}>, AdapterPluginDefinition<MidasGatewayAdapterDeployParams, AdapterStateBase, {}>, AdapterPluginDefinition<SecuritizeRedemptionAdapterDeployParams, AdapterStateBase, {}>, AdapterPluginDefinition<AbstractAdapterDeployParams, AdapterStateBase, {}>, AdapterPluginDefinition<TreehouseRouterAdapterDeployParams, TreehouseRouterAdapterState, {
|
|
55
|
+
readonly setAssetStatusBatch: MarketScopedDefinition<SetAssetStatusBatchAction>;
|
|
56
|
+
}>, AdapterPluginDefinition<AbstractAdapterDeployParams, AdapterStateBase, {}>, AdapterPluginDefinition<AbstractAdapterDeployParams, AdapterStateBase, {}>, AdapterPluginDefinition<MellowErc4626AdapterDeployParams, AdapterStateBase, {}>, AdapterPluginDefinition<AbstractAdapterDeployParams, AdapterStateBase, {}>, AdapterPluginDefinition<MellowWrapperAdapterDeployParams, MellowWrapperAdapterState, {
|
|
53
57
|
readonly setVaultStatusBatch: MarketScopedDefinition<SetVaultStatusBatchAction>;
|
|
54
58
|
}>, AdapterPluginDefinition<MellowClaimerAdapterDeployParams, MellowClaimerAdapterState, {
|
|
55
59
|
readonly setMultiVaultStatusBatch: MarketScopedDefinition<SetMultiVaultStatusBatchAction>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ListNode } from "../../../state/diff/schemaNodes.js";
|
|
2
|
+
import "../../../index.js";
|
|
3
|
+
import { BaseMarketAction } from "../../../actions/actionTypes.js";
|
|
4
|
+
import { MarketScopedDefinition } from "../../../actions/defineMarketAction.js";
|
|
5
|
+
import { AdapterActionContext } from "../adapterMarketActionsData.js";
|
|
6
|
+
import { Address } from "viem";
|
|
7
|
+
export type TreehouseRouterAssetStatus = {
|
|
8
|
+
asset: Address;
|
|
9
|
+
allowed: boolean;
|
|
10
|
+
};
|
|
11
|
+
export type SetAssetStatusBatchParams = AdapterActionContext & {
|
|
12
|
+
allowedAssets: TreehouseRouterAssetStatus[];
|
|
13
|
+
};
|
|
14
|
+
export type SetAssetStatusBatchAction = BaseMarketAction<"ADAPTER::TREEHOUSE_ROUTER::setAssetStatusBatch", SetAssetStatusBatchParams>;
|
|
15
|
+
/**
|
|
16
|
+
* The adapter's `allowedAssets` as its state schema lists them: the key identifies an
|
|
17
|
+
* item in merges, state updates and diffs alike.
|
|
18
|
+
**/
|
|
19
|
+
export declare const treehouseRouterAllowedAssetsList: ListNode;
|
|
20
|
+
export declare const setAssetStatusBatchActionData: MarketScopedDefinition<SetAssetStatusBatchAction>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SetAssetStatusBatchAction, TreehouseRouterAssetStatus } from "./setAssetStatusBatchActionData.js";
|
|
2
|
+
import "../../../index.js";
|
|
3
|
+
import { AdapterPluginDefinition, AdapterStateBase } from "../defineAdapterPlugin.js";
|
|
4
|
+
import { MarketScopedDefinition } from "../../../actions/defineMarketAction.js";
|
|
5
|
+
import { Address } from "viem";
|
|
6
|
+
export type TreehouseRouterAdapterState = AdapterStateBase & {
|
|
7
|
+
allowedAssets: TreehouseRouterAssetStatus[];
|
|
8
|
+
};
|
|
9
|
+
export interface TreehouseRouterAdapterDeployParams {
|
|
10
|
+
type: "TREEHOUSE_ROUTER";
|
|
11
|
+
version: 310;
|
|
12
|
+
target: Address;
|
|
13
|
+
}
|
|
14
|
+
export declare const treehouseRouterAdapterPlugin: AdapterPluginDefinition<TreehouseRouterAdapterDeployParams, TreehouseRouterAdapterState, {
|
|
15
|
+
readonly setAssetStatusBatch: MarketScopedDefinition<SetAssetStatusBatchAction>;
|
|
16
|
+
}>;
|
|
@@ -6,9 +6,9 @@ import { CamelotV3AdapterDeployParams, CamelotV3AdapterState } from "./adapters/
|
|
|
6
6
|
import { ConvexV1BaseRewardPoolAdapterDeployParams, ConvexV1BaseRewardPoolAdapterState } from "./adapters/convex-v1-base-reward-pool/convexV1BaseRewardPoolPlugin.js";
|
|
7
7
|
import { ConvexV1BoosterAdapterDeployParams, ConvexV1BoosterAdapterState } from "./adapters/convex-v1-booster/convexV1BoosterPlugin.js";
|
|
8
8
|
import { CurveV1Adapter310DeployParams, CurveV1Adapter311DeployParams, CurveV1AdapterDeployParams, CurveV1AdapterState, CurveV1AdapterTypes } from "./adapters/curve-v1/getCurveV1Plugin.js";
|
|
9
|
-
import { ActionDefinitionsOf, AdapterActions, AdapterDeployParamsBase, AdapterPluginDefinition, AdapterStateBase, AdapterStateOf, AdapterValidation, DeployParamsOf, ResolveAdapterValidationArgs, ValidateAdapterParamsArgs } from "./adapters/defineAdapterPlugin.js";
|
|
10
9
|
import { CurveV1StETHAdapterDeployParams, CurveV1StETHAdapterState } from "./adapters/curve-v1-steth/curveV1StETHPlugin.js";
|
|
11
10
|
import { DaiUsdsAdapterDeployParams, DaiUsdsAdapterState } from "./adapters/dai-usds/daiUsdsAdapterPlugin.js";
|
|
11
|
+
import { ActionDefinitionsOf, AdapterActions, AdapterDeployParamsBase, AdapterPluginDefinition, AdapterStateBase, AdapterStateOf, AdapterValidation, DeployParamsOf, ResolveAdapterValidationArgs, ValidateAdapterParamsArgs } from "./adapters/defineAdapterPlugin.js";
|
|
12
12
|
import { Erc4626Adapter312DeployParams, Erc4626AdapterDeployParams, Erc4626AdapterState } from "./adapters/erc4626/erc4626AdapterPlugin.js";
|
|
13
13
|
import { Erc4626ReferralAdapterDeployParams, Erc4626ReferralAdapterState } from "./adapters/erc4626-referral/erc4626ReferralAdapterPlugin.js";
|
|
14
14
|
import "./adapters/index.js";
|
|
@@ -17,22 +17,25 @@ import { MellowErc4626Adapter312DeployParams, MellowErc4626AdapterDeployParams,
|
|
|
17
17
|
import { MellowWrapperAdapterDeployParams, MellowWrapperAdapterState } from "./adapters/mellow-wrapper/mellowWrapperAdapterPlugin.js";
|
|
18
18
|
import { MidasGatewayAdapterDeployParams, MidasGatewayAdapterState } from "./adapters/midas-gateway/midasGatewayAdapterPlugin.js";
|
|
19
19
|
import { MidasIssuanceAdapterDeployParams, MidasIssuanceAdapterState } from "./adapters/midas-issuance/midasIssuanceAdapterPlugin.js";
|
|
20
|
-
import { ItemOf } from "./adapters/adapterStateSchema.js";
|
|
21
|
-
import { adapterPluginKit } from "./adapters/adapterPluginKit.js";
|
|
22
20
|
import { MidasRedemptionAdapterDeployParams, MidasRedemptionAdapterState } from "./adapters/midas-redemption/midasRedemptionAdapterPlugin.js";
|
|
23
21
|
import { PendleAdapterDeployParams, PendleAdapterState } from "./adapters/pendle/pendlePlugin.js";
|
|
22
|
+
import { ItemOf } from "./adapters/adapterStateSchema.js";
|
|
23
|
+
import { adapterPluginKit } from "./adapters/adapterPluginKit.js";
|
|
24
24
|
import { SecuritizeRedemptionAdapterDeployParams, SecuritizeRedemptionAdapterState } from "./adapters/securitize-redemption/securitizeRedemptionAdapterPlugin.js";
|
|
25
25
|
import { StakingRewardsAdapter311DeployParams, StakingRewardsAdapterDeployParams, StakingRewardsAdapterState } from "./adapters/staking-rewards/stakingRewardsPlugin.js";
|
|
26
26
|
import { TraderJoeAdapterDeployParams, TraderJoeAdapterState } from "./adapters/traderjoe/traderJoePlugin.js";
|
|
27
|
+
import { TreehouseRouterAdapterDeployParams, TreehouseRouterAdapterState } from "./adapters/treehouse-router/treehouseRouterAdapterPlugin.js";
|
|
27
28
|
import { UniswapV2AdapterDeployParams, UniswapV2AdapterState } from "./adapters/uniswap-v2/uniswapV2Plugin.js";
|
|
28
29
|
import { UniswapV3AdapterDeployParams, UniswapV3AdapterState } from "./adapters/uniswap-v3/uniswapV3Plugin.js";
|
|
29
30
|
import { UniswapV4AdapterDeployParams, UniswapV4AdapterState } from "./adapters/uniswap-v4/uniswapV4Plugin.js";
|
|
30
31
|
import { VelodromeV2AdapterDeployParams, VelodromeV2AdapterState } from "./adapters/velodrome-v2/velodromeV2Plugin.js";
|
|
31
32
|
import { DEFAULT_INTEREST_RATE_MODEL_PARAMS, IRMPlugin, InterestRateModelParams, InterestRateModelState, InterestRateModelType, irmDeployParamsSchema, irmPlugins } from "./irm/irmPlugins.js";
|
|
32
33
|
import { LinearInterestRateModelParams, LinearInterestRateModelState, linearInterestRateModelDeployParamsSchema, linearPlugin } from "./irm/linear/linearPlugin.js";
|
|
34
|
+
import { AliasedLossPolicyParams, AliasedLossPolicyState, AliasedLossPolicyType, isAliasedLossPolicy } from "./loss-policies/alias/aliasedLossPolicyPlugin.js";
|
|
33
35
|
import { AliasLossPolicyParams, AliasLossPolicyState, aliasDeployParamsSchema, aliasPlugin } from "./loss-policies/alias/aliasPlugin.js";
|
|
34
36
|
import { AbstractLossPolicyState, DEFAULT_LOSS_POLICY_PARAMS, LossPolicyDeployParams, LossPolicyPlugin, LossPolicyState, LossPolicyType, lossPolicyDeployParamsSchema, lossPolicyMarketActionsData, lossPolicyPlugins } from "./loss-policies/lossPolicyPlugins.js";
|
|
37
|
+
import { MidasAliasLossPolicyParams, MidasAliasLossPolicyState, midasAliasDeployParamsSchema, midasAliasPlugin } from "./loss-policies/midas-alias/midasAliasPlugin.js";
|
|
35
38
|
import { GaugeRateKeeperParams, GaugeRateKeeperState, gaugeDeployParamsSchema, gaugeMarketActionsData, gaugePlugin } from "./rate-keepers/gauge/gaugePlugin.js";
|
|
36
39
|
import { DEFAULT_RATE_KEEPER_PARAMS, RateKeeperDeployParams, RateKeeperPlugin, RateKeeperState, RateKeeperType, rateKeeperDeployParamsSchema, rateKeeperMarketActionsData, rateKeeperPlugins } from "./rate-keepers/rateKeeperPlugins.js";
|
|
37
40
|
import { TumblerRateKeeperParams, TumblerRateKeeperState, tumblerDeployParamsSchema, tumblerDiagnostics, tumblerMarketActionsData, tumblerPlugin } from "./rate-keepers/tumbler/tumblerPlugin.js";
|
|
38
|
-
export { ABSTRACT_ADAPTER_TYPES, type AbstractAdapterDeployParams, type AbstractAdapterState, type AbstractAdapterTypes, AbstractLossPolicyState, type ActionDefinitionsOf, type AdapterActionContext, type AdapterActions, AdapterDeployParams, type AdapterDeployParamsBase, AdapterMarketActionDefinition, type AdapterPluginDefinition, AdapterState, type AdapterStateBase, type AdapterStateOf, AdapterType, type AdapterValidation, AliasLossPolicyParams, AliasLossPolicyState, type BalancerV3AdapterDeployParams, type BalancerV3AdapterState, type CamelotV3AdapterDeployParams, type CamelotV3AdapterState, type ConvexV1BaseRewardPoolAdapterDeployParams, type ConvexV1BaseRewardPoolAdapterState, type ConvexV1BoosterAdapterDeployParams, type ConvexV1BoosterAdapterState, type CurveV1Adapter310DeployParams, type CurveV1Adapter311DeployParams, type CurveV1AdapterDeployParams, type CurveV1AdapterState, type CurveV1AdapterTypes, type CurveV1StETHAdapterDeployParams, type CurveV1StETHAdapterState, DEFAULT_INTEREST_RATE_MODEL_PARAMS, DEFAULT_LOSS_POLICY_PARAMS, DEFAULT_RATE_KEEPER_PARAMS, type DaiUsdsAdapterDeployParams, type DaiUsdsAdapterState, type DeployParamsOf, type Erc4626Adapter312DeployParams, type Erc4626AdapterDeployParams, type Erc4626AdapterState, type Erc4626ReferralAdapterDeployParams, type Erc4626ReferralAdapterState, GaugeRateKeeperParams, GaugeRateKeeperState, IRMPlugin, InterestRateModelParams, InterestRateModelState, InterestRateModelType, type ItemOf, LinearInterestRateModelParams, LinearInterestRateModelState, LossPolicyDeployParams, LossPolicyPlugin, LossPolicyState, LossPolicyType, type MellowClaimerAdapterDeployParams, type MellowClaimerAdapterState, type MellowErc4626Adapter312DeployParams, type MellowErc4626AdapterDeployParams, type MellowErc4626AdapterState, type MellowWrapperAdapterDeployParams, type MellowWrapperAdapterState, type MidasGatewayAdapterDeployParams, type MidasGatewayAdapterState, type MidasIssuanceAdapterDeployParams, type MidasIssuanceAdapterState, type MidasRedemptionAdapterDeployParams, type MidasRedemptionAdapterState, type PendleAdapterDeployParams, type PendleAdapterState, RateKeeperDeployParams, RateKeeperPlugin, RateKeeperState, RateKeeperType, type ResolveAdapterValidationArgs, type SecuritizeRedemptionAdapterDeployParams, type SecuritizeRedemptionAdapterState, type StakingRewardsAdapter311DeployParams, type StakingRewardsAdapterDeployParams, type StakingRewardsAdapterState, type TraderJoeAdapterDeployParams, type TraderJoeAdapterState, TumblerRateKeeperParams, TumblerRateKeeperState, type UniswapV2AdapterDeployParams, type UniswapV2AdapterState, type UniswapV3AdapterDeployParams, type UniswapV3AdapterState, type UniswapV4AdapterDeployParams, type UniswapV4AdapterState, type ValidateAdapterParamsArgs, type VelodromeV2AdapterDeployParams, type VelodromeV2AdapterState, adapterPluginKit, adapterPlugins, aliasDeployParamsSchema, aliasPlugin, builtinAdapterPlugins, gaugeDeployParamsSchema, gaugeMarketActionsData, gaugePlugin, getAbstractAdapterPlugin, irmDeployParamsSchema, irmPlugins, linearInterestRateModelDeployParamsSchema, linearPlugin, lossPolicyDeployParamsSchema, lossPolicyMarketActionsData, lossPolicyPlugins, rateKeeperDeployParamsSchema, rateKeeperMarketActionsData, rateKeeperPlugins, tumblerDeployParamsSchema, tumblerDiagnostics, tumblerMarketActionsData, tumblerPlugin };
|
|
41
|
+
export { ABSTRACT_ADAPTER_TYPES, type AbstractAdapterDeployParams, type AbstractAdapterState, type AbstractAdapterTypes, AbstractLossPolicyState, type ActionDefinitionsOf, type AdapterActionContext, type AdapterActions, AdapterDeployParams, type AdapterDeployParamsBase, AdapterMarketActionDefinition, type AdapterPluginDefinition, AdapterState, type AdapterStateBase, type AdapterStateOf, AdapterType, type AdapterValidation, AliasLossPolicyParams, AliasLossPolicyState, type AliasedLossPolicyParams, type AliasedLossPolicyState, type AliasedLossPolicyType, type BalancerV3AdapterDeployParams, type BalancerV3AdapterState, type CamelotV3AdapterDeployParams, type CamelotV3AdapterState, type ConvexV1BaseRewardPoolAdapterDeployParams, type ConvexV1BaseRewardPoolAdapterState, type ConvexV1BoosterAdapterDeployParams, type ConvexV1BoosterAdapterState, type CurveV1Adapter310DeployParams, type CurveV1Adapter311DeployParams, type CurveV1AdapterDeployParams, type CurveV1AdapterState, type CurveV1AdapterTypes, type CurveV1StETHAdapterDeployParams, type CurveV1StETHAdapterState, DEFAULT_INTEREST_RATE_MODEL_PARAMS, DEFAULT_LOSS_POLICY_PARAMS, DEFAULT_RATE_KEEPER_PARAMS, type DaiUsdsAdapterDeployParams, type DaiUsdsAdapterState, type DeployParamsOf, type Erc4626Adapter312DeployParams, type Erc4626AdapterDeployParams, type Erc4626AdapterState, type Erc4626ReferralAdapterDeployParams, type Erc4626ReferralAdapterState, GaugeRateKeeperParams, GaugeRateKeeperState, IRMPlugin, InterestRateModelParams, InterestRateModelState, InterestRateModelType, type ItemOf, LinearInterestRateModelParams, LinearInterestRateModelState, LossPolicyDeployParams, LossPolicyPlugin, LossPolicyState, LossPolicyType, type MellowClaimerAdapterDeployParams, type MellowClaimerAdapterState, type MellowErc4626Adapter312DeployParams, type MellowErc4626AdapterDeployParams, type MellowErc4626AdapterState, type MellowWrapperAdapterDeployParams, type MellowWrapperAdapterState, MidasAliasLossPolicyParams, MidasAliasLossPolicyState, type MidasGatewayAdapterDeployParams, type MidasGatewayAdapterState, type MidasIssuanceAdapterDeployParams, type MidasIssuanceAdapterState, type MidasRedemptionAdapterDeployParams, type MidasRedemptionAdapterState, type PendleAdapterDeployParams, type PendleAdapterState, RateKeeperDeployParams, RateKeeperPlugin, RateKeeperState, RateKeeperType, type ResolveAdapterValidationArgs, type SecuritizeRedemptionAdapterDeployParams, type SecuritizeRedemptionAdapterState, type StakingRewardsAdapter311DeployParams, type StakingRewardsAdapterDeployParams, type StakingRewardsAdapterState, type TraderJoeAdapterDeployParams, type TraderJoeAdapterState, type TreehouseRouterAdapterDeployParams, type TreehouseRouterAdapterState, TumblerRateKeeperParams, TumblerRateKeeperState, type UniswapV2AdapterDeployParams, type UniswapV2AdapterState, type UniswapV3AdapterDeployParams, type UniswapV3AdapterState, type UniswapV4AdapterDeployParams, type UniswapV4AdapterState, type ValidateAdapterParamsArgs, type VelodromeV2AdapterDeployParams, type VelodromeV2AdapterState, adapterPluginKit, adapterPlugins, aliasDeployParamsSchema, aliasPlugin, builtinAdapterPlugins, gaugeDeployParamsSchema, gaugeMarketActionsData, gaugePlugin, getAbstractAdapterPlugin, irmDeployParamsSchema, irmPlugins, isAliasedLossPolicy, linearInterestRateModelDeployParamsSchema, linearPlugin, lossPolicyDeployParamsSchema, lossPolicyMarketActionsData, lossPolicyPlugins, midasAliasDeployParamsSchema, midasAliasPlugin, rateKeeperDeployParamsSchema, rateKeeperMarketActionsData, rateKeeperPlugins, tumblerDeployParamsSchema, tumblerDiagnostics, tumblerMarketActionsData, tumblerPlugin };
|
|
@@ -1,17 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export
|
|
6
|
-
type: "ALIAS"
|
|
7
|
-
salt
|
|
8
|
-
}
|
|
9
|
-
export interface AliasLossPolicyState extends AliasLossPolicyParams, AbstractLossPolicyState {
|
|
10
|
-
aliases: Record<Address, Address>;
|
|
11
|
-
mode: AccessMode;
|
|
12
|
-
}
|
|
13
|
-
export declare const aliasDeployParamsSchema: z.ZodObject<{
|
|
14
|
-
type: z.ZodLiteral<"ALIAS">;
|
|
15
|
-
salt: z.ZodOptional<z.ZodString>;
|
|
16
|
-
}, z.core.$strip>;
|
|
1
|
+
import { LossPolicyPlugin } from "../lossPolicyPlugins.js";
|
|
2
|
+
import { AliasedLossPolicyParams, AliasedLossPolicyState } from "./aliasedLossPolicyPlugin.js";
|
|
3
|
+
export type AliasLossPolicyParams = AliasedLossPolicyParams<"ALIAS">;
|
|
4
|
+
export type AliasLossPolicyState = AliasedLossPolicyState<"ALIAS">;
|
|
5
|
+
export declare const aliasDeployParamsSchema: import("zod/v4").ZodObject<{
|
|
6
|
+
type: import("zod/v4").ZodLiteral<"ALIAS">;
|
|
7
|
+
salt: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
8
|
+
}, import("zod/v4/core").$strip>;
|
|
17
9
|
export declare const aliasPlugin: LossPolicyPlugin;
|
package/dist/types/permissionless/curator/plugins/loss-policies/alias/aliasedLossPolicyPlugin.d.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { AccessMode } from "../../../../bindings/types.js";
|
|
2
|
+
import { AbstractLossPolicyState, LossPolicyPlugin } from "../lossPolicyPlugins.js";
|
|
3
|
+
import { Address } from "viem";
|
|
4
|
+
import { z } from "zod/v4";
|
|
5
|
+
/** Loss policies that price tokens through alias price feeds. **/
|
|
6
|
+
export type AliasedLossPolicyType = "ALIAS" | "MIDAS_ALIAS";
|
|
7
|
+
export interface AliasedLossPolicyParams<T extends AliasedLossPolicyType = AliasedLossPolicyType> {
|
|
8
|
+
type: T;
|
|
9
|
+
salt?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface AliasedLossPolicyState<T extends AliasedLossPolicyType = AliasedLossPolicyType> extends AliasedLossPolicyParams<T>, AbstractLossPolicyState {
|
|
12
|
+
aliases: Record<Address, Address>;
|
|
13
|
+
mode: AccessMode;
|
|
14
|
+
}
|
|
15
|
+
/** Whether a loss policy state is an aliased one, whose alias actions apply. **/
|
|
16
|
+
export declare function isAliasedLossPolicy(lossPolicy: {
|
|
17
|
+
type?: string;
|
|
18
|
+
}): lossPolicy is AliasedLossPolicyState;
|
|
19
|
+
/**
|
|
20
|
+
* Deploy params schema and plugin of an aliased loss policy: `type` in the
|
|
21
|
+
* GIP, deployed from the Bytecode Repository as `LOSS_POLICY::<postfix>`
|
|
22
|
+
* with the aliased policy's constructor.
|
|
23
|
+
**/
|
|
24
|
+
export declare function aliasedLossPolicyPlugin<T extends AliasedLossPolicyType>(args: {
|
|
25
|
+
type: T;
|
|
26
|
+
postfix: string;
|
|
27
|
+
name: string;
|
|
28
|
+
description: string;
|
|
29
|
+
/** Gas of deploying it with `MARKET::updateLossPolicy`. **/
|
|
30
|
+
deployGas: number;
|
|
31
|
+
}): {
|
|
32
|
+
deployParamsSchema: z.ZodObject<{
|
|
33
|
+
type: z.ZodLiteral<T>;
|
|
34
|
+
salt: z.ZodOptional<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
plugin: LossPolicyPlugin;
|
|
37
|
+
};
|
package/dist/types/permissionless/curator/plugins/loss-policies/alias/updateAliasLossPolicy.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { MarketState } from "../../../state/market/types.js";
|
|
2
|
-
import {
|
|
3
|
-
/**
|
|
4
|
-
|
|
2
|
+
import { AliasedLossPolicyState } from "./aliasedLossPolicyPlugin.js";
|
|
3
|
+
/**
|
|
4
|
+
* Replaces the aliased loss policy of the market (`ALIAS` or `MIDAS_ALIAS`);
|
|
5
|
+
* throws for any other policy.
|
|
6
|
+
**/
|
|
7
|
+
export declare function updateAliasLossPolicy(state: MarketState, update: (lossPolicy: AliasedLossPolicyState) => AliasedLossPolicyState): MarketState;
|
|
@@ -6,16 +6,19 @@ import { PriceFeedResolution } from "../../actions/utils/priceFeedChecks.js";
|
|
|
6
6
|
import { DeployParams } from "../../types.js";
|
|
7
7
|
import { Plugin } from "../Plugin.js";
|
|
8
8
|
import { AliasLossPolicyParams, AliasLossPolicyState } from "./alias/aliasPlugin.js";
|
|
9
|
+
import { MidasAliasLossPolicyParams, MidasAliasLossPolicyState } from "./midas-alias/midasAliasPlugin.js";
|
|
9
10
|
import { MarketScopedDefinition } from "../../actions/defineMarketAction.js";
|
|
10
11
|
import { Address } from "viem";
|
|
11
12
|
import { z } from "zod/v4";
|
|
12
|
-
export type LossPolicyDeployParams = AliasLossPolicyParams;
|
|
13
|
+
export type LossPolicyDeployParams = AliasLossPolicyParams | MidasAliasLossPolicyParams;
|
|
13
14
|
export type AbstractLossPolicyState = {
|
|
14
15
|
enabled: boolean;
|
|
15
16
|
};
|
|
16
|
-
export type LossPolicyState = AliasLossPolicyState;
|
|
17
|
+
export type LossPolicyState = AliasLossPolicyState | MidasAliasLossPolicyState;
|
|
17
18
|
export type LossPolicyType = LossPolicyDeployParams["type"];
|
|
18
19
|
export interface LossPolicyPlugin extends Plugin<LossPolicyDeployParams, LossPolicyState> {
|
|
20
|
+
/** Gas of deploying the policy with `MARKET::updateLossPolicy`. **/
|
|
21
|
+
deployGas: number;
|
|
19
22
|
getDeployParams(args: {
|
|
20
23
|
pool: Address;
|
|
21
24
|
addressProvider: Address;
|
|
@@ -27,5 +30,8 @@ export declare const DEFAULT_LOSS_POLICY_PARAMS: LossPolicyDeployParams;
|
|
|
27
30
|
export declare const lossPolicyDeployParamsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
28
31
|
type: z.ZodLiteral<"ALIAS">;
|
|
29
32
|
salt: z.ZodOptional<z.ZodString>;
|
|
33
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
34
|
+
type: z.ZodLiteral<"MIDAS_ALIAS">;
|
|
35
|
+
salt: z.ZodOptional<z.ZodString>;
|
|
30
36
|
}, z.core.$strip>], "type">;
|
|
31
37
|
export declare const lossPolicyMarketActionsData: (MarketScopedDefinition<SetAccessModeMarketAction> | MarketScopedDefinition<SetChecksEnabledMarketAction> | MarketScopedDefinition<SetAliasMarketAction, PriceFeedResolution | undefined>)[];
|
package/dist/types/permissionless/curator/plugins/loss-policies/midas-alias/midasAliasPlugin.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LossPolicyPlugin } from "../lossPolicyPlugins.js";
|
|
2
|
+
import { AliasedLossPolicyParams, AliasedLossPolicyState } from "../alias/aliasedLossPolicyPlugin.js";
|
|
3
|
+
export type MidasAliasLossPolicyParams = AliasedLossPolicyParams<"MIDAS_ALIAS">;
|
|
4
|
+
export type MidasAliasLossPolicyState = AliasedLossPolicyState<"MIDAS_ALIAS">;
|
|
5
|
+
export declare const midasAliasDeployParamsSchema: import("zod/v4").ZodObject<{
|
|
6
|
+
type: import("zod/v4").ZodLiteral<"MIDAS_ALIAS">;
|
|
7
|
+
salt: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
8
|
+
}, import("zod/v4/core").$strip>;
|
|
9
|
+
/**
|
|
10
|
+
* The aliased loss policy of markets whose collateral redeems through Midas:
|
|
11
|
+
* the same aliases and alias actions, deployed as `LOSS_POLICY::MIDAS_ALIASED`.
|
|
12
|
+
**/
|
|
13
|
+
export declare const midasAliasPlugin: LossPolicyPlugin;
|
|
@@ -34,14 +34,16 @@ import { UnpausePoolAction, unpausePoolActionData } from "./curator/actions/unpa
|
|
|
34
34
|
import { LinearInterestRateModelParams, LinearInterestRateModelState, linearInterestRateModelDeployParamsSchema, linearPlugin } from "./curator/plugins/irm/linear/linearPlugin.js";
|
|
35
35
|
import { DEFAULT_INTEREST_RATE_MODEL_PARAMS, IRMPlugin, InterestRateModelParams, InterestRateModelState, InterestRateModelType, irmDeployParamsSchema, irmPlugins } from "./curator/plugins/irm/irmPlugins.js";
|
|
36
36
|
import { UpdateInterestRateModelAction, updateInterestRateModelActionData } from "./curator/actions/updateInterestRateModelActionData.js";
|
|
37
|
+
import { AliasedLossPolicyParams, AliasedLossPolicyState, AliasedLossPolicyType, isAliasedLossPolicy } from "./curator/plugins/loss-policies/alias/aliasedLossPolicyPlugin.js";
|
|
38
|
+
import { AliasLossPolicyParams, AliasLossPolicyState, aliasDeployParamsSchema, aliasPlugin } from "./curator/plugins/loss-policies/alias/aliasPlugin.js";
|
|
39
|
+
import { MidasAliasLossPolicyParams, MidasAliasLossPolicyState, midasAliasDeployParamsSchema, midasAliasPlugin } from "./curator/plugins/loss-policies/midas-alias/midasAliasPlugin.js";
|
|
40
|
+
import { AbstractLossPolicyState, DEFAULT_LOSS_POLICY_PARAMS, LossPolicyDeployParams, LossPolicyPlugin, LossPolicyState, LossPolicyType, lossPolicyDeployParamsSchema, lossPolicyMarketActionsData, lossPolicyPlugins } from "./curator/plugins/loss-policies/lossPolicyPlugins.js";
|
|
41
|
+
import { UpdateLossPolicyAction, updateLossPolicyActionData } from "./curator/actions/updateLossPolicyActionData.js";
|
|
37
42
|
import { CreateCreditSuiteAction, CreateCreditSuiteResolution, createCreditSuite, createCreditSuiteActionData, createCreditSuiteSchema } from "./curator/actions/createCreditSuiteActionData.js";
|
|
38
43
|
import { CreateMarketAction, CreateMarketResolution, createMarketActionData } from "./curator/actions/createMarketActionData.js";
|
|
39
44
|
import { DeployContractAction, DeployContractResolution, deployContractActionData, isContractDeploymentQueued, peripheryDomainOf } from "./curator/actions/deployContractActionData.js";
|
|
40
45
|
import { SetPriceFeedAction, setPriceFeedActionData } from "./curator/actions/setPriceFeedActionData.js";
|
|
41
46
|
import { SetReservePriceFeedAction, setReservePriceFeedActionData } from "./curator/actions/setReservePriceFeedActionData.js";
|
|
42
|
-
import { AliasLossPolicyParams, AliasLossPolicyState, aliasDeployParamsSchema, aliasPlugin } from "./curator/plugins/loss-policies/alias/aliasPlugin.js";
|
|
43
|
-
import { AbstractLossPolicyState, DEFAULT_LOSS_POLICY_PARAMS, LossPolicyDeployParams, LossPolicyPlugin, LossPolicyState, LossPolicyType, lossPolicyDeployParamsSchema, lossPolicyMarketActionsData, lossPolicyPlugins } from "./curator/plugins/loss-policies/lossPolicyPlugins.js";
|
|
44
|
-
import { UpdateLossPolicyAction, UpdateLossPolicyResolution, updateLossPolicyActionData } from "./curator/actions/updateLossPolicyActionData.js";
|
|
45
47
|
import { GaugeRateKeeperParams, GaugeRateKeeperState, gaugeDeployParamsSchema, gaugeMarketActionsData, gaugePlugin } from "./curator/plugins/rate-keepers/gauge/gaugePlugin.js";
|
|
46
48
|
import { TumblerRateKeeperParams, TumblerRateKeeperState, tumblerDeployParamsSchema, tumblerDiagnostics, tumblerMarketActionsData, tumblerPlugin } from "./curator/plugins/rate-keepers/tumbler/tumblerPlugin.js";
|
|
47
49
|
import { DEFAULT_RATE_KEEPER_PARAMS, RateKeeperDeployParams, RateKeeperPlugin, RateKeeperState, RateKeeperType, rateKeeperDeployParamsSchema, rateKeeperMarketActionsData, rateKeeperPlugins } from "./curator/plugins/rate-keepers/rateKeeperPlugins.js";
|
|
@@ -129,6 +131,7 @@ import { PendleAdapterDeployParams, PendleAdapterState } from "./curator/plugins
|
|
|
129
131
|
import { SecuritizeRedemptionAdapterDeployParams, SecuritizeRedemptionAdapterState } from "./curator/plugins/adapters/securitize-redemption/securitizeRedemptionAdapterPlugin.js";
|
|
130
132
|
import { StakingRewardsAdapter311DeployParams, StakingRewardsAdapterDeployParams, StakingRewardsAdapterState } from "./curator/plugins/adapters/staking-rewards/stakingRewardsPlugin.js";
|
|
131
133
|
import { TraderJoeAdapterDeployParams, TraderJoeAdapterState } from "./curator/plugins/adapters/traderjoe/traderJoePlugin.js";
|
|
134
|
+
import { TreehouseRouterAdapterDeployParams, TreehouseRouterAdapterState } from "./curator/plugins/adapters/treehouse-router/treehouseRouterAdapterPlugin.js";
|
|
132
135
|
import { UniswapV3AdapterDeployParams, UniswapV3AdapterState } from "./curator/plugins/adapters/uniswap-v3/uniswapV3Plugin.js";
|
|
133
136
|
import { UniswapV4AdapterDeployParams, UniswapV4AdapterState } from "./curator/plugins/adapters/uniswap-v4/uniswapV4Plugin.js";
|
|
134
137
|
import { VelodromeV2AdapterDeployParams, VelodromeV2AdapterState } from "./curator/plugins/adapters/velodrome-v2/velodromeV2Plugin.js";
|
|
@@ -191,4 +194,4 @@ import { getFeedDecimals, getLatestPrices, getPrices } from "./utils/price-updat
|
|
|
191
194
|
import { GetUpdatablePriceFeedsArgs, getUpdatablePriceFeeds } from "./utils/price-update/get-updatable-feeds.js";
|
|
192
195
|
import { normalizeSignature } from "./utils/signature.js";
|
|
193
196
|
import "./utils/index.js";
|
|
194
|
-
export { ABSTRACT_ADAPTER_TYPES, type AbstractAdapterDeployParams, type AbstractAdapterState, type AbstractAdapterTypes, AbstractLossPolicyState, AccessMode, type AccountFactoryType, AccountFactoryTypes, type ActionDefinitionsOf, type ActionDiagnostic, type ActionDiagnosticPath, type ActionDiagnosticSeverity, type ActionEnv, type ActionFootprintArgs, type ActionOf, type ActionScope, type AdapterActionContext, type AdapterActions, AdapterDeployParams, type AdapterDeployParamsBase, AdapterMarketActionDefinition, type AdapterPluginDefinition, AdapterState, type AdapterStateBase, type AdapterStateOf, AdapterType, type AdapterValidation, AddAdminAction, type AddAssetAction, AddAssetParams, type AddCollateralTokenAction, type AddCollateralTokenContext, AddFeedsArgs, type AddPeripheryContractAction, AddressProviderContract, Addresses, type AdminRole, AliasLossPolicyParams, AliasLossPolicyState, type AllowAdapterAction, type AllowAdapterResolution, type AllowTokenAction, AllowTokenParams, type AnvilSimulationOptions, type AnyMarketAction, type ApplyArgs, ArchiveTransport, ArchiveTransportConfig, AssetArgs, AssetCap, AssetScore, AssetScoresArgs, AssetsArgs, AttachChainsArgs, AuditEvent, Auditor, BUNDLE_TARGET, BYTECODE_REPOSITORY, type BalancerV3AdapterDeployParams, type BalancerV3AdapterState, type BaseMarketAction, type BasicParams, Batch, type BatchTxs, BreakingPoint, type Bundle, type BundleApplication, type BundleCustomization, Bytecode, BytecodeRepositoryContract, CCMConstructorParams, CROSS_CHAIN_GOVERNANCE, CROSS_CHAIN_MULTISIG, type CamelotV3AdapterDeployParams, type CamelotV3AdapterState, CancelConfigureAction, type Canon, type CanonTree, ChainScope, ChainSummaryArgs, ChainsNamespace, ChangeNamesArgs, ChangeStalenessPeriodsArgs, type CheckArgs, type CollateralResolution, type CollateralToken, type ComparisonVerdict, ComputeAddressArgs, ConfigurationExecutor, type ConfiguratorActionDefinition, type ConfiguratorActionInput, type ConfiguratorActionType, type ConfiguratorActions, ConfiguratorArgs, ConfiguratorBuilder, type ConfiguratorGipPlan, type ConfiguratorPreview, type ConfiguratorScopedAction, type ConfiguratorScopedDefinition, type ConfiguratorSimulationComparison, type ConfiguratorState, type ConfiguratorStateChanges, type ConfiguratorStateDiff, type ConfiguratorTx, ConstructorParams, ContractReader, type ConvexV1BaseRewardPoolAdapterDeployParams, type ConvexV1BaseRewardPoolAdapterState, type ConvexV1BoosterAdapterDeployParams, type ConvexV1BoosterAdapterState, type CreateCreditSuiteAction, type CreateCreditSuiteResolution, type CreateMarketAction, type CreateMarketParams, type CreateMarketResolution, CreditManagerFees, type CreditManagerTarget, type CreditSuiteRef, CrossChainCall, CrossChainMultisigContract, CuratorSession, type CuratorSessionArgs, type CuratorSessionOptions, type CurveV1Adapter310DeployParams, type CurveV1Adapter311DeployParams, type CurveV1AdapterDeployParams, type CurveV1AdapterState, type CurveV1AdapterTypes, type CurveV1StETHAdapterDeployParams, type CurveV1StETHAdapterState, DEFAULT_DEPLOY_SALT, DEFAULT_INTEREST_RATE_MODEL_PARAMS, DEFAULT_LOSS_POLICY_PARAMS, DEFAULT_RATE_KEEPER_PARAMS, DEFAULT_RWA_UNDERLYING_TYPE, DEFAULT_SCENARIOS, type DaiUsdsAdapterDeployParams, type DaiUsdsAdapterState, DeployArgs, type DeployContractAction, DeployContractArgs, type DeployContractResolution, type DeployCreateSuiteParams, DeployParams, type DeployParamsOf, DeployPriceFeedArgs, Deployment, DeploymentExtended, type DiagnosticMarket, type DiffDiagnostic, type DiffOptions, type DiffSkipped, DistributeAction, EmergencyAdmin, type EncodeArgs, type Erc4626Adapter312DeployParams, type Erc4626AdapterDeployParams, type Erc4626AdapterState, type Erc4626ReferralAdapterDeployParams, type Erc4626ReferralAdapterState, type ExecutorOptions, type ExpectedMarketState, type ExternalAdapterAction, FeedCap, FeedOutcome, FeedPairScore, FeedPairScoreArgs, type Fields, type ForbidAdapterAction, ForbidAdapterParams, ForbidFeedsArgs, type ForbidTokenAction, ForbidTokenParams, type ForkExecutionCall, type ForkExecutionReceipt, FunctionParams, GET_PRICES_CHUNK_SIZE, GET_PRICES_GAS_LIMIT_BY_CHAIN_ID, GaugeRateKeeperParams, GaugeRateKeeperState, GearboxPermissionless, GearboxPermissionlessOptions, GetUpdatablePriceFeedsArgs, type GipActionDiagnostic, GipActionError, type GipAnvilForkOptions, type GipBuilderContext, GipBuilderError, type GipBuilderErrorCode, type GipDiagnostic, type GipExpectedState, type GipForkSession, type GipForkSessionBase, type GipForkSimulationResult, type GipMarketAction, type GipPayloadForkSession, type GipPayloadSimulationRequest, type GipPlan, type GipPlanBase, type GipPlanGas, type GipPreview, GipRegistry, GipScopeError, type GipScopeErrorCode, type GipSimulationComparison, GipSimulationError, type GipSimulationFailure, type GipSimulationOptions, type GipSimulationOutcome, type GipSimulationPlan, type GipSimulationTarget, type GipSourceSnapshot, GipTargetResolutionError, GovernorContract, type GovernorState, GroupImpact, GroupReport, GroupScenarioOutcome, INSTANCE_MANAGER, IRMPlugin, type IncompleteCheck, IncompleteRwaPeripherySetup, InputValueParams, InstanceManagerContract, InstanceOwnerTransactions, InstanceTxs, InstanceTxsArgs, InterestRateModelParams, InterestRateModelState, InterestRateModelType, type InvalidActionParam, type ItemOf, KILL_SWITCH_PROXY, KILL_SWITCH_PROXY_MINOR_VERSION, KillSwitchProxyContract, KillSwitchProxyNotAllowedError, type LeafNode, LinearInterestRateModelParams, LinearInterestRateModelState, ListConfiguratorsArgs, type ListNode, LossPolicyDeployParams, LossPolicyPlugin, LossPolicyState, LossPolicyType, MAINNET_CCM_CONSTRUCTOR_PARAMS, MAINNET_DEPLOYMENT_BLOCK, MAINNET_DEPLOYMENT_CCM_SALT, MAINNET_DEPLOYMENT_IM_SALT, MARKET_CONFIGURATOR_FACTORY, Market, type MarketActionDefinition, type MarketActionInput, type MarketActionOf, type MarketActionType, type MarketActions, type MarketAsset, MarketBuilder, type MarketBundleOptions, MarketCap, MarketConfiguratorContract, MarketConfiguratorFactoryContract, type MarketCreditManagerState, type MarketDiagnostic, type MarketExecution, MarketExecutor, type MarketExecutorOptions, type MarketGipPlan, type MarketIntent, type MarketPreview, type MarketProjection, type MarketReadOptions, type MarketScopedAction, type MarketScopedDefinition, MarketScore, type MarketSimulationComparison, type MarketState, type MarketStateChanges, type MarketTx, type MellowClaimerAdapterDeployParams, type MellowClaimerAdapterState, type MellowErc4626Adapter312DeployParams, type MellowErc4626AdapterDeployParams, type MellowErc4626AdapterState, type MellowWrapperAdapterDeployParams, type MellowWrapperAdapterState, type MergePolicy, MergedGip, type MergedGipPlan, type MergedGipPreview, type MidasGatewayAdapterDeployParams, type MidasGatewayAdapterState, type MidasIssuanceAdapterDeployParams, type MidasIssuanceAdapterState, type MidasRedemptionAdapterDeployParams, type MidasRedemptionAdapterState, NO_LIMIT, ON_DEMAND_RWA_UNDERLYING_TYPE, type ObjectNode, OpenCuratorSessionArgs, PRICE_FEED_STORE, PUBLIC_CREATE2_FACTORY, type ParsedMarketTx, type PauseCreditManagerAction, PauseCreditManagerParams, type PausePoolAction, type PendleAdapterDeployParams, type PendleAdapterState, type PeripheryContractDomain, PeripheryDomain, type PeripheryRegistryEntry, type PeripheryResolution, type PeripheryState, type PeripheryStatus, PermissionlessAnalytics, PermissionlessAsset, PermissionlessAssetDetails, PermissionlessAssetMarket, PermissionlessAssetMarketFeed, PermissionlessAssetQuota, PermissionlessAssetSummary, PermissionlessChain, PermissionlessChainSummary, PermissionlessChainUnreachableError, PermissionlessConfigurator, PermissionlessConfiguratorMarket, PermissionlessConfiguratorRoles, PermissionlessConfiguratorTimelock, PermissionlessConfigurators, PermissionlessCurator, PermissionlessDeploy, PermissionlessIndexedAssetDetails, PermissionlessIndexedAssetSummary, PermissionlessIndexedPriceFeedDetails, PermissionlessIndexedPriceFeedMarket, PermissionlessLifecycle, PermissionlessMarket, PermissionlessMarketSlot, PermissionlessNotAttachedError, PermissionlessOracles, PermissionlessPriceFeedAsset, PermissionlessPriceFeedDetails, PermissionlessPriceFeedMarket, PermissionlessPriceFeedStore, PermissionlessQuotaTotals, PermissionlessTimelockEvent, PermissionlessTimelockEventStatus, type PredictedDeployment, PreparedDeployment, PreparedKillSwitchProxyDeployment, PreparedPriceFeedDeployment, PriceChartArgs, PriceFeed, PriceFeedArgs, PriceFeedChartPoint, PriceFeedConstructorParam, PriceFeedDecimals, PriceFeedNotInStoreError, PriceFeedPair, PriceFeedParamType, PriceFeedParams, PriceFeedPrice, PriceFeedPriceChart, PriceFeedRef, PriceFeedSaltMissingError, PriceFeedSetupParams, PriceFeedStalenessUnknownError, PriceFeedStoreContract, Proposal, QueuedAndExecutedTransaction, RATE_FEED_TYPE, RWA_UNDERLYING_TYPE_PREFIX, RWA_ZAPPER_CONTRACT_TYPE, RWA_ZAPPER_VERSION, type RampLiquidationThresholdAction, type RampLiquidationThresholdContext, type RampStartRequest, RateKeeperDeployParams, RateKeeperPlugin, RateKeeperState, RateKeeperType, type RecordNode, RecoveryMessage, type RegisteredMarketActionDefinition, RemoveAdminAction, type ResolveAdapterValidationArgs, type ResolveArgs, ResolveCache, type ResolvedParams, type Role, RoutingManagerContract, RwaPeripheryLookups, RwaPeripheryRequirement, RwaPeripheryRequirementKind, RwaPeripherySetupPlan, RwaZapperDeployParams, SCORE_MULTIPLIER, SECURITIZE_RWA_FACTORY_TYPE, SafeBatch, SafeMeta, SafeTx, type SchemaNode, ScoredFeed, type SecuritizeRedemptionAdapterDeployParams, type SecuritizeRedemptionAdapterState, SecuritizeRwaSetup, type SetCreditManagerDebtLimitAction, SetDefaultSplitAction, type SetDefaultSplitProposal, SetEmergencyAdminAction, type SetExpirationDateAction, SetExpirationDateParams, type SetFeesAction, SetFeesParams, type SetMaxDebtPerBlockMultiplierAction, type SetPriceFeedAction, SetPriceFeedParams, type SetReservePriceFeedAction, SetReservePriceFeedParams, type SetTokenLimitAction, type SetTokenLimitContext, type SetTokenQuotaIncreaseFeeAction, SetTokenQuotaIncreaseFeeParams, type SetTotalDebtLimitAction, type Side, Signature, type SignedTimelockTxs, type SignedTimelockTxsWithHashes, SlotOutcome, type Split, type StakingRewardsAdapter311DeployParams, type StakingRewardsAdapterDeployParams, type StakingRewardsAdapterState, type StateChange, type StateDiff, type StatePath, type StateProvenance, StressReport, StressScenario, StressSource, StressSourceKind, StressTestArgs, type SuppressRule, TIMELOCK_EVENTS_CHUNK_SIZE, TOKEN_COMPRESSOR, TimeLockContract, TimelockEventsArgs, TimelockTransaction, TimelockTxParams, TimelockTxs, type TimelockTxsIpfs, TokenCompressorContract, type TraderJoeAdapterDeployParams, type TraderJoeAdapterState, TreasurySplitterContract, type TreasurySplitterState, type TreasuryState, type TreasuryTokenBalance, TreeNode, TumblerRateKeeperParams, TumblerRateKeeperState, type TwoAdminProposal, UNBOUNDED_DOWN, UNBOUNDED_UP, type UnionNode, type UniswapV2AdapterDeployParams, type UniswapV2AdapterState, type UniswapV3AdapterDeployParams, type UniswapV3AdapterState, type UniswapV4AdapterDeployParams, type UniswapV4AdapterState, type UnpauseCreditManagerAction, UnpauseCreditManagerParams, type UnpausePoolAction, type UpdateInterestRateModelAction, type UpdateLossPolicyAction, type UpdateLossPolicyResolution, type UpdateRateKeeperAction, type UpdateRateKeeperResolution, type UpgradeCreditFacadeAction, type ValidMarketAction, type ValidateAdapterParamsArgs, ValueParams, type VelodromeV2AdapterDeployParams, type VelodromeV2AdapterState, WithdrawalCompressorContract, actionEnv, actionError, actionWarning, adapterPluginKit, adapterPlugins, addAdminActionData, addAssetActionData, addCollateralTokenActionData, addConfiguratorAction, addConfiguratorActions, addMarketAction, addMarketActions, addPeripheryContractActionData, adminRoleLabelMap, adminRoleSchema, aliasDeployParamsSchema, aliasPlugin, allowAdapterActionData, allowTokenActionData, applyBundle, applyChanges, assertNotBlocked, batchMarketTransactions, bindBundleTarget, buildMarketStateSchema, builtinAdapterPlugins, bundleActions, bundleSuiteId, calculateChecksum, cancelConfigureActionData, canonicalize, checkCreate2Deployment, checkCreate2DeploymentAddress, chunkedLogsTransport, classifySources, compareConfiguratorStates, compareGipForkState, completeRwaPeripheryActions, contractReaderFromClient, convertPercent, convertQueueBatchToExecuteTx, convertRawTxToSafeMultisigTx, convertTokenAmount, copyCmActions, copyCmActionsForMarket, createAction, createCallData, createCreate2DeployRawTx, createCreditSuite, createCreditSuiteActionData, createCreditSuiteSchema, createExecuteBatchRawTx, createMarketActionData, creditManagerFeesSchema, creditManagerTargetSchema, creditSuiteId, creditSuiteRef, creditSuiteRefSchema, customizeBundle, deepJsonParse, defineConfiguratorAction, defineMarketAction, deployContractActionData, deployUsingPublicCreate2, deriveEffectiveStalenessPeriod, deserializeGipPlan, diffMarketStates, diffStates, distributeActionData, encodeFunctionParams, factorOf, finalPrice, findIncompleteRwaPeripherySetups, forbidAdapterActionData, forbidTokenActionData, formatBytecodeSize, formatBytecodeVersion, formatMarketStateDiff, formatStateDiff, gaugeDeployParamsSchema, gaugeMarketActionsData, gaugePlugin, getAbstractAdapterPlugin, getActionScope, getBlockNumberByTimestamp, getConfiguratorState, getCreate2AddressPublicFactory, getCreate2DeploymentAddress, getFeedDecimals, getGipDiagnostics, getGovernorContract, getInitialMarketState, getLatestPrices, getMarketState, getPriceUpdateTx, getPrices, getRawTxHash, getRwaZapperDeployAction, getRwaZapperDeployParams, getSafeBatch, getSafeBatches, getTimelockTransactions, getTimelockTransactionsForExecution, getUpdatablePriceFeeds, groupOverride, handleSalt, hasErrors, insertRwaZapperDeployment, irmDeployParamsSchema, irmPlugins, isContractDeploymentQueued, isCreditSuiteRef, isPeripheryContractAdded, isRwaZapperRegistration, isSameTarget, isZeroFeed, killSwitchProxySalt, linearInterestRateModelDeployParamsSchema, linearPlugin, locateDiagnostics, lossPolicyDeployParamsSchema, lossPolicyMarketActionsData, lossPolicyPlugins, marketIdentity, marketStateSchema, normalizeBundleTarget, normalizeSignature, numberToDecimalString, parseConfiguratorScopedAction, parseContractType, parseMarketScopedAction, pauseCreditManagerActionData, pausePoolActionData, peripheryContractDomains, peripheryDomainOf, peripheryStatus, perturb, planRwaPeripheryActions, previewCreditSuiteAddress, priceFeedSalt, priceFeedSetupParams, rampLiquidationThresholdActionData, rateKeeperDeployParamsSchema, rateKeeperMarketActionsData, rateKeeperPlugins, rateStub, readContractType, readFeedTrees, readForest, readRateTargets, readUnder, reconcileRwaPeripheryActions, removeAdapterActions, removeAdminActionData, replaceCmActions, resolveSecuritizeRwaSetup, retargetCreditManager, revertTo, roundDataStub, runAssetScores, runFeedPairScore, runStressTest, sameTree, scoreGroup, scoreOfFactor, selectMarketDegenNfts, serializeGipPlan, setCreditManagerDebtLimitActionData, setDefaultSplitActionData, setEmergencyAdminActionData, setExpirationDateActionData, setFeesActionData, setMaxDebtPerBlockMultiplierActionData, setPriceFeedActionData, setReservePriceFeedActionData, setTokenLimitActionData, setTokenQuotaIncreaseFeeActionData, setTotalDebtLimitActionData, shortenHash, significantTrunc, simulateGipOnFork, simulateGipPayloadOnFork, simulateOnAnvil, slotHarm, sourcesByFeed, stateSchema, targetKey, targetOf, tumblerDeployParamsSchema, tumblerDiagnostics, tumblerMarketActionsData, tumblerPlugin, unpauseCreditManagerActionData, unpausePoolActionData, updateInterestRateModelActionData, updateLossPolicyActionData, updateRateKeeperActionData, upgradeCreditFacadeActionData, usesBundleTarget, validateForkExecutionCalls, verdictOf, worstOf };
|
|
197
|
+
export { ABSTRACT_ADAPTER_TYPES, type AbstractAdapterDeployParams, type AbstractAdapterState, type AbstractAdapterTypes, AbstractLossPolicyState, AccessMode, type AccountFactoryType, AccountFactoryTypes, type ActionDefinitionsOf, type ActionDiagnostic, type ActionDiagnosticPath, type ActionDiagnosticSeverity, type ActionEnv, type ActionFootprintArgs, type ActionOf, type ActionScope, type AdapterActionContext, type AdapterActions, AdapterDeployParams, type AdapterDeployParamsBase, AdapterMarketActionDefinition, type AdapterPluginDefinition, AdapterState, type AdapterStateBase, type AdapterStateOf, AdapterType, type AdapterValidation, AddAdminAction, type AddAssetAction, AddAssetParams, type AddCollateralTokenAction, type AddCollateralTokenContext, AddFeedsArgs, type AddPeripheryContractAction, AddressProviderContract, Addresses, type AdminRole, AliasLossPolicyParams, AliasLossPolicyState, type AliasedLossPolicyParams, type AliasedLossPolicyState, type AliasedLossPolicyType, type AllowAdapterAction, type AllowAdapterResolution, type AllowTokenAction, AllowTokenParams, type AnvilSimulationOptions, type AnyMarketAction, type ApplyArgs, ArchiveTransport, ArchiveTransportConfig, AssetArgs, AssetCap, AssetScore, AssetScoresArgs, AssetsArgs, AttachChainsArgs, AuditEvent, Auditor, BUNDLE_TARGET, BYTECODE_REPOSITORY, type BalancerV3AdapterDeployParams, type BalancerV3AdapterState, type BaseMarketAction, type BasicParams, Batch, type BatchTxs, BreakingPoint, type Bundle, type BundleApplication, type BundleCustomization, Bytecode, BytecodeRepositoryContract, CCMConstructorParams, CROSS_CHAIN_GOVERNANCE, CROSS_CHAIN_MULTISIG, type CamelotV3AdapterDeployParams, type CamelotV3AdapterState, CancelConfigureAction, type Canon, type CanonTree, ChainScope, ChainSummaryArgs, ChainsNamespace, ChangeNamesArgs, ChangeStalenessPeriodsArgs, type CheckArgs, type CollateralResolution, type CollateralToken, type ComparisonVerdict, ComputeAddressArgs, ConfigurationExecutor, type ConfiguratorActionDefinition, type ConfiguratorActionInput, type ConfiguratorActionType, type ConfiguratorActions, ConfiguratorArgs, ConfiguratorBuilder, type ConfiguratorGipPlan, type ConfiguratorPreview, type ConfiguratorScopedAction, type ConfiguratorScopedDefinition, type ConfiguratorSimulationComparison, type ConfiguratorState, type ConfiguratorStateChanges, type ConfiguratorStateDiff, type ConfiguratorTx, ConstructorParams, ContractReader, type ConvexV1BaseRewardPoolAdapterDeployParams, type ConvexV1BaseRewardPoolAdapterState, type ConvexV1BoosterAdapterDeployParams, type ConvexV1BoosterAdapterState, type CreateCreditSuiteAction, type CreateCreditSuiteResolution, type CreateMarketAction, type CreateMarketParams, type CreateMarketResolution, CreditManagerFees, type CreditManagerTarget, type CreditSuiteRef, CrossChainCall, CrossChainMultisigContract, CuratorSession, type CuratorSessionArgs, type CuratorSessionOptions, type CurveV1Adapter310DeployParams, type CurveV1Adapter311DeployParams, type CurveV1AdapterDeployParams, type CurveV1AdapterState, type CurveV1AdapterTypes, type CurveV1StETHAdapterDeployParams, type CurveV1StETHAdapterState, DEFAULT_DEPLOY_SALT, DEFAULT_INTEREST_RATE_MODEL_PARAMS, DEFAULT_LOSS_POLICY_PARAMS, DEFAULT_RATE_KEEPER_PARAMS, DEFAULT_RWA_UNDERLYING_TYPE, DEFAULT_SCENARIOS, type DaiUsdsAdapterDeployParams, type DaiUsdsAdapterState, DeployArgs, type DeployContractAction, DeployContractArgs, type DeployContractResolution, type DeployCreateSuiteParams, DeployParams, type DeployParamsOf, DeployPriceFeedArgs, Deployment, DeploymentExtended, type DiagnosticMarket, type DiffDiagnostic, type DiffOptions, type DiffSkipped, DistributeAction, EmergencyAdmin, type EncodeArgs, type Erc4626Adapter312DeployParams, type Erc4626AdapterDeployParams, type Erc4626AdapterState, type Erc4626ReferralAdapterDeployParams, type Erc4626ReferralAdapterState, type ExecutorOptions, type ExpectedMarketState, type ExternalAdapterAction, FeedCap, FeedOutcome, FeedPairScore, FeedPairScoreArgs, type Fields, type ForbidAdapterAction, ForbidAdapterParams, ForbidFeedsArgs, type ForbidTokenAction, ForbidTokenParams, type ForkExecutionCall, type ForkExecutionReceipt, FunctionParams, GET_PRICES_CHUNK_SIZE, GET_PRICES_GAS_LIMIT_BY_CHAIN_ID, GaugeRateKeeperParams, GaugeRateKeeperState, GearboxPermissionless, GearboxPermissionlessOptions, GetUpdatablePriceFeedsArgs, type GipActionDiagnostic, GipActionError, type GipAnvilForkOptions, type GipBuilderContext, GipBuilderError, type GipBuilderErrorCode, type GipDiagnostic, type GipExpectedState, type GipForkSession, type GipForkSessionBase, type GipForkSimulationResult, type GipMarketAction, type GipPayloadForkSession, type GipPayloadSimulationRequest, type GipPlan, type GipPlanBase, type GipPlanGas, type GipPreview, GipRegistry, GipScopeError, type GipScopeErrorCode, type GipSimulationComparison, GipSimulationError, type GipSimulationFailure, type GipSimulationOptions, type GipSimulationOutcome, type GipSimulationPlan, type GipSimulationTarget, type GipSourceSnapshot, GipTargetResolutionError, GovernorContract, type GovernorState, GroupImpact, GroupReport, GroupScenarioOutcome, INSTANCE_MANAGER, IRMPlugin, type IncompleteCheck, IncompleteRwaPeripherySetup, InputValueParams, InstanceManagerContract, InstanceOwnerTransactions, InstanceTxs, InstanceTxsArgs, InterestRateModelParams, InterestRateModelState, InterestRateModelType, type InvalidActionParam, type ItemOf, KILL_SWITCH_PROXY, KILL_SWITCH_PROXY_MINOR_VERSION, KillSwitchProxyContract, KillSwitchProxyNotAllowedError, type LeafNode, LinearInterestRateModelParams, LinearInterestRateModelState, ListConfiguratorsArgs, type ListNode, LossPolicyDeployParams, LossPolicyPlugin, LossPolicyState, LossPolicyType, MAINNET_CCM_CONSTRUCTOR_PARAMS, MAINNET_DEPLOYMENT_BLOCK, MAINNET_DEPLOYMENT_CCM_SALT, MAINNET_DEPLOYMENT_IM_SALT, MARKET_CONFIGURATOR_FACTORY, Market, type MarketActionDefinition, type MarketActionInput, type MarketActionOf, type MarketActionType, type MarketActions, type MarketAsset, MarketBuilder, type MarketBundleOptions, MarketCap, MarketConfiguratorContract, MarketConfiguratorFactoryContract, type MarketCreditManagerState, type MarketDiagnostic, type MarketExecution, MarketExecutor, type MarketExecutorOptions, type MarketGipPlan, type MarketIntent, type MarketPreview, type MarketProjection, type MarketReadOptions, type MarketScopedAction, type MarketScopedDefinition, MarketScore, type MarketSimulationComparison, type MarketState, type MarketStateChanges, type MarketTx, type MellowClaimerAdapterDeployParams, type MellowClaimerAdapterState, type MellowErc4626Adapter312DeployParams, type MellowErc4626AdapterDeployParams, type MellowErc4626AdapterState, type MellowWrapperAdapterDeployParams, type MellowWrapperAdapterState, type MergePolicy, MergedGip, type MergedGipPlan, type MergedGipPreview, MidasAliasLossPolicyParams, MidasAliasLossPolicyState, type MidasGatewayAdapterDeployParams, type MidasGatewayAdapterState, type MidasIssuanceAdapterDeployParams, type MidasIssuanceAdapterState, type MidasRedemptionAdapterDeployParams, type MidasRedemptionAdapterState, NO_LIMIT, ON_DEMAND_RWA_UNDERLYING_TYPE, type ObjectNode, OpenCuratorSessionArgs, PRICE_FEED_STORE, PUBLIC_CREATE2_FACTORY, type ParsedMarketTx, type PauseCreditManagerAction, PauseCreditManagerParams, type PausePoolAction, type PendleAdapterDeployParams, type PendleAdapterState, type PeripheryContractDomain, PeripheryDomain, type PeripheryRegistryEntry, type PeripheryResolution, type PeripheryState, type PeripheryStatus, PermissionlessAnalytics, PermissionlessAsset, PermissionlessAssetDetails, PermissionlessAssetMarket, PermissionlessAssetMarketFeed, PermissionlessAssetQuota, PermissionlessAssetSummary, PermissionlessChain, PermissionlessChainSummary, PermissionlessChainUnreachableError, PermissionlessConfigurator, PermissionlessConfiguratorMarket, PermissionlessConfiguratorRoles, PermissionlessConfiguratorTimelock, PermissionlessConfigurators, PermissionlessCurator, PermissionlessDeploy, PermissionlessIndexedAssetDetails, PermissionlessIndexedAssetSummary, PermissionlessIndexedPriceFeedDetails, PermissionlessIndexedPriceFeedMarket, PermissionlessLifecycle, PermissionlessMarket, PermissionlessMarketSlot, PermissionlessNotAttachedError, PermissionlessOracles, PermissionlessPriceFeedAsset, PermissionlessPriceFeedDetails, PermissionlessPriceFeedMarket, PermissionlessPriceFeedStore, PermissionlessQuotaTotals, PermissionlessTimelockEvent, PermissionlessTimelockEventStatus, type PredictedDeployment, PreparedDeployment, PreparedKillSwitchProxyDeployment, PreparedPriceFeedDeployment, PriceChartArgs, PriceFeed, PriceFeedArgs, PriceFeedChartPoint, PriceFeedConstructorParam, PriceFeedDecimals, PriceFeedNotInStoreError, PriceFeedPair, PriceFeedParamType, PriceFeedParams, PriceFeedPrice, PriceFeedPriceChart, PriceFeedRef, PriceFeedSaltMissingError, PriceFeedSetupParams, PriceFeedStalenessUnknownError, PriceFeedStoreContract, Proposal, QueuedAndExecutedTransaction, RATE_FEED_TYPE, RWA_UNDERLYING_TYPE_PREFIX, RWA_ZAPPER_CONTRACT_TYPE, RWA_ZAPPER_VERSION, type RampLiquidationThresholdAction, type RampLiquidationThresholdContext, type RampStartRequest, RateKeeperDeployParams, RateKeeperPlugin, RateKeeperState, RateKeeperType, type RecordNode, RecoveryMessage, type RegisteredMarketActionDefinition, RemoveAdminAction, type ResolveAdapterValidationArgs, type ResolveArgs, ResolveCache, type ResolvedParams, type Role, RoutingManagerContract, RwaPeripheryLookups, RwaPeripheryRequirement, RwaPeripheryRequirementKind, RwaPeripherySetupPlan, RwaZapperDeployParams, SCORE_MULTIPLIER, SECURITIZE_RWA_FACTORY_TYPE, SafeBatch, SafeMeta, SafeTx, type SchemaNode, ScoredFeed, type SecuritizeRedemptionAdapterDeployParams, type SecuritizeRedemptionAdapterState, SecuritizeRwaSetup, type SetCreditManagerDebtLimitAction, SetDefaultSplitAction, type SetDefaultSplitProposal, SetEmergencyAdminAction, type SetExpirationDateAction, SetExpirationDateParams, type SetFeesAction, SetFeesParams, type SetMaxDebtPerBlockMultiplierAction, type SetPriceFeedAction, SetPriceFeedParams, type SetReservePriceFeedAction, SetReservePriceFeedParams, type SetTokenLimitAction, type SetTokenLimitContext, type SetTokenQuotaIncreaseFeeAction, SetTokenQuotaIncreaseFeeParams, type SetTotalDebtLimitAction, type Side, Signature, type SignedTimelockTxs, type SignedTimelockTxsWithHashes, SlotOutcome, type Split, type StakingRewardsAdapter311DeployParams, type StakingRewardsAdapterDeployParams, type StakingRewardsAdapterState, type StateChange, type StateDiff, type StatePath, type StateProvenance, StressReport, StressScenario, StressSource, StressSourceKind, StressTestArgs, type SuppressRule, TIMELOCK_EVENTS_CHUNK_SIZE, TOKEN_COMPRESSOR, TimeLockContract, TimelockEventsArgs, TimelockTransaction, TimelockTxParams, TimelockTxs, type TimelockTxsIpfs, TokenCompressorContract, type TraderJoeAdapterDeployParams, type TraderJoeAdapterState, TreasurySplitterContract, type TreasurySplitterState, type TreasuryState, type TreasuryTokenBalance, TreeNode, type TreehouseRouterAdapterDeployParams, type TreehouseRouterAdapterState, TumblerRateKeeperParams, TumblerRateKeeperState, type TwoAdminProposal, UNBOUNDED_DOWN, UNBOUNDED_UP, type UnionNode, type UniswapV2AdapterDeployParams, type UniswapV2AdapterState, type UniswapV3AdapterDeployParams, type UniswapV3AdapterState, type UniswapV4AdapterDeployParams, type UniswapV4AdapterState, type UnpauseCreditManagerAction, UnpauseCreditManagerParams, type UnpausePoolAction, type UpdateInterestRateModelAction, type UpdateLossPolicyAction, type UpdateRateKeeperAction, type UpdateRateKeeperResolution, type UpgradeCreditFacadeAction, type ValidMarketAction, type ValidateAdapterParamsArgs, ValueParams, type VelodromeV2AdapterDeployParams, type VelodromeV2AdapterState, WithdrawalCompressorContract, actionEnv, actionError, actionWarning, adapterPluginKit, adapterPlugins, addAdminActionData, addAssetActionData, addCollateralTokenActionData, addConfiguratorAction, addConfiguratorActions, addMarketAction, addMarketActions, addPeripheryContractActionData, adminRoleLabelMap, adminRoleSchema, aliasDeployParamsSchema, aliasPlugin, allowAdapterActionData, allowTokenActionData, applyBundle, applyChanges, assertNotBlocked, batchMarketTransactions, bindBundleTarget, buildMarketStateSchema, builtinAdapterPlugins, bundleActions, bundleSuiteId, calculateChecksum, cancelConfigureActionData, canonicalize, checkCreate2Deployment, checkCreate2DeploymentAddress, chunkedLogsTransport, classifySources, compareConfiguratorStates, compareGipForkState, completeRwaPeripheryActions, contractReaderFromClient, convertPercent, convertQueueBatchToExecuteTx, convertRawTxToSafeMultisigTx, convertTokenAmount, copyCmActions, copyCmActionsForMarket, createAction, createCallData, createCreate2DeployRawTx, createCreditSuite, createCreditSuiteActionData, createCreditSuiteSchema, createExecuteBatchRawTx, createMarketActionData, creditManagerFeesSchema, creditManagerTargetSchema, creditSuiteId, creditSuiteRef, creditSuiteRefSchema, customizeBundle, deepJsonParse, defineConfiguratorAction, defineMarketAction, deployContractActionData, deployUsingPublicCreate2, deriveEffectiveStalenessPeriod, deserializeGipPlan, diffMarketStates, diffStates, distributeActionData, encodeFunctionParams, factorOf, finalPrice, findIncompleteRwaPeripherySetups, forbidAdapterActionData, forbidTokenActionData, formatBytecodeSize, formatBytecodeVersion, formatMarketStateDiff, formatStateDiff, gaugeDeployParamsSchema, gaugeMarketActionsData, gaugePlugin, getAbstractAdapterPlugin, getActionScope, getBlockNumberByTimestamp, getConfiguratorState, getCreate2AddressPublicFactory, getCreate2DeploymentAddress, getFeedDecimals, getGipDiagnostics, getGovernorContract, getInitialMarketState, getLatestPrices, getMarketState, getPriceUpdateTx, getPrices, getRawTxHash, getRwaZapperDeployAction, getRwaZapperDeployParams, getSafeBatch, getSafeBatches, getTimelockTransactions, getTimelockTransactionsForExecution, getUpdatablePriceFeeds, groupOverride, handleSalt, hasErrors, insertRwaZapperDeployment, irmDeployParamsSchema, irmPlugins, isAliasedLossPolicy, isContractDeploymentQueued, isCreditSuiteRef, isPeripheryContractAdded, isRwaZapperRegistration, isSameTarget, isZeroFeed, killSwitchProxySalt, linearInterestRateModelDeployParamsSchema, linearPlugin, locateDiagnostics, lossPolicyDeployParamsSchema, lossPolicyMarketActionsData, lossPolicyPlugins, marketIdentity, marketStateSchema, midasAliasDeployParamsSchema, midasAliasPlugin, normalizeBundleTarget, normalizeSignature, numberToDecimalString, parseConfiguratorScopedAction, parseContractType, parseMarketScopedAction, pauseCreditManagerActionData, pausePoolActionData, peripheryContractDomains, peripheryDomainOf, peripheryStatus, perturb, planRwaPeripheryActions, previewCreditSuiteAddress, priceFeedSalt, priceFeedSetupParams, rampLiquidationThresholdActionData, rateKeeperDeployParamsSchema, rateKeeperMarketActionsData, rateKeeperPlugins, rateStub, readContractType, readFeedTrees, readForest, readRateTargets, readUnder, reconcileRwaPeripheryActions, removeAdapterActions, removeAdminActionData, replaceCmActions, resolveSecuritizeRwaSetup, retargetCreditManager, revertTo, roundDataStub, runAssetScores, runFeedPairScore, runStressTest, sameTree, scoreGroup, scoreOfFactor, selectMarketDegenNfts, serializeGipPlan, setCreditManagerDebtLimitActionData, setDefaultSplitActionData, setEmergencyAdminActionData, setExpirationDateActionData, setFeesActionData, setMaxDebtPerBlockMultiplierActionData, setPriceFeedActionData, setReservePriceFeedActionData, setTokenLimitActionData, setTokenQuotaIncreaseFeeActionData, setTotalDebtLimitActionData, shortenHash, significantTrunc, simulateGipOnFork, simulateGipPayloadOnFork, simulateOnAnvil, slotHarm, sourcesByFeed, stateSchema, targetKey, targetOf, tumblerDeployParamsSchema, tumblerDiagnostics, tumblerMarketActionsData, tumblerPlugin, unpauseCreditManagerActionData, unpausePoolActionData, updateInterestRateModelActionData, updateLossPolicyActionData, updateRateKeeperActionData, upgradeCreditFacadeActionData, usesBundleTarget, validateForkExecutionCalls, verdictOf, worstOf };
|