@exponent-labs/klend-idl 0.9.25 → 0.9.26
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/build/accounts/GlobalConfig.d.ts +27 -0
- package/build/accounts/GlobalConfig.js +112 -0
- package/build/accounts/GlobalConfig.js.map +1 -0
- package/build/accounts/LendingMarket.d.ts +94 -12
- package/build/accounts/LendingMarket.js +219 -27
- package/build/accounts/LendingMarket.js.map +1 -1
- package/build/accounts/Obligation.d.ts +34 -12
- package/build/accounts/Obligation.js +86 -27
- package/build/accounts/Obligation.js.map +1 -1
- package/build/accounts/ReferrerState.d.ts +1 -3
- package/build/accounts/ReferrerState.js +24 -9
- package/build/accounts/ReferrerState.js.map +1 -1
- package/build/accounts/ReferrerTokenState.d.ts +1 -3
- package/build/accounts/ReferrerTokenState.js +20 -8
- package/build/accounts/ReferrerTokenState.js.map +1 -1
- package/build/accounts/Reserve.d.ts +4 -3
- package/build/accounts/Reserve.js +25 -9
- package/build/accounts/Reserve.js.map +1 -1
- package/build/accounts/ShortUrl.d.ts +1 -3
- package/build/accounts/ShortUrl.js +24 -9
- package/build/accounts/ShortUrl.js.map +1 -1
- package/build/accounts/UserMetadata.d.ts +1 -3
- package/build/accounts/UserMetadata.js +20 -8
- package/build/accounts/UserMetadata.js.map +1 -1
- package/build/accounts/UserState.d.ts +1 -3
- package/build/accounts/UserState.js +20 -8
- package/build/accounts/UserState.js.map +1 -1
- package/build/accounts/WithdrawTicket.d.ts +49 -0
- package/build/accounts/WithdrawTicket.js +158 -0
- package/build/accounts/WithdrawTicket.js.map +1 -0
- package/build/accounts/index.d.ts +4 -0
- package/build/accounts/index.js +5 -1
- package/build/accounts/index.js.map +1 -1
- package/build/errors/anchor.js +2 -2
- package/build/errors/anchor.js.map +1 -1
- package/build/errors/custom.d.ts +605 -13
- package/build/errors/custom.js +1064 -27
- package/build/errors/custom.js.map +1 -1
- package/build/errors/index.js +19 -10
- package/build/errors/index.js.map +1 -1
- package/build/index.d.ts +2 -3
- package/build/index.js +20 -14
- package/build/index.js.map +1 -1
- package/build/instructions/abortObligationOwnershipTransfer.d.ts +7 -0
- package/build/instructions/abortObligationOwnershipTransfer.js +21 -0
- package/build/instructions/abortObligationOwnershipTransfer.js.map +1 -0
- package/build/instructions/acceptObligationOwnership.d.ts +7 -0
- package/build/instructions/acceptObligationOwnership.js +21 -0
- package/build/instructions/acceptObligationOwnership.js.map +1 -0
- package/build/instructions/approveObligationOwnershipTransfer.d.ts +9 -0
- package/build/instructions/approveObligationOwnershipTransfer.js +23 -0
- package/build/instructions/approveObligationOwnershipTransfer.js.map +1 -0
- package/build/instructions/borrowObligationLiquidity.d.ts +1 -1
- package/build/instructions/borrowObligationLiquidity.js +28 -11
- package/build/instructions/borrowObligationLiquidity.js.map +1 -1
- package/build/instructions/borrowObligationLiquidityV2.js +45 -15
- package/build/instructions/borrowObligationLiquidityV2.js.map +1 -1
- package/build/instructions/calculateCtokenExchangeRate.d.ts +5 -0
- package/build/instructions/calculateCtokenExchangeRate.js +15 -0
- package/build/instructions/calculateCtokenExchangeRate.js.map +1 -0
- package/build/instructions/cancelWithdrawTicket.d.ts +19 -0
- package/build/instructions/cancelWithdrawTicket.js +87 -0
- package/build/instructions/cancelWithdrawTicket.js.map +1 -0
- package/build/instructions/cloneReserveConfig.d.ts +14 -0
- package/build/instructions/cloneReserveConfig.js +70 -0
- package/build/instructions/cloneReserveConfig.js.map +1 -0
- package/build/instructions/deleteReferrerStateAndShortUrl.js +1 -2
- package/build/instructions/deleteReferrerStateAndShortUrl.js.map +1 -1
- package/build/instructions/depositAndWithdraw.d.ts +51 -0
- package/build/instructions/depositAndWithdraw.js +202 -0
- package/build/instructions/depositAndWithdraw.js.map +1 -0
- package/build/instructions/depositObligationCollateral.js +19 -9
- package/build/instructions/depositObligationCollateral.js.map +1 -1
- package/build/instructions/depositObligationCollateralV2.d.ts +25 -0
- package/build/instructions/depositObligationCollateralV2.js +109 -0
- package/build/instructions/depositObligationCollateralV2.js.map +1 -0
- package/build/instructions/depositReserveLiquidity.js +20 -10
- package/build/instructions/depositReserveLiquidity.js.map +1 -1
- package/build/instructions/depositReserveLiquidityAndObligationCollateral.d.ts +1 -1
- package/build/instructions/depositReserveLiquidityAndObligationCollateral.js +28 -15
- package/build/instructions/depositReserveLiquidityAndObligationCollateral.js.map +1 -1
- package/build/instructions/depositReserveLiquidityAndObligationCollateralV2.js +45 -15
- package/build/instructions/depositReserveLiquidityAndObligationCollateralV2.js.map +1 -1
- package/build/instructions/enqueueToWithdraw.d.ts +26 -0
- package/build/instructions/enqueueToWithdraw.js +113 -0
- package/build/instructions/enqueueToWithdraw.js.map +1 -0
- package/build/instructions/fillBorrowOrder.d.ts +25 -0
- package/build/instructions/fillBorrowOrder.js +82 -0
- package/build/instructions/fillBorrowOrder.js.map +1 -0
- package/build/instructions/fillBorrowOrderV2.d.ts +29 -0
- package/build/instructions/fillBorrowOrderV2.js +122 -0
- package/build/instructions/fillBorrowOrderV2.js.map +1 -0
- package/build/instructions/flashBorrowReserveLiquidity.d.ts +2 -2
- package/build/instructions/flashBorrowReserveLiquidity.js +28 -11
- package/build/instructions/flashBorrowReserveLiquidity.js.map +1 -1
- package/build/instructions/flashRepayReserveLiquidity.d.ts +2 -2
- package/build/instructions/flashRepayReserveLiquidity.js +32 -12
- package/build/instructions/flashRepayReserveLiquidity.js.map +1 -1
- package/build/instructions/idlMissingTypes.d.ts +3 -2
- package/build/instructions/idlMissingTypes.js +26 -12
- package/build/instructions/idlMissingTypes.js.map +1 -1
- package/build/instructions/index.d.ts +61 -3
- package/build/instructions/index.js +62 -3
- package/build/instructions/index.js.map +1 -1
- package/build/instructions/initFarmsForReserve.d.ts +1 -0
- package/build/instructions/initFarmsForReserve.js +25 -10
- package/build/instructions/initFarmsForReserve.js.map +1 -1
- package/build/instructions/initGlobalConfig.d.ts +10 -0
- package/build/instructions/initGlobalConfig.js +24 -0
- package/build/instructions/initGlobalConfig.js.map +1 -0
- package/build/instructions/initLendingMarket.d.ts +1 -0
- package/build/instructions/initLendingMarket.js +27 -10
- package/build/instructions/initLendingMarket.js.map +1 -1
- package/build/instructions/initObligation.js +19 -9
- package/build/instructions/initObligation.js.map +1 -1
- package/build/instructions/initObligationFarmsForReserve.js +20 -10
- package/build/instructions/initObligationFarmsForReserve.js.map +1 -1
- package/build/instructions/initReferrerStateAndShortUrl.js +19 -9
- package/build/instructions/initReferrerStateAndShortUrl.js.map +1 -1
- package/build/instructions/initReferrerTokenState.d.ts +2 -5
- package/build/instructions/initReferrerTokenState.js +4 -33
- package/build/instructions/initReferrerTokenState.js.map +1 -1
- package/build/instructions/initReserve.d.ts +3 -1
- package/build/instructions/initReserve.js +12 -3
- package/build/instructions/initReserve.js.map +1 -1
- package/build/instructions/initUserMetadata.d.ts +1 -1
- package/build/instructions/initUserMetadata.js +27 -14
- package/build/instructions/initUserMetadata.js.map +1 -1
- package/build/instructions/initiateObligationOwnershipTransfer.d.ts +11 -0
- package/build/instructions/initiateObligationOwnershipTransfer.js +61 -0
- package/build/instructions/initiateObligationOwnershipTransfer.js.map +1 -0
- package/build/instructions/liquidateObligationAndRedeemReserveCollateral.js +21 -11
- package/build/instructions/liquidateObligationAndRedeemReserveCollateral.js.map +1 -1
- package/build/instructions/liquidateObligationAndRedeemReserveCollateralV2.d.ts +42 -0
- package/build/instructions/liquidateObligationAndRedeemReserveCollateralV2.js +172 -0
- package/build/instructions/liquidateObligationAndRedeemReserveCollateralV2.js.map +1 -0
- package/build/instructions/markObligationForDeleveraging.d.ts +12 -0
- package/build/instructions/markObligationForDeleveraging.js +62 -0
- package/build/instructions/markObligationForDeleveraging.js.map +1 -0
- package/build/instructions/recoverInvalidTicketCollateral.d.ts +20 -0
- package/build/instructions/recoverInvalidTicketCollateral.js +89 -0
- package/build/instructions/recoverInvalidTicketCollateral.js.map +1 -0
- package/build/instructions/redeemFees.js +2 -3
- package/build/instructions/redeemFees.js.map +1 -1
- package/build/instructions/redeemReserveCollateral.js +20 -10
- package/build/instructions/redeemReserveCollateral.js.map +1 -1
- package/build/instructions/refreshObligation.js +1 -2
- package/build/instructions/refreshObligation.js.map +1 -1
- package/build/instructions/refreshObligationFarmsForReserve.d.ts +8 -6
- package/build/instructions/refreshObligationFarmsForReserve.js +42 -16
- package/build/instructions/refreshObligationFarmsForReserve.js.map +1 -1
- package/build/instructions/refreshReserve.d.ts +4 -4
- package/build/instructions/refreshReserve.js +12 -14
- package/build/instructions/refreshReserve.js.map +1 -1
- package/build/instructions/refreshReservesBatch.js +19 -9
- package/build/instructions/refreshReservesBatch.js.map +1 -1
- package/build/instructions/repayAndWithdrawAndRedeem.d.ts +46 -0
- package/build/instructions/repayAndWithdrawAndRedeem.js +177 -0
- package/build/instructions/repayAndWithdrawAndRedeem.js.map +1 -0
- package/build/instructions/repayObligationLiquidity.js +20 -10
- package/build/instructions/repayObligationLiquidity.js.map +1 -1
- package/build/instructions/repayObligationLiquidityV2.js +50 -16
- package/build/instructions/repayObligationLiquidityV2.js.map +1 -1
- package/build/instructions/requestElevationGroup.js +19 -9
- package/build/instructions/requestElevationGroup.js.map +1 -1
- package/build/instructions/rolloverFixedTermBorrow.d.ts +25 -0
- package/build/instructions/rolloverFixedTermBorrow.js +76 -0
- package/build/instructions/rolloverFixedTermBorrow.js.map +1 -0
- package/build/instructions/seedDepositOnInitReserve.d.ts +11 -0
- package/build/instructions/seedDepositOnInitReserve.js +37 -0
- package/build/instructions/seedDepositOnInitReserve.js.map +1 -0
- package/build/instructions/setBorrowOrder.d.ts +20 -0
- package/build/instructions/setBorrowOrder.js +76 -0
- package/build/instructions/setBorrowOrder.js.map +1 -0
- package/build/instructions/setBorrowOrderV2.d.ts +21 -0
- package/build/instructions/setBorrowOrderV2.js +78 -0
- package/build/instructions/setBorrowOrderV2.js.map +1 -0
- package/build/instructions/setObligationOrder.d.ts +13 -0
- package/build/instructions/setObligationOrder.js +62 -0
- package/build/instructions/setObligationOrder.js.map +1 -0
- package/build/instructions/socializeLoss.d.ts +1 -1
- package/build/instructions/socializeLoss.js +20 -10
- package/build/instructions/socializeLoss.js.map +1 -1
- package/build/instructions/socializeLossV2.d.ts +22 -0
- package/build/instructions/socializeLossV2.js +94 -0
- package/build/instructions/socializeLossV2.js.map +1 -0
- package/build/instructions/topupReserveRewards.d.ts +16 -0
- package/build/instructions/topupReserveRewards.js +73 -0
- package/build/instructions/topupReserveRewards.js.map +1 -0
- package/build/instructions/updateGlobalConfig.d.ts +13 -0
- package/build/instructions/updateGlobalConfig.js +66 -0
- package/build/instructions/updateGlobalConfig.js.map +1 -0
- package/build/instructions/updateGlobalConfigAdmin.d.ts +7 -0
- package/build/instructions/updateGlobalConfigAdmin.js +21 -0
- package/build/instructions/updateGlobalConfigAdmin.js.map +1 -0
- package/build/instructions/updateLendingMarket.d.ts +2 -1
- package/build/instructions/updateLendingMarket.js +29 -11
- package/build/instructions/updateLendingMarket.js.map +1 -1
- package/build/instructions/updateLendingMarketOwner.d.ts +1 -0
- package/build/instructions/updateLendingMarketOwner.js +6 -2
- package/build/instructions/updateLendingMarketOwner.js.map +1 -1
- package/build/instructions/updateObligationConfig.d.ts +15 -0
- package/build/instructions/updateObligationConfig.js +71 -0
- package/build/instructions/updateObligationConfig.js.map +1 -0
- package/build/instructions/updateReserveConfig.d.ts +6 -4
- package/build/instructions/updateReserveConfig.js +34 -13
- package/build/instructions/updateReserveConfig.js.map +1 -1
- package/build/instructions/withdrawObligationCollateral.js +20 -10
- package/build/instructions/withdrawObligationCollateral.js.map +1 -1
- package/build/instructions/withdrawObligationCollateralAndRedeemReserveCollateral.d.ts +1 -1
- package/build/instructions/withdrawObligationCollateralAndRedeemReserveCollateral.js +28 -15
- package/build/instructions/withdrawObligationCollateralAndRedeemReserveCollateral.js.map +1 -1
- package/build/instructions/withdrawObligationCollateralAndRedeemReserveCollateralV2.js +40 -14
- package/build/instructions/withdrawObligationCollateralAndRedeemReserveCollateralV2.js.map +1 -1
- package/build/instructions/withdrawObligationCollateralV2.d.ts +25 -0
- package/build/instructions/withdrawObligationCollateralV2.js +109 -0
- package/build/instructions/withdrawObligationCollateralV2.js.map +1 -0
- package/build/instructions/withdrawProtocolFee.d.ts +3 -2
- package/build/instructions/withdrawProtocolFee.js +25 -14
- package/build/instructions/withdrawProtocolFee.js.map +1 -1
- package/build/instructions/withdrawQueuedLiquidity.d.ts +23 -0
- package/build/instructions/withdrawQueuedLiquidity.js +80 -0
- package/build/instructions/withdrawQueuedLiquidity.js.map +1 -0
- package/build/instructions/withdrawReferrerFees.js +2 -3
- package/build/instructions/withdrawReferrerFees.js.map +1 -1
- package/build/kamino_lending.d.ts +5753 -2295
- package/build/kamino_lending.js +5 -3936
- package/build/kamino_lending.js.map +1 -1
- package/build/kamino_lending.json +1856 -645
- package/build/types/AssetTier.js +21 -11
- package/build/types/AssetTier.js.map +1 -1
- package/build/types/BigFractionBytes.d.ts +2 -1
- package/build/types/BigFractionBytes.js +21 -8
- package/build/types/BigFractionBytes.js.map +1 -1
- package/build/types/BorrowOrder.d.ts +83 -0
- package/build/types/BorrowOrder.js +164 -0
- package/build/types/BorrowOrder.js.map +1 -0
- package/build/types/BorrowOrderConfigArgs.d.ts +42 -0
- package/build/types/BorrowOrderConfigArgs.js +107 -0
- package/build/types/BorrowOrderConfigArgs.js.map +1 -0
- package/build/types/BorrowRateCurve.js +17 -7
- package/build/types/BorrowRateCurve.js.map +1 -1
- package/build/types/CurvePoint.d.ts +2 -1
- package/build/types/CurvePoint.js +17 -7
- package/build/types/CurvePoint.js.map +1 -1
- package/build/types/ElevationGroup.d.ts +2 -1
- package/build/types/ElevationGroup.js +17 -7
- package/build/types/ElevationGroup.js.map +1 -1
- package/build/types/ExchangeRateWithDecimals.d.ts +27 -0
- package/build/types/ExchangeRateWithDecimals.js +82 -0
- package/build/types/ExchangeRateWithDecimals.js.map +1 -0
- package/build/types/FeeCalculation.js +25 -12
- package/build/types/FeeCalculation.js.map +1 -1
- package/build/types/FixedTermBorrowRolloverConfig.d.ts +47 -0
- package/build/types/FixedTermBorrowRolloverConfig.js +114 -0
- package/build/types/FixedTermBorrowRolloverConfig.js.map +1 -0
- package/build/types/InitObligationArgs.d.ts +2 -1
- package/build/types/InitObligationArgs.js +17 -7
- package/build/types/InitObligationArgs.js.map +1 -1
- package/build/types/LastUpdate.d.ts +12 -6
- package/build/types/LastUpdate.js +36 -14
- package/build/types/LastUpdate.js.map +1 -1
- package/build/types/ObligationCollateral.js +17 -7
- package/build/types/ObligationCollateral.js.map +1 -1
- package/build/types/ObligationLiquidity.d.ts +29 -5
- package/build/types/ObligationLiquidity.js +42 -15
- package/build/types/ObligationLiquidity.js.map +1 -1
- package/build/types/ObligationOrder.d.ts +57 -0
- package/build/types/ObligationOrder.js +127 -0
- package/build/types/ObligationOrder.js.map +1 -0
- package/build/types/PriceHeuristic.js +17 -7
- package/build/types/PriceHeuristic.js.map +1 -1
- package/build/types/ProgressCallbackType.d.ts +31 -0
- package/build/types/ProgressCallbackType.js +108 -0
- package/build/types/ProgressCallbackType.js.map +1 -0
- package/build/types/PythConfiguration.js +17 -7
- package/build/types/PythConfiguration.js.map +1 -1
- package/build/types/ReserveCollateral.js +17 -7
- package/build/types/ReserveCollateral.js.map +1 -1
- package/build/types/ReserveConfig.d.ts +87 -32
- package/build/types/ReserveConfig.js +139 -51
- package/build/types/ReserveConfig.js.map +1 -1
- package/build/types/ReserveConfigCustomizationArgs.d.ts +42 -0
- package/build/types/ReserveConfigCustomizationArgs.js +106 -0
- package/build/types/ReserveConfigCustomizationArgs.js.map +1 -0
- package/build/types/ReserveFarmKind.js +21 -11
- package/build/types/ReserveFarmKind.js.map +1 -1
- package/build/types/ReserveFees.d.ts +5 -5
- package/build/types/ReserveFees.js +24 -14
- package/build/types/ReserveFees.js.map +1 -1
- package/build/types/ReserveLiquidity.d.ts +20 -15
- package/build/types/ReserveLiquidity.js +46 -29
- package/build/types/ReserveLiquidity.js.map +1 -1
- package/build/types/ReserveStatus.js +21 -11
- package/build/types/ReserveStatus.js.map +1 -1
- package/build/types/ScopeConfiguration.js +17 -7
- package/build/types/ScopeConfiguration.js.map +1 -1
- package/build/types/SwitchboardConfiguration.js +17 -7
- package/build/types/SwitchboardConfiguration.js.map +1 -1
- package/build/types/TokenInfo.js +17 -7
- package/build/types/TokenInfo.js.map +1 -1
- package/build/types/UpdateConfigMode.d.ts +232 -63
- package/build/types/UpdateConfigMode.js +433 -110
- package/build/types/UpdateConfigMode.js.map +1 -1
- package/build/types/UpdateGlobalConfigMode.d.ts +31 -0
- package/build/types/UpdateGlobalConfigMode.js +108 -0
- package/build/types/UpdateGlobalConfigMode.js.map +1 -0
- package/build/types/UpdateLendingMarketConfigValue.d.ts +20 -0
- package/build/types/UpdateLendingMarketConfigValue.js +53 -11
- package/build/types/UpdateLendingMarketConfigValue.js.map +1 -1
- package/build/types/UpdateLendingMarketMode.d.ts +400 -23
- package/build/types/UpdateLendingMarketMode.js +752 -46
- package/build/types/UpdateLendingMarketMode.js.map +1 -1
- package/build/types/UpdateObligationConfigMode.d.ts +83 -0
- package/build/types/UpdateObligationConfigMode.js +204 -0
- package/build/types/UpdateObligationConfigMode.js.map +1 -0
- package/build/types/WithdrawQueue.d.ts +32 -0
- package/build/types/WithdrawQueue.js +93 -0
- package/build/types/WithdrawQueue.js.map +1 -0
- package/build/types/WithdrawalCaps.js +17 -7
- package/build/types/WithdrawalCaps.js.map +1 -1
- package/build/types/index.d.ts +32 -10
- package/build/types/index.js +38 -10
- package/build/types/index.js.map +1 -1
- package/package.json +3 -2
- package/scripts/generate-idl-module.mjs +18 -0
- package/scripts/patch-optional-accounts.mjs +98 -0
- package/scripts/verify-idl-provenance.mjs +16 -0
- package/src/accounts/GlobalConfig.ts +113 -0
- package/src/accounts/LendingMarket.ts +300 -29
- package/src/accounts/Obligation.ts +111 -26
- package/src/accounts/ReferrerState.ts +11 -4
- package/src/accounts/ReferrerTokenState.ts +6 -3
- package/src/accounts/Reserve.ts +10 -2
- package/src/accounts/ShortUrl.ts +15 -4
- package/src/accounts/UserMetadata.ts +6 -3
- package/src/accounts/UserState.ts +24 -8
- package/src/accounts/WithdrawTicket.ts +173 -0
- package/src/accounts/index.ts +4 -0
- package/src/errors/custom.ts +1177 -24
- package/src/index.ts +2 -4
- package/src/instructions/abortObligationOwnershipTransfer.ts +30 -0
- package/src/instructions/acceptObligationOwnership.ts +30 -0
- package/src/instructions/approveObligationOwnershipTransfer.ts +34 -0
- package/src/instructions/borrowObligationLiquidity.ts +18 -5
- package/src/instructions/borrowObligationLiquidityV2.ts +30 -9
- package/src/instructions/calculateCtokenExchangeRate.ts +22 -0
- package/src/instructions/cancelWithdrawTicket.ts +77 -0
- package/src/instructions/cloneReserveConfig.ts +56 -0
- package/src/instructions/deleteReferrerStateAndShortUrl.ts +4 -1
- package/src/instructions/depositAndWithdraw.ts +229 -0
- package/src/instructions/depositObligationCollateral.ts +3 -2
- package/src/instructions/depositObligationCollateralV2.ts +110 -0
- package/src/instructions/depositReserveLiquidity.ts +4 -3
- package/src/instructions/depositReserveLiquidityAndObligationCollateral.ts +18 -9
- package/src/instructions/depositReserveLiquidityAndObligationCollateralV2.ts +31 -14
- package/src/instructions/enqueueToWithdraw.ts +113 -0
- package/src/instructions/fillBorrowOrder.ts +114 -0
- package/src/instructions/fillBorrowOrderV2.ts +128 -0
- package/src/instructions/flashBorrowReserveLiquidity.ts +19 -6
- package/src/instructions/flashRepayReserveLiquidity.ts +23 -7
- package/src/instructions/idlMissingTypes.ts +17 -9
- package/src/instructions/index.ts +118 -6
- package/src/instructions/initFarmsForReserve.ts +11 -3
- package/src/instructions/initGlobalConfig.ts +36 -0
- package/src/instructions/initLendingMarket.ts +13 -3
- package/src/instructions/initObligation.ts +3 -2
- package/src/instructions/initObligationFarmsForReserve.ts +5 -3
- package/src/instructions/initReferrerStateAndShortUrl.ts +4 -2
- package/src/instructions/initReferrerTokenState.ts +6 -16
- package/src/instructions/initReserve.ts +21 -3
- package/src/instructions/initUserMetadata.ts +18 -8
- package/src/instructions/initiateObligationOwnershipTransfer.ts +44 -0
- package/src/instructions/liquidateObligationAndRedeemReserveCollateral.ts +7 -5
- package/src/instructions/liquidateObligationAndRedeemReserveCollateralV2.ts +191 -0
- package/src/instructions/markObligationForDeleveraging.ts +46 -0
- package/src/instructions/recoverInvalidTicketCollateral.ts +80 -0
- package/src/instructions/redeemFees.ts +8 -2
- package/src/instructions/redeemReserveCollateral.ts +4 -3
- package/src/instructions/refreshObligation.ts +7 -1
- package/src/instructions/refreshObligationFarmsForReserve.ts +35 -15
- package/src/instructions/refreshReserve.ts +27 -17
- package/src/instructions/refreshReservesBatch.ts +7 -2
- package/src/instructions/repayAndWithdrawAndRedeem.ts +199 -0
- package/src/instructions/repayObligationLiquidity.ts +4 -3
- package/src/instructions/repayObligationLiquidityV2.ts +35 -10
- package/src/instructions/requestElevationGroup.ts +4 -2
- package/src/instructions/rolloverFixedTermBorrow.ts +108 -0
- package/src/instructions/seedDepositOnInitReserve.ts +50 -0
- package/src/instructions/setBorrowOrder.ts +66 -0
- package/src/instructions/setBorrowOrderV2.ts +69 -0
- package/src/instructions/setObligationOrder.ts +45 -0
- package/src/instructions/socializeLoss.ts +5 -4
- package/src/instructions/socializeLossV2.ts +92 -0
- package/src/instructions/topupReserveRewards.ts +60 -0
- package/src/instructions/updateGlobalConfig.ts +53 -0
- package/src/instructions/updateGlobalConfigAdmin.ts +30 -0
- package/src/instructions/updateLendingMarket.ts +15 -5
- package/src/instructions/updateLendingMarketOwner.ts +10 -1
- package/src/instructions/updateObligationConfig.ts +65 -0
- package/src/instructions/updateReserveConfig.ts +27 -10
- package/src/instructions/withdrawObligationCollateral.ts +4 -3
- package/src/instructions/withdrawObligationCollateralAndRedeemReserveCollateral.ts +18 -9
- package/src/instructions/withdrawObligationCollateralAndRedeemReserveCollateralV2.ts +26 -13
- package/src/instructions/withdrawObligationCollateralV2.ts +110 -0
- package/src/instructions/withdrawProtocolFee.ts +12 -9
- package/src/instructions/withdrawQueuedLiquidity.ts +110 -0
- package/src/instructions/withdrawReferrerFees.ts +8 -2
- package/src/kamino_lending.json +1856 -645
- package/src/kamino_lending.ts +5558 -6034
- package/src/types/BigFractionBytes.ts +9 -1
- package/src/types/BorrowOrder.ts +168 -0
- package/src/types/BorrowOrderConfigArgs.ts +96 -0
- package/src/types/BorrowRateCurve.ts +10 -3
- package/src/types/CurvePoint.ts +7 -1
- package/src/types/ElevationGroup.ts +2 -1
- package/src/types/ExchangeRateWithDecimals.ts +64 -0
- package/src/types/FeeCalculation.ts +9 -2
- package/src/types/FixedTermBorrowRolloverConfig.ts +110 -0
- package/src/types/InitObligationArgs.ts +3 -0
- package/src/types/LastUpdate.ts +26 -10
- package/src/types/ObligationLiquidity.ts +43 -10
- package/src/types/ObligationOrder.ts +121 -0
- package/src/types/ProgressCallbackType.ts +90 -0
- package/src/types/ReserveConfig.ts +169 -62
- package/src/types/ReserveConfigCustomizationArgs.ts +96 -0
- package/src/types/ReserveFees.ts +9 -9
- package/src/types/ReserveLiquidity.ts +38 -28
- package/src/types/UpdateConfigMode.ts +507 -117
- package/src/types/UpdateGlobalConfigMode.ts +90 -0
- package/src/types/UpdateLendingMarketConfigValue.ts +43 -0
- package/src/types/UpdateLendingMarketMode.ts +912 -41
- package/src/types/UpdateObligationConfigMode.ts +210 -0
- package/src/types/WithdrawQueue.ts +85 -0
- package/src/types/index.ts +175 -34
- package/src/types/AssetTier.ts +0 -116
|
@@ -15,15 +15,29 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
36
|
+
exports.UpdateProtocolOrderExecutionFee = exports.UpdateDeleveragingBonusIncreaseBpsPerDay = exports.UpdateAutodeleverageEnabled = exports.UpdateHostFixedInterestRateBps = exports.UpdateBorrowLimitsInElevationGroupAgainstThisReserve = exports.UpdateBorrowLimitOutsideElevationGroup = exports.UpdateBlockPriceUsage = exports.UpdateBlockBorrowingAboveUtilizationPct = exports.UpdateDisableUsageAsCollateralOutsideEmode = exports.UpdateFarmDebt = exports.UpdateFarmCollateral = exports.UpdateReserveStatus = exports.DeprecatedUpdateMultiplierTagBoost = exports.DeprecatedUpdateMultiplierSideBoost = exports.UpdateDeleveragingThresholdDecreaseBpsPerDay = exports.UpdateElevationGroup = exports.DeprecatedUpdateAssetTier = exports.UpdateBorrowFactor = exports.UpdateDeleveragingMarginCallPeriod = exports.UpdateMinLiquidationBonusBps = exports.UpdateBadDebtLiquidationBonusBps = exports.DeprecatedUpdateDepositWithdrawalCapCurrentTotal = exports.DeprecatedUpdateDebtWithdrawalCapCurrentTotal = exports.UpdateDepositWithdrawalCap = exports.UpdateDebtWithdrawalCap = exports.DeprecatedUpdateEntireReserveConfig = 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.DeprecatedUpdateFeesReferralFeeBps = exports.UpdateFeesFlashLoanFee = exports.UpdateFeesOriginationFee = exports.UpdateProtocolTakeRate = exports.UpdateProtocolLiquidationFee = exports.UpdateLiquidationThresholdPct = exports.UpdateMaxLiquidationBonusBps = exports.UpdateLoanToValuePct = void 0;
|
|
37
|
+
exports.UpdateInterestRateBasis = exports.UpdateReservePermissionedOps = exports.UpdateRewardsAmountPerAccrualUnit = exports.UpdateReserveEmergencyMode = exports.UpdateEarlyRepayRemainingInterestPct = exports.UpdateDebtTermSeconds = exports.UpdateDebtMaturityTimestamp = exports.UpdateBlockCTokenUsage = exports.UpdateMinDeleveragingBonusBps = exports.UpdateProposerAuthorityLock = void 0;
|
|
38
|
+
exports.fromDecoded = fromDecoded;
|
|
39
|
+
exports.fromJSON = fromJSON;
|
|
40
|
+
exports.layout = layout;
|
|
27
41
|
const borsh = __importStar(require("@coral-xyz/borsh"));
|
|
28
42
|
class UpdateLoanToValuePct {
|
|
29
43
|
static discriminator = 0;
|
|
@@ -110,23 +124,23 @@ class UpdateProtocolTakeRate {
|
|
|
110
124
|
}
|
|
111
125
|
}
|
|
112
126
|
exports.UpdateProtocolTakeRate = UpdateProtocolTakeRate;
|
|
113
|
-
class
|
|
127
|
+
class UpdateFeesOriginationFee {
|
|
114
128
|
static discriminator = 5;
|
|
115
|
-
static kind = "
|
|
129
|
+
static kind = "UpdateFeesOriginationFee";
|
|
116
130
|
discriminator = 5;
|
|
117
|
-
kind = "
|
|
131
|
+
kind = "UpdateFeesOriginationFee";
|
|
118
132
|
toJSON() {
|
|
119
133
|
return {
|
|
120
|
-
kind: "
|
|
134
|
+
kind: "UpdateFeesOriginationFee",
|
|
121
135
|
};
|
|
122
136
|
}
|
|
123
137
|
toEncodable() {
|
|
124
138
|
return {
|
|
125
|
-
|
|
139
|
+
UpdateFeesOriginationFee: {},
|
|
126
140
|
};
|
|
127
141
|
}
|
|
128
142
|
}
|
|
129
|
-
exports.
|
|
143
|
+
exports.UpdateFeesOriginationFee = UpdateFeesOriginationFee;
|
|
130
144
|
class UpdateFeesFlashLoanFee {
|
|
131
145
|
static discriminator = 6;
|
|
132
146
|
static kind = "UpdateFeesFlashLoanFee";
|
|
@@ -144,23 +158,23 @@ class UpdateFeesFlashLoanFee {
|
|
|
144
158
|
}
|
|
145
159
|
}
|
|
146
160
|
exports.UpdateFeesFlashLoanFee = UpdateFeesFlashLoanFee;
|
|
147
|
-
class
|
|
161
|
+
class DeprecatedUpdateFeesReferralFeeBps {
|
|
148
162
|
static discriminator = 7;
|
|
149
|
-
static kind = "
|
|
163
|
+
static kind = "DeprecatedUpdateFeesReferralFeeBps";
|
|
150
164
|
discriminator = 7;
|
|
151
|
-
kind = "
|
|
165
|
+
kind = "DeprecatedUpdateFeesReferralFeeBps";
|
|
152
166
|
toJSON() {
|
|
153
167
|
return {
|
|
154
|
-
kind: "
|
|
168
|
+
kind: "DeprecatedUpdateFeesReferralFeeBps",
|
|
155
169
|
};
|
|
156
170
|
}
|
|
157
171
|
toEncodable() {
|
|
158
172
|
return {
|
|
159
|
-
|
|
173
|
+
DeprecatedUpdateFeesReferralFeeBps: {},
|
|
160
174
|
};
|
|
161
175
|
}
|
|
162
176
|
}
|
|
163
|
-
exports.
|
|
177
|
+
exports.DeprecatedUpdateFeesReferralFeeBps = DeprecatedUpdateFeesReferralFeeBps;
|
|
164
178
|
class UpdateDepositLimit {
|
|
165
179
|
static discriminator = 8;
|
|
166
180
|
static kind = "UpdateDepositLimit";
|
|
@@ -433,23 +447,23 @@ class UpdateBorrowRateCurve {
|
|
|
433
447
|
}
|
|
434
448
|
}
|
|
435
449
|
exports.UpdateBorrowRateCurve = UpdateBorrowRateCurve;
|
|
436
|
-
class
|
|
450
|
+
class DeprecatedUpdateEntireReserveConfig {
|
|
437
451
|
static discriminator = 24;
|
|
438
|
-
static kind = "
|
|
452
|
+
static kind = "DeprecatedUpdateEntireReserveConfig";
|
|
439
453
|
discriminator = 24;
|
|
440
|
-
kind = "
|
|
454
|
+
kind = "DeprecatedUpdateEntireReserveConfig";
|
|
441
455
|
toJSON() {
|
|
442
456
|
return {
|
|
443
|
-
kind: "
|
|
457
|
+
kind: "DeprecatedUpdateEntireReserveConfig",
|
|
444
458
|
};
|
|
445
459
|
}
|
|
446
460
|
toEncodable() {
|
|
447
461
|
return {
|
|
448
|
-
|
|
462
|
+
DeprecatedUpdateEntireReserveConfig: {},
|
|
449
463
|
};
|
|
450
464
|
}
|
|
451
465
|
}
|
|
452
|
-
exports.
|
|
466
|
+
exports.DeprecatedUpdateEntireReserveConfig = DeprecatedUpdateEntireReserveConfig;
|
|
453
467
|
class UpdateDebtWithdrawalCap {
|
|
454
468
|
static discriminator = 25;
|
|
455
469
|
static kind = "UpdateDebtWithdrawalCap";
|
|
@@ -484,40 +498,40 @@ class UpdateDepositWithdrawalCap {
|
|
|
484
498
|
}
|
|
485
499
|
}
|
|
486
500
|
exports.UpdateDepositWithdrawalCap = UpdateDepositWithdrawalCap;
|
|
487
|
-
class
|
|
501
|
+
class DeprecatedUpdateDebtWithdrawalCapCurrentTotal {
|
|
488
502
|
static discriminator = 27;
|
|
489
|
-
static kind = "
|
|
503
|
+
static kind = "DeprecatedUpdateDebtWithdrawalCapCurrentTotal";
|
|
490
504
|
discriminator = 27;
|
|
491
|
-
kind = "
|
|
505
|
+
kind = "DeprecatedUpdateDebtWithdrawalCapCurrentTotal";
|
|
492
506
|
toJSON() {
|
|
493
507
|
return {
|
|
494
|
-
kind: "
|
|
508
|
+
kind: "DeprecatedUpdateDebtWithdrawalCapCurrentTotal",
|
|
495
509
|
};
|
|
496
510
|
}
|
|
497
511
|
toEncodable() {
|
|
498
512
|
return {
|
|
499
|
-
|
|
513
|
+
DeprecatedUpdateDebtWithdrawalCapCurrentTotal: {},
|
|
500
514
|
};
|
|
501
515
|
}
|
|
502
516
|
}
|
|
503
|
-
exports.
|
|
504
|
-
class
|
|
517
|
+
exports.DeprecatedUpdateDebtWithdrawalCapCurrentTotal = DeprecatedUpdateDebtWithdrawalCapCurrentTotal;
|
|
518
|
+
class DeprecatedUpdateDepositWithdrawalCapCurrentTotal {
|
|
505
519
|
static discriminator = 28;
|
|
506
|
-
static kind = "
|
|
520
|
+
static kind = "DeprecatedUpdateDepositWithdrawalCapCurrentTotal";
|
|
507
521
|
discriminator = 28;
|
|
508
|
-
kind = "
|
|
522
|
+
kind = "DeprecatedUpdateDepositWithdrawalCapCurrentTotal";
|
|
509
523
|
toJSON() {
|
|
510
524
|
return {
|
|
511
|
-
kind: "
|
|
525
|
+
kind: "DeprecatedUpdateDepositWithdrawalCapCurrentTotal",
|
|
512
526
|
};
|
|
513
527
|
}
|
|
514
528
|
toEncodable() {
|
|
515
529
|
return {
|
|
516
|
-
|
|
530
|
+
DeprecatedUpdateDepositWithdrawalCapCurrentTotal: {},
|
|
517
531
|
};
|
|
518
532
|
}
|
|
519
533
|
}
|
|
520
|
-
exports.
|
|
534
|
+
exports.DeprecatedUpdateDepositWithdrawalCapCurrentTotal = DeprecatedUpdateDepositWithdrawalCapCurrentTotal;
|
|
521
535
|
class UpdateBadDebtLiquidationBonusBps {
|
|
522
536
|
static discriminator = 29;
|
|
523
537
|
static kind = "UpdateBadDebtLiquidationBonusBps";
|
|
@@ -552,23 +566,23 @@ class UpdateMinLiquidationBonusBps {
|
|
|
552
566
|
}
|
|
553
567
|
}
|
|
554
568
|
exports.UpdateMinLiquidationBonusBps = UpdateMinLiquidationBonusBps;
|
|
555
|
-
class
|
|
569
|
+
class UpdateDeleveragingMarginCallPeriod {
|
|
556
570
|
static discriminator = 31;
|
|
557
|
-
static kind = "
|
|
571
|
+
static kind = "UpdateDeleveragingMarginCallPeriod";
|
|
558
572
|
discriminator = 31;
|
|
559
|
-
kind = "
|
|
573
|
+
kind = "UpdateDeleveragingMarginCallPeriod";
|
|
560
574
|
toJSON() {
|
|
561
575
|
return {
|
|
562
|
-
kind: "
|
|
576
|
+
kind: "UpdateDeleveragingMarginCallPeriod",
|
|
563
577
|
};
|
|
564
578
|
}
|
|
565
579
|
toEncodable() {
|
|
566
580
|
return {
|
|
567
|
-
|
|
581
|
+
UpdateDeleveragingMarginCallPeriod: {},
|
|
568
582
|
};
|
|
569
583
|
}
|
|
570
584
|
}
|
|
571
|
-
exports.
|
|
585
|
+
exports.UpdateDeleveragingMarginCallPeriod = UpdateDeleveragingMarginCallPeriod;
|
|
572
586
|
class UpdateBorrowFactor {
|
|
573
587
|
static discriminator = 32;
|
|
574
588
|
static kind = "UpdateBorrowFactor";
|
|
@@ -586,23 +600,23 @@ class UpdateBorrowFactor {
|
|
|
586
600
|
}
|
|
587
601
|
}
|
|
588
602
|
exports.UpdateBorrowFactor = UpdateBorrowFactor;
|
|
589
|
-
class
|
|
603
|
+
class DeprecatedUpdateAssetTier {
|
|
590
604
|
static discriminator = 33;
|
|
591
|
-
static kind = "
|
|
605
|
+
static kind = "DeprecatedUpdateAssetTier";
|
|
592
606
|
discriminator = 33;
|
|
593
|
-
kind = "
|
|
607
|
+
kind = "DeprecatedUpdateAssetTier";
|
|
594
608
|
toJSON() {
|
|
595
609
|
return {
|
|
596
|
-
kind: "
|
|
610
|
+
kind: "DeprecatedUpdateAssetTier",
|
|
597
611
|
};
|
|
598
612
|
}
|
|
599
613
|
toEncodable() {
|
|
600
614
|
return {
|
|
601
|
-
|
|
615
|
+
DeprecatedUpdateAssetTier: {},
|
|
602
616
|
};
|
|
603
617
|
}
|
|
604
618
|
}
|
|
605
|
-
exports.
|
|
619
|
+
exports.DeprecatedUpdateAssetTier = DeprecatedUpdateAssetTier;
|
|
606
620
|
class UpdateElevationGroup {
|
|
607
621
|
static discriminator = 34;
|
|
608
622
|
static kind = "UpdateElevationGroup";
|
|
@@ -620,23 +634,23 @@ class UpdateElevationGroup {
|
|
|
620
634
|
}
|
|
621
635
|
}
|
|
622
636
|
exports.UpdateElevationGroup = UpdateElevationGroup;
|
|
623
|
-
class
|
|
637
|
+
class UpdateDeleveragingThresholdDecreaseBpsPerDay {
|
|
624
638
|
static discriminator = 35;
|
|
625
|
-
static kind = "
|
|
639
|
+
static kind = "UpdateDeleveragingThresholdDecreaseBpsPerDay";
|
|
626
640
|
discriminator = 35;
|
|
627
|
-
kind = "
|
|
641
|
+
kind = "UpdateDeleveragingThresholdDecreaseBpsPerDay";
|
|
628
642
|
toJSON() {
|
|
629
643
|
return {
|
|
630
|
-
kind: "
|
|
644
|
+
kind: "UpdateDeleveragingThresholdDecreaseBpsPerDay",
|
|
631
645
|
};
|
|
632
646
|
}
|
|
633
647
|
toEncodable() {
|
|
634
648
|
return {
|
|
635
|
-
|
|
649
|
+
UpdateDeleveragingThresholdDecreaseBpsPerDay: {},
|
|
636
650
|
};
|
|
637
651
|
}
|
|
638
652
|
}
|
|
639
|
-
exports.
|
|
653
|
+
exports.UpdateDeleveragingThresholdDecreaseBpsPerDay = UpdateDeleveragingThresholdDecreaseBpsPerDay;
|
|
640
654
|
class DeprecatedUpdateMultiplierSideBoost {
|
|
641
655
|
static discriminator = 36;
|
|
642
656
|
static kind = "DeprecatedUpdateMultiplierSideBoost";
|
|
@@ -739,23 +753,23 @@ class UpdateDisableUsageAsCollateralOutsideEmode {
|
|
|
739
753
|
}
|
|
740
754
|
}
|
|
741
755
|
exports.UpdateDisableUsageAsCollateralOutsideEmode = UpdateDisableUsageAsCollateralOutsideEmode;
|
|
742
|
-
class
|
|
756
|
+
class UpdateBlockBorrowingAboveUtilizationPct {
|
|
743
757
|
static discriminator = 42;
|
|
744
|
-
static kind = "
|
|
758
|
+
static kind = "UpdateBlockBorrowingAboveUtilizationPct";
|
|
745
759
|
discriminator = 42;
|
|
746
|
-
kind = "
|
|
760
|
+
kind = "UpdateBlockBorrowingAboveUtilizationPct";
|
|
747
761
|
toJSON() {
|
|
748
762
|
return {
|
|
749
|
-
kind: "
|
|
763
|
+
kind: "UpdateBlockBorrowingAboveUtilizationPct",
|
|
750
764
|
};
|
|
751
765
|
}
|
|
752
766
|
toEncodable() {
|
|
753
767
|
return {
|
|
754
|
-
|
|
768
|
+
UpdateBlockBorrowingAboveUtilizationPct: {},
|
|
755
769
|
};
|
|
756
770
|
}
|
|
757
771
|
}
|
|
758
|
-
exports.
|
|
772
|
+
exports.UpdateBlockBorrowingAboveUtilizationPct = UpdateBlockBorrowingAboveUtilizationPct;
|
|
759
773
|
class UpdateBlockPriceUsage {
|
|
760
774
|
static discriminator = 43;
|
|
761
775
|
static kind = "UpdateBlockPriceUsage";
|
|
@@ -824,6 +838,227 @@ class UpdateHostFixedInterestRateBps {
|
|
|
824
838
|
}
|
|
825
839
|
}
|
|
826
840
|
exports.UpdateHostFixedInterestRateBps = UpdateHostFixedInterestRateBps;
|
|
841
|
+
class UpdateAutodeleverageEnabled {
|
|
842
|
+
static discriminator = 47;
|
|
843
|
+
static kind = "UpdateAutodeleverageEnabled";
|
|
844
|
+
discriminator = 47;
|
|
845
|
+
kind = "UpdateAutodeleverageEnabled";
|
|
846
|
+
toJSON() {
|
|
847
|
+
return {
|
|
848
|
+
kind: "UpdateAutodeleverageEnabled",
|
|
849
|
+
};
|
|
850
|
+
}
|
|
851
|
+
toEncodable() {
|
|
852
|
+
return {
|
|
853
|
+
UpdateAutodeleverageEnabled: {},
|
|
854
|
+
};
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
exports.UpdateAutodeleverageEnabled = UpdateAutodeleverageEnabled;
|
|
858
|
+
class UpdateDeleveragingBonusIncreaseBpsPerDay {
|
|
859
|
+
static discriminator = 48;
|
|
860
|
+
static kind = "UpdateDeleveragingBonusIncreaseBpsPerDay";
|
|
861
|
+
discriminator = 48;
|
|
862
|
+
kind = "UpdateDeleveragingBonusIncreaseBpsPerDay";
|
|
863
|
+
toJSON() {
|
|
864
|
+
return {
|
|
865
|
+
kind: "UpdateDeleveragingBonusIncreaseBpsPerDay",
|
|
866
|
+
};
|
|
867
|
+
}
|
|
868
|
+
toEncodable() {
|
|
869
|
+
return {
|
|
870
|
+
UpdateDeleveragingBonusIncreaseBpsPerDay: {},
|
|
871
|
+
};
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
exports.UpdateDeleveragingBonusIncreaseBpsPerDay = UpdateDeleveragingBonusIncreaseBpsPerDay;
|
|
875
|
+
class UpdateProtocolOrderExecutionFee {
|
|
876
|
+
static discriminator = 49;
|
|
877
|
+
static kind = "UpdateProtocolOrderExecutionFee";
|
|
878
|
+
discriminator = 49;
|
|
879
|
+
kind = "UpdateProtocolOrderExecutionFee";
|
|
880
|
+
toJSON() {
|
|
881
|
+
return {
|
|
882
|
+
kind: "UpdateProtocolOrderExecutionFee",
|
|
883
|
+
};
|
|
884
|
+
}
|
|
885
|
+
toEncodable() {
|
|
886
|
+
return {
|
|
887
|
+
UpdateProtocolOrderExecutionFee: {},
|
|
888
|
+
};
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
exports.UpdateProtocolOrderExecutionFee = UpdateProtocolOrderExecutionFee;
|
|
892
|
+
class UpdateProposerAuthorityLock {
|
|
893
|
+
static discriminator = 50;
|
|
894
|
+
static kind = "UpdateProposerAuthorityLock";
|
|
895
|
+
discriminator = 50;
|
|
896
|
+
kind = "UpdateProposerAuthorityLock";
|
|
897
|
+
toJSON() {
|
|
898
|
+
return {
|
|
899
|
+
kind: "UpdateProposerAuthorityLock",
|
|
900
|
+
};
|
|
901
|
+
}
|
|
902
|
+
toEncodable() {
|
|
903
|
+
return {
|
|
904
|
+
UpdateProposerAuthorityLock: {},
|
|
905
|
+
};
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
exports.UpdateProposerAuthorityLock = UpdateProposerAuthorityLock;
|
|
909
|
+
class UpdateMinDeleveragingBonusBps {
|
|
910
|
+
static discriminator = 51;
|
|
911
|
+
static kind = "UpdateMinDeleveragingBonusBps";
|
|
912
|
+
discriminator = 51;
|
|
913
|
+
kind = "UpdateMinDeleveragingBonusBps";
|
|
914
|
+
toJSON() {
|
|
915
|
+
return {
|
|
916
|
+
kind: "UpdateMinDeleveragingBonusBps",
|
|
917
|
+
};
|
|
918
|
+
}
|
|
919
|
+
toEncodable() {
|
|
920
|
+
return {
|
|
921
|
+
UpdateMinDeleveragingBonusBps: {},
|
|
922
|
+
};
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
exports.UpdateMinDeleveragingBonusBps = UpdateMinDeleveragingBonusBps;
|
|
926
|
+
class UpdateBlockCTokenUsage {
|
|
927
|
+
static discriminator = 52;
|
|
928
|
+
static kind = "UpdateBlockCTokenUsage";
|
|
929
|
+
discriminator = 52;
|
|
930
|
+
kind = "UpdateBlockCTokenUsage";
|
|
931
|
+
toJSON() {
|
|
932
|
+
return {
|
|
933
|
+
kind: "UpdateBlockCTokenUsage",
|
|
934
|
+
};
|
|
935
|
+
}
|
|
936
|
+
toEncodable() {
|
|
937
|
+
return {
|
|
938
|
+
UpdateBlockCTokenUsage: {},
|
|
939
|
+
};
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
exports.UpdateBlockCTokenUsage = UpdateBlockCTokenUsage;
|
|
943
|
+
class UpdateDebtMaturityTimestamp {
|
|
944
|
+
static discriminator = 53;
|
|
945
|
+
static kind = "UpdateDebtMaturityTimestamp";
|
|
946
|
+
discriminator = 53;
|
|
947
|
+
kind = "UpdateDebtMaturityTimestamp";
|
|
948
|
+
toJSON() {
|
|
949
|
+
return {
|
|
950
|
+
kind: "UpdateDebtMaturityTimestamp",
|
|
951
|
+
};
|
|
952
|
+
}
|
|
953
|
+
toEncodable() {
|
|
954
|
+
return {
|
|
955
|
+
UpdateDebtMaturityTimestamp: {},
|
|
956
|
+
};
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
exports.UpdateDebtMaturityTimestamp = UpdateDebtMaturityTimestamp;
|
|
960
|
+
class UpdateDebtTermSeconds {
|
|
961
|
+
static discriminator = 54;
|
|
962
|
+
static kind = "UpdateDebtTermSeconds";
|
|
963
|
+
discriminator = 54;
|
|
964
|
+
kind = "UpdateDebtTermSeconds";
|
|
965
|
+
toJSON() {
|
|
966
|
+
return {
|
|
967
|
+
kind: "UpdateDebtTermSeconds",
|
|
968
|
+
};
|
|
969
|
+
}
|
|
970
|
+
toEncodable() {
|
|
971
|
+
return {
|
|
972
|
+
UpdateDebtTermSeconds: {},
|
|
973
|
+
};
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
exports.UpdateDebtTermSeconds = UpdateDebtTermSeconds;
|
|
977
|
+
class UpdateEarlyRepayRemainingInterestPct {
|
|
978
|
+
static discriminator = 55;
|
|
979
|
+
static kind = "UpdateEarlyRepayRemainingInterestPct";
|
|
980
|
+
discriminator = 55;
|
|
981
|
+
kind = "UpdateEarlyRepayRemainingInterestPct";
|
|
982
|
+
toJSON() {
|
|
983
|
+
return {
|
|
984
|
+
kind: "UpdateEarlyRepayRemainingInterestPct",
|
|
985
|
+
};
|
|
986
|
+
}
|
|
987
|
+
toEncodable() {
|
|
988
|
+
return {
|
|
989
|
+
UpdateEarlyRepayRemainingInterestPct: {},
|
|
990
|
+
};
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
exports.UpdateEarlyRepayRemainingInterestPct = UpdateEarlyRepayRemainingInterestPct;
|
|
994
|
+
class UpdateReserveEmergencyMode {
|
|
995
|
+
static discriminator = 56;
|
|
996
|
+
static kind = "UpdateReserveEmergencyMode";
|
|
997
|
+
discriminator = 56;
|
|
998
|
+
kind = "UpdateReserveEmergencyMode";
|
|
999
|
+
toJSON() {
|
|
1000
|
+
return {
|
|
1001
|
+
kind: "UpdateReserveEmergencyMode",
|
|
1002
|
+
};
|
|
1003
|
+
}
|
|
1004
|
+
toEncodable() {
|
|
1005
|
+
return {
|
|
1006
|
+
UpdateReserveEmergencyMode: {},
|
|
1007
|
+
};
|
|
1008
|
+
}
|
|
1009
|
+
}
|
|
1010
|
+
exports.UpdateReserveEmergencyMode = UpdateReserveEmergencyMode;
|
|
1011
|
+
class UpdateRewardsAmountPerAccrualUnit {
|
|
1012
|
+
static discriminator = 57;
|
|
1013
|
+
static kind = "UpdateRewardsAmountPerAccrualUnit";
|
|
1014
|
+
discriminator = 57;
|
|
1015
|
+
kind = "UpdateRewardsAmountPerAccrualUnit";
|
|
1016
|
+
toJSON() {
|
|
1017
|
+
return {
|
|
1018
|
+
kind: "UpdateRewardsAmountPerAccrualUnit",
|
|
1019
|
+
};
|
|
1020
|
+
}
|
|
1021
|
+
toEncodable() {
|
|
1022
|
+
return {
|
|
1023
|
+
UpdateRewardsAmountPerAccrualUnit: {},
|
|
1024
|
+
};
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
exports.UpdateRewardsAmountPerAccrualUnit = UpdateRewardsAmountPerAccrualUnit;
|
|
1028
|
+
class UpdateReservePermissionedOps {
|
|
1029
|
+
static discriminator = 58;
|
|
1030
|
+
static kind = "UpdateReservePermissionedOps";
|
|
1031
|
+
discriminator = 58;
|
|
1032
|
+
kind = "UpdateReservePermissionedOps";
|
|
1033
|
+
toJSON() {
|
|
1034
|
+
return {
|
|
1035
|
+
kind: "UpdateReservePermissionedOps",
|
|
1036
|
+
};
|
|
1037
|
+
}
|
|
1038
|
+
toEncodable() {
|
|
1039
|
+
return {
|
|
1040
|
+
UpdateReservePermissionedOps: {},
|
|
1041
|
+
};
|
|
1042
|
+
}
|
|
1043
|
+
}
|
|
1044
|
+
exports.UpdateReservePermissionedOps = UpdateReservePermissionedOps;
|
|
1045
|
+
class UpdateInterestRateBasis {
|
|
1046
|
+
static discriminator = 59;
|
|
1047
|
+
static kind = "UpdateInterestRateBasis";
|
|
1048
|
+
discriminator = 59;
|
|
1049
|
+
kind = "UpdateInterestRateBasis";
|
|
1050
|
+
toJSON() {
|
|
1051
|
+
return {
|
|
1052
|
+
kind: "UpdateInterestRateBasis",
|
|
1053
|
+
};
|
|
1054
|
+
}
|
|
1055
|
+
toEncodable() {
|
|
1056
|
+
return {
|
|
1057
|
+
UpdateInterestRateBasis: {},
|
|
1058
|
+
};
|
|
1059
|
+
}
|
|
1060
|
+
}
|
|
1061
|
+
exports.UpdateInterestRateBasis = UpdateInterestRateBasis;
|
|
827
1062
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
828
1063
|
function fromDecoded(obj) {
|
|
829
1064
|
if (typeof obj !== "object") {
|
|
@@ -844,14 +1079,14 @@ function fromDecoded(obj) {
|
|
|
844
1079
|
if ("UpdateProtocolTakeRate" in obj) {
|
|
845
1080
|
return new UpdateProtocolTakeRate();
|
|
846
1081
|
}
|
|
847
|
-
if ("
|
|
848
|
-
return new
|
|
1082
|
+
if ("UpdateFeesOriginationFee" in obj) {
|
|
1083
|
+
return new UpdateFeesOriginationFee();
|
|
849
1084
|
}
|
|
850
1085
|
if ("UpdateFeesFlashLoanFee" in obj) {
|
|
851
1086
|
return new UpdateFeesFlashLoanFee();
|
|
852
1087
|
}
|
|
853
|
-
if ("
|
|
854
|
-
return new
|
|
1088
|
+
if ("DeprecatedUpdateFeesReferralFeeBps" in obj) {
|
|
1089
|
+
return new DeprecatedUpdateFeesReferralFeeBps();
|
|
855
1090
|
}
|
|
856
1091
|
if ("UpdateDepositLimit" in obj) {
|
|
857
1092
|
return new UpdateDepositLimit();
|
|
@@ -901,8 +1136,8 @@ function fromDecoded(obj) {
|
|
|
901
1136
|
if ("UpdateBorrowRateCurve" in obj) {
|
|
902
1137
|
return new UpdateBorrowRateCurve();
|
|
903
1138
|
}
|
|
904
|
-
if ("
|
|
905
|
-
return new
|
|
1139
|
+
if ("DeprecatedUpdateEntireReserveConfig" in obj) {
|
|
1140
|
+
return new DeprecatedUpdateEntireReserveConfig();
|
|
906
1141
|
}
|
|
907
1142
|
if ("UpdateDebtWithdrawalCap" in obj) {
|
|
908
1143
|
return new UpdateDebtWithdrawalCap();
|
|
@@ -910,11 +1145,11 @@ function fromDecoded(obj) {
|
|
|
910
1145
|
if ("UpdateDepositWithdrawalCap" in obj) {
|
|
911
1146
|
return new UpdateDepositWithdrawalCap();
|
|
912
1147
|
}
|
|
913
|
-
if ("
|
|
914
|
-
return new
|
|
1148
|
+
if ("DeprecatedUpdateDebtWithdrawalCapCurrentTotal" in obj) {
|
|
1149
|
+
return new DeprecatedUpdateDebtWithdrawalCapCurrentTotal();
|
|
915
1150
|
}
|
|
916
|
-
if ("
|
|
917
|
-
return new
|
|
1151
|
+
if ("DeprecatedUpdateDepositWithdrawalCapCurrentTotal" in obj) {
|
|
1152
|
+
return new DeprecatedUpdateDepositWithdrawalCapCurrentTotal();
|
|
918
1153
|
}
|
|
919
1154
|
if ("UpdateBadDebtLiquidationBonusBps" in obj) {
|
|
920
1155
|
return new UpdateBadDebtLiquidationBonusBps();
|
|
@@ -922,20 +1157,20 @@ function fromDecoded(obj) {
|
|
|
922
1157
|
if ("UpdateMinLiquidationBonusBps" in obj) {
|
|
923
1158
|
return new UpdateMinLiquidationBonusBps();
|
|
924
1159
|
}
|
|
925
|
-
if ("
|
|
926
|
-
return new
|
|
1160
|
+
if ("UpdateDeleveragingMarginCallPeriod" in obj) {
|
|
1161
|
+
return new UpdateDeleveragingMarginCallPeriod();
|
|
927
1162
|
}
|
|
928
1163
|
if ("UpdateBorrowFactor" in obj) {
|
|
929
1164
|
return new UpdateBorrowFactor();
|
|
930
1165
|
}
|
|
931
|
-
if ("
|
|
932
|
-
return new
|
|
1166
|
+
if ("DeprecatedUpdateAssetTier" in obj) {
|
|
1167
|
+
return new DeprecatedUpdateAssetTier();
|
|
933
1168
|
}
|
|
934
1169
|
if ("UpdateElevationGroup" in obj) {
|
|
935
1170
|
return new UpdateElevationGroup();
|
|
936
1171
|
}
|
|
937
|
-
if ("
|
|
938
|
-
return new
|
|
1172
|
+
if ("UpdateDeleveragingThresholdDecreaseBpsPerDay" in obj) {
|
|
1173
|
+
return new UpdateDeleveragingThresholdDecreaseBpsPerDay();
|
|
939
1174
|
}
|
|
940
1175
|
if ("DeprecatedUpdateMultiplierSideBoost" in obj) {
|
|
941
1176
|
return new DeprecatedUpdateMultiplierSideBoost();
|
|
@@ -955,8 +1190,8 @@ function fromDecoded(obj) {
|
|
|
955
1190
|
if ("UpdateDisableUsageAsCollateralOutsideEmode" in obj) {
|
|
956
1191
|
return new UpdateDisableUsageAsCollateralOutsideEmode();
|
|
957
1192
|
}
|
|
958
|
-
if ("
|
|
959
|
-
return new
|
|
1193
|
+
if ("UpdateBlockBorrowingAboveUtilizationPct" in obj) {
|
|
1194
|
+
return new UpdateBlockBorrowingAboveUtilizationPct();
|
|
960
1195
|
}
|
|
961
1196
|
if ("UpdateBlockPriceUsage" in obj) {
|
|
962
1197
|
return new UpdateBlockPriceUsage();
|
|
@@ -970,9 +1205,47 @@ function fromDecoded(obj) {
|
|
|
970
1205
|
if ("UpdateHostFixedInterestRateBps" in obj) {
|
|
971
1206
|
return new UpdateHostFixedInterestRateBps();
|
|
972
1207
|
}
|
|
1208
|
+
if ("UpdateAutodeleverageEnabled" in obj) {
|
|
1209
|
+
return new UpdateAutodeleverageEnabled();
|
|
1210
|
+
}
|
|
1211
|
+
if ("UpdateDeleveragingBonusIncreaseBpsPerDay" in obj) {
|
|
1212
|
+
return new UpdateDeleveragingBonusIncreaseBpsPerDay();
|
|
1213
|
+
}
|
|
1214
|
+
if ("UpdateProtocolOrderExecutionFee" in obj) {
|
|
1215
|
+
return new UpdateProtocolOrderExecutionFee();
|
|
1216
|
+
}
|
|
1217
|
+
if ("UpdateProposerAuthorityLock" in obj) {
|
|
1218
|
+
return new UpdateProposerAuthorityLock();
|
|
1219
|
+
}
|
|
1220
|
+
if ("UpdateMinDeleveragingBonusBps" in obj) {
|
|
1221
|
+
return new UpdateMinDeleveragingBonusBps();
|
|
1222
|
+
}
|
|
1223
|
+
if ("UpdateBlockCTokenUsage" in obj) {
|
|
1224
|
+
return new UpdateBlockCTokenUsage();
|
|
1225
|
+
}
|
|
1226
|
+
if ("UpdateDebtMaturityTimestamp" in obj) {
|
|
1227
|
+
return new UpdateDebtMaturityTimestamp();
|
|
1228
|
+
}
|
|
1229
|
+
if ("UpdateDebtTermSeconds" in obj) {
|
|
1230
|
+
return new UpdateDebtTermSeconds();
|
|
1231
|
+
}
|
|
1232
|
+
if ("UpdateEarlyRepayRemainingInterestPct" in obj) {
|
|
1233
|
+
return new UpdateEarlyRepayRemainingInterestPct();
|
|
1234
|
+
}
|
|
1235
|
+
if ("UpdateReserveEmergencyMode" in obj) {
|
|
1236
|
+
return new UpdateReserveEmergencyMode();
|
|
1237
|
+
}
|
|
1238
|
+
if ("UpdateRewardsAmountPerAccrualUnit" in obj) {
|
|
1239
|
+
return new UpdateRewardsAmountPerAccrualUnit();
|
|
1240
|
+
}
|
|
1241
|
+
if ("UpdateReservePermissionedOps" in obj) {
|
|
1242
|
+
return new UpdateReservePermissionedOps();
|
|
1243
|
+
}
|
|
1244
|
+
if ("UpdateInterestRateBasis" in obj) {
|
|
1245
|
+
return new UpdateInterestRateBasis();
|
|
1246
|
+
}
|
|
973
1247
|
throw new Error("Invalid enum object");
|
|
974
1248
|
}
|
|
975
|
-
exports.fromDecoded = fromDecoded;
|
|
976
1249
|
function fromJSON(obj) {
|
|
977
1250
|
switch (obj.kind) {
|
|
978
1251
|
case "UpdateLoanToValuePct": {
|
|
@@ -990,14 +1263,14 @@ function fromJSON(obj) {
|
|
|
990
1263
|
case "UpdateProtocolTakeRate": {
|
|
991
1264
|
return new UpdateProtocolTakeRate();
|
|
992
1265
|
}
|
|
993
|
-
case "
|
|
994
|
-
return new
|
|
1266
|
+
case "UpdateFeesOriginationFee": {
|
|
1267
|
+
return new UpdateFeesOriginationFee();
|
|
995
1268
|
}
|
|
996
1269
|
case "UpdateFeesFlashLoanFee": {
|
|
997
1270
|
return new UpdateFeesFlashLoanFee();
|
|
998
1271
|
}
|
|
999
|
-
case "
|
|
1000
|
-
return new
|
|
1272
|
+
case "DeprecatedUpdateFeesReferralFeeBps": {
|
|
1273
|
+
return new DeprecatedUpdateFeesReferralFeeBps();
|
|
1001
1274
|
}
|
|
1002
1275
|
case "UpdateDepositLimit": {
|
|
1003
1276
|
return new UpdateDepositLimit();
|
|
@@ -1047,8 +1320,8 @@ function fromJSON(obj) {
|
|
|
1047
1320
|
case "UpdateBorrowRateCurve": {
|
|
1048
1321
|
return new UpdateBorrowRateCurve();
|
|
1049
1322
|
}
|
|
1050
|
-
case "
|
|
1051
|
-
return new
|
|
1323
|
+
case "DeprecatedUpdateEntireReserveConfig": {
|
|
1324
|
+
return new DeprecatedUpdateEntireReserveConfig();
|
|
1052
1325
|
}
|
|
1053
1326
|
case "UpdateDebtWithdrawalCap": {
|
|
1054
1327
|
return new UpdateDebtWithdrawalCap();
|
|
@@ -1056,11 +1329,11 @@ function fromJSON(obj) {
|
|
|
1056
1329
|
case "UpdateDepositWithdrawalCap": {
|
|
1057
1330
|
return new UpdateDepositWithdrawalCap();
|
|
1058
1331
|
}
|
|
1059
|
-
case "
|
|
1060
|
-
return new
|
|
1332
|
+
case "DeprecatedUpdateDebtWithdrawalCapCurrentTotal": {
|
|
1333
|
+
return new DeprecatedUpdateDebtWithdrawalCapCurrentTotal();
|
|
1061
1334
|
}
|
|
1062
|
-
case "
|
|
1063
|
-
return new
|
|
1335
|
+
case "DeprecatedUpdateDepositWithdrawalCapCurrentTotal": {
|
|
1336
|
+
return new DeprecatedUpdateDepositWithdrawalCapCurrentTotal();
|
|
1064
1337
|
}
|
|
1065
1338
|
case "UpdateBadDebtLiquidationBonusBps": {
|
|
1066
1339
|
return new UpdateBadDebtLiquidationBonusBps();
|
|
@@ -1068,20 +1341,20 @@ function fromJSON(obj) {
|
|
|
1068
1341
|
case "UpdateMinLiquidationBonusBps": {
|
|
1069
1342
|
return new UpdateMinLiquidationBonusBps();
|
|
1070
1343
|
}
|
|
1071
|
-
case "
|
|
1072
|
-
return new
|
|
1344
|
+
case "UpdateDeleveragingMarginCallPeriod": {
|
|
1345
|
+
return new UpdateDeleveragingMarginCallPeriod();
|
|
1073
1346
|
}
|
|
1074
1347
|
case "UpdateBorrowFactor": {
|
|
1075
1348
|
return new UpdateBorrowFactor();
|
|
1076
1349
|
}
|
|
1077
|
-
case "
|
|
1078
|
-
return new
|
|
1350
|
+
case "DeprecatedUpdateAssetTier": {
|
|
1351
|
+
return new DeprecatedUpdateAssetTier();
|
|
1079
1352
|
}
|
|
1080
1353
|
case "UpdateElevationGroup": {
|
|
1081
1354
|
return new UpdateElevationGroup();
|
|
1082
1355
|
}
|
|
1083
|
-
case "
|
|
1084
|
-
return new
|
|
1356
|
+
case "UpdateDeleveragingThresholdDecreaseBpsPerDay": {
|
|
1357
|
+
return new UpdateDeleveragingThresholdDecreaseBpsPerDay();
|
|
1085
1358
|
}
|
|
1086
1359
|
case "DeprecatedUpdateMultiplierSideBoost": {
|
|
1087
1360
|
return new DeprecatedUpdateMultiplierSideBoost();
|
|
@@ -1101,8 +1374,8 @@ function fromJSON(obj) {
|
|
|
1101
1374
|
case "UpdateDisableUsageAsCollateralOutsideEmode": {
|
|
1102
1375
|
return new UpdateDisableUsageAsCollateralOutsideEmode();
|
|
1103
1376
|
}
|
|
1104
|
-
case "
|
|
1105
|
-
return new
|
|
1377
|
+
case "UpdateBlockBorrowingAboveUtilizationPct": {
|
|
1378
|
+
return new UpdateBlockBorrowingAboveUtilizationPct();
|
|
1106
1379
|
}
|
|
1107
1380
|
case "UpdateBlockPriceUsage": {
|
|
1108
1381
|
return new UpdateBlockPriceUsage();
|
|
@@ -1116,9 +1389,47 @@ function fromJSON(obj) {
|
|
|
1116
1389
|
case "UpdateHostFixedInterestRateBps": {
|
|
1117
1390
|
return new UpdateHostFixedInterestRateBps();
|
|
1118
1391
|
}
|
|
1392
|
+
case "UpdateAutodeleverageEnabled": {
|
|
1393
|
+
return new UpdateAutodeleverageEnabled();
|
|
1394
|
+
}
|
|
1395
|
+
case "UpdateDeleveragingBonusIncreaseBpsPerDay": {
|
|
1396
|
+
return new UpdateDeleveragingBonusIncreaseBpsPerDay();
|
|
1397
|
+
}
|
|
1398
|
+
case "UpdateProtocolOrderExecutionFee": {
|
|
1399
|
+
return new UpdateProtocolOrderExecutionFee();
|
|
1400
|
+
}
|
|
1401
|
+
case "UpdateProposerAuthorityLock": {
|
|
1402
|
+
return new UpdateProposerAuthorityLock();
|
|
1403
|
+
}
|
|
1404
|
+
case "UpdateMinDeleveragingBonusBps": {
|
|
1405
|
+
return new UpdateMinDeleveragingBonusBps();
|
|
1406
|
+
}
|
|
1407
|
+
case "UpdateBlockCTokenUsage": {
|
|
1408
|
+
return new UpdateBlockCTokenUsage();
|
|
1409
|
+
}
|
|
1410
|
+
case "UpdateDebtMaturityTimestamp": {
|
|
1411
|
+
return new UpdateDebtMaturityTimestamp();
|
|
1412
|
+
}
|
|
1413
|
+
case "UpdateDebtTermSeconds": {
|
|
1414
|
+
return new UpdateDebtTermSeconds();
|
|
1415
|
+
}
|
|
1416
|
+
case "UpdateEarlyRepayRemainingInterestPct": {
|
|
1417
|
+
return new UpdateEarlyRepayRemainingInterestPct();
|
|
1418
|
+
}
|
|
1419
|
+
case "UpdateReserveEmergencyMode": {
|
|
1420
|
+
return new UpdateReserveEmergencyMode();
|
|
1421
|
+
}
|
|
1422
|
+
case "UpdateRewardsAmountPerAccrualUnit": {
|
|
1423
|
+
return new UpdateRewardsAmountPerAccrualUnit();
|
|
1424
|
+
}
|
|
1425
|
+
case "UpdateReservePermissionedOps": {
|
|
1426
|
+
return new UpdateReservePermissionedOps();
|
|
1427
|
+
}
|
|
1428
|
+
case "UpdateInterestRateBasis": {
|
|
1429
|
+
return new UpdateInterestRateBasis();
|
|
1430
|
+
}
|
|
1119
1431
|
}
|
|
1120
1432
|
}
|
|
1121
|
-
exports.fromJSON = fromJSON;
|
|
1122
1433
|
function layout(property) {
|
|
1123
1434
|
const ret = borsh.rustEnum([
|
|
1124
1435
|
borsh.struct([], "UpdateLoanToValuePct"),
|
|
@@ -1126,9 +1437,9 @@ function layout(property) {
|
|
|
1126
1437
|
borsh.struct([], "UpdateLiquidationThresholdPct"),
|
|
1127
1438
|
borsh.struct([], "UpdateProtocolLiquidationFee"),
|
|
1128
1439
|
borsh.struct([], "UpdateProtocolTakeRate"),
|
|
1129
|
-
borsh.struct([], "
|
|
1440
|
+
borsh.struct([], "UpdateFeesOriginationFee"),
|
|
1130
1441
|
borsh.struct([], "UpdateFeesFlashLoanFee"),
|
|
1131
|
-
borsh.struct([], "
|
|
1442
|
+
borsh.struct([], "DeprecatedUpdateFeesReferralFeeBps"),
|
|
1132
1443
|
borsh.struct([], "UpdateDepositLimit"),
|
|
1133
1444
|
borsh.struct([], "UpdateBorrowLimit"),
|
|
1134
1445
|
borsh.struct([], "UpdateTokenInfoLowerHeuristic"),
|
|
@@ -1145,34 +1456,46 @@ function layout(property) {
|
|
|
1145
1456
|
borsh.struct([], "UpdateSwitchboardFeed"),
|
|
1146
1457
|
borsh.struct([], "UpdateSwitchboardTwapFeed"),
|
|
1147
1458
|
borsh.struct([], "UpdateBorrowRateCurve"),
|
|
1148
|
-
borsh.struct([], "
|
|
1459
|
+
borsh.struct([], "DeprecatedUpdateEntireReserveConfig"),
|
|
1149
1460
|
borsh.struct([], "UpdateDebtWithdrawalCap"),
|
|
1150
1461
|
borsh.struct([], "UpdateDepositWithdrawalCap"),
|
|
1151
|
-
borsh.struct([], "
|
|
1152
|
-
borsh.struct([], "
|
|
1462
|
+
borsh.struct([], "DeprecatedUpdateDebtWithdrawalCapCurrentTotal"),
|
|
1463
|
+
borsh.struct([], "DeprecatedUpdateDepositWithdrawalCapCurrentTotal"),
|
|
1153
1464
|
borsh.struct([], "UpdateBadDebtLiquidationBonusBps"),
|
|
1154
1465
|
borsh.struct([], "UpdateMinLiquidationBonusBps"),
|
|
1155
|
-
borsh.struct([], "
|
|
1466
|
+
borsh.struct([], "UpdateDeleveragingMarginCallPeriod"),
|
|
1156
1467
|
borsh.struct([], "UpdateBorrowFactor"),
|
|
1157
|
-
borsh.struct([], "
|
|
1468
|
+
borsh.struct([], "DeprecatedUpdateAssetTier"),
|
|
1158
1469
|
borsh.struct([], "UpdateElevationGroup"),
|
|
1159
|
-
borsh.struct([], "
|
|
1470
|
+
borsh.struct([], "UpdateDeleveragingThresholdDecreaseBpsPerDay"),
|
|
1160
1471
|
borsh.struct([], "DeprecatedUpdateMultiplierSideBoost"),
|
|
1161
1472
|
borsh.struct([], "DeprecatedUpdateMultiplierTagBoost"),
|
|
1162
1473
|
borsh.struct([], "UpdateReserveStatus"),
|
|
1163
1474
|
borsh.struct([], "UpdateFarmCollateral"),
|
|
1164
1475
|
borsh.struct([], "UpdateFarmDebt"),
|
|
1165
1476
|
borsh.struct([], "UpdateDisableUsageAsCollateralOutsideEmode"),
|
|
1166
|
-
borsh.struct([], "
|
|
1477
|
+
borsh.struct([], "UpdateBlockBorrowingAboveUtilizationPct"),
|
|
1167
1478
|
borsh.struct([], "UpdateBlockPriceUsage"),
|
|
1168
1479
|
borsh.struct([], "UpdateBorrowLimitOutsideElevationGroup"),
|
|
1169
1480
|
borsh.struct([], "UpdateBorrowLimitsInElevationGroupAgainstThisReserve"),
|
|
1170
1481
|
borsh.struct([], "UpdateHostFixedInterestRateBps"),
|
|
1482
|
+
borsh.struct([], "UpdateAutodeleverageEnabled"),
|
|
1483
|
+
borsh.struct([], "UpdateDeleveragingBonusIncreaseBpsPerDay"),
|
|
1484
|
+
borsh.struct([], "UpdateProtocolOrderExecutionFee"),
|
|
1485
|
+
borsh.struct([], "UpdateProposerAuthorityLock"),
|
|
1486
|
+
borsh.struct([], "UpdateMinDeleveragingBonusBps"),
|
|
1487
|
+
borsh.struct([], "UpdateBlockCTokenUsage"),
|
|
1488
|
+
borsh.struct([], "UpdateDebtMaturityTimestamp"),
|
|
1489
|
+
borsh.struct([], "UpdateDebtTermSeconds"),
|
|
1490
|
+
borsh.struct([], "UpdateEarlyRepayRemainingInterestPct"),
|
|
1491
|
+
borsh.struct([], "UpdateReserveEmergencyMode"),
|
|
1492
|
+
borsh.struct([], "UpdateRewardsAmountPerAccrualUnit"),
|
|
1493
|
+
borsh.struct([], "UpdateReservePermissionedOps"),
|
|
1494
|
+
borsh.struct([], "UpdateInterestRateBasis"),
|
|
1171
1495
|
]);
|
|
1172
1496
|
if (property !== undefined) {
|
|
1173
1497
|
return ret.replicate(property);
|
|
1174
1498
|
}
|
|
1175
1499
|
return ret;
|
|
1176
1500
|
}
|
|
1177
|
-
exports.layout = layout;
|
|
1178
1501
|
//# sourceMappingURL=UpdateConfigMode.js.map
|