@kamino-finance/klend-sdk 3.2.25 → 4.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/classes/action.d.ts +1 -0
- package/dist/classes/action.d.ts.map +1 -0
- package/dist/classes/action.js +1130 -1186
- package/dist/classes/action.js.map +1 -1
- package/dist/classes/curve.d.ts +1 -0
- package/dist/classes/curve.d.ts.map +1 -0
- package/dist/classes/curve.js +1 -1
- package/dist/classes/curve.js.map +1 -1
- package/dist/classes/fraction.d.ts +1 -0
- package/dist/classes/fraction.d.ts.map +1 -0
- package/dist/classes/fraction.js +7 -6
- package/dist/classes/fraction.js.map +1 -1
- package/dist/classes/index.d.ts +1 -0
- package/dist/classes/index.d.ts.map +1 -0
- package/dist/classes/index.js.map +1 -1
- package/dist/classes/jupiterPerps.d.ts +1 -0
- package/dist/classes/jupiterPerps.d.ts.map +1 -0
- package/dist/classes/jupiterPerps.js +7 -18
- package/dist/classes/jupiterPerps.js.map +1 -1
- package/dist/classes/manager.d.ts +1 -0
- package/dist/classes/manager.d.ts.map +1 -0
- package/dist/classes/manager.js +131 -158
- package/dist/classes/manager.js.map +1 -1
- package/dist/classes/market.d.ts +1 -0
- package/dist/classes/market.d.ts.map +1 -0
- package/dist/classes/market.js +620 -714
- package/dist/classes/market.js.map +1 -1
- package/dist/classes/obligation.d.ts +1 -0
- package/dist/classes/obligation.d.ts.map +1 -0
- package/dist/classes/obligation.js +60 -62
- package/dist/classes/obligation.js.map +1 -1
- package/dist/classes/reserve.d.ts +1 -0
- package/dist/classes/reserve.d.ts.map +1 -0
- package/dist/classes/reserve.js +135 -138
- package/dist/classes/reserve.js.map +1 -1
- package/dist/classes/shared.d.ts +1 -0
- package/dist/classes/shared.d.ts.map +1 -0
- package/dist/classes/shared.js.map +1 -1
- package/dist/classes/utils.d.ts +1 -0
- package/dist/classes/utils.d.ts.map +1 -0
- package/dist/classes/utils.js +3 -3
- package/dist/classes/utils.js.map +1 -1
- package/dist/classes/vault.d.ts +1 -0
- package/dist/classes/vault.d.ts.map +1 -0
- package/dist/classes/vault.js +334 -354
- package/dist/classes/vault.js.map +1 -1
- package/dist/client_kamino_manager.d.ts +1 -0
- package/dist/client_kamino_manager.d.ts.map +1 -0
- package/dist/client_kamino_manager.js +323 -326
- package/dist/client_kamino_manager.js.map +1 -1
- package/dist/idl_codegen/accounts/LendingMarket.d.ts +1 -0
- package/dist/idl_codegen/accounts/LendingMarket.d.ts.map +1 -0
- package/dist/idl_codegen/accounts/LendingMarket.js +89 -55
- package/dist/idl_codegen/accounts/LendingMarket.js.map +1 -1
- package/dist/idl_codegen/accounts/Obligation.d.ts +1 -0
- package/dist/idl_codegen/accounts/Obligation.d.ts.map +1 -0
- package/dist/idl_codegen/accounts/Obligation.js +87 -56
- package/dist/idl_codegen/accounts/Obligation.js.map +1 -1
- package/dist/idl_codegen/accounts/ReferrerState.d.ts +1 -0
- package/dist/idl_codegen/accounts/ReferrerState.d.ts.map +1 -0
- package/dist/idl_codegen/accounts/ReferrerState.js +22 -33
- package/dist/idl_codegen/accounts/ReferrerState.js.map +1 -1
- package/dist/idl_codegen/accounts/ReferrerTokenState.d.ts +1 -0
- package/dist/idl_codegen/accounts/ReferrerTokenState.d.ts.map +1 -0
- package/dist/idl_codegen/accounts/ReferrerTokenState.js +35 -37
- package/dist/idl_codegen/accounts/ReferrerTokenState.js.map +1 -1
- package/dist/idl_codegen/accounts/Reserve.d.ts +1 -0
- package/dist/idl_codegen/accounts/Reserve.d.ts.map +1 -0
- package/dist/idl_codegen/accounts/Reserve.js +60 -49
- package/dist/idl_codegen/accounts/Reserve.js.map +1 -1
- package/dist/idl_codegen/accounts/ShortUrl.d.ts +1 -0
- package/dist/idl_codegen/accounts/ShortUrl.d.ts.map +1 -0
- package/dist/idl_codegen/accounts/ShortUrl.js +22 -33
- package/dist/idl_codegen/accounts/ShortUrl.js.map +1 -1
- package/dist/idl_codegen/accounts/UserMetadata.d.ts +1 -0
- package/dist/idl_codegen/accounts/UserMetadata.d.ts.map +1 -0
- package/dist/idl_codegen/accounts/UserMetadata.js +34 -37
- package/dist/idl_codegen/accounts/UserMetadata.js.map +1 -1
- package/dist/idl_codegen/accounts/UserState.d.ts +1 -0
- package/dist/idl_codegen/accounts/UserState.d.ts.map +1 -0
- package/dist/idl_codegen/accounts/UserState.js +77 -48
- package/dist/idl_codegen/accounts/UserState.js.map +1 -1
- package/dist/idl_codegen/accounts/index.d.ts +1 -0
- package/dist/idl_codegen/accounts/index.d.ts.map +1 -0
- package/dist/idl_codegen/accounts/index.js.map +1 -1
- package/dist/idl_codegen/errors/anchor.d.ts +1 -0
- package/dist/idl_codegen/errors/anchor.d.ts.map +1 -0
- package/dist/idl_codegen/errors/anchor.js +270 -216
- package/dist/idl_codegen/errors/anchor.js.map +1 -1
- package/dist/idl_codegen/errors/custom.d.ts +1 -0
- package/dist/idl_codegen/errors/custom.d.ts.map +1 -0
- package/dist/idl_codegen/errors/custom.js +560 -448
- package/dist/idl_codegen/errors/custom.js.map +1 -1
- package/dist/idl_codegen/errors/index.d.ts +1 -0
- package/dist/idl_codegen/errors/index.d.ts.map +1 -0
- package/dist/idl_codegen/errors/index.js.map +1 -1
- package/dist/idl_codegen/instructions/borrowObligationLiquidity.d.ts +1 -0
- package/dist/idl_codegen/instructions/borrowObligationLiquidity.d.ts.map +1 -0
- package/dist/idl_codegen/instructions/borrowObligationLiquidity.js.map +1 -1
- package/dist/idl_codegen/instructions/deleteReferrerStateAndShortUrl.d.ts +1 -0
- package/dist/idl_codegen/instructions/deleteReferrerStateAndShortUrl.d.ts.map +1 -0
- package/dist/idl_codegen/instructions/deleteReferrerStateAndShortUrl.js.map +1 -1
- package/dist/idl_codegen/instructions/depositObligationCollateral.d.ts +1 -0
- package/dist/idl_codegen/instructions/depositObligationCollateral.d.ts.map +1 -0
- package/dist/idl_codegen/instructions/depositObligationCollateral.js.map +1 -1
- package/dist/idl_codegen/instructions/depositReserveLiquidity.d.ts +1 -0
- package/dist/idl_codegen/instructions/depositReserveLiquidity.d.ts.map +1 -0
- package/dist/idl_codegen/instructions/depositReserveLiquidity.js.map +1 -1
- package/dist/idl_codegen/instructions/depositReserveLiquidityAndObligationCollateral.d.ts +1 -0
- package/dist/idl_codegen/instructions/depositReserveLiquidityAndObligationCollateral.d.ts.map +1 -0
- package/dist/idl_codegen/instructions/depositReserveLiquidityAndObligationCollateral.js.map +1 -1
- package/dist/idl_codegen/instructions/flashBorrowReserveLiquidity.d.ts +1 -0
- package/dist/idl_codegen/instructions/flashBorrowReserveLiquidity.d.ts.map +1 -0
- package/dist/idl_codegen/instructions/flashBorrowReserveLiquidity.js.map +1 -1
- package/dist/idl_codegen/instructions/flashRepayReserveLiquidity.d.ts +1 -0
- package/dist/idl_codegen/instructions/flashRepayReserveLiquidity.d.ts.map +1 -0
- package/dist/idl_codegen/instructions/flashRepayReserveLiquidity.js.map +1 -1
- package/dist/idl_codegen/instructions/idlMissingTypes.d.ts +1 -0
- package/dist/idl_codegen/instructions/idlMissingTypes.d.ts.map +1 -0
- package/dist/idl_codegen/instructions/idlMissingTypes.js.map +1 -1
- package/dist/idl_codegen/instructions/index.d.ts +1 -0
- package/dist/idl_codegen/instructions/index.d.ts.map +1 -0
- package/dist/idl_codegen/instructions/index.js.map +1 -1
- package/dist/idl_codegen/instructions/initFarmsForReserve.d.ts +1 -0
- package/dist/idl_codegen/instructions/initFarmsForReserve.d.ts.map +1 -0
- package/dist/idl_codegen/instructions/initFarmsForReserve.js.map +1 -1
- package/dist/idl_codegen/instructions/initLendingMarket.d.ts +1 -0
- package/dist/idl_codegen/instructions/initLendingMarket.d.ts.map +1 -0
- package/dist/idl_codegen/instructions/initLendingMarket.js.map +1 -1
- package/dist/idl_codegen/instructions/initObligation.d.ts +1 -0
- package/dist/idl_codegen/instructions/initObligation.d.ts.map +1 -0
- package/dist/idl_codegen/instructions/initObligation.js.map +1 -1
- package/dist/idl_codegen/instructions/initObligationFarmsForReserve.d.ts +1 -0
- package/dist/idl_codegen/instructions/initObligationFarmsForReserve.d.ts.map +1 -0
- package/dist/idl_codegen/instructions/initObligationFarmsForReserve.js.map +1 -1
- package/dist/idl_codegen/instructions/initReferrerStateAndShortUrl.d.ts +1 -0
- package/dist/idl_codegen/instructions/initReferrerStateAndShortUrl.d.ts.map +1 -0
- package/dist/idl_codegen/instructions/initReferrerStateAndShortUrl.js.map +1 -1
- package/dist/idl_codegen/instructions/initReferrerTokenState.d.ts +1 -0
- package/dist/idl_codegen/instructions/initReferrerTokenState.d.ts.map +1 -0
- package/dist/idl_codegen/instructions/initReferrerTokenState.js.map +1 -1
- package/dist/idl_codegen/instructions/initReserve.d.ts +1 -0
- package/dist/idl_codegen/instructions/initReserve.d.ts.map +1 -0
- package/dist/idl_codegen/instructions/initReserve.js.map +1 -1
- package/dist/idl_codegen/instructions/initUserMetadata.d.ts +1 -0
- package/dist/idl_codegen/instructions/initUserMetadata.d.ts.map +1 -0
- package/dist/idl_codegen/instructions/initUserMetadata.js.map +1 -1
- package/dist/idl_codegen/instructions/liquidateObligationAndRedeemReserveCollateral.d.ts +1 -0
- package/dist/idl_codegen/instructions/liquidateObligationAndRedeemReserveCollateral.d.ts.map +1 -0
- package/dist/idl_codegen/instructions/liquidateObligationAndRedeemReserveCollateral.js.map +1 -1
- package/dist/idl_codegen/instructions/redeemFees.d.ts +1 -0
- package/dist/idl_codegen/instructions/redeemFees.d.ts.map +1 -0
- package/dist/idl_codegen/instructions/redeemFees.js.map +1 -1
- package/dist/idl_codegen/instructions/redeemReserveCollateral.d.ts +1 -0
- package/dist/idl_codegen/instructions/redeemReserveCollateral.d.ts.map +1 -0
- package/dist/idl_codegen/instructions/redeemReserveCollateral.js.map +1 -1
- package/dist/idl_codegen/instructions/refreshObligation.d.ts +1 -0
- package/dist/idl_codegen/instructions/refreshObligation.d.ts.map +1 -0
- package/dist/idl_codegen/instructions/refreshObligation.js.map +1 -1
- package/dist/idl_codegen/instructions/refreshObligationFarmsForReserve.d.ts +1 -0
- package/dist/idl_codegen/instructions/refreshObligationFarmsForReserve.d.ts.map +1 -0
- package/dist/idl_codegen/instructions/refreshObligationFarmsForReserve.js.map +1 -1
- package/dist/idl_codegen/instructions/refreshReserve.d.ts +1 -0
- package/dist/idl_codegen/instructions/refreshReserve.d.ts.map +1 -0
- package/dist/idl_codegen/instructions/refreshReserve.js.map +1 -1
- package/dist/idl_codegen/instructions/refreshReservesBatch.d.ts +1 -0
- package/dist/idl_codegen/instructions/refreshReservesBatch.d.ts.map +1 -0
- package/dist/idl_codegen/instructions/refreshReservesBatch.js.map +1 -1
- package/dist/idl_codegen/instructions/repayObligationLiquidity.d.ts +1 -0
- package/dist/idl_codegen/instructions/repayObligationLiquidity.d.ts.map +1 -0
- package/dist/idl_codegen/instructions/repayObligationLiquidity.js.map +1 -1
- package/dist/idl_codegen/instructions/requestElevationGroup.d.ts +1 -0
- package/dist/idl_codegen/instructions/requestElevationGroup.d.ts.map +1 -0
- package/dist/idl_codegen/instructions/requestElevationGroup.js.map +1 -1
- package/dist/idl_codegen/instructions/socializeLoss.d.ts +1 -0
- package/dist/idl_codegen/instructions/socializeLoss.d.ts.map +1 -0
- package/dist/idl_codegen/instructions/socializeLoss.js.map +1 -1
- package/dist/idl_codegen/instructions/updateEntireReserveConfig.d.ts +1 -0
- package/dist/idl_codegen/instructions/updateEntireReserveConfig.d.ts.map +1 -0
- package/dist/idl_codegen/instructions/updateEntireReserveConfig.js.map +1 -1
- package/dist/idl_codegen/instructions/updateLendingMarket.d.ts +1 -0
- package/dist/idl_codegen/instructions/updateLendingMarket.d.ts.map +1 -0
- package/dist/idl_codegen/instructions/updateLendingMarket.js.map +1 -1
- package/dist/idl_codegen/instructions/updateLendingMarketOwner.d.ts +1 -0
- package/dist/idl_codegen/instructions/updateLendingMarketOwner.d.ts.map +1 -0
- package/dist/idl_codegen/instructions/updateLendingMarketOwner.js.map +1 -1
- package/dist/idl_codegen/instructions/updateReserveConfig.d.ts +1 -0
- package/dist/idl_codegen/instructions/updateReserveConfig.d.ts.map +1 -0
- package/dist/idl_codegen/instructions/updateReserveConfig.js.map +1 -1
- package/dist/idl_codegen/instructions/updateSingleReserveConfig.d.ts +1 -0
- package/dist/idl_codegen/instructions/updateSingleReserveConfig.d.ts.map +1 -0
- package/dist/idl_codegen/instructions/updateSingleReserveConfig.js.map +1 -1
- package/dist/idl_codegen/instructions/withdrawObligationCollateral.d.ts +1 -0
- package/dist/idl_codegen/instructions/withdrawObligationCollateral.d.ts.map +1 -0
- package/dist/idl_codegen/instructions/withdrawObligationCollateral.js.map +1 -1
- package/dist/idl_codegen/instructions/withdrawObligationCollateralAndRedeemReserveCollateral.d.ts +1 -0
- package/dist/idl_codegen/instructions/withdrawObligationCollateralAndRedeemReserveCollateral.d.ts.map +1 -0
- package/dist/idl_codegen/instructions/withdrawObligationCollateralAndRedeemReserveCollateral.js.map +1 -1
- package/dist/idl_codegen/instructions/withdrawProtocolFee.d.ts +1 -0
- package/dist/idl_codegen/instructions/withdrawProtocolFee.d.ts.map +1 -0
- package/dist/idl_codegen/instructions/withdrawProtocolFee.js.map +1 -1
- package/dist/idl_codegen/instructions/withdrawReferrerFees.d.ts +1 -0
- package/dist/idl_codegen/instructions/withdrawReferrerFees.d.ts.map +1 -0
- package/dist/idl_codegen/instructions/withdrawReferrerFees.js.map +1 -1
- package/dist/idl_codegen/programId.d.ts +1 -0
- package/dist/idl_codegen/programId.d.ts.map +1 -0
- package/dist/idl_codegen/programId.js.map +1 -1
- package/dist/idl_codegen/types/AssetTier.d.ts +1 -0
- package/dist/idl_codegen/types/AssetTier.d.ts.map +1 -0
- package/dist/idl_codegen/types/AssetTier.js +12 -18
- package/dist/idl_codegen/types/AssetTier.js.map +1 -1
- package/dist/idl_codegen/types/BigFractionBytes.d.ts +1 -0
- package/dist/idl_codegen/types/BigFractionBytes.d.ts.map +1 -0
- package/dist/idl_codegen/types/BigFractionBytes.js +2 -0
- package/dist/idl_codegen/types/BigFractionBytes.js.map +1 -1
- package/dist/idl_codegen/types/BorrowRateCurve.d.ts +1 -0
- package/dist/idl_codegen/types/BorrowRateCurve.d.ts.map +1 -0
- package/dist/idl_codegen/types/BorrowRateCurve.js +2 -1
- package/dist/idl_codegen/types/BorrowRateCurve.js.map +1 -1
- package/dist/idl_codegen/types/CurvePoint.d.ts +1 -0
- package/dist/idl_codegen/types/CurvePoint.d.ts.map +1 -0
- package/dist/idl_codegen/types/CurvePoint.js +2 -0
- package/dist/idl_codegen/types/CurvePoint.js.map +1 -1
- package/dist/idl_codegen/types/ElevationGroup.d.ts +1 -0
- package/dist/idl_codegen/types/ElevationGroup.d.ts.map +1 -0
- package/dist/idl_codegen/types/ElevationGroup.js +10 -0
- package/dist/idl_codegen/types/ElevationGroup.js.map +1 -1
- package/dist/idl_codegen/types/FeeCalculation.d.ts +1 -0
- package/dist/idl_codegen/types/FeeCalculation.d.ts.map +1 -0
- package/dist/idl_codegen/types/FeeCalculation.js +8 -12
- package/dist/idl_codegen/types/FeeCalculation.js.map +1 -1
- package/dist/idl_codegen/types/InitObligationArgs.d.ts +1 -0
- package/dist/idl_codegen/types/InitObligationArgs.d.ts.map +1 -0
- package/dist/idl_codegen/types/InitObligationArgs.js +2 -0
- package/dist/idl_codegen/types/InitObligationArgs.js.map +1 -1
- package/dist/idl_codegen/types/LastUpdate.d.ts +1 -0
- package/dist/idl_codegen/types/LastUpdate.d.ts.map +1 -0
- package/dist/idl_codegen/types/LastUpdate.js +7 -0
- package/dist/idl_codegen/types/LastUpdate.js.map +1 -1
- package/dist/idl_codegen/types/ObligationCollateral.d.ts +1 -0
- package/dist/idl_codegen/types/ObligationCollateral.d.ts.map +1 -0
- package/dist/idl_codegen/types/ObligationCollateral.js +14 -0
- package/dist/idl_codegen/types/ObligationCollateral.js.map +1 -1
- package/dist/idl_codegen/types/ObligationLiquidity.d.ts +1 -0
- package/dist/idl_codegen/types/ObligationLiquidity.d.ts.map +1 -0
- package/dist/idl_codegen/types/ObligationLiquidity.js +17 -1
- package/dist/idl_codegen/types/ObligationLiquidity.js.map +1 -1
- package/dist/idl_codegen/types/PriceHeuristic.d.ts +1 -0
- package/dist/idl_codegen/types/PriceHeuristic.d.ts.map +1 -0
- package/dist/idl_codegen/types/PriceHeuristic.js +6 -0
- package/dist/idl_codegen/types/PriceHeuristic.js.map +1 -1
- package/dist/idl_codegen/types/PythConfiguration.d.ts +1 -0
- package/dist/idl_codegen/types/PythConfiguration.d.ts.map +1 -0
- package/dist/idl_codegen/types/PythConfiguration.js +2 -0
- package/dist/idl_codegen/types/PythConfiguration.js.map +1 -1
- package/dist/idl_codegen/types/ReserveCollateral.d.ts +1 -0
- package/dist/idl_codegen/types/ReserveCollateral.d.ts.map +1 -0
- package/dist/idl_codegen/types/ReserveCollateral.js +8 -0
- package/dist/idl_codegen/types/ReserveCollateral.js.map +1 -1
- package/dist/idl_codegen/types/ReserveConfig.d.ts +1 -0
- package/dist/idl_codegen/types/ReserveConfig.d.ts.map +1 -0
- package/dist/idl_codegen/types/ReserveConfig.js +78 -5
- package/dist/idl_codegen/types/ReserveConfig.js.map +1 -1
- package/dist/idl_codegen/types/ReserveFarmKind.d.ts +1 -0
- package/dist/idl_codegen/types/ReserveFarmKind.d.ts.map +1 -0
- package/dist/idl_codegen/types/ReserveFarmKind.js +8 -12
- package/dist/idl_codegen/types/ReserveFarmKind.js.map +1 -1
- package/dist/idl_codegen/types/ReserveFees.d.ts +1 -0
- package/dist/idl_codegen/types/ReserveFees.d.ts.map +1 -0
- package/dist/idl_codegen/types/ReserveFees.js +16 -0
- package/dist/idl_codegen/types/ReserveFees.js.map +1 -1
- package/dist/idl_codegen/types/ReserveLiquidity.d.ts +1 -0
- package/dist/idl_codegen/types/ReserveLiquidity.d.ts.map +1 -0
- package/dist/idl_codegen/types/ReserveLiquidity.js +43 -1
- package/dist/idl_codegen/types/ReserveLiquidity.js.map +1 -1
- package/dist/idl_codegen/types/ReserveStatus.d.ts +1 -0
- package/dist/idl_codegen/types/ReserveStatus.d.ts.map +1 -0
- package/dist/idl_codegen/types/ReserveStatus.js +12 -18
- package/dist/idl_codegen/types/ReserveStatus.js.map +1 -1
- package/dist/idl_codegen/types/ScopeConfiguration.d.ts +1 -0
- package/dist/idl_codegen/types/ScopeConfiguration.d.ts.map +1 -0
- package/dist/idl_codegen/types/ScopeConfiguration.js +6 -0
- package/dist/idl_codegen/types/ScopeConfiguration.js.map +1 -1
- package/dist/idl_codegen/types/SwitchboardConfiguration.d.ts +1 -0
- package/dist/idl_codegen/types/SwitchboardConfiguration.d.ts.map +1 -0
- package/dist/idl_codegen/types/SwitchboardConfiguration.js +3 -0
- package/dist/idl_codegen/types/SwitchboardConfiguration.js.map +1 -1
- package/dist/idl_codegen/types/TokenInfo.d.ts +1 -0
- package/dist/idl_codegen/types/TokenInfo.d.ts.map +1 -0
- package/dist/idl_codegen/types/TokenInfo.js +27 -4
- package/dist/idl_codegen/types/TokenInfo.js.map +1 -1
- package/dist/idl_codegen/types/UpdateConfigMode.d.ts +1 -0
- package/dist/idl_codegen/types/UpdateConfigMode.d.ts.map +1 -0
- package/dist/idl_codegen/types/UpdateConfigMode.js +188 -282
- package/dist/idl_codegen/types/UpdateConfigMode.js.map +1 -1
- package/dist/idl_codegen/types/UpdateLendingMarketConfigValue.d.ts +1 -0
- package/dist/idl_codegen/types/UpdateLendingMarketConfigValue.d.ts.map +1 -0
- package/dist/idl_codegen/types/UpdateLendingMarketConfigValue.js +41 -33
- package/dist/idl_codegen/types/UpdateLendingMarketConfigValue.js.map +1 -1
- package/dist/idl_codegen/types/UpdateLendingMarketMode.d.ts +1 -0
- package/dist/idl_codegen/types/UpdateLendingMarketMode.d.ts.map +1 -0
- package/dist/idl_codegen/types/UpdateLendingMarketMode.js +72 -108
- package/dist/idl_codegen/types/UpdateLendingMarketMode.js.map +1 -1
- package/dist/idl_codegen/types/WithdrawalCaps.d.ts +1 -0
- package/dist/idl_codegen/types/WithdrawalCaps.d.ts.map +1 -0
- package/dist/idl_codegen/types/WithdrawalCaps.js +4 -0
- package/dist/idl_codegen/types/WithdrawalCaps.js.map +1 -1
- package/dist/idl_codegen/types/index.d.ts +1 -0
- package/dist/idl_codegen/types/index.d.ts.map +1 -0
- package/dist/idl_codegen/types/index.js.map +1 -1
- package/dist/idl_codegen/zero_padding/ObligationZP.d.ts +1 -0
- package/dist/idl_codegen/zero_padding/ObligationZP.d.ts.map +1 -0
- package/dist/idl_codegen/zero_padding/ObligationZP.js +83 -54
- package/dist/idl_codegen/zero_padding/ObligationZP.js.map +1 -1
- package/dist/idl_codegen/zero_padding/index.d.ts +1 -0
- package/dist/idl_codegen/zero_padding/index.d.ts.map +1 -0
- package/dist/idl_codegen/zero_padding/index.js.map +1 -1
- package/dist/idl_codegen_jupiter_perps/accounts/Pool.d.ts +1 -0
- package/dist/idl_codegen_jupiter_perps/accounts/Pool.d.ts.map +1 -0
- package/dist/idl_codegen_jupiter_perps/accounts/Pool.js +39 -42
- package/dist/idl_codegen_jupiter_perps/accounts/Pool.js.map +1 -1
- package/dist/idl_codegen_jupiter_perps/accounts/index.d.ts +1 -0
- package/dist/idl_codegen_jupiter_perps/accounts/index.d.ts.map +1 -0
- package/dist/idl_codegen_jupiter_perps/accounts/index.js.map +1 -1
- package/dist/idl_codegen_jupiter_perps/programId.d.ts +1 -0
- package/dist/idl_codegen_jupiter_perps/programId.d.ts.map +1 -0
- package/dist/idl_codegen_jupiter_perps/programId.js.map +1 -1
- package/dist/idl_codegen_jupiter_perps/types/Fees.d.ts +1 -0
- package/dist/idl_codegen_jupiter_perps/types/Fees.d.ts.map +1 -0
- package/dist/idl_codegen_jupiter_perps/types/Fees.js +9 -0
- package/dist/idl_codegen_jupiter_perps/types/Fees.js.map +1 -1
- package/dist/idl_codegen_jupiter_perps/types/Limit.d.ts +1 -0
- package/dist/idl_codegen_jupiter_perps/types/Limit.d.ts.map +1 -0
- package/dist/idl_codegen_jupiter_perps/types/Limit.js +3 -0
- package/dist/idl_codegen_jupiter_perps/types/Limit.js.map +1 -1
- package/dist/idl_codegen_jupiter_perps/types/PoolApr.d.ts +1 -0
- package/dist/idl_codegen_jupiter_perps/types/PoolApr.d.ts.map +1 -0
- package/dist/idl_codegen_jupiter_perps/types/PoolApr.js +3 -0
- package/dist/idl_codegen_jupiter_perps/types/PoolApr.js.map +1 -1
- package/dist/idl_codegen_jupiter_perps/types/index.d.ts +1 -0
- package/dist/idl_codegen_jupiter_perps/types/index.d.ts.map +1 -0
- package/dist/idl_codegen_jupiter_perps/types/index.js.map +1 -1
- package/dist/idl_codegen_kamino_vault/accounts/Reserve.d.ts +1 -0
- package/dist/idl_codegen_kamino_vault/accounts/Reserve.d.ts.map +1 -0
- package/dist/idl_codegen_kamino_vault/accounts/Reserve.js +58 -47
- package/dist/idl_codegen_kamino_vault/accounts/Reserve.js.map +1 -1
- package/dist/idl_codegen_kamino_vault/accounts/VaultState.d.ts +1 -0
- package/dist/idl_codegen_kamino_vault/accounts/VaultState.d.ts.map +1 -0
- package/dist/idl_codegen_kamino_vault/accounts/VaultState.js +51 -47
- package/dist/idl_codegen_kamino_vault/accounts/VaultState.js.map +1 -1
- package/dist/idl_codegen_kamino_vault/accounts/index.d.ts +1 -0
- package/dist/idl_codegen_kamino_vault/accounts/index.d.ts.map +1 -0
- package/dist/idl_codegen_kamino_vault/accounts/index.js.map +1 -1
- package/dist/idl_codegen_kamino_vault/errors/anchor.d.ts +1 -0
- package/dist/idl_codegen_kamino_vault/errors/anchor.d.ts.map +1 -0
- package/dist/idl_codegen_kamino_vault/errors/anchor.js +270 -216
- package/dist/idl_codegen_kamino_vault/errors/anchor.js.map +1 -1
- package/dist/idl_codegen_kamino_vault/errors/custom.d.ts +1 -0
- package/dist/idl_codegen_kamino_vault/errors/custom.d.ts.map +1 -0
- package/dist/idl_codegen_kamino_vault/errors/custom.js +120 -96
- package/dist/idl_codegen_kamino_vault/errors/custom.js.map +1 -1
- package/dist/idl_codegen_kamino_vault/errors/index.d.ts +1 -0
- package/dist/idl_codegen_kamino_vault/errors/index.d.ts.map +1 -0
- package/dist/idl_codegen_kamino_vault/errors/index.js.map +1 -1
- package/dist/idl_codegen_kamino_vault/instructions/deposit.d.ts +1 -0
- package/dist/idl_codegen_kamino_vault/instructions/deposit.d.ts.map +1 -0
- package/dist/idl_codegen_kamino_vault/instructions/deposit.js.map +1 -1
- package/dist/idl_codegen_kamino_vault/instructions/index.d.ts +1 -0
- package/dist/idl_codegen_kamino_vault/instructions/index.d.ts.map +1 -0
- package/dist/idl_codegen_kamino_vault/instructions/index.js.map +1 -1
- package/dist/idl_codegen_kamino_vault/instructions/initVault.d.ts +1 -0
- package/dist/idl_codegen_kamino_vault/instructions/initVault.d.ts.map +1 -0
- package/dist/idl_codegen_kamino_vault/instructions/initVault.js.map +1 -1
- package/dist/idl_codegen_kamino_vault/instructions/invest.d.ts +1 -0
- package/dist/idl_codegen_kamino_vault/instructions/invest.d.ts.map +1 -0
- package/dist/idl_codegen_kamino_vault/instructions/invest.js.map +1 -1
- package/dist/idl_codegen_kamino_vault/instructions/updateReserveAllocation.d.ts +1 -0
- package/dist/idl_codegen_kamino_vault/instructions/updateReserveAllocation.d.ts.map +1 -0
- package/dist/idl_codegen_kamino_vault/instructions/updateReserveAllocation.js.map +1 -1
- package/dist/idl_codegen_kamino_vault/instructions/withdraw.d.ts +1 -0
- package/dist/idl_codegen_kamino_vault/instructions/withdraw.d.ts.map +1 -0
- package/dist/idl_codegen_kamino_vault/instructions/withdraw.js.map +1 -1
- package/dist/idl_codegen_kamino_vault/programId.d.ts +1 -0
- package/dist/idl_codegen_kamino_vault/programId.d.ts.map +1 -0
- package/dist/idl_codegen_kamino_vault/programId.js.map +1 -1
- package/dist/idl_codegen_kamino_vault/types/BigFractionBytes.d.ts +1 -0
- package/dist/idl_codegen_kamino_vault/types/BigFractionBytes.d.ts.map +1 -0
- package/dist/idl_codegen_kamino_vault/types/BigFractionBytes.js +2 -0
- package/dist/idl_codegen_kamino_vault/types/BigFractionBytes.js.map +1 -1
- package/dist/idl_codegen_kamino_vault/types/BorrowRateCurve.d.ts +1 -0
- package/dist/idl_codegen_kamino_vault/types/BorrowRateCurve.d.ts.map +1 -0
- package/dist/idl_codegen_kamino_vault/types/BorrowRateCurve.js +2 -1
- package/dist/idl_codegen_kamino_vault/types/BorrowRateCurve.js.map +1 -1
- package/dist/idl_codegen_kamino_vault/types/CurvePoint.d.ts +1 -0
- package/dist/idl_codegen_kamino_vault/types/CurvePoint.d.ts.map +1 -0
- package/dist/idl_codegen_kamino_vault/types/CurvePoint.js +2 -0
- package/dist/idl_codegen_kamino_vault/types/CurvePoint.js.map +1 -1
- package/dist/idl_codegen_kamino_vault/types/LastUpdate.d.ts +1 -0
- package/dist/idl_codegen_kamino_vault/types/LastUpdate.d.ts.map +1 -0
- package/dist/idl_codegen_kamino_vault/types/LastUpdate.js +7 -0
- package/dist/idl_codegen_kamino_vault/types/LastUpdate.js.map +1 -1
- package/dist/idl_codegen_kamino_vault/types/PriceHeuristic.d.ts +1 -0
- package/dist/idl_codegen_kamino_vault/types/PriceHeuristic.d.ts.map +1 -0
- package/dist/idl_codegen_kamino_vault/types/PriceHeuristic.js +6 -0
- package/dist/idl_codegen_kamino_vault/types/PriceHeuristic.js.map +1 -1
- package/dist/idl_codegen_kamino_vault/types/PythConfiguration.d.ts +1 -0
- package/dist/idl_codegen_kamino_vault/types/PythConfiguration.d.ts.map +1 -0
- package/dist/idl_codegen_kamino_vault/types/PythConfiguration.js +2 -0
- package/dist/idl_codegen_kamino_vault/types/PythConfiguration.js.map +1 -1
- package/dist/idl_codegen_kamino_vault/types/ReserveCollateral.d.ts +1 -0
- package/dist/idl_codegen_kamino_vault/types/ReserveCollateral.d.ts.map +1 -0
- package/dist/idl_codegen_kamino_vault/types/ReserveCollateral.js +8 -0
- package/dist/idl_codegen_kamino_vault/types/ReserveCollateral.js.map +1 -1
- package/dist/idl_codegen_kamino_vault/types/ReserveConfig.d.ts +1 -0
- package/dist/idl_codegen_kamino_vault/types/ReserveConfig.d.ts.map +1 -0
- package/dist/idl_codegen_kamino_vault/types/ReserveConfig.js +77 -5
- package/dist/idl_codegen_kamino_vault/types/ReserveConfig.js.map +1 -1
- package/dist/idl_codegen_kamino_vault/types/ReserveFees.d.ts +1 -0
- package/dist/idl_codegen_kamino_vault/types/ReserveFees.d.ts.map +1 -0
- package/dist/idl_codegen_kamino_vault/types/ReserveFees.js +16 -0
- package/dist/idl_codegen_kamino_vault/types/ReserveFees.js.map +1 -1
- package/dist/idl_codegen_kamino_vault/types/ReserveLiquidity.d.ts +1 -0
- package/dist/idl_codegen_kamino_vault/types/ReserveLiquidity.d.ts.map +1 -0
- package/dist/idl_codegen_kamino_vault/types/ReserveLiquidity.js +41 -1
- package/dist/idl_codegen_kamino_vault/types/ReserveLiquidity.js.map +1 -1
- package/dist/idl_codegen_kamino_vault/types/ScopeConfiguration.d.ts +1 -0
- package/dist/idl_codegen_kamino_vault/types/ScopeConfiguration.d.ts.map +1 -0
- package/dist/idl_codegen_kamino_vault/types/ScopeConfiguration.js +6 -0
- package/dist/idl_codegen_kamino_vault/types/ScopeConfiguration.js.map +1 -1
- package/dist/idl_codegen_kamino_vault/types/SwitchboardConfiguration.d.ts +1 -0
- package/dist/idl_codegen_kamino_vault/types/SwitchboardConfiguration.d.ts.map +1 -0
- package/dist/idl_codegen_kamino_vault/types/SwitchboardConfiguration.js +3 -0
- package/dist/idl_codegen_kamino_vault/types/SwitchboardConfiguration.js.map +1 -1
- package/dist/idl_codegen_kamino_vault/types/TokenInfo.d.ts +1 -0
- package/dist/idl_codegen_kamino_vault/types/TokenInfo.d.ts.map +1 -0
- package/dist/idl_codegen_kamino_vault/types/TokenInfo.js +27 -4
- package/dist/idl_codegen_kamino_vault/types/TokenInfo.js.map +1 -1
- package/dist/idl_codegen_kamino_vault/types/VaultAllocation.d.ts +1 -0
- package/dist/idl_codegen_kamino_vault/types/VaultAllocation.d.ts.map +1 -0
- package/dist/idl_codegen_kamino_vault/types/VaultAllocation.js +8 -0
- package/dist/idl_codegen_kamino_vault/types/VaultAllocation.js.map +1 -1
- package/dist/idl_codegen_kamino_vault/types/WithdrawalCaps.d.ts +1 -0
- package/dist/idl_codegen_kamino_vault/types/WithdrawalCaps.d.ts.map +1 -0
- package/dist/idl_codegen_kamino_vault/types/WithdrawalCaps.js +4 -0
- package/dist/idl_codegen_kamino_vault/types/WithdrawalCaps.js.map +1 -1
- package/dist/idl_codegen_kamino_vault/types/index.d.ts +1 -0
- package/dist/idl_codegen_kamino_vault/types/index.d.ts.map +1 -0
- package/dist/idl_codegen_kamino_vault/types/index.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js.map +1 -1
- package/dist/lending_operations/index.d.ts +1 -0
- package/dist/lending_operations/index.d.ts.map +1 -0
- package/dist/lending_operations/index.js.map +1 -1
- package/dist/lending_operations/repay_with_collateral_calcs.d.ts +1 -0
- package/dist/lending_operations/repay_with_collateral_calcs.d.ts.map +1 -0
- package/dist/lending_operations/repay_with_collateral_calcs.js +1 -1
- package/dist/lending_operations/repay_with_collateral_calcs.js.map +1 -1
- package/dist/lending_operations/repay_with_collateral_operations.d.ts +1 -0
- package/dist/lending_operations/repay_with_collateral_operations.d.ts.map +1 -0
- package/dist/lending_operations/repay_with_collateral_operations.js +15 -24
- package/dist/lending_operations/repay_with_collateral_operations.js.map +1 -1
- package/dist/leverage/calcs.d.ts +1 -0
- package/dist/leverage/calcs.d.ts.map +1 -0
- package/dist/leverage/calcs.js +119 -132
- package/dist/leverage/calcs.js.map +1 -1
- package/dist/leverage/index.d.ts +1 -0
- package/dist/leverage/index.d.ts.map +1 -0
- package/dist/leverage/index.js.map +1 -1
- package/dist/leverage/instructions.d.ts +1 -0
- package/dist/leverage/instructions.d.ts.map +1 -0
- package/dist/leverage/instructions.js.map +1 -1
- package/dist/leverage/operations.d.ts +1 -0
- package/dist/leverage/operations.d.ts.map +1 -0
- package/dist/leverage/operations.js +75 -84
- package/dist/leverage/operations.js.map +1 -1
- package/dist/leverage/utils.d.ts +1 -0
- package/dist/leverage/utils.d.ts.map +1 -0
- package/dist/leverage/utils.js +73 -88
- package/dist/leverage/utils.js.map +1 -1
- package/dist/lib.d.ts +1 -0
- package/dist/lib.d.ts.map +1 -0
- package/dist/lib.js.map +1 -1
- package/dist/referrals/index.d.ts +1 -0
- package/dist/referrals/index.d.ts.map +1 -0
- package/dist/referrals/index.js.map +1 -1
- package/dist/referrals/instructions.d.ts +1 -0
- package/dist/referrals/instructions.d.ts.map +1 -0
- package/dist/referrals/instructions.js +8 -17
- package/dist/referrals/instructions.js.map +1 -1
- package/dist/referrals/operations.d.ts +2 -1
- package/dist/referrals/operations.d.ts.map +1 -0
- package/dist/referrals/operations.js +119 -143
- package/dist/referrals/operations.js.map +1 -1
- package/dist/utils/ObligationType.d.ts +1 -0
- package/dist/utils/ObligationType.d.ts.map +1 -0
- package/dist/utils/ObligationType.js +16 -7
- package/dist/utils/ObligationType.js.map +1 -1
- package/dist/utils/api.d.ts +1 -0
- package/dist/utils/api.d.ts.map +1 -0
- package/dist/utils/api.js +10 -21
- package/dist/utils/api.js.map +1 -1
- package/dist/utils/ata.d.ts +1 -0
- package/dist/utils/ata.d.ts.map +1 -0
- package/dist/utils/ata.js +25 -38
- package/dist/utils/ata.js.map +1 -1
- package/dist/utils/constants.d.ts +1 -0
- package/dist/utils/constants.d.ts.map +1 -0
- package/dist/utils/constants.js +1 -1
- package/dist/utils/constants.js.map +1 -1
- package/dist/utils/idl.d.ts +1 -0
- package/dist/utils/idl.d.ts.map +1 -0
- package/dist/utils/idl.js.map +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/instruction.d.ts +1 -0
- package/dist/utils/instruction.d.ts.map +1 -0
- package/dist/utils/instruction.js +116 -143
- package/dist/utils/instruction.js.map +1 -1
- package/dist/utils/kamino.d.ts +1 -0
- package/dist/utils/kamino.d.ts.map +1 -0
- package/dist/utils/kamino.js +4 -15
- package/dist/utils/kamino.js.map +1 -1
- package/dist/utils/layout.d.ts +1 -0
- package/dist/utils/layout.d.ts.map +1 -0
- package/dist/utils/layout.js.map +1 -1
- package/dist/utils/lookupTable.d.ts +1 -0
- package/dist/utils/lookupTable.d.ts.map +1 -0
- package/dist/utils/lookupTable.js +14 -27
- package/dist/utils/lookupTable.js.map +1 -1
- package/dist/utils/managerTypes.d.ts +1 -0
- package/dist/utils/managerTypes.d.ts.map +1 -0
- package/dist/utils/managerTypes.js +31 -2
- package/dist/utils/managerTypes.js.map +1 -1
- package/dist/utils/oracle.d.ts +1 -0
- package/dist/utils/oracle.d.ts.map +1 -0
- package/dist/utils/oracle.js +70 -83
- package/dist/utils/oracle.js.map +1 -1
- package/dist/utils/pubkey.d.ts +1 -0
- package/dist/utils/pubkey.d.ts.map +1 -0
- package/dist/utils/pubkey.js +7 -9
- package/dist/utils/pubkey.js.map +1 -1
- package/dist/utils/rpc.d.ts +1 -0
- package/dist/utils/rpc.d.ts.map +1 -0
- package/dist/utils/rpc.js +48 -70
- package/dist/utils/rpc.js.map +1 -1
- package/dist/utils/seeds.d.ts +1 -0
- package/dist/utils/seeds.d.ts.map +1 -0
- package/dist/utils/seeds.js.map +1 -1
- package/dist/utils/sendTransactionsUtils.d.ts +1 -0
- package/dist/utils/sendTransactionsUtils.d.ts.map +1 -0
- package/dist/utils/sendTransactionsUtils.js +82 -82
- package/dist/utils/sendTransactionsUtils.js.map +1 -1
- package/dist/utils/slots.d.ts +1 -0
- package/dist/utils/slots.d.ts.map +1 -0
- package/dist/utils/slots.js.map +1 -1
- package/dist/utils/syncNative.d.ts +1 -0
- package/dist/utils/syncNative.d.ts.map +1 -0
- package/dist/utils/syncNative.js.map +1 -1
- package/dist/utils/userMetadata.d.ts +1 -0
- package/dist/utils/userMetadata.d.ts.map +1 -0
- package/dist/utils/userMetadata.js +40 -52
- package/dist/utils/userMetadata.js.map +1 -1
- package/package.json +9 -3
- package/src/classes/action.ts +2884 -0
- package/src/classes/curve.ts +29 -0
- package/src/classes/fraction.ts +65 -0
- package/src/classes/index.ts +10 -0
- package/src/classes/jupiterPerps.ts +14 -0
- package/src/classes/manager.ts +746 -0
- package/src/classes/market.ts +1459 -0
- package/src/classes/obligation.ts +1315 -0
- package/src/classes/reserve.ts +1980 -0
- package/src/classes/shared.ts +57 -0
- package/src/classes/utils.ts +192 -0
- package/src/classes/vault.ts +808 -0
- package/src/client.ts +446 -0
- package/src/client_kamino_manager.ts +791 -0
- package/src/global.d.ts +1 -0
- package/src/idl_codegen/accounts/LendingMarket.ts +364 -0
- package/src/idl_codegen/accounts/Obligation.ts +349 -0
- package/src/idl_codegen/accounts/ReferrerState.ts +97 -0
- package/src/idl_codegen/accounts/ReferrerTokenState.ts +145 -0
- package/src/idl_codegen/accounts/Reserve.ts +248 -0
- package/src/idl_codegen/accounts/ShortUrl.ts +97 -0
- package/src/idl_codegen/accounts/UserMetadata.ts +142 -0
- package/src/idl_codegen/accounts/UserState.ts +301 -0
- package/src/idl_codegen/accounts/index.ts +19 -0
- package/src/idl_codegen/errors/anchor.ts +773 -0
- package/src/idl_codegen/errors/custom.ts +1633 -0
- package/src/idl_codegen/errors/index.ts +62 -0
- package/src/idl_codegen/instructions/borrowObligationLiquidity.ts +82 -0
- package/src/idl_codegen/instructions/deleteReferrerStateAndShortUrl.ts +30 -0
- package/src/idl_codegen/instructions/depositObligationCollateral.ts +62 -0
- package/src/idl_codegen/instructions/depositReserveLiquidity.ts +90 -0
- package/src/idl_codegen/instructions/depositReserveLiquidityAndObligationCollateral.ts +98 -0
- package/src/idl_codegen/instructions/flashBorrowReserveLiquidity.ts +82 -0
- package/src/idl_codegen/instructions/flashRepayReserveLiquidity.ts +83 -0
- package/src/idl_codegen/instructions/idlMissingTypes.ts +62 -0
- package/src/idl_codegen/instructions/index.ts +138 -0
- package/src/idl_codegen/instructions/initFarmsForReserve.ts +62 -0
- package/src/idl_codegen/instructions/initLendingMarket.ts +50 -0
- package/src/idl_codegen/instructions/initObligation.ts +52 -0
- package/src/idl_codegen/instructions/initObligationFarmsForReserve.ts +60 -0
- package/src/idl_codegen/instructions/initReferrerStateAndShortUrl.ts +50 -0
- package/src/idl_codegen/instructions/initReferrerTokenState.ts +46 -0
- package/src/idl_codegen/instructions/initReserve.ts +74 -0
- package/src/idl_codegen/instructions/initUserMetadata.ts +50 -0
- package/src/idl_codegen/instructions/liquidateObligationAndRedeemReserveCollateral.ts +139 -0
- package/src/idl_codegen/instructions/redeemFees.ts +50 -0
- package/src/idl_codegen/instructions/redeemReserveCollateral.ts +94 -0
- package/src/idl_codegen/instructions/refreshObligation.ts +24 -0
- package/src/idl_codegen/instructions/refreshObligationFarmsForReserve.ts +62 -0
- package/src/idl_codegen/instructions/refreshReserve.ts +40 -0
- package/src/idl_codegen/instructions/refreshReservesBatch.ts +29 -0
- package/src/idl_codegen/instructions/repayObligationLiquidity.ts +64 -0
- package/src/idl_codegen/instructions/requestElevationGroup.ts +40 -0
- package/src/idl_codegen/instructions/socializeLoss.ts +48 -0
- package/src/idl_codegen/instructions/updateEntireReserveConfig.ts +45 -0
- package/src/idl_codegen/instructions/updateLendingMarket.ts +43 -0
- package/src/idl_codegen/instructions/updateLendingMarketOwner.ts +28 -0
- package/src/idl_codegen/instructions/updateReserveConfig.ts +52 -0
- package/src/idl_codegen/instructions/updateSingleReserveConfig.ts +48 -0
- package/src/idl_codegen/instructions/withdrawObligationCollateral.ts +68 -0
- package/src/idl_codegen/instructions/withdrawObligationCollateralAndRedeemReserveCollateral.ts +102 -0
- package/src/idl_codegen/instructions/withdrawProtocolFee.ts +62 -0
- package/src/idl_codegen/instructions/withdrawReferrerFees.ts +54 -0
- package/src/idl_codegen/programId.ts +13 -0
- package/src/idl_codegen/types/AssetTier.ts +118 -0
- package/src/idl_codegen/types/BigFractionBytes.ts +67 -0
- package/src/idl_codegen/types/BorrowRateCurve.ts +60 -0
- package/src/idl_codegen/types/CurvePoint.ts +64 -0
- package/src/idl_codegen/types/ElevationGroup.ts +133 -0
- package/src/idl_codegen/types/FeeCalculation.ts +90 -0
- package/src/idl_codegen/types/InitObligationArgs.ts +61 -0
- package/src/idl_codegen/types/LastUpdate.ts +95 -0
- package/src/idl_codegen/types/ObligationCollateral.ts +128 -0
- package/src/idl_codegen/types/ObligationLiquidity.ts +159 -0
- package/src/idl_codegen/types/PriceHeuristic.ts +81 -0
- package/src/idl_codegen/types/PythConfiguration.ts +56 -0
- package/src/idl_codegen/types/ReserveCollateral.ts +104 -0
- package/src/idl_codegen/types/ReserveConfig.ts +467 -0
- package/src/idl_codegen/types/ReserveFarmKind.ts +90 -0
- package/src/idl_codegen/types/ReserveFees.ts +122 -0
- package/src/idl_codegen/types/ReserveLiquidity.ts +286 -0
- package/src/idl_codegen/types/ReserveStatus.ts +120 -0
- package/src/idl_codegen/types/ScopeConfiguration.ts +85 -0
- package/src/idl_codegen/types/SwitchboardConfiguration.ts +67 -0
- package/src/idl_codegen/types/TokenInfo.ts +190 -0
- package/src/idl_codegen/types/UpdateConfigMode.ts +1440 -0
- package/src/idl_codegen/types/UpdateLendingMarketConfigValue.ts +376 -0
- package/src/idl_codegen/types/UpdateLendingMarketMode.ts +570 -0
- package/src/idl_codegen/types/WithdrawalCaps.ts +86 -0
- package/src/idl_codegen/types/index.ts +276 -0
- package/src/idl_codegen/zero_padding/ObligationZP.ts +186 -0
- package/src/idl_codegen/zero_padding/index.ts +1 -0
- package/src/idl_codegen_jupiter_perps/accounts/Pool.ts +155 -0
- package/src/idl_codegen_jupiter_perps/accounts/index.ts +2 -0
- package/src/idl_codegen_jupiter_perps/programId.ts +7 -0
- package/src/idl_codegen_jupiter_perps/types/Fees.ts +130 -0
- package/src/idl_codegen_jupiter_perps/types/Limit.ts +72 -0
- package/src/idl_codegen_jupiter_perps/types/PoolApr.ts +69 -0
- package/src/idl_codegen_jupiter_perps/types/index.ts +6 -0
- package/src/idl_codegen_kamino_vault/accounts/Reserve.ts +221 -0
- package/src/idl_codegen_kamino_vault/accounts/VaultState.ts +214 -0
- package/src/idl_codegen_kamino_vault/accounts/index.ts +4 -0
- package/src/idl_codegen_kamino_vault/errors/anchor.ts +764 -0
- package/src/idl_codegen_kamino_vault/errors/custom.ts +344 -0
- package/src/idl_codegen_kamino_vault/errors/index.ts +49 -0
- package/src/idl_codegen_kamino_vault/instructions/deposit.ts +54 -0
- package/src/idl_codegen_kamino_vault/instructions/index.ts +10 -0
- package/src/idl_codegen_kamino_vault/instructions/initVault.ts +35 -0
- package/src/idl_codegen_kamino_vault/instructions/invest.ts +60 -0
- package/src/idl_codegen_kamino_vault/instructions/updateReserveAllocation.ts +58 -0
- package/src/idl_codegen_kamino_vault/instructions/withdraw.ts +81 -0
- package/src/idl_codegen_kamino_vault/programId.ts +7 -0
- package/src/idl_codegen_kamino_vault/types/BigFractionBytes.ts +61 -0
- package/src/idl_codegen_kamino_vault/types/BorrowRateCurve.ts +55 -0
- package/src/idl_codegen_kamino_vault/types/CurvePoint.ts +61 -0
- package/src/idl_codegen_kamino_vault/types/LastUpdate.ts +90 -0
- package/src/idl_codegen_kamino_vault/types/PriceHeuristic.ts +78 -0
- package/src/idl_codegen_kamino_vault/types/PythConfiguration.ts +56 -0
- package/src/idl_codegen_kamino_vault/types/ReserveCollateral.ts +104 -0
- package/src/idl_codegen_kamino_vault/types/ReserveConfig.ts +426 -0
- package/src/idl_codegen_kamino_vault/types/ReserveFees.ts +118 -0
- package/src/idl_codegen_kamino_vault/types/ReserveLiquidity.ts +268 -0
- package/src/idl_codegen_kamino_vault/types/ScopeConfiguration.ts +85 -0
- package/src/idl_codegen_kamino_vault/types/SwitchboardConfiguration.ts +64 -0
- package/src/idl_codegen_kamino_vault/types/TokenInfo.ts +172 -0
- package/src/idl_codegen_kamino_vault/types/VaultAllocation.ts +115 -0
- package/src/idl_codegen_kamino_vault/types/WithdrawalCaps.ts +86 -0
- package/src/idl_codegen_kamino_vault/types/index.ts +30 -0
- package/src/index.ts +1 -0
- package/src/lending_operations/index.ts +2 -0
- package/src/lending_operations/repay_with_collateral_calcs.ts +71 -0
- package/src/lending_operations/repay_with_collateral_operations.ts +318 -0
- package/src/leverage/calcs.ts +465 -0
- package/src/leverage/index.ts +4 -0
- package/src/leverage/instructions.ts +144 -0
- package/src/leverage/operations.ts +1814 -0
- package/src/leverage/utils.ts +273 -0
- package/src/lib.ts +9 -0
- package/src/referrals/index.ts +2 -0
- package/src/referrals/instructions.ts +114 -0
- package/src/referrals/operations.ts +325 -0
- package/src/utils/ObligationType.ts +171 -0
- package/src/utils/api.ts +59 -0
- package/src/utils/ata.ts +195 -0
- package/src/utils/constants.ts +81 -0
- package/src/utils/idl.ts +4 -0
- package/src/utils/index.ts +16 -0
- package/src/utils/instruction.ts +258 -0
- package/src/utils/kamino.ts +12 -0
- package/src/utils/layout.ts +118 -0
- package/src/utils/lookupTable.ts +55 -0
- package/src/utils/managerTypes.ts +456 -0
- package/src/utils/oracle.ts +338 -0
- package/src/utils/pubkey.ts +261 -0
- package/src/utils/rpc.ts +108 -0
- package/src/utils/seeds.ts +183 -0
- package/src/utils/sendTransactionsUtils.ts +207 -0
- package/src/utils/slots.ts +28 -0
- package/src/utils/syncNative.ts +22 -0
- package/src/utils/userMetadata.ts +401 -0
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
import * as UpdateConfigMode from "./UpdateConfigMode"
|
|
2
|
+
import * as UpdateLendingMarketConfigValue from "./UpdateLendingMarketConfigValue"
|
|
3
|
+
import * as UpdateLendingMarketMode from "./UpdateLendingMarketMode"
|
|
4
|
+
import * as AssetTier from "./AssetTier"
|
|
5
|
+
import * as FeeCalculation from "./FeeCalculation"
|
|
6
|
+
import * as ReserveFarmKind from "./ReserveFarmKind"
|
|
7
|
+
import * as ReserveStatus from "./ReserveStatus"
|
|
8
|
+
|
|
9
|
+
export { UpdateConfigMode }
|
|
10
|
+
|
|
11
|
+
export type UpdateConfigModeKind =
|
|
12
|
+
| UpdateConfigMode.UpdateLoanToValuePct
|
|
13
|
+
| UpdateConfigMode.UpdateMaxLiquidationBonusBps
|
|
14
|
+
| UpdateConfigMode.UpdateLiquidationThresholdPct
|
|
15
|
+
| UpdateConfigMode.UpdateProtocolLiquidationFee
|
|
16
|
+
| UpdateConfigMode.UpdateProtocolTakeRate
|
|
17
|
+
| UpdateConfigMode.UpdateFeesBorrowFee
|
|
18
|
+
| UpdateConfigMode.UpdateFeesFlashLoanFee
|
|
19
|
+
| UpdateConfigMode.UpdateFeesReferralFeeBps
|
|
20
|
+
| UpdateConfigMode.UpdateDepositLimit
|
|
21
|
+
| UpdateConfigMode.UpdateBorrowLimit
|
|
22
|
+
| UpdateConfigMode.UpdateTokenInfoLowerHeuristic
|
|
23
|
+
| UpdateConfigMode.UpdateTokenInfoUpperHeuristic
|
|
24
|
+
| UpdateConfigMode.UpdateTokenInfoExpHeuristic
|
|
25
|
+
| UpdateConfigMode.UpdateTokenInfoTwapDivergence
|
|
26
|
+
| UpdateConfigMode.UpdateTokenInfoScopeTwap
|
|
27
|
+
| UpdateConfigMode.UpdateTokenInfoScopeChain
|
|
28
|
+
| UpdateConfigMode.UpdateTokenInfoName
|
|
29
|
+
| UpdateConfigMode.UpdateTokenInfoPriceMaxAge
|
|
30
|
+
| UpdateConfigMode.UpdateTokenInfoTwapMaxAge
|
|
31
|
+
| UpdateConfigMode.UpdateScopePriceFeed
|
|
32
|
+
| UpdateConfigMode.UpdatePythPrice
|
|
33
|
+
| UpdateConfigMode.UpdateSwitchboardFeed
|
|
34
|
+
| UpdateConfigMode.UpdateSwitchboardTwapFeed
|
|
35
|
+
| UpdateConfigMode.UpdateBorrowRateCurve
|
|
36
|
+
| UpdateConfigMode.UpdateEntireReserveConfig
|
|
37
|
+
| UpdateConfigMode.UpdateDebtWithdrawalCap
|
|
38
|
+
| UpdateConfigMode.UpdateDepositWithdrawalCap
|
|
39
|
+
| UpdateConfigMode.UpdateDebtWithdrawalCapCurrentTotal
|
|
40
|
+
| UpdateConfigMode.UpdateDepositWithdrawalCapCurrentTotal
|
|
41
|
+
| UpdateConfigMode.UpdateBadDebtLiquidationBonusBps
|
|
42
|
+
| UpdateConfigMode.UpdateMinLiquidationBonusBps
|
|
43
|
+
| UpdateConfigMode.DeleveragingMarginCallPeriod
|
|
44
|
+
| UpdateConfigMode.UpdateBorrowFactor
|
|
45
|
+
| UpdateConfigMode.UpdateAssetTier
|
|
46
|
+
| UpdateConfigMode.UpdateElevationGroup
|
|
47
|
+
| UpdateConfigMode.DeleveragingThresholdSlotsPerBps
|
|
48
|
+
| UpdateConfigMode.DeprecatedUpdateMultiplierSideBoost
|
|
49
|
+
| UpdateConfigMode.DeprecatedUpdateMultiplierTagBoost
|
|
50
|
+
| UpdateConfigMode.UpdateReserveStatus
|
|
51
|
+
| UpdateConfigMode.UpdateFarmCollateral
|
|
52
|
+
| UpdateConfigMode.UpdateFarmDebt
|
|
53
|
+
| UpdateConfigMode.UpdateDisableUsageAsCollateralOutsideEmode
|
|
54
|
+
| UpdateConfigMode.UpdateBlockBorrowingAboveUtilization
|
|
55
|
+
| UpdateConfigMode.UpdateBlockPriceUsage
|
|
56
|
+
| UpdateConfigMode.UpdateBorrowLimitOutsideElevationGroup
|
|
57
|
+
| UpdateConfigMode.UpdateBorrowLimitsInElevationGroupAgainstThisReserve
|
|
58
|
+
| UpdateConfigMode.UpdateHostFixedInterestRateBps
|
|
59
|
+
export type UpdateConfigModeJSON =
|
|
60
|
+
| UpdateConfigMode.UpdateLoanToValuePctJSON
|
|
61
|
+
| UpdateConfigMode.UpdateMaxLiquidationBonusBpsJSON
|
|
62
|
+
| UpdateConfigMode.UpdateLiquidationThresholdPctJSON
|
|
63
|
+
| UpdateConfigMode.UpdateProtocolLiquidationFeeJSON
|
|
64
|
+
| UpdateConfigMode.UpdateProtocolTakeRateJSON
|
|
65
|
+
| UpdateConfigMode.UpdateFeesBorrowFeeJSON
|
|
66
|
+
| UpdateConfigMode.UpdateFeesFlashLoanFeeJSON
|
|
67
|
+
| UpdateConfigMode.UpdateFeesReferralFeeBpsJSON
|
|
68
|
+
| UpdateConfigMode.UpdateDepositLimitJSON
|
|
69
|
+
| UpdateConfigMode.UpdateBorrowLimitJSON
|
|
70
|
+
| UpdateConfigMode.UpdateTokenInfoLowerHeuristicJSON
|
|
71
|
+
| UpdateConfigMode.UpdateTokenInfoUpperHeuristicJSON
|
|
72
|
+
| UpdateConfigMode.UpdateTokenInfoExpHeuristicJSON
|
|
73
|
+
| UpdateConfigMode.UpdateTokenInfoTwapDivergenceJSON
|
|
74
|
+
| UpdateConfigMode.UpdateTokenInfoScopeTwapJSON
|
|
75
|
+
| UpdateConfigMode.UpdateTokenInfoScopeChainJSON
|
|
76
|
+
| UpdateConfigMode.UpdateTokenInfoNameJSON
|
|
77
|
+
| UpdateConfigMode.UpdateTokenInfoPriceMaxAgeJSON
|
|
78
|
+
| UpdateConfigMode.UpdateTokenInfoTwapMaxAgeJSON
|
|
79
|
+
| UpdateConfigMode.UpdateScopePriceFeedJSON
|
|
80
|
+
| UpdateConfigMode.UpdatePythPriceJSON
|
|
81
|
+
| UpdateConfigMode.UpdateSwitchboardFeedJSON
|
|
82
|
+
| UpdateConfigMode.UpdateSwitchboardTwapFeedJSON
|
|
83
|
+
| UpdateConfigMode.UpdateBorrowRateCurveJSON
|
|
84
|
+
| UpdateConfigMode.UpdateEntireReserveConfigJSON
|
|
85
|
+
| UpdateConfigMode.UpdateDebtWithdrawalCapJSON
|
|
86
|
+
| UpdateConfigMode.UpdateDepositWithdrawalCapJSON
|
|
87
|
+
| UpdateConfigMode.UpdateDebtWithdrawalCapCurrentTotalJSON
|
|
88
|
+
| UpdateConfigMode.UpdateDepositWithdrawalCapCurrentTotalJSON
|
|
89
|
+
| UpdateConfigMode.UpdateBadDebtLiquidationBonusBpsJSON
|
|
90
|
+
| UpdateConfigMode.UpdateMinLiquidationBonusBpsJSON
|
|
91
|
+
| UpdateConfigMode.DeleveragingMarginCallPeriodJSON
|
|
92
|
+
| UpdateConfigMode.UpdateBorrowFactorJSON
|
|
93
|
+
| UpdateConfigMode.UpdateAssetTierJSON
|
|
94
|
+
| UpdateConfigMode.UpdateElevationGroupJSON
|
|
95
|
+
| UpdateConfigMode.DeleveragingThresholdSlotsPerBpsJSON
|
|
96
|
+
| UpdateConfigMode.DeprecatedUpdateMultiplierSideBoostJSON
|
|
97
|
+
| UpdateConfigMode.DeprecatedUpdateMultiplierTagBoostJSON
|
|
98
|
+
| UpdateConfigMode.UpdateReserveStatusJSON
|
|
99
|
+
| UpdateConfigMode.UpdateFarmCollateralJSON
|
|
100
|
+
| UpdateConfigMode.UpdateFarmDebtJSON
|
|
101
|
+
| UpdateConfigMode.UpdateDisableUsageAsCollateralOutsideEmodeJSON
|
|
102
|
+
| UpdateConfigMode.UpdateBlockBorrowingAboveUtilizationJSON
|
|
103
|
+
| UpdateConfigMode.UpdateBlockPriceUsageJSON
|
|
104
|
+
| UpdateConfigMode.UpdateBorrowLimitOutsideElevationGroupJSON
|
|
105
|
+
| UpdateConfigMode.UpdateBorrowLimitsInElevationGroupAgainstThisReserveJSON
|
|
106
|
+
| UpdateConfigMode.UpdateHostFixedInterestRateBpsJSON
|
|
107
|
+
|
|
108
|
+
export { UpdateLendingMarketConfigValue }
|
|
109
|
+
|
|
110
|
+
export type UpdateLendingMarketConfigValueKind =
|
|
111
|
+
| UpdateLendingMarketConfigValue.Bool
|
|
112
|
+
| UpdateLendingMarketConfigValue.U8
|
|
113
|
+
| UpdateLendingMarketConfigValue.U8Array
|
|
114
|
+
| UpdateLendingMarketConfigValue.U16
|
|
115
|
+
| UpdateLendingMarketConfigValue.U64
|
|
116
|
+
| UpdateLendingMarketConfigValue.U128
|
|
117
|
+
| UpdateLendingMarketConfigValue.Pubkey
|
|
118
|
+
| UpdateLendingMarketConfigValue.ElevationGroup
|
|
119
|
+
export type UpdateLendingMarketConfigValueJSON =
|
|
120
|
+
| UpdateLendingMarketConfigValue.BoolJSON
|
|
121
|
+
| UpdateLendingMarketConfigValue.U8JSON
|
|
122
|
+
| UpdateLendingMarketConfigValue.U8ArrayJSON
|
|
123
|
+
| UpdateLendingMarketConfigValue.U16JSON
|
|
124
|
+
| UpdateLendingMarketConfigValue.U64JSON
|
|
125
|
+
| UpdateLendingMarketConfigValue.U128JSON
|
|
126
|
+
| UpdateLendingMarketConfigValue.PubkeyJSON
|
|
127
|
+
| UpdateLendingMarketConfigValue.ElevationGroupJSON
|
|
128
|
+
|
|
129
|
+
export { UpdateLendingMarketMode }
|
|
130
|
+
|
|
131
|
+
export type UpdateLendingMarketModeKind =
|
|
132
|
+
| UpdateLendingMarketMode.UpdateOwner
|
|
133
|
+
| UpdateLendingMarketMode.UpdateEmergencyMode
|
|
134
|
+
| UpdateLendingMarketMode.UpdateLiquidationCloseFactor
|
|
135
|
+
| UpdateLendingMarketMode.UpdateLiquidationMaxValue
|
|
136
|
+
| UpdateLendingMarketMode.UpdateGlobalUnhealthyBorrow
|
|
137
|
+
| UpdateLendingMarketMode.UpdateGlobalAllowedBorrow
|
|
138
|
+
| UpdateLendingMarketMode.UpdateRiskCouncil
|
|
139
|
+
| UpdateLendingMarketMode.UpdateMinFullLiquidationThreshold
|
|
140
|
+
| UpdateLendingMarketMode.UpdateInsolvencyRiskLtv
|
|
141
|
+
| UpdateLendingMarketMode.UpdateElevationGroup
|
|
142
|
+
| UpdateLendingMarketMode.UpdateReferralFeeBps
|
|
143
|
+
| UpdateLendingMarketMode.DeprecatedUpdateMultiplierPoints
|
|
144
|
+
| UpdateLendingMarketMode.UpdatePriceRefreshTriggerToMaxAgePct
|
|
145
|
+
| UpdateLendingMarketMode.UpdateAutodeleverageEnabled
|
|
146
|
+
| UpdateLendingMarketMode.UpdateBorrowingDisabled
|
|
147
|
+
| UpdateLendingMarketMode.UpdateMinNetValueObligationPostAction
|
|
148
|
+
| UpdateLendingMarketMode.UpdateMinValueSkipPriorityLiqCheck
|
|
149
|
+
| UpdateLendingMarketMode.UpdatePaddingFields
|
|
150
|
+
export type UpdateLendingMarketModeJSON =
|
|
151
|
+
| UpdateLendingMarketMode.UpdateOwnerJSON
|
|
152
|
+
| UpdateLendingMarketMode.UpdateEmergencyModeJSON
|
|
153
|
+
| UpdateLendingMarketMode.UpdateLiquidationCloseFactorJSON
|
|
154
|
+
| UpdateLendingMarketMode.UpdateLiquidationMaxValueJSON
|
|
155
|
+
| UpdateLendingMarketMode.UpdateGlobalUnhealthyBorrowJSON
|
|
156
|
+
| UpdateLendingMarketMode.UpdateGlobalAllowedBorrowJSON
|
|
157
|
+
| UpdateLendingMarketMode.UpdateRiskCouncilJSON
|
|
158
|
+
| UpdateLendingMarketMode.UpdateMinFullLiquidationThresholdJSON
|
|
159
|
+
| UpdateLendingMarketMode.UpdateInsolvencyRiskLtvJSON
|
|
160
|
+
| UpdateLendingMarketMode.UpdateElevationGroupJSON
|
|
161
|
+
| UpdateLendingMarketMode.UpdateReferralFeeBpsJSON
|
|
162
|
+
| UpdateLendingMarketMode.DeprecatedUpdateMultiplierPointsJSON
|
|
163
|
+
| UpdateLendingMarketMode.UpdatePriceRefreshTriggerToMaxAgePctJSON
|
|
164
|
+
| UpdateLendingMarketMode.UpdateAutodeleverageEnabledJSON
|
|
165
|
+
| UpdateLendingMarketMode.UpdateBorrowingDisabledJSON
|
|
166
|
+
| UpdateLendingMarketMode.UpdateMinNetValueObligationPostActionJSON
|
|
167
|
+
| UpdateLendingMarketMode.UpdateMinValueSkipPriorityLiqCheckJSON
|
|
168
|
+
| UpdateLendingMarketMode.UpdatePaddingFieldsJSON
|
|
169
|
+
|
|
170
|
+
export { LastUpdate } from "./LastUpdate"
|
|
171
|
+
export type { LastUpdateFields, LastUpdateJSON } from "./LastUpdate"
|
|
172
|
+
export { ElevationGroup } from "./ElevationGroup"
|
|
173
|
+
export type { ElevationGroupFields, ElevationGroupJSON } from "./ElevationGroup"
|
|
174
|
+
export { InitObligationArgs } from "./InitObligationArgs"
|
|
175
|
+
export type {
|
|
176
|
+
InitObligationArgsFields,
|
|
177
|
+
InitObligationArgsJSON,
|
|
178
|
+
} from "./InitObligationArgs"
|
|
179
|
+
export { ObligationCollateral } from "./ObligationCollateral"
|
|
180
|
+
export type {
|
|
181
|
+
ObligationCollateralFields,
|
|
182
|
+
ObligationCollateralJSON,
|
|
183
|
+
} from "./ObligationCollateral"
|
|
184
|
+
export { ObligationLiquidity } from "./ObligationLiquidity"
|
|
185
|
+
export type {
|
|
186
|
+
ObligationLiquidityFields,
|
|
187
|
+
ObligationLiquidityJSON,
|
|
188
|
+
} from "./ObligationLiquidity"
|
|
189
|
+
export { AssetTier }
|
|
190
|
+
|
|
191
|
+
export type AssetTierKind =
|
|
192
|
+
| AssetTier.Regular
|
|
193
|
+
| AssetTier.IsolatedCollateral
|
|
194
|
+
| AssetTier.IsolatedDebt
|
|
195
|
+
export type AssetTierJSON =
|
|
196
|
+
| AssetTier.RegularJSON
|
|
197
|
+
| AssetTier.IsolatedCollateralJSON
|
|
198
|
+
| AssetTier.IsolatedDebtJSON
|
|
199
|
+
|
|
200
|
+
export { BigFractionBytes } from "./BigFractionBytes"
|
|
201
|
+
export type {
|
|
202
|
+
BigFractionBytesFields,
|
|
203
|
+
BigFractionBytesJSON,
|
|
204
|
+
} from "./BigFractionBytes"
|
|
205
|
+
export { FeeCalculation }
|
|
206
|
+
|
|
207
|
+
/** Calculate fees exlusive or inclusive of an amount */
|
|
208
|
+
export type FeeCalculationKind =
|
|
209
|
+
| FeeCalculation.Exclusive
|
|
210
|
+
| FeeCalculation.Inclusive
|
|
211
|
+
export type FeeCalculationJSON =
|
|
212
|
+
| FeeCalculation.ExclusiveJSON
|
|
213
|
+
| FeeCalculation.InclusiveJSON
|
|
214
|
+
|
|
215
|
+
export { ReserveCollateral } from "./ReserveCollateral"
|
|
216
|
+
export type {
|
|
217
|
+
ReserveCollateralFields,
|
|
218
|
+
ReserveCollateralJSON,
|
|
219
|
+
} from "./ReserveCollateral"
|
|
220
|
+
export { ReserveConfig } from "./ReserveConfig"
|
|
221
|
+
export type { ReserveConfigFields, ReserveConfigJSON } from "./ReserveConfig"
|
|
222
|
+
export { ReserveFarmKind }
|
|
223
|
+
|
|
224
|
+
export type ReserveFarmKindKind =
|
|
225
|
+
| ReserveFarmKind.Collateral
|
|
226
|
+
| ReserveFarmKind.Debt
|
|
227
|
+
export type ReserveFarmKindJSON =
|
|
228
|
+
| ReserveFarmKind.CollateralJSON
|
|
229
|
+
| ReserveFarmKind.DebtJSON
|
|
230
|
+
|
|
231
|
+
export { ReserveFees } from "./ReserveFees"
|
|
232
|
+
export type { ReserveFeesFields, ReserveFeesJSON } from "./ReserveFees"
|
|
233
|
+
export { ReserveLiquidity } from "./ReserveLiquidity"
|
|
234
|
+
export type {
|
|
235
|
+
ReserveLiquidityFields,
|
|
236
|
+
ReserveLiquidityJSON,
|
|
237
|
+
} from "./ReserveLiquidity"
|
|
238
|
+
export { ReserveStatus }
|
|
239
|
+
|
|
240
|
+
export type ReserveStatusKind =
|
|
241
|
+
| ReserveStatus.Active
|
|
242
|
+
| ReserveStatus.Obsolete
|
|
243
|
+
| ReserveStatus.Hidden
|
|
244
|
+
export type ReserveStatusJSON =
|
|
245
|
+
| ReserveStatus.ActiveJSON
|
|
246
|
+
| ReserveStatus.ObsoleteJSON
|
|
247
|
+
| ReserveStatus.HiddenJSON
|
|
248
|
+
|
|
249
|
+
export { WithdrawalCaps } from "./WithdrawalCaps"
|
|
250
|
+
export type { WithdrawalCapsFields, WithdrawalCapsJSON } from "./WithdrawalCaps"
|
|
251
|
+
export { PriceHeuristic } from "./PriceHeuristic"
|
|
252
|
+
export type { PriceHeuristicFields, PriceHeuristicJSON } from "./PriceHeuristic"
|
|
253
|
+
export { PythConfiguration } from "./PythConfiguration"
|
|
254
|
+
export type {
|
|
255
|
+
PythConfigurationFields,
|
|
256
|
+
PythConfigurationJSON,
|
|
257
|
+
} from "./PythConfiguration"
|
|
258
|
+
export { ScopeConfiguration } from "./ScopeConfiguration"
|
|
259
|
+
export type {
|
|
260
|
+
ScopeConfigurationFields,
|
|
261
|
+
ScopeConfigurationJSON,
|
|
262
|
+
} from "./ScopeConfiguration"
|
|
263
|
+
export { SwitchboardConfiguration } from "./SwitchboardConfiguration"
|
|
264
|
+
export type {
|
|
265
|
+
SwitchboardConfigurationFields,
|
|
266
|
+
SwitchboardConfigurationJSON,
|
|
267
|
+
} from "./SwitchboardConfiguration"
|
|
268
|
+
export { TokenInfo } from "./TokenInfo"
|
|
269
|
+
export type { TokenInfoFields, TokenInfoJSON } from "./TokenInfo"
|
|
270
|
+
export { BorrowRateCurve } from "./BorrowRateCurve"
|
|
271
|
+
export type {
|
|
272
|
+
BorrowRateCurveFields,
|
|
273
|
+
BorrowRateCurveJSON,
|
|
274
|
+
} from "./BorrowRateCurve"
|
|
275
|
+
export { CurvePoint } from "./CurvePoint"
|
|
276
|
+
export type { CurvePointFields, CurvePointJSON } from "./CurvePoint"
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { PublicKey, Connection } from "@solana/web3.js"
|
|
2
|
+
import BN from "bn.js" // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
3
|
+
import * as borsh from "@coral-xyz/borsh" // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
4
|
+
import * as types from "../types" // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
5
|
+
import { PROGRAM_ID } from "../programId"
|
|
6
|
+
import { Obligation, ObligationFields } from '../accounts';
|
|
7
|
+
|
|
8
|
+
/** Lending market obligation state */
|
|
9
|
+
export class ObligationZP {
|
|
10
|
+
/** Version of the struct */
|
|
11
|
+
readonly tag: BN
|
|
12
|
+
/** Last update to collateral, liquidity, or their market values */
|
|
13
|
+
readonly lastUpdate: types.LastUpdate
|
|
14
|
+
/** Lending market address */
|
|
15
|
+
readonly lendingMarket: PublicKey
|
|
16
|
+
/** Owner authority which can borrow liquidity */
|
|
17
|
+
readonly owner: PublicKey
|
|
18
|
+
/**
|
|
19
|
+
* TODO: Does this break the stack size when copied onto the stack, if too big?
|
|
20
|
+
* Deposited collateral for the obligation, unique by deposit reserve address
|
|
21
|
+
*/
|
|
22
|
+
readonly deposits: Array<types.ObligationCollateral>
|
|
23
|
+
/** Worst LTV for the collaterals backing the loan, represented as a percentage */
|
|
24
|
+
readonly lowestReserveDepositLiquidationLtv: BN
|
|
25
|
+
/** Market value of deposits (scaled fraction) */
|
|
26
|
+
readonly depositedValueSf: BN
|
|
27
|
+
/** Borrowed liquidity for the obligation, unique by borrow reserve address */
|
|
28
|
+
readonly borrows: Array<types.ObligationLiquidity>
|
|
29
|
+
/** Risk adjusted market value of borrows/debt (sum of price * borrowed_amount * borrow_factor) (scaled fraction) */
|
|
30
|
+
readonly borrowFactorAdjustedDebtValueSf: BN
|
|
31
|
+
/** Market value of borrows - used for max_liquidatable_borrowed_amount (scaled fraction) */
|
|
32
|
+
readonly borrowedAssetsMarketValueSf: BN
|
|
33
|
+
/** The maximum borrow value at the weighted average loan to value ratio (scaled fraction) */
|
|
34
|
+
readonly allowedBorrowValueSf: BN
|
|
35
|
+
/** The dangerous borrow value at the weighted average liquidation threshold (scaled fraction) */
|
|
36
|
+
readonly unhealthyBorrowValueSf: BN
|
|
37
|
+
/** The asset tier of the deposits */
|
|
38
|
+
readonly depositsAssetTiers: Array<number>
|
|
39
|
+
/** The asset tier of the borrows */
|
|
40
|
+
readonly borrowsAssetTiers: Array<number>
|
|
41
|
+
/** The elevation group id the obligation opted into. */
|
|
42
|
+
readonly elevationGroup: number
|
|
43
|
+
/** The number of deprecated reserves the obligation has a deposit */
|
|
44
|
+
readonly numOfObsoleteReserves: number
|
|
45
|
+
/** Marked = 1 if borrows array is not empty, 0 = borrows empty */
|
|
46
|
+
readonly hasDebt: number
|
|
47
|
+
/** Wallet address of the referrer */
|
|
48
|
+
readonly referrer: PublicKey
|
|
49
|
+
/** Marked = 1 if borrowing disabled, 0 = borrowing enabled */
|
|
50
|
+
readonly borrowingDisabled: number
|
|
51
|
+
reserved: Array<BN> = new Array(0)
|
|
52
|
+
highestBorrowFactorPct: BN
|
|
53
|
+
padding3: Array<BN> = new Array(0)
|
|
54
|
+
|
|
55
|
+
static readonly layout = borsh.struct([
|
|
56
|
+
borsh.u64("tag"),
|
|
57
|
+
types.LastUpdate.layout("lastUpdate"),
|
|
58
|
+
borsh.publicKey("lendingMarket"),
|
|
59
|
+
borsh.publicKey("owner"),
|
|
60
|
+
borsh.array(types.ObligationCollateral.layout(), 8, "deposits"),
|
|
61
|
+
borsh.u64("lowestReserveDepositLiquidationLtv"),
|
|
62
|
+
borsh.u128("depositedValueSf"),
|
|
63
|
+
borsh.array(types.ObligationLiquidity.layout(), 5, "borrows"),
|
|
64
|
+
borsh.u128("borrowFactorAdjustedDebtValueSf"),
|
|
65
|
+
borsh.u128("borrowedAssetsMarketValueSf"),
|
|
66
|
+
borsh.u128("allowedBorrowValueSf"),
|
|
67
|
+
borsh.u128("unhealthyBorrowValueSf"),
|
|
68
|
+
borsh.array(borsh.u8(), 8, "depositsAssetTiers"),
|
|
69
|
+
borsh.array(borsh.u8(), 5, "borrowsAssetTiers"),
|
|
70
|
+
borsh.u8("elevationGroup"),
|
|
71
|
+
borsh.u8("numOfObsoleteReserves"),
|
|
72
|
+
borsh.u8("hasDebt"),
|
|
73
|
+
borsh.publicKey("referrer"),
|
|
74
|
+
borsh.u8("borrowingDisabled"),
|
|
75
|
+
borsh.array(borsh.u8(), 7, "reserved"),
|
|
76
|
+
borsh.u64("highestBorrowFactorPct"),
|
|
77
|
+
])
|
|
78
|
+
|
|
79
|
+
constructor(fields: ObligationFields) {
|
|
80
|
+
this.tag = fields.tag
|
|
81
|
+
this.lastUpdate = new types.LastUpdate({ ...fields.lastUpdate })
|
|
82
|
+
this.lendingMarket = fields.lendingMarket
|
|
83
|
+
this.owner = fields.owner
|
|
84
|
+
this.deposits = fields.deposits.map(
|
|
85
|
+
(item) => new types.ObligationCollateral({ ...item })
|
|
86
|
+
)
|
|
87
|
+
this.lowestReserveDepositLiquidationLtv =
|
|
88
|
+
fields.lowestReserveDepositLiquidationLtv
|
|
89
|
+
this.depositedValueSf = fields.depositedValueSf
|
|
90
|
+
this.borrows = fields.borrows.map(
|
|
91
|
+
(item) => new types.ObligationLiquidity({ ...item })
|
|
92
|
+
)
|
|
93
|
+
this.borrowFactorAdjustedDebtValueSf =
|
|
94
|
+
fields.borrowFactorAdjustedDebtValueSf
|
|
95
|
+
this.borrowedAssetsMarketValueSf = fields.borrowedAssetsMarketValueSf
|
|
96
|
+
this.allowedBorrowValueSf = fields.allowedBorrowValueSf
|
|
97
|
+
this.unhealthyBorrowValueSf = fields.unhealthyBorrowValueSf
|
|
98
|
+
this.depositsAssetTiers = fields.depositsAssetTiers
|
|
99
|
+
this.borrowsAssetTiers = fields.borrowsAssetTiers
|
|
100
|
+
this.elevationGroup = fields.elevationGroup
|
|
101
|
+
this.numOfObsoleteReserves = fields.numOfObsoleteReserves
|
|
102
|
+
this.hasDebt = fields.hasDebt
|
|
103
|
+
this.referrer = fields.referrer
|
|
104
|
+
this.borrowingDisabled = fields.borrowingDisabled
|
|
105
|
+
this.reserved = new Array<BN>(0);
|
|
106
|
+
this.highestBorrowFactorPct = fields.highestBorrowFactorPct
|
|
107
|
+
this.padding3 = new Array<BN>(0);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
static async fetch(
|
|
111
|
+
c: Connection,
|
|
112
|
+
address: PublicKey,
|
|
113
|
+
programId: PublicKey = PROGRAM_ID
|
|
114
|
+
): Promise<Obligation | null> {
|
|
115
|
+
const info = await c.getAccountInfo(address)
|
|
116
|
+
|
|
117
|
+
if (info === null) {
|
|
118
|
+
return null
|
|
119
|
+
}
|
|
120
|
+
if (!info.owner.equals(programId)) {
|
|
121
|
+
throw new Error("account doesn't belong to this program")
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
return this.decode(info.data)
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
static async fetchMultiple(
|
|
128
|
+
c: Connection,
|
|
129
|
+
addresses: PublicKey[],
|
|
130
|
+
programId: PublicKey = PROGRAM_ID
|
|
131
|
+
): Promise<Array<Obligation | null>> {
|
|
132
|
+
const infos = await c.getMultipleAccountsInfo(addresses)
|
|
133
|
+
|
|
134
|
+
return infos.map((info) => {
|
|
135
|
+
if (info === null) {
|
|
136
|
+
return null
|
|
137
|
+
}
|
|
138
|
+
if (!info.owner.equals(programId)) {
|
|
139
|
+
throw new Error("account doesn't belong to this program")
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
return this.decode(info.data)
|
|
143
|
+
})
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
static decode(data: Buffer): Obligation {
|
|
147
|
+
if (!data.slice(0, 8).equals(Obligation.discriminator)) {
|
|
148
|
+
throw new Error("invalid account discriminator")
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
const dec = ObligationZP.layout.decode(data.slice(8))
|
|
152
|
+
|
|
153
|
+
return new Obligation({
|
|
154
|
+
tag: dec.tag,
|
|
155
|
+
lastUpdate: types.LastUpdate.fromDecoded(dec.lastUpdate),
|
|
156
|
+
lendingMarket: dec.lendingMarket,
|
|
157
|
+
owner: dec.owner,
|
|
158
|
+
deposits: dec.deposits.map(
|
|
159
|
+
(
|
|
160
|
+
item: any /* eslint-disable-line @typescript-eslint/no-explicit-any */
|
|
161
|
+
) => types.ObligationCollateral.fromDecoded(item)
|
|
162
|
+
),
|
|
163
|
+
lowestReserveDepositLiquidationLtv: dec.lowestReserveDepositLiquidationLtv,
|
|
164
|
+
depositedValueSf: dec.depositedValueSf,
|
|
165
|
+
borrows: dec.borrows.map(
|
|
166
|
+
(
|
|
167
|
+
item: any /* eslint-disable-line @typescript-eslint/no-explicit-any */
|
|
168
|
+
) => types.ObligationLiquidity.fromDecoded(item)
|
|
169
|
+
),
|
|
170
|
+
borrowFactorAdjustedDebtValueSf: dec.borrowFactorAdjustedDebtValueSf,
|
|
171
|
+
borrowedAssetsMarketValueSf: dec.borrowedAssetsMarketValueSf,
|
|
172
|
+
allowedBorrowValueSf: dec.allowedBorrowValueSf,
|
|
173
|
+
unhealthyBorrowValueSf: dec.unhealthyBorrowValueSf,
|
|
174
|
+
depositsAssetTiers: dec.depositsAssetTiers,
|
|
175
|
+
borrowsAssetTiers: dec.borrowsAssetTiers,
|
|
176
|
+
elevationGroup: dec.elevationGroup,
|
|
177
|
+
numOfObsoleteReserves: dec.numOfObsoleteReserves,
|
|
178
|
+
hasDebt: dec.hasDebt,
|
|
179
|
+
referrer: dec.referrer,
|
|
180
|
+
borrowingDisabled: dec.borrowingDisabled,
|
|
181
|
+
highestBorrowFactorPct: dec.highestBorrowFactorPct,
|
|
182
|
+
reserved: [],
|
|
183
|
+
padding3: [],
|
|
184
|
+
})
|
|
185
|
+
}
|
|
186
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ObligationZP } from "./ObligationZP"
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { PublicKey, Connection } from '@solana/web3.js';
|
|
2
|
+
import BN from 'bn.js'; // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
3
|
+
import * as borsh from '@coral-xyz/borsh'; // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
4
|
+
import * as types from '../types'; // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
5
|
+
import { PROGRAM_ID } from '../programId';
|
|
6
|
+
|
|
7
|
+
export interface PoolFields {
|
|
8
|
+
name: string;
|
|
9
|
+
custodies: Array<PublicKey>;
|
|
10
|
+
aumUsd: BN;
|
|
11
|
+
limit: types.LimitFields;
|
|
12
|
+
fees: types.FeesFields;
|
|
13
|
+
poolApr: types.PoolAprFields;
|
|
14
|
+
maxRequestExecutionSec: BN;
|
|
15
|
+
bump: number;
|
|
16
|
+
lpTokenBump: number;
|
|
17
|
+
inceptionTime: BN;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface PoolJSON {
|
|
21
|
+
name: string;
|
|
22
|
+
custodies: Array<string>;
|
|
23
|
+
aumUsd: string;
|
|
24
|
+
limit: types.LimitJSON;
|
|
25
|
+
fees: types.FeesJSON;
|
|
26
|
+
poolApr: types.PoolAprJSON;
|
|
27
|
+
maxRequestExecutionSec: string;
|
|
28
|
+
bump: number;
|
|
29
|
+
lpTokenBump: number;
|
|
30
|
+
inceptionTime: string;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export class Pool {
|
|
34
|
+
readonly name: string;
|
|
35
|
+
readonly custodies: Array<PublicKey>;
|
|
36
|
+
readonly aumUsd: BN;
|
|
37
|
+
readonly limit: types.Limit;
|
|
38
|
+
readonly fees: types.Fees;
|
|
39
|
+
readonly poolApr: types.PoolApr;
|
|
40
|
+
readonly maxRequestExecutionSec: BN;
|
|
41
|
+
readonly bump: number;
|
|
42
|
+
readonly lpTokenBump: number;
|
|
43
|
+
readonly inceptionTime: BN;
|
|
44
|
+
|
|
45
|
+
static readonly discriminator = Buffer.from([241, 154, 109, 4, 17, 177, 109, 188]);
|
|
46
|
+
|
|
47
|
+
static readonly layout = borsh.struct([
|
|
48
|
+
borsh.str('name'),
|
|
49
|
+
borsh.vec(borsh.publicKey(), 'custodies'),
|
|
50
|
+
borsh.u128('aumUsd'),
|
|
51
|
+
types.Limit.layout('limit'),
|
|
52
|
+
types.Fees.layout('fees'),
|
|
53
|
+
types.PoolApr.layout('poolApr'),
|
|
54
|
+
borsh.i64('maxRequestExecutionSec'),
|
|
55
|
+
borsh.u8('bump'),
|
|
56
|
+
borsh.u8('lpTokenBump'),
|
|
57
|
+
borsh.i64('inceptionTime'),
|
|
58
|
+
]);
|
|
59
|
+
|
|
60
|
+
constructor(fields: PoolFields) {
|
|
61
|
+
this.name = fields.name;
|
|
62
|
+
this.custodies = fields.custodies;
|
|
63
|
+
this.aumUsd = fields.aumUsd;
|
|
64
|
+
this.limit = new types.Limit({ ...fields.limit });
|
|
65
|
+
this.fees = new types.Fees({ ...fields.fees });
|
|
66
|
+
this.poolApr = new types.PoolApr({ ...fields.poolApr });
|
|
67
|
+
this.maxRequestExecutionSec = fields.maxRequestExecutionSec;
|
|
68
|
+
this.bump = fields.bump;
|
|
69
|
+
this.lpTokenBump = fields.lpTokenBump;
|
|
70
|
+
this.inceptionTime = fields.inceptionTime;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
static async fetch(c: Connection, address: PublicKey, programId: PublicKey = PROGRAM_ID): Promise<Pool | null> {
|
|
74
|
+
const info = await c.getAccountInfo(address);
|
|
75
|
+
|
|
76
|
+
if (info === null) {
|
|
77
|
+
return null;
|
|
78
|
+
}
|
|
79
|
+
if (!info.owner.equals(programId)) {
|
|
80
|
+
throw new Error("account doesn't belong to this program");
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return this.decode(info.data);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
static async fetchMultiple(
|
|
87
|
+
c: Connection,
|
|
88
|
+
addresses: PublicKey[],
|
|
89
|
+
programId: PublicKey = PROGRAM_ID
|
|
90
|
+
): Promise<Array<Pool | null>> {
|
|
91
|
+
const infos = await c.getMultipleAccountsInfo(addresses);
|
|
92
|
+
|
|
93
|
+
return infos.map((info) => {
|
|
94
|
+
if (info === null) {
|
|
95
|
+
return null;
|
|
96
|
+
}
|
|
97
|
+
if (!info.owner.equals(programId)) {
|
|
98
|
+
throw new Error("account doesn't belong to this program");
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return this.decode(info.data);
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
static decode(data: Buffer): Pool {
|
|
106
|
+
if (!data.slice(0, 8).equals(Pool.discriminator)) {
|
|
107
|
+
throw new Error('invalid account discriminator');
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
const dec = Pool.layout.decode(data.slice(8));
|
|
111
|
+
|
|
112
|
+
return new Pool({
|
|
113
|
+
name: dec.name,
|
|
114
|
+
custodies: dec.custodies,
|
|
115
|
+
aumUsd: dec.aumUsd,
|
|
116
|
+
limit: types.Limit.fromDecoded(dec.limit),
|
|
117
|
+
fees: types.Fees.fromDecoded(dec.fees),
|
|
118
|
+
poolApr: types.PoolApr.fromDecoded(dec.poolApr),
|
|
119
|
+
maxRequestExecutionSec: dec.maxRequestExecutionSec,
|
|
120
|
+
bump: dec.bump,
|
|
121
|
+
lpTokenBump: dec.lpTokenBump,
|
|
122
|
+
inceptionTime: dec.inceptionTime,
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
toJSON(): PoolJSON {
|
|
127
|
+
return {
|
|
128
|
+
name: this.name,
|
|
129
|
+
custodies: this.custodies.map((item) => item.toString()),
|
|
130
|
+
aumUsd: this.aumUsd.toString(),
|
|
131
|
+
limit: this.limit.toJSON(),
|
|
132
|
+
fees: this.fees.toJSON(),
|
|
133
|
+
poolApr: this.poolApr.toJSON(),
|
|
134
|
+
maxRequestExecutionSec: this.maxRequestExecutionSec.toString(),
|
|
135
|
+
bump: this.bump,
|
|
136
|
+
lpTokenBump: this.lpTokenBump,
|
|
137
|
+
inceptionTime: this.inceptionTime.toString(),
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
static fromJSON(obj: PoolJSON): Pool {
|
|
142
|
+
return new Pool({
|
|
143
|
+
name: obj.name,
|
|
144
|
+
custodies: obj.custodies.map((item) => new PublicKey(item)),
|
|
145
|
+
aumUsd: new BN(obj.aumUsd),
|
|
146
|
+
limit: types.Limit.fromJSON(obj.limit),
|
|
147
|
+
fees: types.Fees.fromJSON(obj.fees),
|
|
148
|
+
poolApr: types.PoolApr.fromJSON(obj.poolApr),
|
|
149
|
+
maxRequestExecutionSec: new BN(obj.maxRequestExecutionSec),
|
|
150
|
+
bump: obj.bump,
|
|
151
|
+
lpTokenBump: obj.lpTokenBump,
|
|
152
|
+
inceptionTime: new BN(obj.inceptionTime),
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PublicKey } from '@solana/web3.js';
|
|
2
|
+
|
|
3
|
+
// Program ID passed with the cli --program-id flag when running the code generator. Do not edit, it will get overwritten.
|
|
4
|
+
export const PROGRAM_ID_CLI = new PublicKey('PERPHjGBqRHArX4DySjwM6UJHiR3sWAatqfdBS2qQJu');
|
|
5
|
+
|
|
6
|
+
// This constant will not get overwritten on subsequent code generations and it's safe to modify it's value.
|
|
7
|
+
export const PROGRAM_ID: PublicKey = PROGRAM_ID_CLI;
|