@gearbox-protocol/sdk 17.0.0-next.4 → 17.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/dev/abi.js +14 -15
- package/dist/cjs/dev/claimFromFaucet.js +4 -8
- package/dist/cjs/dev/createAnvilClient.js +35 -17
- package/dist/cjs/dev/index.js +7 -2
- package/dist/cjs/dev/kycUtils.js +66 -58
- package/dist/cjs/dev/midasUtils.js +113 -16
- package/dist/cjs/dev/securitizeUtils.js +82 -42
- package/dist/cjs/dev/withdrawalUtils.js +3 -6
- package/dist/cjs/model/errors/index.js +2 -0
- package/dist/cjs/model/errors/operation-errors.js +19 -1
- package/dist/cjs/model/index.js +4 -2
- package/dist/cjs/model/rwa.js +4 -4
- package/dist/cjs/model/rwa.schema.js +4 -4
- package/dist/cjs/offchain/opportunities/OffchainOpportunities.js +1 -1
- package/dist/cjs/onchain/OnchainSDK.js +3 -3
- package/dist/cjs/onchain/accounts/CreditAccountsServiceV310.js +2 -17
- package/dist/cjs/onchain/accounts/intents/borrow.js +140 -0
- package/dist/cjs/onchain/accounts/intents/collateral-valuation.js +41 -0
- package/dist/cjs/onchain/accounts/intents/guards.js +15 -3
- package/dist/cjs/onchain/accounts/intents/index.js +107 -20
- package/dist/cjs/onchain/accounts/intents/leverage-band.js +2 -12
- package/dist/cjs/onchain/accounts/intents/maxBorrow.js +89 -0
- package/dist/cjs/onchain/accounts/intents/maxWithdrawCollateral.js +15 -41
- package/dist/cjs/onchain/accounts/intents/open-strategy.js +8 -46
- package/dist/cjs/onchain/accounts/intents/operations.js +0 -1
- package/dist/cjs/onchain/accounts/intents/realize.js +61 -4
- package/dist/cjs/onchain/accounts/intents/tail.js +1 -1
- package/dist/cjs/onchain/accounts/intents/testing/sdk-mock.js +1 -0
- package/dist/cjs/onchain/accounts/intents/utils/common.js +19 -0
- package/dist/cjs/onchain/accounts/intents/utils/credit-account-slice.js +21 -0
- package/dist/cjs/onchain/accounts/intents/utils/index.js +2 -0
- package/dist/cjs/onchain/accounts/intents/utils/price-impact.js +12 -9
- package/dist/cjs/onchain/accounts/intents/utils/router-path.js +4 -5
- package/dist/cjs/onchain/accounts/intents/withdraw-limits.js +97 -0
- package/dist/cjs/onchain/accounts/liquidations/LiquidationsService.js +1 -1
- package/dist/cjs/onchain/constants/address-provider.js +0 -2
- package/dist/cjs/onchain/constants/index.js +0 -1
- package/dist/cjs/onchain/core/createAddressProvider.js +2 -5
- package/dist/cjs/onchain/index.js +60 -43
- package/dist/cjs/onchain/market/adapters/abi/conctructorAbi.js +2 -2
- package/dist/cjs/onchain/market/adapters/contracts/AbstractAdapter.js +6 -0
- package/dist/cjs/onchain/market/adapters/contracts/MidasGatewayAdapterContract.js +49 -5
- package/dist/cjs/onchain/market/credit/CreditSuite.js +26 -9
- package/dist/cjs/onchain/market/index.js +50 -38
- package/dist/cjs/onchain/market/oracle/PriceOracleBaseContract.js +3 -3
- package/dist/cjs/onchain/market/pricefeeds/AbstractPriceFeed.js +0 -5
- package/dist/cjs/onchain/market/pricefeeds/PriceFeedRegistry.js +127 -0
- package/dist/cjs/onchain/market/pricefeeds/{BalancerStablePriceFeed.js → feeds/BalancerStablePriceFeed.js} +4 -4
- package/dist/cjs/onchain/market/pricefeeds/{BalancerWeightedPriceFeed.js → feeds/BalancerWeightedPriceFeed.js} +4 -4
- package/dist/cjs/onchain/market/pricefeeds/{BoundedPriceFeed.js → feeds/BoundedPriceFeed.js} +4 -4
- package/dist/cjs/onchain/market/pricefeeds/{CompositePriceFeed.js → feeds/CompositePriceFeed.js} +4 -4
- package/dist/cjs/onchain/market/pricefeeds/{ConstantPriceFeed.js → feeds/ConstantPriceFeed.js} +3 -3
- package/dist/cjs/onchain/market/pricefeeds/{CurveCryptoPriceFeed.js → feeds/CurveCryptoPriceFeed.js} +4 -4
- package/dist/cjs/onchain/market/pricefeeds/{CurveStablePriceFeed.js → feeds/CurveStablePriceFeed.js} +4 -4
- package/dist/cjs/onchain/market/pricefeeds/{CurveUSDPriceFeed.js → feeds/CurveUSDPriceFeed.js} +4 -4
- package/dist/cjs/onchain/market/pricefeeds/{Erc4626PriceFeed.js → feeds/Erc4626PriceFeed.js} +4 -4
- package/dist/cjs/onchain/market/pricefeeds/{ExternalPriceFeed.js → feeds/ExternalPriceFeed.js} +4 -4
- package/dist/cjs/onchain/market/pricefeeds/{MellowLRTPriceFeed.js → feeds/MellowLRTPriceFeed.js} +4 -4
- package/dist/cjs/onchain/market/pricefeeds/{PendleTWAPPTPriceFeed.js → feeds/PendleTWAPPTPriceFeed.js} +4 -4
- package/dist/cjs/onchain/market/pricefeeds/{PythPriceFeed.js → feeds/PythPriceFeed.js} +3 -3
- package/dist/cjs/onchain/market/pricefeeds/{RedstonePriceFeed.js → feeds/RedstonePriceFeed.js} +6 -6
- package/dist/cjs/onchain/market/pricefeeds/{WstETHPriceFeed.js → feeds/WstETHPriceFeed.js} +4 -4
- package/dist/cjs/onchain/market/pricefeeds/{YearnPriceFeed.js → feeds/YearnPriceFeed.js} +4 -4
- package/dist/cjs/onchain/market/pricefeeds/{ZeroPriceFeed.js → feeds/ZeroPriceFeed.js} +4 -4
- package/dist/cjs/onchain/market/pricefeeds/feeds/index.js +35 -0
- package/dist/cjs/onchain/market/pricefeeds/index.js +51 -39
- package/dist/cjs/onchain/market/pricefeeds/updates/UpdatablePriceFeedRegistry.js +189 -0
- package/dist/cjs/onchain/market/pricefeeds/{getRawPriceUpdates.js → updates/getRawPriceUpdates.js} +2 -2
- package/dist/cjs/onchain/market/pricefeeds/updates/index.js +8 -0
- package/dist/cjs/onchain/market/pricefeeds/{isUpdatablePriceFeed.js → updates/isUpdatablePriceFeed.js} +1 -1
- package/dist/cjs/onchain/market/pricefeeds/updates/updatableDependencies.js +14 -0
- package/dist/cjs/onchain/market/rwa/RWARegistry.js +4 -7
- package/dist/cjs/onchain/market/rwa/index.js +1 -0
- package/dist/cjs/onchain/market/rwa/midas/MidasDegenNFT.js +45 -5
- package/dist/cjs/onchain/market/rwa/securitize/SecuritizeDegenNFT.js +56 -12
- package/dist/cjs/onchain/market/rwa/securitize/SecuritizeRWAFactory.js +0 -37
- package/dist/cjs/onchain/opportunities/MultichainOpportunitiesService.js +8 -2
- package/dist/cjs/onchain/opportunities/OpportunitiesService.js +16 -4
- package/dist/cjs/onchain/positions/calcHealthFactor.js +3 -3
- package/dist/cjs/onchain/preview/index.js +2 -0
- package/dist/cjs/onchain/preview/parse/parseRWAFactoryOperationCalldata.js +2 -2
- package/dist/cjs/onchain/preview/preview/index.js +2 -0
- package/dist/cjs/onchain/preview/preview/midasGreenlistsAccount.js +17 -0
- package/dist/cjs/onchain/preview/preview/previewOpenStrategyPosition.js +13 -16
- package/dist/cjs/onchain/preview/preview/previewOperation.js +19 -11
- package/dist/cjs/onchain/preview/preview/replayMulticall.js +4 -3
- package/dist/cjs/onchain/validation/bundles/checkCollateralFunding.js +3 -3
- package/dist/cjs/onchain/validation/bundles/checkCreditOperation.js +11 -9
- package/dist/cjs/onchain/validation/bundles/{checkDraw.js → checkIncreaseDebt.js} +10 -10
- package/dist/cjs/onchain/validation/bundles/{checkQuotasAsked.js → checkIncreaseQuota.js} +3 -3
- package/dist/cjs/onchain/validation/bundles/checkMidasAccountGreenlist.js +44 -0
- package/dist/cjs/onchain/validation/bundles/checkRWAOpenRequirements.js +9 -9
- package/dist/cjs/onchain/validation/bundles/checkRWAOpening.js +18 -8
- package/dist/cjs/onchain/validation/bundles/index.js +6 -4
- package/dist/cjs/onchain/validation/checkOperation.js +0 -1
- package/dist/cjs/onchain/validation/checks/checkBorrowLimit.js +1 -1
- package/dist/cjs/onchain/validation/checks/checkPoolLiquidity.js +1 -1
- package/dist/cjs/onchain/validation/checks/checkReservePriceLimited.js +30 -0
- package/dist/cjs/onchain/validation/checks/index.js +2 -0
- package/dist/cjs/onchain/validation/index.js +8 -4
- package/dist/cjs/permissionless/utils/price-update/get-price-update-tx.js +2 -2
- package/dist/cjs/permissionless/utils/price-update/get-updatable-feeds.js +2 -2
- package/dist/cjs/sdk/execute/ExecuteApi.js +67 -7
- package/dist/cjs/sdk/opportunities/OpportunitiesNamespace.js +9 -3
- package/dist/cjs/sdk/prepare/PrepareApi.js +89 -14
- package/dist/esm/dev/abi.js +14 -15
- package/dist/esm/dev/claimFromFaucet.js +4 -8
- package/dist/esm/dev/createAnvilClient.js +36 -19
- package/dist/esm/dev/index.js +4 -4
- package/dist/esm/dev/kycUtils.js +66 -59
- package/dist/esm/dev/midasUtils.js +112 -18
- package/dist/esm/dev/securitizeUtils.js +84 -44
- package/dist/esm/dev/withdrawalUtils.js +3 -6
- package/dist/esm/model/errors/index.js +2 -2
- package/dist/esm/model/errors/operation-errors.js +18 -2
- package/dist/esm/model/index.js +4 -4
- package/dist/esm/model/rwa.js +4 -4
- package/dist/esm/model/rwa.schema.js +5 -5
- package/dist/esm/offchain/opportunities/OffchainOpportunities.js +1 -1
- package/dist/esm/onchain/OnchainSDK.js +3 -3
- package/dist/esm/onchain/accounts/CreditAccountsServiceV310.js +2 -17
- package/dist/esm/onchain/accounts/intents/borrow.js +138 -0
- package/dist/esm/onchain/accounts/intents/collateral-valuation.js +40 -0
- package/dist/esm/onchain/accounts/intents/guards.js +15 -3
- package/dist/esm/onchain/accounts/intents/index.js +107 -20
- package/dist/esm/onchain/accounts/intents/leverage-band.js +2 -12
- package/dist/esm/onchain/accounts/intents/maxBorrow.js +87 -0
- package/dist/esm/onchain/accounts/intents/maxWithdrawCollateral.js +15 -41
- package/dist/esm/onchain/accounts/intents/open-strategy.js +8 -46
- package/dist/esm/onchain/accounts/intents/operations.js +0 -1
- package/dist/esm/onchain/accounts/intents/realize.js +61 -4
- package/dist/esm/onchain/accounts/intents/tail.js +1 -1
- package/dist/esm/onchain/accounts/intents/testing/sdk-mock.js +1 -0
- package/dist/esm/onchain/accounts/intents/utils/common.js +19 -1
- package/dist/esm/onchain/accounts/intents/utils/credit-account-slice.js +21 -1
- package/dist/esm/onchain/accounts/intents/utils/index.js +3 -3
- package/dist/esm/onchain/accounts/intents/utils/price-impact.js +12 -9
- package/dist/esm/onchain/accounts/intents/utils/router-path.js +4 -5
- package/dist/esm/onchain/accounts/intents/withdraw-limits.js +95 -0
- package/dist/esm/onchain/accounts/liquidations/LiquidationsService.js +1 -1
- package/dist/esm/onchain/constants/address-provider.js +1 -2
- package/dist/esm/onchain/constants/index.js +2 -2
- package/dist/esm/onchain/core/createAddressProvider.js +2 -5
- package/dist/esm/onchain/index.js +32 -24
- package/dist/esm/onchain/market/adapters/abi/conctructorAbi.js +2 -2
- package/dist/esm/onchain/market/adapters/contracts/AbstractAdapter.js +6 -0
- package/dist/esm/onchain/market/adapters/contracts/MidasGatewayAdapterContract.js +50 -6
- package/dist/esm/onchain/market/credit/CreditSuite.js +26 -9
- package/dist/esm/onchain/market/index.js +26 -21
- package/dist/esm/onchain/market/oracle/PriceOracleBaseContract.js +1 -1
- package/dist/esm/onchain/market/pricefeeds/AbstractPriceFeed.js +0 -5
- package/dist/esm/onchain/market/pricefeeds/PriceFeedRegistry.js +126 -0
- package/dist/esm/onchain/market/pricefeeds/{BalancerStablePriceFeed.js → feeds/BalancerStablePriceFeed.js} +4 -4
- package/dist/esm/onchain/market/pricefeeds/{BalancerWeightedPriceFeed.js → feeds/BalancerWeightedPriceFeed.js} +4 -4
- package/dist/esm/onchain/market/pricefeeds/{BoundedPriceFeed.js → feeds/BoundedPriceFeed.js} +4 -4
- package/dist/esm/onchain/market/pricefeeds/{CompositePriceFeed.js → feeds/CompositePriceFeed.js} +4 -4
- package/dist/esm/onchain/market/pricefeeds/{ConstantPriceFeed.js → feeds/ConstantPriceFeed.js} +3 -3
- package/dist/esm/onchain/market/pricefeeds/{CurveCryptoPriceFeed.js → feeds/CurveCryptoPriceFeed.js} +4 -4
- package/dist/esm/onchain/market/pricefeeds/{CurveStablePriceFeed.js → feeds/CurveStablePriceFeed.js} +4 -4
- package/dist/esm/onchain/market/pricefeeds/{CurveUSDPriceFeed.js → feeds/CurveUSDPriceFeed.js} +4 -4
- package/dist/esm/onchain/market/pricefeeds/{Erc4626PriceFeed.js → feeds/Erc4626PriceFeed.js} +4 -4
- package/dist/esm/onchain/market/pricefeeds/{ExternalPriceFeed.js → feeds/ExternalPriceFeed.js} +4 -4
- package/dist/esm/onchain/market/pricefeeds/{MellowLRTPriceFeed.js → feeds/MellowLRTPriceFeed.js} +4 -4
- package/dist/esm/onchain/market/pricefeeds/{PendleTWAPPTPriceFeed.js → feeds/PendleTWAPPTPriceFeed.js} +4 -4
- package/dist/esm/onchain/market/pricefeeds/{PythPriceFeed.js → feeds/PythPriceFeed.js} +3 -3
- package/dist/esm/onchain/market/pricefeeds/{RedstonePriceFeed.js → feeds/RedstonePriceFeed.js} +6 -6
- package/dist/esm/onchain/market/pricefeeds/{WstETHPriceFeed.js → feeds/WstETHPriceFeed.js} +4 -4
- package/dist/esm/onchain/market/pricefeeds/{YearnPriceFeed.js → feeds/YearnPriceFeed.js} +4 -4
- package/dist/esm/onchain/market/pricefeeds/{ZeroPriceFeed.js → feeds/ZeroPriceFeed.js} +4 -4
- package/dist/esm/onchain/market/pricefeeds/feeds/index.js +18 -0
- package/dist/esm/onchain/market/pricefeeds/index.js +27 -21
- package/dist/esm/onchain/market/pricefeeds/updates/UpdatablePriceFeedRegistry.js +188 -0
- package/dist/esm/onchain/market/pricefeeds/{getRawPriceUpdates.js → updates/getRawPriceUpdates.js} +2 -2
- package/dist/esm/onchain/market/pricefeeds/updates/index.js +5 -1
- package/dist/esm/onchain/market/pricefeeds/{isUpdatablePriceFeed.js → updates/isUpdatablePriceFeed.js} +1 -1
- package/dist/esm/onchain/market/pricefeeds/updates/updatableDependencies.js +13 -0
- package/dist/esm/onchain/market/rwa/RWARegistry.js +4 -8
- package/dist/esm/onchain/market/rwa/index.js +2 -2
- package/dist/esm/onchain/market/rwa/midas/MidasDegenNFT.js +45 -5
- package/dist/esm/onchain/market/rwa/securitize/SecuritizeDegenNFT.js +55 -10
- package/dist/esm/onchain/market/rwa/securitize/SecuritizeRWAFactory.js +0 -37
- package/dist/esm/onchain/opportunities/MultichainOpportunitiesService.js +8 -2
- package/dist/esm/onchain/opportunities/OpportunitiesService.js +16 -4
- package/dist/esm/onchain/positions/calcHealthFactor.js +3 -3
- package/dist/esm/onchain/preview/index.js +2 -1
- package/dist/esm/onchain/preview/parse/parseRWAFactoryOperationCalldata.js +2 -2
- package/dist/esm/onchain/preview/preview/index.js +2 -1
- package/dist/esm/onchain/preview/preview/midasGreenlistsAccount.js +16 -0
- package/dist/esm/onchain/preview/preview/previewOpenStrategyPosition.js +14 -17
- package/dist/esm/onchain/preview/preview/previewOperation.js +19 -11
- package/dist/esm/onchain/preview/preview/replayMulticall.js +4 -3
- package/dist/esm/onchain/validation/bundles/checkCollateralFunding.js +3 -3
- package/dist/esm/onchain/validation/bundles/checkCreditOperation.js +11 -9
- package/dist/esm/onchain/validation/bundles/checkIncreaseDebt.js +27 -0
- package/dist/esm/onchain/validation/bundles/{checkQuotasAsked.js → checkIncreaseQuota.js} +3 -3
- package/dist/esm/onchain/validation/bundles/checkMidasAccountGreenlist.js +43 -0
- package/dist/esm/onchain/validation/bundles/checkRWAOpenRequirements.js +9 -9
- package/dist/esm/onchain/validation/bundles/checkRWAOpening.js +18 -8
- package/dist/esm/onchain/validation/bundles/index.js +4 -3
- package/dist/esm/onchain/validation/checkOperation.js +0 -1
- package/dist/esm/onchain/validation/checks/checkBorrowLimit.js +1 -1
- package/dist/esm/onchain/validation/checks/checkPoolLiquidity.js +1 -1
- package/dist/esm/onchain/validation/checks/checkReservePriceLimited.js +29 -0
- package/dist/esm/onchain/validation/checks/index.js +2 -1
- package/dist/esm/onchain/validation/index.js +5 -3
- package/dist/esm/permissionless/utils/price-update/get-price-update-tx.js +1 -1
- package/dist/esm/permissionless/utils/price-update/get-updatable-feeds.js +1 -1
- package/dist/esm/sdk/execute/ExecuteApi.js +67 -7
- package/dist/esm/sdk/opportunities/OpportunitiesNamespace.js +9 -3
- package/dist/esm/sdk/prepare/PrepareApi.js +94 -19
- package/dist/types/dev/abi.d.ts +13 -15
- package/dist/types/dev/claimFromFaucet.d.ts +0 -1
- package/dist/types/dev/createAnvilClient.d.ts +10 -3
- package/dist/types/dev/index.d.ts +4 -4
- package/dist/types/dev/kycUtils.d.ts +15 -24
- package/dist/types/dev/midasUtils.d.ts +35 -4
- package/dist/types/dev/securitizeUtils.d.ts +3 -9
- package/dist/types/model/errors/index.d.ts +2 -2
- package/dist/types/model/errors/operation-errors.d.ts +62 -7
- package/dist/types/model/index.d.ts +5 -5
- package/dist/types/model/opportunities.d.ts +6 -7
- package/dist/types/model/previews.d.ts +25 -19
- package/dist/types/model/rwa.d.ts +47 -27
- package/dist/types/model/rwa.schema.d.ts +3 -3
- package/dist/types/offchain/opportunities/OffchainOpportunities.d.ts +1 -2
- package/dist/types/offchain/opportunities/types.d.ts +1 -4
- package/dist/types/onchain/OnchainSDK.d.ts +2 -2
- package/dist/types/onchain/accounts/index.d.ts +5 -4
- package/dist/types/onchain/accounts/intents/borrow.d.ts +141 -0
- package/dist/types/onchain/accounts/intents/collateral-valuation.d.ts +42 -0
- package/dist/types/onchain/accounts/intents/guards.d.ts +18 -2
- package/dist/types/onchain/accounts/intents/index.d.ts +103 -15
- package/dist/types/onchain/accounts/intents/maxBorrow.d.ts +54 -0
- package/dist/types/onchain/accounts/intents/maxWithdrawCollateral.d.ts +3 -8
- package/dist/types/onchain/accounts/intents/open-strategy.d.ts +3 -17
- package/dist/types/onchain/accounts/intents/testing/sdk-mock.d.ts +2 -0
- package/dist/types/onchain/accounts/intents/tests/open-strategy.fixtures.d.ts +2 -2
- package/dist/types/onchain/accounts/intents/types.d.ts +51 -6
- package/dist/types/onchain/accounts/intents/utils/common.d.ts +15 -1
- package/dist/types/onchain/accounts/intents/utils/credit-account-slice.d.ts +14 -1
- package/dist/types/onchain/accounts/intents/utils/index.d.ts +3 -3
- package/dist/types/onchain/accounts/intents/utils/price-impact.d.ts +4 -1
- package/dist/types/onchain/accounts/intents/utils/router-path.d.ts +2 -5
- package/dist/types/onchain/accounts/intents/withdraw-limits.d.ts +80 -0
- package/dist/types/onchain/accounts/types.d.ts +4 -2
- package/dist/types/onchain/constants/address-provider.d.ts +1 -2
- package/dist/types/onchain/constants/index.d.ts +2 -2
- package/dist/types/onchain/index.d.ts +40 -31
- package/dist/types/onchain/market/adapters/contracts/AbstractAdapter.d.ts +6 -0
- package/dist/types/onchain/market/adapters/contracts/MidasGatewayAdapterContract.d.ts +20 -4
- package/dist/types/onchain/market/adapters/types.d.ts +8 -0
- package/dist/types/onchain/market/credit/CreditSuite.d.ts +13 -3
- package/dist/types/onchain/market/index.d.ts +29 -24
- package/dist/types/onchain/market/oracle/PriceOracleBaseContract.d.ts +2 -1
- package/dist/types/onchain/market/oracle/types.d.ts +2 -1
- package/dist/types/onchain/market/pool/types.d.ts +1 -1
- package/dist/types/onchain/market/pricefeeds/AbstractPriceFeed.d.ts +1 -2
- package/dist/types/onchain/market/pricefeeds/PriceFeedRegistry.d.ts +60 -0
- package/dist/types/onchain/market/pricefeeds/feeds/BalancerStablePriceFeed.d.ts +12 -0
- package/dist/types/onchain/market/pricefeeds/{BalancerWeightedPriceFeed.d.ts → feeds/BalancerWeightedPriceFeed.d.ts} +7 -7
- package/dist/types/onchain/market/pricefeeds/feeds/BoundedPriceFeed.d.ts +15 -0
- package/dist/types/onchain/market/pricefeeds/{CompositePriceFeed.d.ts → feeds/CompositePriceFeed.d.ts} +6 -6
- package/dist/types/onchain/market/pricefeeds/{ConstantPriceFeed.d.ts → feeds/ConstantPriceFeed.d.ts} +6 -6
- package/dist/types/onchain/market/pricefeeds/feeds/CurveCryptoPriceFeed.d.ts +12 -0
- package/dist/types/onchain/market/pricefeeds/feeds/CurveStablePriceFeed.d.ts +12 -0
- package/dist/types/onchain/market/pricefeeds/feeds/CurveUSDPriceFeed.d.ts +12 -0
- package/dist/types/onchain/market/pricefeeds/feeds/Erc4626PriceFeed.d.ts +12 -0
- package/dist/types/onchain/market/pricefeeds/feeds/ExternalPriceFeed.d.ts +11 -0
- package/dist/types/onchain/market/pricefeeds/feeds/MellowLRTPriceFeed.d.ts +12 -0
- package/dist/types/onchain/market/pricefeeds/{PendleTWAPPTPriceFeed.d.ts → feeds/PendleTWAPPTPriceFeed.d.ts} +3 -3
- package/dist/types/onchain/market/pricefeeds/{PythPriceFeed.d.ts → feeds/PythPriceFeed.d.ts} +3 -3
- package/dist/types/onchain/market/pricefeeds/{RedstonePriceFeed.d.ts → feeds/RedstonePriceFeed.d.ts} +9 -9
- package/dist/types/onchain/market/pricefeeds/feeds/WstETHPriceFeed.d.ts +12 -0
- package/dist/types/onchain/market/pricefeeds/feeds/YearnPriceFeed.d.ts +12 -0
- package/dist/types/onchain/market/pricefeeds/feeds/ZeroPriceFeed.d.ts +11 -0
- package/dist/types/onchain/market/pricefeeds/feeds/index.d.ts +18 -0
- package/dist/types/onchain/market/pricefeeds/index.d.ts +28 -22
- package/dist/types/onchain/market/pricefeeds/types.d.ts +1 -31
- package/dist/types/onchain/market/pricefeeds/updates/RedstoneUpdater.d.ts +1 -1
- package/dist/types/onchain/market/pricefeeds/updates/UpdatablePriceFeedRegistry.d.ts +106 -0
- package/dist/types/onchain/market/pricefeeds/updates/getRawPriceUpdates.d.ts +6 -0
- package/dist/types/onchain/market/pricefeeds/updates/index.d.ts +7 -3
- package/dist/types/onchain/market/pricefeeds/updates/isUpdatablePriceFeed.d.ts +6 -0
- package/dist/types/onchain/market/pricefeeds/updates/types.d.ts +56 -2
- package/dist/types/onchain/market/pricefeeds/updates/updatableDependencies.d.ts +10 -0
- package/dist/types/onchain/market/rwa/RWARegistry.d.ts +2 -1
- package/dist/types/onchain/market/rwa/index.d.ts +3 -3
- package/dist/types/onchain/market/rwa/midas/MidasDegenNFT.d.ts +19 -4
- package/dist/types/onchain/market/rwa/securitize/SecuritizeDegenNFT.d.ts +24 -4
- package/dist/types/onchain/market/rwa/securitize/SecuritizeRWAFactory.d.ts +2 -14
- package/dist/types/onchain/market/rwa/types.d.ts +39 -37
- package/dist/types/onchain/opportunities/MultichainOpportunitiesService.d.ts +5 -1
- package/dist/types/onchain/opportunities/OpportunitiesService.d.ts +10 -3
- package/dist/types/onchain/opportunities/types.d.ts +6 -1
- package/dist/types/onchain/preview/index.d.ts +2 -1
- package/dist/types/onchain/preview/preview/index.d.ts +2 -1
- package/dist/types/onchain/preview/preview/midasGreenlistsAccount.d.ts +13 -0
- package/dist/types/onchain/preview/preview/previewOpenStrategyPosition.d.ts +5 -3
- package/dist/types/onchain/preview/preview/replayMulticall.d.ts +8 -7
- package/dist/types/onchain/validation/bundles/checkCreditOperation.d.ts +5 -4
- package/dist/types/onchain/validation/bundles/{checkDraw.d.ts → checkIncreaseDebt.d.ts} +7 -7
- package/dist/types/onchain/validation/bundles/{checkQuotasAsked.d.ts → checkIncreaseQuota.d.ts} +3 -3
- package/dist/types/onchain/validation/bundles/checkMidasAccountGreenlist.d.ts +22 -0
- package/dist/types/onchain/validation/bundles/checkRWAOpenRequirements.d.ts +2 -2
- package/dist/types/onchain/validation/bundles/checkRWAOpening.d.ts +9 -7
- package/dist/types/onchain/validation/bundles/index.d.ts +5 -4
- package/dist/types/onchain/validation/checks/checkBorrowLimit.d.ts +1 -1
- package/dist/types/onchain/validation/checks/checkDebtLimits.d.ts +2 -2
- package/dist/types/onchain/validation/checks/checkPoolLiquidity.d.ts +1 -1
- package/dist/types/onchain/validation/checks/checkReservePriceLimited.d.ts +31 -0
- package/dist/types/onchain/validation/checks/index.d.ts +2 -1
- package/dist/types/onchain/validation/index.d.ts +6 -4
- package/dist/types/onchain/validation/raise.d.ts +2 -2
- package/dist/types/sdk/execute/index.d.ts +2 -2
- package/dist/types/sdk/execute/types.d.ts +48 -6
- package/dist/types/sdk/index.d.ts +5 -4
- package/dist/types/sdk/opportunities/OpportunitiesNamespace.d.ts +5 -1
- package/dist/types/sdk/opportunities/types.d.ts +9 -3
- package/dist/types/sdk/prepare/PrepareApi.d.ts +16 -4
- package/dist/types/sdk/prepare/index.d.ts +4 -3
- package/dist/types/sdk/prepare/types.d.ts +200 -66
- package/package.json +1 -1
- package/dist/cjs/onchain/accounts/utils/midasUtils.js +0 -70
- package/dist/cjs/onchain/market/pricefeeds/PriceFeedsRegister.js +0 -301
- package/dist/cjs/plugins/degen-distributors/DegenDistributorsPlugin.js +0 -61
- package/dist/cjs/plugins/degen-distributors/index.js +0 -4
- package/dist/cjs/plugins/degen-distributors/package.json +0 -1
- package/dist/cjs/plugins/degen-distributors/types.js +0 -1
- package/dist/cjs/plugins/delayed-withdrawal/DelayedWithdrawalPlugin.js +0 -114
- package/dist/cjs/plugins/delayed-withdrawal/index.js +0 -4
- package/dist/cjs/plugins/delayed-withdrawal/package.json +0 -1
- package/dist/cjs/plugins/delayed-withdrawal/types.js +0 -1
- package/dist/esm/onchain/accounts/utils/midasUtils.js +0 -69
- package/dist/esm/onchain/market/pricefeeds/PriceFeedsRegister.js +0 -300
- package/dist/esm/onchain/validation/bundles/checkDraw.js +0 -27
- package/dist/esm/plugins/degen-distributors/DegenDistributorsPlugin.js +0 -60
- package/dist/esm/plugins/degen-distributors/index.js +0 -3
- package/dist/esm/plugins/degen-distributors/package.json +0 -1
- package/dist/esm/plugins/degen-distributors/types.js +0 -1
- package/dist/esm/plugins/delayed-withdrawal/DelayedWithdrawalPlugin.js +0 -113
- package/dist/esm/plugins/delayed-withdrawal/index.js +0 -3
- package/dist/esm/plugins/delayed-withdrawal/package.json +0 -1
- package/dist/esm/plugins/delayed-withdrawal/types.js +0 -1
- package/dist/types/onchain/accounts/utils/midasUtils.d.ts +0 -38
- package/dist/types/onchain/market/pricefeeds/BalancerStablePriceFeed.d.ts +0 -12
- package/dist/types/onchain/market/pricefeeds/BoundedPriceFeed.d.ts +0 -15
- package/dist/types/onchain/market/pricefeeds/CurveCryptoPriceFeed.d.ts +0 -12
- package/dist/types/onchain/market/pricefeeds/CurveStablePriceFeed.d.ts +0 -12
- package/dist/types/onchain/market/pricefeeds/CurveUSDPriceFeed.d.ts +0 -12
- package/dist/types/onchain/market/pricefeeds/Erc4626PriceFeed.d.ts +0 -12
- package/dist/types/onchain/market/pricefeeds/ExternalPriceFeed.d.ts +0 -11
- package/dist/types/onchain/market/pricefeeds/MellowLRTPriceFeed.d.ts +0 -12
- package/dist/types/onchain/market/pricefeeds/PriceFeedsRegister.d.ts +0 -180
- package/dist/types/onchain/market/pricefeeds/WstETHPriceFeed.d.ts +0 -12
- package/dist/types/onchain/market/pricefeeds/YearnPriceFeed.d.ts +0 -12
- package/dist/types/onchain/market/pricefeeds/ZeroPriceFeed.d.ts +0 -11
- package/dist/types/onchain/market/pricefeeds/getRawPriceUpdates.d.ts +0 -5
- package/dist/types/onchain/market/pricefeeds/isUpdatablePriceFeed.d.ts +0 -5
- package/dist/types/plugins/degen-distributors/DegenDistributorsPlugin.d.ts +0 -25
- package/dist/types/plugins/degen-distributors/index.d.ts +0 -3
- package/dist/types/plugins/degen-distributors/types.d.ts +0 -8
- package/dist/types/plugins/delayed-withdrawal/DelayedWithdrawalPlugin.d.ts +0 -25
- package/dist/types/plugins/delayed-withdrawal/index.d.ts +0 -3
- package/dist/types/plugins/delayed-withdrawal/types.d.ts +0 -10
|
@@ -4,10 +4,10 @@ import { DStokenData, SecuritizeCreditAccountData, SecuritizeInvestorData, Secur
|
|
|
4
4
|
import { SecuritizeRWAFactory } from "./rwa/securitize/SecuritizeRWAFactory.js";
|
|
5
5
|
import { SecuritizeDegenNFT } from "./rwa/securitize/SecuritizeDegenNFT.js";
|
|
6
6
|
import { SecuritizeLiquidatorContract } from "./rwa/securitize/SecuritizeLiquidatorContract.js";
|
|
7
|
-
import { GetInvestorOptions, GetOpenAccountRequirementsProps, IDegenNFT, IRWAFactory,
|
|
7
|
+
import { GetInvestorOptions, GetOpenAccountRequirementsProps, IDegenNFT, IRWAFactory, RWACompressorCall, RWACompressorInvestorData, RWACompressorResponse, RWAFactoryData, RWAFactoryProtocol, RWAFactoryStateHuman, RWAInvestorData, RWAState, RWAStateHuman, RWAUnderlyingData, isRWAFactory } from "./rwa/types.js";
|
|
8
8
|
import { MidasDegenNFT } from "./rwa/midas/MidasDegenNFT.js";
|
|
9
9
|
import { MidasLiquidatorContract } from "./rwa/midas/MidasLiquidatorContract.js";
|
|
10
|
-
import { RWARegistry } from "./rwa/RWARegistry.js";
|
|
10
|
+
import { RWARegistry, RWA_COMPRESSOR_ADDRESS } from "./rwa/RWARegistry.js";
|
|
11
11
|
import "./rwa/index.js";
|
|
12
12
|
import { AdapterContractStateHuman, AdapterContractType, AdapterProtocolOperation, AdapterType, DelayedWithdrawalClaim, DelayedWithdrawalRequest, IAdapterContract, VersionedAbi } from "./adapters/types.js";
|
|
13
13
|
import { adapterActionAbi, adapterActionSelectors, adapterActionSignatures } from "./adapters/abi/actionAbi.js";
|
|
@@ -97,31 +97,36 @@ import { AdapterFactoryArgs, createAdapter } from "./adapters/createAdapter.js";
|
|
|
97
97
|
import { TokenTransfer } from "./adapters/transfers.js";
|
|
98
98
|
import { allTransfersAsTokenAmounts, classifyCurveOperation, curveAddLiquidityFromTransfers, curveRemoveLiquidityFromTransfers, fnSigToName, parsePosNegAmount, rewardsFromTransfers, swapFromTransfers, toNetTransfers } from "./adapters/transferHelpers.js";
|
|
99
99
|
import "./adapters/index.js";
|
|
100
|
-
import { IPriceFeedContract,
|
|
100
|
+
import { IPriceFeedContract, PriceFeedContractType, PriceFeedUsageType, PriceUpdate } from "./pricefeeds/types.js";
|
|
101
101
|
import { PriceFeedRef } from "./pricefeeds/PriceFeedRef.js";
|
|
102
102
|
import { AbstractPriceFeedContract, PartialPriceFeedInitError, PartialPriceFeedTreeNode, PriceFeedConstructorArgs } from "./pricefeeds/AbstractPriceFeed.js";
|
|
103
103
|
import { AbstractLPPriceFeedContract, isLPPriceFeed } from "./pricefeeds/AbstractLPPriceFeed.js";
|
|
104
|
-
import { BalancerStablePriceFeedContract } from "./pricefeeds/BalancerStablePriceFeed.js";
|
|
105
|
-
import { BalancerWeightedPriceFeedContract } from "./pricefeeds/BalancerWeightedPriceFeed.js";
|
|
106
|
-
import { BoundedPriceFeedContract } from "./pricefeeds/BoundedPriceFeed.js";
|
|
107
|
-
import { CompositePriceFeedContract } from "./pricefeeds/CompositePriceFeed.js";
|
|
108
|
-
import {
|
|
109
|
-
import {
|
|
110
|
-
import {
|
|
111
|
-
import {
|
|
112
|
-
import {
|
|
113
|
-
import {
|
|
114
|
-
import {
|
|
115
|
-
import {
|
|
116
|
-
import {
|
|
117
|
-
import {
|
|
104
|
+
import { BalancerStablePriceFeedContract } from "./pricefeeds/feeds/BalancerStablePriceFeed.js";
|
|
105
|
+
import { BalancerWeightedPriceFeedContract } from "./pricefeeds/feeds/BalancerWeightedPriceFeed.js";
|
|
106
|
+
import { BoundedPriceFeedContract } from "./pricefeeds/feeds/BoundedPriceFeed.js";
|
|
107
|
+
import { CompositePriceFeedContract } from "./pricefeeds/feeds/CompositePriceFeed.js";
|
|
108
|
+
import { ConstantPriceFeedContract } from "./pricefeeds/feeds/ConstantPriceFeed.js";
|
|
109
|
+
import { CurveCryptoPriceFeedContract } from "./pricefeeds/feeds/CurveCryptoPriceFeed.js";
|
|
110
|
+
import { CurveStablePriceFeedContract } from "./pricefeeds/feeds/CurveStablePriceFeed.js";
|
|
111
|
+
import { CurveUSDPriceFeedContract } from "./pricefeeds/feeds/CurveUSDPriceFeed.js";
|
|
112
|
+
import { Erc4626PriceFeedContract } from "./pricefeeds/feeds/Erc4626PriceFeed.js";
|
|
113
|
+
import { ExternalPriceFeedContract } from "./pricefeeds/feeds/ExternalPriceFeed.js";
|
|
114
|
+
import { MellowLRTPriceFeedContract } from "./pricefeeds/feeds/MellowLRTPriceFeed.js";
|
|
115
|
+
import { PendleTWAPPTPriceFeed } from "./pricefeeds/feeds/PendleTWAPPTPriceFeed.js";
|
|
116
|
+
import { PythPriceFeed } from "./pricefeeds/feeds/PythPriceFeed.js";
|
|
117
|
+
import { PriceUpdatesCache } from "./pricefeeds/updates/PriceUpdatesCache.js";
|
|
118
|
+
import { RedstoneOptions, RedstoneUpdater } from "./pricefeeds/updates/RedstoneUpdater.js";
|
|
119
|
+
import { IPriceUpdateTask, IPriceUpdater, IUpdatablePriceFeedContract, LatestUpdate, TimestampedCalldata, TimestampedCalldataWithPrice, UpdatablePriceFeedRegistryHooks, UpdatablePriceFeedRegistryOptions, UpdatePriceFeedsResult } from "./pricefeeds/updates/types.js";
|
|
120
|
+
import { RedstonePriceFeedContract } from "./pricefeeds/feeds/RedstonePriceFeed.js";
|
|
121
|
+
import { WstETHPriceFeedContract } from "./pricefeeds/feeds/WstETHPriceFeed.js";
|
|
122
|
+
import { YearnPriceFeedContract } from "./pricefeeds/feeds/YearnPriceFeed.js";
|
|
123
|
+
import { ZeroPriceFeedContract } from "./pricefeeds/feeds/ZeroPriceFeed.js";
|
|
124
|
+
import { PriceFeedRegistry } from "./pricefeeds/PriceFeedRegistry.js";
|
|
118
125
|
import { FetchRedstonePayloadsOptions, fetchRedstonePayloads } from "./pricefeeds/updates/fetchRedstonePayloads.js";
|
|
119
|
-
import {
|
|
120
|
-
import {
|
|
121
|
-
import {
|
|
122
|
-
import {
|
|
123
|
-
import { YearnPriceFeedContract } from "./pricefeeds/YearnPriceFeed.js";
|
|
124
|
-
import { ZeroPriceFeedContract } from "./pricefeeds/ZeroPriceFeed.js";
|
|
126
|
+
import { getRawPriceUpdates } from "./pricefeeds/updates/getRawPriceUpdates.js";
|
|
127
|
+
import { isUpdatablePriceFeed } from "./pricefeeds/updates/isUpdatablePriceFeed.js";
|
|
128
|
+
import { UpdatablePriceFeedRegistry } from "./pricefeeds/updates/UpdatablePriceFeedRegistry.js";
|
|
129
|
+
import { updatableDependencies } from "./pricefeeds/updates/updatableDependencies.js";
|
|
125
130
|
import "./pricefeeds/index.js";
|
|
126
131
|
import { BalanceDelta, CreditAccountTokenQuota, ICreditConfiguratorContract, ICreditFacadeContract, ICreditManagerContract, LiquidationFees, MaxBorrowAmount, PartialLiquidationParams, PrepareUpdateQuotasProps, QuotaSlice } from "./credit/types.js";
|
|
127
132
|
import { CreditConfiguratorV310Contract, RampEvent } from "./credit/CreditConfiguratorV310Contract.js";
|
|
@@ -154,4 +159,4 @@ import "./zapper/index.js";
|
|
|
154
159
|
import { MarketRegister, MarketRegistryState, MarketRegistryStateHuman } from "./MarketRegister.js";
|
|
155
160
|
import { DEFAULT_QUOTA_BUFFER_BPS, MAX_LEVERAGE_BUFFER_BPS, OptimalRepaidAmountProps, PARTIAL_LIQUIDATION_BUFFER_BPS, QuotaMode, StrategyRateInputs, bpsToRay, calcBorrowApy, calcEffectiveBorrowApy, calcMaxLeverage, calcNetStrategyApy, calcPositionLeverage, calcQuotaRate, calcUtilization, calcUtilizationRaw, healthFactorBps, minSeizedAmount, optimalHFForPartialLiquidation, optimalRepaidAmount, rayToBps, usdToNumber } from "./math.js";
|
|
156
161
|
import { strategyName } from "./strategyName.js";
|
|
157
|
-
export { AbstractAdapterContract, AbstractAdapterContractOptions, AbstractLPPriceFeedContract, AbstractPriceFeedContract, AccountMigratorAdapterContract, AdapterContractStateHuman, AdapterContractType, AdapterFactoryArgs, AdapterProtocolOperation, AdapterType, BalanceDelta, BalancerStablePriceFeedContract, BalancerSwap, BalancerV3Pool, BalancerV3PoolStatus, BalancerV3RouterAdapterContract, BalancerV3WrapperAdapterContract, BalancerWeightedPriceFeedContract, BasicSwapCall, BoundedPriceFeedContract, CamelotPool, CamelotV3AdapterContract, CompositePriceFeedContract, CompressorZapperData, ConcreteAdapterContractOptions, ConvertFn, ConvexDeposit, ConvexDepositAndStake, ConvexStake, ConvexV1BaseRewardPoolAdapterContract, ConvexV1BoosterAdapterContract, ConvexWithdraw, ConvexWithdrawAndClaim, CreditAccountTokenQuota, CreditConfiguratorV310Contract, type abi as CreditFacadeV310Abi, abi as creditFacadeV310Abi, CreditFacadeV310BaseContract, CreditFacadeV310Contract, CreditManagerV310Contract, CreditSuite, Curve2AssetsAdapterContract, Curve3AssetsAdapterContract, Curve4AssetsAdapterContract, CurveAddLiquidity, CurveClaims, CurveCryptoPriceFeedContract, CurveExchange, CurveRemoveLiquidity, CurveRemoveLiquidityOneCoin, CurveStablePriceFeedContract, CurveUSDPriceFeedContract, CurveV1AdapterStETHContract, CurveV1StableNGAdapterContract, CurveWithdrawal, DEFAULT_QUOTA_BUFFER_BPS, DEGEN_NFT_MIDAS, DEGEN_NFT_SECURITIZE, DStokenData, DaiUsdsAdapterContract, DelayedWithdrawalClaim, DelayedWithdrawalRequest, ERC4626AdapterContract, ERC4626ReferralAdapterContract, Erc4626PriceFeedContract, ExpectedBalanceDeltasProps, ExpectedOutput, ExternalPriceFeedContract,
|
|
162
|
+
export { AbstractAdapterContract, AbstractAdapterContractOptions, AbstractLPPriceFeedContract, AbstractPriceFeedContract, AccountMigratorAdapterContract, AdapterContractStateHuman, AdapterContractType, AdapterFactoryArgs, AdapterProtocolOperation, AdapterType, BalanceDelta, BalancerStablePriceFeedContract, BalancerSwap, BalancerV3Pool, BalancerV3PoolStatus, BalancerV3RouterAdapterContract, BalancerV3WrapperAdapterContract, BalancerWeightedPriceFeedContract, BasicSwapCall, BoundedPriceFeedContract, CamelotPool, CamelotV3AdapterContract, CompositePriceFeedContract, CompressorZapperData, ConcreteAdapterContractOptions, ConstantPriceFeedContract, ConvertFn, ConvexDeposit, ConvexDepositAndStake, ConvexStake, ConvexV1BaseRewardPoolAdapterContract, ConvexV1BoosterAdapterContract, ConvexWithdraw, ConvexWithdrawAndClaim, CreditAccountTokenQuota, CreditConfiguratorV310Contract, type abi as CreditFacadeV310Abi, abi as creditFacadeV310Abi, CreditFacadeV310BaseContract, CreditFacadeV310Contract, CreditManagerV310Contract, CreditSuite, Curve2AssetsAdapterContract, Curve3AssetsAdapterContract, Curve4AssetsAdapterContract, CurveAddLiquidity, CurveClaims, CurveCryptoPriceFeedContract, CurveExchange, CurveRemoveLiquidity, CurveRemoveLiquidityOneCoin, CurveStablePriceFeedContract, CurveUSDPriceFeedContract, CurveV1AdapterStETHContract, CurveV1StableNGAdapterContract, CurveWithdrawal, DEFAULT_QUOTA_BUFFER_BPS, DEGEN_NFT_MIDAS, DEGEN_NFT_SECURITIZE, DStokenData, DaiUsdsAdapterContract, DelayedWithdrawalClaim, DelayedWithdrawalRequest, ERC4626AdapterContract, ERC4626ReferralAdapterContract, Erc4626PriceFeedContract, ExpectedBalanceDeltasProps, ExpectedOutput, ExternalPriceFeedContract, FetchRedstonePayloadsOptions, FluidDexAdapterContract, GaugeContract, GaugeParams, GetInvestorOptions, GetOpenAccountRequirementsProps, GetReward, IAdapterContract, ICreditConfiguratorContract, ICreditFacadeContract, ICreditManagerContract, IDegenNFT, IERC20ZapperContract, IETHZapperContract, IInterestRateModelContract, IPoolContract, IPriceFeedContract, IPriceOracleContract, type IPriceUpdateTask, type IPriceUpdater, IRWAFactory, IRateKeeperContract, type IUpdatablePriceFeedContract, IZapperContract, InfinifiGatewayAdapterContract, InfinifiUnwindingGatewayAdapterContract, InterestRateModelType, KelpLRTDepositPoolAdapterContract, KelpLRTWithdrawalManagerAdapterContract, type LatestUpdate, LegacyAdapterOperation, LidoSubmit, LidoV1AdapterContract, LinearInterestRateModelContract, LiquidationFees, MAX_LEVERAGE_BUFFER_BPS, MakerDeposit, MakerRedeem, MarketRegister, MarketRegistryState, MarketRegistryStateHuman, MarketSuite, MaxBorrowAmount, MellowClaimerAdapterContract, MellowDVVAdapterContract, MellowERC4626VaultAdapterContract, MellowLRTPriceFeedContract, MellowWrapperAdapterContract, MidasDegenNFT, MidasGatewayAdapterContract, MidasIssuanceVaultAdapterContract, MidasLiquidatorContract, MidasRedemptionVaultAdapterContract, OptimalRepaidAmountProps, PARTIAL_LIQUIDATION_BUFFER_BPS, PHANTOM_TOKEN_MIDAS_REDEMPTION, PHANTOM_TOKEN_SECURITIZE_REDEMPTION, ParsedZapperDeposit, ParsedZapperOperation, ParsedZapperRedeem, PartialLiquidationParams, PartialPriceFeedInitError, PartialPriceFeedTreeNode, PendlePair, PendlePairStatus, PendleRouterAdapterContract, PendleTWAPPTPriceFeed, PendleTokenType, PoolQuotaKeeperContract, PoolSuite, PoolV310Contract, PrepareUpdateQuotasProps, PriceFeedConstructorArgs, PriceFeedContractType, PriceFeedRef, PriceFeedRegistry, PriceFeedUsageType, PriceFeedsForAccountOptions, PriceFeedsForTokensOptions, PriceOracleV310Contract, PriceUpdate, PriceUpdatesCache, PythPriceFeed, QuotaMode, QuotaSlice, RWACompressorCall, RWACompressorInvestorData, RWACompressorResponse, RWAFactoryData, RWAFactoryProtocol, RWAFactoryStateHuman, RWAInvestorData, RWARegistry, RWAState, RWAStateHuman, RWAUnderlyingData, RWA_COMPRESSOR_ADDRESS, RWA_LIQUIDATOR_MIDAS, RWA_LIQUIDATOR_SECURITIZE, RampEvent, RateKeeperType, RedstoneOptions, RedstonePriceFeedContract, RedstoneUpdater, SecuritizeCreditAccountData, SecuritizeDegenNFT, SecuritizeInvestorData, SecuritizeLiquidatorContract, SecuritizeOnRampAdapterContract, SecuritizeRWAFactory, SecuritizeRWAFactoryStateHuman, SecuritizeRedemptionGatewayAdapterContract, StakingRewardsAdapterContract, StrategyCollateralProps, StrategyRateInputs, Swap, type TimestampedCalldata, type TimestampedCalldataWithPrice, TokenAmount, TokenTransfer, TraderJoePool, TraderJoePoolVersion, TraderJoeRouterAdapterContract, Transfers, UniswapSwap, UniswapV2AdapterContract, UniswapV3AdapterContract, UniswapV4AdapterContract, UpdatablePriceFeedRegistry, type UpdatablePriceFeedRegistryHooks, type UpdatablePriceFeedRegistryOptions, type UpdatePriceFeedsResult, UpshiftVaultAdapterContract, VaultDeposit, VelodromeV2RouterAdapterContract, VersionedAbi, WithdrawCollateral, WstETHPriceFeedContract, WstETHUnwrap, WstETHV1AdapterContract, WstETHWrap, YearnPriceFeedContract, ZapperContract, ZapperData, ZeroPriceFeedContract, adapterActionAbi, adapterActionSelectors, adapterActionSignatures, adapterConstructorAbi, allTransfersAsTokenAmounts, bpsToRay, calcBorrowApy, calcEffectiveBorrowApy, calcMaxLeverage, calcNetStrategyApy, calcPositionLeverage, calcQuotaRate, calcUtilization, calcUtilizationRaw, classifyCurveOperation, collateralPriceInUnderlying, createAdapter, createPriceOracle, createZapper, curveAddLiquidityFromTransfers, curveRemoveLiquidityFromTransfers, dominantCollateral, erc4626ReferralAdapterAbi, expectedBalanceDeltas, fetchRedstonePayloads, fnSigToName, getAdapterActionAbi, getAdapterDeployParamsAbi, getAdapterType, getRawPriceUpdates, hasAdapterDeployParamsAbi, healthFactorBps, iBalancerV3RouterAbi, iBalancerV3RouterAdapterAbi, iBalancerV3WrapperAbi, iBalancerV3WrapperAdapterAbi, iBaseOnRampAbi, iBaseRewardPoolAbi, iBoosterAbi, iCamelotV3AdapterAbi, iCamelotV3RouterAbi, iConvexV1BaseRewardPoolAdapterAbi, iConvexV1BoosterAdapterAbi, iCurvePoolAbi, iCurvePoolStableNGAbi, iCurvePool_2Abi, iCurvePool_3Abi, iCurvePool_4Abi, iCurveV1StableNgAdapterAbi, iCurveV1_2AssetsAdapterAbi, iCurveV1_3AssetsAdapterAbi, iCurveV1_4AssetsAdapterAbi, iDaiUsdsAbi, iDaiUsdsAdapterAbi, iERC4626Abi, iERC4626ReferralAbi, iFluidDexAbi, iFluidDexAdapterAbi, iInfinifiGatewayAbi, iInfinifiGatewayAdapterAbi, iInfinifiUnwindingGatewayAbi, iInfinifiUnwindingGatewayAdapterAbi, iKelpLRTDepositPoolGatewayAbi, iKelpLRTWithdrawalManagerGatewayAbi, iKelpLrtDepositPoolAdapterAbi, iKelpLrtDepositPoolGatewayAbi, iKelpLrtWithdrawalManagerAdapterAbi, iKelpLrtWithdrawalManagerGatewayAbi, iLidoV1AdapterAbi, iMellow4626VaultAdapterAbi, iMellowClaimerAbi, iMellowClaimerAdapterAbi, iMellowWrapperAbi, iMellowWrapperAdapterAbi, iMidasGatewayAdapterV311Abi, iMidasGatewayV311Abi, iMidasIssuanceVaultAdapterV310Abi, iMidasIssuanceVaultV310Abi, iMidasRedemptionVaultAdapterV310Abi, iMidasRedemptionVaultGatewayV310Abi, iPendleRouterAbi, iPendleRouterAdapterAbi, iSecuritizeOnRampAbi, iSecuritizeOnRampAdapterV310Abi, iSecuritizeRedemptionGatewayAdapterV311Abi, iSecuritizeRedemptionGatewayV311Abi, iStakingRewardsAbi, iStakingRewardsAdapterAbi, iTraderJoeRouterAbi, iTraderJoeRouterAdapterAbi, iUniswapV2AdapterAbi, iUniswapV2Router02Abi, iUniswapV3Abi, iUniswapV3AdapterAbi, iUniswapV4AdapterAbi, iUniswapV4GatewayAbi, iUpshiftVaultAdapterAbi, iUpshiftVaultGatewayAbi, iVelodromeV2RouterAbi, iVelodromeV2RouterAdapterAbi, isLPPriceFeed, isRWAFactory, isStrategyCollateral, isUpdatablePriceFeed, iwstETHAbi, iwstEthv1AdapterAbi, lidoV1_WETHGatewayAbi, mellowDvvAdapterAbi, minSeizedAmount, optimalHFForPartialLiquidation, optimalRepaidAmount, parseAdapterAction, parseAdapterDeployParams, parsePosNegAmount, pickStrategyTargetCollateral, rayToBps, rewardsFromTransfers, strategyName, swapFromTransfers, toNetTransfers, updatableDependencies, usdToNumber };
|
|
@@ -8,8 +8,9 @@ import { DelegatedMulticall } from "../../utils/viem/executeDelegatedMulticalls.
|
|
|
8
8
|
import "../../utils/viem/index.js";
|
|
9
9
|
import { Asset, CreditAccountTokensSlice, PriceOracleData } from "../../base/types.js";
|
|
10
10
|
import { PriceOracleStateHuman } from "../../types/state-human.js";
|
|
11
|
-
import { IPriceFeedContract, PriceUpdate
|
|
11
|
+
import { IPriceFeedContract, PriceUpdate } from "../pricefeeds/types.js";
|
|
12
12
|
import { PriceFeedRef } from "../pricefeeds/PriceFeedRef.js";
|
|
13
|
+
import { UpdatePriceFeedsResult } from "../pricefeeds/updates/types.js";
|
|
13
14
|
import "../pricefeeds/index.js";
|
|
14
15
|
import PriceFeedAnswerMap from "./PriceFeedAnswerMap.js";
|
|
15
16
|
import { IPriceOracleContract, PriceFeedsForAccountOptions, PriceFeedsForTokensOptions } from "./types.js";
|
|
@@ -8,8 +8,9 @@ import { DelegatedMulticall } from "../../utils/viem/executeDelegatedMulticalls.
|
|
|
8
8
|
import "../../utils/viem/index.js";
|
|
9
9
|
import { Asset, CreditAccountTokensSlice, IBaseContract } from "../../base/types.js";
|
|
10
10
|
import { PriceOracleStateHuman } from "../../types/state-human.js";
|
|
11
|
-
import { IPriceFeedContract, PriceUpdate
|
|
11
|
+
import { IPriceFeedContract, PriceUpdate } from "../pricefeeds/types.js";
|
|
12
12
|
import { PriceFeedRef } from "../pricefeeds/PriceFeedRef.js";
|
|
13
|
+
import { UpdatePriceFeedsResult } from "../pricefeeds/updates/types.js";
|
|
13
14
|
import "../pricefeeds/index.js";
|
|
14
15
|
import PriceFeedAnswerMap from "./PriceFeedAnswerMap.js";
|
|
15
16
|
import "../../utils/index.js";
|
|
@@ -121,7 +121,7 @@ interface IPoolContract extends IBaseContract {
|
|
|
121
121
|
*/
|
|
122
122
|
readonly rwaFactory: IRWAFactory | undefined;
|
|
123
123
|
/**
|
|
124
|
-
* Liquidity currently
|
|
124
|
+
* Liquidity currently borrowed by credit managers, i.e. the part of the
|
|
125
125
|
* expected liquidity that is not sitting in the pool. Never negative.
|
|
126
126
|
*/
|
|
127
127
|
readonly borrowed: bigint;
|
|
@@ -2,7 +2,7 @@ import { PriceFeedData } from "../../../model/opportunities.js";
|
|
|
2
2
|
import "../../../model/index.js";
|
|
3
3
|
import { PriceFeedAnswer, PriceFeedTreeNode } from "../../base/types.js";
|
|
4
4
|
import { PriceFeedStateHuman } from "../../types/state-human.js";
|
|
5
|
-
import { IPriceFeedContract,
|
|
5
|
+
import { IPriceFeedContract, PriceFeedContractType } from "./types.js";
|
|
6
6
|
import { PriceFeedRef } from "./PriceFeedRef.js";
|
|
7
7
|
import { ConstructOptions } from "../../base/Construct.js";
|
|
8
8
|
import "../../types/index.js";
|
|
@@ -36,7 +36,6 @@ declare abstract class AbstractPriceFeedContract<const abi extends Abi | readonl
|
|
|
36
36
|
updateAnswer(answer: PriceFeedAnswer): void;
|
|
37
37
|
get priceFeedType(): PriceFeedContractType;
|
|
38
38
|
stateHuman(raw?: boolean): UnionOmit<PriceFeedStateHuman, "stalenessPeriod">;
|
|
39
|
-
updatableDependencies(): IUpdatablePriceFeedContract[];
|
|
40
39
|
/**
|
|
41
40
|
* {@inheritDoc IPriceFeedContract.describe}
|
|
42
41
|
*/
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { PriceFeedTreeNode } from "../../base/types.js";
|
|
2
|
+
import { IPriceFeedContract } from "./types.js";
|
|
3
|
+
import { PartialPriceFeedTreeNode } from "./AbstractPriceFeed.js";
|
|
4
|
+
import { SDKConstruct } from "../../base/SDKConstruct.js";
|
|
5
|
+
import "../../base/index.js";
|
|
6
|
+
import { Address } from "viem";
|
|
7
|
+
//#region src/onchain/market/pricefeeds/PriceFeedRegistry.d.ts
|
|
8
|
+
/**
|
|
9
|
+
* Chain-level cache of price feed contract instances.
|
|
10
|
+
*
|
|
11
|
+
* All {@link IPriceOracleContract}s across different markets share a single
|
|
12
|
+
* `PriceFeedRegistry`, avoiding duplicate contract wrappers for the same
|
|
13
|
+
* on-chain feed.
|
|
14
|
+
**/
|
|
15
|
+
declare class PriceFeedRegistry extends SDKConstruct {
|
|
16
|
+
#private;
|
|
17
|
+
/**
|
|
18
|
+
* Returns all price feeds known to sdk
|
|
19
|
+
*/
|
|
20
|
+
get feeds(): readonly IPriceFeedContract[];
|
|
21
|
+
/**
|
|
22
|
+
* Checks whether a price feed is already registered at the given address.
|
|
23
|
+
* @param address - On-chain address to look up.
|
|
24
|
+
**/
|
|
25
|
+
has(address: Address): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Returns the cached price feed contract at the given address, if any.
|
|
28
|
+
* @param address - On-chain address to look up.
|
|
29
|
+
**/
|
|
30
|
+
get(address: Address): IPriceFeedContract | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Returns the cached price feed contract at the given address.
|
|
33
|
+
* @param address - On-chain address to look up.
|
|
34
|
+
* @throws If no feed is registered at that address.
|
|
35
|
+
**/
|
|
36
|
+
mustGet(address: Address): IPriceFeedContract;
|
|
37
|
+
/**
|
|
38
|
+
* Inserts or updates a price feed from a full tree node.
|
|
39
|
+
*
|
|
40
|
+
* If a fully loaded feed already exists at the same address, only the
|
|
41
|
+
* answer is refreshed. Otherwise a new contract wrapper is created and
|
|
42
|
+
* cached.
|
|
43
|
+
*
|
|
44
|
+
* @param data - Full price feed tree node from the compressor.
|
|
45
|
+
* @returns The cached (or newly created) feed instance.
|
|
46
|
+
* @throws If the created feed is only partially initialized.
|
|
47
|
+
**/
|
|
48
|
+
upsert(data: PriceFeedTreeNode): IPriceFeedContract;
|
|
49
|
+
/**
|
|
50
|
+
* Instantiates the appropriate price feed contract wrapper based on
|
|
51
|
+
* the `contractType` discriminator in the node's base params.
|
|
52
|
+
*
|
|
53
|
+
* @param data - Partial or full price feed tree node.
|
|
54
|
+
* @returns A new (uncached) feed contract instance.
|
|
55
|
+
* @throws If the contract type is unsupported and strict mode is enabled.
|
|
56
|
+
**/
|
|
57
|
+
create(data: PartialPriceFeedTreeNode): IPriceFeedContract;
|
|
58
|
+
}
|
|
59
|
+
//#endregion
|
|
60
|
+
export { PriceFeedRegistry };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PartialPriceFeedTreeNode } from "../AbstractPriceFeed.js";
|
|
2
|
+
import { AbstractLPPriceFeedContract } from "../AbstractLPPriceFeed.js";
|
|
3
|
+
import { bptStablePriceFeedAbi } from "../../../abi/oracles.js";
|
|
4
|
+
import "../../../abi/index.js";
|
|
5
|
+
import { ConstructOptions } from "../../../base/Construct.js";
|
|
6
|
+
//#region src/onchain/market/pricefeeds/feeds/BalancerStablePriceFeed.d.ts
|
|
7
|
+
type abi = typeof bptStablePriceFeedAbi;
|
|
8
|
+
declare class BalancerStablePriceFeedContract extends AbstractLPPriceFeedContract<abi> {
|
|
9
|
+
constructor(options: ConstructOptions, args: PartialPriceFeedTreeNode);
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { BalancerStablePriceFeedContract };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { BalancerWeightedPriceFeedStateHuman } from "
|
|
2
|
-
import { PartialPriceFeedTreeNode } from "
|
|
3
|
-
import { AbstractLPPriceFeedContract } from "
|
|
4
|
-
import { bptWeightedPriceFeedAbi } from "
|
|
5
|
-
import "
|
|
6
|
-
import { ConstructOptions } from "
|
|
1
|
+
import { BalancerWeightedPriceFeedStateHuman } from "../../../types/state-human.js";
|
|
2
|
+
import { PartialPriceFeedTreeNode } from "../AbstractPriceFeed.js";
|
|
3
|
+
import { AbstractLPPriceFeedContract } from "../AbstractLPPriceFeed.js";
|
|
4
|
+
import { bptWeightedPriceFeedAbi } from "../../../abi/oracles.js";
|
|
5
|
+
import "../../../abi/index.js";
|
|
6
|
+
import { ConstructOptions } from "../../../base/Construct.js";
|
|
7
7
|
import { Address, Hex, UnionOmit } from "viem";
|
|
8
|
-
//#region src/onchain/market/pricefeeds/BalancerWeightedPriceFeed.d.ts
|
|
8
|
+
//#region src/onchain/market/pricefeeds/feeds/BalancerWeightedPriceFeed.d.ts
|
|
9
9
|
type abi = typeof bptWeightedPriceFeedAbi;
|
|
10
10
|
declare class BalancerWeightedPriceFeedContract extends AbstractLPPriceFeedContract<abi> {
|
|
11
11
|
readonly vault: Address;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BoundedOracleStateHuman } from "../../../types/state-human.js";
|
|
2
|
+
import { AbstractPriceFeedContract, PartialPriceFeedTreeNode } from "../AbstractPriceFeed.js";
|
|
3
|
+
import { boundedPriceFeedAbi } from "../../../abi/oracles.js";
|
|
4
|
+
import "../../../abi/index.js";
|
|
5
|
+
import { ConstructOptions } from "../../../base/Construct.js";
|
|
6
|
+
import "../../../types/index.js";
|
|
7
|
+
//#region src/onchain/market/pricefeeds/feeds/BoundedPriceFeed.d.ts
|
|
8
|
+
type abi = typeof boundedPriceFeedAbi;
|
|
9
|
+
declare class BoundedPriceFeedContract extends AbstractPriceFeedContract<abi> {
|
|
10
|
+
readonly upperBound: bigint;
|
|
11
|
+
constructor(options: ConstructOptions, args: PartialPriceFeedTreeNode);
|
|
12
|
+
stateHuman(raw?: boolean): Omit<BoundedOracleStateHuman, "stalenessPeriod">;
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { BoundedPriceFeedContract };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { PriceFeedRef } from "
|
|
2
|
-
import { AbstractPriceFeedContract, PartialPriceFeedTreeNode } from "
|
|
3
|
-
import { compositePriceFeedAbi } from "
|
|
4
|
-
import "
|
|
5
|
-
import { ConstructOptions } from "
|
|
6
|
-
//#region src/onchain/market/pricefeeds/CompositePriceFeed.d.ts
|
|
1
|
+
import { PriceFeedRef } from "../PriceFeedRef.js";
|
|
2
|
+
import { AbstractPriceFeedContract, PartialPriceFeedTreeNode } from "../AbstractPriceFeed.js";
|
|
3
|
+
import { compositePriceFeedAbi } from "../../../abi/oracles.js";
|
|
4
|
+
import "../../../abi/index.js";
|
|
5
|
+
import { ConstructOptions } from "../../../base/Construct.js";
|
|
6
|
+
//#region src/onchain/market/pricefeeds/feeds/CompositePriceFeed.d.ts
|
|
7
7
|
type abi = typeof compositePriceFeedAbi;
|
|
8
8
|
declare class CompositePriceFeedContract extends AbstractPriceFeedContract<abi> {
|
|
9
9
|
constructor(options: ConstructOptions, args: PartialPriceFeedTreeNode);
|
package/dist/types/onchain/market/pricefeeds/{ConstantPriceFeed.d.ts → feeds/ConstantPriceFeed.d.ts}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ConstantOracleStateHuman } from "
|
|
2
|
-
import { AbstractPriceFeedContract, PartialPriceFeedTreeNode } from "
|
|
3
|
-
import { constantPriceFeedAbi } from "
|
|
4
|
-
import { ConstructOptions } from "
|
|
5
|
-
import "
|
|
6
|
-
//#region src/onchain/market/pricefeeds/ConstantPriceFeed.d.ts
|
|
1
|
+
import { ConstantOracleStateHuman } from "../../../types/state-human.js";
|
|
2
|
+
import { AbstractPriceFeedContract, PartialPriceFeedTreeNode } from "../AbstractPriceFeed.js";
|
|
3
|
+
import { constantPriceFeedAbi } from "../../../abi/oracles.js";
|
|
4
|
+
import { ConstructOptions } from "../../../base/Construct.js";
|
|
5
|
+
import "../../../types/index.js";
|
|
6
|
+
//#region src/onchain/market/pricefeeds/feeds/ConstantPriceFeed.d.ts
|
|
7
7
|
type abi = typeof constantPriceFeedAbi;
|
|
8
8
|
declare class ConstantPriceFeedContract extends AbstractPriceFeedContract<abi> {
|
|
9
9
|
readonly price: bigint;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PartialPriceFeedTreeNode } from "../AbstractPriceFeed.js";
|
|
2
|
+
import { AbstractLPPriceFeedContract } from "../AbstractLPPriceFeed.js";
|
|
3
|
+
import { curveCryptoLpPriceFeedAbi } from "../../../abi/oracles.js";
|
|
4
|
+
import "../../../abi/index.js";
|
|
5
|
+
import { ConstructOptions } from "../../../base/Construct.js";
|
|
6
|
+
//#region src/onchain/market/pricefeeds/feeds/CurveCryptoPriceFeed.d.ts
|
|
7
|
+
type abi = typeof curveCryptoLpPriceFeedAbi;
|
|
8
|
+
declare class CurveCryptoPriceFeedContract extends AbstractLPPriceFeedContract<abi> {
|
|
9
|
+
constructor(options: ConstructOptions, args: PartialPriceFeedTreeNode);
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { CurveCryptoPriceFeedContract };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PartialPriceFeedTreeNode } from "../AbstractPriceFeed.js";
|
|
2
|
+
import { AbstractLPPriceFeedContract } from "../AbstractLPPriceFeed.js";
|
|
3
|
+
import { curveStableLpPriceFeedAbi } from "../../../abi/oracles.js";
|
|
4
|
+
import "../../../abi/index.js";
|
|
5
|
+
import { ConstructOptions } from "../../../base/Construct.js";
|
|
6
|
+
//#region src/onchain/market/pricefeeds/feeds/CurveStablePriceFeed.d.ts
|
|
7
|
+
type abi = typeof curveStableLpPriceFeedAbi;
|
|
8
|
+
declare class CurveStablePriceFeedContract extends AbstractLPPriceFeedContract<abi> {
|
|
9
|
+
constructor(options: ConstructOptions, args: PartialPriceFeedTreeNode);
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { CurveStablePriceFeedContract };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PartialPriceFeedTreeNode } from "../AbstractPriceFeed.js";
|
|
2
|
+
import { AbstractLPPriceFeedContract } from "../AbstractLPPriceFeed.js";
|
|
3
|
+
import { curveUsdPriceFeedAbi } from "../../../abi/oracles.js";
|
|
4
|
+
import "../../../abi/index.js";
|
|
5
|
+
import { ConstructOptions } from "../../../base/Construct.js";
|
|
6
|
+
//#region src/onchain/market/pricefeeds/feeds/CurveUSDPriceFeed.d.ts
|
|
7
|
+
type abi = typeof curveUsdPriceFeedAbi;
|
|
8
|
+
declare class CurveUSDPriceFeedContract extends AbstractLPPriceFeedContract<abi> {
|
|
9
|
+
constructor(options: ConstructOptions, args: PartialPriceFeedTreeNode);
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { CurveUSDPriceFeedContract };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PartialPriceFeedTreeNode } from "../AbstractPriceFeed.js";
|
|
2
|
+
import { AbstractLPPriceFeedContract } from "../AbstractLPPriceFeed.js";
|
|
3
|
+
import { erc4626PriceFeedAbi } from "../../../abi/oracles.js";
|
|
4
|
+
import "../../../abi/index.js";
|
|
5
|
+
import { ConstructOptions } from "../../../base/Construct.js";
|
|
6
|
+
//#region src/onchain/market/pricefeeds/feeds/Erc4626PriceFeed.d.ts
|
|
7
|
+
type abi = typeof erc4626PriceFeedAbi;
|
|
8
|
+
declare class Erc4626PriceFeedContract extends AbstractLPPriceFeedContract<abi> {
|
|
9
|
+
constructor(options: ConstructOptions, args: PartialPriceFeedTreeNode);
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { Erc4626PriceFeedContract };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AbstractPriceFeedContract, PartialPriceFeedTreeNode } from "../AbstractPriceFeed.js";
|
|
2
|
+
import { chainlinkReadableAggregatorAbi } from "../../../abi/oracles.js";
|
|
3
|
+
import "../../../abi/index.js";
|
|
4
|
+
import { ConstructOptions } from "../../../base/Construct.js";
|
|
5
|
+
//#region src/onchain/market/pricefeeds/feeds/ExternalPriceFeed.d.ts
|
|
6
|
+
type abi = typeof chainlinkReadableAggregatorAbi;
|
|
7
|
+
declare class ExternalPriceFeedContract extends AbstractPriceFeedContract<abi> {
|
|
8
|
+
constructor(options: ConstructOptions, args: PartialPriceFeedTreeNode);
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { ExternalPriceFeedContract };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PartialPriceFeedTreeNode } from "../AbstractPriceFeed.js";
|
|
2
|
+
import { AbstractLPPriceFeedContract } from "../AbstractLPPriceFeed.js";
|
|
3
|
+
import { mellowLrtPriceFeedAbi } from "../../../abi/oracles.js";
|
|
4
|
+
import "../../../abi/index.js";
|
|
5
|
+
import { ConstructOptions } from "../../../base/Construct.js";
|
|
6
|
+
//#region src/onchain/market/pricefeeds/feeds/MellowLRTPriceFeed.d.ts
|
|
7
|
+
type abi = typeof mellowLrtPriceFeedAbi;
|
|
8
|
+
declare class MellowLRTPriceFeedContract extends AbstractLPPriceFeedContract<abi> {
|
|
9
|
+
constructor(options: ConstructOptions, args: PartialPriceFeedTreeNode);
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { MellowLRTPriceFeedContract };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { AbstractPriceFeedContract, PartialPriceFeedTreeNode } from "
|
|
2
|
-
import { ConstructOptions } from "
|
|
1
|
+
import { AbstractPriceFeedContract, PartialPriceFeedTreeNode } from "../AbstractPriceFeed.js";
|
|
2
|
+
import { ConstructOptions } from "../../../base/Construct.js";
|
|
3
3
|
import { Address } from "viem";
|
|
4
|
-
//#region src/onchain/market/pricefeeds/PendleTWAPPTPriceFeed.d.ts
|
|
4
|
+
//#region src/onchain/market/pricefeeds/feeds/PendleTWAPPTPriceFeed.d.ts
|
|
5
5
|
declare const abi: readonly [{
|
|
6
6
|
readonly type: "constructor";
|
|
7
7
|
readonly inputs: readonly [{
|
package/dist/types/onchain/market/pricefeeds/{PythPriceFeed.d.ts → feeds/PythPriceFeed.d.ts}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { AbstractPriceFeedContract, PartialPriceFeedTreeNode } from "
|
|
2
|
-
import { ConstructOptions } from "
|
|
1
|
+
import { AbstractPriceFeedContract, PartialPriceFeedTreeNode } from "../AbstractPriceFeed.js";
|
|
2
|
+
import { ConstructOptions } from "../../../base/Construct.js";
|
|
3
3
|
import { Address, Hex } from "viem";
|
|
4
|
-
//#region src/onchain/market/pricefeeds/PythPriceFeed.d.ts
|
|
4
|
+
//#region src/onchain/market/pricefeeds/feeds/PythPriceFeed.d.ts
|
|
5
5
|
declare const abi: readonly [{
|
|
6
6
|
readonly type: "constructor";
|
|
7
7
|
readonly inputs: readonly [{
|
package/dist/types/onchain/market/pricefeeds/{RedstonePriceFeed.d.ts → feeds/RedstonePriceFeed.d.ts}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { RedstonePriceFeedStateHuman } from "
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import "
|
|
6
|
-
import { RawTx } from "
|
|
7
|
-
import { ConstructOptions } from "
|
|
8
|
-
import "
|
|
1
|
+
import { RedstonePriceFeedStateHuman } from "../../../types/state-human.js";
|
|
2
|
+
import { AbstractPriceFeedContract, PartialPriceFeedTreeNode } from "../AbstractPriceFeed.js";
|
|
3
|
+
import { redstonePriceFeedAbi } from "../../../abi/oracles.js";
|
|
4
|
+
import "../../../abi/index.js";
|
|
5
|
+
import { IUpdatablePriceFeedContract } from "../updates/types.js";
|
|
6
|
+
import { RawTx } from "../../../types/transactions.js";
|
|
7
|
+
import { ConstructOptions } from "../../../base/Construct.js";
|
|
8
|
+
import "../../../types/index.js";
|
|
9
9
|
import { Address, Hex } from "viem";
|
|
10
|
-
//#region src/onchain/market/pricefeeds/RedstonePriceFeed.d.ts
|
|
10
|
+
//#region src/onchain/market/pricefeeds/feeds/RedstonePriceFeed.d.ts
|
|
11
11
|
type abi = typeof redstonePriceFeedAbi;
|
|
12
12
|
declare class RedstonePriceFeedContract extends AbstractPriceFeedContract<abi> implements IUpdatablePriceFeedContract {
|
|
13
13
|
readonly token: Address;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PartialPriceFeedTreeNode } from "../AbstractPriceFeed.js";
|
|
2
|
+
import { AbstractLPPriceFeedContract } from "../AbstractLPPriceFeed.js";
|
|
3
|
+
import { wstEthPriceFeedAbi } from "../../../abi/oracles.js";
|
|
4
|
+
import "../../../abi/index.js";
|
|
5
|
+
import { ConstructOptions } from "../../../base/Construct.js";
|
|
6
|
+
//#region src/onchain/market/pricefeeds/feeds/WstETHPriceFeed.d.ts
|
|
7
|
+
type abi = typeof wstEthPriceFeedAbi;
|
|
8
|
+
declare class WstETHPriceFeedContract extends AbstractLPPriceFeedContract<abi> {
|
|
9
|
+
constructor(options: ConstructOptions, args: PartialPriceFeedTreeNode);
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { WstETHPriceFeedContract };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PartialPriceFeedTreeNode } from "../AbstractPriceFeed.js";
|
|
2
|
+
import { AbstractLPPriceFeedContract } from "../AbstractLPPriceFeed.js";
|
|
3
|
+
import { yearnPriceFeedAbi } from "../../../abi/oracles.js";
|
|
4
|
+
import "../../../abi/index.js";
|
|
5
|
+
import { ConstructOptions } from "../../../base/Construct.js";
|
|
6
|
+
//#region src/onchain/market/pricefeeds/feeds/YearnPriceFeed.d.ts
|
|
7
|
+
type abi = typeof yearnPriceFeedAbi;
|
|
8
|
+
declare class YearnPriceFeedContract extends AbstractLPPriceFeedContract<abi> {
|
|
9
|
+
constructor(options: ConstructOptions, args: PartialPriceFeedTreeNode);
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { YearnPriceFeedContract };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AbstractPriceFeedContract, PartialPriceFeedTreeNode } from "../AbstractPriceFeed.js";
|
|
2
|
+
import { zeroPriceFeedAbi } from "../../../abi/oracles.js";
|
|
3
|
+
import "../../../abi/index.js";
|
|
4
|
+
import { ConstructOptions } from "../../../base/Construct.js";
|
|
5
|
+
//#region src/onchain/market/pricefeeds/feeds/ZeroPriceFeed.d.ts
|
|
6
|
+
type abi = typeof zeroPriceFeedAbi;
|
|
7
|
+
declare class ZeroPriceFeedContract extends AbstractPriceFeedContract<abi> {
|
|
8
|
+
constructor(options: ConstructOptions, args: PartialPriceFeedTreeNode);
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { ZeroPriceFeedContract };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BalancerStablePriceFeedContract } from "./BalancerStablePriceFeed.js";
|
|
2
|
+
import { BalancerWeightedPriceFeedContract } from "./BalancerWeightedPriceFeed.js";
|
|
3
|
+
import { BoundedPriceFeedContract } from "./BoundedPriceFeed.js";
|
|
4
|
+
import { CompositePriceFeedContract } from "./CompositePriceFeed.js";
|
|
5
|
+
import { ConstantPriceFeedContract } from "./ConstantPriceFeed.js";
|
|
6
|
+
import { CurveCryptoPriceFeedContract } from "./CurveCryptoPriceFeed.js";
|
|
7
|
+
import { CurveStablePriceFeedContract } from "./CurveStablePriceFeed.js";
|
|
8
|
+
import { CurveUSDPriceFeedContract } from "./CurveUSDPriceFeed.js";
|
|
9
|
+
import { Erc4626PriceFeedContract } from "./Erc4626PriceFeed.js";
|
|
10
|
+
import { ExternalPriceFeedContract } from "./ExternalPriceFeed.js";
|
|
11
|
+
import { MellowLRTPriceFeedContract } from "./MellowLRTPriceFeed.js";
|
|
12
|
+
import { PendleTWAPPTPriceFeed } from "./PendleTWAPPTPriceFeed.js";
|
|
13
|
+
import { PythPriceFeed } from "./PythPriceFeed.js";
|
|
14
|
+
import { RedstonePriceFeedContract } from "./RedstonePriceFeed.js";
|
|
15
|
+
import { WstETHPriceFeedContract } from "./WstETHPriceFeed.js";
|
|
16
|
+
import { YearnPriceFeedContract } from "./YearnPriceFeed.js";
|
|
17
|
+
import { ZeroPriceFeedContract } from "./ZeroPriceFeed.js";
|
|
18
|
+
export { BalancerStablePriceFeedContract, BalancerWeightedPriceFeedContract, BoundedPriceFeedContract, CompositePriceFeedContract, ConstantPriceFeedContract, CurveCryptoPriceFeedContract, CurveStablePriceFeedContract, CurveUSDPriceFeedContract, Erc4626PriceFeedContract, ExternalPriceFeedContract, MellowLRTPriceFeedContract, PendleTWAPPTPriceFeed, PythPriceFeed, RedstonePriceFeedContract, WstETHPriceFeedContract, YearnPriceFeedContract, ZeroPriceFeedContract };
|
|
@@ -1,27 +1,33 @@
|
|
|
1
|
-
import { IPriceFeedContract,
|
|
1
|
+
import { IPriceFeedContract, PriceFeedContractType, PriceFeedUsageType, PriceUpdate } from "./types.js";
|
|
2
2
|
import { PriceFeedRef } from "./PriceFeedRef.js";
|
|
3
3
|
import { AbstractPriceFeedContract, PartialPriceFeedInitError, PartialPriceFeedTreeNode, PriceFeedConstructorArgs } from "./AbstractPriceFeed.js";
|
|
4
4
|
import { AbstractLPPriceFeedContract, isLPPriceFeed } from "./AbstractLPPriceFeed.js";
|
|
5
|
-
import { BalancerStablePriceFeedContract } from "./BalancerStablePriceFeed.js";
|
|
6
|
-
import { BalancerWeightedPriceFeedContract } from "./BalancerWeightedPriceFeed.js";
|
|
7
|
-
import { BoundedPriceFeedContract } from "./BoundedPriceFeed.js";
|
|
8
|
-
import { CompositePriceFeedContract } from "./CompositePriceFeed.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
5
|
+
import { BalancerStablePriceFeedContract } from "./feeds/BalancerStablePriceFeed.js";
|
|
6
|
+
import { BalancerWeightedPriceFeedContract } from "./feeds/BalancerWeightedPriceFeed.js";
|
|
7
|
+
import { BoundedPriceFeedContract } from "./feeds/BoundedPriceFeed.js";
|
|
8
|
+
import { CompositePriceFeedContract } from "./feeds/CompositePriceFeed.js";
|
|
9
|
+
import { ConstantPriceFeedContract } from "./feeds/ConstantPriceFeed.js";
|
|
10
|
+
import { CurveCryptoPriceFeedContract } from "./feeds/CurveCryptoPriceFeed.js";
|
|
11
|
+
import { CurveStablePriceFeedContract } from "./feeds/CurveStablePriceFeed.js";
|
|
12
|
+
import { CurveUSDPriceFeedContract } from "./feeds/CurveUSDPriceFeed.js";
|
|
13
|
+
import { Erc4626PriceFeedContract } from "./feeds/Erc4626PriceFeed.js";
|
|
14
|
+
import { ExternalPriceFeedContract } from "./feeds/ExternalPriceFeed.js";
|
|
15
|
+
import { MellowLRTPriceFeedContract } from "./feeds/MellowLRTPriceFeed.js";
|
|
16
|
+
import { PendleTWAPPTPriceFeed } from "./feeds/PendleTWAPPTPriceFeed.js";
|
|
17
|
+
import { PythPriceFeed } from "./feeds/PythPriceFeed.js";
|
|
18
|
+
import { PriceUpdatesCache } from "./updates/PriceUpdatesCache.js";
|
|
19
|
+
import { RedstoneOptions, RedstoneUpdater } from "./updates/RedstoneUpdater.js";
|
|
20
|
+
import { IPriceUpdateTask, IPriceUpdater, IUpdatablePriceFeedContract, LatestUpdate, TimestampedCalldata, TimestampedCalldataWithPrice, UpdatablePriceFeedRegistryHooks, UpdatablePriceFeedRegistryOptions, UpdatePriceFeedsResult } from "./updates/types.js";
|
|
21
|
+
import { RedstonePriceFeedContract } from "./feeds/RedstonePriceFeed.js";
|
|
22
|
+
import { WstETHPriceFeedContract } from "./feeds/WstETHPriceFeed.js";
|
|
23
|
+
import { YearnPriceFeedContract } from "./feeds/YearnPriceFeed.js";
|
|
24
|
+
import { ZeroPriceFeedContract } from "./feeds/ZeroPriceFeed.js";
|
|
25
|
+
import "./feeds/index.js";
|
|
26
|
+
import { PriceFeedRegistry } from "./PriceFeedRegistry.js";
|
|
19
27
|
import { FetchRedstonePayloadsOptions, fetchRedstonePayloads } from "./updates/fetchRedstonePayloads.js";
|
|
28
|
+
import { getRawPriceUpdates } from "./updates/getRawPriceUpdates.js";
|
|
29
|
+
import { isUpdatablePriceFeed } from "./updates/isUpdatablePriceFeed.js";
|
|
30
|
+
import { UpdatablePriceFeedRegistry } from "./updates/UpdatablePriceFeedRegistry.js";
|
|
31
|
+
import { updatableDependencies } from "./updates/updatableDependencies.js";
|
|
20
32
|
import "./updates/index.js";
|
|
21
|
-
|
|
22
|
-
import { PythPriceFeed } from "./PythPriceFeed.js";
|
|
23
|
-
import { RedstonePriceFeedContract } from "./RedstonePriceFeed.js";
|
|
24
|
-
import { WstETHPriceFeedContract } from "./WstETHPriceFeed.js";
|
|
25
|
-
import { YearnPriceFeedContract } from "./YearnPriceFeed.js";
|
|
26
|
-
import { ZeroPriceFeedContract } from "./ZeroPriceFeed.js";
|
|
27
|
-
export { AbstractLPPriceFeedContract, AbstractPriceFeedContract, BalancerStablePriceFeedContract, BalancerWeightedPriceFeedContract, BoundedPriceFeedContract, CompositePriceFeedContract, CurveCryptoPriceFeedContract, CurveStablePriceFeedContract, CurveUSDPriceFeedContract, Erc4626PriceFeedContract, ExternalPriceFeedContract, type FetchRedstonePayloadsOptions, IPriceFeedContract, IUpdatablePriceFeedContract, LatestUpdate, MellowLRTPriceFeedContract, PartialPriceFeedInitError, PartialPriceFeedTreeNode, PendleTWAPPTPriceFeed, PriceFeedConstructorArgs, PriceFeedContractType, PriceFeedRef, PriceFeedRegister, PriceFeedRegisterHooks, PriceFeedRegisterOptions, PriceFeedUsageType, PriceUpdate, PythPriceFeed, RedstonePriceFeedContract, type TimestampedCalldata, UpdatePriceFeedsResult, WstETHPriceFeedContract, YearnPriceFeedContract, ZeroPriceFeedContract, fetchRedstonePayloads, getRawPriceUpdates, isLPPriceFeed, isUpdatablePriceFeed };
|
|
33
|
+
export { AbstractLPPriceFeedContract, AbstractPriceFeedContract, BalancerStablePriceFeedContract, BalancerWeightedPriceFeedContract, BoundedPriceFeedContract, CompositePriceFeedContract, ConstantPriceFeedContract, CurveCryptoPriceFeedContract, CurveStablePriceFeedContract, CurveUSDPriceFeedContract, Erc4626PriceFeedContract, ExternalPriceFeedContract, FetchRedstonePayloadsOptions, IPriceFeedContract, type IPriceUpdateTask, type IPriceUpdater, type IUpdatablePriceFeedContract, type LatestUpdate, MellowLRTPriceFeedContract, PartialPriceFeedInitError, PartialPriceFeedTreeNode, PendleTWAPPTPriceFeed, PriceFeedConstructorArgs, PriceFeedContractType, PriceFeedRef, PriceFeedRegistry, PriceFeedUsageType, PriceUpdate, PriceUpdatesCache, PythPriceFeed, RedstoneOptions, RedstonePriceFeedContract, RedstoneUpdater, type TimestampedCalldata, type TimestampedCalldataWithPrice, UpdatablePriceFeedRegistry, type UpdatablePriceFeedRegistryHooks, type UpdatablePriceFeedRegistryOptions, type UpdatePriceFeedsResult, WstETHPriceFeedContract, YearnPriceFeedContract, ZeroPriceFeedContract, fetchRedstonePayloads, getRawPriceUpdates, isLPPriceFeed, isUpdatablePriceFeed, updatableDependencies };
|