@gearbox-protocol/sdk 18.5.0-next.3 → 18.5.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.
Files changed (78) hide show
  1. package/dist/cjs/onchain/abi/index.js +0 -2
  2. package/dist/cjs/onchain/abi/oracles.js +0 -617
  3. package/dist/cjs/onchain/index.js +0 -4
  4. package/dist/cjs/onchain/market/index.js +0 -4
  5. package/dist/cjs/onchain/market/pricefeeds/PriceFeedRegistry.js +0 -4
  6. package/dist/cjs/onchain/market/pricefeeds/feeds/index.js +0 -4
  7. package/dist/cjs/onchain/market/pricefeeds/index.js +0 -4
  8. package/dist/cjs/permissionless/bindings/price-feed-store.js +0 -1
  9. package/dist/cjs/permissionless/bindings/pricefeeds/index.js +3 -7
  10. package/dist/cjs/sdk/execute/ExecuteApi.js +41 -0
  11. package/dist/cjs/testnets/TestnetsAPI.js +178 -0
  12. package/dist/cjs/testnets/errors/TestnetNotFoundError.js +14 -0
  13. package/dist/cjs/testnets/errors/TestnetRequestFailedError.js +23 -0
  14. package/dist/cjs/testnets/errors/TestnetStatusError.js +18 -0
  15. package/dist/cjs/testnets/errors/TestnetValidationError.js +23 -0
  16. package/dist/cjs/testnets/errors/TestnetWaitTimeoutError.js +29 -0
  17. package/dist/cjs/testnets/errors/TestnetsError.js +33 -0
  18. package/dist/cjs/testnets/errors/index.js +13 -0
  19. package/dist/cjs/testnets/index.js +32 -0
  20. package/dist/cjs/testnets/package.json +1 -0
  21. package/dist/cjs/testnets/schemas.js +241 -0
  22. package/dist/cjs/testnets/types.js +1 -0
  23. package/dist/esm/onchain/abi/index.js +1 -1
  24. package/dist/esm/onchain/abi/oracles.js +1 -616
  25. package/dist/esm/onchain/index.js +1 -3
  26. package/dist/esm/onchain/market/index.js +1 -3
  27. package/dist/esm/onchain/market/pricefeeds/PriceFeedRegistry.js +0 -4
  28. package/dist/esm/onchain/market/pricefeeds/feeds/index.js +1 -3
  29. package/dist/esm/onchain/market/pricefeeds/index.js +1 -3
  30. package/dist/esm/permissionless/bindings/price-feed-store.js +0 -1
  31. package/dist/esm/permissionless/bindings/pricefeeds/index.js +3 -7
  32. package/dist/esm/sdk/execute/ExecuteApi.js +41 -0
  33. package/dist/esm/testnets/TestnetsAPI.js +177 -0
  34. package/dist/esm/testnets/errors/TestnetNotFoundError.js +13 -0
  35. package/dist/esm/testnets/errors/TestnetRequestFailedError.js +22 -0
  36. package/dist/esm/testnets/errors/TestnetStatusError.js +17 -0
  37. package/dist/esm/testnets/errors/TestnetValidationError.js +22 -0
  38. package/dist/esm/testnets/errors/TestnetWaitTimeoutError.js +28 -0
  39. package/dist/esm/testnets/errors/TestnetsError.js +32 -0
  40. package/dist/esm/testnets/errors/index.js +7 -0
  41. package/dist/esm/testnets/index.js +11 -0
  42. package/dist/esm/testnets/package.json +1 -0
  43. package/dist/esm/testnets/schemas.js +227 -0
  44. package/dist/esm/testnets/types.js +1 -0
  45. package/dist/types/onchain/abi/index.d.ts +2 -2
  46. package/dist/types/onchain/abi/oracles.d.ts +0 -536
  47. package/dist/types/onchain/index.d.ts +1 -3
  48. package/dist/types/onchain/market/index.d.ts +1 -3
  49. package/dist/types/onchain/market/pricefeeds/feeds/index.d.ts +1 -3
  50. package/dist/types/onchain/market/pricefeeds/index.d.ts +1 -3
  51. package/dist/types/onchain/market/pricefeeds/types.d.ts +1 -1
  52. package/dist/types/permissionless/core/pricefeed-builder.d.ts +0 -2
  53. package/dist/types/sdk/execute/ExecuteApi.d.ts +8 -0
  54. package/dist/types/sdk/execute/types.d.ts +14 -0
  55. package/dist/types/testnets/TestnetsAPI.d.ts +106 -0
  56. package/dist/types/testnets/errors/TestnetNotFoundError.d.ts +10 -0
  57. package/dist/types/testnets/errors/TestnetRequestFailedError.d.ts +9 -0
  58. package/dist/types/testnets/errors/TestnetStatusError.d.ts +13 -0
  59. package/dist/types/testnets/errors/TestnetValidationError.d.ts +14 -0
  60. package/dist/types/testnets/errors/TestnetWaitTimeoutError.d.ts +19 -0
  61. package/dist/types/testnets/errors/TestnetsError.d.ts +45 -0
  62. package/dist/types/testnets/errors/index.d.ts +7 -0
  63. package/dist/types/testnets/index.d.ts +17 -0
  64. package/dist/types/testnets/schemas.d.ts +552 -0
  65. package/dist/types/testnets/types.d.ts +715 -0
  66. package/package.json +6 -1
  67. package/dist/cjs/onchain/market/pricefeeds/feeds/FixedRateWindowPriceFeed.js +0 -15
  68. package/dist/cjs/onchain/market/pricefeeds/feeds/MedianPriceFeed.js +0 -15
  69. package/dist/cjs/permissionless/bindings/pricefeeds/fix-rate-window.js +0 -53
  70. package/dist/cjs/permissionless/bindings/pricefeeds/median.js +0 -22
  71. package/dist/esm/onchain/market/pricefeeds/feeds/FixedRateWindowPriceFeed.js +0 -14
  72. package/dist/esm/onchain/market/pricefeeds/feeds/MedianPriceFeed.js +0 -14
  73. package/dist/esm/permissionless/bindings/pricefeeds/fix-rate-window.js +0 -52
  74. package/dist/esm/permissionless/bindings/pricefeeds/median.js +0 -21
  75. package/dist/types/onchain/market/pricefeeds/feeds/FixedRateWindowPriceFeed.d.ts +0 -9
  76. package/dist/types/onchain/market/pricefeeds/feeds/MedianPriceFeed.d.ts +0 -9
  77. package/dist/types/permissionless/bindings/pricefeeds/fix-rate-window.d.ts +0 -3
  78. package/dist/types/permissionless/bindings/pricefeeds/median.d.ts +0 -3
@@ -121,8 +121,6 @@ import { CurveStablePriceFeedContract } from "./pricefeeds/feeds/CurveStablePric
121
121
  import { CurveUSDPriceFeedContract } from "./pricefeeds/feeds/CurveUSDPriceFeed.js";
122
122
  import { Erc4626PriceFeedContract } from "./pricefeeds/feeds/Erc4626PriceFeed.js";
123
123
  import { ExternalPriceFeedContract } from "./pricefeeds/feeds/ExternalPriceFeed.js";
124
- import { FixedRateWindowPriceFeedContract } from "./pricefeeds/feeds/FixedRateWindowPriceFeed.js";
125
- import { MedianPriceFeedContract } from "./pricefeeds/feeds/MedianPriceFeed.js";
126
124
  import { MellowLRTPriceFeedContract } from "./pricefeeds/feeds/MellowLRTPriceFeed.js";
127
125
  import { PendleTWAPPTPriceFeed } from "./pricefeeds/feeds/PendleTWAPPTPriceFeed.js";
128
126
  import { PythPriceFeed } from "./pricefeeds/feeds/PythPriceFeed.js";
@@ -160,4 +158,4 @@ import { RWARegistry, RWA_COMPRESSOR_ADDRESS } from "./rwa/RWARegistry.js";
160
158
  import { isRWAFactory } from "./rwa/types.js";
161
159
  import "./types.js";
162
160
  import "./zapper/index.js";
163
- export { AbstractAdapterContract, AbstractLPPriceFeedContract, AbstractPriceFeedContract, AccountMigratorAdapterContract, AdapterType, BalancerStablePriceFeedContract, BalancerV3PoolStatus, BalancerV3RouterAdapterContract, BalancerV3WrapperAdapterContract, BalancerWeightedPriceFeedContract, BoundedPriceFeedContract, CamelotV3AdapterContract, CompositePriceFeedContract, ConstantPriceFeedContract, ConvexV1BaseRewardPoolAdapterContract, ConvexV1BoosterAdapterContract, CreditConfiguratorV310Contract, CreditFacadeV310BaseContract, CreditFacadeV310Contract, CreditManagerV310Contract, CreditSuite, CreditSuiteStrategy, Curve2AssetsAdapterContract, Curve3AssetsAdapterContract, Curve4AssetsAdapterContract, CurveCryptoPriceFeedContract, CurveStablePriceFeedContract, CurveUSDPriceFeedContract, CurveV1AdapterStETHContract, CurveV1StableNGAdapterContract, DEFAULT_QUOTA_BUFFER_BPS, DEGEN_NFT_MIDAS, DEGEN_NFT_SECURITIZE, DaiUsdsAdapterContract, ERC4626AdapterContract, ERC4626ReferralAdapterContract, Erc4626PriceFeedContract, ExternalPriceFeedContract, FixedRateWindowPriceFeedContract, FluidDexAdapterContract, GaugeContract, IERC20ZapperContract, IETHZapperContract, InfinifiGatewayAdapterContract, InfinifiUnwindingGatewayAdapterContract, KelpLRTDepositPoolAdapterContract, KelpLRTWithdrawalManagerAdapterContract, LidoV1AdapterContract, LinearInterestRateModelContract, MAX_LEVERAGE_BUFFER_BPS, MarketRegister, MarketSuite, MedianPriceFeedContract, MellowClaimerAdapterContract, MellowDVVAdapterContract, MellowERC4626VaultAdapterContract, MellowLRTPriceFeedContract, MellowWrapperAdapterContract, MidasDegenNFT, MidasGatewayAdapterContract, MidasIssuanceVaultAdapterContract, MidasLiquidatorContract, MidasRedemptionVaultAdapterContract, PARTIAL_LIQUIDATION_BUFFER_BPS, PHANTOM_TOKEN_MIDAS_REDEMPTION, PHANTOM_TOKEN_SECURITIZE_REDEMPTION, PartialPriceFeedInitError, PendlePairStatus, PendleRouterAdapterContract, PendleTWAPPTPriceFeed, PendleTokenType, PoolSuite, PoolV310Contract, PriceFeedRef, PriceFeedRegistry, PriceOracleV310Contract, PriceUpdatesCache, PythPriceFeed, RWARegistry, RWA_COMPRESSOR_ADDRESS, RWA_LIQUIDATOR_MIDAS, RWA_LIQUIDATOR_SECURITIZE, RedstonePriceFeedContract, SecuritizeDegenNFT, SecuritizeLiquidatorContract, SecuritizeOnRampAdapterContract, SecuritizeRWAFactory, SecuritizeRedemptionGatewayAdapterContract, StakingRewardsAdapterContract, TraderJoePoolVersion, TraderJoeRouterAdapterContract, TreehouseFastlaneAdapterContract, TreehouseRedemptionGatewayAdapterContract, TreehouseRouterAdapterContract, UniswapV2AdapterContract, UniswapV3AdapterContract, UniswapV4AdapterContract, UpdatablePriceFeedRegistry, UpshiftVaultAdapterContract, VelodromeV2RouterAdapterContract, WstETHPriceFeedContract, WstETHV1AdapterContract, YearnPriceFeedContract, ZapperContract, ZeroPriceFeedContract, adapterActionAbi, adapterActionSelectors, adapterActionSignatures, adapterConstructorAbi, allTransfersAsTokenAmounts, bpsToRay, calcBorrowApy, calcEffectiveBorrowApy, calcMaxLeverage, calcNetStrategyApy, calcPositionLeverage, calcQuotaRate, calcUtilization, calcUtilizationRaw, classifyCurveOperation, collateralPriceInUnderlying, createAdapter, createPriceOracle, createZapper, abi as creditFacadeV310Abi, curveAddLiquidityFromTransfers, curveRemoveLiquidityFromTransfers, dominantCollateral, erc4626ReferralAdapterAbi, expectedBalanceDeltas, 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, iTreehouseFastlaneAbi, iTreehouseFastlaneAdapterAbi, iTreehouseRedemptionGatewayAbi, iTreehouseRedemptionGatewayAdapterAbi, iTreehouseRouterAbi, iTreehouseRouterAdapterAbi, iUniswapV2AdapterAbi, iUniswapV2Router02Abi, iUniswapV3Abi, iUniswapV3AdapterAbi, iUniswapV4AdapterAbi, iUniswapV4GatewayAbi, iUpshiftVaultAdapterAbi, iUpshiftVaultGatewayAbi, iVelodromeV2RouterAbi, iVelodromeV2RouterAdapterAbi, isLPPriceFeed, isRWAFactory, isStrategyCollateral, isUpdatablePriceFeed, iwstETHAbi, iwstEthv1AdapterAbi, lidoV1_WETHGatewayAbi, mellowDvvAdapterAbi, minSeizedAmount, optimalHFForPartialLiquidation, optimalPartialLiquidationAmounts, parseAdapterAction, parseAdapterDeployParams, parsePosNegAmount, pickStrategyTargetCollateral, rayToBps, rewardsFromTransfers, strategyName, swapFromTransfers, toNetTransfers, updatableDependencies, usdToNumber };
161
+ export { AbstractAdapterContract, AbstractLPPriceFeedContract, AbstractPriceFeedContract, AccountMigratorAdapterContract, AdapterType, BalancerStablePriceFeedContract, BalancerV3PoolStatus, BalancerV3RouterAdapterContract, BalancerV3WrapperAdapterContract, BalancerWeightedPriceFeedContract, BoundedPriceFeedContract, CamelotV3AdapterContract, CompositePriceFeedContract, ConstantPriceFeedContract, ConvexV1BaseRewardPoolAdapterContract, ConvexV1BoosterAdapterContract, CreditConfiguratorV310Contract, CreditFacadeV310BaseContract, CreditFacadeV310Contract, CreditManagerV310Contract, CreditSuite, CreditSuiteStrategy, Curve2AssetsAdapterContract, Curve3AssetsAdapterContract, Curve4AssetsAdapterContract, CurveCryptoPriceFeedContract, CurveStablePriceFeedContract, CurveUSDPriceFeedContract, CurveV1AdapterStETHContract, CurveV1StableNGAdapterContract, DEFAULT_QUOTA_BUFFER_BPS, DEGEN_NFT_MIDAS, DEGEN_NFT_SECURITIZE, DaiUsdsAdapterContract, ERC4626AdapterContract, ERC4626ReferralAdapterContract, Erc4626PriceFeedContract, ExternalPriceFeedContract, FluidDexAdapterContract, GaugeContract, IERC20ZapperContract, IETHZapperContract, InfinifiGatewayAdapterContract, InfinifiUnwindingGatewayAdapterContract, KelpLRTDepositPoolAdapterContract, KelpLRTWithdrawalManagerAdapterContract, LidoV1AdapterContract, LinearInterestRateModelContract, MAX_LEVERAGE_BUFFER_BPS, MarketRegister, MarketSuite, MellowClaimerAdapterContract, MellowDVVAdapterContract, MellowERC4626VaultAdapterContract, MellowLRTPriceFeedContract, MellowWrapperAdapterContract, MidasDegenNFT, MidasGatewayAdapterContract, MidasIssuanceVaultAdapterContract, MidasLiquidatorContract, MidasRedemptionVaultAdapterContract, PARTIAL_LIQUIDATION_BUFFER_BPS, PHANTOM_TOKEN_MIDAS_REDEMPTION, PHANTOM_TOKEN_SECURITIZE_REDEMPTION, PartialPriceFeedInitError, PendlePairStatus, PendleRouterAdapterContract, PendleTWAPPTPriceFeed, PendleTokenType, PoolSuite, PoolV310Contract, PriceFeedRef, PriceFeedRegistry, PriceOracleV310Contract, PriceUpdatesCache, PythPriceFeed, RWARegistry, RWA_COMPRESSOR_ADDRESS, RWA_LIQUIDATOR_MIDAS, RWA_LIQUIDATOR_SECURITIZE, RedstonePriceFeedContract, SecuritizeDegenNFT, SecuritizeLiquidatorContract, SecuritizeOnRampAdapterContract, SecuritizeRWAFactory, SecuritizeRedemptionGatewayAdapterContract, StakingRewardsAdapterContract, TraderJoePoolVersion, TraderJoeRouterAdapterContract, TreehouseFastlaneAdapterContract, TreehouseRedemptionGatewayAdapterContract, TreehouseRouterAdapterContract, UniswapV2AdapterContract, UniswapV3AdapterContract, UniswapV4AdapterContract, UpdatablePriceFeedRegistry, UpshiftVaultAdapterContract, VelodromeV2RouterAdapterContract, WstETHPriceFeedContract, WstETHV1AdapterContract, YearnPriceFeedContract, ZapperContract, ZeroPriceFeedContract, adapterActionAbi, adapterActionSelectors, adapterActionSignatures, adapterConstructorAbi, allTransfersAsTokenAmounts, bpsToRay, calcBorrowApy, calcEffectiveBorrowApy, calcMaxLeverage, calcNetStrategyApy, calcPositionLeverage, calcQuotaRate, calcUtilization, calcUtilizationRaw, classifyCurveOperation, collateralPriceInUnderlying, createAdapter, createPriceOracle, createZapper, abi as creditFacadeV310Abi, curveAddLiquidityFromTransfers, curveRemoveLiquidityFromTransfers, dominantCollateral, erc4626ReferralAdapterAbi, expectedBalanceDeltas, 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, iTreehouseFastlaneAbi, iTreehouseFastlaneAdapterAbi, iTreehouseRedemptionGatewayAbi, iTreehouseRedemptionGatewayAdapterAbi, iTreehouseRouterAbi, iTreehouseRouterAdapterAbi, iUniswapV2AdapterAbi, iUniswapV2Router02Abi, iUniswapV3Abi, iUniswapV3AdapterAbi, iUniswapV4AdapterAbi, iUniswapV4GatewayAbi, iUpshiftVaultAdapterAbi, iUpshiftVaultGatewayAbi, iVelodromeV2RouterAbi, iVelodromeV2RouterAdapterAbi, isLPPriceFeed, isRWAFactory, isStrategyCollateral, isUpdatablePriceFeed, iwstETHAbi, iwstEthv1AdapterAbi, lidoV1_WETHGatewayAbi, mellowDvvAdapterAbi, minSeizedAmount, optimalHFForPartialLiquidation, optimalPartialLiquidationAmounts, parseAdapterAction, parseAdapterDeployParams, parsePosNegAmount, pickStrategyTargetCollateral, rayToBps, rewardsFromTransfers, strategyName, swapFromTransfers, toNetTransfers, updatableDependencies, usdToNumber };
@@ -14,8 +14,6 @@ import { CurveStablePriceFeedContract } from "./feeds/CurveStablePriceFeed.js";
14
14
  import { CurveUSDPriceFeedContract } from "./feeds/CurveUSDPriceFeed.js";
15
15
  import { Erc4626PriceFeedContract } from "./feeds/Erc4626PriceFeed.js";
16
16
  import { ExternalPriceFeedContract } from "./feeds/ExternalPriceFeed.js";
17
- import { FixedRateWindowPriceFeedContract } from "./feeds/FixedRateWindowPriceFeed.js";
18
- import { MedianPriceFeedContract } from "./feeds/MedianPriceFeed.js";
19
17
  import { MellowLRTPriceFeedContract } from "./feeds/MellowLRTPriceFeed.js";
20
18
  import { PendleTWAPPTPriceFeed } from "./feeds/PendleTWAPPTPriceFeed.js";
21
19
  import { PythPriceFeed } from "./feeds/PythPriceFeed.js";
@@ -108,8 +106,6 @@ var PriceFeedRegistry = class extends SDKConstruct {
108
106
  case "PRICE_FEED::CURVE_USD": return new CurveUSDPriceFeedContract(this.sdk, data);
109
107
  case "PRICE_FEED::ERC4626": return new Erc4626PriceFeedContract(this.sdk, data);
110
108
  case "PRICE_FEED::EXTERNAL": return new ExternalPriceFeedContract(this.sdk, data);
111
- case "PRICE_FEED::FIXED_RATE_WINDOW": return new FixedRateWindowPriceFeedContract(this.sdk, data);
112
- case "PRICE_FEED::MEDIAN": return new MedianPriceFeedContract(this.sdk, data);
113
109
  case "PRICE_FEED::MELLOW_LRT": return new MellowLRTPriceFeedContract(this.sdk, data);
114
110
  case "PRICE_FEED::PENDLE_PT_TWAP": return new PendleTWAPPTPriceFeed(this.sdk, data);
115
111
  case "PRICE_FEED::PYTH": return new PythPriceFeed(this.sdk, data);
@@ -8,8 +8,6 @@ import { CurveStablePriceFeedContract } from "./CurveStablePriceFeed.js";
8
8
  import { CurveUSDPriceFeedContract } from "./CurveUSDPriceFeed.js";
9
9
  import { Erc4626PriceFeedContract } from "./Erc4626PriceFeed.js";
10
10
  import { ExternalPriceFeedContract } from "./ExternalPriceFeed.js";
11
- import { FixedRateWindowPriceFeedContract } from "./FixedRateWindowPriceFeed.js";
12
- import { MedianPriceFeedContract } from "./MedianPriceFeed.js";
13
11
  import { MellowLRTPriceFeedContract } from "./MellowLRTPriceFeed.js";
14
12
  import { PendleTWAPPTPriceFeed } from "./PendleTWAPPTPriceFeed.js";
15
13
  import { PythPriceFeed } from "./PythPriceFeed.js";
@@ -17,4 +15,4 @@ import { RedstonePriceFeedContract } from "./RedstonePriceFeed.js";
17
15
  import { WstETHPriceFeedContract } from "./WstETHPriceFeed.js";
18
16
  import { YearnPriceFeedContract } from "./YearnPriceFeed.js";
19
17
  import { ZeroPriceFeedContract } from "./ZeroPriceFeed.js";
20
- export { BalancerStablePriceFeedContract, BalancerWeightedPriceFeedContract, BoundedPriceFeedContract, CompositePriceFeedContract, ConstantPriceFeedContract, CurveCryptoPriceFeedContract, CurveStablePriceFeedContract, CurveUSDPriceFeedContract, Erc4626PriceFeedContract, ExternalPriceFeedContract, FixedRateWindowPriceFeedContract, MedianPriceFeedContract, MellowLRTPriceFeedContract, PendleTWAPPTPriceFeed, PythPriceFeed, RedstonePriceFeedContract, WstETHPriceFeedContract, YearnPriceFeedContract, ZeroPriceFeedContract };
18
+ export { BalancerStablePriceFeedContract, BalancerWeightedPriceFeedContract, BoundedPriceFeedContract, CompositePriceFeedContract, ConstantPriceFeedContract, CurveCryptoPriceFeedContract, CurveStablePriceFeedContract, CurveUSDPriceFeedContract, Erc4626PriceFeedContract, ExternalPriceFeedContract, MellowLRTPriceFeedContract, PendleTWAPPTPriceFeed, PythPriceFeed, RedstonePriceFeedContract, WstETHPriceFeedContract, YearnPriceFeedContract, ZeroPriceFeedContract };
@@ -11,8 +11,6 @@ import { CurveStablePriceFeedContract } from "./feeds/CurveStablePriceFeed.js";
11
11
  import { CurveUSDPriceFeedContract } from "./feeds/CurveUSDPriceFeed.js";
12
12
  import { Erc4626PriceFeedContract } from "./feeds/Erc4626PriceFeed.js";
13
13
  import { ExternalPriceFeedContract } from "./feeds/ExternalPriceFeed.js";
14
- import { FixedRateWindowPriceFeedContract } from "./feeds/FixedRateWindowPriceFeed.js";
15
- import { MedianPriceFeedContract } from "./feeds/MedianPriceFeed.js";
16
14
  import { MellowLRTPriceFeedContract } from "./feeds/MellowLRTPriceFeed.js";
17
15
  import { PendleTWAPPTPriceFeed } from "./feeds/PendleTWAPPTPriceFeed.js";
18
16
  import { PythPriceFeed } from "./feeds/PythPriceFeed.js";
@@ -29,4 +27,4 @@ import { PriceUpdatesCache } from "./updates/PriceUpdatesCache.js";
29
27
  import { updatableDependencies } from "./updates/updatableDependencies.js";
30
28
  import { UpdatablePriceFeedRegistry } from "./updates/UpdatablePriceFeedRegistry.js";
31
29
  import "./updates/index.js";
32
- export { AbstractLPPriceFeedContract, AbstractPriceFeedContract, BalancerStablePriceFeedContract, BalancerWeightedPriceFeedContract, BoundedPriceFeedContract, CompositePriceFeedContract, ConstantPriceFeedContract, CurveCryptoPriceFeedContract, CurveStablePriceFeedContract, CurveUSDPriceFeedContract, Erc4626PriceFeedContract, ExternalPriceFeedContract, FixedRateWindowPriceFeedContract, MedianPriceFeedContract, MellowLRTPriceFeedContract, PartialPriceFeedInitError, PendleTWAPPTPriceFeed, PriceFeedRef, PriceFeedRegistry, PriceUpdatesCache, PythPriceFeed, RedstonePriceFeedContract, UpdatablePriceFeedRegistry, WstETHPriceFeedContract, YearnPriceFeedContract, ZeroPriceFeedContract, getRawPriceUpdates, isLPPriceFeed, isUpdatablePriceFeed, updatableDependencies };
30
+ export { AbstractLPPriceFeedContract, AbstractPriceFeedContract, BalancerStablePriceFeedContract, BalancerWeightedPriceFeedContract, BoundedPriceFeedContract, CompositePriceFeedContract, ConstantPriceFeedContract, CurveCryptoPriceFeedContract, CurveStablePriceFeedContract, CurveUSDPriceFeedContract, Erc4626PriceFeedContract, ExternalPriceFeedContract, MellowLRTPriceFeedContract, PartialPriceFeedInitError, PendleTWAPPTPriceFeed, PriceFeedRef, PriceFeedRegistry, PriceUpdatesCache, PythPriceFeed, RedstonePriceFeedContract, UpdatablePriceFeedRegistry, WstETHPriceFeedContract, YearnPriceFeedContract, ZeroPriceFeedContract, getRawPriceUpdates, isLPPriceFeed, isUpdatablePriceFeed, updatableDependencies };
@@ -156,7 +156,6 @@ var PriceFeedStoreContract = class extends BaseContract {
156
156
  types.push({ type: param.type.type });
157
157
  values.push(BigInt(data[param.label]));
158
158
  break;
159
- case "uint16":
160
159
  case "uint8":
161
160
  types.push({ type: param.type.type });
162
161
  values.push(Number(data[param.label]));
@@ -9,9 +9,7 @@ import { curveTwapPriceFeed } from "./curve-twap.js";
9
9
  import { curveUsdPriceFeed } from "./curve-usd.js";
10
10
  import { erc4626PriceFeed } from "./erc4626.js";
11
11
  import { externalPriceFeed } from "./external.js";
12
- import { fixRateWindowPriceFeed } from "./fix-rate-window.js";
13
12
  import { kodiakPriceFeed } from "./kodiak.js";
14
- import { medianPriceFeed } from "./median.js";
15
13
  import { mellowLrtPriceFeed } from "./mellow-lrt.js";
16
14
  import { pendlePtTwapPriceFeed } from "./pendle-pt-twap.js";
17
15
  import { pythPriceFeed } from "./pyth.js";
@@ -23,8 +21,8 @@ const priceFeedSetupParams = [
23
21
  compositePriceFeed,
24
22
  boundedPriceFeed,
25
23
  constantPriceFeed,
26
- medianPriceFeed,
27
- fixRateWindowPriceFeed,
24
+ redstonePriceFeed,
25
+ pythPriceFeed,
28
26
  erc4626PriceFeed,
29
27
  curveCryptoPriceFeed,
30
28
  curveStablePriceFeed,
@@ -33,10 +31,8 @@ const priceFeedSetupParams = [
33
31
  mellowLrtPriceFeed,
34
32
  pendlePtTwapPriceFeed,
35
33
  kodiakPriceFeed,
36
- wstethPriceFeed,
37
34
  balancerStablePriceFeed,
38
35
  balancerWeightedPriceFeed,
39
- redstonePriceFeed,
40
- pythPriceFeed
36
+ wstethPriceFeed
41
37
  ];
42
38
  export { priceFeedSetupParams };
@@ -1,3 +1,10 @@
1
+ import { AddressMap } from "../../onchain/utils/AddressMap.js";
2
+ import "../../model/rwa.js";
3
+ import "../../model/index.js";
4
+ import { SecuritizeRWAFactory } from "../../onchain/market/rwa/securitize/SecuritizeRWAFactory.js";
5
+ import { isRWAFactory } from "../../onchain/market/rwa/types.js";
6
+ import "../../onchain/index.js";
7
+ import { decodeFunctionData, encodeFunctionData } from "viem";
1
8
  // src/sdk/execute/ExecuteApi.ts
2
9
  /**
3
10
  * {@inheritDoc IOpportunitiesExecute}
@@ -7,6 +14,40 @@ var ExecuteApi = class {
7
14
  constructor(chainOf) {
8
15
  this.#chainOf = chainOf;
9
16
  }
17
+ /** {@inheritDoc IOpportunitiesExecute.withSecuritizeSignatures} */
18
+ withSecuritizeSignatures({ tx, signatures }) {
19
+ const factory = this.#chainOf(tx.chainId).getContract(tx.to);
20
+ if (!(factory instanceof SecuritizeRWAFactory) || !isRWAFactory(factory, "RWA_FACTORY::SECURITIZE")) throw new Error(`transaction target ${tx.to} is not a Securitize RWA factory`);
21
+ const decoded = decodeFunctionData({
22
+ abi: factory.abi,
23
+ data: tx.calldata
24
+ });
25
+ if (decoded.functionName !== "openCreditAccount" && decoded.functionName !== "multicall") throw new Error(`expected openCreditAccount or multicall on SecuritizeRWAFactory ${tx.to}, got ${decoded.functionName}`);
26
+ const [target, calls, tokensToRegister, existing] = decoded.args;
27
+ const byToken = new AddressMap();
28
+ for (const message of [...existing, ...signatures]) byToken.upsert(message.token, message);
29
+ const signaturesToCache = tokensToRegister.map((token) => byToken.get(token) ?? {
30
+ token,
31
+ signature: {
32
+ deadline: 0n,
33
+ signature: "0x"
34
+ }
35
+ });
36
+ const calldata = encodeFunctionData({
37
+ abi: factory.abi,
38
+ functionName: decoded.functionName,
39
+ args: [
40
+ target,
41
+ calls,
42
+ tokensToRegister,
43
+ signaturesToCache
44
+ ]
45
+ });
46
+ return {
47
+ ...tx,
48
+ calldata
49
+ };
50
+ }
10
51
  /**
11
52
  * {@inheritDoc IOpportunitiesExecute.buildTx}
12
53
  **/
@@ -0,0 +1,177 @@
1
+ import { TestnetStatusError } from "./errors/TestnetStatusError.js";
2
+ import { TestnetNotFoundError } from "./errors/TestnetNotFoundError.js";
3
+ import { TestnetRequestFailedError } from "./errors/TestnetRequestFailedError.js";
4
+ import { TestnetValidationError } from "./errors/TestnetValidationError.js";
5
+ import { TestnetWaitTimeoutError } from "./errors/TestnetWaitTimeoutError.js";
6
+ import "./errors/index.js";
7
+ import { testnetSchema, testnetStatusSchema } from "./schemas.js";
8
+ import { z } from "zod/v4";
9
+ // src/testnets/TestnetsAPI.ts
10
+ const DEFAULT_BASE_URL = "https://anvil.gearbox.foundation";
11
+ const DEFAULT_TIMEOUT = 3e4;
12
+ const DEFAULT_WAIT_TIMEOUT = 6e5;
13
+ const DEFAULT_WAIT_INTERVAL = 5e3;
14
+ const errorBodySchema = z.object({ error: z.string() });
15
+ /**
16
+ * Client for anvil-manager, which runs the anvil forks Gearbox calls
17
+ * testnets. It manages non-persistent testnets only, addressed by their
18
+ * execution id.
19
+ *
20
+ * ```ts
21
+ * const testnets = new TestnetsAPI({ apiKey: process.env.ANVIL_MANAGER_API_KEY });
22
+ * const { executionId } = await testnets.create({ network: "Mainnet", timeout: "2h" });
23
+ * const status = await testnets.waitUntilReady(executionId);
24
+ * // ... use status.rpcUrl ...
25
+ * await testnets.kill(executionId);
26
+ * ```
27
+ *
28
+ * Every method throws a {@link TestnetsError} subclass when it fails, except
29
+ * when a response body is not JSON: then it rejects with the error of
30
+ * `response.json()`.
31
+ **/
32
+ var TestnetsAPI = class {
33
+ logger;
34
+ #baseUrl;
35
+ #apiKey;
36
+ #timeout;
37
+ constructor(options = {}) {
38
+ this.#baseUrl = (options.baseUrl ?? DEFAULT_BASE_URL).replace(/\/+$/, "");
39
+ this.#apiKey = options.apiKey;
40
+ this.#timeout = options.timeout ?? DEFAULT_TIMEOUT;
41
+ this.logger = options.logger?.child?.({ name: "TestnetsAPI" }) ?? options.logger;
42
+ }
43
+ /**
44
+ * Base URL every request of this client is sent to.
45
+ **/
46
+ get baseUrl() {
47
+ return this.#baseUrl;
48
+ }
49
+ /**
50
+ * Every testnet anvil-manager knows of, persistent ones included.
51
+ **/
52
+ async list() {
53
+ const url = this.#url("/api/v1/forks");
54
+ const response = await this.#fetch(url, { method: "GET" });
55
+ return this.#decode(url, response, z.array(testnetSchema));
56
+ }
57
+ /**
58
+ * Status of one testnet.
59
+ *
60
+ * @param id - Execution id of the testnet.
61
+ * @throws {@link TestnetNotFoundError} when there is no such testnet.
62
+ **/
63
+ async get(id) {
64
+ const url = this.#forkUrl(id);
65
+ const response = await this.#fetch(url, { method: "GET" });
66
+ return this.#decode(url, response, testnetStatusSchema);
67
+ }
68
+ /**
69
+ * Starts a testnet. It answers as soon as the testnet is created, long
70
+ * before it is {@link TestnetStatus.ready}.
71
+ *
72
+ * @param files - Saved in the testnet's shared dir, where scripts and tasks
73
+ * can read them.
74
+ **/
75
+ async create(request, files) {
76
+ const url = this.#url("/api/v1/forks");
77
+ const response = await this.#fetch(url, {
78
+ method: "POST",
79
+ ...createBody(request, files)
80
+ });
81
+ return this.#decode(url, response, testnetStatusSchema);
82
+ }
83
+ /**
84
+ * Stops a testnet. Stopping one that is already stopped succeeds.
85
+ *
86
+ * @param id - Execution id of the testnet.
87
+ * @throws {@link TestnetNotFoundError} when there is no such testnet.
88
+ * @throws {@link TestnetStatusError} with status 400 when the testnet is
89
+ * persistent.
90
+ **/
91
+ async kill(id) {
92
+ await this.#fetch(this.#forkUrl(id), { method: "DELETE" });
93
+ }
94
+ /**
95
+ * Polls a testnet's status until it is {@link TestnetStatus.ready}.
96
+ *
97
+ * @param id - Execution id of the testnet.
98
+ * @returns The first status that is ready.
99
+ * @throws {@link TestnetWaitTimeoutError} when the testnet is not ready in
100
+ * time. Any error of a poll is thrown as is, without retrying.
101
+ **/
102
+ async waitUntilReady(id, options = {}) {
103
+ const { timeout = DEFAULT_WAIT_TIMEOUT, interval = DEFAULT_WAIT_INTERVAL } = options;
104
+ const deadline = Date.now() + timeout;
105
+ while (true) {
106
+ const status = await this.get(id);
107
+ if (status.ready) return status;
108
+ const remaining = deadline - Date.now();
109
+ if (remaining <= 0) throw new TestnetWaitTimeoutError(this.#forkUrl(id), id, timeout);
110
+ this.logger?.debug(`testnet ${id} is not ready yet`);
111
+ await new Promise((resolve) => setTimeout(resolve, Math.min(interval, remaining)));
112
+ }
113
+ }
114
+ #url(path) {
115
+ return `${this.#baseUrl}${path}`;
116
+ }
117
+ #forkUrl(id) {
118
+ return this.#url(`/api/v1/forks/${encodeURIComponent(id)}`);
119
+ }
120
+ /**
121
+ * Sends one request and returns its response once it is known to be 2xx.
122
+ **/
123
+ async #fetch(url, init) {
124
+ const headers = new Headers(init.headers);
125
+ headers.set("accept", "application/json");
126
+ if (this.#apiKey) headers.set("authorization", `Bearer ${this.#apiKey}`);
127
+ let response;
128
+ try {
129
+ response = await fetch(url, {
130
+ ...init,
131
+ headers,
132
+ signal: AbortSignal.timeout(this.#timeout)
133
+ });
134
+ } catch (error) {
135
+ throw new TestnetRequestFailedError(url, error);
136
+ }
137
+ if (!response.ok) {
138
+ const responseBody = await response.text();
139
+ const details = errorBodySchema.safeParse(responseBody).data?.error;
140
+ throw response.status === 404 ? new TestnetNotFoundError(url, details) : new TestnetStatusError(url, response.status, details);
141
+ }
142
+ return response;
143
+ }
144
+ /**
145
+ * Body of a 2xx response, decoded.
146
+ **/
147
+ async #decode(url, response, schema) {
148
+ const payload = await response.json();
149
+ const parsed = schema.safeParse(payload);
150
+ if (!parsed.success) {
151
+ const error = new TestnetValidationError(url, parsed.error);
152
+ this.logger?.error(error, "anvil-manager response does not match the testnet schemas");
153
+ throw error;
154
+ }
155
+ return parsed.data;
156
+ }
157
+ };
158
+ /**
159
+ * Body and content type of a create request: JSON alone, or a multipart form
160
+ * with the JSON in its `json` field when there are files to upload.
161
+ **/
162
+ function createBody(request, files) {
163
+ const json = JSON.stringify(request);
164
+ if (!files || Object.keys(files).length === 0) return {
165
+ body: json,
166
+ headers: { "content-type": "application/json" }
167
+ };
168
+ const form = new FormData();
169
+ form.append("json", json);
170
+ for (const [name, contents] of Object.entries(files)) form.append("file", toBlob(contents), name);
171
+ return { body: form };
172
+ }
173
+ function toBlob(contents) {
174
+ if (contents instanceof Blob) return contents;
175
+ return new Blob([typeof contents === "string" ? contents : new Uint8Array(contents)]);
176
+ }
177
+ export { TestnetsAPI };
@@ -0,0 +1,13 @@
1
+ import { TestnetStatusError } from "./TestnetStatusError.js";
2
+ // src/testnets/errors/TestnetNotFoundError.ts
3
+ /**
4
+ * Thrown when anvil-manager answered 404: there is no testnet with that
5
+ * execution id.
6
+ **/
7
+ var TestnetNotFoundError = class extends TestnetStatusError {
8
+ name = "TestnetNotFoundError";
9
+ constructor(url, details) {
10
+ super(url, 404, details);
11
+ }
12
+ };
13
+ export { TestnetNotFoundError };
@@ -0,0 +1,22 @@
1
+ import { TestnetsError } from "./TestnetsError.js";
2
+ // src/testnets/errors/TestnetRequestFailedError.ts
3
+ /**
4
+ * Thrown when a request to anvil-manager never completed: the network was
5
+ * down, or it took longer than the client's timeout.
6
+ **/
7
+ var TestnetRequestFailedError = class extends TestnetsError {
8
+ name = "TestnetRequestFailedError";
9
+ constructor(url, cause) {
10
+ super(timedOut(cause) ? "The request to anvil-manager timed out." : "The request to anvil-manager failed.", {
11
+ url,
12
+ cause
13
+ });
14
+ }
15
+ };
16
+ /**
17
+ * Whether a caught value is the rejection `AbortSignal.timeout` produces.
18
+ **/
19
+ function timedOut(error) {
20
+ return error instanceof Error && error.name === "TimeoutError";
21
+ }
22
+ export { TestnetRequestFailedError };
@@ -0,0 +1,17 @@
1
+ import { TestnetsError } from "./TestnetsError.js";
2
+ // src/testnets/errors/TestnetStatusError.ts
3
+ /**
4
+ * Thrown when anvil-manager answered with a status outside the 2xx range. What
5
+ * it said about it, when it said anything, is the `details` of the error.
6
+ **/
7
+ var TestnetStatusError = class extends TestnetsError {
8
+ name = "TestnetStatusError";
9
+ constructor(url, status, details) {
10
+ super(`anvil-manager answered ${status}.`, {
11
+ url,
12
+ status,
13
+ details
14
+ });
15
+ }
16
+ };
17
+ export { TestnetStatusError };
@@ -0,0 +1,22 @@
1
+ import { TestnetsError } from "./TestnetsError.js";
2
+ import { z } from "zod/v4";
3
+ // src/testnets/errors/TestnetValidationError.ts
4
+ /**
5
+ * Thrown when anvil-manager answered, but with a payload the testnet schemas
6
+ * do not describe, i.e. the two are of different versions.
7
+ **/
8
+ var TestnetValidationError = class extends TestnetsError {
9
+ name = "TestnetValidationError";
10
+ /**
11
+ * The zod failure itself, e.g. for `z.treeifyError(error.zodError)`.
12
+ **/
13
+ zodError;
14
+ constructor(url, zodError) {
15
+ super("The anvil-manager response does not match the testnet schemas.", {
16
+ url,
17
+ metaMessages: z.prettifyError(zodError).split("\n")
18
+ });
19
+ this.zodError = zodError;
20
+ }
21
+ };
22
+ export { TestnetValidationError };
@@ -0,0 +1,28 @@
1
+ import { TestnetsError } from "./TestnetsError.js";
2
+ // src/testnets/errors/TestnetWaitTimeoutError.ts
3
+ /**
4
+ * Thrown when a testnet did not become ready before the wait for it ran out.
5
+ **/
6
+ var TestnetWaitTimeoutError = class extends TestnetsError {
7
+ name = "TestnetWaitTimeoutError";
8
+ /**
9
+ * Execution id of the testnet that was waited for.
10
+ **/
11
+ id;
12
+ /**
13
+ * How long the wait lasted, in milliseconds.
14
+ **/
15
+ timeout;
16
+ /**
17
+ * @param url - Status URL that was polled.
18
+ **/
19
+ constructor(url, id, timeout) {
20
+ super(`Testnet ${id} did not become ready within ${timeout} ms.`, {
21
+ url,
22
+ metaMessages: [`Execution id: ${id}`, `Timeout: ${timeout} ms`]
23
+ });
24
+ this.id = id;
25
+ this.timeout = timeout;
26
+ }
27
+ };
28
+ export { TestnetWaitTimeoutError };
@@ -0,0 +1,32 @@
1
+ import { BaseError } from "viem";
2
+ // src/testnets/errors/TestnetsError.ts
3
+ /**
4
+ * Thrown by every testnet API call that fails. Its subclasses say how it
5
+ * failed; catch this one to catch all of them.
6
+ **/
7
+ var TestnetsError = class extends BaseError {
8
+ /**
9
+ * URL that was requested.
10
+ **/
11
+ url;
12
+ /**
13
+ * Status anvil-manager answered with, absent when the request never
14
+ * completed.
15
+ **/
16
+ status;
17
+ constructor(summary, params) {
18
+ const { cause, details } = params;
19
+ super(summary, {
20
+ cause: cause instanceof Error ? cause : void 0,
21
+ details: cause === void 0 || cause instanceof Error ? details : String(cause),
22
+ metaMessages: [
23
+ `URL: ${params.url}`,
24
+ ...params.status === void 0 ? [] : [`Status: ${params.status}`],
25
+ ...params.metaMessages ?? []
26
+ ]
27
+ });
28
+ this.url = params.url;
29
+ this.status = params.status;
30
+ }
31
+ };
32
+ export { TestnetsError };
@@ -0,0 +1,7 @@
1
+ import { TestnetNotFoundError } from "./TestnetNotFoundError.js";
2
+ import { TestnetRequestFailedError } from "./TestnetRequestFailedError.js";
3
+ import { TestnetStatusError } from "./TestnetStatusError.js";
4
+ import { TestnetsError } from "./TestnetsError.js";
5
+ import { TestnetValidationError } from "./TestnetValidationError.js";
6
+ import { TestnetWaitTimeoutError } from "./TestnetWaitTimeoutError.js";
7
+ export { TestnetNotFoundError, TestnetRequestFailedError, TestnetStatusError, TestnetValidationError, TestnetWaitTimeoutError, TestnetsError };
@@ -0,0 +1,11 @@
1
+ import { TestnetsError } from "./errors/TestnetsError.js";
2
+ import { TestnetStatusError } from "./errors/TestnetStatusError.js";
3
+ import { TestnetNotFoundError } from "./errors/TestnetNotFoundError.js";
4
+ import { TestnetRequestFailedError } from "./errors/TestnetRequestFailedError.js";
5
+ import { TestnetValidationError } from "./errors/TestnetValidationError.js";
6
+ import { TestnetWaitTimeoutError } from "./errors/TestnetWaitTimeoutError.js";
7
+ import "./errors/index.js";
8
+ import { testnetBackendOptionsSchema, testnetBackendStateSchema, testnetBackendStatusSchema, testnetBlockSchema, testnetOptionsSchema, testnetSchema, testnetScriptBlockSchema, testnetScriptOptionsSchema, testnetScriptSchema, testnetStageStatusSchema, testnetStatusSchema, testnetTaskDefinitionSchema, testnetTaskProgressSchema, testnetTaskSchema } from "./schemas.js";
9
+ import { TestnetsAPI } from "./TestnetsAPI.js";
10
+ import "./types.js";
11
+ export { TestnetNotFoundError, TestnetRequestFailedError, TestnetStatusError, TestnetValidationError, TestnetWaitTimeoutError, TestnetsAPI, TestnetsError, testnetBackendOptionsSchema, testnetBackendStateSchema, testnetBackendStatusSchema, testnetBlockSchema, testnetOptionsSchema, testnetSchema, testnetScriptBlockSchema, testnetScriptOptionsSchema, testnetScriptSchema, testnetStageStatusSchema, testnetStatusSchema, testnetTaskDefinitionSchema, testnetTaskProgressSchema, testnetTaskSchema };
@@ -0,0 +1 @@
1
+ {"type": "module","sideEffects":false}