@kamino-finance/klend-sdk 3.2.26 → 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 +120 -129
- 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
|
@@ -5,1237 +5,1349 @@ exports.LiquidationBorrowFactorPriority = exports.BorrowingAboveUtilizationRateD
|
|
|
5
5
|
exports.CannotCalculateReferralAmountDueToSlotsMismatch = exports.DepositDisabledOutsideElevationGroup = exports.InvalidTokenAccount = exports.UnsupportedTokenExtension = exports.ObligationElevationGroupMultipleDebtReserve = exports.ObligationCollateralExceedsElevationGroupLimit = exports.ElevationGroupDebtReserveAsCollateral = exports.ElevationGroupHasAnotherDebtReserve = exports.ElevationGroupMaxCollateralReserveZero = exports.ElevationGroupWithoutDebtReserve = exports.ElevationGroupBorrowLimitExceeded = exports.LiquidationLowestLTVPriority = void 0;
|
|
6
6
|
exports.fromCode = fromCode;
|
|
7
7
|
class InvalidMarketAuthority extends Error {
|
|
8
|
+
logs;
|
|
9
|
+
static code = 6000;
|
|
10
|
+
code = 6000;
|
|
11
|
+
name = "InvalidMarketAuthority";
|
|
12
|
+
msg = "Market authority is invalid";
|
|
8
13
|
constructor(logs) {
|
|
9
14
|
super("6000: Market authority is invalid");
|
|
10
15
|
this.logs = logs;
|
|
11
|
-
this.code = 6000;
|
|
12
|
-
this.name = "InvalidMarketAuthority";
|
|
13
|
-
this.msg = "Market authority is invalid";
|
|
14
16
|
}
|
|
15
17
|
}
|
|
16
18
|
exports.InvalidMarketAuthority = InvalidMarketAuthority;
|
|
17
|
-
InvalidMarketAuthority.code = 6000;
|
|
18
19
|
class InvalidMarketOwner extends Error {
|
|
20
|
+
logs;
|
|
21
|
+
static code = 6001;
|
|
22
|
+
code = 6001;
|
|
23
|
+
name = "InvalidMarketOwner";
|
|
24
|
+
msg = "Market owner is invalid";
|
|
19
25
|
constructor(logs) {
|
|
20
26
|
super("6001: Market owner is invalid");
|
|
21
27
|
this.logs = logs;
|
|
22
|
-
this.code = 6001;
|
|
23
|
-
this.name = "InvalidMarketOwner";
|
|
24
|
-
this.msg = "Market owner is invalid";
|
|
25
28
|
}
|
|
26
29
|
}
|
|
27
30
|
exports.InvalidMarketOwner = InvalidMarketOwner;
|
|
28
|
-
InvalidMarketOwner.code = 6001;
|
|
29
31
|
class InvalidAccountOwner extends Error {
|
|
32
|
+
logs;
|
|
33
|
+
static code = 6002;
|
|
34
|
+
code = 6002;
|
|
35
|
+
name = "InvalidAccountOwner";
|
|
36
|
+
msg = "Input account owner is not the program address";
|
|
30
37
|
constructor(logs) {
|
|
31
38
|
super("6002: Input account owner is not the program address");
|
|
32
39
|
this.logs = logs;
|
|
33
|
-
this.code = 6002;
|
|
34
|
-
this.name = "InvalidAccountOwner";
|
|
35
|
-
this.msg = "Input account owner is not the program address";
|
|
36
40
|
}
|
|
37
41
|
}
|
|
38
42
|
exports.InvalidAccountOwner = InvalidAccountOwner;
|
|
39
|
-
InvalidAccountOwner.code = 6002;
|
|
40
43
|
class InvalidAmount extends Error {
|
|
44
|
+
logs;
|
|
45
|
+
static code = 6003;
|
|
46
|
+
code = 6003;
|
|
47
|
+
name = "InvalidAmount";
|
|
48
|
+
msg = "Input amount is invalid";
|
|
41
49
|
constructor(logs) {
|
|
42
50
|
super("6003: Input amount is invalid");
|
|
43
51
|
this.logs = logs;
|
|
44
|
-
this.code = 6003;
|
|
45
|
-
this.name = "InvalidAmount";
|
|
46
|
-
this.msg = "Input amount is invalid";
|
|
47
52
|
}
|
|
48
53
|
}
|
|
49
54
|
exports.InvalidAmount = InvalidAmount;
|
|
50
|
-
InvalidAmount.code = 6003;
|
|
51
55
|
class InvalidConfig extends Error {
|
|
56
|
+
logs;
|
|
57
|
+
static code = 6004;
|
|
58
|
+
code = 6004;
|
|
59
|
+
name = "InvalidConfig";
|
|
60
|
+
msg = "Input config value is invalid";
|
|
52
61
|
constructor(logs) {
|
|
53
62
|
super("6004: Input config value is invalid");
|
|
54
63
|
this.logs = logs;
|
|
55
|
-
this.code = 6004;
|
|
56
|
-
this.name = "InvalidConfig";
|
|
57
|
-
this.msg = "Input config value is invalid";
|
|
58
64
|
}
|
|
59
65
|
}
|
|
60
66
|
exports.InvalidConfig = InvalidConfig;
|
|
61
|
-
InvalidConfig.code = 6004;
|
|
62
67
|
class InvalidSigner extends Error {
|
|
68
|
+
logs;
|
|
69
|
+
static code = 6005;
|
|
70
|
+
code = 6005;
|
|
71
|
+
name = "InvalidSigner";
|
|
72
|
+
msg = "Input account must be a signer";
|
|
63
73
|
constructor(logs) {
|
|
64
74
|
super("6005: Input account must be a signer");
|
|
65
75
|
this.logs = logs;
|
|
66
|
-
this.code = 6005;
|
|
67
|
-
this.name = "InvalidSigner";
|
|
68
|
-
this.msg = "Input account must be a signer";
|
|
69
76
|
}
|
|
70
77
|
}
|
|
71
78
|
exports.InvalidSigner = InvalidSigner;
|
|
72
|
-
InvalidSigner.code = 6005;
|
|
73
79
|
class InvalidAccountInput extends Error {
|
|
80
|
+
logs;
|
|
81
|
+
static code = 6006;
|
|
82
|
+
code = 6006;
|
|
83
|
+
name = "InvalidAccountInput";
|
|
84
|
+
msg = "Invalid account input";
|
|
74
85
|
constructor(logs) {
|
|
75
86
|
super("6006: Invalid account input");
|
|
76
87
|
this.logs = logs;
|
|
77
|
-
this.code = 6006;
|
|
78
|
-
this.name = "InvalidAccountInput";
|
|
79
|
-
this.msg = "Invalid account input";
|
|
80
88
|
}
|
|
81
89
|
}
|
|
82
90
|
exports.InvalidAccountInput = InvalidAccountInput;
|
|
83
|
-
InvalidAccountInput.code = 6006;
|
|
84
91
|
class MathOverflow extends Error {
|
|
92
|
+
logs;
|
|
93
|
+
static code = 6007;
|
|
94
|
+
code = 6007;
|
|
95
|
+
name = "MathOverflow";
|
|
96
|
+
msg = "Math operation overflow";
|
|
85
97
|
constructor(logs) {
|
|
86
98
|
super("6007: Math operation overflow");
|
|
87
99
|
this.logs = logs;
|
|
88
|
-
this.code = 6007;
|
|
89
|
-
this.name = "MathOverflow";
|
|
90
|
-
this.msg = "Math operation overflow";
|
|
91
100
|
}
|
|
92
101
|
}
|
|
93
102
|
exports.MathOverflow = MathOverflow;
|
|
94
|
-
MathOverflow.code = 6007;
|
|
95
103
|
class InsufficientLiquidity extends Error {
|
|
104
|
+
logs;
|
|
105
|
+
static code = 6008;
|
|
106
|
+
code = 6008;
|
|
107
|
+
name = "InsufficientLiquidity";
|
|
108
|
+
msg = "Insufficient liquidity available";
|
|
96
109
|
constructor(logs) {
|
|
97
110
|
super("6008: Insufficient liquidity available");
|
|
98
111
|
this.logs = logs;
|
|
99
|
-
this.code = 6008;
|
|
100
|
-
this.name = "InsufficientLiquidity";
|
|
101
|
-
this.msg = "Insufficient liquidity available";
|
|
102
112
|
}
|
|
103
113
|
}
|
|
104
114
|
exports.InsufficientLiquidity = InsufficientLiquidity;
|
|
105
|
-
InsufficientLiquidity.code = 6008;
|
|
106
115
|
class ReserveStale extends Error {
|
|
116
|
+
logs;
|
|
117
|
+
static code = 6009;
|
|
118
|
+
code = 6009;
|
|
119
|
+
name = "ReserveStale";
|
|
120
|
+
msg = "Reserve state needs to be refreshed";
|
|
107
121
|
constructor(logs) {
|
|
108
122
|
super("6009: Reserve state needs to be refreshed");
|
|
109
123
|
this.logs = logs;
|
|
110
|
-
this.code = 6009;
|
|
111
|
-
this.name = "ReserveStale";
|
|
112
|
-
this.msg = "Reserve state needs to be refreshed";
|
|
113
124
|
}
|
|
114
125
|
}
|
|
115
126
|
exports.ReserveStale = ReserveStale;
|
|
116
|
-
ReserveStale.code = 6009;
|
|
117
127
|
class WithdrawTooSmall extends Error {
|
|
128
|
+
logs;
|
|
129
|
+
static code = 6010;
|
|
130
|
+
code = 6010;
|
|
131
|
+
name = "WithdrawTooSmall";
|
|
132
|
+
msg = "Withdraw amount too small";
|
|
118
133
|
constructor(logs) {
|
|
119
134
|
super("6010: Withdraw amount too small");
|
|
120
135
|
this.logs = logs;
|
|
121
|
-
this.code = 6010;
|
|
122
|
-
this.name = "WithdrawTooSmall";
|
|
123
|
-
this.msg = "Withdraw amount too small";
|
|
124
136
|
}
|
|
125
137
|
}
|
|
126
138
|
exports.WithdrawTooSmall = WithdrawTooSmall;
|
|
127
|
-
WithdrawTooSmall.code = 6010;
|
|
128
139
|
class WithdrawTooLarge extends Error {
|
|
140
|
+
logs;
|
|
141
|
+
static code = 6011;
|
|
142
|
+
code = 6011;
|
|
143
|
+
name = "WithdrawTooLarge";
|
|
144
|
+
msg = "Withdraw amount too large";
|
|
129
145
|
constructor(logs) {
|
|
130
146
|
super("6011: Withdraw amount too large");
|
|
131
147
|
this.logs = logs;
|
|
132
|
-
this.code = 6011;
|
|
133
|
-
this.name = "WithdrawTooLarge";
|
|
134
|
-
this.msg = "Withdraw amount too large";
|
|
135
148
|
}
|
|
136
149
|
}
|
|
137
150
|
exports.WithdrawTooLarge = WithdrawTooLarge;
|
|
138
|
-
WithdrawTooLarge.code = 6011;
|
|
139
151
|
class BorrowTooSmall extends Error {
|
|
152
|
+
logs;
|
|
153
|
+
static code = 6012;
|
|
154
|
+
code = 6012;
|
|
155
|
+
name = "BorrowTooSmall";
|
|
156
|
+
msg = "Borrow amount too small to receive liquidity after fees";
|
|
140
157
|
constructor(logs) {
|
|
141
158
|
super("6012: Borrow amount too small to receive liquidity after fees");
|
|
142
159
|
this.logs = logs;
|
|
143
|
-
this.code = 6012;
|
|
144
|
-
this.name = "BorrowTooSmall";
|
|
145
|
-
this.msg = "Borrow amount too small to receive liquidity after fees";
|
|
146
160
|
}
|
|
147
161
|
}
|
|
148
162
|
exports.BorrowTooSmall = BorrowTooSmall;
|
|
149
|
-
BorrowTooSmall.code = 6012;
|
|
150
163
|
class BorrowTooLarge extends Error {
|
|
164
|
+
logs;
|
|
165
|
+
static code = 6013;
|
|
166
|
+
code = 6013;
|
|
167
|
+
name = "BorrowTooLarge";
|
|
168
|
+
msg = "Borrow amount too large for deposited collateral";
|
|
151
169
|
constructor(logs) {
|
|
152
170
|
super("6013: Borrow amount too large for deposited collateral");
|
|
153
171
|
this.logs = logs;
|
|
154
|
-
this.code = 6013;
|
|
155
|
-
this.name = "BorrowTooLarge";
|
|
156
|
-
this.msg = "Borrow amount too large for deposited collateral";
|
|
157
172
|
}
|
|
158
173
|
}
|
|
159
174
|
exports.BorrowTooLarge = BorrowTooLarge;
|
|
160
|
-
BorrowTooLarge.code = 6013;
|
|
161
175
|
class RepayTooSmall extends Error {
|
|
176
|
+
logs;
|
|
177
|
+
static code = 6014;
|
|
178
|
+
code = 6014;
|
|
179
|
+
name = "RepayTooSmall";
|
|
180
|
+
msg = "Repay amount too small to transfer liquidity";
|
|
162
181
|
constructor(logs) {
|
|
163
182
|
super("6014: Repay amount too small to transfer liquidity");
|
|
164
183
|
this.logs = logs;
|
|
165
|
-
this.code = 6014;
|
|
166
|
-
this.name = "RepayTooSmall";
|
|
167
|
-
this.msg = "Repay amount too small to transfer liquidity";
|
|
168
184
|
}
|
|
169
185
|
}
|
|
170
186
|
exports.RepayTooSmall = RepayTooSmall;
|
|
171
|
-
RepayTooSmall.code = 6014;
|
|
172
187
|
class LiquidationTooSmall extends Error {
|
|
188
|
+
logs;
|
|
189
|
+
static code = 6015;
|
|
190
|
+
code = 6015;
|
|
191
|
+
name = "LiquidationTooSmall";
|
|
192
|
+
msg = "Liquidation amount too small to receive collateral";
|
|
173
193
|
constructor(logs) {
|
|
174
194
|
super("6015: Liquidation amount too small to receive collateral");
|
|
175
195
|
this.logs = logs;
|
|
176
|
-
this.code = 6015;
|
|
177
|
-
this.name = "LiquidationTooSmall";
|
|
178
|
-
this.msg = "Liquidation amount too small to receive collateral";
|
|
179
196
|
}
|
|
180
197
|
}
|
|
181
198
|
exports.LiquidationTooSmall = LiquidationTooSmall;
|
|
182
|
-
LiquidationTooSmall.code = 6015;
|
|
183
199
|
class ObligationHealthy extends Error {
|
|
200
|
+
logs;
|
|
201
|
+
static code = 6016;
|
|
202
|
+
code = 6016;
|
|
203
|
+
name = "ObligationHealthy";
|
|
204
|
+
msg = "Cannot liquidate healthy obligations";
|
|
184
205
|
constructor(logs) {
|
|
185
206
|
super("6016: Cannot liquidate healthy obligations");
|
|
186
207
|
this.logs = logs;
|
|
187
|
-
this.code = 6016;
|
|
188
|
-
this.name = "ObligationHealthy";
|
|
189
|
-
this.msg = "Cannot liquidate healthy obligations";
|
|
190
208
|
}
|
|
191
209
|
}
|
|
192
210
|
exports.ObligationHealthy = ObligationHealthy;
|
|
193
|
-
ObligationHealthy.code = 6016;
|
|
194
211
|
class ObligationStale extends Error {
|
|
212
|
+
logs;
|
|
213
|
+
static code = 6017;
|
|
214
|
+
code = 6017;
|
|
215
|
+
name = "ObligationStale";
|
|
216
|
+
msg = "Obligation state needs to be refreshed";
|
|
195
217
|
constructor(logs) {
|
|
196
218
|
super("6017: Obligation state needs to be refreshed");
|
|
197
219
|
this.logs = logs;
|
|
198
|
-
this.code = 6017;
|
|
199
|
-
this.name = "ObligationStale";
|
|
200
|
-
this.msg = "Obligation state needs to be refreshed";
|
|
201
220
|
}
|
|
202
221
|
}
|
|
203
222
|
exports.ObligationStale = ObligationStale;
|
|
204
|
-
ObligationStale.code = 6017;
|
|
205
223
|
class ObligationReserveLimit extends Error {
|
|
224
|
+
logs;
|
|
225
|
+
static code = 6018;
|
|
226
|
+
code = 6018;
|
|
227
|
+
name = "ObligationReserveLimit";
|
|
228
|
+
msg = "Obligation reserve limit exceeded";
|
|
206
229
|
constructor(logs) {
|
|
207
230
|
super("6018: Obligation reserve limit exceeded");
|
|
208
231
|
this.logs = logs;
|
|
209
|
-
this.code = 6018;
|
|
210
|
-
this.name = "ObligationReserveLimit";
|
|
211
|
-
this.msg = "Obligation reserve limit exceeded";
|
|
212
232
|
}
|
|
213
233
|
}
|
|
214
234
|
exports.ObligationReserveLimit = ObligationReserveLimit;
|
|
215
|
-
ObligationReserveLimit.code = 6018;
|
|
216
235
|
class InvalidObligationOwner extends Error {
|
|
236
|
+
logs;
|
|
237
|
+
static code = 6019;
|
|
238
|
+
code = 6019;
|
|
239
|
+
name = "InvalidObligationOwner";
|
|
240
|
+
msg = "Obligation owner is invalid";
|
|
217
241
|
constructor(logs) {
|
|
218
242
|
super("6019: Obligation owner is invalid");
|
|
219
243
|
this.logs = logs;
|
|
220
|
-
this.code = 6019;
|
|
221
|
-
this.name = "InvalidObligationOwner";
|
|
222
|
-
this.msg = "Obligation owner is invalid";
|
|
223
244
|
}
|
|
224
245
|
}
|
|
225
246
|
exports.InvalidObligationOwner = InvalidObligationOwner;
|
|
226
|
-
InvalidObligationOwner.code = 6019;
|
|
227
247
|
class ObligationDepositsEmpty extends Error {
|
|
248
|
+
logs;
|
|
249
|
+
static code = 6020;
|
|
250
|
+
code = 6020;
|
|
251
|
+
name = "ObligationDepositsEmpty";
|
|
252
|
+
msg = "Obligation deposits are empty";
|
|
228
253
|
constructor(logs) {
|
|
229
254
|
super("6020: Obligation deposits are empty");
|
|
230
255
|
this.logs = logs;
|
|
231
|
-
this.code = 6020;
|
|
232
|
-
this.name = "ObligationDepositsEmpty";
|
|
233
|
-
this.msg = "Obligation deposits are empty";
|
|
234
256
|
}
|
|
235
257
|
}
|
|
236
258
|
exports.ObligationDepositsEmpty = ObligationDepositsEmpty;
|
|
237
|
-
ObligationDepositsEmpty.code = 6020;
|
|
238
259
|
class ObligationBorrowsEmpty extends Error {
|
|
260
|
+
logs;
|
|
261
|
+
static code = 6021;
|
|
262
|
+
code = 6021;
|
|
263
|
+
name = "ObligationBorrowsEmpty";
|
|
264
|
+
msg = "Obligation borrows are empty";
|
|
239
265
|
constructor(logs) {
|
|
240
266
|
super("6021: Obligation borrows are empty");
|
|
241
267
|
this.logs = logs;
|
|
242
|
-
this.code = 6021;
|
|
243
|
-
this.name = "ObligationBorrowsEmpty";
|
|
244
|
-
this.msg = "Obligation borrows are empty";
|
|
245
268
|
}
|
|
246
269
|
}
|
|
247
270
|
exports.ObligationBorrowsEmpty = ObligationBorrowsEmpty;
|
|
248
|
-
ObligationBorrowsEmpty.code = 6021;
|
|
249
271
|
class ObligationDepositsZero extends Error {
|
|
272
|
+
logs;
|
|
273
|
+
static code = 6022;
|
|
274
|
+
code = 6022;
|
|
275
|
+
name = "ObligationDepositsZero";
|
|
276
|
+
msg = "Obligation deposits have zero value";
|
|
250
277
|
constructor(logs) {
|
|
251
278
|
super("6022: Obligation deposits have zero value");
|
|
252
279
|
this.logs = logs;
|
|
253
|
-
this.code = 6022;
|
|
254
|
-
this.name = "ObligationDepositsZero";
|
|
255
|
-
this.msg = "Obligation deposits have zero value";
|
|
256
280
|
}
|
|
257
281
|
}
|
|
258
282
|
exports.ObligationDepositsZero = ObligationDepositsZero;
|
|
259
|
-
ObligationDepositsZero.code = 6022;
|
|
260
283
|
class ObligationBorrowsZero extends Error {
|
|
284
|
+
logs;
|
|
285
|
+
static code = 6023;
|
|
286
|
+
code = 6023;
|
|
287
|
+
name = "ObligationBorrowsZero";
|
|
288
|
+
msg = "Obligation borrows have zero value";
|
|
261
289
|
constructor(logs) {
|
|
262
290
|
super("6023: Obligation borrows have zero value");
|
|
263
291
|
this.logs = logs;
|
|
264
|
-
this.code = 6023;
|
|
265
|
-
this.name = "ObligationBorrowsZero";
|
|
266
|
-
this.msg = "Obligation borrows have zero value";
|
|
267
292
|
}
|
|
268
293
|
}
|
|
269
294
|
exports.ObligationBorrowsZero = ObligationBorrowsZero;
|
|
270
|
-
ObligationBorrowsZero.code = 6023;
|
|
271
295
|
class InvalidObligationCollateral extends Error {
|
|
296
|
+
logs;
|
|
297
|
+
static code = 6024;
|
|
298
|
+
code = 6024;
|
|
299
|
+
name = "InvalidObligationCollateral";
|
|
300
|
+
msg = "Invalid obligation collateral";
|
|
272
301
|
constructor(logs) {
|
|
273
302
|
super("6024: Invalid obligation collateral");
|
|
274
303
|
this.logs = logs;
|
|
275
|
-
this.code = 6024;
|
|
276
|
-
this.name = "InvalidObligationCollateral";
|
|
277
|
-
this.msg = "Invalid obligation collateral";
|
|
278
304
|
}
|
|
279
305
|
}
|
|
280
306
|
exports.InvalidObligationCollateral = InvalidObligationCollateral;
|
|
281
|
-
InvalidObligationCollateral.code = 6024;
|
|
282
307
|
class InvalidObligationLiquidity extends Error {
|
|
308
|
+
logs;
|
|
309
|
+
static code = 6025;
|
|
310
|
+
code = 6025;
|
|
311
|
+
name = "InvalidObligationLiquidity";
|
|
312
|
+
msg = "Invalid obligation liquidity";
|
|
283
313
|
constructor(logs) {
|
|
284
314
|
super("6025: Invalid obligation liquidity");
|
|
285
315
|
this.logs = logs;
|
|
286
|
-
this.code = 6025;
|
|
287
|
-
this.name = "InvalidObligationLiquidity";
|
|
288
|
-
this.msg = "Invalid obligation liquidity";
|
|
289
316
|
}
|
|
290
317
|
}
|
|
291
318
|
exports.InvalidObligationLiquidity = InvalidObligationLiquidity;
|
|
292
|
-
InvalidObligationLiquidity.code = 6025;
|
|
293
319
|
class ObligationCollateralEmpty extends Error {
|
|
320
|
+
logs;
|
|
321
|
+
static code = 6026;
|
|
322
|
+
code = 6026;
|
|
323
|
+
name = "ObligationCollateralEmpty";
|
|
324
|
+
msg = "Obligation collateral is empty";
|
|
294
325
|
constructor(logs) {
|
|
295
326
|
super("6026: Obligation collateral is empty");
|
|
296
327
|
this.logs = logs;
|
|
297
|
-
this.code = 6026;
|
|
298
|
-
this.name = "ObligationCollateralEmpty";
|
|
299
|
-
this.msg = "Obligation collateral is empty";
|
|
300
328
|
}
|
|
301
329
|
}
|
|
302
330
|
exports.ObligationCollateralEmpty = ObligationCollateralEmpty;
|
|
303
|
-
ObligationCollateralEmpty.code = 6026;
|
|
304
331
|
class ObligationLiquidityEmpty extends Error {
|
|
332
|
+
logs;
|
|
333
|
+
static code = 6027;
|
|
334
|
+
code = 6027;
|
|
335
|
+
name = "ObligationLiquidityEmpty";
|
|
336
|
+
msg = "Obligation liquidity is empty";
|
|
305
337
|
constructor(logs) {
|
|
306
338
|
super("6027: Obligation liquidity is empty");
|
|
307
339
|
this.logs = logs;
|
|
308
|
-
this.code = 6027;
|
|
309
|
-
this.name = "ObligationLiquidityEmpty";
|
|
310
|
-
this.msg = "Obligation liquidity is empty";
|
|
311
340
|
}
|
|
312
341
|
}
|
|
313
342
|
exports.ObligationLiquidityEmpty = ObligationLiquidityEmpty;
|
|
314
|
-
ObligationLiquidityEmpty.code = 6027;
|
|
315
343
|
class NegativeInterestRate extends Error {
|
|
344
|
+
logs;
|
|
345
|
+
static code = 6028;
|
|
346
|
+
code = 6028;
|
|
347
|
+
name = "NegativeInterestRate";
|
|
348
|
+
msg = "Interest rate is negative";
|
|
316
349
|
constructor(logs) {
|
|
317
350
|
super("6028: Interest rate is negative");
|
|
318
351
|
this.logs = logs;
|
|
319
|
-
this.code = 6028;
|
|
320
|
-
this.name = "NegativeInterestRate";
|
|
321
|
-
this.msg = "Interest rate is negative";
|
|
322
352
|
}
|
|
323
353
|
}
|
|
324
354
|
exports.NegativeInterestRate = NegativeInterestRate;
|
|
325
|
-
NegativeInterestRate.code = 6028;
|
|
326
355
|
class InvalidOracleConfig extends Error {
|
|
356
|
+
logs;
|
|
357
|
+
static code = 6029;
|
|
358
|
+
code = 6029;
|
|
359
|
+
name = "InvalidOracleConfig";
|
|
360
|
+
msg = "Input oracle config is invalid";
|
|
327
361
|
constructor(logs) {
|
|
328
362
|
super("6029: Input oracle config is invalid");
|
|
329
363
|
this.logs = logs;
|
|
330
|
-
this.code = 6029;
|
|
331
|
-
this.name = "InvalidOracleConfig";
|
|
332
|
-
this.msg = "Input oracle config is invalid";
|
|
333
364
|
}
|
|
334
365
|
}
|
|
335
366
|
exports.InvalidOracleConfig = InvalidOracleConfig;
|
|
336
|
-
InvalidOracleConfig.code = 6029;
|
|
337
367
|
class InsufficientProtocolFeesToRedeem extends Error {
|
|
368
|
+
logs;
|
|
369
|
+
static code = 6030;
|
|
370
|
+
code = 6030;
|
|
371
|
+
name = "InsufficientProtocolFeesToRedeem";
|
|
372
|
+
msg = "Insufficient protocol fees to claim or no liquidity available";
|
|
338
373
|
constructor(logs) {
|
|
339
374
|
super("6030: Insufficient protocol fees to claim or no liquidity available");
|
|
340
375
|
this.logs = logs;
|
|
341
|
-
this.code = 6030;
|
|
342
|
-
this.name = "InsufficientProtocolFeesToRedeem";
|
|
343
|
-
this.msg = "Insufficient protocol fees to claim or no liquidity available";
|
|
344
376
|
}
|
|
345
377
|
}
|
|
346
378
|
exports.InsufficientProtocolFeesToRedeem = InsufficientProtocolFeesToRedeem;
|
|
347
|
-
InsufficientProtocolFeesToRedeem.code = 6030;
|
|
348
379
|
class FlashBorrowCpi extends Error {
|
|
380
|
+
logs;
|
|
381
|
+
static code = 6031;
|
|
382
|
+
code = 6031;
|
|
383
|
+
name = "FlashBorrowCpi";
|
|
384
|
+
msg = "No cpi flash borrows allowed";
|
|
349
385
|
constructor(logs) {
|
|
350
386
|
super("6031: No cpi flash borrows allowed");
|
|
351
387
|
this.logs = logs;
|
|
352
|
-
this.code = 6031;
|
|
353
|
-
this.name = "FlashBorrowCpi";
|
|
354
|
-
this.msg = "No cpi flash borrows allowed";
|
|
355
388
|
}
|
|
356
389
|
}
|
|
357
390
|
exports.FlashBorrowCpi = FlashBorrowCpi;
|
|
358
|
-
FlashBorrowCpi.code = 6031;
|
|
359
391
|
class NoFlashRepayFound extends Error {
|
|
392
|
+
logs;
|
|
393
|
+
static code = 6032;
|
|
394
|
+
code = 6032;
|
|
395
|
+
name = "NoFlashRepayFound";
|
|
396
|
+
msg = "No corresponding repay found for flash borrow";
|
|
360
397
|
constructor(logs) {
|
|
361
398
|
super("6032: No corresponding repay found for flash borrow");
|
|
362
399
|
this.logs = logs;
|
|
363
|
-
this.code = 6032;
|
|
364
|
-
this.name = "NoFlashRepayFound";
|
|
365
|
-
this.msg = "No corresponding repay found for flash borrow";
|
|
366
400
|
}
|
|
367
401
|
}
|
|
368
402
|
exports.NoFlashRepayFound = NoFlashRepayFound;
|
|
369
|
-
NoFlashRepayFound.code = 6032;
|
|
370
403
|
class InvalidFlashRepay extends Error {
|
|
404
|
+
logs;
|
|
405
|
+
static code = 6033;
|
|
406
|
+
code = 6033;
|
|
407
|
+
name = "InvalidFlashRepay";
|
|
408
|
+
msg = "Invalid repay found";
|
|
371
409
|
constructor(logs) {
|
|
372
410
|
super("6033: Invalid repay found");
|
|
373
411
|
this.logs = logs;
|
|
374
|
-
this.code = 6033;
|
|
375
|
-
this.name = "InvalidFlashRepay";
|
|
376
|
-
this.msg = "Invalid repay found";
|
|
377
412
|
}
|
|
378
413
|
}
|
|
379
414
|
exports.InvalidFlashRepay = InvalidFlashRepay;
|
|
380
|
-
InvalidFlashRepay.code = 6033;
|
|
381
415
|
class FlashRepayCpi extends Error {
|
|
416
|
+
logs;
|
|
417
|
+
static code = 6034;
|
|
418
|
+
code = 6034;
|
|
419
|
+
name = "FlashRepayCpi";
|
|
420
|
+
msg = "No cpi flash repays allowed";
|
|
382
421
|
constructor(logs) {
|
|
383
422
|
super("6034: No cpi flash repays allowed");
|
|
384
423
|
this.logs = logs;
|
|
385
|
-
this.code = 6034;
|
|
386
|
-
this.name = "FlashRepayCpi";
|
|
387
|
-
this.msg = "No cpi flash repays allowed";
|
|
388
424
|
}
|
|
389
425
|
}
|
|
390
426
|
exports.FlashRepayCpi = FlashRepayCpi;
|
|
391
|
-
FlashRepayCpi.code = 6034;
|
|
392
427
|
class MultipleFlashBorrows extends Error {
|
|
428
|
+
logs;
|
|
429
|
+
static code = 6035;
|
|
430
|
+
code = 6035;
|
|
431
|
+
name = "MultipleFlashBorrows";
|
|
432
|
+
msg = "Multiple flash borrows not allowed in the same transaction";
|
|
393
433
|
constructor(logs) {
|
|
394
434
|
super("6035: Multiple flash borrows not allowed in the same transaction");
|
|
395
435
|
this.logs = logs;
|
|
396
|
-
this.code = 6035;
|
|
397
|
-
this.name = "MultipleFlashBorrows";
|
|
398
|
-
this.msg = "Multiple flash borrows not allowed in the same transaction";
|
|
399
436
|
}
|
|
400
437
|
}
|
|
401
438
|
exports.MultipleFlashBorrows = MultipleFlashBorrows;
|
|
402
|
-
MultipleFlashBorrows.code = 6035;
|
|
403
439
|
class FlashLoansDisabled extends Error {
|
|
440
|
+
logs;
|
|
441
|
+
static code = 6036;
|
|
442
|
+
code = 6036;
|
|
443
|
+
name = "FlashLoansDisabled";
|
|
444
|
+
msg = "Flash loans are disabled for this reserve";
|
|
404
445
|
constructor(logs) {
|
|
405
446
|
super("6036: Flash loans are disabled for this reserve");
|
|
406
447
|
this.logs = logs;
|
|
407
|
-
this.code = 6036;
|
|
408
|
-
this.name = "FlashLoansDisabled";
|
|
409
|
-
this.msg = "Flash loans are disabled for this reserve";
|
|
410
448
|
}
|
|
411
449
|
}
|
|
412
450
|
exports.FlashLoansDisabled = FlashLoansDisabled;
|
|
413
|
-
FlashLoansDisabled.code = 6036;
|
|
414
451
|
class SwitchboardV2Error extends Error {
|
|
452
|
+
logs;
|
|
453
|
+
static code = 6037;
|
|
454
|
+
code = 6037;
|
|
455
|
+
name = "SwitchboardV2Error";
|
|
456
|
+
msg = "Switchboard error";
|
|
415
457
|
constructor(logs) {
|
|
416
458
|
super("6037: Switchboard error");
|
|
417
459
|
this.logs = logs;
|
|
418
|
-
this.code = 6037;
|
|
419
|
-
this.name = "SwitchboardV2Error";
|
|
420
|
-
this.msg = "Switchboard error";
|
|
421
460
|
}
|
|
422
461
|
}
|
|
423
462
|
exports.SwitchboardV2Error = SwitchboardV2Error;
|
|
424
|
-
SwitchboardV2Error.code = 6037;
|
|
425
463
|
class CouldNotDeserializeScope extends Error {
|
|
464
|
+
logs;
|
|
465
|
+
static code = 6038;
|
|
466
|
+
code = 6038;
|
|
467
|
+
name = "CouldNotDeserializeScope";
|
|
468
|
+
msg = "Cannot deserialize the scope price account";
|
|
426
469
|
constructor(logs) {
|
|
427
470
|
super("6038: Cannot deserialize the scope price account");
|
|
428
471
|
this.logs = logs;
|
|
429
|
-
this.code = 6038;
|
|
430
|
-
this.name = "CouldNotDeserializeScope";
|
|
431
|
-
this.msg = "Cannot deserialize the scope price account";
|
|
432
472
|
}
|
|
433
473
|
}
|
|
434
474
|
exports.CouldNotDeserializeScope = CouldNotDeserializeScope;
|
|
435
|
-
CouldNotDeserializeScope.code = 6038;
|
|
436
475
|
class PriceTooOld extends Error {
|
|
476
|
+
logs;
|
|
477
|
+
static code = 6039;
|
|
478
|
+
code = 6039;
|
|
479
|
+
name = "PriceTooOld";
|
|
480
|
+
msg = "Price too old";
|
|
437
481
|
constructor(logs) {
|
|
438
482
|
super("6039: Price too old");
|
|
439
483
|
this.logs = logs;
|
|
440
|
-
this.code = 6039;
|
|
441
|
-
this.name = "PriceTooOld";
|
|
442
|
-
this.msg = "Price too old";
|
|
443
484
|
}
|
|
444
485
|
}
|
|
445
486
|
exports.PriceTooOld = PriceTooOld;
|
|
446
|
-
PriceTooOld.code = 6039;
|
|
447
487
|
class PriceTooDivergentFromTwap extends Error {
|
|
488
|
+
logs;
|
|
489
|
+
static code = 6040;
|
|
490
|
+
code = 6040;
|
|
491
|
+
name = "PriceTooDivergentFromTwap";
|
|
492
|
+
msg = "Price too divergent from twap";
|
|
448
493
|
constructor(logs) {
|
|
449
494
|
super("6040: Price too divergent from twap");
|
|
450
495
|
this.logs = logs;
|
|
451
|
-
this.code = 6040;
|
|
452
|
-
this.name = "PriceTooDivergentFromTwap";
|
|
453
|
-
this.msg = "Price too divergent from twap";
|
|
454
496
|
}
|
|
455
497
|
}
|
|
456
498
|
exports.PriceTooDivergentFromTwap = PriceTooDivergentFromTwap;
|
|
457
|
-
PriceTooDivergentFromTwap.code = 6040;
|
|
458
499
|
class InvalidTwapPrice extends Error {
|
|
500
|
+
logs;
|
|
501
|
+
static code = 6041;
|
|
502
|
+
code = 6041;
|
|
503
|
+
name = "InvalidTwapPrice";
|
|
504
|
+
msg = "Invalid twap price";
|
|
459
505
|
constructor(logs) {
|
|
460
506
|
super("6041: Invalid twap price");
|
|
461
507
|
this.logs = logs;
|
|
462
|
-
this.code = 6041;
|
|
463
|
-
this.name = "InvalidTwapPrice";
|
|
464
|
-
this.msg = "Invalid twap price";
|
|
465
508
|
}
|
|
466
509
|
}
|
|
467
510
|
exports.InvalidTwapPrice = InvalidTwapPrice;
|
|
468
|
-
InvalidTwapPrice.code = 6041;
|
|
469
511
|
class GlobalEmergencyMode extends Error {
|
|
512
|
+
logs;
|
|
513
|
+
static code = 6042;
|
|
514
|
+
code = 6042;
|
|
515
|
+
name = "GlobalEmergencyMode";
|
|
516
|
+
msg = "Emergency mode is enabled";
|
|
470
517
|
constructor(logs) {
|
|
471
518
|
super("6042: Emergency mode is enabled");
|
|
472
519
|
this.logs = logs;
|
|
473
|
-
this.code = 6042;
|
|
474
|
-
this.name = "GlobalEmergencyMode";
|
|
475
|
-
this.msg = "Emergency mode is enabled";
|
|
476
520
|
}
|
|
477
521
|
}
|
|
478
522
|
exports.GlobalEmergencyMode = GlobalEmergencyMode;
|
|
479
|
-
GlobalEmergencyMode.code = 6042;
|
|
480
523
|
class InvalidFlag extends Error {
|
|
524
|
+
logs;
|
|
525
|
+
static code = 6043;
|
|
526
|
+
code = 6043;
|
|
527
|
+
name = "InvalidFlag";
|
|
528
|
+
msg = "Invalid lending market config";
|
|
481
529
|
constructor(logs) {
|
|
482
530
|
super("6043: Invalid lending market config");
|
|
483
531
|
this.logs = logs;
|
|
484
|
-
this.code = 6043;
|
|
485
|
-
this.name = "InvalidFlag";
|
|
486
|
-
this.msg = "Invalid lending market config";
|
|
487
532
|
}
|
|
488
533
|
}
|
|
489
534
|
exports.InvalidFlag = InvalidFlag;
|
|
490
|
-
InvalidFlag.code = 6043;
|
|
491
535
|
class PriceNotValid extends Error {
|
|
536
|
+
logs;
|
|
537
|
+
static code = 6044;
|
|
538
|
+
code = 6044;
|
|
539
|
+
name = "PriceNotValid";
|
|
540
|
+
msg = "Price is not valid";
|
|
492
541
|
constructor(logs) {
|
|
493
542
|
super("6044: Price is not valid");
|
|
494
543
|
this.logs = logs;
|
|
495
|
-
this.code = 6044;
|
|
496
|
-
this.name = "PriceNotValid";
|
|
497
|
-
this.msg = "Price is not valid";
|
|
498
544
|
}
|
|
499
545
|
}
|
|
500
546
|
exports.PriceNotValid = PriceNotValid;
|
|
501
|
-
PriceNotValid.code = 6044;
|
|
502
547
|
class PriceIsBiggerThanHeuristic extends Error {
|
|
548
|
+
logs;
|
|
549
|
+
static code = 6045;
|
|
550
|
+
code = 6045;
|
|
551
|
+
name = "PriceIsBiggerThanHeuristic";
|
|
552
|
+
msg = "Price is bigger than allowed by heuristic";
|
|
503
553
|
constructor(logs) {
|
|
504
554
|
super("6045: Price is bigger than allowed by heuristic");
|
|
505
555
|
this.logs = logs;
|
|
506
|
-
this.code = 6045;
|
|
507
|
-
this.name = "PriceIsBiggerThanHeuristic";
|
|
508
|
-
this.msg = "Price is bigger than allowed by heuristic";
|
|
509
556
|
}
|
|
510
557
|
}
|
|
511
558
|
exports.PriceIsBiggerThanHeuristic = PriceIsBiggerThanHeuristic;
|
|
512
|
-
PriceIsBiggerThanHeuristic.code = 6045;
|
|
513
559
|
class PriceIsLowerThanHeuristic extends Error {
|
|
560
|
+
logs;
|
|
561
|
+
static code = 6046;
|
|
562
|
+
code = 6046;
|
|
563
|
+
name = "PriceIsLowerThanHeuristic";
|
|
564
|
+
msg = "Price lower than allowed by heuristic";
|
|
514
565
|
constructor(logs) {
|
|
515
566
|
super("6046: Price lower than allowed by heuristic");
|
|
516
567
|
this.logs = logs;
|
|
517
|
-
this.code = 6046;
|
|
518
|
-
this.name = "PriceIsLowerThanHeuristic";
|
|
519
|
-
this.msg = "Price lower than allowed by heuristic";
|
|
520
568
|
}
|
|
521
569
|
}
|
|
522
570
|
exports.PriceIsLowerThanHeuristic = PriceIsLowerThanHeuristic;
|
|
523
|
-
PriceIsLowerThanHeuristic.code = 6046;
|
|
524
571
|
class PriceIsZero extends Error {
|
|
572
|
+
logs;
|
|
573
|
+
static code = 6047;
|
|
574
|
+
code = 6047;
|
|
575
|
+
name = "PriceIsZero";
|
|
576
|
+
msg = "Price is zero";
|
|
525
577
|
constructor(logs) {
|
|
526
578
|
super("6047: Price is zero");
|
|
527
579
|
this.logs = logs;
|
|
528
|
-
this.code = 6047;
|
|
529
|
-
this.name = "PriceIsZero";
|
|
530
|
-
this.msg = "Price is zero";
|
|
531
580
|
}
|
|
532
581
|
}
|
|
533
582
|
exports.PriceIsZero = PriceIsZero;
|
|
534
|
-
PriceIsZero.code = 6047;
|
|
535
583
|
class PriceConfidenceTooWide extends Error {
|
|
584
|
+
logs;
|
|
585
|
+
static code = 6048;
|
|
586
|
+
code = 6048;
|
|
587
|
+
name = "PriceConfidenceTooWide";
|
|
588
|
+
msg = "Price confidence too wide";
|
|
536
589
|
constructor(logs) {
|
|
537
590
|
super("6048: Price confidence too wide");
|
|
538
591
|
this.logs = logs;
|
|
539
|
-
this.code = 6048;
|
|
540
|
-
this.name = "PriceConfidenceTooWide";
|
|
541
|
-
this.msg = "Price confidence too wide";
|
|
542
592
|
}
|
|
543
593
|
}
|
|
544
594
|
exports.PriceConfidenceTooWide = PriceConfidenceTooWide;
|
|
545
|
-
PriceConfidenceTooWide.code = 6048;
|
|
546
595
|
class IntegerOverflow extends Error {
|
|
596
|
+
logs;
|
|
597
|
+
static code = 6049;
|
|
598
|
+
code = 6049;
|
|
599
|
+
name = "IntegerOverflow";
|
|
600
|
+
msg = "Conversion between integers failed";
|
|
547
601
|
constructor(logs) {
|
|
548
602
|
super("6049: Conversion between integers failed");
|
|
549
603
|
this.logs = logs;
|
|
550
|
-
this.code = 6049;
|
|
551
|
-
this.name = "IntegerOverflow";
|
|
552
|
-
this.msg = "Conversion between integers failed";
|
|
553
604
|
}
|
|
554
605
|
}
|
|
555
606
|
exports.IntegerOverflow = IntegerOverflow;
|
|
556
|
-
IntegerOverflow.code = 6049;
|
|
557
607
|
class NoFarmForReserve extends Error {
|
|
608
|
+
logs;
|
|
609
|
+
static code = 6050;
|
|
610
|
+
code = 6050;
|
|
611
|
+
name = "NoFarmForReserve";
|
|
612
|
+
msg = "This reserve does not have a farm";
|
|
558
613
|
constructor(logs) {
|
|
559
614
|
super("6050: This reserve does not have a farm");
|
|
560
615
|
this.logs = logs;
|
|
561
|
-
this.code = 6050;
|
|
562
|
-
this.name = "NoFarmForReserve";
|
|
563
|
-
this.msg = "This reserve does not have a farm";
|
|
564
616
|
}
|
|
565
617
|
}
|
|
566
618
|
exports.NoFarmForReserve = NoFarmForReserve;
|
|
567
|
-
NoFarmForReserve.code = 6050;
|
|
568
619
|
class IncorrectInstructionInPosition extends Error {
|
|
620
|
+
logs;
|
|
621
|
+
static code = 6051;
|
|
622
|
+
code = 6051;
|
|
623
|
+
name = "IncorrectInstructionInPosition";
|
|
624
|
+
msg = "Wrong instruction at expected position";
|
|
569
625
|
constructor(logs) {
|
|
570
626
|
super("6051: Wrong instruction at expected position");
|
|
571
627
|
this.logs = logs;
|
|
572
|
-
this.code = 6051;
|
|
573
|
-
this.name = "IncorrectInstructionInPosition";
|
|
574
|
-
this.msg = "Wrong instruction at expected position";
|
|
575
628
|
}
|
|
576
629
|
}
|
|
577
630
|
exports.IncorrectInstructionInPosition = IncorrectInstructionInPosition;
|
|
578
|
-
IncorrectInstructionInPosition.code = 6051;
|
|
579
631
|
class NoPriceFound extends Error {
|
|
632
|
+
logs;
|
|
633
|
+
static code = 6052;
|
|
634
|
+
code = 6052;
|
|
635
|
+
name = "NoPriceFound";
|
|
636
|
+
msg = "No price found";
|
|
580
637
|
constructor(logs) {
|
|
581
638
|
super("6052: No price found");
|
|
582
639
|
this.logs = logs;
|
|
583
|
-
this.code = 6052;
|
|
584
|
-
this.name = "NoPriceFound";
|
|
585
|
-
this.msg = "No price found";
|
|
586
640
|
}
|
|
587
641
|
}
|
|
588
642
|
exports.NoPriceFound = NoPriceFound;
|
|
589
|
-
NoPriceFound.code = 6052;
|
|
590
643
|
class InvalidTwapConfig extends Error {
|
|
644
|
+
logs;
|
|
645
|
+
static code = 6053;
|
|
646
|
+
code = 6053;
|
|
647
|
+
name = "InvalidTwapConfig";
|
|
648
|
+
msg = "Invalid Twap configuration: Twap is enabled but one of the enabled price doesn't have a twap";
|
|
591
649
|
constructor(logs) {
|
|
592
650
|
super("6053: Invalid Twap configuration: Twap is enabled but one of the enabled price doesn't have a twap");
|
|
593
651
|
this.logs = logs;
|
|
594
|
-
this.code = 6053;
|
|
595
|
-
this.name = "InvalidTwapConfig";
|
|
596
|
-
this.msg = "Invalid Twap configuration: Twap is enabled but one of the enabled price doesn't have a twap";
|
|
597
652
|
}
|
|
598
653
|
}
|
|
599
654
|
exports.InvalidTwapConfig = InvalidTwapConfig;
|
|
600
|
-
InvalidTwapConfig.code = 6053;
|
|
601
655
|
class InvalidPythPriceAccount extends Error {
|
|
656
|
+
logs;
|
|
657
|
+
static code = 6054;
|
|
658
|
+
code = 6054;
|
|
659
|
+
name = "InvalidPythPriceAccount";
|
|
660
|
+
msg = "Pyth price account does not match configuration";
|
|
602
661
|
constructor(logs) {
|
|
603
662
|
super("6054: Pyth price account does not match configuration");
|
|
604
663
|
this.logs = logs;
|
|
605
|
-
this.code = 6054;
|
|
606
|
-
this.name = "InvalidPythPriceAccount";
|
|
607
|
-
this.msg = "Pyth price account does not match configuration";
|
|
608
664
|
}
|
|
609
665
|
}
|
|
610
666
|
exports.InvalidPythPriceAccount = InvalidPythPriceAccount;
|
|
611
|
-
InvalidPythPriceAccount.code = 6054;
|
|
612
667
|
class InvalidSwitchboardAccount extends Error {
|
|
668
|
+
logs;
|
|
669
|
+
static code = 6055;
|
|
670
|
+
code = 6055;
|
|
671
|
+
name = "InvalidSwitchboardAccount";
|
|
672
|
+
msg = "Switchboard account(s) do not match configuration";
|
|
613
673
|
constructor(logs) {
|
|
614
674
|
super("6055: Switchboard account(s) do not match configuration");
|
|
615
675
|
this.logs = logs;
|
|
616
|
-
this.code = 6055;
|
|
617
|
-
this.name = "InvalidSwitchboardAccount";
|
|
618
|
-
this.msg = "Switchboard account(s) do not match configuration";
|
|
619
676
|
}
|
|
620
677
|
}
|
|
621
678
|
exports.InvalidSwitchboardAccount = InvalidSwitchboardAccount;
|
|
622
|
-
InvalidSwitchboardAccount.code = 6055;
|
|
623
679
|
class InvalidScopePriceAccount extends Error {
|
|
680
|
+
logs;
|
|
681
|
+
static code = 6056;
|
|
682
|
+
code = 6056;
|
|
683
|
+
name = "InvalidScopePriceAccount";
|
|
684
|
+
msg = "Scope price account does not match configuration";
|
|
624
685
|
constructor(logs) {
|
|
625
686
|
super("6056: Scope price account does not match configuration");
|
|
626
687
|
this.logs = logs;
|
|
627
|
-
this.code = 6056;
|
|
628
|
-
this.name = "InvalidScopePriceAccount";
|
|
629
|
-
this.msg = "Scope price account does not match configuration";
|
|
630
688
|
}
|
|
631
689
|
}
|
|
632
690
|
exports.InvalidScopePriceAccount = InvalidScopePriceAccount;
|
|
633
|
-
InvalidScopePriceAccount.code = 6056;
|
|
634
691
|
class ObligationCollateralLtvZero extends Error {
|
|
692
|
+
logs;
|
|
693
|
+
static code = 6057;
|
|
694
|
+
code = 6057;
|
|
695
|
+
name = "ObligationCollateralLtvZero";
|
|
696
|
+
msg = "The obligation has one collateral with an LTV set to 0. Withdraw it before withdrawing other collaterals";
|
|
635
697
|
constructor(logs) {
|
|
636
698
|
super("6057: The obligation has one collateral with an LTV set to 0. Withdraw it before withdrawing other collaterals");
|
|
637
699
|
this.logs = logs;
|
|
638
|
-
this.code = 6057;
|
|
639
|
-
this.name = "ObligationCollateralLtvZero";
|
|
640
|
-
this.msg = "The obligation has one collateral with an LTV set to 0. Withdraw it before withdrawing other collaterals";
|
|
641
700
|
}
|
|
642
701
|
}
|
|
643
702
|
exports.ObligationCollateralLtvZero = ObligationCollateralLtvZero;
|
|
644
|
-
ObligationCollateralLtvZero.code = 6057;
|
|
645
703
|
class InvalidObligationSeedsValue extends Error {
|
|
704
|
+
logs;
|
|
705
|
+
static code = 6058;
|
|
706
|
+
code = 6058;
|
|
707
|
+
name = "InvalidObligationSeedsValue";
|
|
708
|
+
msg = "Seeds must be default pubkeys for tag 0, and mint addresses for tag 1 or 2";
|
|
646
709
|
constructor(logs) {
|
|
647
710
|
super("6058: Seeds must be default pubkeys for tag 0, and mint addresses for tag 1 or 2");
|
|
648
711
|
this.logs = logs;
|
|
649
|
-
this.code = 6058;
|
|
650
|
-
this.name = "InvalidObligationSeedsValue";
|
|
651
|
-
this.msg = "Seeds must be default pubkeys for tag 0, and mint addresses for tag 1 or 2";
|
|
652
712
|
}
|
|
653
713
|
}
|
|
654
714
|
exports.InvalidObligationSeedsValue = InvalidObligationSeedsValue;
|
|
655
|
-
InvalidObligationSeedsValue.code = 6058;
|
|
656
715
|
class InvalidObligationId extends Error {
|
|
716
|
+
logs;
|
|
717
|
+
static code = 6059;
|
|
718
|
+
code = 6059;
|
|
719
|
+
name = "InvalidObligationId";
|
|
720
|
+
msg = "Obligation id must be 0";
|
|
657
721
|
constructor(logs) {
|
|
658
722
|
super("6059: Obligation id must be 0");
|
|
659
723
|
this.logs = logs;
|
|
660
|
-
this.code = 6059;
|
|
661
|
-
this.name = "InvalidObligationId";
|
|
662
|
-
this.msg = "Obligation id must be 0";
|
|
663
724
|
}
|
|
664
725
|
}
|
|
665
726
|
exports.InvalidObligationId = InvalidObligationId;
|
|
666
|
-
InvalidObligationId.code = 6059;
|
|
667
727
|
class InvalidBorrowRateCurvePoint extends Error {
|
|
728
|
+
logs;
|
|
729
|
+
static code = 6060;
|
|
730
|
+
code = 6060;
|
|
731
|
+
name = "InvalidBorrowRateCurvePoint";
|
|
732
|
+
msg = "Invalid borrow rate curve point";
|
|
668
733
|
constructor(logs) {
|
|
669
734
|
super("6060: Invalid borrow rate curve point");
|
|
670
735
|
this.logs = logs;
|
|
671
|
-
this.code = 6060;
|
|
672
|
-
this.name = "InvalidBorrowRateCurvePoint";
|
|
673
|
-
this.msg = "Invalid borrow rate curve point";
|
|
674
736
|
}
|
|
675
737
|
}
|
|
676
738
|
exports.InvalidBorrowRateCurvePoint = InvalidBorrowRateCurvePoint;
|
|
677
|
-
InvalidBorrowRateCurvePoint.code = 6060;
|
|
678
739
|
class InvalidUtilizationRate extends Error {
|
|
740
|
+
logs;
|
|
741
|
+
static code = 6061;
|
|
742
|
+
code = 6061;
|
|
743
|
+
name = "InvalidUtilizationRate";
|
|
744
|
+
msg = "Invalid utilization rate";
|
|
679
745
|
constructor(logs) {
|
|
680
746
|
super("6061: Invalid utilization rate");
|
|
681
747
|
this.logs = logs;
|
|
682
|
-
this.code = 6061;
|
|
683
|
-
this.name = "InvalidUtilizationRate";
|
|
684
|
-
this.msg = "Invalid utilization rate";
|
|
685
748
|
}
|
|
686
749
|
}
|
|
687
750
|
exports.InvalidUtilizationRate = InvalidUtilizationRate;
|
|
688
|
-
InvalidUtilizationRate.code = 6061;
|
|
689
751
|
class CannotSocializeObligationWithCollateral extends Error {
|
|
752
|
+
logs;
|
|
753
|
+
static code = 6062;
|
|
754
|
+
code = 6062;
|
|
755
|
+
name = "CannotSocializeObligationWithCollateral";
|
|
756
|
+
msg = "Obligation hasn't been fully liquidated and debt cannot be socialized.";
|
|
690
757
|
constructor(logs) {
|
|
691
758
|
super("6062: Obligation hasn't been fully liquidated and debt cannot be socialized.");
|
|
692
759
|
this.logs = logs;
|
|
693
|
-
this.code = 6062;
|
|
694
|
-
this.name = "CannotSocializeObligationWithCollateral";
|
|
695
|
-
this.msg = "Obligation hasn't been fully liquidated and debt cannot be socialized.";
|
|
696
760
|
}
|
|
697
761
|
}
|
|
698
762
|
exports.CannotSocializeObligationWithCollateral = CannotSocializeObligationWithCollateral;
|
|
699
|
-
CannotSocializeObligationWithCollateral.code = 6062;
|
|
700
763
|
class ObligationEmpty extends Error {
|
|
764
|
+
logs;
|
|
765
|
+
static code = 6063;
|
|
766
|
+
code = 6063;
|
|
767
|
+
name = "ObligationEmpty";
|
|
768
|
+
msg = "Obligation has no borrows or deposits.";
|
|
701
769
|
constructor(logs) {
|
|
702
770
|
super("6063: Obligation has no borrows or deposits.");
|
|
703
771
|
this.logs = logs;
|
|
704
|
-
this.code = 6063;
|
|
705
|
-
this.name = "ObligationEmpty";
|
|
706
|
-
this.msg = "Obligation has no borrows or deposits.";
|
|
707
772
|
}
|
|
708
773
|
}
|
|
709
774
|
exports.ObligationEmpty = ObligationEmpty;
|
|
710
|
-
ObligationEmpty.code = 6063;
|
|
711
775
|
class WithdrawalCapReached extends Error {
|
|
776
|
+
logs;
|
|
777
|
+
static code = 6064;
|
|
778
|
+
code = 6064;
|
|
779
|
+
name = "WithdrawalCapReached";
|
|
780
|
+
msg = "Withdrawal cap is reached";
|
|
712
781
|
constructor(logs) {
|
|
713
782
|
super("6064: Withdrawal cap is reached");
|
|
714
783
|
this.logs = logs;
|
|
715
|
-
this.code = 6064;
|
|
716
|
-
this.name = "WithdrawalCapReached";
|
|
717
|
-
this.msg = "Withdrawal cap is reached";
|
|
718
784
|
}
|
|
719
785
|
}
|
|
720
786
|
exports.WithdrawalCapReached = WithdrawalCapReached;
|
|
721
|
-
WithdrawalCapReached.code = 6064;
|
|
722
787
|
class LastTimestampGreaterThanCurrent extends Error {
|
|
788
|
+
logs;
|
|
789
|
+
static code = 6065;
|
|
790
|
+
code = 6065;
|
|
791
|
+
name = "LastTimestampGreaterThanCurrent";
|
|
792
|
+
msg = "The last interval start timestamp is greater than the current timestamp";
|
|
723
793
|
constructor(logs) {
|
|
724
794
|
super("6065: The last interval start timestamp is greater than the current timestamp");
|
|
725
795
|
this.logs = logs;
|
|
726
|
-
this.code = 6065;
|
|
727
|
-
this.name = "LastTimestampGreaterThanCurrent";
|
|
728
|
-
this.msg = "The last interval start timestamp is greater than the current timestamp";
|
|
729
796
|
}
|
|
730
797
|
}
|
|
731
798
|
exports.LastTimestampGreaterThanCurrent = LastTimestampGreaterThanCurrent;
|
|
732
|
-
LastTimestampGreaterThanCurrent.code = 6065;
|
|
733
799
|
class LiquidationRewardTooSmall extends Error {
|
|
800
|
+
logs;
|
|
801
|
+
static code = 6066;
|
|
802
|
+
code = 6066;
|
|
803
|
+
name = "LiquidationRewardTooSmall";
|
|
804
|
+
msg = "The reward amount is less than the minimum acceptable received liquidity";
|
|
734
805
|
constructor(logs) {
|
|
735
806
|
super("6066: The reward amount is less than the minimum acceptable received liquidity");
|
|
736
807
|
this.logs = logs;
|
|
737
|
-
this.code = 6066;
|
|
738
|
-
this.name = "LiquidationRewardTooSmall";
|
|
739
|
-
this.msg = "The reward amount is less than the minimum acceptable received liquidity";
|
|
740
808
|
}
|
|
741
809
|
}
|
|
742
810
|
exports.LiquidationRewardTooSmall = LiquidationRewardTooSmall;
|
|
743
|
-
LiquidationRewardTooSmall.code = 6066;
|
|
744
811
|
class IsolatedAssetTierViolation extends Error {
|
|
812
|
+
logs;
|
|
813
|
+
static code = 6067;
|
|
814
|
+
code = 6067;
|
|
815
|
+
name = "IsolatedAssetTierViolation";
|
|
816
|
+
msg = "Isolated Asset Tier Violation";
|
|
745
817
|
constructor(logs) {
|
|
746
818
|
super("6067: Isolated Asset Tier Violation");
|
|
747
819
|
this.logs = logs;
|
|
748
|
-
this.code = 6067;
|
|
749
|
-
this.name = "IsolatedAssetTierViolation";
|
|
750
|
-
this.msg = "Isolated Asset Tier Violation";
|
|
751
820
|
}
|
|
752
821
|
}
|
|
753
822
|
exports.IsolatedAssetTierViolation = IsolatedAssetTierViolation;
|
|
754
|
-
IsolatedAssetTierViolation.code = 6067;
|
|
755
823
|
class InconsistentElevationGroup extends Error {
|
|
824
|
+
logs;
|
|
825
|
+
static code = 6068;
|
|
826
|
+
code = 6068;
|
|
827
|
+
name = "InconsistentElevationGroup";
|
|
828
|
+
msg = "The obligation's elevation group and the reserve's are not the same";
|
|
756
829
|
constructor(logs) {
|
|
757
830
|
super("6068: The obligation's elevation group and the reserve's are not the same");
|
|
758
831
|
this.logs = logs;
|
|
759
|
-
this.code = 6068;
|
|
760
|
-
this.name = "InconsistentElevationGroup";
|
|
761
|
-
this.msg = "The obligation's elevation group and the reserve's are not the same";
|
|
762
832
|
}
|
|
763
833
|
}
|
|
764
834
|
exports.InconsistentElevationGroup = InconsistentElevationGroup;
|
|
765
|
-
InconsistentElevationGroup.code = 6068;
|
|
766
835
|
class InvalidElevationGroup extends Error {
|
|
836
|
+
logs;
|
|
837
|
+
static code = 6069;
|
|
838
|
+
code = 6069;
|
|
839
|
+
name = "InvalidElevationGroup";
|
|
840
|
+
msg = "The elevation group chosen for the reserve does not exist in the lending market";
|
|
767
841
|
constructor(logs) {
|
|
768
842
|
super("6069: The elevation group chosen for the reserve does not exist in the lending market");
|
|
769
843
|
this.logs = logs;
|
|
770
|
-
this.code = 6069;
|
|
771
|
-
this.name = "InvalidElevationGroup";
|
|
772
|
-
this.msg = "The elevation group chosen for the reserve does not exist in the lending market";
|
|
773
844
|
}
|
|
774
845
|
}
|
|
775
846
|
exports.InvalidElevationGroup = InvalidElevationGroup;
|
|
776
|
-
InvalidElevationGroup.code = 6069;
|
|
777
847
|
class InvalidElevationGroupConfig extends Error {
|
|
848
|
+
logs;
|
|
849
|
+
static code = 6070;
|
|
850
|
+
code = 6070;
|
|
851
|
+
name = "InvalidElevationGroupConfig";
|
|
852
|
+
msg = "The elevation group updated has wrong parameters set";
|
|
778
853
|
constructor(logs) {
|
|
779
854
|
super("6070: The elevation group updated has wrong parameters set");
|
|
780
855
|
this.logs = logs;
|
|
781
|
-
this.code = 6070;
|
|
782
|
-
this.name = "InvalidElevationGroupConfig";
|
|
783
|
-
this.msg = "The elevation group updated has wrong parameters set";
|
|
784
856
|
}
|
|
785
857
|
}
|
|
786
858
|
exports.InvalidElevationGroupConfig = InvalidElevationGroupConfig;
|
|
787
|
-
InvalidElevationGroupConfig.code = 6070;
|
|
788
859
|
class UnhealthyElevationGroupLtv extends Error {
|
|
860
|
+
logs;
|
|
861
|
+
static code = 6071;
|
|
862
|
+
code = 6071;
|
|
863
|
+
name = "UnhealthyElevationGroupLtv";
|
|
864
|
+
msg = "The current obligation must have most or all its debt repaid before changing the elevation group";
|
|
789
865
|
constructor(logs) {
|
|
790
866
|
super("6071: The current obligation must have most or all its debt repaid before changing the elevation group");
|
|
791
867
|
this.logs = logs;
|
|
792
|
-
this.code = 6071;
|
|
793
|
-
this.name = "UnhealthyElevationGroupLtv";
|
|
794
|
-
this.msg = "The current obligation must have most or all its debt repaid before changing the elevation group";
|
|
795
868
|
}
|
|
796
869
|
}
|
|
797
870
|
exports.UnhealthyElevationGroupLtv = UnhealthyElevationGroupLtv;
|
|
798
|
-
UnhealthyElevationGroupLtv.code = 6071;
|
|
799
871
|
class ElevationGroupNewLoansDisabled extends Error {
|
|
872
|
+
logs;
|
|
873
|
+
static code = 6072;
|
|
874
|
+
code = 6072;
|
|
875
|
+
name = "ElevationGroupNewLoansDisabled";
|
|
876
|
+
msg = "Elevation group does not accept any new loans or any new borrows/withdrawals";
|
|
800
877
|
constructor(logs) {
|
|
801
878
|
super("6072: Elevation group does not accept any new loans or any new borrows/withdrawals");
|
|
802
879
|
this.logs = logs;
|
|
803
|
-
this.code = 6072;
|
|
804
|
-
this.name = "ElevationGroupNewLoansDisabled";
|
|
805
|
-
this.msg = "Elevation group does not accept any new loans or any new borrows/withdrawals";
|
|
806
880
|
}
|
|
807
881
|
}
|
|
808
882
|
exports.ElevationGroupNewLoansDisabled = ElevationGroupNewLoansDisabled;
|
|
809
|
-
ElevationGroupNewLoansDisabled.code = 6072;
|
|
810
883
|
class ReserveDeprecated extends Error {
|
|
884
|
+
logs;
|
|
885
|
+
static code = 6073;
|
|
886
|
+
code = 6073;
|
|
887
|
+
name = "ReserveDeprecated";
|
|
888
|
+
msg = "Reserve was deprecated, no longer usable";
|
|
811
889
|
constructor(logs) {
|
|
812
890
|
super("6073: Reserve was deprecated, no longer usable");
|
|
813
891
|
this.logs = logs;
|
|
814
|
-
this.code = 6073;
|
|
815
|
-
this.name = "ReserveDeprecated";
|
|
816
|
-
this.msg = "Reserve was deprecated, no longer usable";
|
|
817
892
|
}
|
|
818
893
|
}
|
|
819
894
|
exports.ReserveDeprecated = ReserveDeprecated;
|
|
820
|
-
ReserveDeprecated.code = 6073;
|
|
821
895
|
class ReferrerAccountNotInitialized extends Error {
|
|
896
|
+
logs;
|
|
897
|
+
static code = 6074;
|
|
898
|
+
code = 6074;
|
|
899
|
+
name = "ReferrerAccountNotInitialized";
|
|
900
|
+
msg = "Referrer account not initialized";
|
|
822
901
|
constructor(logs) {
|
|
823
902
|
super("6074: Referrer account not initialized");
|
|
824
903
|
this.logs = logs;
|
|
825
|
-
this.code = 6074;
|
|
826
|
-
this.name = "ReferrerAccountNotInitialized";
|
|
827
|
-
this.msg = "Referrer account not initialized";
|
|
828
904
|
}
|
|
829
905
|
}
|
|
830
906
|
exports.ReferrerAccountNotInitialized = ReferrerAccountNotInitialized;
|
|
831
|
-
ReferrerAccountNotInitialized.code = 6074;
|
|
832
907
|
class ReferrerAccountMintMissmatch extends Error {
|
|
908
|
+
logs;
|
|
909
|
+
static code = 6075;
|
|
910
|
+
code = 6075;
|
|
911
|
+
name = "ReferrerAccountMintMissmatch";
|
|
912
|
+
msg = "Referrer account mint does not match the operation reserve mint";
|
|
833
913
|
constructor(logs) {
|
|
834
914
|
super("6075: Referrer account mint does not match the operation reserve mint");
|
|
835
915
|
this.logs = logs;
|
|
836
|
-
this.code = 6075;
|
|
837
|
-
this.name = "ReferrerAccountMintMissmatch";
|
|
838
|
-
this.msg = "Referrer account mint does not match the operation reserve mint";
|
|
839
916
|
}
|
|
840
917
|
}
|
|
841
918
|
exports.ReferrerAccountMintMissmatch = ReferrerAccountMintMissmatch;
|
|
842
|
-
ReferrerAccountMintMissmatch.code = 6075;
|
|
843
919
|
class ReferrerAccountWrongAddress extends Error {
|
|
920
|
+
logs;
|
|
921
|
+
static code = 6076;
|
|
922
|
+
code = 6076;
|
|
923
|
+
name = "ReferrerAccountWrongAddress";
|
|
924
|
+
msg = "Referrer account address is not a valid program address";
|
|
844
925
|
constructor(logs) {
|
|
845
926
|
super("6076: Referrer account address is not a valid program address");
|
|
846
927
|
this.logs = logs;
|
|
847
|
-
this.code = 6076;
|
|
848
|
-
this.name = "ReferrerAccountWrongAddress";
|
|
849
|
-
this.msg = "Referrer account address is not a valid program address";
|
|
850
928
|
}
|
|
851
929
|
}
|
|
852
930
|
exports.ReferrerAccountWrongAddress = ReferrerAccountWrongAddress;
|
|
853
|
-
ReferrerAccountWrongAddress.code = 6076;
|
|
854
931
|
class ReferrerAccountReferrerMissmatch extends Error {
|
|
932
|
+
logs;
|
|
933
|
+
static code = 6077;
|
|
934
|
+
code = 6077;
|
|
935
|
+
name = "ReferrerAccountReferrerMissmatch";
|
|
936
|
+
msg = "Referrer account referrer does not match the owner referrer";
|
|
855
937
|
constructor(logs) {
|
|
856
938
|
super("6077: Referrer account referrer does not match the owner referrer");
|
|
857
939
|
this.logs = logs;
|
|
858
|
-
this.code = 6077;
|
|
859
|
-
this.name = "ReferrerAccountReferrerMissmatch";
|
|
860
|
-
this.msg = "Referrer account referrer does not match the owner referrer";
|
|
861
940
|
}
|
|
862
941
|
}
|
|
863
942
|
exports.ReferrerAccountReferrerMissmatch = ReferrerAccountReferrerMissmatch;
|
|
864
|
-
ReferrerAccountReferrerMissmatch.code = 6077;
|
|
865
943
|
class ReferrerAccountMissing extends Error {
|
|
944
|
+
logs;
|
|
945
|
+
static code = 6078;
|
|
946
|
+
code = 6078;
|
|
947
|
+
name = "ReferrerAccountMissing";
|
|
948
|
+
msg = "Referrer account missing for obligation with referrer";
|
|
866
949
|
constructor(logs) {
|
|
867
950
|
super("6078: Referrer account missing for obligation with referrer");
|
|
868
951
|
this.logs = logs;
|
|
869
|
-
this.code = 6078;
|
|
870
|
-
this.name = "ReferrerAccountMissing";
|
|
871
|
-
this.msg = "Referrer account missing for obligation with referrer";
|
|
872
952
|
}
|
|
873
953
|
}
|
|
874
954
|
exports.ReferrerAccountMissing = ReferrerAccountMissing;
|
|
875
|
-
ReferrerAccountMissing.code = 6078;
|
|
876
955
|
class InsufficientReferralFeesToRedeem extends Error {
|
|
956
|
+
logs;
|
|
957
|
+
static code = 6079;
|
|
958
|
+
code = 6079;
|
|
959
|
+
name = "InsufficientReferralFeesToRedeem";
|
|
960
|
+
msg = "Insufficient referral fees to claim or no liquidity available";
|
|
877
961
|
constructor(logs) {
|
|
878
962
|
super("6079: Insufficient referral fees to claim or no liquidity available");
|
|
879
963
|
this.logs = logs;
|
|
880
|
-
this.code = 6079;
|
|
881
|
-
this.name = "InsufficientReferralFeesToRedeem";
|
|
882
|
-
this.msg = "Insufficient referral fees to claim or no liquidity available";
|
|
883
964
|
}
|
|
884
965
|
}
|
|
885
966
|
exports.InsufficientReferralFeesToRedeem = InsufficientReferralFeesToRedeem;
|
|
886
|
-
InsufficientReferralFeesToRedeem.code = 6079;
|
|
887
967
|
class CpiDisabled extends Error {
|
|
968
|
+
logs;
|
|
969
|
+
static code = 6080;
|
|
970
|
+
code = 6080;
|
|
971
|
+
name = "CpiDisabled";
|
|
972
|
+
msg = "CPI disabled for this instruction";
|
|
888
973
|
constructor(logs) {
|
|
889
974
|
super("6080: CPI disabled for this instruction");
|
|
890
975
|
this.logs = logs;
|
|
891
|
-
this.code = 6080;
|
|
892
|
-
this.name = "CpiDisabled";
|
|
893
|
-
this.msg = "CPI disabled for this instruction";
|
|
894
976
|
}
|
|
895
977
|
}
|
|
896
978
|
exports.CpiDisabled = CpiDisabled;
|
|
897
|
-
CpiDisabled.code = 6080;
|
|
898
979
|
class ShortUrlNotAsciiAlphanumeric extends Error {
|
|
980
|
+
logs;
|
|
981
|
+
static code = 6081;
|
|
982
|
+
code = 6081;
|
|
983
|
+
name = "ShortUrlNotAsciiAlphanumeric";
|
|
984
|
+
msg = "Referrer short_url is not ascii alphanumeric";
|
|
899
985
|
constructor(logs) {
|
|
900
986
|
super("6081: Referrer short_url is not ascii alphanumeric");
|
|
901
987
|
this.logs = logs;
|
|
902
|
-
this.code = 6081;
|
|
903
|
-
this.name = "ShortUrlNotAsciiAlphanumeric";
|
|
904
|
-
this.msg = "Referrer short_url is not ascii alphanumeric";
|
|
905
988
|
}
|
|
906
989
|
}
|
|
907
990
|
exports.ShortUrlNotAsciiAlphanumeric = ShortUrlNotAsciiAlphanumeric;
|
|
908
|
-
ShortUrlNotAsciiAlphanumeric.code = 6081;
|
|
909
991
|
class ReserveObsolete extends Error {
|
|
992
|
+
logs;
|
|
993
|
+
static code = 6082;
|
|
994
|
+
code = 6082;
|
|
995
|
+
name = "ReserveObsolete";
|
|
996
|
+
msg = "Reserve is marked as obsolete";
|
|
910
997
|
constructor(logs) {
|
|
911
998
|
super("6082: Reserve is marked as obsolete");
|
|
912
999
|
this.logs = logs;
|
|
913
|
-
this.code = 6082;
|
|
914
|
-
this.name = "ReserveObsolete";
|
|
915
|
-
this.msg = "Reserve is marked as obsolete";
|
|
916
1000
|
}
|
|
917
1001
|
}
|
|
918
1002
|
exports.ReserveObsolete = ReserveObsolete;
|
|
919
|
-
ReserveObsolete.code = 6082;
|
|
920
1003
|
class ElevationGroupAlreadyActivated extends Error {
|
|
1004
|
+
logs;
|
|
1005
|
+
static code = 6083;
|
|
1006
|
+
code = 6083;
|
|
1007
|
+
name = "ElevationGroupAlreadyActivated";
|
|
1008
|
+
msg = "Obligation already part of the same elevation group";
|
|
921
1009
|
constructor(logs) {
|
|
922
1010
|
super("6083: Obligation already part of the same elevation group");
|
|
923
1011
|
this.logs = logs;
|
|
924
|
-
this.code = 6083;
|
|
925
|
-
this.name = "ElevationGroupAlreadyActivated";
|
|
926
|
-
this.msg = "Obligation already part of the same elevation group";
|
|
927
1012
|
}
|
|
928
1013
|
}
|
|
929
1014
|
exports.ElevationGroupAlreadyActivated = ElevationGroupAlreadyActivated;
|
|
930
|
-
ElevationGroupAlreadyActivated.code = 6083;
|
|
931
1015
|
class ObligationInDeprecatedReserve extends Error {
|
|
1016
|
+
logs;
|
|
1017
|
+
static code = 6084;
|
|
1018
|
+
code = 6084;
|
|
1019
|
+
name = "ObligationInDeprecatedReserve";
|
|
1020
|
+
msg = "Obligation has a deposit in a deprecated reserve";
|
|
932
1021
|
constructor(logs) {
|
|
933
1022
|
super("6084: Obligation has a deposit in a deprecated reserve");
|
|
934
1023
|
this.logs = logs;
|
|
935
|
-
this.code = 6084;
|
|
936
|
-
this.name = "ObligationInDeprecatedReserve";
|
|
937
|
-
this.msg = "Obligation has a deposit in a deprecated reserve";
|
|
938
1024
|
}
|
|
939
1025
|
}
|
|
940
1026
|
exports.ObligationInDeprecatedReserve = ObligationInDeprecatedReserve;
|
|
941
|
-
ObligationInDeprecatedReserve.code = 6084;
|
|
942
1027
|
class ReferrerStateOwnerMismatch extends Error {
|
|
1028
|
+
logs;
|
|
1029
|
+
static code = 6085;
|
|
1030
|
+
code = 6085;
|
|
1031
|
+
name = "ReferrerStateOwnerMismatch";
|
|
1032
|
+
msg = "Referrer state owner does not match the given signer";
|
|
943
1033
|
constructor(logs) {
|
|
944
1034
|
super("6085: Referrer state owner does not match the given signer");
|
|
945
1035
|
this.logs = logs;
|
|
946
|
-
this.code = 6085;
|
|
947
|
-
this.name = "ReferrerStateOwnerMismatch";
|
|
948
|
-
this.msg = "Referrer state owner does not match the given signer";
|
|
949
1036
|
}
|
|
950
1037
|
}
|
|
951
1038
|
exports.ReferrerStateOwnerMismatch = ReferrerStateOwnerMismatch;
|
|
952
|
-
ReferrerStateOwnerMismatch.code = 6085;
|
|
953
1039
|
class UserMetadataOwnerAlreadySet extends Error {
|
|
1040
|
+
logs;
|
|
1041
|
+
static code = 6086;
|
|
1042
|
+
code = 6086;
|
|
1043
|
+
name = "UserMetadataOwnerAlreadySet";
|
|
1044
|
+
msg = "User metadata owner is already set";
|
|
954
1045
|
constructor(logs) {
|
|
955
1046
|
super("6086: User metadata owner is already set");
|
|
956
1047
|
this.logs = logs;
|
|
957
|
-
this.code = 6086;
|
|
958
|
-
this.name = "UserMetadataOwnerAlreadySet";
|
|
959
|
-
this.msg = "User metadata owner is already set";
|
|
960
1048
|
}
|
|
961
1049
|
}
|
|
962
1050
|
exports.UserMetadataOwnerAlreadySet = UserMetadataOwnerAlreadySet;
|
|
963
|
-
UserMetadataOwnerAlreadySet.code = 6086;
|
|
964
1051
|
class CollateralNonLiquidatable extends Error {
|
|
1052
|
+
logs;
|
|
1053
|
+
static code = 6087;
|
|
1054
|
+
code = 6087;
|
|
1055
|
+
name = "CollateralNonLiquidatable";
|
|
1056
|
+
msg = "This collateral cannot be liquidated (LTV set to 0)";
|
|
965
1057
|
constructor(logs) {
|
|
966
1058
|
super("6087: This collateral cannot be liquidated (LTV set to 0)");
|
|
967
1059
|
this.logs = logs;
|
|
968
|
-
this.code = 6087;
|
|
969
|
-
this.name = "CollateralNonLiquidatable";
|
|
970
|
-
this.msg = "This collateral cannot be liquidated (LTV set to 0)";
|
|
971
1060
|
}
|
|
972
1061
|
}
|
|
973
1062
|
exports.CollateralNonLiquidatable = CollateralNonLiquidatable;
|
|
974
|
-
CollateralNonLiquidatable.code = 6087;
|
|
975
1063
|
class BorrowingDisabled extends Error {
|
|
1064
|
+
logs;
|
|
1065
|
+
static code = 6088;
|
|
1066
|
+
code = 6088;
|
|
1067
|
+
name = "BorrowingDisabled";
|
|
1068
|
+
msg = "Borrowing is disabled";
|
|
976
1069
|
constructor(logs) {
|
|
977
1070
|
super("6088: Borrowing is disabled");
|
|
978
1071
|
this.logs = logs;
|
|
979
|
-
this.code = 6088;
|
|
980
|
-
this.name = "BorrowingDisabled";
|
|
981
|
-
this.msg = "Borrowing is disabled";
|
|
982
1072
|
}
|
|
983
1073
|
}
|
|
984
1074
|
exports.BorrowingDisabled = BorrowingDisabled;
|
|
985
|
-
BorrowingDisabled.code = 6088;
|
|
986
1075
|
class BorrowLimitExceeded extends Error {
|
|
1076
|
+
logs;
|
|
1077
|
+
static code = 6089;
|
|
1078
|
+
code = 6089;
|
|
1079
|
+
name = "BorrowLimitExceeded";
|
|
1080
|
+
msg = "Cannot borrow above borrow limit";
|
|
987
1081
|
constructor(logs) {
|
|
988
1082
|
super("6089: Cannot borrow above borrow limit");
|
|
989
1083
|
this.logs = logs;
|
|
990
|
-
this.code = 6089;
|
|
991
|
-
this.name = "BorrowLimitExceeded";
|
|
992
|
-
this.msg = "Cannot borrow above borrow limit";
|
|
993
1084
|
}
|
|
994
1085
|
}
|
|
995
1086
|
exports.BorrowLimitExceeded = BorrowLimitExceeded;
|
|
996
|
-
BorrowLimitExceeded.code = 6089;
|
|
997
1087
|
class DepositLimitExceeded extends Error {
|
|
1088
|
+
logs;
|
|
1089
|
+
static code = 6090;
|
|
1090
|
+
code = 6090;
|
|
1091
|
+
name = "DepositLimitExceeded";
|
|
1092
|
+
msg = "Cannot deposit above deposit limit";
|
|
998
1093
|
constructor(logs) {
|
|
999
1094
|
super("6090: Cannot deposit above deposit limit");
|
|
1000
1095
|
this.logs = logs;
|
|
1001
|
-
this.code = 6090;
|
|
1002
|
-
this.name = "DepositLimitExceeded";
|
|
1003
|
-
this.msg = "Cannot deposit above deposit limit";
|
|
1004
1096
|
}
|
|
1005
1097
|
}
|
|
1006
1098
|
exports.DepositLimitExceeded = DepositLimitExceeded;
|
|
1007
|
-
DepositLimitExceeded.code = 6090;
|
|
1008
1099
|
class BorrowingDisabledOutsideElevationGroup extends Error {
|
|
1100
|
+
logs;
|
|
1101
|
+
static code = 6091;
|
|
1102
|
+
code = 6091;
|
|
1103
|
+
name = "BorrowingDisabledOutsideElevationGroup";
|
|
1104
|
+
msg = "Reserve does not accept any new borrows outside elevation group";
|
|
1009
1105
|
constructor(logs) {
|
|
1010
1106
|
super("6091: Reserve does not accept any new borrows outside elevation group");
|
|
1011
1107
|
this.logs = logs;
|
|
1012
|
-
this.code = 6091;
|
|
1013
|
-
this.name = "BorrowingDisabledOutsideElevationGroup";
|
|
1014
|
-
this.msg = "Reserve does not accept any new borrows outside elevation group";
|
|
1015
1108
|
}
|
|
1016
1109
|
}
|
|
1017
1110
|
exports.BorrowingDisabledOutsideElevationGroup = BorrowingDisabledOutsideElevationGroup;
|
|
1018
|
-
BorrowingDisabledOutsideElevationGroup.code = 6091;
|
|
1019
1111
|
class NetValueRemainingTooSmall extends Error {
|
|
1112
|
+
logs;
|
|
1113
|
+
static code = 6092;
|
|
1114
|
+
code = 6092;
|
|
1115
|
+
name = "NetValueRemainingTooSmall";
|
|
1116
|
+
msg = "Net value remaining too small";
|
|
1020
1117
|
constructor(logs) {
|
|
1021
1118
|
super("6092: Net value remaining too small");
|
|
1022
1119
|
this.logs = logs;
|
|
1023
|
-
this.code = 6092;
|
|
1024
|
-
this.name = "NetValueRemainingTooSmall";
|
|
1025
|
-
this.msg = "Net value remaining too small";
|
|
1026
1120
|
}
|
|
1027
1121
|
}
|
|
1028
1122
|
exports.NetValueRemainingTooSmall = NetValueRemainingTooSmall;
|
|
1029
|
-
NetValueRemainingTooSmall.code = 6092;
|
|
1030
1123
|
class WorseLTVBlocked extends Error {
|
|
1124
|
+
logs;
|
|
1125
|
+
static code = 6093;
|
|
1126
|
+
code = 6093;
|
|
1127
|
+
name = "WorseLTVBlocked";
|
|
1128
|
+
msg = "Cannot get the obligation in a worse position";
|
|
1031
1129
|
constructor(logs) {
|
|
1032
1130
|
super("6093: Cannot get the obligation in a worse position");
|
|
1033
1131
|
this.logs = logs;
|
|
1034
|
-
this.code = 6093;
|
|
1035
|
-
this.name = "WorseLTVBlocked";
|
|
1036
|
-
this.msg = "Cannot get the obligation in a worse position";
|
|
1037
1132
|
}
|
|
1038
1133
|
}
|
|
1039
1134
|
exports.WorseLTVBlocked = WorseLTVBlocked;
|
|
1040
|
-
WorseLTVBlocked.code = 6093;
|
|
1041
1135
|
class LiabilitiesBiggerThanAssets extends Error {
|
|
1136
|
+
logs;
|
|
1137
|
+
static code = 6094;
|
|
1138
|
+
code = 6094;
|
|
1139
|
+
name = "LiabilitiesBiggerThanAssets";
|
|
1140
|
+
msg = "Cannot have more liabilities than assets in a position";
|
|
1042
1141
|
constructor(logs) {
|
|
1043
1142
|
super("6094: Cannot have more liabilities than assets in a position");
|
|
1044
1143
|
this.logs = logs;
|
|
1045
|
-
this.code = 6094;
|
|
1046
|
-
this.name = "LiabilitiesBiggerThanAssets";
|
|
1047
|
-
this.msg = "Cannot have more liabilities than assets in a position";
|
|
1048
1144
|
}
|
|
1049
1145
|
}
|
|
1050
1146
|
exports.LiabilitiesBiggerThanAssets = LiabilitiesBiggerThanAssets;
|
|
1051
|
-
LiabilitiesBiggerThanAssets.code = 6094;
|
|
1052
1147
|
class ReserveTokenBalanceMismatch extends Error {
|
|
1148
|
+
logs;
|
|
1149
|
+
static code = 6095;
|
|
1150
|
+
code = 6095;
|
|
1151
|
+
name = "ReserveTokenBalanceMismatch";
|
|
1152
|
+
msg = "Reserve state and token account cannot drift";
|
|
1053
1153
|
constructor(logs) {
|
|
1054
1154
|
super("6095: Reserve state and token account cannot drift");
|
|
1055
1155
|
this.logs = logs;
|
|
1056
|
-
this.code = 6095;
|
|
1057
|
-
this.name = "ReserveTokenBalanceMismatch";
|
|
1058
|
-
this.msg = "Reserve state and token account cannot drift";
|
|
1059
1156
|
}
|
|
1060
1157
|
}
|
|
1061
1158
|
exports.ReserveTokenBalanceMismatch = ReserveTokenBalanceMismatch;
|
|
1062
|
-
ReserveTokenBalanceMismatch.code = 6095;
|
|
1063
1159
|
class ReserveVaultBalanceMismatch extends Error {
|
|
1160
|
+
logs;
|
|
1161
|
+
static code = 6096;
|
|
1162
|
+
code = 6096;
|
|
1163
|
+
name = "ReserveVaultBalanceMismatch";
|
|
1164
|
+
msg = "Reserve token account has been unexpectedly modified";
|
|
1064
1165
|
constructor(logs) {
|
|
1065
1166
|
super("6096: Reserve token account has been unexpectedly modified");
|
|
1066
1167
|
this.logs = logs;
|
|
1067
|
-
this.code = 6096;
|
|
1068
|
-
this.name = "ReserveVaultBalanceMismatch";
|
|
1069
|
-
this.msg = "Reserve token account has been unexpectedly modified";
|
|
1070
1168
|
}
|
|
1071
1169
|
}
|
|
1072
1170
|
exports.ReserveVaultBalanceMismatch = ReserveVaultBalanceMismatch;
|
|
1073
|
-
ReserveVaultBalanceMismatch.code = 6096;
|
|
1074
1171
|
class ReserveAccountingMismatch extends Error {
|
|
1172
|
+
logs;
|
|
1173
|
+
static code = 6097;
|
|
1174
|
+
code = 6097;
|
|
1175
|
+
name = "ReserveAccountingMismatch";
|
|
1176
|
+
msg = "Reserve internal state accounting has been unexpectedly modified";
|
|
1075
1177
|
constructor(logs) {
|
|
1076
1178
|
super("6097: Reserve internal state accounting has been unexpectedly modified");
|
|
1077
1179
|
this.logs = logs;
|
|
1078
|
-
this.code = 6097;
|
|
1079
|
-
this.name = "ReserveAccountingMismatch";
|
|
1080
|
-
this.msg = "Reserve internal state accounting has been unexpectedly modified";
|
|
1081
1180
|
}
|
|
1082
1181
|
}
|
|
1083
1182
|
exports.ReserveAccountingMismatch = ReserveAccountingMismatch;
|
|
1084
|
-
ReserveAccountingMismatch.code = 6097;
|
|
1085
1183
|
class BorrowingAboveUtilizationRateDisabled extends Error {
|
|
1184
|
+
logs;
|
|
1185
|
+
static code = 6098;
|
|
1186
|
+
code = 6098;
|
|
1187
|
+
name = "BorrowingAboveUtilizationRateDisabled";
|
|
1188
|
+
msg = "Borrowing above set utilization rate is disabled";
|
|
1086
1189
|
constructor(logs) {
|
|
1087
1190
|
super("6098: Borrowing above set utilization rate is disabled");
|
|
1088
1191
|
this.logs = logs;
|
|
1089
|
-
this.code = 6098;
|
|
1090
|
-
this.name = "BorrowingAboveUtilizationRateDisabled";
|
|
1091
|
-
this.msg = "Borrowing above set utilization rate is disabled";
|
|
1092
1192
|
}
|
|
1093
1193
|
}
|
|
1094
1194
|
exports.BorrowingAboveUtilizationRateDisabled = BorrowingAboveUtilizationRateDisabled;
|
|
1095
|
-
BorrowingAboveUtilizationRateDisabled.code = 6098;
|
|
1096
1195
|
class LiquidationBorrowFactorPriority extends Error {
|
|
1196
|
+
logs;
|
|
1197
|
+
static code = 6099;
|
|
1198
|
+
code = 6099;
|
|
1199
|
+
name = "LiquidationBorrowFactorPriority";
|
|
1200
|
+
msg = "Liquidation must prioritize the debt with the highest borrow factor";
|
|
1097
1201
|
constructor(logs) {
|
|
1098
1202
|
super("6099: Liquidation must prioritize the debt with the highest borrow factor");
|
|
1099
1203
|
this.logs = logs;
|
|
1100
|
-
this.code = 6099;
|
|
1101
|
-
this.name = "LiquidationBorrowFactorPriority";
|
|
1102
|
-
this.msg = "Liquidation must prioritize the debt with the highest borrow factor";
|
|
1103
1204
|
}
|
|
1104
1205
|
}
|
|
1105
1206
|
exports.LiquidationBorrowFactorPriority = LiquidationBorrowFactorPriority;
|
|
1106
|
-
LiquidationBorrowFactorPriority.code = 6099;
|
|
1107
1207
|
class LiquidationLowestLTVPriority extends Error {
|
|
1208
|
+
logs;
|
|
1209
|
+
static code = 6100;
|
|
1210
|
+
code = 6100;
|
|
1211
|
+
name = "LiquidationLowestLTVPriority";
|
|
1212
|
+
msg = "Liquidation must prioritize the collateral with the lowest LTV";
|
|
1108
1213
|
constructor(logs) {
|
|
1109
1214
|
super("6100: Liquidation must prioritize the collateral with the lowest LTV");
|
|
1110
1215
|
this.logs = logs;
|
|
1111
|
-
this.code = 6100;
|
|
1112
|
-
this.name = "LiquidationLowestLTVPriority";
|
|
1113
|
-
this.msg = "Liquidation must prioritize the collateral with the lowest LTV";
|
|
1114
1216
|
}
|
|
1115
1217
|
}
|
|
1116
1218
|
exports.LiquidationLowestLTVPriority = LiquidationLowestLTVPriority;
|
|
1117
|
-
LiquidationLowestLTVPriority.code = 6100;
|
|
1118
1219
|
class ElevationGroupBorrowLimitExceeded extends Error {
|
|
1220
|
+
logs;
|
|
1221
|
+
static code = 6101;
|
|
1222
|
+
code = 6101;
|
|
1223
|
+
name = "ElevationGroupBorrowLimitExceeded";
|
|
1224
|
+
msg = "Elevation group borrow limit exceeded";
|
|
1119
1225
|
constructor(logs) {
|
|
1120
1226
|
super("6101: Elevation group borrow limit exceeded");
|
|
1121
1227
|
this.logs = logs;
|
|
1122
|
-
this.code = 6101;
|
|
1123
|
-
this.name = "ElevationGroupBorrowLimitExceeded";
|
|
1124
|
-
this.msg = "Elevation group borrow limit exceeded";
|
|
1125
1228
|
}
|
|
1126
1229
|
}
|
|
1127
1230
|
exports.ElevationGroupBorrowLimitExceeded = ElevationGroupBorrowLimitExceeded;
|
|
1128
|
-
ElevationGroupBorrowLimitExceeded.code = 6101;
|
|
1129
1231
|
class ElevationGroupWithoutDebtReserve extends Error {
|
|
1232
|
+
logs;
|
|
1233
|
+
static code = 6102;
|
|
1234
|
+
code = 6102;
|
|
1235
|
+
name = "ElevationGroupWithoutDebtReserve";
|
|
1236
|
+
msg = "The elevation group does not have a debt reserve defined";
|
|
1130
1237
|
constructor(logs) {
|
|
1131
1238
|
super("6102: The elevation group does not have a debt reserve defined");
|
|
1132
1239
|
this.logs = logs;
|
|
1133
|
-
this.code = 6102;
|
|
1134
|
-
this.name = "ElevationGroupWithoutDebtReserve";
|
|
1135
|
-
this.msg = "The elevation group does not have a debt reserve defined";
|
|
1136
1240
|
}
|
|
1137
1241
|
}
|
|
1138
1242
|
exports.ElevationGroupWithoutDebtReserve = ElevationGroupWithoutDebtReserve;
|
|
1139
|
-
ElevationGroupWithoutDebtReserve.code = 6102;
|
|
1140
1243
|
class ElevationGroupMaxCollateralReserveZero extends Error {
|
|
1244
|
+
logs;
|
|
1245
|
+
static code = 6103;
|
|
1246
|
+
code = 6103;
|
|
1247
|
+
name = "ElevationGroupMaxCollateralReserveZero";
|
|
1248
|
+
msg = "The elevation group does not allow any collateral reserves";
|
|
1141
1249
|
constructor(logs) {
|
|
1142
1250
|
super("6103: The elevation group does not allow any collateral reserves");
|
|
1143
1251
|
this.logs = logs;
|
|
1144
|
-
this.code = 6103;
|
|
1145
|
-
this.name = "ElevationGroupMaxCollateralReserveZero";
|
|
1146
|
-
this.msg = "The elevation group does not allow any collateral reserves";
|
|
1147
1252
|
}
|
|
1148
1253
|
}
|
|
1149
1254
|
exports.ElevationGroupMaxCollateralReserveZero = ElevationGroupMaxCollateralReserveZero;
|
|
1150
|
-
ElevationGroupMaxCollateralReserveZero.code = 6103;
|
|
1151
1255
|
class ElevationGroupHasAnotherDebtReserve extends Error {
|
|
1256
|
+
logs;
|
|
1257
|
+
static code = 6104;
|
|
1258
|
+
code = 6104;
|
|
1259
|
+
name = "ElevationGroupHasAnotherDebtReserve";
|
|
1260
|
+
msg = "In elevation group attempt to borrow from a reserve that is not the debt reserve";
|
|
1152
1261
|
constructor(logs) {
|
|
1153
1262
|
super("6104: In elevation group attempt to borrow from a reserve that is not the debt reserve");
|
|
1154
1263
|
this.logs = logs;
|
|
1155
|
-
this.code = 6104;
|
|
1156
|
-
this.name = "ElevationGroupHasAnotherDebtReserve";
|
|
1157
|
-
this.msg = "In elevation group attempt to borrow from a reserve that is not the debt reserve";
|
|
1158
1264
|
}
|
|
1159
1265
|
}
|
|
1160
1266
|
exports.ElevationGroupHasAnotherDebtReserve = ElevationGroupHasAnotherDebtReserve;
|
|
1161
|
-
ElevationGroupHasAnotherDebtReserve.code = 6104;
|
|
1162
1267
|
class ElevationGroupDebtReserveAsCollateral extends Error {
|
|
1268
|
+
logs;
|
|
1269
|
+
static code = 6105;
|
|
1270
|
+
code = 6105;
|
|
1271
|
+
name = "ElevationGroupDebtReserveAsCollateral";
|
|
1272
|
+
msg = "The elevation group's debt reserve cannot be used as a collateral reserve";
|
|
1163
1273
|
constructor(logs) {
|
|
1164
1274
|
super("6105: The elevation group's debt reserve cannot be used as a collateral reserve");
|
|
1165
1275
|
this.logs = logs;
|
|
1166
|
-
this.code = 6105;
|
|
1167
|
-
this.name = "ElevationGroupDebtReserveAsCollateral";
|
|
1168
|
-
this.msg = "The elevation group's debt reserve cannot be used as a collateral reserve";
|
|
1169
1276
|
}
|
|
1170
1277
|
}
|
|
1171
1278
|
exports.ElevationGroupDebtReserveAsCollateral = ElevationGroupDebtReserveAsCollateral;
|
|
1172
|
-
ElevationGroupDebtReserveAsCollateral.code = 6105;
|
|
1173
1279
|
class ObligationCollateralExceedsElevationGroupLimit extends Error {
|
|
1280
|
+
logs;
|
|
1281
|
+
static code = 6106;
|
|
1282
|
+
code = 6106;
|
|
1283
|
+
name = "ObligationCollateralExceedsElevationGroupLimit";
|
|
1284
|
+
msg = "Obligation have more collateral than the maximum allowed by the elevation group";
|
|
1174
1285
|
constructor(logs) {
|
|
1175
1286
|
super("6106: Obligation have more collateral than the maximum allowed by the elevation group");
|
|
1176
1287
|
this.logs = logs;
|
|
1177
|
-
this.code = 6106;
|
|
1178
|
-
this.name = "ObligationCollateralExceedsElevationGroupLimit";
|
|
1179
|
-
this.msg = "Obligation have more collateral than the maximum allowed by the elevation group";
|
|
1180
1288
|
}
|
|
1181
1289
|
}
|
|
1182
1290
|
exports.ObligationCollateralExceedsElevationGroupLimit = ObligationCollateralExceedsElevationGroupLimit;
|
|
1183
|
-
ObligationCollateralExceedsElevationGroupLimit.code = 6106;
|
|
1184
1291
|
class ObligationElevationGroupMultipleDebtReserve extends Error {
|
|
1292
|
+
logs;
|
|
1293
|
+
static code = 6107;
|
|
1294
|
+
code = 6107;
|
|
1295
|
+
name = "ObligationElevationGroupMultipleDebtReserve";
|
|
1296
|
+
msg = "Obligation is an elevation group but have more than one debt reserve";
|
|
1185
1297
|
constructor(logs) {
|
|
1186
1298
|
super("6107: Obligation is an elevation group but have more than one debt reserve");
|
|
1187
1299
|
this.logs = logs;
|
|
1188
|
-
this.code = 6107;
|
|
1189
|
-
this.name = "ObligationElevationGroupMultipleDebtReserve";
|
|
1190
|
-
this.msg = "Obligation is an elevation group but have more than one debt reserve";
|
|
1191
1300
|
}
|
|
1192
1301
|
}
|
|
1193
1302
|
exports.ObligationElevationGroupMultipleDebtReserve = ObligationElevationGroupMultipleDebtReserve;
|
|
1194
|
-
ObligationElevationGroupMultipleDebtReserve.code = 6107;
|
|
1195
1303
|
class UnsupportedTokenExtension extends Error {
|
|
1304
|
+
logs;
|
|
1305
|
+
static code = 6108;
|
|
1306
|
+
code = 6108;
|
|
1307
|
+
name = "UnsupportedTokenExtension";
|
|
1308
|
+
msg = "Mint has a token (2022) extension that is not supported";
|
|
1196
1309
|
constructor(logs) {
|
|
1197
1310
|
super("6108: Mint has a token (2022) extension that is not supported");
|
|
1198
1311
|
this.logs = logs;
|
|
1199
|
-
this.code = 6108;
|
|
1200
|
-
this.name = "UnsupportedTokenExtension";
|
|
1201
|
-
this.msg = "Mint has a token (2022) extension that is not supported";
|
|
1202
1312
|
}
|
|
1203
1313
|
}
|
|
1204
1314
|
exports.UnsupportedTokenExtension = UnsupportedTokenExtension;
|
|
1205
|
-
UnsupportedTokenExtension.code = 6108;
|
|
1206
1315
|
class InvalidTokenAccount extends Error {
|
|
1316
|
+
logs;
|
|
1317
|
+
static code = 6109;
|
|
1318
|
+
code = 6109;
|
|
1319
|
+
name = "InvalidTokenAccount";
|
|
1320
|
+
msg = "Can't have an spl token mint with a t22 account";
|
|
1207
1321
|
constructor(logs) {
|
|
1208
1322
|
super("6109: Can't have an spl token mint with a t22 account");
|
|
1209
1323
|
this.logs = logs;
|
|
1210
|
-
this.code = 6109;
|
|
1211
|
-
this.name = "InvalidTokenAccount";
|
|
1212
|
-
this.msg = "Can't have an spl token mint with a t22 account";
|
|
1213
1324
|
}
|
|
1214
1325
|
}
|
|
1215
1326
|
exports.InvalidTokenAccount = InvalidTokenAccount;
|
|
1216
|
-
InvalidTokenAccount.code = 6109;
|
|
1217
1327
|
class DepositDisabledOutsideElevationGroup extends Error {
|
|
1328
|
+
logs;
|
|
1329
|
+
static code = 6110;
|
|
1330
|
+
code = 6110;
|
|
1331
|
+
name = "DepositDisabledOutsideElevationGroup";
|
|
1332
|
+
msg = "Can't deposit into this reserve outside elevation group";
|
|
1218
1333
|
constructor(logs) {
|
|
1219
1334
|
super("6110: Can't deposit into this reserve outside elevation group");
|
|
1220
1335
|
this.logs = logs;
|
|
1221
|
-
this.code = 6110;
|
|
1222
|
-
this.name = "DepositDisabledOutsideElevationGroup";
|
|
1223
|
-
this.msg = "Can't deposit into this reserve outside elevation group";
|
|
1224
1336
|
}
|
|
1225
1337
|
}
|
|
1226
1338
|
exports.DepositDisabledOutsideElevationGroup = DepositDisabledOutsideElevationGroup;
|
|
1227
|
-
DepositDisabledOutsideElevationGroup.code = 6110;
|
|
1228
1339
|
class CannotCalculateReferralAmountDueToSlotsMismatch extends Error {
|
|
1340
|
+
logs;
|
|
1341
|
+
static code = 6111;
|
|
1342
|
+
code = 6111;
|
|
1343
|
+
name = "CannotCalculateReferralAmountDueToSlotsMismatch";
|
|
1344
|
+
msg = "Cannot calculate referral amount due to slots mismatch";
|
|
1229
1345
|
constructor(logs) {
|
|
1230
1346
|
super("6111: Cannot calculate referral amount due to slots mismatch");
|
|
1231
1347
|
this.logs = logs;
|
|
1232
|
-
this.code = 6111;
|
|
1233
|
-
this.name = "CannotCalculateReferralAmountDueToSlotsMismatch";
|
|
1234
|
-
this.msg = "Cannot calculate referral amount due to slots mismatch";
|
|
1235
1348
|
}
|
|
1236
1349
|
}
|
|
1237
1350
|
exports.CannotCalculateReferralAmountDueToSlotsMismatch = CannotCalculateReferralAmountDueToSlotsMismatch;
|
|
1238
|
-
CannotCalculateReferralAmountDueToSlotsMismatch.code = 6111;
|
|
1239
1351
|
function fromCode(code, logs) {
|
|
1240
1352
|
switch (code) {
|
|
1241
1353
|
case 6000:
|