@kamino-finance/klend-sdk 2.10.6
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/README.md +85 -0
- package/dist/classes/action.d.ts +154 -0
- package/dist/classes/action.js +1505 -0
- package/dist/classes/action.js.map +1 -0
- package/dist/classes/curve.d.ts +15 -0
- package/dist/classes/curve.js +32 -0
- package/dist/classes/curve.js.map +1 -0
- package/dist/classes/fraction.d.ts +23 -0
- package/dist/classes/fraction.js +60 -0
- package/dist/classes/fraction.js.map +1 -0
- package/dist/classes/index.d.ts +8 -0
- package/dist/classes/index.js +25 -0
- package/dist/classes/index.js.map +1 -0
- package/dist/classes/jupiterPerps.d.ts +2 -0
- package/dist/classes/jupiterPerps.js +25 -0
- package/dist/classes/jupiterPerps.js.map +1 -0
- package/dist/classes/market.d.ts +140 -0
- package/dist/classes/market.js +901 -0
- package/dist/classes/market.js.map +1 -0
- package/dist/classes/obligation.d.ts +170 -0
- package/dist/classes/obligation.js +610 -0
- package/dist/classes/obligation.js.map +1 -0
- package/dist/classes/reserve.d.ts +161 -0
- package/dist/classes/reserve.js +474 -0
- package/dist/classes/reserve.js.map +1 -0
- package/dist/classes/shared.d.ts +41 -0
- package/dist/classes/shared.js +10 -0
- package/dist/classes/shared.js.map +1 -0
- package/dist/classes/utils.d.ts +40 -0
- package/dist/classes/utils.js +129 -0
- package/dist/classes/utils.js.map +1 -0
- package/dist/idl.json +4102 -0
- package/dist/idl_codegen/accounts/LendingMarket.d.ts +153 -0
- package/dist/idl_codegen/accounts/LendingMarket.js +204 -0
- package/dist/idl_codegen/accounts/LendingMarket.js.map +1 -0
- package/dist/idl_codegen/accounts/Obligation.d.ts +139 -0
- package/dist/idl_codegen/accounts/Obligation.js +193 -0
- package/dist/idl_codegen/accounts/Obligation.js.map +1 -0
- package/dist/idl_codegen/accounts/ReferrerState.d.ts +22 -0
- package/dist/idl_codegen/accounts/ReferrerState.js +101 -0
- package/dist/idl_codegen/accounts/ReferrerState.js.map +1 -0
- package/dist/idl_codegen/accounts/ReferrerTokenState.d.ts +51 -0
- package/dist/idl_codegen/accounts/ReferrerTokenState.js +126 -0
- package/dist/idl_codegen/accounts/ReferrerTokenState.js.map +1 -0
- package/dist/idl_codegen/accounts/Reserve.d.ts +72 -0
- package/dist/idl_codegen/accounts/Reserve.js +156 -0
- package/dist/idl_codegen/accounts/Reserve.js.map +1 -0
- package/dist/idl_codegen/accounts/ShortUrl.d.ts +22 -0
- package/dist/idl_codegen/accounts/ShortUrl.js +101 -0
- package/dist/idl_codegen/accounts/ShortUrl.js.map +1 -0
- package/dist/idl_codegen/accounts/UserMetadata.d.ts +48 -0
- package/dist/idl_codegen/accounts/UserMetadata.js +126 -0
- package/dist/idl_codegen/accounts/UserMetadata.js.map +1 -0
- package/dist/idl_codegen/accounts/UserState.d.ts +143 -0
- package/dist/idl_codegen/accounts/UserState.js +180 -0
- package/dist/idl_codegen/accounts/UserState.js.map +1 -0
- package/dist/idl_codegen/accounts/index.d.ts +16 -0
- package/dist/idl_codegen/accounts/index.js +20 -0
- package/dist/idl_codegen/accounts/index.js.map +1 -0
- package/dist/idl_codegen/errors/anchor.d.ts +434 -0
- package/dist/idl_codegen/errors/anchor.js +713 -0
- package/dist/idl_codegen/errors/anchor.js.map +1 -0
- package/dist/idl_codegen/errors/custom.d.ts +730 -0
- package/dist/idl_codegen/errors/custom.js +1194 -0
- package/dist/idl_codegen/errors/custom.js.map +1 -0
- package/dist/idl_codegen/errors/index.d.ts +5 -0
- package/dist/idl_codegen/errors/index.js +71 -0
- package/dist/idl_codegen/errors/index.js.map +1 -0
- package/dist/idl_codegen/instructions/borrowObligationLiquidity.d.ts +20 -0
- package/dist/idl_codegen/instructions/borrowObligationLiquidity.js +75 -0
- package/dist/idl_codegen/instructions/borrowObligationLiquidity.js.map +1 -0
- package/dist/idl_codegen/instructions/deleteReferrerStateAndShortUrl.d.ts +9 -0
- package/dist/idl_codegen/instructions/deleteReferrerStateAndShortUrl.js +20 -0
- package/dist/idl_codegen/instructions/deleteReferrerStateAndShortUrl.js.map +1 -0
- package/dist/idl_codegen/instructions/depositObligationCollateral.d.ts +17 -0
- package/dist/idl_codegen/instructions/depositObligationCollateral.js +64 -0
- package/dist/idl_codegen/instructions/depositObligationCollateral.js.map +1 -0
- package/dist/idl_codegen/instructions/depositReserveLiquidity.d.ts +19 -0
- package/dist/idl_codegen/instructions/depositReserveLiquidity.js +74 -0
- package/dist/idl_codegen/instructions/depositReserveLiquidity.js.map +1 -0
- package/dist/idl_codegen/instructions/depositReserveLiquidityAndObligationCollateral.d.ts +21 -0
- package/dist/idl_codegen/instructions/depositReserveLiquidityAndObligationCollateral.js +80 -0
- package/dist/idl_codegen/instructions/depositReserveLiquidityAndObligationCollateral.js.map +1 -0
- package/dist/idl_codegen/instructions/flashBorrowReserveLiquidity.d.ts +20 -0
- package/dist/idl_codegen/instructions/flashBorrowReserveLiquidity.js +75 -0
- package/dist/idl_codegen/instructions/flashBorrowReserveLiquidity.js.map +1 -0
- package/dist/idl_codegen/instructions/flashRepayReserveLiquidity.d.ts +21 -0
- package/dist/idl_codegen/instructions/flashRepayReserveLiquidity.js +75 -0
- package/dist/idl_codegen/instructions/flashRepayReserveLiquidity.js.map +1 -0
- package/dist/idl_codegen/instructions/idlMissingTypes.d.ts +18 -0
- package/dist/idl_codegen/instructions/idlMissingTypes.js +62 -0
- package/dist/idl_codegen/instructions/idlMissingTypes.js.map +1 -0
- package/dist/idl_codegen/instructions/index.d.ts +66 -0
- package/dist/idl_codegen/instructions/index.js +70 -0
- package/dist/idl_codegen/instructions/index.js.map +1 -0
- package/dist/idl_codegen/instructions/initFarmsForReserve.d.ts +19 -0
- package/dist/idl_codegen/instructions/initFarmsForReserve.js +63 -0
- package/dist/idl_codegen/instructions/initFarmsForReserve.js.map +1 -0
- package/dist/idl_codegen/instructions/initLendingMarket.d.ts +13 -0
- package/dist/idl_codegen/instructions/initLendingMarket.js +55 -0
- package/dist/idl_codegen/instructions/initLendingMarket.js.map +1 -0
- package/dist/idl_codegen/instructions/initObligation.d.ts +19 -0
- package/dist/idl_codegen/instructions/initObligation.js +55 -0
- package/dist/idl_codegen/instructions/initObligation.js.map +1 -0
- package/dist/idl_codegen/instructions/initObligationFarmsForReserve.d.ts +20 -0
- package/dist/idl_codegen/instructions/initObligationFarmsForReserve.js +60 -0
- package/dist/idl_codegen/instructions/initObligationFarmsForReserve.js.map +1 -0
- package/dist/idl_codegen/instructions/initReferrerStateAndShortUrl.d.ts +14 -0
- package/dist/idl_codegen/instructions/initReferrerStateAndShortUrl.js +54 -0
- package/dist/idl_codegen/instructions/initReferrerStateAndShortUrl.js.map +1 -0
- package/dist/idl_codegen/instructions/initReferrerTokenState.d.ts +14 -0
- package/dist/idl_codegen/instructions/initReferrerTokenState.js +50 -0
- package/dist/idl_codegen/instructions/initReferrerTokenState.js.map +1 -0
- package/dist/idl_codegen/instructions/initReserve.d.ts +16 -0
- package/dist/idl_codegen/instructions/initReserve.js +47 -0
- package/dist/idl_codegen/instructions/initReserve.js.map +1 -0
- package/dist/idl_codegen/instructions/initUserMetadata.d.ts +14 -0
- package/dist/idl_codegen/instructions/initUserMetadata.js +54 -0
- package/dist/idl_codegen/instructions/initUserMetadata.js.map +1 -0
- package/dist/idl_codegen/instructions/liquidateObligationAndRedeemReserveCollateral.d.ts +27 -0
- package/dist/idl_codegen/instructions/liquidateObligationAndRedeemReserveCollateral.js +102 -0
- package/dist/idl_codegen/instructions/liquidateObligationAndRedeemReserveCollateral.js.map +1 -0
- package/dist/idl_codegen/instructions/redeemFees.d.ts +10 -0
- package/dist/idl_codegen/instructions/redeemFees.js +33 -0
- package/dist/idl_codegen/instructions/redeemFees.js.map +1 -0
- package/dist/idl_codegen/instructions/redeemReserveCollateral.d.ts +19 -0
- package/dist/idl_codegen/instructions/redeemReserveCollateral.js +78 -0
- package/dist/idl_codegen/instructions/redeemReserveCollateral.js.map +1 -0
- package/dist/idl_codegen/instructions/refreshObligation.d.ts +6 -0
- package/dist/idl_codegen/instructions/refreshObligation.js +17 -0
- package/dist/idl_codegen/instructions/refreshObligation.js.map +1 -0
- package/dist/idl_codegen/instructions/refreshObligationFarmsForReserve.d.ts +19 -0
- package/dist/idl_codegen/instructions/refreshObligationFarmsForReserve.js +63 -0
- package/dist/idl_codegen/instructions/refreshObligationFarmsForReserve.js.map +1 -0
- package/dist/idl_codegen/instructions/refreshReserve.d.ts +10 -0
- package/dist/idl_codegen/instructions/refreshReserve.js +29 -0
- package/dist/idl_codegen/instructions/refreshReserve.js.map +1 -0
- package/dist/idl_codegen/instructions/repayObligationLiquidity.d.ts +17 -0
- package/dist/idl_codegen/instructions/repayObligationLiquidity.js +60 -0
- package/dist/idl_codegen/instructions/repayObligationLiquidity.js.map +1 -0
- package/dist/idl_codegen/instructions/requestElevationGroup.d.ts +11 -0
- package/dist/idl_codegen/instructions/requestElevationGroup.js +47 -0
- package/dist/idl_codegen/instructions/requestElevationGroup.js.map +1 -0
- package/dist/idl_codegen/instructions/socializeLoss.d.ts +14 -0
- package/dist/idl_codegen/instructions/socializeLoss.js +53 -0
- package/dist/idl_codegen/instructions/socializeLoss.js.map +1 -0
- package/dist/idl_codegen/instructions/updateEntireReserveConfig.d.ts +13 -0
- package/dist/idl_codegen/instructions/updateEntireReserveConfig.js +51 -0
- package/dist/idl_codegen/instructions/updateEntireReserveConfig.js.map +1 -0
- package/dist/idl_codegen/instructions/updateLendingMarket.d.ts +12 -0
- package/dist/idl_codegen/instructions/updateLendingMarket.js +50 -0
- package/dist/idl_codegen/instructions/updateLendingMarket.js.map +1 -0
- package/dist/idl_codegen/instructions/updateLendingMarketOwner.d.ts +6 -0
- package/dist/idl_codegen/instructions/updateLendingMarketOwner.js +21 -0
- package/dist/idl_codegen/instructions/updateLendingMarketOwner.js.map +1 -0
- package/dist/idl_codegen/instructions/updateReserveConfig.d.ts +13 -0
- package/dist/idl_codegen/instructions/updateReserveConfig.js +51 -0
- package/dist/idl_codegen/instructions/updateReserveConfig.js.map +1 -0
- package/dist/idl_codegen/instructions/updateSingleReserveConfig.d.ts +13 -0
- package/dist/idl_codegen/instructions/updateSingleReserveConfig.js +51 -0
- package/dist/idl_codegen/instructions/updateSingleReserveConfig.js.map +1 -0
- package/dist/idl_codegen/instructions/withdrawObligationCollateral.d.ts +18 -0
- package/dist/idl_codegen/instructions/withdrawObligationCollateral.js +69 -0
- package/dist/idl_codegen/instructions/withdrawObligationCollateral.js.map +1 -0
- package/dist/idl_codegen/instructions/withdrawObligationCollateralAndRedeemReserveCollateral.d.ts +21 -0
- package/dist/idl_codegen/instructions/withdrawObligationCollateralAndRedeemReserveCollateral.js +84 -0
- package/dist/idl_codegen/instructions/withdrawObligationCollateralAndRedeemReserveCollateral.js.map +1 -0
- package/dist/idl_codegen/instructions/withdrawProtocolFee.d.ts +16 -0
- package/dist/idl_codegen/instructions/withdrawProtocolFee.js +59 -0
- package/dist/idl_codegen/instructions/withdrawProtocolFee.js.map +1 -0
- package/dist/idl_codegen/instructions/withdrawReferrerFees.d.ts +12 -0
- package/dist/idl_codegen/instructions/withdrawReferrerFees.js +35 -0
- package/dist/idl_codegen/instructions/withdrawReferrerFees.js.map +1 -0
- package/dist/idl_codegen/programId.d.ts +4 -0
- package/dist/idl_codegen/programId.js +13 -0
- package/dist/idl_codegen/programId.js.map +1 -0
- package/dist/idl_codegen/types/AssetTier.d.ts +44 -0
- package/dist/idl_codegen/types/AssetTier.js +128 -0
- package/dist/idl_codegen/types/AssetTier.js.map +1 -0
- package/dist/idl_codegen/types/BigFractionBytes.d.ts +27 -0
- package/dist/idl_codegen/types/BigFractionBytes.js +73 -0
- package/dist/idl_codegen/types/BigFractionBytes.js.map +1 -0
- package/dist/idl_codegen/types/BorrowRateCurve.d.ts +27 -0
- package/dist/idl_codegen/types/BorrowRateCurve.js +62 -0
- package/dist/idl_codegen/types/BorrowRateCurve.js.map +1 -0
- package/dist/idl_codegen/types/CurvePoint.d.ts +26 -0
- package/dist/idl_codegen/types/CurvePoint.js +66 -0
- package/dist/idl_codegen/types/CurvePoint.js.map +1 -0
- package/dist/idl_codegen/types/ElevationGroup.d.ts +52 -0
- package/dist/idl_codegen/types/ElevationGroup.js +103 -0
- package/dist/idl_codegen/types/ElevationGroup.js.map +1 -0
- package/dist/idl_codegen/types/FeeCalculation.d.ts +31 -0
- package/dist/idl_codegen/types/FeeCalculation.js +102 -0
- package/dist/idl_codegen/types/FeeCalculation.js.map +1 -0
- package/dist/idl_codegen/types/InitObligationArgs.d.ts +26 -0
- package/dist/idl_codegen/types/InitObligationArgs.js +66 -0
- package/dist/idl_codegen/types/InitObligationArgs.js.map +1 -0
- package/dist/idl_codegen/types/LastUpdate.d.ts +47 -0
- package/dist/idl_codegen/types/LastUpdate.js +86 -0
- package/dist/idl_codegen/types/LastUpdate.js.map +1 -0
- package/dist/idl_codegen/types/ObligationCollateral.d.ts +48 -0
- package/dist/idl_codegen/types/ObligationCollateral.js +87 -0
- package/dist/idl_codegen/types/ObligationCollateral.js.map +1 -0
- package/dist/idl_codegen/types/ObligationLiquidity.d.ts +75 -0
- package/dist/idl_codegen/types/ObligationLiquidity.js +107 -0
- package/dist/idl_codegen/types/ObligationLiquidity.js.map +1 -0
- package/dist/idl_codegen/types/PriceHeuristic.d.ts +41 -0
- package/dist/idl_codegen/types/PriceHeuristic.js +75 -0
- package/dist/idl_codegen/types/PriceHeuristic.js.map +1 -0
- package/dist/idl_codegen/types/PythConfiguration.d.ts +25 -0
- package/dist/idl_codegen/types/PythConfiguration.js +62 -0
- package/dist/idl_codegen/types/PythConfiguration.js.map +1 -0
- package/dist/idl_codegen/types/ReserveCollateral.d.ts +53 -0
- package/dist/idl_codegen/types/ReserveCollateral.js +93 -0
- package/dist/idl_codegen/types/ReserveCollateral.js.map +1 -0
- package/dist/idl_codegen/types/ReserveConfig.d.ts +304 -0
- package/dist/idl_codegen/types/ReserveConfig.js +209 -0
- package/dist/idl_codegen/types/ReserveConfig.js.map +1 -0
- package/dist/idl_codegen/types/ReserveFarmKind.d.ts +31 -0
- package/dist/idl_codegen/types/ReserveFarmKind.js +102 -0
- package/dist/idl_codegen/types/ReserveFarmKind.js.map +1 -0
- package/dist/idl_codegen/types/ReserveFees.d.ts +78 -0
- package/dist/idl_codegen/types/ReserveFees.js +86 -0
- package/dist/idl_codegen/types/ReserveFees.js.map +1 -0
- package/dist/idl_codegen/types/ReserveLiquidity.d.ts +173 -0
- package/dist/idl_codegen/types/ReserveLiquidity.js +166 -0
- package/dist/idl_codegen/types/ReserveLiquidity.js.map +1 -0
- package/dist/idl_codegen/types/ReserveStatus.d.ts +44 -0
- package/dist/idl_codegen/types/ReserveStatus.js +128 -0
- package/dist/idl_codegen/types/ReserveStatus.js.map +1 -0
- package/dist/idl_codegen/types/ScopeConfiguration.d.ts +41 -0
- package/dist/idl_codegen/types/ScopeConfiguration.js +76 -0
- package/dist/idl_codegen/types/ScopeConfiguration.js.map +1 -0
- package/dist/idl_codegen/types/SwitchboardConfiguration.d.ts +30 -0
- package/dist/idl_codegen/types/SwitchboardConfiguration.js +67 -0
- package/dist/idl_codegen/types/SwitchboardConfiguration.js.map +1 -0
- package/dist/idl_codegen/types/TokenInfo.d.ts +109 -0
- package/dist/idl_codegen/types/TokenInfo.js +116 -0
- package/dist/idl_codegen/types/TokenInfo.js.map +1 -0
- package/dist/idl_codegen/types/UpdateConfigMode.d.ts +538 -0
- package/dist/idl_codegen/types/UpdateConfigMode.js +1116 -0
- package/dist/idl_codegen/types/UpdateConfigMode.js.map +1 -0
- package/dist/idl_codegen/types/UpdateLendingMarketConfigValue.d.ts +155 -0
- package/dist/idl_codegen/types/UpdateLendingMarketConfigValue.js +273 -0
- package/dist/idl_codegen/types/UpdateLendingMarketConfigValue.js.map +1 -0
- package/dist/idl_codegen/types/UpdateLendingMarketMode.d.ts +200 -0
- package/dist/idl_codegen/types/UpdateLendingMarketMode.js +440 -0
- package/dist/idl_codegen/types/UpdateLendingMarketMode.js.map +1 -0
- package/dist/idl_codegen/types/WithdrawalCaps.d.ts +38 -0
- package/dist/idl_codegen/types/WithdrawalCaps.js +86 -0
- package/dist/idl_codegen/types/WithdrawalCaps.js.map +1 -0
- package/dist/idl_codegen/types/index.d.ts +65 -0
- package/dist/idl_codegen/types/index.js +77 -0
- package/dist/idl_codegen/types/index.js.map +1 -0
- package/dist/idl_codegen/zero_padding/ObligationZP.d.ts +53 -0
- package/dist/idl_codegen/zero_padding/ObligationZP.js +140 -0
- package/dist/idl_codegen/zero_padding/ObligationZP.js.map +1 -0
- package/dist/idl_codegen/zero_padding/index.d.ts +1 -0
- package/dist/idl_codegen/zero_padding/index.js +6 -0
- package/dist/idl_codegen/zero_padding/index.js.map +1 -0
- package/dist/idl_codegen_jupiter_perps/accounts/Pool.d.ts +48 -0
- package/dist/idl_codegen_jupiter_perps/accounts/Pool.js +144 -0
- package/dist/idl_codegen_jupiter_perps/accounts/Pool.js.map +1 -0
- package/dist/idl_codegen_jupiter_perps/accounts/index.d.ts +2 -0
- package/dist/idl_codegen_jupiter_perps/accounts/index.js +6 -0
- package/dist/idl_codegen_jupiter_perps/accounts/index.js.map +1 -0
- package/dist/idl_codegen_jupiter_perps/programId.d.ts +3 -0
- package/dist/idl_codegen_jupiter_perps/programId.js +9 -0
- package/dist/idl_codegen_jupiter_perps/programId.js.map +1 -0
- package/dist/idl_codegen_jupiter_perps/types/Fees.d.ts +62 -0
- package/dist/idl_codegen_jupiter_perps/types/Fees.js +115 -0
- package/dist/idl_codegen_jupiter_perps/types/Fees.js.map +1 -0
- package/dist/idl_codegen_jupiter_perps/types/Limit.d.ts +32 -0
- package/dist/idl_codegen_jupiter_perps/types/Limit.js +75 -0
- package/dist/idl_codegen_jupiter_perps/types/Limit.js.map +1 -0
- package/dist/idl_codegen_jupiter_perps/types/PoolApr.d.ts +32 -0
- package/dist/idl_codegen_jupiter_perps/types/PoolApr.js +75 -0
- package/dist/idl_codegen_jupiter_perps/types/PoolApr.js.map +1 -0
- package/dist/idl_codegen_jupiter_perps/types/index.d.ts +6 -0
- package/dist/idl_codegen_jupiter_perps/types/index.js +10 -0
- package/dist/idl_codegen_jupiter_perps/types/index.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -0
- package/dist/lending_operations/index.d.ts +2 -0
- package/dist/lending_operations/index.js +19 -0
- package/dist/lending_operations/index.js.map +1 -0
- package/dist/lending_operations/repay_with_collateral_calcs.d.ts +5 -0
- package/dist/lending_operations/repay_with_collateral_calcs.js +26 -0
- package/dist/lending_operations/repay_with_collateral_calcs.js.map +1 -0
- package/dist/lending_operations/repay_with_collateral_operations.d.ts +47 -0
- package/dist/lending_operations/repay_with_collateral_operations.js +163 -0
- package/dist/lending_operations/repay_with_collateral_operations.js.map +1 -0
- package/dist/leverage/calcs.d.ts +132 -0
- package/dist/leverage/calcs.js +291 -0
- package/dist/leverage/calcs.js.map +1 -0
- package/dist/leverage/index.d.ts +4 -0
- package/dist/leverage/index.js +21 -0
- package/dist/leverage/index.js.map +1 -0
- package/dist/leverage/instructions.d.ts +43 -0
- package/dist/leverage/instructions.js +103 -0
- package/dist/leverage/instructions.js.map +1 -0
- package/dist/leverage/operations.d.ts +231 -0
- package/dist/leverage/operations.js +1058 -0
- package/dist/leverage/operations.js.map +1 -0
- package/dist/leverage/utils.d.ts +22 -0
- package/dist/leverage/utils.js +144 -0
- package/dist/leverage/utils.js.map +1 -0
- package/dist/lib.d.ts +9 -0
- package/dist/lib.js +26 -0
- package/dist/lib.js.map +1 -0
- package/dist/referrals/index.d.ts +2 -0
- package/dist/referrals/index.js +19 -0
- package/dist/referrals/index.js.map +1 -0
- package/dist/referrals/instructions.d.ts +16 -0
- package/dist/referrals/instructions.js +76 -0
- package/dist/referrals/instructions.js.map +1 -0
- package/dist/referrals/operations.d.ts +97 -0
- package/dist/referrals/operations.js +258 -0
- package/dist/referrals/operations.js.map +1 -0
- package/dist/utils/ObligationType.d.ts +49 -0
- package/dist/utils/ObligationType.js +129 -0
- package/dist/utils/ObligationType.js.map +1 -0
- package/dist/utils/api.d.ts +6 -0
- package/dist/utils/api.js +61 -0
- package/dist/utils/api.js.map +1 -0
- package/dist/utils/ata.d.ts +25 -0
- package/dist/utils/ata.js +155 -0
- package/dist/utils/ata.js.map +1 -0
- package/dist/utils/constants.d.ts +48 -0
- package/dist/utils/constants.js +75 -0
- package/dist/utils/constants.js.map +1 -0
- package/dist/utils/idl.d.ts +2 -0
- package/dist/utils/idl.js +9 -0
- package/dist/utils/idl.js.map +1 -0
- package/dist/utils/index.d.ts +14 -0
- package/dist/utils/index.js +31 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/instruction.d.ts +22 -0
- package/dist/utils/instruction.js +202 -0
- package/dist/utils/instruction.js.map +1 -0
- package/dist/utils/kamino.d.ts +3 -0
- package/dist/utils/kamino.js +45 -0
- package/dist/utils/kamino.js.map +1 -0
- package/dist/utils/layout.d.ts +13 -0
- package/dist/utils/layout.js +123 -0
- package/dist/utils/layout.js.map +1 -0
- package/dist/utils/lookupTable.d.ts +5 -0
- package/dist/utils/lookupTable.js +57 -0
- package/dist/utils/lookupTable.js.map +1 -0
- package/dist/utils/oracle.d.ts +51 -0
- package/dist/utils/oracle.js +295 -0
- package/dist/utils/oracle.js.map +1 -0
- package/dist/utils/pubkey.d.ts +74 -0
- package/dist/utils/pubkey.js +229 -0
- package/dist/utils/pubkey.js.map +1 -0
- package/dist/utils/seeds.d.ts +122 -0
- package/dist/utils/seeds.js +153 -0
- package/dist/utils/seeds.js.map +1 -0
- package/dist/utils/slots.d.ts +18 -0
- package/dist/utils/slots.js +32 -0
- package/dist/utils/slots.js.map +1 -0
- package/dist/utils/syncNative.d.ts +10 -0
- package/dist/utils/syncNative.js +46 -0
- package/dist/utils/syncNative.js.map +1 -0
- package/dist/utils/userMetadata.d.ts +15 -0
- package/dist/utils/userMetadata.js +259 -0
- package/dist/utils/userMetadata.js.map +1 -0
- package/package.json +94 -0
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import * as types from "../types";
|
|
2
|
+
import * as borsh from "@coral-xyz/borsh";
|
|
3
|
+
export interface UpdateOwnerJSON {
|
|
4
|
+
kind: "UpdateOwner";
|
|
5
|
+
}
|
|
6
|
+
export declare class UpdateOwner {
|
|
7
|
+
static readonly discriminator = 0;
|
|
8
|
+
static readonly kind = "UpdateOwner";
|
|
9
|
+
readonly discriminator = 0;
|
|
10
|
+
readonly kind = "UpdateOwner";
|
|
11
|
+
toJSON(): UpdateOwnerJSON;
|
|
12
|
+
toEncodable(): {
|
|
13
|
+
UpdateOwner: {};
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export interface UpdateEmergencyModeJSON {
|
|
17
|
+
kind: "UpdateEmergencyMode";
|
|
18
|
+
}
|
|
19
|
+
export declare class UpdateEmergencyMode {
|
|
20
|
+
static readonly discriminator = 1;
|
|
21
|
+
static readonly kind = "UpdateEmergencyMode";
|
|
22
|
+
readonly discriminator = 1;
|
|
23
|
+
readonly kind = "UpdateEmergencyMode";
|
|
24
|
+
toJSON(): UpdateEmergencyModeJSON;
|
|
25
|
+
toEncodable(): {
|
|
26
|
+
UpdateEmergencyMode: {};
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
export interface UpdateLiquidationCloseFactorJSON {
|
|
30
|
+
kind: "UpdateLiquidationCloseFactor";
|
|
31
|
+
}
|
|
32
|
+
export declare class UpdateLiquidationCloseFactor {
|
|
33
|
+
static readonly discriminator = 2;
|
|
34
|
+
static readonly kind = "UpdateLiquidationCloseFactor";
|
|
35
|
+
readonly discriminator = 2;
|
|
36
|
+
readonly kind = "UpdateLiquidationCloseFactor";
|
|
37
|
+
toJSON(): UpdateLiquidationCloseFactorJSON;
|
|
38
|
+
toEncodable(): {
|
|
39
|
+
UpdateLiquidationCloseFactor: {};
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export interface UpdateLiquidationMaxValueJSON {
|
|
43
|
+
kind: "UpdateLiquidationMaxValue";
|
|
44
|
+
}
|
|
45
|
+
export declare class UpdateLiquidationMaxValue {
|
|
46
|
+
static readonly discriminator = 3;
|
|
47
|
+
static readonly kind = "UpdateLiquidationMaxValue";
|
|
48
|
+
readonly discriminator = 3;
|
|
49
|
+
readonly kind = "UpdateLiquidationMaxValue";
|
|
50
|
+
toJSON(): UpdateLiquidationMaxValueJSON;
|
|
51
|
+
toEncodable(): {
|
|
52
|
+
UpdateLiquidationMaxValue: {};
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export interface UpdateGlobalUnhealthyBorrowJSON {
|
|
56
|
+
kind: "UpdateGlobalUnhealthyBorrow";
|
|
57
|
+
}
|
|
58
|
+
export declare class UpdateGlobalUnhealthyBorrow {
|
|
59
|
+
static readonly discriminator = 4;
|
|
60
|
+
static readonly kind = "UpdateGlobalUnhealthyBorrow";
|
|
61
|
+
readonly discriminator = 4;
|
|
62
|
+
readonly kind = "UpdateGlobalUnhealthyBorrow";
|
|
63
|
+
toJSON(): UpdateGlobalUnhealthyBorrowJSON;
|
|
64
|
+
toEncodable(): {
|
|
65
|
+
UpdateGlobalUnhealthyBorrow: {};
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
export interface UpdateGlobalAllowedBorrowJSON {
|
|
69
|
+
kind: "UpdateGlobalAllowedBorrow";
|
|
70
|
+
}
|
|
71
|
+
export declare class UpdateGlobalAllowedBorrow {
|
|
72
|
+
static readonly discriminator = 5;
|
|
73
|
+
static readonly kind = "UpdateGlobalAllowedBorrow";
|
|
74
|
+
readonly discriminator = 5;
|
|
75
|
+
readonly kind = "UpdateGlobalAllowedBorrow";
|
|
76
|
+
toJSON(): UpdateGlobalAllowedBorrowJSON;
|
|
77
|
+
toEncodable(): {
|
|
78
|
+
UpdateGlobalAllowedBorrow: {};
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
export interface UpdateRiskCouncilJSON {
|
|
82
|
+
kind: "UpdateRiskCouncil";
|
|
83
|
+
}
|
|
84
|
+
export declare class UpdateRiskCouncil {
|
|
85
|
+
static readonly discriminator = 6;
|
|
86
|
+
static readonly kind = "UpdateRiskCouncil";
|
|
87
|
+
readonly discriminator = 6;
|
|
88
|
+
readonly kind = "UpdateRiskCouncil";
|
|
89
|
+
toJSON(): UpdateRiskCouncilJSON;
|
|
90
|
+
toEncodable(): {
|
|
91
|
+
UpdateRiskCouncil: {};
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
export interface UpdateMinFullLiquidationThresholdJSON {
|
|
95
|
+
kind: "UpdateMinFullLiquidationThreshold";
|
|
96
|
+
}
|
|
97
|
+
export declare class UpdateMinFullLiquidationThreshold {
|
|
98
|
+
static readonly discriminator = 7;
|
|
99
|
+
static readonly kind = "UpdateMinFullLiquidationThreshold";
|
|
100
|
+
readonly discriminator = 7;
|
|
101
|
+
readonly kind = "UpdateMinFullLiquidationThreshold";
|
|
102
|
+
toJSON(): UpdateMinFullLiquidationThresholdJSON;
|
|
103
|
+
toEncodable(): {
|
|
104
|
+
UpdateMinFullLiquidationThreshold: {};
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
export interface UpdateInsolvencyRiskLtvJSON {
|
|
108
|
+
kind: "UpdateInsolvencyRiskLtv";
|
|
109
|
+
}
|
|
110
|
+
export declare class UpdateInsolvencyRiskLtv {
|
|
111
|
+
static readonly discriminator = 8;
|
|
112
|
+
static readonly kind = "UpdateInsolvencyRiskLtv";
|
|
113
|
+
readonly discriminator = 8;
|
|
114
|
+
readonly kind = "UpdateInsolvencyRiskLtv";
|
|
115
|
+
toJSON(): UpdateInsolvencyRiskLtvJSON;
|
|
116
|
+
toEncodable(): {
|
|
117
|
+
UpdateInsolvencyRiskLtv: {};
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
export interface UpdateElevationGroupJSON {
|
|
121
|
+
kind: "UpdateElevationGroup";
|
|
122
|
+
}
|
|
123
|
+
export declare class UpdateElevationGroup {
|
|
124
|
+
static readonly discriminator = 9;
|
|
125
|
+
static readonly kind = "UpdateElevationGroup";
|
|
126
|
+
readonly discriminator = 9;
|
|
127
|
+
readonly kind = "UpdateElevationGroup";
|
|
128
|
+
toJSON(): UpdateElevationGroupJSON;
|
|
129
|
+
toEncodable(): {
|
|
130
|
+
UpdateElevationGroup: {};
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
export interface UpdateReferralFeeBpsJSON {
|
|
134
|
+
kind: "UpdateReferralFeeBps";
|
|
135
|
+
}
|
|
136
|
+
export declare class UpdateReferralFeeBps {
|
|
137
|
+
static readonly discriminator = 10;
|
|
138
|
+
static readonly kind = "UpdateReferralFeeBps";
|
|
139
|
+
readonly discriminator = 10;
|
|
140
|
+
readonly kind = "UpdateReferralFeeBps";
|
|
141
|
+
toJSON(): UpdateReferralFeeBpsJSON;
|
|
142
|
+
toEncodable(): {
|
|
143
|
+
UpdateReferralFeeBps: {};
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
export interface UpdateMultiplierPointsJSON {
|
|
147
|
+
kind: "UpdateMultiplierPoints";
|
|
148
|
+
}
|
|
149
|
+
export declare class UpdateMultiplierPoints {
|
|
150
|
+
static readonly discriminator = 11;
|
|
151
|
+
static readonly kind = "UpdateMultiplierPoints";
|
|
152
|
+
readonly discriminator = 11;
|
|
153
|
+
readonly kind = "UpdateMultiplierPoints";
|
|
154
|
+
toJSON(): UpdateMultiplierPointsJSON;
|
|
155
|
+
toEncodable(): {
|
|
156
|
+
UpdateMultiplierPoints: {};
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
export interface UpdatePriceRefreshTriggerToMaxAgePctJSON {
|
|
160
|
+
kind: "UpdatePriceRefreshTriggerToMaxAgePct";
|
|
161
|
+
}
|
|
162
|
+
export declare class UpdatePriceRefreshTriggerToMaxAgePct {
|
|
163
|
+
static readonly discriminator = 12;
|
|
164
|
+
static readonly kind = "UpdatePriceRefreshTriggerToMaxAgePct";
|
|
165
|
+
readonly discriminator = 12;
|
|
166
|
+
readonly kind = "UpdatePriceRefreshTriggerToMaxAgePct";
|
|
167
|
+
toJSON(): UpdatePriceRefreshTriggerToMaxAgePctJSON;
|
|
168
|
+
toEncodable(): {
|
|
169
|
+
UpdatePriceRefreshTriggerToMaxAgePct: {};
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
export interface UpdateAutodeleverageEnabledJSON {
|
|
173
|
+
kind: "UpdateAutodeleverageEnabled";
|
|
174
|
+
}
|
|
175
|
+
export declare class UpdateAutodeleverageEnabled {
|
|
176
|
+
static readonly discriminator = 13;
|
|
177
|
+
static readonly kind = "UpdateAutodeleverageEnabled";
|
|
178
|
+
readonly discriminator = 13;
|
|
179
|
+
readonly kind = "UpdateAutodeleverageEnabled";
|
|
180
|
+
toJSON(): UpdateAutodeleverageEnabledJSON;
|
|
181
|
+
toEncodable(): {
|
|
182
|
+
UpdateAutodeleverageEnabled: {};
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
export interface UpdateBorrowingDisabledJSON {
|
|
186
|
+
kind: "UpdateBorrowingDisabled";
|
|
187
|
+
}
|
|
188
|
+
export declare class UpdateBorrowingDisabled {
|
|
189
|
+
static readonly discriminator = 14;
|
|
190
|
+
static readonly kind = "UpdateBorrowingDisabled";
|
|
191
|
+
readonly discriminator = 14;
|
|
192
|
+
readonly kind = "UpdateBorrowingDisabled";
|
|
193
|
+
toJSON(): UpdateBorrowingDisabledJSON;
|
|
194
|
+
toEncodable(): {
|
|
195
|
+
UpdateBorrowingDisabled: {};
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
export declare function fromDecoded(obj: any): types.UpdateLendingMarketModeKind;
|
|
199
|
+
export declare function fromJSON(obj: types.UpdateLendingMarketModeJSON): types.UpdateLendingMarketModeKind;
|
|
200
|
+
export declare function layout(property?: string): borsh.EnumLayout<unknown>;
|
|
@@ -0,0 +1,440 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.layout = exports.fromJSON = exports.fromDecoded = exports.UpdateBorrowingDisabled = exports.UpdateAutodeleverageEnabled = exports.UpdatePriceRefreshTriggerToMaxAgePct = exports.UpdateMultiplierPoints = exports.UpdateReferralFeeBps = exports.UpdateElevationGroup = exports.UpdateInsolvencyRiskLtv = exports.UpdateMinFullLiquidationThreshold = exports.UpdateRiskCouncil = exports.UpdateGlobalAllowedBorrow = exports.UpdateGlobalUnhealthyBorrow = exports.UpdateLiquidationMaxValue = exports.UpdateLiquidationCloseFactor = exports.UpdateEmergencyMode = exports.UpdateOwner = void 0;
|
|
27
|
+
const borsh = __importStar(require("@coral-xyz/borsh"));
|
|
28
|
+
class UpdateOwner {
|
|
29
|
+
constructor() {
|
|
30
|
+
this.discriminator = 0;
|
|
31
|
+
this.kind = "UpdateOwner";
|
|
32
|
+
}
|
|
33
|
+
toJSON() {
|
|
34
|
+
return {
|
|
35
|
+
kind: "UpdateOwner",
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
toEncodable() {
|
|
39
|
+
return {
|
|
40
|
+
UpdateOwner: {},
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.UpdateOwner = UpdateOwner;
|
|
45
|
+
UpdateOwner.discriminator = 0;
|
|
46
|
+
UpdateOwner.kind = "UpdateOwner";
|
|
47
|
+
class UpdateEmergencyMode {
|
|
48
|
+
constructor() {
|
|
49
|
+
this.discriminator = 1;
|
|
50
|
+
this.kind = "UpdateEmergencyMode";
|
|
51
|
+
}
|
|
52
|
+
toJSON() {
|
|
53
|
+
return {
|
|
54
|
+
kind: "UpdateEmergencyMode",
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
toEncodable() {
|
|
58
|
+
return {
|
|
59
|
+
UpdateEmergencyMode: {},
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
exports.UpdateEmergencyMode = UpdateEmergencyMode;
|
|
64
|
+
UpdateEmergencyMode.discriminator = 1;
|
|
65
|
+
UpdateEmergencyMode.kind = "UpdateEmergencyMode";
|
|
66
|
+
class UpdateLiquidationCloseFactor {
|
|
67
|
+
constructor() {
|
|
68
|
+
this.discriminator = 2;
|
|
69
|
+
this.kind = "UpdateLiquidationCloseFactor";
|
|
70
|
+
}
|
|
71
|
+
toJSON() {
|
|
72
|
+
return {
|
|
73
|
+
kind: "UpdateLiquidationCloseFactor",
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
toEncodable() {
|
|
77
|
+
return {
|
|
78
|
+
UpdateLiquidationCloseFactor: {},
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
exports.UpdateLiquidationCloseFactor = UpdateLiquidationCloseFactor;
|
|
83
|
+
UpdateLiquidationCloseFactor.discriminator = 2;
|
|
84
|
+
UpdateLiquidationCloseFactor.kind = "UpdateLiquidationCloseFactor";
|
|
85
|
+
class UpdateLiquidationMaxValue {
|
|
86
|
+
constructor() {
|
|
87
|
+
this.discriminator = 3;
|
|
88
|
+
this.kind = "UpdateLiquidationMaxValue";
|
|
89
|
+
}
|
|
90
|
+
toJSON() {
|
|
91
|
+
return {
|
|
92
|
+
kind: "UpdateLiquidationMaxValue",
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
toEncodable() {
|
|
96
|
+
return {
|
|
97
|
+
UpdateLiquidationMaxValue: {},
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
exports.UpdateLiquidationMaxValue = UpdateLiquidationMaxValue;
|
|
102
|
+
UpdateLiquidationMaxValue.discriminator = 3;
|
|
103
|
+
UpdateLiquidationMaxValue.kind = "UpdateLiquidationMaxValue";
|
|
104
|
+
class UpdateGlobalUnhealthyBorrow {
|
|
105
|
+
constructor() {
|
|
106
|
+
this.discriminator = 4;
|
|
107
|
+
this.kind = "UpdateGlobalUnhealthyBorrow";
|
|
108
|
+
}
|
|
109
|
+
toJSON() {
|
|
110
|
+
return {
|
|
111
|
+
kind: "UpdateGlobalUnhealthyBorrow",
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
toEncodable() {
|
|
115
|
+
return {
|
|
116
|
+
UpdateGlobalUnhealthyBorrow: {},
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
exports.UpdateGlobalUnhealthyBorrow = UpdateGlobalUnhealthyBorrow;
|
|
121
|
+
UpdateGlobalUnhealthyBorrow.discriminator = 4;
|
|
122
|
+
UpdateGlobalUnhealthyBorrow.kind = "UpdateGlobalUnhealthyBorrow";
|
|
123
|
+
class UpdateGlobalAllowedBorrow {
|
|
124
|
+
constructor() {
|
|
125
|
+
this.discriminator = 5;
|
|
126
|
+
this.kind = "UpdateGlobalAllowedBorrow";
|
|
127
|
+
}
|
|
128
|
+
toJSON() {
|
|
129
|
+
return {
|
|
130
|
+
kind: "UpdateGlobalAllowedBorrow",
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
toEncodable() {
|
|
134
|
+
return {
|
|
135
|
+
UpdateGlobalAllowedBorrow: {},
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
exports.UpdateGlobalAllowedBorrow = UpdateGlobalAllowedBorrow;
|
|
140
|
+
UpdateGlobalAllowedBorrow.discriminator = 5;
|
|
141
|
+
UpdateGlobalAllowedBorrow.kind = "UpdateGlobalAllowedBorrow";
|
|
142
|
+
class UpdateRiskCouncil {
|
|
143
|
+
constructor() {
|
|
144
|
+
this.discriminator = 6;
|
|
145
|
+
this.kind = "UpdateRiskCouncil";
|
|
146
|
+
}
|
|
147
|
+
toJSON() {
|
|
148
|
+
return {
|
|
149
|
+
kind: "UpdateRiskCouncil",
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
toEncodable() {
|
|
153
|
+
return {
|
|
154
|
+
UpdateRiskCouncil: {},
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
exports.UpdateRiskCouncil = UpdateRiskCouncil;
|
|
159
|
+
UpdateRiskCouncil.discriminator = 6;
|
|
160
|
+
UpdateRiskCouncil.kind = "UpdateRiskCouncil";
|
|
161
|
+
class UpdateMinFullLiquidationThreshold {
|
|
162
|
+
constructor() {
|
|
163
|
+
this.discriminator = 7;
|
|
164
|
+
this.kind = "UpdateMinFullLiquidationThreshold";
|
|
165
|
+
}
|
|
166
|
+
toJSON() {
|
|
167
|
+
return {
|
|
168
|
+
kind: "UpdateMinFullLiquidationThreshold",
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
toEncodable() {
|
|
172
|
+
return {
|
|
173
|
+
UpdateMinFullLiquidationThreshold: {},
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
exports.UpdateMinFullLiquidationThreshold = UpdateMinFullLiquidationThreshold;
|
|
178
|
+
UpdateMinFullLiquidationThreshold.discriminator = 7;
|
|
179
|
+
UpdateMinFullLiquidationThreshold.kind = "UpdateMinFullLiquidationThreshold";
|
|
180
|
+
class UpdateInsolvencyRiskLtv {
|
|
181
|
+
constructor() {
|
|
182
|
+
this.discriminator = 8;
|
|
183
|
+
this.kind = "UpdateInsolvencyRiskLtv";
|
|
184
|
+
}
|
|
185
|
+
toJSON() {
|
|
186
|
+
return {
|
|
187
|
+
kind: "UpdateInsolvencyRiskLtv",
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
toEncodable() {
|
|
191
|
+
return {
|
|
192
|
+
UpdateInsolvencyRiskLtv: {},
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
exports.UpdateInsolvencyRiskLtv = UpdateInsolvencyRiskLtv;
|
|
197
|
+
UpdateInsolvencyRiskLtv.discriminator = 8;
|
|
198
|
+
UpdateInsolvencyRiskLtv.kind = "UpdateInsolvencyRiskLtv";
|
|
199
|
+
class UpdateElevationGroup {
|
|
200
|
+
constructor() {
|
|
201
|
+
this.discriminator = 9;
|
|
202
|
+
this.kind = "UpdateElevationGroup";
|
|
203
|
+
}
|
|
204
|
+
toJSON() {
|
|
205
|
+
return {
|
|
206
|
+
kind: "UpdateElevationGroup",
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
toEncodable() {
|
|
210
|
+
return {
|
|
211
|
+
UpdateElevationGroup: {},
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
exports.UpdateElevationGroup = UpdateElevationGroup;
|
|
216
|
+
UpdateElevationGroup.discriminator = 9;
|
|
217
|
+
UpdateElevationGroup.kind = "UpdateElevationGroup";
|
|
218
|
+
class UpdateReferralFeeBps {
|
|
219
|
+
constructor() {
|
|
220
|
+
this.discriminator = 10;
|
|
221
|
+
this.kind = "UpdateReferralFeeBps";
|
|
222
|
+
}
|
|
223
|
+
toJSON() {
|
|
224
|
+
return {
|
|
225
|
+
kind: "UpdateReferralFeeBps",
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
toEncodable() {
|
|
229
|
+
return {
|
|
230
|
+
UpdateReferralFeeBps: {},
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
exports.UpdateReferralFeeBps = UpdateReferralFeeBps;
|
|
235
|
+
UpdateReferralFeeBps.discriminator = 10;
|
|
236
|
+
UpdateReferralFeeBps.kind = "UpdateReferralFeeBps";
|
|
237
|
+
class UpdateMultiplierPoints {
|
|
238
|
+
constructor() {
|
|
239
|
+
this.discriminator = 11;
|
|
240
|
+
this.kind = "UpdateMultiplierPoints";
|
|
241
|
+
}
|
|
242
|
+
toJSON() {
|
|
243
|
+
return {
|
|
244
|
+
kind: "UpdateMultiplierPoints",
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
toEncodable() {
|
|
248
|
+
return {
|
|
249
|
+
UpdateMultiplierPoints: {},
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
exports.UpdateMultiplierPoints = UpdateMultiplierPoints;
|
|
254
|
+
UpdateMultiplierPoints.discriminator = 11;
|
|
255
|
+
UpdateMultiplierPoints.kind = "UpdateMultiplierPoints";
|
|
256
|
+
class UpdatePriceRefreshTriggerToMaxAgePct {
|
|
257
|
+
constructor() {
|
|
258
|
+
this.discriminator = 12;
|
|
259
|
+
this.kind = "UpdatePriceRefreshTriggerToMaxAgePct";
|
|
260
|
+
}
|
|
261
|
+
toJSON() {
|
|
262
|
+
return {
|
|
263
|
+
kind: "UpdatePriceRefreshTriggerToMaxAgePct",
|
|
264
|
+
};
|
|
265
|
+
}
|
|
266
|
+
toEncodable() {
|
|
267
|
+
return {
|
|
268
|
+
UpdatePriceRefreshTriggerToMaxAgePct: {},
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
exports.UpdatePriceRefreshTriggerToMaxAgePct = UpdatePriceRefreshTriggerToMaxAgePct;
|
|
273
|
+
UpdatePriceRefreshTriggerToMaxAgePct.discriminator = 12;
|
|
274
|
+
UpdatePriceRefreshTriggerToMaxAgePct.kind = "UpdatePriceRefreshTriggerToMaxAgePct";
|
|
275
|
+
class UpdateAutodeleverageEnabled {
|
|
276
|
+
constructor() {
|
|
277
|
+
this.discriminator = 13;
|
|
278
|
+
this.kind = "UpdateAutodeleverageEnabled";
|
|
279
|
+
}
|
|
280
|
+
toJSON() {
|
|
281
|
+
return {
|
|
282
|
+
kind: "UpdateAutodeleverageEnabled",
|
|
283
|
+
};
|
|
284
|
+
}
|
|
285
|
+
toEncodable() {
|
|
286
|
+
return {
|
|
287
|
+
UpdateAutodeleverageEnabled: {},
|
|
288
|
+
};
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
exports.UpdateAutodeleverageEnabled = UpdateAutodeleverageEnabled;
|
|
292
|
+
UpdateAutodeleverageEnabled.discriminator = 13;
|
|
293
|
+
UpdateAutodeleverageEnabled.kind = "UpdateAutodeleverageEnabled";
|
|
294
|
+
class UpdateBorrowingDisabled {
|
|
295
|
+
constructor() {
|
|
296
|
+
this.discriminator = 14;
|
|
297
|
+
this.kind = "UpdateBorrowingDisabled";
|
|
298
|
+
}
|
|
299
|
+
toJSON() {
|
|
300
|
+
return {
|
|
301
|
+
kind: "UpdateBorrowingDisabled",
|
|
302
|
+
};
|
|
303
|
+
}
|
|
304
|
+
toEncodable() {
|
|
305
|
+
return {
|
|
306
|
+
UpdateBorrowingDisabled: {},
|
|
307
|
+
};
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
exports.UpdateBorrowingDisabled = UpdateBorrowingDisabled;
|
|
311
|
+
UpdateBorrowingDisabled.discriminator = 14;
|
|
312
|
+
UpdateBorrowingDisabled.kind = "UpdateBorrowingDisabled";
|
|
313
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
314
|
+
function fromDecoded(obj) {
|
|
315
|
+
if (typeof obj !== "object") {
|
|
316
|
+
throw new Error("Invalid enum object");
|
|
317
|
+
}
|
|
318
|
+
if ("UpdateOwner" in obj) {
|
|
319
|
+
return new UpdateOwner();
|
|
320
|
+
}
|
|
321
|
+
if ("UpdateEmergencyMode" in obj) {
|
|
322
|
+
return new UpdateEmergencyMode();
|
|
323
|
+
}
|
|
324
|
+
if ("UpdateLiquidationCloseFactor" in obj) {
|
|
325
|
+
return new UpdateLiquidationCloseFactor();
|
|
326
|
+
}
|
|
327
|
+
if ("UpdateLiquidationMaxValue" in obj) {
|
|
328
|
+
return new UpdateLiquidationMaxValue();
|
|
329
|
+
}
|
|
330
|
+
if ("UpdateGlobalUnhealthyBorrow" in obj) {
|
|
331
|
+
return new UpdateGlobalUnhealthyBorrow();
|
|
332
|
+
}
|
|
333
|
+
if ("UpdateGlobalAllowedBorrow" in obj) {
|
|
334
|
+
return new UpdateGlobalAllowedBorrow();
|
|
335
|
+
}
|
|
336
|
+
if ("UpdateRiskCouncil" in obj) {
|
|
337
|
+
return new UpdateRiskCouncil();
|
|
338
|
+
}
|
|
339
|
+
if ("UpdateMinFullLiquidationThreshold" in obj) {
|
|
340
|
+
return new UpdateMinFullLiquidationThreshold();
|
|
341
|
+
}
|
|
342
|
+
if ("UpdateInsolvencyRiskLtv" in obj) {
|
|
343
|
+
return new UpdateInsolvencyRiskLtv();
|
|
344
|
+
}
|
|
345
|
+
if ("UpdateElevationGroup" in obj) {
|
|
346
|
+
return new UpdateElevationGroup();
|
|
347
|
+
}
|
|
348
|
+
if ("UpdateReferralFeeBps" in obj) {
|
|
349
|
+
return new UpdateReferralFeeBps();
|
|
350
|
+
}
|
|
351
|
+
if ("UpdateMultiplierPoints" in obj) {
|
|
352
|
+
return new UpdateMultiplierPoints();
|
|
353
|
+
}
|
|
354
|
+
if ("UpdatePriceRefreshTriggerToMaxAgePct" in obj) {
|
|
355
|
+
return new UpdatePriceRefreshTriggerToMaxAgePct();
|
|
356
|
+
}
|
|
357
|
+
if ("UpdateAutodeleverageEnabled" in obj) {
|
|
358
|
+
return new UpdateAutodeleverageEnabled();
|
|
359
|
+
}
|
|
360
|
+
if ("UpdateBorrowingDisabled" in obj) {
|
|
361
|
+
return new UpdateBorrowingDisabled();
|
|
362
|
+
}
|
|
363
|
+
throw new Error("Invalid enum object");
|
|
364
|
+
}
|
|
365
|
+
exports.fromDecoded = fromDecoded;
|
|
366
|
+
function fromJSON(obj) {
|
|
367
|
+
switch (obj.kind) {
|
|
368
|
+
case "UpdateOwner": {
|
|
369
|
+
return new UpdateOwner();
|
|
370
|
+
}
|
|
371
|
+
case "UpdateEmergencyMode": {
|
|
372
|
+
return new UpdateEmergencyMode();
|
|
373
|
+
}
|
|
374
|
+
case "UpdateLiquidationCloseFactor": {
|
|
375
|
+
return new UpdateLiquidationCloseFactor();
|
|
376
|
+
}
|
|
377
|
+
case "UpdateLiquidationMaxValue": {
|
|
378
|
+
return new UpdateLiquidationMaxValue();
|
|
379
|
+
}
|
|
380
|
+
case "UpdateGlobalUnhealthyBorrow": {
|
|
381
|
+
return new UpdateGlobalUnhealthyBorrow();
|
|
382
|
+
}
|
|
383
|
+
case "UpdateGlobalAllowedBorrow": {
|
|
384
|
+
return new UpdateGlobalAllowedBorrow();
|
|
385
|
+
}
|
|
386
|
+
case "UpdateRiskCouncil": {
|
|
387
|
+
return new UpdateRiskCouncil();
|
|
388
|
+
}
|
|
389
|
+
case "UpdateMinFullLiquidationThreshold": {
|
|
390
|
+
return new UpdateMinFullLiquidationThreshold();
|
|
391
|
+
}
|
|
392
|
+
case "UpdateInsolvencyRiskLtv": {
|
|
393
|
+
return new UpdateInsolvencyRiskLtv();
|
|
394
|
+
}
|
|
395
|
+
case "UpdateElevationGroup": {
|
|
396
|
+
return new UpdateElevationGroup();
|
|
397
|
+
}
|
|
398
|
+
case "UpdateReferralFeeBps": {
|
|
399
|
+
return new UpdateReferralFeeBps();
|
|
400
|
+
}
|
|
401
|
+
case "UpdateMultiplierPoints": {
|
|
402
|
+
return new UpdateMultiplierPoints();
|
|
403
|
+
}
|
|
404
|
+
case "UpdatePriceRefreshTriggerToMaxAgePct": {
|
|
405
|
+
return new UpdatePriceRefreshTriggerToMaxAgePct();
|
|
406
|
+
}
|
|
407
|
+
case "UpdateAutodeleverageEnabled": {
|
|
408
|
+
return new UpdateAutodeleverageEnabled();
|
|
409
|
+
}
|
|
410
|
+
case "UpdateBorrowingDisabled": {
|
|
411
|
+
return new UpdateBorrowingDisabled();
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
exports.fromJSON = fromJSON;
|
|
416
|
+
function layout(property) {
|
|
417
|
+
const ret = borsh.rustEnum([
|
|
418
|
+
borsh.struct([], "UpdateOwner"),
|
|
419
|
+
borsh.struct([], "UpdateEmergencyMode"),
|
|
420
|
+
borsh.struct([], "UpdateLiquidationCloseFactor"),
|
|
421
|
+
borsh.struct([], "UpdateLiquidationMaxValue"),
|
|
422
|
+
borsh.struct([], "UpdateGlobalUnhealthyBorrow"),
|
|
423
|
+
borsh.struct([], "UpdateGlobalAllowedBorrow"),
|
|
424
|
+
borsh.struct([], "UpdateRiskCouncil"),
|
|
425
|
+
borsh.struct([], "UpdateMinFullLiquidationThreshold"),
|
|
426
|
+
borsh.struct([], "UpdateInsolvencyRiskLtv"),
|
|
427
|
+
borsh.struct([], "UpdateElevationGroup"),
|
|
428
|
+
borsh.struct([], "UpdateReferralFeeBps"),
|
|
429
|
+
borsh.struct([], "UpdateMultiplierPoints"),
|
|
430
|
+
borsh.struct([], "UpdatePriceRefreshTriggerToMaxAgePct"),
|
|
431
|
+
borsh.struct([], "UpdateAutodeleverageEnabled"),
|
|
432
|
+
borsh.struct([], "UpdateBorrowingDisabled"),
|
|
433
|
+
]);
|
|
434
|
+
if (property !== undefined) {
|
|
435
|
+
return ret.replicate(property);
|
|
436
|
+
}
|
|
437
|
+
return ret;
|
|
438
|
+
}
|
|
439
|
+
exports.layout = layout;
|
|
440
|
+
//# sourceMappingURL=UpdateLendingMarketMode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UpdateLendingMarketMode.js","sourceRoot":"","sources":["../../../src/idl_codegen/types/UpdateLendingMarketMode.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wDAAyC;AAMzC,MAAa,WAAW;IAAxB;QAGW,kBAAa,GAAG,CAAC,CAAA;QACjB,SAAI,GAAG,aAAa,CAAA;IAa/B,CAAC;IAXC,MAAM;QACJ,OAAO;YACL,IAAI,EAAE,aAAa;SACpB,CAAA;IACH,CAAC;IAED,WAAW;QACT,OAAO;YACL,WAAW,EAAE,EAAE;SAChB,CAAA;IACH,CAAC;;AAhBH,kCAiBC;AAhBiB,yBAAa,GAAG,CAAC,CAAA;AACjB,gBAAI,GAAG,aAAa,CAAA;AAqBtC,MAAa,mBAAmB;IAAhC;QAGW,kBAAa,GAAG,CAAC,CAAA;QACjB,SAAI,GAAG,qBAAqB,CAAA;IAavC,CAAC;IAXC,MAAM;QACJ,OAAO;YACL,IAAI,EAAE,qBAAqB;SAC5B,CAAA;IACH,CAAC;IAED,WAAW;QACT,OAAO;YACL,mBAAmB,EAAE,EAAE;SACxB,CAAA;IACH,CAAC;;AAhBH,kDAiBC;AAhBiB,iCAAa,GAAG,CAAC,CAAA;AACjB,wBAAI,GAAG,qBAAqB,CAAA;AAqB9C,MAAa,4BAA4B;IAAzC;QAGW,kBAAa,GAAG,CAAC,CAAA;QACjB,SAAI,GAAG,8BAA8B,CAAA;IAahD,CAAC;IAXC,MAAM;QACJ,OAAO;YACL,IAAI,EAAE,8BAA8B;SACrC,CAAA;IACH,CAAC;IAED,WAAW;QACT,OAAO;YACL,4BAA4B,EAAE,EAAE;SACjC,CAAA;IACH,CAAC;;AAhBH,oEAiBC;AAhBiB,0CAAa,GAAG,CAAC,CAAA;AACjB,iCAAI,GAAG,8BAA8B,CAAA;AAqBvD,MAAa,yB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B,CAAC;QACxC,KAAK,CAAC,MAAM,CAAC,EAAE,EAAE,wBAAwB,CAAC;QAC1C,KAAK,CAAC,MAAM,CAAC,EAAE,EAAE,sCAAsC,CAAC;QACxD,KAAK,CAAC,MAAM,CAAC,EAAE,EAAE,6BAA6B,CAAC;QAC/C,KAAK,CAAC,MAAM,CAAC,EAAE,EAAE,yBAAyB,CAAC;KAC5C,CAAC,CAAA;IACF,IAAI,QAAQ,KAAK,SAAS,EAAE;QAC1B,OAAO,GAAG,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAA;KAC/B;IACD,OAAO,GAAG,CAAA;AACZ,CAAC;AAtBD,wBAsBC","sourcesContent":["import { PublicKey } from \"@solana/web3.js\" // eslint-disable-line @typescript-eslint/no-unused-vars\nimport BN from \"bn.js\" // eslint-disable-line @typescript-eslint/no-unused-vars\nimport * as types from \"../types\" // eslint-disable-line @typescript-eslint/no-unused-vars\nimport * as borsh from \"@coral-xyz/borsh\"\n\nexport interface UpdateOwnerJSON {\n kind: \"UpdateOwner\"\n}\n\nexport class UpdateOwner {\n static readonly discriminator = 0\n static readonly kind = \"UpdateOwner\"\n readonly discriminator = 0\n readonly kind = \"UpdateOwner\"\n\n toJSON(): UpdateOwnerJSON {\n return {\n kind: \"UpdateOwner\",\n }\n }\n\n toEncodable() {\n return {\n UpdateOwner: {},\n }\n }\n}\n\nexport interface UpdateEmergencyModeJSON {\n kind: \"UpdateEmergencyMode\"\n}\n\nexport class UpdateEmergencyMode {\n static readonly discriminator = 1\n static readonly kind = \"UpdateEmergencyMode\"\n readonly discriminator = 1\n readonly kind = \"UpdateEmergencyMode\"\n\n toJSON(): UpdateEmergencyModeJSON {\n return {\n kind: \"UpdateEmergencyMode\",\n }\n }\n\n toEncodable() {\n return {\n UpdateEmergencyMode: {},\n }\n }\n}\n\nexport interface UpdateLiquidationCloseFactorJSON {\n kind: \"UpdateLiquidationCloseFactor\"\n}\n\nexport class UpdateLiquidationCloseFactor {\n static readonly discriminator = 2\n static readonly kind = \"UpdateLiquidationCloseFactor\"\n readonly discriminator = 2\n readonly kind = \"UpdateLiquidationCloseFactor\"\n\n toJSON(): UpdateLiquidationCloseFactorJSON {\n return {\n kind: \"UpdateLiquidationCloseFactor\",\n }\n }\n\n toEncodable() {\n return {\n UpdateLiquidationCloseFactor: {},\n }\n }\n}\n\nexport interface UpdateLiquidationMaxValueJSON {\n kind: \"UpdateLiquidationMaxValue\"\n}\n\nexport class UpdateLiquidationMaxValue {\n static readonly discriminator = 3\n static readonly kind = \"UpdateLiquidationMaxValue\"\n readonly discriminator = 3\n readonly kind = \"UpdateLiquidationMaxValue\"\n\n toJSON(): UpdateLiquidationMaxValueJSON {\n return {\n kind: \"UpdateLiquidationMaxValue\",\n }\n }\n\n toEncodable() {\n return {\n UpdateLiquidationMaxValue: {},\n }\n }\n}\n\nexport interface UpdateGlobalUnhealthyBorrowJSON {\n kind: \"UpdateGlobalUnhealthyBorrow\"\n}\n\nexport class UpdateGlobalUnhealthyBorrow {\n static readonly discriminator = 4\n static readonly kind = \"UpdateGlobalUnhealthyBorrow\"\n readonly discriminator = 4\n readonly kind = \"UpdateGlobalUnhealthyBorrow\"\n\n toJSON(): UpdateGlobalUnhealthyBorrowJSON {\n return {\n kind: \"UpdateGlobalUnhealthyBorrow\",\n }\n }\n\n toEncodable() {\n return {\n UpdateGlobalUnhealthyBorrow: {},\n }\n }\n}\n\nexport interface UpdateGlobalAllowedBorrowJSON {\n kind: \"UpdateGlobalAllowedBorrow\"\n}\n\nexport class UpdateGlobalAllowedBorrow {\n static readonly discriminator = 5\n static readonly kind = \"UpdateGlobalAllowedBorrow\"\n readonly discriminator = 5\n readonly kind = \"UpdateGlobalAllowedBorrow\"\n\n toJSON(): UpdateGlobalAllowedBorrowJSON {\n return {\n kind: \"UpdateGlobalAllowedBorrow\",\n }\n }\n\n toEncodable() {\n return {\n UpdateGlobalAllowedBorrow: {},\n }\n }\n}\n\nexport interface UpdateRiskCouncilJSON {\n kind: \"UpdateRiskCouncil\"\n}\n\nexport class UpdateRiskCouncil {\n static readonly discriminator = 6\n static readonly kind = \"UpdateRiskCouncil\"\n readonly discriminator = 6\n readonly kind = \"UpdateRiskCouncil\"\n\n toJSON(): UpdateRiskCouncilJSON {\n return {\n kind: \"UpdateRiskCouncil\",\n }\n }\n\n toEncodable() {\n return {\n UpdateRiskCouncil: {},\n }\n }\n}\n\nexport interface UpdateMinFullLiquidationThresholdJSON {\n kind: \"UpdateMinFullLiquidationThreshold\"\n}\n\nexport class UpdateMinFullLiquidationThreshold {\n static readonly discriminator = 7\n static readonly kind = \"UpdateMinFullLiquidationThreshold\"\n readonly discriminator = 7\n readonly kind = \"UpdateMinFullLiquidationThreshold\"\n\n toJSON(): UpdateMinFullLiquidationThresholdJSON {\n return {\n kind: \"UpdateMinFullLiquidationThreshold\",\n }\n }\n\n toEncodable() {\n return {\n UpdateMinFullLiquidationThreshold: {},\n }\n }\n}\n\nexport interface UpdateInsolvencyRiskLtvJSON {\n kind: \"UpdateInsolvencyRiskLtv\"\n}\n\nexport class UpdateInsolvencyRiskLtv {\n static readonly discriminator = 8\n static readonly kind = \"UpdateInsolvencyRiskLtv\"\n readonly discriminator = 8\n readonly kind = \"UpdateInsolvencyRiskLtv\"\n\n toJSON(): UpdateInsolvencyRiskLtvJSON {\n return {\n kind: \"UpdateInsolvencyRiskLtv\",\n }\n }\n\n toEncodable() {\n return {\n UpdateInsolvencyRiskLtv: {},\n }\n }\n}\n\nexport interface UpdateElevationGroupJSON {\n kind: \"UpdateElevationGroup\"\n}\n\nexport class UpdateElevationGroup {\n static readonly discriminator = 9\n static readonly kind = \"UpdateElevationGroup\"\n readonly discriminator = 9\n readonly kind = \"UpdateElevationGroup\"\n\n toJSON(): UpdateElevationGroupJSON {\n return {\n kind: \"UpdateElevationGroup\",\n }\n }\n\n toEncodable() {\n return {\n UpdateElevationGroup: {},\n }\n }\n}\n\nexport interface UpdateReferralFeeBpsJSON {\n kind: \"UpdateReferralFeeBps\"\n}\n\nexport class UpdateReferralFeeBps {\n static readonly discriminator = 10\n static readonly kind = \"UpdateReferralFeeBps\"\n readonly discriminator = 10\n readonly kind = \"UpdateReferralFeeBps\"\n\n toJSON(): UpdateReferralFeeBpsJSON {\n return {\n kind: \"UpdateReferralFeeBps\",\n }\n }\n\n toEncodable() {\n return {\n UpdateReferralFeeBps: {},\n }\n }\n}\n\nexport interface UpdateMultiplierPointsJSON {\n kind: \"UpdateMultiplierPoints\"\n}\n\nexport class UpdateMultiplierPoints {\n static readonly discriminator = 11\n static readonly kind = \"UpdateMultiplierPoints\"\n readonly discriminator = 11\n readonly kind = \"UpdateMultiplierPoints\"\n\n toJSON(): UpdateMultiplierPointsJSON {\n return {\n kind: \"UpdateMultiplierPoints\",\n }\n }\n\n toEncodable() {\n return {\n UpdateMultiplierPoints: {},\n }\n }\n}\n\nexport interface UpdatePriceRefreshTriggerToMaxAgePctJSON {\n kind: \"UpdatePriceRefreshTriggerToMaxAgePct\"\n}\n\nexport class UpdatePriceRefreshTriggerToMaxAgePct {\n static readonly discriminator = 12\n static readonly kind = \"UpdatePriceRefreshTriggerToMaxAgePct\"\n readonly discriminator = 12\n readonly kind = \"UpdatePriceRefreshTriggerToMaxAgePct\"\n\n toJSON(): UpdatePriceRefreshTriggerToMaxAgePctJSON {\n return {\n kind: \"UpdatePriceRefreshTriggerToMaxAgePct\",\n }\n }\n\n toEncodable() {\n return {\n UpdatePriceRefreshTriggerToMaxAgePct: {},\n }\n }\n}\n\nexport interface UpdateAutodeleverageEnabledJSON {\n kind: \"UpdateAutodeleverageEnabled\"\n}\n\nexport class UpdateAutodeleverageEnabled {\n static readonly discriminator = 13\n static readonly kind = \"UpdateAutodeleverageEnabled\"\n readonly discriminator = 13\n readonly kind = \"UpdateAutodeleverageEnabled\"\n\n toJSON(): UpdateAutodeleverageEnabledJSON {\n return {\n kind: \"UpdateAutodeleverageEnabled\",\n }\n }\n\n toEncodable() {\n return {\n UpdateAutodeleverageEnabled: {},\n }\n }\n}\n\nexport interface UpdateBorrowingDisabledJSON {\n kind: \"UpdateBorrowingDisabled\"\n}\n\nexport class UpdateBorrowingDisabled {\n static readonly discriminator = 14\n static readonly kind = \"UpdateBorrowingDisabled\"\n readonly discriminator = 14\n readonly kind = \"UpdateBorrowingDisabled\"\n\n toJSON(): UpdateBorrowingDisabledJSON {\n return {\n kind: \"UpdateBorrowingDisabled\",\n }\n }\n\n toEncodable() {\n return {\n UpdateBorrowingDisabled: {},\n }\n }\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function fromDecoded(obj: any): types.UpdateLendingMarketModeKind {\n if (typeof obj !== \"object\") {\n throw new Error(\"Invalid enum object\")\n }\n\n if (\"UpdateOwner\" in obj) {\n return new UpdateOwner()\n }\n if (\"UpdateEmergencyMode\" in obj) {\n return new UpdateEmergencyMode()\n }\n if (\"UpdateLiquidationCloseFactor\" in obj) {\n return new UpdateLiquidationCloseFactor()\n }\n if (\"UpdateLiquidationMaxValue\" in obj) {\n return new UpdateLiquidationMaxValue()\n }\n if (\"UpdateGlobalUnhealthyBorrow\" in obj) {\n return new UpdateGlobalUnhealthyBorrow()\n }\n if (\"UpdateGlobalAllowedBorrow\" in obj) {\n return new UpdateGlobalAllowedBorrow()\n }\n if (\"UpdateRiskCouncil\" in obj) {\n return new UpdateRiskCouncil()\n }\n if (\"UpdateMinFullLiquidationThreshold\" in obj) {\n return new UpdateMinFullLiquidationThreshold()\n }\n if (\"UpdateInsolvencyRiskLtv\" in obj) {\n return new UpdateInsolvencyRiskLtv()\n }\n if (\"UpdateElevationGroup\" in obj) {\n return new UpdateElevationGroup()\n }\n if (\"UpdateReferralFeeBps\" in obj) {\n return new UpdateReferralFeeBps()\n }\n if (\"UpdateMultiplierPoints\" in obj) {\n return new UpdateMultiplierPoints()\n }\n if (\"UpdatePriceRefreshTriggerToMaxAgePct\" in obj) {\n return new UpdatePriceRefreshTriggerToMaxAgePct()\n }\n if (\"UpdateAutodeleverageEnabled\" in obj) {\n return new UpdateAutodeleverageEnabled()\n }\n if (\"UpdateBorrowingDisabled\" in obj) {\n return new UpdateBorrowingDisabled()\n }\n\n throw new Error(\"Invalid enum object\")\n}\n\nexport function fromJSON(\n obj: types.UpdateLendingMarketModeJSON\n): types.UpdateLendingMarketModeKind {\n switch (obj.kind) {\n case \"UpdateOwner\": {\n return new UpdateOwner()\n }\n case \"UpdateEmergencyMode\": {\n return new UpdateEmergencyMode()\n }\n case \"UpdateLiquidationCloseFactor\": {\n return new UpdateLiquidationCloseFactor()\n }\n case \"UpdateLiquidationMaxValue\": {\n return new UpdateLiquidationMaxValue()\n }\n case \"UpdateGlobalUnhealthyBorrow\": {\n return new UpdateGlobalUnhealthyBorrow()\n }\n case \"UpdateGlobalAllowedBorrow\": {\n return new UpdateGlobalAllowedBorrow()\n }\n case \"UpdateRiskCouncil\": {\n return new UpdateRiskCouncil()\n }\n case \"UpdateMinFullLiquidationThreshold\": {\n return new UpdateMinFullLiquidationThreshold()\n }\n case \"UpdateInsolvencyRiskLtv\": {\n return new UpdateInsolvencyRiskLtv()\n }\n case \"UpdateElevationGroup\": {\n return new UpdateElevationGroup()\n }\n case \"UpdateReferralFeeBps\": {\n return new UpdateReferralFeeBps()\n }\n case \"UpdateMultiplierPoints\": {\n return new UpdateMultiplierPoints()\n }\n case \"UpdatePriceRefreshTriggerToMaxAgePct\": {\n return new UpdatePriceRefreshTriggerToMaxAgePct()\n }\n case \"UpdateAutodeleverageEnabled\": {\n return new UpdateAutodeleverageEnabled()\n }\n case \"UpdateBorrowingDisabled\": {\n return new UpdateBorrowingDisabled()\n }\n }\n}\n\nexport function layout(property?: string) {\n const ret = borsh.rustEnum([\n borsh.struct([], \"UpdateOwner\"),\n borsh.struct([], \"UpdateEmergencyMode\"),\n borsh.struct([], \"UpdateLiquidationCloseFactor\"),\n borsh.struct([], \"UpdateLiquidationMaxValue\"),\n borsh.struct([], \"UpdateGlobalUnhealthyBorrow\"),\n borsh.struct([], \"UpdateGlobalAllowedBorrow\"),\n borsh.struct([], \"UpdateRiskCouncil\"),\n borsh.struct([], \"UpdateMinFullLiquidationThreshold\"),\n borsh.struct([], \"UpdateInsolvencyRiskLtv\"),\n borsh.struct([], \"UpdateElevationGroup\"),\n borsh.struct([], \"UpdateReferralFeeBps\"),\n borsh.struct([], \"UpdateMultiplierPoints\"),\n borsh.struct([], \"UpdatePriceRefreshTriggerToMaxAgePct\"),\n borsh.struct([], \"UpdateAutodeleverageEnabled\"),\n borsh.struct([], \"UpdateBorrowingDisabled\"),\n ])\n if (property !== undefined) {\n return ret.replicate(property)\n }\n return ret\n}\n"]}
|