@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,28 @@ 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.UpdateDisableNonceBlock = exports.UpdateReserveRewardsMaxAprBps = exports.DeprecatedUpdateReserveRewardsMaxAprPct = exports.UpdatePermissionedOps = exports.UpdatePermissioningAuthority = exports.UpdateWithdrawTicketCancellationEnabled = exports.UpdateMinPartialRolloverValue = exports.UpdateObligationBorrowMigrationToFixedExecutionEnabled = exports.UpdateTermBasedFullLiquidationDurationSecs = exports.UpdateObligationBorrowRolloverConfigurationEnabled = exports.UpdateOpenTermRolloverWindowDurationSeconds = exports.UpdateFixedTermRolloverWindowDurationSeconds = exports.UpdateMinWithdrawQueuedLiquidityValue = exports.UpdateWithdrawTicketRedemptionEnabled = exports.UpdateWithdrawTicketIssuanceEnabled = exports.UpdateMinBorrowOrderFillValue = exports.UpdateBorrowOrderExecutionEnabled = exports.UpdateBorrowOrderCreationEnabled = exports.UpdateObligationBorrowDebtTermLiquidationEnabled = exports.UpdateMatureReserveDebtLiquidationEnabled = exports.UpdatePriceTriggeredLiquidationDisabled = exports.UpdateProposerAuthority = exports.UpdateObligationOrderCreationEnabled = exports.UpdateImmutableFlag = exports.UpdateObligationOrderExecutionEnabled = exports.UpdateInitialDepositAmount = exports.UpdateIndividualAutodeleverageMarginCallPeriodSecs = exports.UpdateName = exports.UpdatePaddingFields = exports.UpdateMinValueBfSkipPriorityLiqCheck = exports.UpdateMinValueLtvSkipPriorityLiqCheck = exports.UpdateMinNetValueObligationPostAction = exports.UpdateBorrowingDisabled = exports.UpdateAutodeleverageEnabled = exports.UpdatePriceRefreshTriggerToMaxAgePct = exports.DeprecatedUpdateMultiplierPoints = exports.UpdateReferralFeeBps = exports.UpdateElevationGroup = exports.UpdateInsolvencyRiskLtv = exports.UpdateMinFullLiquidationThreshold = exports.UpdateEmergencyCouncil = exports.UpdateGlobalAllowedBorrow = exports.DeprecatedUpdateGlobalUnhealthyBorrow = exports.UpdateLiquidationMaxValue = exports.UpdateLiquidationCloseFactor = exports.UpdateEmergencyMode = exports.UpdateOwner = void 0;
|
|
37
|
+
exports.fromDecoded = fromDecoded;
|
|
38
|
+
exports.fromJSON = fromJSON;
|
|
39
|
+
exports.layout = layout;
|
|
27
40
|
const borsh = __importStar(require("@coral-xyz/borsh"));
|
|
28
41
|
class UpdateOwner {
|
|
29
42
|
static discriminator = 0;
|
|
@@ -93,23 +106,23 @@ class UpdateLiquidationMaxValue {
|
|
|
93
106
|
}
|
|
94
107
|
}
|
|
95
108
|
exports.UpdateLiquidationMaxValue = UpdateLiquidationMaxValue;
|
|
96
|
-
class
|
|
109
|
+
class DeprecatedUpdateGlobalUnhealthyBorrow {
|
|
97
110
|
static discriminator = 4;
|
|
98
|
-
static kind = "
|
|
111
|
+
static kind = "DeprecatedUpdateGlobalUnhealthyBorrow";
|
|
99
112
|
discriminator = 4;
|
|
100
|
-
kind = "
|
|
113
|
+
kind = "DeprecatedUpdateGlobalUnhealthyBorrow";
|
|
101
114
|
toJSON() {
|
|
102
115
|
return {
|
|
103
|
-
kind: "
|
|
116
|
+
kind: "DeprecatedUpdateGlobalUnhealthyBorrow",
|
|
104
117
|
};
|
|
105
118
|
}
|
|
106
119
|
toEncodable() {
|
|
107
120
|
return {
|
|
108
|
-
|
|
121
|
+
DeprecatedUpdateGlobalUnhealthyBorrow: {},
|
|
109
122
|
};
|
|
110
123
|
}
|
|
111
124
|
}
|
|
112
|
-
exports.
|
|
125
|
+
exports.DeprecatedUpdateGlobalUnhealthyBorrow = DeprecatedUpdateGlobalUnhealthyBorrow;
|
|
113
126
|
class UpdateGlobalAllowedBorrow {
|
|
114
127
|
static discriminator = 5;
|
|
115
128
|
static kind = "UpdateGlobalAllowedBorrow";
|
|
@@ -127,23 +140,23 @@ class UpdateGlobalAllowedBorrow {
|
|
|
127
140
|
}
|
|
128
141
|
}
|
|
129
142
|
exports.UpdateGlobalAllowedBorrow = UpdateGlobalAllowedBorrow;
|
|
130
|
-
class
|
|
143
|
+
class UpdateEmergencyCouncil {
|
|
131
144
|
static discriminator = 6;
|
|
132
|
-
static kind = "
|
|
145
|
+
static kind = "UpdateEmergencyCouncil";
|
|
133
146
|
discriminator = 6;
|
|
134
|
-
kind = "
|
|
147
|
+
kind = "UpdateEmergencyCouncil";
|
|
135
148
|
toJSON() {
|
|
136
149
|
return {
|
|
137
|
-
kind: "
|
|
150
|
+
kind: "UpdateEmergencyCouncil",
|
|
138
151
|
};
|
|
139
152
|
}
|
|
140
153
|
toEncodable() {
|
|
141
154
|
return {
|
|
142
|
-
|
|
155
|
+
UpdateEmergencyCouncil: {},
|
|
143
156
|
};
|
|
144
157
|
}
|
|
145
158
|
}
|
|
146
|
-
exports.
|
|
159
|
+
exports.UpdateEmergencyCouncil = UpdateEmergencyCouncil;
|
|
147
160
|
class UpdateMinFullLiquidationThreshold {
|
|
148
161
|
static discriminator = 7;
|
|
149
162
|
static kind = "UpdateMinFullLiquidationThreshold";
|
|
@@ -297,27 +310,44 @@ class UpdateMinNetValueObligationPostAction {
|
|
|
297
310
|
}
|
|
298
311
|
}
|
|
299
312
|
exports.UpdateMinNetValueObligationPostAction = UpdateMinNetValueObligationPostAction;
|
|
300
|
-
class
|
|
313
|
+
class UpdateMinValueLtvSkipPriorityLiqCheck {
|
|
301
314
|
static discriminator = 16;
|
|
302
|
-
static kind = "
|
|
315
|
+
static kind = "UpdateMinValueLtvSkipPriorityLiqCheck";
|
|
303
316
|
discriminator = 16;
|
|
304
|
-
kind = "
|
|
317
|
+
kind = "UpdateMinValueLtvSkipPriorityLiqCheck";
|
|
305
318
|
toJSON() {
|
|
306
319
|
return {
|
|
307
|
-
kind: "
|
|
320
|
+
kind: "UpdateMinValueLtvSkipPriorityLiqCheck",
|
|
308
321
|
};
|
|
309
322
|
}
|
|
310
323
|
toEncodable() {
|
|
311
324
|
return {
|
|
312
|
-
|
|
325
|
+
UpdateMinValueLtvSkipPriorityLiqCheck: {},
|
|
313
326
|
};
|
|
314
327
|
}
|
|
315
328
|
}
|
|
316
|
-
exports.
|
|
317
|
-
class
|
|
329
|
+
exports.UpdateMinValueLtvSkipPriorityLiqCheck = UpdateMinValueLtvSkipPriorityLiqCheck;
|
|
330
|
+
class UpdateMinValueBfSkipPriorityLiqCheck {
|
|
318
331
|
static discriminator = 17;
|
|
319
|
-
static kind = "
|
|
332
|
+
static kind = "UpdateMinValueBfSkipPriorityLiqCheck";
|
|
320
333
|
discriminator = 17;
|
|
334
|
+
kind = "UpdateMinValueBfSkipPriorityLiqCheck";
|
|
335
|
+
toJSON() {
|
|
336
|
+
return {
|
|
337
|
+
kind: "UpdateMinValueBfSkipPriorityLiqCheck",
|
|
338
|
+
};
|
|
339
|
+
}
|
|
340
|
+
toEncodable() {
|
|
341
|
+
return {
|
|
342
|
+
UpdateMinValueBfSkipPriorityLiqCheck: {},
|
|
343
|
+
};
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
exports.UpdateMinValueBfSkipPriorityLiqCheck = UpdateMinValueBfSkipPriorityLiqCheck;
|
|
347
|
+
class UpdatePaddingFields {
|
|
348
|
+
static discriminator = 18;
|
|
349
|
+
static kind = "UpdatePaddingFields";
|
|
350
|
+
discriminator = 18;
|
|
321
351
|
kind = "UpdatePaddingFields";
|
|
322
352
|
toJSON() {
|
|
323
353
|
return {
|
|
@@ -331,6 +361,482 @@ class UpdatePaddingFields {
|
|
|
331
361
|
}
|
|
332
362
|
}
|
|
333
363
|
exports.UpdatePaddingFields = UpdatePaddingFields;
|
|
364
|
+
class UpdateName {
|
|
365
|
+
static discriminator = 19;
|
|
366
|
+
static kind = "UpdateName";
|
|
367
|
+
discriminator = 19;
|
|
368
|
+
kind = "UpdateName";
|
|
369
|
+
toJSON() {
|
|
370
|
+
return {
|
|
371
|
+
kind: "UpdateName",
|
|
372
|
+
};
|
|
373
|
+
}
|
|
374
|
+
toEncodable() {
|
|
375
|
+
return {
|
|
376
|
+
UpdateName: {},
|
|
377
|
+
};
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
exports.UpdateName = UpdateName;
|
|
381
|
+
class UpdateIndividualAutodeleverageMarginCallPeriodSecs {
|
|
382
|
+
static discriminator = 20;
|
|
383
|
+
static kind = "UpdateIndividualAutodeleverageMarginCallPeriodSecs";
|
|
384
|
+
discriminator = 20;
|
|
385
|
+
kind = "UpdateIndividualAutodeleverageMarginCallPeriodSecs";
|
|
386
|
+
toJSON() {
|
|
387
|
+
return {
|
|
388
|
+
kind: "UpdateIndividualAutodeleverageMarginCallPeriodSecs",
|
|
389
|
+
};
|
|
390
|
+
}
|
|
391
|
+
toEncodable() {
|
|
392
|
+
return {
|
|
393
|
+
UpdateIndividualAutodeleverageMarginCallPeriodSecs: {},
|
|
394
|
+
};
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
exports.UpdateIndividualAutodeleverageMarginCallPeriodSecs = UpdateIndividualAutodeleverageMarginCallPeriodSecs;
|
|
398
|
+
class UpdateInitialDepositAmount {
|
|
399
|
+
static discriminator = 21;
|
|
400
|
+
static kind = "UpdateInitialDepositAmount";
|
|
401
|
+
discriminator = 21;
|
|
402
|
+
kind = "UpdateInitialDepositAmount";
|
|
403
|
+
toJSON() {
|
|
404
|
+
return {
|
|
405
|
+
kind: "UpdateInitialDepositAmount",
|
|
406
|
+
};
|
|
407
|
+
}
|
|
408
|
+
toEncodable() {
|
|
409
|
+
return {
|
|
410
|
+
UpdateInitialDepositAmount: {},
|
|
411
|
+
};
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
exports.UpdateInitialDepositAmount = UpdateInitialDepositAmount;
|
|
415
|
+
class UpdateObligationOrderExecutionEnabled {
|
|
416
|
+
static discriminator = 22;
|
|
417
|
+
static kind = "UpdateObligationOrderExecutionEnabled";
|
|
418
|
+
discriminator = 22;
|
|
419
|
+
kind = "UpdateObligationOrderExecutionEnabled";
|
|
420
|
+
toJSON() {
|
|
421
|
+
return {
|
|
422
|
+
kind: "UpdateObligationOrderExecutionEnabled",
|
|
423
|
+
};
|
|
424
|
+
}
|
|
425
|
+
toEncodable() {
|
|
426
|
+
return {
|
|
427
|
+
UpdateObligationOrderExecutionEnabled: {},
|
|
428
|
+
};
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
exports.UpdateObligationOrderExecutionEnabled = UpdateObligationOrderExecutionEnabled;
|
|
432
|
+
class UpdateImmutableFlag {
|
|
433
|
+
static discriminator = 23;
|
|
434
|
+
static kind = "UpdateImmutableFlag";
|
|
435
|
+
discriminator = 23;
|
|
436
|
+
kind = "UpdateImmutableFlag";
|
|
437
|
+
toJSON() {
|
|
438
|
+
return {
|
|
439
|
+
kind: "UpdateImmutableFlag",
|
|
440
|
+
};
|
|
441
|
+
}
|
|
442
|
+
toEncodable() {
|
|
443
|
+
return {
|
|
444
|
+
UpdateImmutableFlag: {},
|
|
445
|
+
};
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
exports.UpdateImmutableFlag = UpdateImmutableFlag;
|
|
449
|
+
class UpdateObligationOrderCreationEnabled {
|
|
450
|
+
static discriminator = 24;
|
|
451
|
+
static kind = "UpdateObligationOrderCreationEnabled";
|
|
452
|
+
discriminator = 24;
|
|
453
|
+
kind = "UpdateObligationOrderCreationEnabled";
|
|
454
|
+
toJSON() {
|
|
455
|
+
return {
|
|
456
|
+
kind: "UpdateObligationOrderCreationEnabled",
|
|
457
|
+
};
|
|
458
|
+
}
|
|
459
|
+
toEncodable() {
|
|
460
|
+
return {
|
|
461
|
+
UpdateObligationOrderCreationEnabled: {},
|
|
462
|
+
};
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
exports.UpdateObligationOrderCreationEnabled = UpdateObligationOrderCreationEnabled;
|
|
466
|
+
class UpdateProposerAuthority {
|
|
467
|
+
static discriminator = 25;
|
|
468
|
+
static kind = "UpdateProposerAuthority";
|
|
469
|
+
discriminator = 25;
|
|
470
|
+
kind = "UpdateProposerAuthority";
|
|
471
|
+
toJSON() {
|
|
472
|
+
return {
|
|
473
|
+
kind: "UpdateProposerAuthority",
|
|
474
|
+
};
|
|
475
|
+
}
|
|
476
|
+
toEncodable() {
|
|
477
|
+
return {
|
|
478
|
+
UpdateProposerAuthority: {},
|
|
479
|
+
};
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
exports.UpdateProposerAuthority = UpdateProposerAuthority;
|
|
483
|
+
class UpdatePriceTriggeredLiquidationDisabled {
|
|
484
|
+
static discriminator = 26;
|
|
485
|
+
static kind = "UpdatePriceTriggeredLiquidationDisabled";
|
|
486
|
+
discriminator = 26;
|
|
487
|
+
kind = "UpdatePriceTriggeredLiquidationDisabled";
|
|
488
|
+
toJSON() {
|
|
489
|
+
return {
|
|
490
|
+
kind: "UpdatePriceTriggeredLiquidationDisabled",
|
|
491
|
+
};
|
|
492
|
+
}
|
|
493
|
+
toEncodable() {
|
|
494
|
+
return {
|
|
495
|
+
UpdatePriceTriggeredLiquidationDisabled: {},
|
|
496
|
+
};
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
exports.UpdatePriceTriggeredLiquidationDisabled = UpdatePriceTriggeredLiquidationDisabled;
|
|
500
|
+
class UpdateMatureReserveDebtLiquidationEnabled {
|
|
501
|
+
static discriminator = 27;
|
|
502
|
+
static kind = "UpdateMatureReserveDebtLiquidationEnabled";
|
|
503
|
+
discriminator = 27;
|
|
504
|
+
kind = "UpdateMatureReserveDebtLiquidationEnabled";
|
|
505
|
+
toJSON() {
|
|
506
|
+
return {
|
|
507
|
+
kind: "UpdateMatureReserveDebtLiquidationEnabled",
|
|
508
|
+
};
|
|
509
|
+
}
|
|
510
|
+
toEncodable() {
|
|
511
|
+
return {
|
|
512
|
+
UpdateMatureReserveDebtLiquidationEnabled: {},
|
|
513
|
+
};
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
exports.UpdateMatureReserveDebtLiquidationEnabled = UpdateMatureReserveDebtLiquidationEnabled;
|
|
517
|
+
class UpdateObligationBorrowDebtTermLiquidationEnabled {
|
|
518
|
+
static discriminator = 28;
|
|
519
|
+
static kind = "UpdateObligationBorrowDebtTermLiquidationEnabled";
|
|
520
|
+
discriminator = 28;
|
|
521
|
+
kind = "UpdateObligationBorrowDebtTermLiquidationEnabled";
|
|
522
|
+
toJSON() {
|
|
523
|
+
return {
|
|
524
|
+
kind: "UpdateObligationBorrowDebtTermLiquidationEnabled",
|
|
525
|
+
};
|
|
526
|
+
}
|
|
527
|
+
toEncodable() {
|
|
528
|
+
return {
|
|
529
|
+
UpdateObligationBorrowDebtTermLiquidationEnabled: {},
|
|
530
|
+
};
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
exports.UpdateObligationBorrowDebtTermLiquidationEnabled = UpdateObligationBorrowDebtTermLiquidationEnabled;
|
|
534
|
+
class UpdateBorrowOrderCreationEnabled {
|
|
535
|
+
static discriminator = 29;
|
|
536
|
+
static kind = "UpdateBorrowOrderCreationEnabled";
|
|
537
|
+
discriminator = 29;
|
|
538
|
+
kind = "UpdateBorrowOrderCreationEnabled";
|
|
539
|
+
toJSON() {
|
|
540
|
+
return {
|
|
541
|
+
kind: "UpdateBorrowOrderCreationEnabled",
|
|
542
|
+
};
|
|
543
|
+
}
|
|
544
|
+
toEncodable() {
|
|
545
|
+
return {
|
|
546
|
+
UpdateBorrowOrderCreationEnabled: {},
|
|
547
|
+
};
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
exports.UpdateBorrowOrderCreationEnabled = UpdateBorrowOrderCreationEnabled;
|
|
551
|
+
class UpdateBorrowOrderExecutionEnabled {
|
|
552
|
+
static discriminator = 30;
|
|
553
|
+
static kind = "UpdateBorrowOrderExecutionEnabled";
|
|
554
|
+
discriminator = 30;
|
|
555
|
+
kind = "UpdateBorrowOrderExecutionEnabled";
|
|
556
|
+
toJSON() {
|
|
557
|
+
return {
|
|
558
|
+
kind: "UpdateBorrowOrderExecutionEnabled",
|
|
559
|
+
};
|
|
560
|
+
}
|
|
561
|
+
toEncodable() {
|
|
562
|
+
return {
|
|
563
|
+
UpdateBorrowOrderExecutionEnabled: {},
|
|
564
|
+
};
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
exports.UpdateBorrowOrderExecutionEnabled = UpdateBorrowOrderExecutionEnabled;
|
|
568
|
+
class UpdateMinBorrowOrderFillValue {
|
|
569
|
+
static discriminator = 31;
|
|
570
|
+
static kind = "UpdateMinBorrowOrderFillValue";
|
|
571
|
+
discriminator = 31;
|
|
572
|
+
kind = "UpdateMinBorrowOrderFillValue";
|
|
573
|
+
toJSON() {
|
|
574
|
+
return {
|
|
575
|
+
kind: "UpdateMinBorrowOrderFillValue",
|
|
576
|
+
};
|
|
577
|
+
}
|
|
578
|
+
toEncodable() {
|
|
579
|
+
return {
|
|
580
|
+
UpdateMinBorrowOrderFillValue: {},
|
|
581
|
+
};
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
exports.UpdateMinBorrowOrderFillValue = UpdateMinBorrowOrderFillValue;
|
|
585
|
+
class UpdateWithdrawTicketIssuanceEnabled {
|
|
586
|
+
static discriminator = 32;
|
|
587
|
+
static kind = "UpdateWithdrawTicketIssuanceEnabled";
|
|
588
|
+
discriminator = 32;
|
|
589
|
+
kind = "UpdateWithdrawTicketIssuanceEnabled";
|
|
590
|
+
toJSON() {
|
|
591
|
+
return {
|
|
592
|
+
kind: "UpdateWithdrawTicketIssuanceEnabled",
|
|
593
|
+
};
|
|
594
|
+
}
|
|
595
|
+
toEncodable() {
|
|
596
|
+
return {
|
|
597
|
+
UpdateWithdrawTicketIssuanceEnabled: {},
|
|
598
|
+
};
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
exports.UpdateWithdrawTicketIssuanceEnabled = UpdateWithdrawTicketIssuanceEnabled;
|
|
602
|
+
class UpdateWithdrawTicketRedemptionEnabled {
|
|
603
|
+
static discriminator = 33;
|
|
604
|
+
static kind = "UpdateWithdrawTicketRedemptionEnabled";
|
|
605
|
+
discriminator = 33;
|
|
606
|
+
kind = "UpdateWithdrawTicketRedemptionEnabled";
|
|
607
|
+
toJSON() {
|
|
608
|
+
return {
|
|
609
|
+
kind: "UpdateWithdrawTicketRedemptionEnabled",
|
|
610
|
+
};
|
|
611
|
+
}
|
|
612
|
+
toEncodable() {
|
|
613
|
+
return {
|
|
614
|
+
UpdateWithdrawTicketRedemptionEnabled: {},
|
|
615
|
+
};
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
exports.UpdateWithdrawTicketRedemptionEnabled = UpdateWithdrawTicketRedemptionEnabled;
|
|
619
|
+
class UpdateMinWithdrawQueuedLiquidityValue {
|
|
620
|
+
static discriminator = 34;
|
|
621
|
+
static kind = "UpdateMinWithdrawQueuedLiquidityValue";
|
|
622
|
+
discriminator = 34;
|
|
623
|
+
kind = "UpdateMinWithdrawQueuedLiquidityValue";
|
|
624
|
+
toJSON() {
|
|
625
|
+
return {
|
|
626
|
+
kind: "UpdateMinWithdrawQueuedLiquidityValue",
|
|
627
|
+
};
|
|
628
|
+
}
|
|
629
|
+
toEncodable() {
|
|
630
|
+
return {
|
|
631
|
+
UpdateMinWithdrawQueuedLiquidityValue: {},
|
|
632
|
+
};
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
exports.UpdateMinWithdrawQueuedLiquidityValue = UpdateMinWithdrawQueuedLiquidityValue;
|
|
636
|
+
class UpdateFixedTermRolloverWindowDurationSeconds {
|
|
637
|
+
static discriminator = 35;
|
|
638
|
+
static kind = "UpdateFixedTermRolloverWindowDurationSeconds";
|
|
639
|
+
discriminator = 35;
|
|
640
|
+
kind = "UpdateFixedTermRolloverWindowDurationSeconds";
|
|
641
|
+
toJSON() {
|
|
642
|
+
return {
|
|
643
|
+
kind: "UpdateFixedTermRolloverWindowDurationSeconds",
|
|
644
|
+
};
|
|
645
|
+
}
|
|
646
|
+
toEncodable() {
|
|
647
|
+
return {
|
|
648
|
+
UpdateFixedTermRolloverWindowDurationSeconds: {},
|
|
649
|
+
};
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
exports.UpdateFixedTermRolloverWindowDurationSeconds = UpdateFixedTermRolloverWindowDurationSeconds;
|
|
653
|
+
class UpdateOpenTermRolloverWindowDurationSeconds {
|
|
654
|
+
static discriminator = 36;
|
|
655
|
+
static kind = "UpdateOpenTermRolloverWindowDurationSeconds";
|
|
656
|
+
discriminator = 36;
|
|
657
|
+
kind = "UpdateOpenTermRolloverWindowDurationSeconds";
|
|
658
|
+
toJSON() {
|
|
659
|
+
return {
|
|
660
|
+
kind: "UpdateOpenTermRolloverWindowDurationSeconds",
|
|
661
|
+
};
|
|
662
|
+
}
|
|
663
|
+
toEncodable() {
|
|
664
|
+
return {
|
|
665
|
+
UpdateOpenTermRolloverWindowDurationSeconds: {},
|
|
666
|
+
};
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
exports.UpdateOpenTermRolloverWindowDurationSeconds = UpdateOpenTermRolloverWindowDurationSeconds;
|
|
670
|
+
class UpdateObligationBorrowRolloverConfigurationEnabled {
|
|
671
|
+
static discriminator = 37;
|
|
672
|
+
static kind = "UpdateObligationBorrowRolloverConfigurationEnabled";
|
|
673
|
+
discriminator = 37;
|
|
674
|
+
kind = "UpdateObligationBorrowRolloverConfigurationEnabled";
|
|
675
|
+
toJSON() {
|
|
676
|
+
return {
|
|
677
|
+
kind: "UpdateObligationBorrowRolloverConfigurationEnabled",
|
|
678
|
+
};
|
|
679
|
+
}
|
|
680
|
+
toEncodable() {
|
|
681
|
+
return {
|
|
682
|
+
UpdateObligationBorrowRolloverConfigurationEnabled: {},
|
|
683
|
+
};
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
exports.UpdateObligationBorrowRolloverConfigurationEnabled = UpdateObligationBorrowRolloverConfigurationEnabled;
|
|
687
|
+
class UpdateTermBasedFullLiquidationDurationSecs {
|
|
688
|
+
static discriminator = 38;
|
|
689
|
+
static kind = "UpdateTermBasedFullLiquidationDurationSecs";
|
|
690
|
+
discriminator = 38;
|
|
691
|
+
kind = "UpdateTermBasedFullLiquidationDurationSecs";
|
|
692
|
+
toJSON() {
|
|
693
|
+
return {
|
|
694
|
+
kind: "UpdateTermBasedFullLiquidationDurationSecs",
|
|
695
|
+
};
|
|
696
|
+
}
|
|
697
|
+
toEncodable() {
|
|
698
|
+
return {
|
|
699
|
+
UpdateTermBasedFullLiquidationDurationSecs: {},
|
|
700
|
+
};
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
exports.UpdateTermBasedFullLiquidationDurationSecs = UpdateTermBasedFullLiquidationDurationSecs;
|
|
704
|
+
class UpdateObligationBorrowMigrationToFixedExecutionEnabled {
|
|
705
|
+
static discriminator = 39;
|
|
706
|
+
static kind = "UpdateObligationBorrowMigrationToFixedExecutionEnabled";
|
|
707
|
+
discriminator = 39;
|
|
708
|
+
kind = "UpdateObligationBorrowMigrationToFixedExecutionEnabled";
|
|
709
|
+
toJSON() {
|
|
710
|
+
return {
|
|
711
|
+
kind: "UpdateObligationBorrowMigrationToFixedExecutionEnabled",
|
|
712
|
+
};
|
|
713
|
+
}
|
|
714
|
+
toEncodable() {
|
|
715
|
+
return {
|
|
716
|
+
UpdateObligationBorrowMigrationToFixedExecutionEnabled: {},
|
|
717
|
+
};
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
exports.UpdateObligationBorrowMigrationToFixedExecutionEnabled = UpdateObligationBorrowMigrationToFixedExecutionEnabled;
|
|
721
|
+
class UpdateMinPartialRolloverValue {
|
|
722
|
+
static discriminator = 40;
|
|
723
|
+
static kind = "UpdateMinPartialRolloverValue";
|
|
724
|
+
discriminator = 40;
|
|
725
|
+
kind = "UpdateMinPartialRolloverValue";
|
|
726
|
+
toJSON() {
|
|
727
|
+
return {
|
|
728
|
+
kind: "UpdateMinPartialRolloverValue",
|
|
729
|
+
};
|
|
730
|
+
}
|
|
731
|
+
toEncodable() {
|
|
732
|
+
return {
|
|
733
|
+
UpdateMinPartialRolloverValue: {},
|
|
734
|
+
};
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
exports.UpdateMinPartialRolloverValue = UpdateMinPartialRolloverValue;
|
|
738
|
+
class UpdateWithdrawTicketCancellationEnabled {
|
|
739
|
+
static discriminator = 41;
|
|
740
|
+
static kind = "UpdateWithdrawTicketCancellationEnabled";
|
|
741
|
+
discriminator = 41;
|
|
742
|
+
kind = "UpdateWithdrawTicketCancellationEnabled";
|
|
743
|
+
toJSON() {
|
|
744
|
+
return {
|
|
745
|
+
kind: "UpdateWithdrawTicketCancellationEnabled",
|
|
746
|
+
};
|
|
747
|
+
}
|
|
748
|
+
toEncodable() {
|
|
749
|
+
return {
|
|
750
|
+
UpdateWithdrawTicketCancellationEnabled: {},
|
|
751
|
+
};
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
exports.UpdateWithdrawTicketCancellationEnabled = UpdateWithdrawTicketCancellationEnabled;
|
|
755
|
+
class UpdatePermissioningAuthority {
|
|
756
|
+
static discriminator = 42;
|
|
757
|
+
static kind = "UpdatePermissioningAuthority";
|
|
758
|
+
discriminator = 42;
|
|
759
|
+
kind = "UpdatePermissioningAuthority";
|
|
760
|
+
toJSON() {
|
|
761
|
+
return {
|
|
762
|
+
kind: "UpdatePermissioningAuthority",
|
|
763
|
+
};
|
|
764
|
+
}
|
|
765
|
+
toEncodable() {
|
|
766
|
+
return {
|
|
767
|
+
UpdatePermissioningAuthority: {},
|
|
768
|
+
};
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
exports.UpdatePermissioningAuthority = UpdatePermissioningAuthority;
|
|
772
|
+
class UpdatePermissionedOps {
|
|
773
|
+
static discriminator = 43;
|
|
774
|
+
static kind = "UpdatePermissionedOps";
|
|
775
|
+
discriminator = 43;
|
|
776
|
+
kind = "UpdatePermissionedOps";
|
|
777
|
+
toJSON() {
|
|
778
|
+
return {
|
|
779
|
+
kind: "UpdatePermissionedOps",
|
|
780
|
+
};
|
|
781
|
+
}
|
|
782
|
+
toEncodable() {
|
|
783
|
+
return {
|
|
784
|
+
UpdatePermissionedOps: {},
|
|
785
|
+
};
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
exports.UpdatePermissionedOps = UpdatePermissionedOps;
|
|
789
|
+
class DeprecatedUpdateReserveRewardsMaxAprPct {
|
|
790
|
+
static discriminator = 44;
|
|
791
|
+
static kind = "DeprecatedUpdateReserveRewardsMaxAprPct";
|
|
792
|
+
discriminator = 44;
|
|
793
|
+
kind = "DeprecatedUpdateReserveRewardsMaxAprPct";
|
|
794
|
+
toJSON() {
|
|
795
|
+
return {
|
|
796
|
+
kind: "DeprecatedUpdateReserveRewardsMaxAprPct",
|
|
797
|
+
};
|
|
798
|
+
}
|
|
799
|
+
toEncodable() {
|
|
800
|
+
return {
|
|
801
|
+
DeprecatedUpdateReserveRewardsMaxAprPct: {},
|
|
802
|
+
};
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
exports.DeprecatedUpdateReserveRewardsMaxAprPct = DeprecatedUpdateReserveRewardsMaxAprPct;
|
|
806
|
+
class UpdateReserveRewardsMaxAprBps {
|
|
807
|
+
static discriminator = 45;
|
|
808
|
+
static kind = "UpdateReserveRewardsMaxAprBps";
|
|
809
|
+
discriminator = 45;
|
|
810
|
+
kind = "UpdateReserveRewardsMaxAprBps";
|
|
811
|
+
toJSON() {
|
|
812
|
+
return {
|
|
813
|
+
kind: "UpdateReserveRewardsMaxAprBps",
|
|
814
|
+
};
|
|
815
|
+
}
|
|
816
|
+
toEncodable() {
|
|
817
|
+
return {
|
|
818
|
+
UpdateReserveRewardsMaxAprBps: {},
|
|
819
|
+
};
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
exports.UpdateReserveRewardsMaxAprBps = UpdateReserveRewardsMaxAprBps;
|
|
823
|
+
class UpdateDisableNonceBlock {
|
|
824
|
+
static discriminator = 46;
|
|
825
|
+
static kind = "UpdateDisableNonceBlock";
|
|
826
|
+
discriminator = 46;
|
|
827
|
+
kind = "UpdateDisableNonceBlock";
|
|
828
|
+
toJSON() {
|
|
829
|
+
return {
|
|
830
|
+
kind: "UpdateDisableNonceBlock",
|
|
831
|
+
};
|
|
832
|
+
}
|
|
833
|
+
toEncodable() {
|
|
834
|
+
return {
|
|
835
|
+
UpdateDisableNonceBlock: {},
|
|
836
|
+
};
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
exports.UpdateDisableNonceBlock = UpdateDisableNonceBlock;
|
|
334
840
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
335
841
|
function fromDecoded(obj) {
|
|
336
842
|
if (typeof obj !== "object") {
|
|
@@ -348,14 +854,14 @@ function fromDecoded(obj) {
|
|
|
348
854
|
if ("UpdateLiquidationMaxValue" in obj) {
|
|
349
855
|
return new UpdateLiquidationMaxValue();
|
|
350
856
|
}
|
|
351
|
-
if ("
|
|
352
|
-
return new
|
|
857
|
+
if ("DeprecatedUpdateGlobalUnhealthyBorrow" in obj) {
|
|
858
|
+
return new DeprecatedUpdateGlobalUnhealthyBorrow();
|
|
353
859
|
}
|
|
354
860
|
if ("UpdateGlobalAllowedBorrow" in obj) {
|
|
355
861
|
return new UpdateGlobalAllowedBorrow();
|
|
356
862
|
}
|
|
357
|
-
if ("
|
|
358
|
-
return new
|
|
863
|
+
if ("UpdateEmergencyCouncil" in obj) {
|
|
864
|
+
return new UpdateEmergencyCouncil();
|
|
359
865
|
}
|
|
360
866
|
if ("UpdateMinFullLiquidationThreshold" in obj) {
|
|
361
867
|
return new UpdateMinFullLiquidationThreshold();
|
|
@@ -384,15 +890,101 @@ function fromDecoded(obj) {
|
|
|
384
890
|
if ("UpdateMinNetValueObligationPostAction" in obj) {
|
|
385
891
|
return new UpdateMinNetValueObligationPostAction();
|
|
386
892
|
}
|
|
387
|
-
if ("
|
|
388
|
-
return new
|
|
893
|
+
if ("UpdateMinValueLtvSkipPriorityLiqCheck" in obj) {
|
|
894
|
+
return new UpdateMinValueLtvSkipPriorityLiqCheck();
|
|
895
|
+
}
|
|
896
|
+
if ("UpdateMinValueBfSkipPriorityLiqCheck" in obj) {
|
|
897
|
+
return new UpdateMinValueBfSkipPriorityLiqCheck();
|
|
389
898
|
}
|
|
390
899
|
if ("UpdatePaddingFields" in obj) {
|
|
391
900
|
return new UpdatePaddingFields();
|
|
392
901
|
}
|
|
902
|
+
if ("UpdateName" in obj) {
|
|
903
|
+
return new UpdateName();
|
|
904
|
+
}
|
|
905
|
+
if ("UpdateIndividualAutodeleverageMarginCallPeriodSecs" in obj) {
|
|
906
|
+
return new UpdateIndividualAutodeleverageMarginCallPeriodSecs();
|
|
907
|
+
}
|
|
908
|
+
if ("UpdateInitialDepositAmount" in obj) {
|
|
909
|
+
return new UpdateInitialDepositAmount();
|
|
910
|
+
}
|
|
911
|
+
if ("UpdateObligationOrderExecutionEnabled" in obj) {
|
|
912
|
+
return new UpdateObligationOrderExecutionEnabled();
|
|
913
|
+
}
|
|
914
|
+
if ("UpdateImmutableFlag" in obj) {
|
|
915
|
+
return new UpdateImmutableFlag();
|
|
916
|
+
}
|
|
917
|
+
if ("UpdateObligationOrderCreationEnabled" in obj) {
|
|
918
|
+
return new UpdateObligationOrderCreationEnabled();
|
|
919
|
+
}
|
|
920
|
+
if ("UpdateProposerAuthority" in obj) {
|
|
921
|
+
return new UpdateProposerAuthority();
|
|
922
|
+
}
|
|
923
|
+
if ("UpdatePriceTriggeredLiquidationDisabled" in obj) {
|
|
924
|
+
return new UpdatePriceTriggeredLiquidationDisabled();
|
|
925
|
+
}
|
|
926
|
+
if ("UpdateMatureReserveDebtLiquidationEnabled" in obj) {
|
|
927
|
+
return new UpdateMatureReserveDebtLiquidationEnabled();
|
|
928
|
+
}
|
|
929
|
+
if ("UpdateObligationBorrowDebtTermLiquidationEnabled" in obj) {
|
|
930
|
+
return new UpdateObligationBorrowDebtTermLiquidationEnabled();
|
|
931
|
+
}
|
|
932
|
+
if ("UpdateBorrowOrderCreationEnabled" in obj) {
|
|
933
|
+
return new UpdateBorrowOrderCreationEnabled();
|
|
934
|
+
}
|
|
935
|
+
if ("UpdateBorrowOrderExecutionEnabled" in obj) {
|
|
936
|
+
return new UpdateBorrowOrderExecutionEnabled();
|
|
937
|
+
}
|
|
938
|
+
if ("UpdateMinBorrowOrderFillValue" in obj) {
|
|
939
|
+
return new UpdateMinBorrowOrderFillValue();
|
|
940
|
+
}
|
|
941
|
+
if ("UpdateWithdrawTicketIssuanceEnabled" in obj) {
|
|
942
|
+
return new UpdateWithdrawTicketIssuanceEnabled();
|
|
943
|
+
}
|
|
944
|
+
if ("UpdateWithdrawTicketRedemptionEnabled" in obj) {
|
|
945
|
+
return new UpdateWithdrawTicketRedemptionEnabled();
|
|
946
|
+
}
|
|
947
|
+
if ("UpdateMinWithdrawQueuedLiquidityValue" in obj) {
|
|
948
|
+
return new UpdateMinWithdrawQueuedLiquidityValue();
|
|
949
|
+
}
|
|
950
|
+
if ("UpdateFixedTermRolloverWindowDurationSeconds" in obj) {
|
|
951
|
+
return new UpdateFixedTermRolloverWindowDurationSeconds();
|
|
952
|
+
}
|
|
953
|
+
if ("UpdateOpenTermRolloverWindowDurationSeconds" in obj) {
|
|
954
|
+
return new UpdateOpenTermRolloverWindowDurationSeconds();
|
|
955
|
+
}
|
|
956
|
+
if ("UpdateObligationBorrowRolloverConfigurationEnabled" in obj) {
|
|
957
|
+
return new UpdateObligationBorrowRolloverConfigurationEnabled();
|
|
958
|
+
}
|
|
959
|
+
if ("UpdateTermBasedFullLiquidationDurationSecs" in obj) {
|
|
960
|
+
return new UpdateTermBasedFullLiquidationDurationSecs();
|
|
961
|
+
}
|
|
962
|
+
if ("UpdateObligationBorrowMigrationToFixedExecutionEnabled" in obj) {
|
|
963
|
+
return new UpdateObligationBorrowMigrationToFixedExecutionEnabled();
|
|
964
|
+
}
|
|
965
|
+
if ("UpdateMinPartialRolloverValue" in obj) {
|
|
966
|
+
return new UpdateMinPartialRolloverValue();
|
|
967
|
+
}
|
|
968
|
+
if ("UpdateWithdrawTicketCancellationEnabled" in obj) {
|
|
969
|
+
return new UpdateWithdrawTicketCancellationEnabled();
|
|
970
|
+
}
|
|
971
|
+
if ("UpdatePermissioningAuthority" in obj) {
|
|
972
|
+
return new UpdatePermissioningAuthority();
|
|
973
|
+
}
|
|
974
|
+
if ("UpdatePermissionedOps" in obj) {
|
|
975
|
+
return new UpdatePermissionedOps();
|
|
976
|
+
}
|
|
977
|
+
if ("DeprecatedUpdateReserveRewardsMaxAprPct" in obj) {
|
|
978
|
+
return new DeprecatedUpdateReserveRewardsMaxAprPct();
|
|
979
|
+
}
|
|
980
|
+
if ("UpdateReserveRewardsMaxAprBps" in obj) {
|
|
981
|
+
return new UpdateReserveRewardsMaxAprBps();
|
|
982
|
+
}
|
|
983
|
+
if ("UpdateDisableNonceBlock" in obj) {
|
|
984
|
+
return new UpdateDisableNonceBlock();
|
|
985
|
+
}
|
|
393
986
|
throw new Error("Invalid enum object");
|
|
394
987
|
}
|
|
395
|
-
exports.fromDecoded = fromDecoded;
|
|
396
988
|
function fromJSON(obj) {
|
|
397
989
|
switch (obj.kind) {
|
|
398
990
|
case "UpdateOwner": {
|
|
@@ -407,14 +999,14 @@ function fromJSON(obj) {
|
|
|
407
999
|
case "UpdateLiquidationMaxValue": {
|
|
408
1000
|
return new UpdateLiquidationMaxValue();
|
|
409
1001
|
}
|
|
410
|
-
case "
|
|
411
|
-
return new
|
|
1002
|
+
case "DeprecatedUpdateGlobalUnhealthyBorrow": {
|
|
1003
|
+
return new DeprecatedUpdateGlobalUnhealthyBorrow();
|
|
412
1004
|
}
|
|
413
1005
|
case "UpdateGlobalAllowedBorrow": {
|
|
414
1006
|
return new UpdateGlobalAllowedBorrow();
|
|
415
1007
|
}
|
|
416
|
-
case "
|
|
417
|
-
return new
|
|
1008
|
+
case "UpdateEmergencyCouncil": {
|
|
1009
|
+
return new UpdateEmergencyCouncil();
|
|
418
1010
|
}
|
|
419
1011
|
case "UpdateMinFullLiquidationThreshold": {
|
|
420
1012
|
return new UpdateMinFullLiquidationThreshold();
|
|
@@ -443,24 +1035,110 @@ function fromJSON(obj) {
|
|
|
443
1035
|
case "UpdateMinNetValueObligationPostAction": {
|
|
444
1036
|
return new UpdateMinNetValueObligationPostAction();
|
|
445
1037
|
}
|
|
446
|
-
case "
|
|
447
|
-
return new
|
|
1038
|
+
case "UpdateMinValueLtvSkipPriorityLiqCheck": {
|
|
1039
|
+
return new UpdateMinValueLtvSkipPriorityLiqCheck();
|
|
1040
|
+
}
|
|
1041
|
+
case "UpdateMinValueBfSkipPriorityLiqCheck": {
|
|
1042
|
+
return new UpdateMinValueBfSkipPriorityLiqCheck();
|
|
448
1043
|
}
|
|
449
1044
|
case "UpdatePaddingFields": {
|
|
450
1045
|
return new UpdatePaddingFields();
|
|
451
1046
|
}
|
|
1047
|
+
case "UpdateName": {
|
|
1048
|
+
return new UpdateName();
|
|
1049
|
+
}
|
|
1050
|
+
case "UpdateIndividualAutodeleverageMarginCallPeriodSecs": {
|
|
1051
|
+
return new UpdateIndividualAutodeleverageMarginCallPeriodSecs();
|
|
1052
|
+
}
|
|
1053
|
+
case "UpdateInitialDepositAmount": {
|
|
1054
|
+
return new UpdateInitialDepositAmount();
|
|
1055
|
+
}
|
|
1056
|
+
case "UpdateObligationOrderExecutionEnabled": {
|
|
1057
|
+
return new UpdateObligationOrderExecutionEnabled();
|
|
1058
|
+
}
|
|
1059
|
+
case "UpdateImmutableFlag": {
|
|
1060
|
+
return new UpdateImmutableFlag();
|
|
1061
|
+
}
|
|
1062
|
+
case "UpdateObligationOrderCreationEnabled": {
|
|
1063
|
+
return new UpdateObligationOrderCreationEnabled();
|
|
1064
|
+
}
|
|
1065
|
+
case "UpdateProposerAuthority": {
|
|
1066
|
+
return new UpdateProposerAuthority();
|
|
1067
|
+
}
|
|
1068
|
+
case "UpdatePriceTriggeredLiquidationDisabled": {
|
|
1069
|
+
return new UpdatePriceTriggeredLiquidationDisabled();
|
|
1070
|
+
}
|
|
1071
|
+
case "UpdateMatureReserveDebtLiquidationEnabled": {
|
|
1072
|
+
return new UpdateMatureReserveDebtLiquidationEnabled();
|
|
1073
|
+
}
|
|
1074
|
+
case "UpdateObligationBorrowDebtTermLiquidationEnabled": {
|
|
1075
|
+
return new UpdateObligationBorrowDebtTermLiquidationEnabled();
|
|
1076
|
+
}
|
|
1077
|
+
case "UpdateBorrowOrderCreationEnabled": {
|
|
1078
|
+
return new UpdateBorrowOrderCreationEnabled();
|
|
1079
|
+
}
|
|
1080
|
+
case "UpdateBorrowOrderExecutionEnabled": {
|
|
1081
|
+
return new UpdateBorrowOrderExecutionEnabled();
|
|
1082
|
+
}
|
|
1083
|
+
case "UpdateMinBorrowOrderFillValue": {
|
|
1084
|
+
return new UpdateMinBorrowOrderFillValue();
|
|
1085
|
+
}
|
|
1086
|
+
case "UpdateWithdrawTicketIssuanceEnabled": {
|
|
1087
|
+
return new UpdateWithdrawTicketIssuanceEnabled();
|
|
1088
|
+
}
|
|
1089
|
+
case "UpdateWithdrawTicketRedemptionEnabled": {
|
|
1090
|
+
return new UpdateWithdrawTicketRedemptionEnabled();
|
|
1091
|
+
}
|
|
1092
|
+
case "UpdateMinWithdrawQueuedLiquidityValue": {
|
|
1093
|
+
return new UpdateMinWithdrawQueuedLiquidityValue();
|
|
1094
|
+
}
|
|
1095
|
+
case "UpdateFixedTermRolloverWindowDurationSeconds": {
|
|
1096
|
+
return new UpdateFixedTermRolloverWindowDurationSeconds();
|
|
1097
|
+
}
|
|
1098
|
+
case "UpdateOpenTermRolloverWindowDurationSeconds": {
|
|
1099
|
+
return new UpdateOpenTermRolloverWindowDurationSeconds();
|
|
1100
|
+
}
|
|
1101
|
+
case "UpdateObligationBorrowRolloverConfigurationEnabled": {
|
|
1102
|
+
return new UpdateObligationBorrowRolloverConfigurationEnabled();
|
|
1103
|
+
}
|
|
1104
|
+
case "UpdateTermBasedFullLiquidationDurationSecs": {
|
|
1105
|
+
return new UpdateTermBasedFullLiquidationDurationSecs();
|
|
1106
|
+
}
|
|
1107
|
+
case "UpdateObligationBorrowMigrationToFixedExecutionEnabled": {
|
|
1108
|
+
return new UpdateObligationBorrowMigrationToFixedExecutionEnabled();
|
|
1109
|
+
}
|
|
1110
|
+
case "UpdateMinPartialRolloverValue": {
|
|
1111
|
+
return new UpdateMinPartialRolloverValue();
|
|
1112
|
+
}
|
|
1113
|
+
case "UpdateWithdrawTicketCancellationEnabled": {
|
|
1114
|
+
return new UpdateWithdrawTicketCancellationEnabled();
|
|
1115
|
+
}
|
|
1116
|
+
case "UpdatePermissioningAuthority": {
|
|
1117
|
+
return new UpdatePermissioningAuthority();
|
|
1118
|
+
}
|
|
1119
|
+
case "UpdatePermissionedOps": {
|
|
1120
|
+
return new UpdatePermissionedOps();
|
|
1121
|
+
}
|
|
1122
|
+
case "DeprecatedUpdateReserveRewardsMaxAprPct": {
|
|
1123
|
+
return new DeprecatedUpdateReserveRewardsMaxAprPct();
|
|
1124
|
+
}
|
|
1125
|
+
case "UpdateReserveRewardsMaxAprBps": {
|
|
1126
|
+
return new UpdateReserveRewardsMaxAprBps();
|
|
1127
|
+
}
|
|
1128
|
+
case "UpdateDisableNonceBlock": {
|
|
1129
|
+
return new UpdateDisableNonceBlock();
|
|
1130
|
+
}
|
|
452
1131
|
}
|
|
453
1132
|
}
|
|
454
|
-
exports.fromJSON = fromJSON;
|
|
455
1133
|
function layout(property) {
|
|
456
1134
|
const ret = borsh.rustEnum([
|
|
457
1135
|
borsh.struct([], "UpdateOwner"),
|
|
458
1136
|
borsh.struct([], "UpdateEmergencyMode"),
|
|
459
1137
|
borsh.struct([], "UpdateLiquidationCloseFactor"),
|
|
460
1138
|
borsh.struct([], "UpdateLiquidationMaxValue"),
|
|
461
|
-
borsh.struct([], "
|
|
1139
|
+
borsh.struct([], "DeprecatedUpdateGlobalUnhealthyBorrow"),
|
|
462
1140
|
borsh.struct([], "UpdateGlobalAllowedBorrow"),
|
|
463
|
-
borsh.struct([], "
|
|
1141
|
+
borsh.struct([], "UpdateEmergencyCouncil"),
|
|
464
1142
|
borsh.struct([], "UpdateMinFullLiquidationThreshold"),
|
|
465
1143
|
borsh.struct([], "UpdateInsolvencyRiskLtv"),
|
|
466
1144
|
borsh.struct([], "UpdateElevationGroup"),
|
|
@@ -470,13 +1148,41 @@ function layout(property) {
|
|
|
470
1148
|
borsh.struct([], "UpdateAutodeleverageEnabled"),
|
|
471
1149
|
borsh.struct([], "UpdateBorrowingDisabled"),
|
|
472
1150
|
borsh.struct([], "UpdateMinNetValueObligationPostAction"),
|
|
473
|
-
borsh.struct([], "
|
|
1151
|
+
borsh.struct([], "UpdateMinValueLtvSkipPriorityLiqCheck"),
|
|
1152
|
+
borsh.struct([], "UpdateMinValueBfSkipPriorityLiqCheck"),
|
|
474
1153
|
borsh.struct([], "UpdatePaddingFields"),
|
|
1154
|
+
borsh.struct([], "UpdateName"),
|
|
1155
|
+
borsh.struct([], "UpdateIndividualAutodeleverageMarginCallPeriodSecs"),
|
|
1156
|
+
borsh.struct([], "UpdateInitialDepositAmount"),
|
|
1157
|
+
borsh.struct([], "UpdateObligationOrderExecutionEnabled"),
|
|
1158
|
+
borsh.struct([], "UpdateImmutableFlag"),
|
|
1159
|
+
borsh.struct([], "UpdateObligationOrderCreationEnabled"),
|
|
1160
|
+
borsh.struct([], "UpdateProposerAuthority"),
|
|
1161
|
+
borsh.struct([], "UpdatePriceTriggeredLiquidationDisabled"),
|
|
1162
|
+
borsh.struct([], "UpdateMatureReserveDebtLiquidationEnabled"),
|
|
1163
|
+
borsh.struct([], "UpdateObligationBorrowDebtTermLiquidationEnabled"),
|
|
1164
|
+
borsh.struct([], "UpdateBorrowOrderCreationEnabled"),
|
|
1165
|
+
borsh.struct([], "UpdateBorrowOrderExecutionEnabled"),
|
|
1166
|
+
borsh.struct([], "UpdateMinBorrowOrderFillValue"),
|
|
1167
|
+
borsh.struct([], "UpdateWithdrawTicketIssuanceEnabled"),
|
|
1168
|
+
borsh.struct([], "UpdateWithdrawTicketRedemptionEnabled"),
|
|
1169
|
+
borsh.struct([], "UpdateMinWithdrawQueuedLiquidityValue"),
|
|
1170
|
+
borsh.struct([], "UpdateFixedTermRolloverWindowDurationSeconds"),
|
|
1171
|
+
borsh.struct([], "UpdateOpenTermRolloverWindowDurationSeconds"),
|
|
1172
|
+
borsh.struct([], "UpdateObligationBorrowRolloverConfigurationEnabled"),
|
|
1173
|
+
borsh.struct([], "UpdateTermBasedFullLiquidationDurationSecs"),
|
|
1174
|
+
borsh.struct([], "UpdateObligationBorrowMigrationToFixedExecutionEnabled"),
|
|
1175
|
+
borsh.struct([], "UpdateMinPartialRolloverValue"),
|
|
1176
|
+
borsh.struct([], "UpdateWithdrawTicketCancellationEnabled"),
|
|
1177
|
+
borsh.struct([], "UpdatePermissioningAuthority"),
|
|
1178
|
+
borsh.struct([], "UpdatePermissionedOps"),
|
|
1179
|
+
borsh.struct([], "DeprecatedUpdateReserveRewardsMaxAprPct"),
|
|
1180
|
+
borsh.struct([], "UpdateReserveRewardsMaxAprBps"),
|
|
1181
|
+
borsh.struct([], "UpdateDisableNonceBlock"),
|
|
475
1182
|
]);
|
|
476
1183
|
if (property !== undefined) {
|
|
477
1184
|
return ret.replicate(property);
|
|
478
1185
|
}
|
|
479
1186
|
return ret;
|
|
480
1187
|
}
|
|
481
|
-
exports.layout = layout;
|
|
482
1188
|
//# sourceMappingURL=UpdateLendingMarketMode.js.map
|