@0dotxyz/p0-ts-sdk 2.0.1 → 2.1.0-alpha.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.
@@ -1604,4 +1604,167 @@ type DriftRewardsJSON = {
1604
1604
  spotPosition: SpotPositionJSON;
1605
1605
  };
1606
1606
 
1607
- export { type PriceHeuristicJSON as $, type ReserveLiquidityFields as A, type ReserveCollateralFields as B, type CurvePointFields as C, type DriftSpotMarket as D, type ReserveConfigFields as E, type FeedResponse as F, type ReserveFeesFields as G, type HistoricalOracleData as H, type InsuranceFund as I, type BorrowRateCurveFields as J, type PriceHeuristicFields as K, type ScopeConfigurationFields as L, type SwitchboardConfigurationFields as M, type PythConfigurationFields as N, type ObligationJSON as O, type PoolBalance as P, type ReserveLiquidityJSON as Q, type ReserveRaw as R, type SpotPosition as S, type TokenInfoFields$1 as T, type ReserveCollateralJSON as U, type ReserveConfigJSON as V, type WithdrawalCapsFields as W, type ReserveFeesJSON as X, type BorrowRateCurveJSON as Y, type CurvePointJSON as Z, type TokenInfoJSON$1 as _, type DriftRewards as a, type ScopeConfigurationJSON as a0, type SwitchboardConfigurationJSON as a1, type PythConfigurationJSON as a2, type WithdrawalCapsJSON as a3, type ObligationLiquidityJSON as a4, type ObligationCollateralJSON as a5, type ObligationOrderJSON as a6, type ObligationCollateralFields as a7, type ObligationLiquidityFields as a8, type ObligationOrderFields as a9, type LastUpdateFields as aa, type BigFractionBytesFields as ab, type LastUpdateJSON as ac, type BigFractionBytesJSON as ad, type RewardPerTimeUnitPointFields as ae, type RewardScheduleCurveFields as af, type RewardScheduleCurveJSON as ag, type RewardPerTimeUnitPointJSON as ah, type UserFeesJSON as ai, type UserFeesFields as aj, isSpotBalanceTypeVariant as ak, type FeeTier as al, type FeeTierJSON as am, type OrderFillerRewardStructure as an, type OrderFillerRewardStructureJSON as ao, type PriceDivergenceGuardRails as ap, type PriceDivergenceGuardRailsJSON as aq, type ValidityGuardRails as ar, type ValidityGuardRailsJSON as as, type HistoricalOracleDataJSON as at, type HistoricalIndexDataJSON as au, type PoolBalanceJSON as av, type InsuranceFundJSON as aw, SpotBalanceType as ax, type SpotPositionJSON as ay, type ReserveJSON as b, type FarmStateJSON as c, type ObligationRaw as d, type FarmStateRaw as e, type DriftSpotMarketJSON as f, type DriftUserJSON as g, type DriftRewardsJSON as h, type DriftUserStatsJSON as i, type DriftUser as j, type DriftUserStats as k, type RewardInfoFields as l, type HistoricalIndexData as m, type FeeStructureJSON as n, type OracleGuardRailsJSON as o, type FeeStructure as p, type OracleGuardRails as q, DriftSpotBalanceType as r, SWITCHBOARD_ONDEMANDE_PRICE_PRECISION as s, type CurrentResult as t, type OracleSubmission as u, type PullFeedAccountData as v, type CrossbarSimulatePayload as w, switchboardAccountCoder as x, getSwitchboardProgram as y, decodeSwitchboardPullFeedData as z };
1607
+ /**
1608
+ * JSON-serializable DTO for the Lending account.
1609
+ * PublicKey → string, BN → string.
1610
+ */
1611
+ interface JupLendingStateJSON {
1612
+ pubkey: string;
1613
+ mint: string;
1614
+ fTokenMint: string;
1615
+ lendingId: number;
1616
+ decimals: number;
1617
+ rewardsRateModel: string;
1618
+ liquidityExchangePrice: string;
1619
+ tokenExchangePrice: string;
1620
+ lastUpdateTimestamp: string;
1621
+ tokenReservesLiquidity: string;
1622
+ supplyPositionOnLiquidity: string;
1623
+ bump?: number;
1624
+ }
1625
+
1626
+ /**
1627
+ * Curated Lending State used throughout the codebase.
1628
+ *
1629
+ * integration_acc_1 – holds cToken/fToken exchange rates.
1630
+ * Analogous to a Kamino Reserve or Drift SpotMarket.
1631
+ */
1632
+ interface JupLendingState {
1633
+ pubkey: PublicKey;
1634
+ mint: PublicKey;
1635
+ fTokenMint: PublicKey;
1636
+ lendingId: number;
1637
+ decimals: number;
1638
+ rewardsRateModel: PublicKey;
1639
+ /** Exchange price for the underlying asset in the liquidity protocol (without rewards) */
1640
+ liquidityExchangePrice: BN;
1641
+ /** Exchange price between fToken and the underlying asset (with rewards) */
1642
+ tokenExchangePrice: BN;
1643
+ lastUpdateTimestamp: BN;
1644
+ tokenReservesLiquidity: PublicKey;
1645
+ supplyPositionOnLiquidity: PublicKey;
1646
+ }
1647
+
1648
+ /**
1649
+ * Curated TokenReserve used throughout the codebase.
1650
+ *
1651
+ * Liquidity-layer reserve account for a mint. Contains supply/borrow
1652
+ * exchange prices, utilization, and totals.
1653
+ */
1654
+ interface JupTokenReserve {
1655
+ pubkey: PublicKey;
1656
+ mint: PublicKey;
1657
+ vault: PublicKey;
1658
+ borrowRate: number;
1659
+ feeOnInterest: number;
1660
+ lastUtilization: number;
1661
+ lastUpdateTimestamp: BN;
1662
+ supplyExchangePrice: BN;
1663
+ borrowExchangePrice: BN;
1664
+ maxUtilization: number;
1665
+ totalSupplyWithInterest: BN;
1666
+ totalSupplyInterestFree: BN;
1667
+ totalBorrowWithInterest: BN;
1668
+ totalBorrowInterestFree: BN;
1669
+ totalClaimAmount: BN;
1670
+ interactingProtocol: PublicKey;
1671
+ interactingTimestamp: BN;
1672
+ interactingBalance: BN;
1673
+ }
1674
+
1675
+ /**
1676
+ * JSON-serializable DTO for the TokenReserve account.
1677
+ * PublicKey → string, BN → string.
1678
+ */
1679
+ interface JupTokenReserveJSON {
1680
+ pubkey: string;
1681
+ mint: string;
1682
+ vault: string;
1683
+ borrowRate: number;
1684
+ feeOnInterest: number;
1685
+ lastUtilization: number;
1686
+ lastUpdateTimestamp: string;
1687
+ supplyExchangePrice: string;
1688
+ borrowExchangePrice: string;
1689
+ maxUtilization: number;
1690
+ totalSupplyWithInterest: string;
1691
+ totalSupplyInterestFree: string;
1692
+ totalBorrowWithInterest: string;
1693
+ totalBorrowInterestFree: string;
1694
+ totalClaimAmount: string;
1695
+ interactingProtocol: string;
1696
+ interactingTimestamp: string;
1697
+ interactingBalance: string;
1698
+ }
1699
+
1700
+ /**
1701
+ * Curated LendingRewardsRateModel used throughout the codebase.
1702
+ *
1703
+ * Controls the rewards distribution parameters for a jup-lend market.
1704
+ */
1705
+ interface JupLendingRewardsRateModel {
1706
+ pubkey: PublicKey;
1707
+ /** Mint address */
1708
+ mint: PublicKey;
1709
+ /** TVL below which rewards rate is 0 */
1710
+ startTvl: BN;
1711
+ /** Duration for which current rewards should run */
1712
+ duration: BN;
1713
+ /** Timestamp when current rewards got started */
1714
+ startTime: BN;
1715
+ /** Annualized reward based on input params (duration, rewardAmount) */
1716
+ yearlyReward: BN;
1717
+ /** Duration for the next rewards phase */
1718
+ nextDuration: BN;
1719
+ /** Amount of rewards for the next phase */
1720
+ nextRewardAmount: BN;
1721
+ }
1722
+
1723
+ /**
1724
+ * JSON-serializable DTO for the LendingRewardsRateModel account.
1725
+ * PublicKey → string, BN → string.
1726
+ */
1727
+ interface JupLendingRewardsRateModelJSON {
1728
+ pubkey: string;
1729
+ mint: string;
1730
+ startTvl: string;
1731
+ duration: string;
1732
+ startTime: string;
1733
+ yearlyReward: string;
1734
+ nextDuration: string;
1735
+ nextRewardAmount: string;
1736
+ bump?: number;
1737
+ }
1738
+
1739
+ /**
1740
+ * Curated RateModel — identical to raw since all fields are primitives + PublicKey.
1741
+ */
1742
+ interface JupRateModel {
1743
+ pubkey: PublicKey;
1744
+ mint: PublicKey;
1745
+ version: number;
1746
+ rateAtZero: number;
1747
+ kink1Utilization: number;
1748
+ rateAtKink1: number;
1749
+ rateAtMax: number;
1750
+ kink2Utilization: number;
1751
+ rateAtKink2: number;
1752
+ }
1753
+
1754
+ /**
1755
+ * JSON-serializable DTO for the RateModel account.
1756
+ * PublicKey → string.
1757
+ */
1758
+ interface JupRateModelJSON {
1759
+ pubkey: string;
1760
+ mint: string;
1761
+ version: number;
1762
+ rateAtZero: number;
1763
+ kink1Utilization: number;
1764
+ rateAtKink1: number;
1765
+ rateAtMax: number;
1766
+ kink2Utilization: number;
1767
+ rateAtKink2: number;
1768
+ }
1769
+
1770
+ export { type WithdrawalCapsFields as $, type CurrentResult as A, type OracleSubmission as B, type CurvePointFields as C, type DriftSpotMarket as D, type PullFeedAccountData as E, type FeedResponse as F, type CrossbarSimulatePayload as G, type HistoricalOracleData as H, type InsuranceFund as I, type JupLendingState as J, switchboardAccountCoder as K, getSwitchboardProgram as L, decodeSwitchboardPullFeedData as M, type ReserveLiquidityFields as N, type ObligationJSON as O, type PoolBalance as P, type ReserveCollateralFields as Q, type ReserveRaw as R, type SpotPosition as S, type ReserveConfigFields as T, type ReserveFeesFields as U, type BorrowRateCurveFields as V, type TokenInfoFields$1 as W, type PriceHeuristicFields as X, type ScopeConfigurationFields as Y, type SwitchboardConfigurationFields as Z, type PythConfigurationFields as _, type DriftRewards as a, type ReserveLiquidityJSON as a0, type ReserveCollateralJSON as a1, type ReserveConfigJSON as a2, type ReserveFeesJSON as a3, type BorrowRateCurveJSON as a4, type CurvePointJSON as a5, type TokenInfoJSON$1 as a6, type PriceHeuristicJSON as a7, type ScopeConfigurationJSON as a8, type SwitchboardConfigurationJSON as a9, type ValidityGuardRailsJSON as aA, type HistoricalOracleDataJSON as aB, type HistoricalIndexDataJSON as aC, type PoolBalanceJSON as aD, type InsuranceFundJSON as aE, SpotBalanceType as aF, type SpotPositionJSON as aG, type PythConfigurationJSON as aa, type WithdrawalCapsJSON as ab, type ObligationLiquidityJSON as ac, type ObligationCollateralJSON as ad, type ObligationOrderJSON as ae, type ObligationCollateralFields as af, type ObligationLiquidityFields as ag, type ObligationOrderFields as ah, type LastUpdateFields as ai, type BigFractionBytesFields as aj, type LastUpdateJSON as ak, type BigFractionBytesJSON as al, type RewardPerTimeUnitPointFields as am, type RewardScheduleCurveFields as an, type RewardScheduleCurveJSON as ao, type RewardPerTimeUnitPointJSON as ap, type UserFeesJSON as aq, type UserFeesFields as ar, isSpotBalanceTypeVariant as as, type FeeTier as at, type FeeTierJSON as au, type OrderFillerRewardStructure as av, type OrderFillerRewardStructureJSON as aw, type PriceDivergenceGuardRails as ax, type PriceDivergenceGuardRailsJSON as ay, type ValidityGuardRails as az, type ReserveJSON as b, type FarmStateJSON as c, type ObligationRaw as d, type FarmStateRaw as e, type DriftSpotMarketJSON as f, type DriftUserJSON as g, type DriftRewardsJSON as h, type DriftUserStatsJSON as i, type DriftUser as j, type DriftUserStats as k, type JupLendingStateJSON as l, type JupTokenReserveJSON as m, type JupLendingRewardsRateModelJSON as n, type JupRateModelJSON as o, type JupTokenReserve as p, type JupLendingRewardsRateModel as q, type JupRateModel as r, type RewardInfoFields as s, type HistoricalIndexData as t, type FeeStructureJSON as u, type OracleGuardRailsJSON as v, type FeeStructure as w, type OracleGuardRails as x, DriftSpotBalanceType as y, SWITCHBOARD_ONDEMANDE_PRICE_PRECISION as z };
@@ -1604,4 +1604,167 @@ type DriftRewardsJSON = {
1604
1604
  spotPosition: SpotPositionJSON;
1605
1605
  };
1606
1606
 
1607
- export { type PriceHeuristicJSON as $, type ReserveLiquidityFields as A, type ReserveCollateralFields as B, type CurvePointFields as C, type DriftSpotMarket as D, type ReserveConfigFields as E, type FeedResponse as F, type ReserveFeesFields as G, type HistoricalOracleData as H, type InsuranceFund as I, type BorrowRateCurveFields as J, type PriceHeuristicFields as K, type ScopeConfigurationFields as L, type SwitchboardConfigurationFields as M, type PythConfigurationFields as N, type ObligationJSON as O, type PoolBalance as P, type ReserveLiquidityJSON as Q, type ReserveRaw as R, type SpotPosition as S, type TokenInfoFields$1 as T, type ReserveCollateralJSON as U, type ReserveConfigJSON as V, type WithdrawalCapsFields as W, type ReserveFeesJSON as X, type BorrowRateCurveJSON as Y, type CurvePointJSON as Z, type TokenInfoJSON$1 as _, type DriftRewards as a, type ScopeConfigurationJSON as a0, type SwitchboardConfigurationJSON as a1, type PythConfigurationJSON as a2, type WithdrawalCapsJSON as a3, type ObligationLiquidityJSON as a4, type ObligationCollateralJSON as a5, type ObligationOrderJSON as a6, type ObligationCollateralFields as a7, type ObligationLiquidityFields as a8, type ObligationOrderFields as a9, type LastUpdateFields as aa, type BigFractionBytesFields as ab, type LastUpdateJSON as ac, type BigFractionBytesJSON as ad, type RewardPerTimeUnitPointFields as ae, type RewardScheduleCurveFields as af, type RewardScheduleCurveJSON as ag, type RewardPerTimeUnitPointJSON as ah, type UserFeesJSON as ai, type UserFeesFields as aj, isSpotBalanceTypeVariant as ak, type FeeTier as al, type FeeTierJSON as am, type OrderFillerRewardStructure as an, type OrderFillerRewardStructureJSON as ao, type PriceDivergenceGuardRails as ap, type PriceDivergenceGuardRailsJSON as aq, type ValidityGuardRails as ar, type ValidityGuardRailsJSON as as, type HistoricalOracleDataJSON as at, type HistoricalIndexDataJSON as au, type PoolBalanceJSON as av, type InsuranceFundJSON as aw, SpotBalanceType as ax, type SpotPositionJSON as ay, type ReserveJSON as b, type FarmStateJSON as c, type ObligationRaw as d, type FarmStateRaw as e, type DriftSpotMarketJSON as f, type DriftUserJSON as g, type DriftRewardsJSON as h, type DriftUserStatsJSON as i, type DriftUser as j, type DriftUserStats as k, type RewardInfoFields as l, type HistoricalIndexData as m, type FeeStructureJSON as n, type OracleGuardRailsJSON as o, type FeeStructure as p, type OracleGuardRails as q, DriftSpotBalanceType as r, SWITCHBOARD_ONDEMANDE_PRICE_PRECISION as s, type CurrentResult as t, type OracleSubmission as u, type PullFeedAccountData as v, type CrossbarSimulatePayload as w, switchboardAccountCoder as x, getSwitchboardProgram as y, decodeSwitchboardPullFeedData as z };
1607
+ /**
1608
+ * JSON-serializable DTO for the Lending account.
1609
+ * PublicKey → string, BN → string.
1610
+ */
1611
+ interface JupLendingStateJSON {
1612
+ pubkey: string;
1613
+ mint: string;
1614
+ fTokenMint: string;
1615
+ lendingId: number;
1616
+ decimals: number;
1617
+ rewardsRateModel: string;
1618
+ liquidityExchangePrice: string;
1619
+ tokenExchangePrice: string;
1620
+ lastUpdateTimestamp: string;
1621
+ tokenReservesLiquidity: string;
1622
+ supplyPositionOnLiquidity: string;
1623
+ bump?: number;
1624
+ }
1625
+
1626
+ /**
1627
+ * Curated Lending State used throughout the codebase.
1628
+ *
1629
+ * integration_acc_1 – holds cToken/fToken exchange rates.
1630
+ * Analogous to a Kamino Reserve or Drift SpotMarket.
1631
+ */
1632
+ interface JupLendingState {
1633
+ pubkey: PublicKey;
1634
+ mint: PublicKey;
1635
+ fTokenMint: PublicKey;
1636
+ lendingId: number;
1637
+ decimals: number;
1638
+ rewardsRateModel: PublicKey;
1639
+ /** Exchange price for the underlying asset in the liquidity protocol (without rewards) */
1640
+ liquidityExchangePrice: BN;
1641
+ /** Exchange price between fToken and the underlying asset (with rewards) */
1642
+ tokenExchangePrice: BN;
1643
+ lastUpdateTimestamp: BN;
1644
+ tokenReservesLiquidity: PublicKey;
1645
+ supplyPositionOnLiquidity: PublicKey;
1646
+ }
1647
+
1648
+ /**
1649
+ * Curated TokenReserve used throughout the codebase.
1650
+ *
1651
+ * Liquidity-layer reserve account for a mint. Contains supply/borrow
1652
+ * exchange prices, utilization, and totals.
1653
+ */
1654
+ interface JupTokenReserve {
1655
+ pubkey: PublicKey;
1656
+ mint: PublicKey;
1657
+ vault: PublicKey;
1658
+ borrowRate: number;
1659
+ feeOnInterest: number;
1660
+ lastUtilization: number;
1661
+ lastUpdateTimestamp: BN;
1662
+ supplyExchangePrice: BN;
1663
+ borrowExchangePrice: BN;
1664
+ maxUtilization: number;
1665
+ totalSupplyWithInterest: BN;
1666
+ totalSupplyInterestFree: BN;
1667
+ totalBorrowWithInterest: BN;
1668
+ totalBorrowInterestFree: BN;
1669
+ totalClaimAmount: BN;
1670
+ interactingProtocol: PublicKey;
1671
+ interactingTimestamp: BN;
1672
+ interactingBalance: BN;
1673
+ }
1674
+
1675
+ /**
1676
+ * JSON-serializable DTO for the TokenReserve account.
1677
+ * PublicKey → string, BN → string.
1678
+ */
1679
+ interface JupTokenReserveJSON {
1680
+ pubkey: string;
1681
+ mint: string;
1682
+ vault: string;
1683
+ borrowRate: number;
1684
+ feeOnInterest: number;
1685
+ lastUtilization: number;
1686
+ lastUpdateTimestamp: string;
1687
+ supplyExchangePrice: string;
1688
+ borrowExchangePrice: string;
1689
+ maxUtilization: number;
1690
+ totalSupplyWithInterest: string;
1691
+ totalSupplyInterestFree: string;
1692
+ totalBorrowWithInterest: string;
1693
+ totalBorrowInterestFree: string;
1694
+ totalClaimAmount: string;
1695
+ interactingProtocol: string;
1696
+ interactingTimestamp: string;
1697
+ interactingBalance: string;
1698
+ }
1699
+
1700
+ /**
1701
+ * Curated LendingRewardsRateModel used throughout the codebase.
1702
+ *
1703
+ * Controls the rewards distribution parameters for a jup-lend market.
1704
+ */
1705
+ interface JupLendingRewardsRateModel {
1706
+ pubkey: PublicKey;
1707
+ /** Mint address */
1708
+ mint: PublicKey;
1709
+ /** TVL below which rewards rate is 0 */
1710
+ startTvl: BN;
1711
+ /** Duration for which current rewards should run */
1712
+ duration: BN;
1713
+ /** Timestamp when current rewards got started */
1714
+ startTime: BN;
1715
+ /** Annualized reward based on input params (duration, rewardAmount) */
1716
+ yearlyReward: BN;
1717
+ /** Duration for the next rewards phase */
1718
+ nextDuration: BN;
1719
+ /** Amount of rewards for the next phase */
1720
+ nextRewardAmount: BN;
1721
+ }
1722
+
1723
+ /**
1724
+ * JSON-serializable DTO for the LendingRewardsRateModel account.
1725
+ * PublicKey → string, BN → string.
1726
+ */
1727
+ interface JupLendingRewardsRateModelJSON {
1728
+ pubkey: string;
1729
+ mint: string;
1730
+ startTvl: string;
1731
+ duration: string;
1732
+ startTime: string;
1733
+ yearlyReward: string;
1734
+ nextDuration: string;
1735
+ nextRewardAmount: string;
1736
+ bump?: number;
1737
+ }
1738
+
1739
+ /**
1740
+ * Curated RateModel — identical to raw since all fields are primitives + PublicKey.
1741
+ */
1742
+ interface JupRateModel {
1743
+ pubkey: PublicKey;
1744
+ mint: PublicKey;
1745
+ version: number;
1746
+ rateAtZero: number;
1747
+ kink1Utilization: number;
1748
+ rateAtKink1: number;
1749
+ rateAtMax: number;
1750
+ kink2Utilization: number;
1751
+ rateAtKink2: number;
1752
+ }
1753
+
1754
+ /**
1755
+ * JSON-serializable DTO for the RateModel account.
1756
+ * PublicKey → string.
1757
+ */
1758
+ interface JupRateModelJSON {
1759
+ pubkey: string;
1760
+ mint: string;
1761
+ version: number;
1762
+ rateAtZero: number;
1763
+ kink1Utilization: number;
1764
+ rateAtKink1: number;
1765
+ rateAtMax: number;
1766
+ kink2Utilization: number;
1767
+ rateAtKink2: number;
1768
+ }
1769
+
1770
+ export { type WithdrawalCapsFields as $, type CurrentResult as A, type OracleSubmission as B, type CurvePointFields as C, type DriftSpotMarket as D, type PullFeedAccountData as E, type FeedResponse as F, type CrossbarSimulatePayload as G, type HistoricalOracleData as H, type InsuranceFund as I, type JupLendingState as J, switchboardAccountCoder as K, getSwitchboardProgram as L, decodeSwitchboardPullFeedData as M, type ReserveLiquidityFields as N, type ObligationJSON as O, type PoolBalance as P, type ReserveCollateralFields as Q, type ReserveRaw as R, type SpotPosition as S, type ReserveConfigFields as T, type ReserveFeesFields as U, type BorrowRateCurveFields as V, type TokenInfoFields$1 as W, type PriceHeuristicFields as X, type ScopeConfigurationFields as Y, type SwitchboardConfigurationFields as Z, type PythConfigurationFields as _, type DriftRewards as a, type ReserveLiquidityJSON as a0, type ReserveCollateralJSON as a1, type ReserveConfigJSON as a2, type ReserveFeesJSON as a3, type BorrowRateCurveJSON as a4, type CurvePointJSON as a5, type TokenInfoJSON$1 as a6, type PriceHeuristicJSON as a7, type ScopeConfigurationJSON as a8, type SwitchboardConfigurationJSON as a9, type ValidityGuardRailsJSON as aA, type HistoricalOracleDataJSON as aB, type HistoricalIndexDataJSON as aC, type PoolBalanceJSON as aD, type InsuranceFundJSON as aE, SpotBalanceType as aF, type SpotPositionJSON as aG, type PythConfigurationJSON as aa, type WithdrawalCapsJSON as ab, type ObligationLiquidityJSON as ac, type ObligationCollateralJSON as ad, type ObligationOrderJSON as ae, type ObligationCollateralFields as af, type ObligationLiquidityFields as ag, type ObligationOrderFields as ah, type LastUpdateFields as ai, type BigFractionBytesFields as aj, type LastUpdateJSON as ak, type BigFractionBytesJSON as al, type RewardPerTimeUnitPointFields as am, type RewardScheduleCurveFields as an, type RewardScheduleCurveJSON as ao, type RewardPerTimeUnitPointJSON as ap, type UserFeesJSON as aq, type UserFeesFields as ar, isSpotBalanceTypeVariant as as, type FeeTier as at, type FeeTierJSON as au, type OrderFillerRewardStructure as av, type OrderFillerRewardStructureJSON as aw, type PriceDivergenceGuardRails as ax, type PriceDivergenceGuardRailsJSON as ay, type ValidityGuardRails as az, type ReserveJSON as b, type FarmStateJSON as c, type ObligationRaw as d, type FarmStateRaw as e, type DriftSpotMarketJSON as f, type DriftUserJSON as g, type DriftRewardsJSON as h, type DriftUserStatsJSON as i, type DriftUser as j, type DriftUserStats as k, type JupLendingStateJSON as l, type JupTokenReserveJSON as m, type JupLendingRewardsRateModelJSON as n, type JupRateModelJSON as o, type JupTokenReserve as p, type JupLendingRewardsRateModel as q, type JupRateModel as r, type RewardInfoFields as s, type HistoricalIndexData as t, type FeeStructureJSON as u, type OracleGuardRailsJSON as v, type FeeStructure as w, type OracleGuardRails as x, DriftSpotBalanceType as y, SWITCHBOARD_ONDEMANDE_PRICE_PRECISION as z };