@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,1116 @@
|
|
|
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.UpdateFarmDebt = exports.UpdateFarmCollateral = exports.UpdateReserveStatus = exports.UpdateMultiplierTagBoost = exports.UpdateMultiplierSideBoost = exports.DeleveragingThresholdSlotsPerBps = exports.UpdateElevationGroup = exports.UpdateAssetTier = exports.UpdateBorrowFactor = exports.DeleveragingMarginCallPeriod = exports.UpdateMinLiquidationBonusBps = exports.UpdateBadDebtLiquidationBonusBps = exports.UpdateDepositWithdrawalCapCurrentTotal = exports.UpdateDebtWithdrawalCapCurrentTotal = exports.UpdateDepositWithdrawalCap = exports.UpdateDebtWithdrawalCap = exports.UpdateEntireReserveConfig = exports.UpdateBorrowRateCurve = exports.UpdateSwitchboardTwapFeed = exports.UpdateSwitchboardFeed = exports.UpdatePythPrice = exports.UpdateScopePriceFeed = exports.UpdateTokenInfoTwapMaxAge = exports.UpdateTokenInfoPriceMaxAge = exports.UpdateTokenInfoName = exports.UpdateTokenInfoScopeChain = exports.UpdateTokenInfoScopeTwap = exports.UpdateTokenInfoTwapDivergence = exports.UpdateTokenInfoExpHeuristic = exports.UpdateTokenInfoUpperHeuristic = exports.UpdateTokenInfoLowerHeuristic = exports.UpdateBorrowLimit = exports.UpdateDepositLimit = exports.UpdateFeesReferralFeeBps = exports.UpdateFeesFlashLoanFee = exports.UpdateFeesBorrowFee = exports.UpdateProtocolTakeRate = exports.UpdateProtocolLiquidationFee = exports.UpdateLiquidationThresholdPct = exports.UpdateMaxLiquidationBonusBps = exports.UpdateLoanToValuePct = void 0;
|
|
27
|
+
const borsh = __importStar(require("@coral-xyz/borsh"));
|
|
28
|
+
class UpdateLoanToValuePct {
|
|
29
|
+
constructor() {
|
|
30
|
+
this.discriminator = 0;
|
|
31
|
+
this.kind = "UpdateLoanToValuePct";
|
|
32
|
+
}
|
|
33
|
+
toJSON() {
|
|
34
|
+
return {
|
|
35
|
+
kind: "UpdateLoanToValuePct",
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
toEncodable() {
|
|
39
|
+
return {
|
|
40
|
+
UpdateLoanToValuePct: {},
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.UpdateLoanToValuePct = UpdateLoanToValuePct;
|
|
45
|
+
UpdateLoanToValuePct.discriminator = 0;
|
|
46
|
+
UpdateLoanToValuePct.kind = "UpdateLoanToValuePct";
|
|
47
|
+
class UpdateMaxLiquidationBonusBps {
|
|
48
|
+
constructor() {
|
|
49
|
+
this.discriminator = 1;
|
|
50
|
+
this.kind = "UpdateMaxLiquidationBonusBps";
|
|
51
|
+
}
|
|
52
|
+
toJSON() {
|
|
53
|
+
return {
|
|
54
|
+
kind: "UpdateMaxLiquidationBonusBps",
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
toEncodable() {
|
|
58
|
+
return {
|
|
59
|
+
UpdateMaxLiquidationBonusBps: {},
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
exports.UpdateMaxLiquidationBonusBps = UpdateMaxLiquidationBonusBps;
|
|
64
|
+
UpdateMaxLiquidationBonusBps.discriminator = 1;
|
|
65
|
+
UpdateMaxLiquidationBonusBps.kind = "UpdateMaxLiquidationBonusBps";
|
|
66
|
+
class UpdateLiquidationThresholdPct {
|
|
67
|
+
constructor() {
|
|
68
|
+
this.discriminator = 2;
|
|
69
|
+
this.kind = "UpdateLiquidationThresholdPct";
|
|
70
|
+
}
|
|
71
|
+
toJSON() {
|
|
72
|
+
return {
|
|
73
|
+
kind: "UpdateLiquidationThresholdPct",
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
toEncodable() {
|
|
77
|
+
return {
|
|
78
|
+
UpdateLiquidationThresholdPct: {},
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
exports.UpdateLiquidationThresholdPct = UpdateLiquidationThresholdPct;
|
|
83
|
+
UpdateLiquidationThresholdPct.discriminator = 2;
|
|
84
|
+
UpdateLiquidationThresholdPct.kind = "UpdateLiquidationThresholdPct";
|
|
85
|
+
class UpdateProtocolLiquidationFee {
|
|
86
|
+
constructor() {
|
|
87
|
+
this.discriminator = 3;
|
|
88
|
+
this.kind = "UpdateProtocolLiquidationFee";
|
|
89
|
+
}
|
|
90
|
+
toJSON() {
|
|
91
|
+
return {
|
|
92
|
+
kind: "UpdateProtocolLiquidationFee",
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
toEncodable() {
|
|
96
|
+
return {
|
|
97
|
+
UpdateProtocolLiquidationFee: {},
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
exports.UpdateProtocolLiquidationFee = UpdateProtocolLiquidationFee;
|
|
102
|
+
UpdateProtocolLiquidationFee.discriminator = 3;
|
|
103
|
+
UpdateProtocolLiquidationFee.kind = "UpdateProtocolLiquidationFee";
|
|
104
|
+
class UpdateProtocolTakeRate {
|
|
105
|
+
constructor() {
|
|
106
|
+
this.discriminator = 4;
|
|
107
|
+
this.kind = "UpdateProtocolTakeRate";
|
|
108
|
+
}
|
|
109
|
+
toJSON() {
|
|
110
|
+
return {
|
|
111
|
+
kind: "UpdateProtocolTakeRate",
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
toEncodable() {
|
|
115
|
+
return {
|
|
116
|
+
UpdateProtocolTakeRate: {},
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
exports.UpdateProtocolTakeRate = UpdateProtocolTakeRate;
|
|
121
|
+
UpdateProtocolTakeRate.discriminator = 4;
|
|
122
|
+
UpdateProtocolTakeRate.kind = "UpdateProtocolTakeRate";
|
|
123
|
+
class UpdateFeesBorrowFee {
|
|
124
|
+
constructor() {
|
|
125
|
+
this.discriminator = 5;
|
|
126
|
+
this.kind = "UpdateFeesBorrowFee";
|
|
127
|
+
}
|
|
128
|
+
toJSON() {
|
|
129
|
+
return {
|
|
130
|
+
kind: "UpdateFeesBorrowFee",
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
toEncodable() {
|
|
134
|
+
return {
|
|
135
|
+
UpdateFeesBorrowFee: {},
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
exports.UpdateFeesBorrowFee = UpdateFeesBorrowFee;
|
|
140
|
+
UpdateFeesBorrowFee.discriminator = 5;
|
|
141
|
+
UpdateFeesBorrowFee.kind = "UpdateFeesBorrowFee";
|
|
142
|
+
class UpdateFeesFlashLoanFee {
|
|
143
|
+
constructor() {
|
|
144
|
+
this.discriminator = 6;
|
|
145
|
+
this.kind = "UpdateFeesFlashLoanFee";
|
|
146
|
+
}
|
|
147
|
+
toJSON() {
|
|
148
|
+
return {
|
|
149
|
+
kind: "UpdateFeesFlashLoanFee",
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
toEncodable() {
|
|
153
|
+
return {
|
|
154
|
+
UpdateFeesFlashLoanFee: {},
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
exports.UpdateFeesFlashLoanFee = UpdateFeesFlashLoanFee;
|
|
159
|
+
UpdateFeesFlashLoanFee.discriminator = 6;
|
|
160
|
+
UpdateFeesFlashLoanFee.kind = "UpdateFeesFlashLoanFee";
|
|
161
|
+
class UpdateFeesReferralFeeBps {
|
|
162
|
+
constructor() {
|
|
163
|
+
this.discriminator = 7;
|
|
164
|
+
this.kind = "UpdateFeesReferralFeeBps";
|
|
165
|
+
}
|
|
166
|
+
toJSON() {
|
|
167
|
+
return {
|
|
168
|
+
kind: "UpdateFeesReferralFeeBps",
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
toEncodable() {
|
|
172
|
+
return {
|
|
173
|
+
UpdateFeesReferralFeeBps: {},
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
exports.UpdateFeesReferralFeeBps = UpdateFeesReferralFeeBps;
|
|
178
|
+
UpdateFeesReferralFeeBps.discriminator = 7;
|
|
179
|
+
UpdateFeesReferralFeeBps.kind = "UpdateFeesReferralFeeBps";
|
|
180
|
+
class UpdateDepositLimit {
|
|
181
|
+
constructor() {
|
|
182
|
+
this.discriminator = 8;
|
|
183
|
+
this.kind = "UpdateDepositLimit";
|
|
184
|
+
}
|
|
185
|
+
toJSON() {
|
|
186
|
+
return {
|
|
187
|
+
kind: "UpdateDepositLimit",
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
toEncodable() {
|
|
191
|
+
return {
|
|
192
|
+
UpdateDepositLimit: {},
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
exports.UpdateDepositLimit = UpdateDepositLimit;
|
|
197
|
+
UpdateDepositLimit.discriminator = 8;
|
|
198
|
+
UpdateDepositLimit.kind = "UpdateDepositLimit";
|
|
199
|
+
class UpdateBorrowLimit {
|
|
200
|
+
constructor() {
|
|
201
|
+
this.discriminator = 9;
|
|
202
|
+
this.kind = "UpdateBorrowLimit";
|
|
203
|
+
}
|
|
204
|
+
toJSON() {
|
|
205
|
+
return {
|
|
206
|
+
kind: "UpdateBorrowLimit",
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
toEncodable() {
|
|
210
|
+
return {
|
|
211
|
+
UpdateBorrowLimit: {},
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
exports.UpdateBorrowLimit = UpdateBorrowLimit;
|
|
216
|
+
UpdateBorrowLimit.discriminator = 9;
|
|
217
|
+
UpdateBorrowLimit.kind = "UpdateBorrowLimit";
|
|
218
|
+
class UpdateTokenInfoLowerHeuristic {
|
|
219
|
+
constructor() {
|
|
220
|
+
this.discriminator = 10;
|
|
221
|
+
this.kind = "UpdateTokenInfoLowerHeuristic";
|
|
222
|
+
}
|
|
223
|
+
toJSON() {
|
|
224
|
+
return {
|
|
225
|
+
kind: "UpdateTokenInfoLowerHeuristic",
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
toEncodable() {
|
|
229
|
+
return {
|
|
230
|
+
UpdateTokenInfoLowerHeuristic: {},
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
exports.UpdateTokenInfoLowerHeuristic = UpdateTokenInfoLowerHeuristic;
|
|
235
|
+
UpdateTokenInfoLowerHeuristic.discriminator = 10;
|
|
236
|
+
UpdateTokenInfoLowerHeuristic.kind = "UpdateTokenInfoLowerHeuristic";
|
|
237
|
+
class UpdateTokenInfoUpperHeuristic {
|
|
238
|
+
constructor() {
|
|
239
|
+
this.discriminator = 11;
|
|
240
|
+
this.kind = "UpdateTokenInfoUpperHeuristic";
|
|
241
|
+
}
|
|
242
|
+
toJSON() {
|
|
243
|
+
return {
|
|
244
|
+
kind: "UpdateTokenInfoUpperHeuristic",
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
toEncodable() {
|
|
248
|
+
return {
|
|
249
|
+
UpdateTokenInfoUpperHeuristic: {},
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
exports.UpdateTokenInfoUpperHeuristic = UpdateTokenInfoUpperHeuristic;
|
|
254
|
+
UpdateTokenInfoUpperHeuristic.discriminator = 11;
|
|
255
|
+
UpdateTokenInfoUpperHeuristic.kind = "UpdateTokenInfoUpperHeuristic";
|
|
256
|
+
class UpdateTokenInfoExpHeuristic {
|
|
257
|
+
constructor() {
|
|
258
|
+
this.discriminator = 12;
|
|
259
|
+
this.kind = "UpdateTokenInfoExpHeuristic";
|
|
260
|
+
}
|
|
261
|
+
toJSON() {
|
|
262
|
+
return {
|
|
263
|
+
kind: "UpdateTokenInfoExpHeuristic",
|
|
264
|
+
};
|
|
265
|
+
}
|
|
266
|
+
toEncodable() {
|
|
267
|
+
return {
|
|
268
|
+
UpdateTokenInfoExpHeuristic: {},
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
exports.UpdateTokenInfoExpHeuristic = UpdateTokenInfoExpHeuristic;
|
|
273
|
+
UpdateTokenInfoExpHeuristic.discriminator = 12;
|
|
274
|
+
UpdateTokenInfoExpHeuristic.kind = "UpdateTokenInfoExpHeuristic";
|
|
275
|
+
class UpdateTokenInfoTwapDivergence {
|
|
276
|
+
constructor() {
|
|
277
|
+
this.discriminator = 13;
|
|
278
|
+
this.kind = "UpdateTokenInfoTwapDivergence";
|
|
279
|
+
}
|
|
280
|
+
toJSON() {
|
|
281
|
+
return {
|
|
282
|
+
kind: "UpdateTokenInfoTwapDivergence",
|
|
283
|
+
};
|
|
284
|
+
}
|
|
285
|
+
toEncodable() {
|
|
286
|
+
return {
|
|
287
|
+
UpdateTokenInfoTwapDivergence: {},
|
|
288
|
+
};
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
exports.UpdateTokenInfoTwapDivergence = UpdateTokenInfoTwapDivergence;
|
|
292
|
+
UpdateTokenInfoTwapDivergence.discriminator = 13;
|
|
293
|
+
UpdateTokenInfoTwapDivergence.kind = "UpdateTokenInfoTwapDivergence";
|
|
294
|
+
class UpdateTokenInfoScopeTwap {
|
|
295
|
+
constructor() {
|
|
296
|
+
this.discriminator = 14;
|
|
297
|
+
this.kind = "UpdateTokenInfoScopeTwap";
|
|
298
|
+
}
|
|
299
|
+
toJSON() {
|
|
300
|
+
return {
|
|
301
|
+
kind: "UpdateTokenInfoScopeTwap",
|
|
302
|
+
};
|
|
303
|
+
}
|
|
304
|
+
toEncodable() {
|
|
305
|
+
return {
|
|
306
|
+
UpdateTokenInfoScopeTwap: {},
|
|
307
|
+
};
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
exports.UpdateTokenInfoScopeTwap = UpdateTokenInfoScopeTwap;
|
|
311
|
+
UpdateTokenInfoScopeTwap.discriminator = 14;
|
|
312
|
+
UpdateTokenInfoScopeTwap.kind = "UpdateTokenInfoScopeTwap";
|
|
313
|
+
class UpdateTokenInfoScopeChain {
|
|
314
|
+
constructor() {
|
|
315
|
+
this.discriminator = 15;
|
|
316
|
+
this.kind = "UpdateTokenInfoScopeChain";
|
|
317
|
+
}
|
|
318
|
+
toJSON() {
|
|
319
|
+
return {
|
|
320
|
+
kind: "UpdateTokenInfoScopeChain",
|
|
321
|
+
};
|
|
322
|
+
}
|
|
323
|
+
toEncodable() {
|
|
324
|
+
return {
|
|
325
|
+
UpdateTokenInfoScopeChain: {},
|
|
326
|
+
};
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
exports.UpdateTokenInfoScopeChain = UpdateTokenInfoScopeChain;
|
|
330
|
+
UpdateTokenInfoScopeChain.discriminator = 15;
|
|
331
|
+
UpdateTokenInfoScopeChain.kind = "UpdateTokenInfoScopeChain";
|
|
332
|
+
class UpdateTokenInfoName {
|
|
333
|
+
constructor() {
|
|
334
|
+
this.discriminator = 16;
|
|
335
|
+
this.kind = "UpdateTokenInfoName";
|
|
336
|
+
}
|
|
337
|
+
toJSON() {
|
|
338
|
+
return {
|
|
339
|
+
kind: "UpdateTokenInfoName",
|
|
340
|
+
};
|
|
341
|
+
}
|
|
342
|
+
toEncodable() {
|
|
343
|
+
return {
|
|
344
|
+
UpdateTokenInfoName: {},
|
|
345
|
+
};
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
exports.UpdateTokenInfoName = UpdateTokenInfoName;
|
|
349
|
+
UpdateTokenInfoName.discriminator = 16;
|
|
350
|
+
UpdateTokenInfoName.kind = "UpdateTokenInfoName";
|
|
351
|
+
class UpdateTokenInfoPriceMaxAge {
|
|
352
|
+
constructor() {
|
|
353
|
+
this.discriminator = 17;
|
|
354
|
+
this.kind = "UpdateTokenInfoPriceMaxAge";
|
|
355
|
+
}
|
|
356
|
+
toJSON() {
|
|
357
|
+
return {
|
|
358
|
+
kind: "UpdateTokenInfoPriceMaxAge",
|
|
359
|
+
};
|
|
360
|
+
}
|
|
361
|
+
toEncodable() {
|
|
362
|
+
return {
|
|
363
|
+
UpdateTokenInfoPriceMaxAge: {},
|
|
364
|
+
};
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
exports.UpdateTokenInfoPriceMaxAge = UpdateTokenInfoPriceMaxAge;
|
|
368
|
+
UpdateTokenInfoPriceMaxAge.discriminator = 17;
|
|
369
|
+
UpdateTokenInfoPriceMaxAge.kind = "UpdateTokenInfoPriceMaxAge";
|
|
370
|
+
class UpdateTokenInfoTwapMaxAge {
|
|
371
|
+
constructor() {
|
|
372
|
+
this.discriminator = 18;
|
|
373
|
+
this.kind = "UpdateTokenInfoTwapMaxAge";
|
|
374
|
+
}
|
|
375
|
+
toJSON() {
|
|
376
|
+
return {
|
|
377
|
+
kind: "UpdateTokenInfoTwapMaxAge",
|
|
378
|
+
};
|
|
379
|
+
}
|
|
380
|
+
toEncodable() {
|
|
381
|
+
return {
|
|
382
|
+
UpdateTokenInfoTwapMaxAge: {},
|
|
383
|
+
};
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
exports.UpdateTokenInfoTwapMaxAge = UpdateTokenInfoTwapMaxAge;
|
|
387
|
+
UpdateTokenInfoTwapMaxAge.discriminator = 18;
|
|
388
|
+
UpdateTokenInfoTwapMaxAge.kind = "UpdateTokenInfoTwapMaxAge";
|
|
389
|
+
class UpdateScopePriceFeed {
|
|
390
|
+
constructor() {
|
|
391
|
+
this.discriminator = 19;
|
|
392
|
+
this.kind = "UpdateScopePriceFeed";
|
|
393
|
+
}
|
|
394
|
+
toJSON() {
|
|
395
|
+
return {
|
|
396
|
+
kind: "UpdateScopePriceFeed",
|
|
397
|
+
};
|
|
398
|
+
}
|
|
399
|
+
toEncodable() {
|
|
400
|
+
return {
|
|
401
|
+
UpdateScopePriceFeed: {},
|
|
402
|
+
};
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
exports.UpdateScopePriceFeed = UpdateScopePriceFeed;
|
|
406
|
+
UpdateScopePriceFeed.discriminator = 19;
|
|
407
|
+
UpdateScopePriceFeed.kind = "UpdateScopePriceFeed";
|
|
408
|
+
class UpdatePythPrice {
|
|
409
|
+
constructor() {
|
|
410
|
+
this.discriminator = 20;
|
|
411
|
+
this.kind = "UpdatePythPrice";
|
|
412
|
+
}
|
|
413
|
+
toJSON() {
|
|
414
|
+
return {
|
|
415
|
+
kind: "UpdatePythPrice",
|
|
416
|
+
};
|
|
417
|
+
}
|
|
418
|
+
toEncodable() {
|
|
419
|
+
return {
|
|
420
|
+
UpdatePythPrice: {},
|
|
421
|
+
};
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
exports.UpdatePythPrice = UpdatePythPrice;
|
|
425
|
+
UpdatePythPrice.discriminator = 20;
|
|
426
|
+
UpdatePythPrice.kind = "UpdatePythPrice";
|
|
427
|
+
class UpdateSwitchboardFeed {
|
|
428
|
+
constructor() {
|
|
429
|
+
this.discriminator = 21;
|
|
430
|
+
this.kind = "UpdateSwitchboardFeed";
|
|
431
|
+
}
|
|
432
|
+
toJSON() {
|
|
433
|
+
return {
|
|
434
|
+
kind: "UpdateSwitchboardFeed",
|
|
435
|
+
};
|
|
436
|
+
}
|
|
437
|
+
toEncodable() {
|
|
438
|
+
return {
|
|
439
|
+
UpdateSwitchboardFeed: {},
|
|
440
|
+
};
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
exports.UpdateSwitchboardFeed = UpdateSwitchboardFeed;
|
|
444
|
+
UpdateSwitchboardFeed.discriminator = 21;
|
|
445
|
+
UpdateSwitchboardFeed.kind = "UpdateSwitchboardFeed";
|
|
446
|
+
class UpdateSwitchboardTwapFeed {
|
|
447
|
+
constructor() {
|
|
448
|
+
this.discriminator = 22;
|
|
449
|
+
this.kind = "UpdateSwitchboardTwapFeed";
|
|
450
|
+
}
|
|
451
|
+
toJSON() {
|
|
452
|
+
return {
|
|
453
|
+
kind: "UpdateSwitchboardTwapFeed",
|
|
454
|
+
};
|
|
455
|
+
}
|
|
456
|
+
toEncodable() {
|
|
457
|
+
return {
|
|
458
|
+
UpdateSwitchboardTwapFeed: {},
|
|
459
|
+
};
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
exports.UpdateSwitchboardTwapFeed = UpdateSwitchboardTwapFeed;
|
|
463
|
+
UpdateSwitchboardTwapFeed.discriminator = 22;
|
|
464
|
+
UpdateSwitchboardTwapFeed.kind = "UpdateSwitchboardTwapFeed";
|
|
465
|
+
class UpdateBorrowRateCurve {
|
|
466
|
+
constructor() {
|
|
467
|
+
this.discriminator = 23;
|
|
468
|
+
this.kind = "UpdateBorrowRateCurve";
|
|
469
|
+
}
|
|
470
|
+
toJSON() {
|
|
471
|
+
return {
|
|
472
|
+
kind: "UpdateBorrowRateCurve",
|
|
473
|
+
};
|
|
474
|
+
}
|
|
475
|
+
toEncodable() {
|
|
476
|
+
return {
|
|
477
|
+
UpdateBorrowRateCurve: {},
|
|
478
|
+
};
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
exports.UpdateBorrowRateCurve = UpdateBorrowRateCurve;
|
|
482
|
+
UpdateBorrowRateCurve.discriminator = 23;
|
|
483
|
+
UpdateBorrowRateCurve.kind = "UpdateBorrowRateCurve";
|
|
484
|
+
class UpdateEntireReserveConfig {
|
|
485
|
+
constructor() {
|
|
486
|
+
this.discriminator = 24;
|
|
487
|
+
this.kind = "UpdateEntireReserveConfig";
|
|
488
|
+
}
|
|
489
|
+
toJSON() {
|
|
490
|
+
return {
|
|
491
|
+
kind: "UpdateEntireReserveConfig",
|
|
492
|
+
};
|
|
493
|
+
}
|
|
494
|
+
toEncodable() {
|
|
495
|
+
return {
|
|
496
|
+
UpdateEntireReserveConfig: {},
|
|
497
|
+
};
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
exports.UpdateEntireReserveConfig = UpdateEntireReserveConfig;
|
|
501
|
+
UpdateEntireReserveConfig.discriminator = 24;
|
|
502
|
+
UpdateEntireReserveConfig.kind = "UpdateEntireReserveConfig";
|
|
503
|
+
class UpdateDebtWithdrawalCap {
|
|
504
|
+
constructor() {
|
|
505
|
+
this.discriminator = 25;
|
|
506
|
+
this.kind = "UpdateDebtWithdrawalCap";
|
|
507
|
+
}
|
|
508
|
+
toJSON() {
|
|
509
|
+
return {
|
|
510
|
+
kind: "UpdateDebtWithdrawalCap",
|
|
511
|
+
};
|
|
512
|
+
}
|
|
513
|
+
toEncodable() {
|
|
514
|
+
return {
|
|
515
|
+
UpdateDebtWithdrawalCap: {},
|
|
516
|
+
};
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
exports.UpdateDebtWithdrawalCap = UpdateDebtWithdrawalCap;
|
|
520
|
+
UpdateDebtWithdrawalCap.discriminator = 25;
|
|
521
|
+
UpdateDebtWithdrawalCap.kind = "UpdateDebtWithdrawalCap";
|
|
522
|
+
class UpdateDepositWithdrawalCap {
|
|
523
|
+
constructor() {
|
|
524
|
+
this.discriminator = 26;
|
|
525
|
+
this.kind = "UpdateDepositWithdrawalCap";
|
|
526
|
+
}
|
|
527
|
+
toJSON() {
|
|
528
|
+
return {
|
|
529
|
+
kind: "UpdateDepositWithdrawalCap",
|
|
530
|
+
};
|
|
531
|
+
}
|
|
532
|
+
toEncodable() {
|
|
533
|
+
return {
|
|
534
|
+
UpdateDepositWithdrawalCap: {},
|
|
535
|
+
};
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
exports.UpdateDepositWithdrawalCap = UpdateDepositWithdrawalCap;
|
|
539
|
+
UpdateDepositWithdrawalCap.discriminator = 26;
|
|
540
|
+
UpdateDepositWithdrawalCap.kind = "UpdateDepositWithdrawalCap";
|
|
541
|
+
class UpdateDebtWithdrawalCapCurrentTotal {
|
|
542
|
+
constructor() {
|
|
543
|
+
this.discriminator = 27;
|
|
544
|
+
this.kind = "UpdateDebtWithdrawalCapCurrentTotal";
|
|
545
|
+
}
|
|
546
|
+
toJSON() {
|
|
547
|
+
return {
|
|
548
|
+
kind: "UpdateDebtWithdrawalCapCurrentTotal",
|
|
549
|
+
};
|
|
550
|
+
}
|
|
551
|
+
toEncodable() {
|
|
552
|
+
return {
|
|
553
|
+
UpdateDebtWithdrawalCapCurrentTotal: {},
|
|
554
|
+
};
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
exports.UpdateDebtWithdrawalCapCurrentTotal = UpdateDebtWithdrawalCapCurrentTotal;
|
|
558
|
+
UpdateDebtWithdrawalCapCurrentTotal.discriminator = 27;
|
|
559
|
+
UpdateDebtWithdrawalCapCurrentTotal.kind = "UpdateDebtWithdrawalCapCurrentTotal";
|
|
560
|
+
class UpdateDepositWithdrawalCapCurrentTotal {
|
|
561
|
+
constructor() {
|
|
562
|
+
this.discriminator = 28;
|
|
563
|
+
this.kind = "UpdateDepositWithdrawalCapCurrentTotal";
|
|
564
|
+
}
|
|
565
|
+
toJSON() {
|
|
566
|
+
return {
|
|
567
|
+
kind: "UpdateDepositWithdrawalCapCurrentTotal",
|
|
568
|
+
};
|
|
569
|
+
}
|
|
570
|
+
toEncodable() {
|
|
571
|
+
return {
|
|
572
|
+
UpdateDepositWithdrawalCapCurrentTotal: {},
|
|
573
|
+
};
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
exports.UpdateDepositWithdrawalCapCurrentTotal = UpdateDepositWithdrawalCapCurrentTotal;
|
|
577
|
+
UpdateDepositWithdrawalCapCurrentTotal.discriminator = 28;
|
|
578
|
+
UpdateDepositWithdrawalCapCurrentTotal.kind = "UpdateDepositWithdrawalCapCurrentTotal";
|
|
579
|
+
class UpdateBadDebtLiquidationBonusBps {
|
|
580
|
+
constructor() {
|
|
581
|
+
this.discriminator = 29;
|
|
582
|
+
this.kind = "UpdateBadDebtLiquidationBonusBps";
|
|
583
|
+
}
|
|
584
|
+
toJSON() {
|
|
585
|
+
return {
|
|
586
|
+
kind: "UpdateBadDebtLiquidationBonusBps",
|
|
587
|
+
};
|
|
588
|
+
}
|
|
589
|
+
toEncodable() {
|
|
590
|
+
return {
|
|
591
|
+
UpdateBadDebtLiquidationBonusBps: {},
|
|
592
|
+
};
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
exports.UpdateBadDebtLiquidationBonusBps = UpdateBadDebtLiquidationBonusBps;
|
|
596
|
+
UpdateBadDebtLiquidationBonusBps.discriminator = 29;
|
|
597
|
+
UpdateBadDebtLiquidationBonusBps.kind = "UpdateBadDebtLiquidationBonusBps";
|
|
598
|
+
class UpdateMinLiquidationBonusBps {
|
|
599
|
+
constructor() {
|
|
600
|
+
this.discriminator = 30;
|
|
601
|
+
this.kind = "UpdateMinLiquidationBonusBps";
|
|
602
|
+
}
|
|
603
|
+
toJSON() {
|
|
604
|
+
return {
|
|
605
|
+
kind: "UpdateMinLiquidationBonusBps",
|
|
606
|
+
};
|
|
607
|
+
}
|
|
608
|
+
toEncodable() {
|
|
609
|
+
return {
|
|
610
|
+
UpdateMinLiquidationBonusBps: {},
|
|
611
|
+
};
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
exports.UpdateMinLiquidationBonusBps = UpdateMinLiquidationBonusBps;
|
|
615
|
+
UpdateMinLiquidationBonusBps.discriminator = 30;
|
|
616
|
+
UpdateMinLiquidationBonusBps.kind = "UpdateMinLiquidationBonusBps";
|
|
617
|
+
class DeleveragingMarginCallPeriod {
|
|
618
|
+
constructor() {
|
|
619
|
+
this.discriminator = 31;
|
|
620
|
+
this.kind = "DeleveragingMarginCallPeriod";
|
|
621
|
+
}
|
|
622
|
+
toJSON() {
|
|
623
|
+
return {
|
|
624
|
+
kind: "DeleveragingMarginCallPeriod",
|
|
625
|
+
};
|
|
626
|
+
}
|
|
627
|
+
toEncodable() {
|
|
628
|
+
return {
|
|
629
|
+
DeleveragingMarginCallPeriod: {},
|
|
630
|
+
};
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
exports.DeleveragingMarginCallPeriod = DeleveragingMarginCallPeriod;
|
|
634
|
+
DeleveragingMarginCallPeriod.discriminator = 31;
|
|
635
|
+
DeleveragingMarginCallPeriod.kind = "DeleveragingMarginCallPeriod";
|
|
636
|
+
class UpdateBorrowFactor {
|
|
637
|
+
constructor() {
|
|
638
|
+
this.discriminator = 32;
|
|
639
|
+
this.kind = "UpdateBorrowFactor";
|
|
640
|
+
}
|
|
641
|
+
toJSON() {
|
|
642
|
+
return {
|
|
643
|
+
kind: "UpdateBorrowFactor",
|
|
644
|
+
};
|
|
645
|
+
}
|
|
646
|
+
toEncodable() {
|
|
647
|
+
return {
|
|
648
|
+
UpdateBorrowFactor: {},
|
|
649
|
+
};
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
exports.UpdateBorrowFactor = UpdateBorrowFactor;
|
|
653
|
+
UpdateBorrowFactor.discriminator = 32;
|
|
654
|
+
UpdateBorrowFactor.kind = "UpdateBorrowFactor";
|
|
655
|
+
class UpdateAssetTier {
|
|
656
|
+
constructor() {
|
|
657
|
+
this.discriminator = 33;
|
|
658
|
+
this.kind = "UpdateAssetTier";
|
|
659
|
+
}
|
|
660
|
+
toJSON() {
|
|
661
|
+
return {
|
|
662
|
+
kind: "UpdateAssetTier",
|
|
663
|
+
};
|
|
664
|
+
}
|
|
665
|
+
toEncodable() {
|
|
666
|
+
return {
|
|
667
|
+
UpdateAssetTier: {},
|
|
668
|
+
};
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
exports.UpdateAssetTier = UpdateAssetTier;
|
|
672
|
+
UpdateAssetTier.discriminator = 33;
|
|
673
|
+
UpdateAssetTier.kind = "UpdateAssetTier";
|
|
674
|
+
class UpdateElevationGroup {
|
|
675
|
+
constructor() {
|
|
676
|
+
this.discriminator = 34;
|
|
677
|
+
this.kind = "UpdateElevationGroup";
|
|
678
|
+
}
|
|
679
|
+
toJSON() {
|
|
680
|
+
return {
|
|
681
|
+
kind: "UpdateElevationGroup",
|
|
682
|
+
};
|
|
683
|
+
}
|
|
684
|
+
toEncodable() {
|
|
685
|
+
return {
|
|
686
|
+
UpdateElevationGroup: {},
|
|
687
|
+
};
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
exports.UpdateElevationGroup = UpdateElevationGroup;
|
|
691
|
+
UpdateElevationGroup.discriminator = 34;
|
|
692
|
+
UpdateElevationGroup.kind = "UpdateElevationGroup";
|
|
693
|
+
class DeleveragingThresholdSlotsPerBps {
|
|
694
|
+
constructor() {
|
|
695
|
+
this.discriminator = 35;
|
|
696
|
+
this.kind = "DeleveragingThresholdSlotsPerBps";
|
|
697
|
+
}
|
|
698
|
+
toJSON() {
|
|
699
|
+
return {
|
|
700
|
+
kind: "DeleveragingThresholdSlotsPerBps",
|
|
701
|
+
};
|
|
702
|
+
}
|
|
703
|
+
toEncodable() {
|
|
704
|
+
return {
|
|
705
|
+
DeleveragingThresholdSlotsPerBps: {},
|
|
706
|
+
};
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
exports.DeleveragingThresholdSlotsPerBps = DeleveragingThresholdSlotsPerBps;
|
|
710
|
+
DeleveragingThresholdSlotsPerBps.discriminator = 35;
|
|
711
|
+
DeleveragingThresholdSlotsPerBps.kind = "DeleveragingThresholdSlotsPerBps";
|
|
712
|
+
class UpdateMultiplierSideBoost {
|
|
713
|
+
constructor() {
|
|
714
|
+
this.discriminator = 36;
|
|
715
|
+
this.kind = "UpdateMultiplierSideBoost";
|
|
716
|
+
}
|
|
717
|
+
toJSON() {
|
|
718
|
+
return {
|
|
719
|
+
kind: "UpdateMultiplierSideBoost",
|
|
720
|
+
};
|
|
721
|
+
}
|
|
722
|
+
toEncodable() {
|
|
723
|
+
return {
|
|
724
|
+
UpdateMultiplierSideBoost: {},
|
|
725
|
+
};
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
exports.UpdateMultiplierSideBoost = UpdateMultiplierSideBoost;
|
|
729
|
+
UpdateMultiplierSideBoost.discriminator = 36;
|
|
730
|
+
UpdateMultiplierSideBoost.kind = "UpdateMultiplierSideBoost";
|
|
731
|
+
class UpdateMultiplierTagBoost {
|
|
732
|
+
constructor() {
|
|
733
|
+
this.discriminator = 37;
|
|
734
|
+
this.kind = "UpdateMultiplierTagBoost";
|
|
735
|
+
}
|
|
736
|
+
toJSON() {
|
|
737
|
+
return {
|
|
738
|
+
kind: "UpdateMultiplierTagBoost",
|
|
739
|
+
};
|
|
740
|
+
}
|
|
741
|
+
toEncodable() {
|
|
742
|
+
return {
|
|
743
|
+
UpdateMultiplierTagBoost: {},
|
|
744
|
+
};
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
exports.UpdateMultiplierTagBoost = UpdateMultiplierTagBoost;
|
|
748
|
+
UpdateMultiplierTagBoost.discriminator = 37;
|
|
749
|
+
UpdateMultiplierTagBoost.kind = "UpdateMultiplierTagBoost";
|
|
750
|
+
class UpdateReserveStatus {
|
|
751
|
+
constructor() {
|
|
752
|
+
this.discriminator = 38;
|
|
753
|
+
this.kind = "UpdateReserveStatus";
|
|
754
|
+
}
|
|
755
|
+
toJSON() {
|
|
756
|
+
return {
|
|
757
|
+
kind: "UpdateReserveStatus",
|
|
758
|
+
};
|
|
759
|
+
}
|
|
760
|
+
toEncodable() {
|
|
761
|
+
return {
|
|
762
|
+
UpdateReserveStatus: {},
|
|
763
|
+
};
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
exports.UpdateReserveStatus = UpdateReserveStatus;
|
|
767
|
+
UpdateReserveStatus.discriminator = 38;
|
|
768
|
+
UpdateReserveStatus.kind = "UpdateReserveStatus";
|
|
769
|
+
class UpdateFarmCollateral {
|
|
770
|
+
constructor() {
|
|
771
|
+
this.discriminator = 39;
|
|
772
|
+
this.kind = "UpdateFarmCollateral";
|
|
773
|
+
}
|
|
774
|
+
toJSON() {
|
|
775
|
+
return {
|
|
776
|
+
kind: "UpdateFarmCollateral",
|
|
777
|
+
};
|
|
778
|
+
}
|
|
779
|
+
toEncodable() {
|
|
780
|
+
return {
|
|
781
|
+
UpdateFarmCollateral: {},
|
|
782
|
+
};
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
exports.UpdateFarmCollateral = UpdateFarmCollateral;
|
|
786
|
+
UpdateFarmCollateral.discriminator = 39;
|
|
787
|
+
UpdateFarmCollateral.kind = "UpdateFarmCollateral";
|
|
788
|
+
class UpdateFarmDebt {
|
|
789
|
+
constructor() {
|
|
790
|
+
this.discriminator = 40;
|
|
791
|
+
this.kind = "UpdateFarmDebt";
|
|
792
|
+
}
|
|
793
|
+
toJSON() {
|
|
794
|
+
return {
|
|
795
|
+
kind: "UpdateFarmDebt",
|
|
796
|
+
};
|
|
797
|
+
}
|
|
798
|
+
toEncodable() {
|
|
799
|
+
return {
|
|
800
|
+
UpdateFarmDebt: {},
|
|
801
|
+
};
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
exports.UpdateFarmDebt = UpdateFarmDebt;
|
|
805
|
+
UpdateFarmDebt.discriminator = 40;
|
|
806
|
+
UpdateFarmDebt.kind = "UpdateFarmDebt";
|
|
807
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
808
|
+
function fromDecoded(obj) {
|
|
809
|
+
if (typeof obj !== "object") {
|
|
810
|
+
throw new Error("Invalid enum object");
|
|
811
|
+
}
|
|
812
|
+
if ("UpdateLoanToValuePct" in obj) {
|
|
813
|
+
return new UpdateLoanToValuePct();
|
|
814
|
+
}
|
|
815
|
+
if ("UpdateMaxLiquidationBonusBps" in obj) {
|
|
816
|
+
return new UpdateMaxLiquidationBonusBps();
|
|
817
|
+
}
|
|
818
|
+
if ("UpdateLiquidationThresholdPct" in obj) {
|
|
819
|
+
return new UpdateLiquidationThresholdPct();
|
|
820
|
+
}
|
|
821
|
+
if ("UpdateProtocolLiquidationFee" in obj) {
|
|
822
|
+
return new UpdateProtocolLiquidationFee();
|
|
823
|
+
}
|
|
824
|
+
if ("UpdateProtocolTakeRate" in obj) {
|
|
825
|
+
return new UpdateProtocolTakeRate();
|
|
826
|
+
}
|
|
827
|
+
if ("UpdateFeesBorrowFee" in obj) {
|
|
828
|
+
return new UpdateFeesBorrowFee();
|
|
829
|
+
}
|
|
830
|
+
if ("UpdateFeesFlashLoanFee" in obj) {
|
|
831
|
+
return new UpdateFeesFlashLoanFee();
|
|
832
|
+
}
|
|
833
|
+
if ("UpdateFeesReferralFeeBps" in obj) {
|
|
834
|
+
return new UpdateFeesReferralFeeBps();
|
|
835
|
+
}
|
|
836
|
+
if ("UpdateDepositLimit" in obj) {
|
|
837
|
+
return new UpdateDepositLimit();
|
|
838
|
+
}
|
|
839
|
+
if ("UpdateBorrowLimit" in obj) {
|
|
840
|
+
return new UpdateBorrowLimit();
|
|
841
|
+
}
|
|
842
|
+
if ("UpdateTokenInfoLowerHeuristic" in obj) {
|
|
843
|
+
return new UpdateTokenInfoLowerHeuristic();
|
|
844
|
+
}
|
|
845
|
+
if ("UpdateTokenInfoUpperHeuristic" in obj) {
|
|
846
|
+
return new UpdateTokenInfoUpperHeuristic();
|
|
847
|
+
}
|
|
848
|
+
if ("UpdateTokenInfoExpHeuristic" in obj) {
|
|
849
|
+
return new UpdateTokenInfoExpHeuristic();
|
|
850
|
+
}
|
|
851
|
+
if ("UpdateTokenInfoTwapDivergence" in obj) {
|
|
852
|
+
return new UpdateTokenInfoTwapDivergence();
|
|
853
|
+
}
|
|
854
|
+
if ("UpdateTokenInfoScopeTwap" in obj) {
|
|
855
|
+
return new UpdateTokenInfoScopeTwap();
|
|
856
|
+
}
|
|
857
|
+
if ("UpdateTokenInfoScopeChain" in obj) {
|
|
858
|
+
return new UpdateTokenInfoScopeChain();
|
|
859
|
+
}
|
|
860
|
+
if ("UpdateTokenInfoName" in obj) {
|
|
861
|
+
return new UpdateTokenInfoName();
|
|
862
|
+
}
|
|
863
|
+
if ("UpdateTokenInfoPriceMaxAge" in obj) {
|
|
864
|
+
return new UpdateTokenInfoPriceMaxAge();
|
|
865
|
+
}
|
|
866
|
+
if ("UpdateTokenInfoTwapMaxAge" in obj) {
|
|
867
|
+
return new UpdateTokenInfoTwapMaxAge();
|
|
868
|
+
}
|
|
869
|
+
if ("UpdateScopePriceFeed" in obj) {
|
|
870
|
+
return new UpdateScopePriceFeed();
|
|
871
|
+
}
|
|
872
|
+
if ("UpdatePythPrice" in obj) {
|
|
873
|
+
return new UpdatePythPrice();
|
|
874
|
+
}
|
|
875
|
+
if ("UpdateSwitchboardFeed" in obj) {
|
|
876
|
+
return new UpdateSwitchboardFeed();
|
|
877
|
+
}
|
|
878
|
+
if ("UpdateSwitchboardTwapFeed" in obj) {
|
|
879
|
+
return new UpdateSwitchboardTwapFeed();
|
|
880
|
+
}
|
|
881
|
+
if ("UpdateBorrowRateCurve" in obj) {
|
|
882
|
+
return new UpdateBorrowRateCurve();
|
|
883
|
+
}
|
|
884
|
+
if ("UpdateEntireReserveConfig" in obj) {
|
|
885
|
+
return new UpdateEntireReserveConfig();
|
|
886
|
+
}
|
|
887
|
+
if ("UpdateDebtWithdrawalCap" in obj) {
|
|
888
|
+
return new UpdateDebtWithdrawalCap();
|
|
889
|
+
}
|
|
890
|
+
if ("UpdateDepositWithdrawalCap" in obj) {
|
|
891
|
+
return new UpdateDepositWithdrawalCap();
|
|
892
|
+
}
|
|
893
|
+
if ("UpdateDebtWithdrawalCapCurrentTotal" in obj) {
|
|
894
|
+
return new UpdateDebtWithdrawalCapCurrentTotal();
|
|
895
|
+
}
|
|
896
|
+
if ("UpdateDepositWithdrawalCapCurrentTotal" in obj) {
|
|
897
|
+
return new UpdateDepositWithdrawalCapCurrentTotal();
|
|
898
|
+
}
|
|
899
|
+
if ("UpdateBadDebtLiquidationBonusBps" in obj) {
|
|
900
|
+
return new UpdateBadDebtLiquidationBonusBps();
|
|
901
|
+
}
|
|
902
|
+
if ("UpdateMinLiquidationBonusBps" in obj) {
|
|
903
|
+
return new UpdateMinLiquidationBonusBps();
|
|
904
|
+
}
|
|
905
|
+
if ("DeleveragingMarginCallPeriod" in obj) {
|
|
906
|
+
return new DeleveragingMarginCallPeriod();
|
|
907
|
+
}
|
|
908
|
+
if ("UpdateBorrowFactor" in obj) {
|
|
909
|
+
return new UpdateBorrowFactor();
|
|
910
|
+
}
|
|
911
|
+
if ("UpdateAssetTier" in obj) {
|
|
912
|
+
return new UpdateAssetTier();
|
|
913
|
+
}
|
|
914
|
+
if ("UpdateElevationGroup" in obj) {
|
|
915
|
+
return new UpdateElevationGroup();
|
|
916
|
+
}
|
|
917
|
+
if ("DeleveragingThresholdSlotsPerBps" in obj) {
|
|
918
|
+
return new DeleveragingThresholdSlotsPerBps();
|
|
919
|
+
}
|
|
920
|
+
if ("UpdateMultiplierSideBoost" in obj) {
|
|
921
|
+
return new UpdateMultiplierSideBoost();
|
|
922
|
+
}
|
|
923
|
+
if ("UpdateMultiplierTagBoost" in obj) {
|
|
924
|
+
return new UpdateMultiplierTagBoost();
|
|
925
|
+
}
|
|
926
|
+
if ("UpdateReserveStatus" in obj) {
|
|
927
|
+
return new UpdateReserveStatus();
|
|
928
|
+
}
|
|
929
|
+
if ("UpdateFarmCollateral" in obj) {
|
|
930
|
+
return new UpdateFarmCollateral();
|
|
931
|
+
}
|
|
932
|
+
if ("UpdateFarmDebt" in obj) {
|
|
933
|
+
return new UpdateFarmDebt();
|
|
934
|
+
}
|
|
935
|
+
throw new Error("Invalid enum object");
|
|
936
|
+
}
|
|
937
|
+
exports.fromDecoded = fromDecoded;
|
|
938
|
+
function fromJSON(obj) {
|
|
939
|
+
switch (obj.kind) {
|
|
940
|
+
case "UpdateLoanToValuePct": {
|
|
941
|
+
return new UpdateLoanToValuePct();
|
|
942
|
+
}
|
|
943
|
+
case "UpdateMaxLiquidationBonusBps": {
|
|
944
|
+
return new UpdateMaxLiquidationBonusBps();
|
|
945
|
+
}
|
|
946
|
+
case "UpdateLiquidationThresholdPct": {
|
|
947
|
+
return new UpdateLiquidationThresholdPct();
|
|
948
|
+
}
|
|
949
|
+
case "UpdateProtocolLiquidationFee": {
|
|
950
|
+
return new UpdateProtocolLiquidationFee();
|
|
951
|
+
}
|
|
952
|
+
case "UpdateProtocolTakeRate": {
|
|
953
|
+
return new UpdateProtocolTakeRate();
|
|
954
|
+
}
|
|
955
|
+
case "UpdateFeesBorrowFee": {
|
|
956
|
+
return new UpdateFeesBorrowFee();
|
|
957
|
+
}
|
|
958
|
+
case "UpdateFeesFlashLoanFee": {
|
|
959
|
+
return new UpdateFeesFlashLoanFee();
|
|
960
|
+
}
|
|
961
|
+
case "UpdateFeesReferralFeeBps": {
|
|
962
|
+
return new UpdateFeesReferralFeeBps();
|
|
963
|
+
}
|
|
964
|
+
case "UpdateDepositLimit": {
|
|
965
|
+
return new UpdateDepositLimit();
|
|
966
|
+
}
|
|
967
|
+
case "UpdateBorrowLimit": {
|
|
968
|
+
return new UpdateBorrowLimit();
|
|
969
|
+
}
|
|
970
|
+
case "UpdateTokenInfoLowerHeuristic": {
|
|
971
|
+
return new UpdateTokenInfoLowerHeuristic();
|
|
972
|
+
}
|
|
973
|
+
case "UpdateTokenInfoUpperHeuristic": {
|
|
974
|
+
return new UpdateTokenInfoUpperHeuristic();
|
|
975
|
+
}
|
|
976
|
+
case "UpdateTokenInfoExpHeuristic": {
|
|
977
|
+
return new UpdateTokenInfoExpHeuristic();
|
|
978
|
+
}
|
|
979
|
+
case "UpdateTokenInfoTwapDivergence": {
|
|
980
|
+
return new UpdateTokenInfoTwapDivergence();
|
|
981
|
+
}
|
|
982
|
+
case "UpdateTokenInfoScopeTwap": {
|
|
983
|
+
return new UpdateTokenInfoScopeTwap();
|
|
984
|
+
}
|
|
985
|
+
case "UpdateTokenInfoScopeChain": {
|
|
986
|
+
return new UpdateTokenInfoScopeChain();
|
|
987
|
+
}
|
|
988
|
+
case "UpdateTokenInfoName": {
|
|
989
|
+
return new UpdateTokenInfoName();
|
|
990
|
+
}
|
|
991
|
+
case "UpdateTokenInfoPriceMaxAge": {
|
|
992
|
+
return new UpdateTokenInfoPriceMaxAge();
|
|
993
|
+
}
|
|
994
|
+
case "UpdateTokenInfoTwapMaxAge": {
|
|
995
|
+
return new UpdateTokenInfoTwapMaxAge();
|
|
996
|
+
}
|
|
997
|
+
case "UpdateScopePriceFeed": {
|
|
998
|
+
return new UpdateScopePriceFeed();
|
|
999
|
+
}
|
|
1000
|
+
case "UpdatePythPrice": {
|
|
1001
|
+
return new UpdatePythPrice();
|
|
1002
|
+
}
|
|
1003
|
+
case "UpdateSwitchboardFeed": {
|
|
1004
|
+
return new UpdateSwitchboardFeed();
|
|
1005
|
+
}
|
|
1006
|
+
case "UpdateSwitchboardTwapFeed": {
|
|
1007
|
+
return new UpdateSwitchboardTwapFeed();
|
|
1008
|
+
}
|
|
1009
|
+
case "UpdateBorrowRateCurve": {
|
|
1010
|
+
return new UpdateBorrowRateCurve();
|
|
1011
|
+
}
|
|
1012
|
+
case "UpdateEntireReserveConfig": {
|
|
1013
|
+
return new UpdateEntireReserveConfig();
|
|
1014
|
+
}
|
|
1015
|
+
case "UpdateDebtWithdrawalCap": {
|
|
1016
|
+
return new UpdateDebtWithdrawalCap();
|
|
1017
|
+
}
|
|
1018
|
+
case "UpdateDepositWithdrawalCap": {
|
|
1019
|
+
return new UpdateDepositWithdrawalCap();
|
|
1020
|
+
}
|
|
1021
|
+
case "UpdateDebtWithdrawalCapCurrentTotal": {
|
|
1022
|
+
return new UpdateDebtWithdrawalCapCurrentTotal();
|
|
1023
|
+
}
|
|
1024
|
+
case "UpdateDepositWithdrawalCapCurrentTotal": {
|
|
1025
|
+
return new UpdateDepositWithdrawalCapCurrentTotal();
|
|
1026
|
+
}
|
|
1027
|
+
case "UpdateBadDebtLiquidationBonusBps": {
|
|
1028
|
+
return new UpdateBadDebtLiquidationBonusBps();
|
|
1029
|
+
}
|
|
1030
|
+
case "UpdateMinLiquidationBonusBps": {
|
|
1031
|
+
return new UpdateMinLiquidationBonusBps();
|
|
1032
|
+
}
|
|
1033
|
+
case "DeleveragingMarginCallPeriod": {
|
|
1034
|
+
return new DeleveragingMarginCallPeriod();
|
|
1035
|
+
}
|
|
1036
|
+
case "UpdateBorrowFactor": {
|
|
1037
|
+
return new UpdateBorrowFactor();
|
|
1038
|
+
}
|
|
1039
|
+
case "UpdateAssetTier": {
|
|
1040
|
+
return new UpdateAssetTier();
|
|
1041
|
+
}
|
|
1042
|
+
case "UpdateElevationGroup": {
|
|
1043
|
+
return new UpdateElevationGroup();
|
|
1044
|
+
}
|
|
1045
|
+
case "DeleveragingThresholdSlotsPerBps": {
|
|
1046
|
+
return new DeleveragingThresholdSlotsPerBps();
|
|
1047
|
+
}
|
|
1048
|
+
case "UpdateMultiplierSideBoost": {
|
|
1049
|
+
return new UpdateMultiplierSideBoost();
|
|
1050
|
+
}
|
|
1051
|
+
case "UpdateMultiplierTagBoost": {
|
|
1052
|
+
return new UpdateMultiplierTagBoost();
|
|
1053
|
+
}
|
|
1054
|
+
case "UpdateReserveStatus": {
|
|
1055
|
+
return new UpdateReserveStatus();
|
|
1056
|
+
}
|
|
1057
|
+
case "UpdateFarmCollateral": {
|
|
1058
|
+
return new UpdateFarmCollateral();
|
|
1059
|
+
}
|
|
1060
|
+
case "UpdateFarmDebt": {
|
|
1061
|
+
return new UpdateFarmDebt();
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
1065
|
+
exports.fromJSON = fromJSON;
|
|
1066
|
+
function layout(property) {
|
|
1067
|
+
const ret = borsh.rustEnum([
|
|
1068
|
+
borsh.struct([], "UpdateLoanToValuePct"),
|
|
1069
|
+
borsh.struct([], "UpdateMaxLiquidationBonusBps"),
|
|
1070
|
+
borsh.struct([], "UpdateLiquidationThresholdPct"),
|
|
1071
|
+
borsh.struct([], "UpdateProtocolLiquidationFee"),
|
|
1072
|
+
borsh.struct([], "UpdateProtocolTakeRate"),
|
|
1073
|
+
borsh.struct([], "UpdateFeesBorrowFee"),
|
|
1074
|
+
borsh.struct([], "UpdateFeesFlashLoanFee"),
|
|
1075
|
+
borsh.struct([], "UpdateFeesReferralFeeBps"),
|
|
1076
|
+
borsh.struct([], "UpdateDepositLimit"),
|
|
1077
|
+
borsh.struct([], "UpdateBorrowLimit"),
|
|
1078
|
+
borsh.struct([], "UpdateTokenInfoLowerHeuristic"),
|
|
1079
|
+
borsh.struct([], "UpdateTokenInfoUpperHeuristic"),
|
|
1080
|
+
borsh.struct([], "UpdateTokenInfoExpHeuristic"),
|
|
1081
|
+
borsh.struct([], "UpdateTokenInfoTwapDivergence"),
|
|
1082
|
+
borsh.struct([], "UpdateTokenInfoScopeTwap"),
|
|
1083
|
+
borsh.struct([], "UpdateTokenInfoScopeChain"),
|
|
1084
|
+
borsh.struct([], "UpdateTokenInfoName"),
|
|
1085
|
+
borsh.struct([], "UpdateTokenInfoPriceMaxAge"),
|
|
1086
|
+
borsh.struct([], "UpdateTokenInfoTwapMaxAge"),
|
|
1087
|
+
borsh.struct([], "UpdateScopePriceFeed"),
|
|
1088
|
+
borsh.struct([], "UpdatePythPrice"),
|
|
1089
|
+
borsh.struct([], "UpdateSwitchboardFeed"),
|
|
1090
|
+
borsh.struct([], "UpdateSwitchboardTwapFeed"),
|
|
1091
|
+
borsh.struct([], "UpdateBorrowRateCurve"),
|
|
1092
|
+
borsh.struct([], "UpdateEntireReserveConfig"),
|
|
1093
|
+
borsh.struct([], "UpdateDebtWithdrawalCap"),
|
|
1094
|
+
borsh.struct([], "UpdateDepositWithdrawalCap"),
|
|
1095
|
+
borsh.struct([], "UpdateDebtWithdrawalCapCurrentTotal"),
|
|
1096
|
+
borsh.struct([], "UpdateDepositWithdrawalCapCurrentTotal"),
|
|
1097
|
+
borsh.struct([], "UpdateBadDebtLiquidationBonusBps"),
|
|
1098
|
+
borsh.struct([], "UpdateMinLiquidationBonusBps"),
|
|
1099
|
+
borsh.struct([], "DeleveragingMarginCallPeriod"),
|
|
1100
|
+
borsh.struct([], "UpdateBorrowFactor"),
|
|
1101
|
+
borsh.struct([], "UpdateAssetTier"),
|
|
1102
|
+
borsh.struct([], "UpdateElevationGroup"),
|
|
1103
|
+
borsh.struct([], "DeleveragingThresholdSlotsPerBps"),
|
|
1104
|
+
borsh.struct([], "UpdateMultiplierSideBoost"),
|
|
1105
|
+
borsh.struct([], "UpdateMultiplierTagBoost"),
|
|
1106
|
+
borsh.struct([], "UpdateReserveStatus"),
|
|
1107
|
+
borsh.struct([], "UpdateFarmCollateral"),
|
|
1108
|
+
borsh.struct([], "UpdateFarmDebt"),
|
|
1109
|
+
]);
|
|
1110
|
+
if (property !== undefined) {
|
|
1111
|
+
return ret.replicate(property);
|
|
1112
|
+
}
|
|
1113
|
+
return ret;
|
|
1114
|
+
}
|
|
1115
|
+
exports.layout = layout;
|
|
1116
|
+
//# sourceMappingURL=UpdateConfigMode.js.map
|