@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
|
@@ -95,25 +95,25 @@ export class UpdateLiquidationMaxValue {
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
export interface
|
|
99
|
-
kind: "
|
|
98
|
+
export interface DeprecatedUpdateGlobalUnhealthyBorrowJSON {
|
|
99
|
+
kind: "DeprecatedUpdateGlobalUnhealthyBorrow"
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
export class
|
|
102
|
+
export class DeprecatedUpdateGlobalUnhealthyBorrow {
|
|
103
103
|
static readonly discriminator = 4
|
|
104
|
-
static readonly kind = "
|
|
104
|
+
static readonly kind = "DeprecatedUpdateGlobalUnhealthyBorrow"
|
|
105
105
|
readonly discriminator = 4
|
|
106
|
-
readonly kind = "
|
|
106
|
+
readonly kind = "DeprecatedUpdateGlobalUnhealthyBorrow"
|
|
107
107
|
|
|
108
|
-
toJSON():
|
|
108
|
+
toJSON(): DeprecatedUpdateGlobalUnhealthyBorrowJSON {
|
|
109
109
|
return {
|
|
110
|
-
kind: "
|
|
110
|
+
kind: "DeprecatedUpdateGlobalUnhealthyBorrow",
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
toEncodable() {
|
|
115
115
|
return {
|
|
116
|
-
|
|
116
|
+
DeprecatedUpdateGlobalUnhealthyBorrow: {},
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
}
|
|
@@ -141,25 +141,25 @@ export class UpdateGlobalAllowedBorrow {
|
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
export interface
|
|
145
|
-
kind: "
|
|
144
|
+
export interface UpdateEmergencyCouncilJSON {
|
|
145
|
+
kind: "UpdateEmergencyCouncil"
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
export class
|
|
148
|
+
export class UpdateEmergencyCouncil {
|
|
149
149
|
static readonly discriminator = 6
|
|
150
|
-
static readonly kind = "
|
|
150
|
+
static readonly kind = "UpdateEmergencyCouncil"
|
|
151
151
|
readonly discriminator = 6
|
|
152
|
-
readonly kind = "
|
|
152
|
+
readonly kind = "UpdateEmergencyCouncil"
|
|
153
153
|
|
|
154
|
-
toJSON():
|
|
154
|
+
toJSON(): UpdateEmergencyCouncilJSON {
|
|
155
155
|
return {
|
|
156
|
-
kind: "
|
|
156
|
+
kind: "UpdateEmergencyCouncil",
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
toEncodable() {
|
|
161
161
|
return {
|
|
162
|
-
|
|
162
|
+
UpdateEmergencyCouncil: {},
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
}
|
|
@@ -371,25 +371,48 @@ export class UpdateMinNetValueObligationPostAction {
|
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
373
|
|
|
374
|
-
export interface
|
|
375
|
-
kind: "
|
|
374
|
+
export interface UpdateMinValueLtvSkipPriorityLiqCheckJSON {
|
|
375
|
+
kind: "UpdateMinValueLtvSkipPriorityLiqCheck"
|
|
376
376
|
}
|
|
377
377
|
|
|
378
|
-
export class
|
|
378
|
+
export class UpdateMinValueLtvSkipPriorityLiqCheck {
|
|
379
379
|
static readonly discriminator = 16
|
|
380
|
-
static readonly kind = "
|
|
380
|
+
static readonly kind = "UpdateMinValueLtvSkipPriorityLiqCheck"
|
|
381
381
|
readonly discriminator = 16
|
|
382
|
-
readonly kind = "
|
|
382
|
+
readonly kind = "UpdateMinValueLtvSkipPriorityLiqCheck"
|
|
383
383
|
|
|
384
|
-
toJSON():
|
|
384
|
+
toJSON(): UpdateMinValueLtvSkipPriorityLiqCheckJSON {
|
|
385
385
|
return {
|
|
386
|
-
kind: "
|
|
386
|
+
kind: "UpdateMinValueLtvSkipPriorityLiqCheck",
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
389
|
|
|
390
390
|
toEncodable() {
|
|
391
391
|
return {
|
|
392
|
-
|
|
392
|
+
UpdateMinValueLtvSkipPriorityLiqCheck: {},
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
export interface UpdateMinValueBfSkipPriorityLiqCheckJSON {
|
|
398
|
+
kind: "UpdateMinValueBfSkipPriorityLiqCheck"
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
export class UpdateMinValueBfSkipPriorityLiqCheck {
|
|
402
|
+
static readonly discriminator = 17
|
|
403
|
+
static readonly kind = "UpdateMinValueBfSkipPriorityLiqCheck"
|
|
404
|
+
readonly discriminator = 17
|
|
405
|
+
readonly kind = "UpdateMinValueBfSkipPriorityLiqCheck"
|
|
406
|
+
|
|
407
|
+
toJSON(): UpdateMinValueBfSkipPriorityLiqCheckJSON {
|
|
408
|
+
return {
|
|
409
|
+
kind: "UpdateMinValueBfSkipPriorityLiqCheck",
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
toEncodable() {
|
|
414
|
+
return {
|
|
415
|
+
UpdateMinValueBfSkipPriorityLiqCheck: {},
|
|
393
416
|
}
|
|
394
417
|
}
|
|
395
418
|
}
|
|
@@ -399,9 +422,9 @@ export interface UpdatePaddingFieldsJSON {
|
|
|
399
422
|
}
|
|
400
423
|
|
|
401
424
|
export class UpdatePaddingFields {
|
|
402
|
-
static readonly discriminator =
|
|
425
|
+
static readonly discriminator = 18
|
|
403
426
|
static readonly kind = "UpdatePaddingFields"
|
|
404
|
-
readonly discriminator =
|
|
427
|
+
readonly discriminator = 18
|
|
405
428
|
readonly kind = "UpdatePaddingFields"
|
|
406
429
|
|
|
407
430
|
toJSON(): UpdatePaddingFieldsJSON {
|
|
@@ -417,6 +440,651 @@ export class UpdatePaddingFields {
|
|
|
417
440
|
}
|
|
418
441
|
}
|
|
419
442
|
|
|
443
|
+
export interface UpdateNameJSON {
|
|
444
|
+
kind: "UpdateName"
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
export class UpdateName {
|
|
448
|
+
static readonly discriminator = 19
|
|
449
|
+
static readonly kind = "UpdateName"
|
|
450
|
+
readonly discriminator = 19
|
|
451
|
+
readonly kind = "UpdateName"
|
|
452
|
+
|
|
453
|
+
toJSON(): UpdateNameJSON {
|
|
454
|
+
return {
|
|
455
|
+
kind: "UpdateName",
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
toEncodable() {
|
|
460
|
+
return {
|
|
461
|
+
UpdateName: {},
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
export interface UpdateIndividualAutodeleverageMarginCallPeriodSecsJSON {
|
|
467
|
+
kind: "UpdateIndividualAutodeleverageMarginCallPeriodSecs"
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
export class UpdateIndividualAutodeleverageMarginCallPeriodSecs {
|
|
471
|
+
static readonly discriminator = 20
|
|
472
|
+
static readonly kind = "UpdateIndividualAutodeleverageMarginCallPeriodSecs"
|
|
473
|
+
readonly discriminator = 20
|
|
474
|
+
readonly kind = "UpdateIndividualAutodeleverageMarginCallPeriodSecs"
|
|
475
|
+
|
|
476
|
+
toJSON(): UpdateIndividualAutodeleverageMarginCallPeriodSecsJSON {
|
|
477
|
+
return {
|
|
478
|
+
kind: "UpdateIndividualAutodeleverageMarginCallPeriodSecs",
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
toEncodable() {
|
|
483
|
+
return {
|
|
484
|
+
UpdateIndividualAutodeleverageMarginCallPeriodSecs: {},
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
export interface UpdateInitialDepositAmountJSON {
|
|
490
|
+
kind: "UpdateInitialDepositAmount"
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
export class UpdateInitialDepositAmount {
|
|
494
|
+
static readonly discriminator = 21
|
|
495
|
+
static readonly kind = "UpdateInitialDepositAmount"
|
|
496
|
+
readonly discriminator = 21
|
|
497
|
+
readonly kind = "UpdateInitialDepositAmount"
|
|
498
|
+
|
|
499
|
+
toJSON(): UpdateInitialDepositAmountJSON {
|
|
500
|
+
return {
|
|
501
|
+
kind: "UpdateInitialDepositAmount",
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
toEncodable() {
|
|
506
|
+
return {
|
|
507
|
+
UpdateInitialDepositAmount: {},
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
export interface UpdateObligationOrderExecutionEnabledJSON {
|
|
513
|
+
kind: "UpdateObligationOrderExecutionEnabled"
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
export class UpdateObligationOrderExecutionEnabled {
|
|
517
|
+
static readonly discriminator = 22
|
|
518
|
+
static readonly kind = "UpdateObligationOrderExecutionEnabled"
|
|
519
|
+
readonly discriminator = 22
|
|
520
|
+
readonly kind = "UpdateObligationOrderExecutionEnabled"
|
|
521
|
+
|
|
522
|
+
toJSON(): UpdateObligationOrderExecutionEnabledJSON {
|
|
523
|
+
return {
|
|
524
|
+
kind: "UpdateObligationOrderExecutionEnabled",
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
toEncodable() {
|
|
529
|
+
return {
|
|
530
|
+
UpdateObligationOrderExecutionEnabled: {},
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
export interface UpdateImmutableFlagJSON {
|
|
536
|
+
kind: "UpdateImmutableFlag"
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
export class UpdateImmutableFlag {
|
|
540
|
+
static readonly discriminator = 23
|
|
541
|
+
static readonly kind = "UpdateImmutableFlag"
|
|
542
|
+
readonly discriminator = 23
|
|
543
|
+
readonly kind = "UpdateImmutableFlag"
|
|
544
|
+
|
|
545
|
+
toJSON(): UpdateImmutableFlagJSON {
|
|
546
|
+
return {
|
|
547
|
+
kind: "UpdateImmutableFlag",
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
toEncodable() {
|
|
552
|
+
return {
|
|
553
|
+
UpdateImmutableFlag: {},
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
export interface UpdateObligationOrderCreationEnabledJSON {
|
|
559
|
+
kind: "UpdateObligationOrderCreationEnabled"
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
export class UpdateObligationOrderCreationEnabled {
|
|
563
|
+
static readonly discriminator = 24
|
|
564
|
+
static readonly kind = "UpdateObligationOrderCreationEnabled"
|
|
565
|
+
readonly discriminator = 24
|
|
566
|
+
readonly kind = "UpdateObligationOrderCreationEnabled"
|
|
567
|
+
|
|
568
|
+
toJSON(): UpdateObligationOrderCreationEnabledJSON {
|
|
569
|
+
return {
|
|
570
|
+
kind: "UpdateObligationOrderCreationEnabled",
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
toEncodable() {
|
|
575
|
+
return {
|
|
576
|
+
UpdateObligationOrderCreationEnabled: {},
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
export interface UpdateProposerAuthorityJSON {
|
|
582
|
+
kind: "UpdateProposerAuthority"
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
export class UpdateProposerAuthority {
|
|
586
|
+
static readonly discriminator = 25
|
|
587
|
+
static readonly kind = "UpdateProposerAuthority"
|
|
588
|
+
readonly discriminator = 25
|
|
589
|
+
readonly kind = "UpdateProposerAuthority"
|
|
590
|
+
|
|
591
|
+
toJSON(): UpdateProposerAuthorityJSON {
|
|
592
|
+
return {
|
|
593
|
+
kind: "UpdateProposerAuthority",
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
toEncodable() {
|
|
598
|
+
return {
|
|
599
|
+
UpdateProposerAuthority: {},
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
export interface UpdatePriceTriggeredLiquidationDisabledJSON {
|
|
605
|
+
kind: "UpdatePriceTriggeredLiquidationDisabled"
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
export class UpdatePriceTriggeredLiquidationDisabled {
|
|
609
|
+
static readonly discriminator = 26
|
|
610
|
+
static readonly kind = "UpdatePriceTriggeredLiquidationDisabled"
|
|
611
|
+
readonly discriminator = 26
|
|
612
|
+
readonly kind = "UpdatePriceTriggeredLiquidationDisabled"
|
|
613
|
+
|
|
614
|
+
toJSON(): UpdatePriceTriggeredLiquidationDisabledJSON {
|
|
615
|
+
return {
|
|
616
|
+
kind: "UpdatePriceTriggeredLiquidationDisabled",
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
toEncodable() {
|
|
621
|
+
return {
|
|
622
|
+
UpdatePriceTriggeredLiquidationDisabled: {},
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
export interface UpdateMatureReserveDebtLiquidationEnabledJSON {
|
|
628
|
+
kind: "UpdateMatureReserveDebtLiquidationEnabled"
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
export class UpdateMatureReserveDebtLiquidationEnabled {
|
|
632
|
+
static readonly discriminator = 27
|
|
633
|
+
static readonly kind = "UpdateMatureReserveDebtLiquidationEnabled"
|
|
634
|
+
readonly discriminator = 27
|
|
635
|
+
readonly kind = "UpdateMatureReserveDebtLiquidationEnabled"
|
|
636
|
+
|
|
637
|
+
toJSON(): UpdateMatureReserveDebtLiquidationEnabledJSON {
|
|
638
|
+
return {
|
|
639
|
+
kind: "UpdateMatureReserveDebtLiquidationEnabled",
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
toEncodable() {
|
|
644
|
+
return {
|
|
645
|
+
UpdateMatureReserveDebtLiquidationEnabled: {},
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
export interface UpdateObligationBorrowDebtTermLiquidationEnabledJSON {
|
|
651
|
+
kind: "UpdateObligationBorrowDebtTermLiquidationEnabled"
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
export class UpdateObligationBorrowDebtTermLiquidationEnabled {
|
|
655
|
+
static readonly discriminator = 28
|
|
656
|
+
static readonly kind = "UpdateObligationBorrowDebtTermLiquidationEnabled"
|
|
657
|
+
readonly discriminator = 28
|
|
658
|
+
readonly kind = "UpdateObligationBorrowDebtTermLiquidationEnabled"
|
|
659
|
+
|
|
660
|
+
toJSON(): UpdateObligationBorrowDebtTermLiquidationEnabledJSON {
|
|
661
|
+
return {
|
|
662
|
+
kind: "UpdateObligationBorrowDebtTermLiquidationEnabled",
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
toEncodable() {
|
|
667
|
+
return {
|
|
668
|
+
UpdateObligationBorrowDebtTermLiquidationEnabled: {},
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
export interface UpdateBorrowOrderCreationEnabledJSON {
|
|
674
|
+
kind: "UpdateBorrowOrderCreationEnabled"
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
export class UpdateBorrowOrderCreationEnabled {
|
|
678
|
+
static readonly discriminator = 29
|
|
679
|
+
static readonly kind = "UpdateBorrowOrderCreationEnabled"
|
|
680
|
+
readonly discriminator = 29
|
|
681
|
+
readonly kind = "UpdateBorrowOrderCreationEnabled"
|
|
682
|
+
|
|
683
|
+
toJSON(): UpdateBorrowOrderCreationEnabledJSON {
|
|
684
|
+
return {
|
|
685
|
+
kind: "UpdateBorrowOrderCreationEnabled",
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
toEncodable() {
|
|
690
|
+
return {
|
|
691
|
+
UpdateBorrowOrderCreationEnabled: {},
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
export interface UpdateBorrowOrderExecutionEnabledJSON {
|
|
697
|
+
kind: "UpdateBorrowOrderExecutionEnabled"
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
export class UpdateBorrowOrderExecutionEnabled {
|
|
701
|
+
static readonly discriminator = 30
|
|
702
|
+
static readonly kind = "UpdateBorrowOrderExecutionEnabled"
|
|
703
|
+
readonly discriminator = 30
|
|
704
|
+
readonly kind = "UpdateBorrowOrderExecutionEnabled"
|
|
705
|
+
|
|
706
|
+
toJSON(): UpdateBorrowOrderExecutionEnabledJSON {
|
|
707
|
+
return {
|
|
708
|
+
kind: "UpdateBorrowOrderExecutionEnabled",
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
toEncodable() {
|
|
713
|
+
return {
|
|
714
|
+
UpdateBorrowOrderExecutionEnabled: {},
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
export interface UpdateMinBorrowOrderFillValueJSON {
|
|
720
|
+
kind: "UpdateMinBorrowOrderFillValue"
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
export class UpdateMinBorrowOrderFillValue {
|
|
724
|
+
static readonly discriminator = 31
|
|
725
|
+
static readonly kind = "UpdateMinBorrowOrderFillValue"
|
|
726
|
+
readonly discriminator = 31
|
|
727
|
+
readonly kind = "UpdateMinBorrowOrderFillValue"
|
|
728
|
+
|
|
729
|
+
toJSON(): UpdateMinBorrowOrderFillValueJSON {
|
|
730
|
+
return {
|
|
731
|
+
kind: "UpdateMinBorrowOrderFillValue",
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
toEncodable() {
|
|
736
|
+
return {
|
|
737
|
+
UpdateMinBorrowOrderFillValue: {},
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
export interface UpdateWithdrawTicketIssuanceEnabledJSON {
|
|
743
|
+
kind: "UpdateWithdrawTicketIssuanceEnabled"
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
export class UpdateWithdrawTicketIssuanceEnabled {
|
|
747
|
+
static readonly discriminator = 32
|
|
748
|
+
static readonly kind = "UpdateWithdrawTicketIssuanceEnabled"
|
|
749
|
+
readonly discriminator = 32
|
|
750
|
+
readonly kind = "UpdateWithdrawTicketIssuanceEnabled"
|
|
751
|
+
|
|
752
|
+
toJSON(): UpdateWithdrawTicketIssuanceEnabledJSON {
|
|
753
|
+
return {
|
|
754
|
+
kind: "UpdateWithdrawTicketIssuanceEnabled",
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
toEncodable() {
|
|
759
|
+
return {
|
|
760
|
+
UpdateWithdrawTicketIssuanceEnabled: {},
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
export interface UpdateWithdrawTicketRedemptionEnabledJSON {
|
|
766
|
+
kind: "UpdateWithdrawTicketRedemptionEnabled"
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
export class UpdateWithdrawTicketRedemptionEnabled {
|
|
770
|
+
static readonly discriminator = 33
|
|
771
|
+
static readonly kind = "UpdateWithdrawTicketRedemptionEnabled"
|
|
772
|
+
readonly discriminator = 33
|
|
773
|
+
readonly kind = "UpdateWithdrawTicketRedemptionEnabled"
|
|
774
|
+
|
|
775
|
+
toJSON(): UpdateWithdrawTicketRedemptionEnabledJSON {
|
|
776
|
+
return {
|
|
777
|
+
kind: "UpdateWithdrawTicketRedemptionEnabled",
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
toEncodable() {
|
|
782
|
+
return {
|
|
783
|
+
UpdateWithdrawTicketRedemptionEnabled: {},
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
export interface UpdateMinWithdrawQueuedLiquidityValueJSON {
|
|
789
|
+
kind: "UpdateMinWithdrawQueuedLiquidityValue"
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
export class UpdateMinWithdrawQueuedLiquidityValue {
|
|
793
|
+
static readonly discriminator = 34
|
|
794
|
+
static readonly kind = "UpdateMinWithdrawQueuedLiquidityValue"
|
|
795
|
+
readonly discriminator = 34
|
|
796
|
+
readonly kind = "UpdateMinWithdrawQueuedLiquidityValue"
|
|
797
|
+
|
|
798
|
+
toJSON(): UpdateMinWithdrawQueuedLiquidityValueJSON {
|
|
799
|
+
return {
|
|
800
|
+
kind: "UpdateMinWithdrawQueuedLiquidityValue",
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
toEncodable() {
|
|
805
|
+
return {
|
|
806
|
+
UpdateMinWithdrawQueuedLiquidityValue: {},
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
export interface UpdateFixedTermRolloverWindowDurationSecondsJSON {
|
|
812
|
+
kind: "UpdateFixedTermRolloverWindowDurationSeconds"
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
export class UpdateFixedTermRolloverWindowDurationSeconds {
|
|
816
|
+
static readonly discriminator = 35
|
|
817
|
+
static readonly kind = "UpdateFixedTermRolloverWindowDurationSeconds"
|
|
818
|
+
readonly discriminator = 35
|
|
819
|
+
readonly kind = "UpdateFixedTermRolloverWindowDurationSeconds"
|
|
820
|
+
|
|
821
|
+
toJSON(): UpdateFixedTermRolloverWindowDurationSecondsJSON {
|
|
822
|
+
return {
|
|
823
|
+
kind: "UpdateFixedTermRolloverWindowDurationSeconds",
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
toEncodable() {
|
|
828
|
+
return {
|
|
829
|
+
UpdateFixedTermRolloverWindowDurationSeconds: {},
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
export interface UpdateOpenTermRolloverWindowDurationSecondsJSON {
|
|
835
|
+
kind: "UpdateOpenTermRolloverWindowDurationSeconds"
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
export class UpdateOpenTermRolloverWindowDurationSeconds {
|
|
839
|
+
static readonly discriminator = 36
|
|
840
|
+
static readonly kind = "UpdateOpenTermRolloverWindowDurationSeconds"
|
|
841
|
+
readonly discriminator = 36
|
|
842
|
+
readonly kind = "UpdateOpenTermRolloverWindowDurationSeconds"
|
|
843
|
+
|
|
844
|
+
toJSON(): UpdateOpenTermRolloverWindowDurationSecondsJSON {
|
|
845
|
+
return {
|
|
846
|
+
kind: "UpdateOpenTermRolloverWindowDurationSeconds",
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
toEncodable() {
|
|
851
|
+
return {
|
|
852
|
+
UpdateOpenTermRolloverWindowDurationSeconds: {},
|
|
853
|
+
}
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
export interface UpdateObligationBorrowRolloverConfigurationEnabledJSON {
|
|
858
|
+
kind: "UpdateObligationBorrowRolloverConfigurationEnabled"
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
export class UpdateObligationBorrowRolloverConfigurationEnabled {
|
|
862
|
+
static readonly discriminator = 37
|
|
863
|
+
static readonly kind = "UpdateObligationBorrowRolloverConfigurationEnabled"
|
|
864
|
+
readonly discriminator = 37
|
|
865
|
+
readonly kind = "UpdateObligationBorrowRolloverConfigurationEnabled"
|
|
866
|
+
|
|
867
|
+
toJSON(): UpdateObligationBorrowRolloverConfigurationEnabledJSON {
|
|
868
|
+
return {
|
|
869
|
+
kind: "UpdateObligationBorrowRolloverConfigurationEnabled",
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
toEncodable() {
|
|
874
|
+
return {
|
|
875
|
+
UpdateObligationBorrowRolloverConfigurationEnabled: {},
|
|
876
|
+
}
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
export interface UpdateTermBasedFullLiquidationDurationSecsJSON {
|
|
881
|
+
kind: "UpdateTermBasedFullLiquidationDurationSecs"
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
export class UpdateTermBasedFullLiquidationDurationSecs {
|
|
885
|
+
static readonly discriminator = 38
|
|
886
|
+
static readonly kind = "UpdateTermBasedFullLiquidationDurationSecs"
|
|
887
|
+
readonly discriminator = 38
|
|
888
|
+
readonly kind = "UpdateTermBasedFullLiquidationDurationSecs"
|
|
889
|
+
|
|
890
|
+
toJSON(): UpdateTermBasedFullLiquidationDurationSecsJSON {
|
|
891
|
+
return {
|
|
892
|
+
kind: "UpdateTermBasedFullLiquidationDurationSecs",
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
toEncodable() {
|
|
897
|
+
return {
|
|
898
|
+
UpdateTermBasedFullLiquidationDurationSecs: {},
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
export interface UpdateObligationBorrowMigrationToFixedExecutionEnabledJSON {
|
|
904
|
+
kind: "UpdateObligationBorrowMigrationToFixedExecutionEnabled"
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
export class UpdateObligationBorrowMigrationToFixedExecutionEnabled {
|
|
908
|
+
static readonly discriminator = 39
|
|
909
|
+
static readonly kind =
|
|
910
|
+
"UpdateObligationBorrowMigrationToFixedExecutionEnabled"
|
|
911
|
+
readonly discriminator = 39
|
|
912
|
+
readonly kind = "UpdateObligationBorrowMigrationToFixedExecutionEnabled"
|
|
913
|
+
|
|
914
|
+
toJSON(): UpdateObligationBorrowMigrationToFixedExecutionEnabledJSON {
|
|
915
|
+
return {
|
|
916
|
+
kind: "UpdateObligationBorrowMigrationToFixedExecutionEnabled",
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
toEncodable() {
|
|
921
|
+
return {
|
|
922
|
+
UpdateObligationBorrowMigrationToFixedExecutionEnabled: {},
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
export interface UpdateMinPartialRolloverValueJSON {
|
|
928
|
+
kind: "UpdateMinPartialRolloverValue"
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
export class UpdateMinPartialRolloverValue {
|
|
932
|
+
static readonly discriminator = 40
|
|
933
|
+
static readonly kind = "UpdateMinPartialRolloverValue"
|
|
934
|
+
readonly discriminator = 40
|
|
935
|
+
readonly kind = "UpdateMinPartialRolloverValue"
|
|
936
|
+
|
|
937
|
+
toJSON(): UpdateMinPartialRolloverValueJSON {
|
|
938
|
+
return {
|
|
939
|
+
kind: "UpdateMinPartialRolloverValue",
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
toEncodable() {
|
|
944
|
+
return {
|
|
945
|
+
UpdateMinPartialRolloverValue: {},
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
export interface UpdateWithdrawTicketCancellationEnabledJSON {
|
|
951
|
+
kind: "UpdateWithdrawTicketCancellationEnabled"
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
export class UpdateWithdrawTicketCancellationEnabled {
|
|
955
|
+
static readonly discriminator = 41
|
|
956
|
+
static readonly kind = "UpdateWithdrawTicketCancellationEnabled"
|
|
957
|
+
readonly discriminator = 41
|
|
958
|
+
readonly kind = "UpdateWithdrawTicketCancellationEnabled"
|
|
959
|
+
|
|
960
|
+
toJSON(): UpdateWithdrawTicketCancellationEnabledJSON {
|
|
961
|
+
return {
|
|
962
|
+
kind: "UpdateWithdrawTicketCancellationEnabled",
|
|
963
|
+
}
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
toEncodable() {
|
|
967
|
+
return {
|
|
968
|
+
UpdateWithdrawTicketCancellationEnabled: {},
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
export interface UpdatePermissioningAuthorityJSON {
|
|
974
|
+
kind: "UpdatePermissioningAuthority"
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
export class UpdatePermissioningAuthority {
|
|
978
|
+
static readonly discriminator = 42
|
|
979
|
+
static readonly kind = "UpdatePermissioningAuthority"
|
|
980
|
+
readonly discriminator = 42
|
|
981
|
+
readonly kind = "UpdatePermissioningAuthority"
|
|
982
|
+
|
|
983
|
+
toJSON(): UpdatePermissioningAuthorityJSON {
|
|
984
|
+
return {
|
|
985
|
+
kind: "UpdatePermissioningAuthority",
|
|
986
|
+
}
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
toEncodable() {
|
|
990
|
+
return {
|
|
991
|
+
UpdatePermissioningAuthority: {},
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
export interface UpdatePermissionedOpsJSON {
|
|
997
|
+
kind: "UpdatePermissionedOps"
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
export class UpdatePermissionedOps {
|
|
1001
|
+
static readonly discriminator = 43
|
|
1002
|
+
static readonly kind = "UpdatePermissionedOps"
|
|
1003
|
+
readonly discriminator = 43
|
|
1004
|
+
readonly kind = "UpdatePermissionedOps"
|
|
1005
|
+
|
|
1006
|
+
toJSON(): UpdatePermissionedOpsJSON {
|
|
1007
|
+
return {
|
|
1008
|
+
kind: "UpdatePermissionedOps",
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
toEncodable() {
|
|
1013
|
+
return {
|
|
1014
|
+
UpdatePermissionedOps: {},
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
export interface DeprecatedUpdateReserveRewardsMaxAprPctJSON {
|
|
1020
|
+
kind: "DeprecatedUpdateReserveRewardsMaxAprPct"
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
export class DeprecatedUpdateReserveRewardsMaxAprPct {
|
|
1024
|
+
static readonly discriminator = 44
|
|
1025
|
+
static readonly kind = "DeprecatedUpdateReserveRewardsMaxAprPct"
|
|
1026
|
+
readonly discriminator = 44
|
|
1027
|
+
readonly kind = "DeprecatedUpdateReserveRewardsMaxAprPct"
|
|
1028
|
+
|
|
1029
|
+
toJSON(): DeprecatedUpdateReserveRewardsMaxAprPctJSON {
|
|
1030
|
+
return {
|
|
1031
|
+
kind: "DeprecatedUpdateReserveRewardsMaxAprPct",
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
toEncodable() {
|
|
1036
|
+
return {
|
|
1037
|
+
DeprecatedUpdateReserveRewardsMaxAprPct: {},
|
|
1038
|
+
}
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
export interface UpdateReserveRewardsMaxAprBpsJSON {
|
|
1043
|
+
kind: "UpdateReserveRewardsMaxAprBps"
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
export class UpdateReserveRewardsMaxAprBps {
|
|
1047
|
+
static readonly discriminator = 45
|
|
1048
|
+
static readonly kind = "UpdateReserveRewardsMaxAprBps"
|
|
1049
|
+
readonly discriminator = 45
|
|
1050
|
+
readonly kind = "UpdateReserveRewardsMaxAprBps"
|
|
1051
|
+
|
|
1052
|
+
toJSON(): UpdateReserveRewardsMaxAprBpsJSON {
|
|
1053
|
+
return {
|
|
1054
|
+
kind: "UpdateReserveRewardsMaxAprBps",
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
toEncodable() {
|
|
1059
|
+
return {
|
|
1060
|
+
UpdateReserveRewardsMaxAprBps: {},
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
export interface UpdateDisableNonceBlockJSON {
|
|
1066
|
+
kind: "UpdateDisableNonceBlock"
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
export class UpdateDisableNonceBlock {
|
|
1070
|
+
static readonly discriminator = 46
|
|
1071
|
+
static readonly kind = "UpdateDisableNonceBlock"
|
|
1072
|
+
readonly discriminator = 46
|
|
1073
|
+
readonly kind = "UpdateDisableNonceBlock"
|
|
1074
|
+
|
|
1075
|
+
toJSON(): UpdateDisableNonceBlockJSON {
|
|
1076
|
+
return {
|
|
1077
|
+
kind: "UpdateDisableNonceBlock",
|
|
1078
|
+
}
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
toEncodable() {
|
|
1082
|
+
return {
|
|
1083
|
+
UpdateDisableNonceBlock: {},
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
}
|
|
1087
|
+
|
|
420
1088
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
421
1089
|
export function fromDecoded(obj: any): types.UpdateLendingMarketModeKind {
|
|
422
1090
|
if (typeof obj !== "object") {
|
|
@@ -435,14 +1103,14 @@ export function fromDecoded(obj: any): types.UpdateLendingMarketModeKind {
|
|
|
435
1103
|
if ("UpdateLiquidationMaxValue" in obj) {
|
|
436
1104
|
return new UpdateLiquidationMaxValue()
|
|
437
1105
|
}
|
|
438
|
-
if ("
|
|
439
|
-
return new
|
|
1106
|
+
if ("DeprecatedUpdateGlobalUnhealthyBorrow" in obj) {
|
|
1107
|
+
return new DeprecatedUpdateGlobalUnhealthyBorrow()
|
|
440
1108
|
}
|
|
441
1109
|
if ("UpdateGlobalAllowedBorrow" in obj) {
|
|
442
1110
|
return new UpdateGlobalAllowedBorrow()
|
|
443
1111
|
}
|
|
444
|
-
if ("
|
|
445
|
-
return new
|
|
1112
|
+
if ("UpdateEmergencyCouncil" in obj) {
|
|
1113
|
+
return new UpdateEmergencyCouncil()
|
|
446
1114
|
}
|
|
447
1115
|
if ("UpdateMinFullLiquidationThreshold" in obj) {
|
|
448
1116
|
return new UpdateMinFullLiquidationThreshold()
|
|
@@ -471,12 +1139,99 @@ export function fromDecoded(obj: any): types.UpdateLendingMarketModeKind {
|
|
|
471
1139
|
if ("UpdateMinNetValueObligationPostAction" in obj) {
|
|
472
1140
|
return new UpdateMinNetValueObligationPostAction()
|
|
473
1141
|
}
|
|
474
|
-
if ("
|
|
475
|
-
return new
|
|
1142
|
+
if ("UpdateMinValueLtvSkipPriorityLiqCheck" in obj) {
|
|
1143
|
+
return new UpdateMinValueLtvSkipPriorityLiqCheck()
|
|
1144
|
+
}
|
|
1145
|
+
if ("UpdateMinValueBfSkipPriorityLiqCheck" in obj) {
|
|
1146
|
+
return new UpdateMinValueBfSkipPriorityLiqCheck()
|
|
476
1147
|
}
|
|
477
1148
|
if ("UpdatePaddingFields" in obj) {
|
|
478
1149
|
return new UpdatePaddingFields()
|
|
479
1150
|
}
|
|
1151
|
+
if ("UpdateName" in obj) {
|
|
1152
|
+
return new UpdateName()
|
|
1153
|
+
}
|
|
1154
|
+
if ("UpdateIndividualAutodeleverageMarginCallPeriodSecs" in obj) {
|
|
1155
|
+
return new UpdateIndividualAutodeleverageMarginCallPeriodSecs()
|
|
1156
|
+
}
|
|
1157
|
+
if ("UpdateInitialDepositAmount" in obj) {
|
|
1158
|
+
return new UpdateInitialDepositAmount()
|
|
1159
|
+
}
|
|
1160
|
+
if ("UpdateObligationOrderExecutionEnabled" in obj) {
|
|
1161
|
+
return new UpdateObligationOrderExecutionEnabled()
|
|
1162
|
+
}
|
|
1163
|
+
if ("UpdateImmutableFlag" in obj) {
|
|
1164
|
+
return new UpdateImmutableFlag()
|
|
1165
|
+
}
|
|
1166
|
+
if ("UpdateObligationOrderCreationEnabled" in obj) {
|
|
1167
|
+
return new UpdateObligationOrderCreationEnabled()
|
|
1168
|
+
}
|
|
1169
|
+
if ("UpdateProposerAuthority" in obj) {
|
|
1170
|
+
return new UpdateProposerAuthority()
|
|
1171
|
+
}
|
|
1172
|
+
if ("UpdatePriceTriggeredLiquidationDisabled" in obj) {
|
|
1173
|
+
return new UpdatePriceTriggeredLiquidationDisabled()
|
|
1174
|
+
}
|
|
1175
|
+
if ("UpdateMatureReserveDebtLiquidationEnabled" in obj) {
|
|
1176
|
+
return new UpdateMatureReserveDebtLiquidationEnabled()
|
|
1177
|
+
}
|
|
1178
|
+
if ("UpdateObligationBorrowDebtTermLiquidationEnabled" in obj) {
|
|
1179
|
+
return new UpdateObligationBorrowDebtTermLiquidationEnabled()
|
|
1180
|
+
}
|
|
1181
|
+
if ("UpdateBorrowOrderCreationEnabled" in obj) {
|
|
1182
|
+
return new UpdateBorrowOrderCreationEnabled()
|
|
1183
|
+
}
|
|
1184
|
+
if ("UpdateBorrowOrderExecutionEnabled" in obj) {
|
|
1185
|
+
return new UpdateBorrowOrderExecutionEnabled()
|
|
1186
|
+
}
|
|
1187
|
+
if ("UpdateMinBorrowOrderFillValue" in obj) {
|
|
1188
|
+
return new UpdateMinBorrowOrderFillValue()
|
|
1189
|
+
}
|
|
1190
|
+
if ("UpdateWithdrawTicketIssuanceEnabled" in obj) {
|
|
1191
|
+
return new UpdateWithdrawTicketIssuanceEnabled()
|
|
1192
|
+
}
|
|
1193
|
+
if ("UpdateWithdrawTicketRedemptionEnabled" in obj) {
|
|
1194
|
+
return new UpdateWithdrawTicketRedemptionEnabled()
|
|
1195
|
+
}
|
|
1196
|
+
if ("UpdateMinWithdrawQueuedLiquidityValue" in obj) {
|
|
1197
|
+
return new UpdateMinWithdrawQueuedLiquidityValue()
|
|
1198
|
+
}
|
|
1199
|
+
if ("UpdateFixedTermRolloverWindowDurationSeconds" in obj) {
|
|
1200
|
+
return new UpdateFixedTermRolloverWindowDurationSeconds()
|
|
1201
|
+
}
|
|
1202
|
+
if ("UpdateOpenTermRolloverWindowDurationSeconds" in obj) {
|
|
1203
|
+
return new UpdateOpenTermRolloverWindowDurationSeconds()
|
|
1204
|
+
}
|
|
1205
|
+
if ("UpdateObligationBorrowRolloverConfigurationEnabled" in obj) {
|
|
1206
|
+
return new UpdateObligationBorrowRolloverConfigurationEnabled()
|
|
1207
|
+
}
|
|
1208
|
+
if ("UpdateTermBasedFullLiquidationDurationSecs" in obj) {
|
|
1209
|
+
return new UpdateTermBasedFullLiquidationDurationSecs()
|
|
1210
|
+
}
|
|
1211
|
+
if ("UpdateObligationBorrowMigrationToFixedExecutionEnabled" in obj) {
|
|
1212
|
+
return new UpdateObligationBorrowMigrationToFixedExecutionEnabled()
|
|
1213
|
+
}
|
|
1214
|
+
if ("UpdateMinPartialRolloverValue" in obj) {
|
|
1215
|
+
return new UpdateMinPartialRolloverValue()
|
|
1216
|
+
}
|
|
1217
|
+
if ("UpdateWithdrawTicketCancellationEnabled" in obj) {
|
|
1218
|
+
return new UpdateWithdrawTicketCancellationEnabled()
|
|
1219
|
+
}
|
|
1220
|
+
if ("UpdatePermissioningAuthority" in obj) {
|
|
1221
|
+
return new UpdatePermissioningAuthority()
|
|
1222
|
+
}
|
|
1223
|
+
if ("UpdatePermissionedOps" in obj) {
|
|
1224
|
+
return new UpdatePermissionedOps()
|
|
1225
|
+
}
|
|
1226
|
+
if ("DeprecatedUpdateReserveRewardsMaxAprPct" in obj) {
|
|
1227
|
+
return new DeprecatedUpdateReserveRewardsMaxAprPct()
|
|
1228
|
+
}
|
|
1229
|
+
if ("UpdateReserveRewardsMaxAprBps" in obj) {
|
|
1230
|
+
return new UpdateReserveRewardsMaxAprBps()
|
|
1231
|
+
}
|
|
1232
|
+
if ("UpdateDisableNonceBlock" in obj) {
|
|
1233
|
+
return new UpdateDisableNonceBlock()
|
|
1234
|
+
}
|
|
480
1235
|
|
|
481
1236
|
throw new Error("Invalid enum object")
|
|
482
1237
|
}
|
|
@@ -497,14 +1252,14 @@ export function fromJSON(
|
|
|
497
1252
|
case "UpdateLiquidationMaxValue": {
|
|
498
1253
|
return new UpdateLiquidationMaxValue()
|
|
499
1254
|
}
|
|
500
|
-
case "
|
|
501
|
-
return new
|
|
1255
|
+
case "DeprecatedUpdateGlobalUnhealthyBorrow": {
|
|
1256
|
+
return new DeprecatedUpdateGlobalUnhealthyBorrow()
|
|
502
1257
|
}
|
|
503
1258
|
case "UpdateGlobalAllowedBorrow": {
|
|
504
1259
|
return new UpdateGlobalAllowedBorrow()
|
|
505
1260
|
}
|
|
506
|
-
case "
|
|
507
|
-
return new
|
|
1261
|
+
case "UpdateEmergencyCouncil": {
|
|
1262
|
+
return new UpdateEmergencyCouncil()
|
|
508
1263
|
}
|
|
509
1264
|
case "UpdateMinFullLiquidationThreshold": {
|
|
510
1265
|
return new UpdateMinFullLiquidationThreshold()
|
|
@@ -533,12 +1288,99 @@ export function fromJSON(
|
|
|
533
1288
|
case "UpdateMinNetValueObligationPostAction": {
|
|
534
1289
|
return new UpdateMinNetValueObligationPostAction()
|
|
535
1290
|
}
|
|
536
|
-
case "
|
|
537
|
-
return new
|
|
1291
|
+
case "UpdateMinValueLtvSkipPriorityLiqCheck": {
|
|
1292
|
+
return new UpdateMinValueLtvSkipPriorityLiqCheck()
|
|
1293
|
+
}
|
|
1294
|
+
case "UpdateMinValueBfSkipPriorityLiqCheck": {
|
|
1295
|
+
return new UpdateMinValueBfSkipPriorityLiqCheck()
|
|
538
1296
|
}
|
|
539
1297
|
case "UpdatePaddingFields": {
|
|
540
1298
|
return new UpdatePaddingFields()
|
|
541
1299
|
}
|
|
1300
|
+
case "UpdateName": {
|
|
1301
|
+
return new UpdateName()
|
|
1302
|
+
}
|
|
1303
|
+
case "UpdateIndividualAutodeleverageMarginCallPeriodSecs": {
|
|
1304
|
+
return new UpdateIndividualAutodeleverageMarginCallPeriodSecs()
|
|
1305
|
+
}
|
|
1306
|
+
case "UpdateInitialDepositAmount": {
|
|
1307
|
+
return new UpdateInitialDepositAmount()
|
|
1308
|
+
}
|
|
1309
|
+
case "UpdateObligationOrderExecutionEnabled": {
|
|
1310
|
+
return new UpdateObligationOrderExecutionEnabled()
|
|
1311
|
+
}
|
|
1312
|
+
case "UpdateImmutableFlag": {
|
|
1313
|
+
return new UpdateImmutableFlag()
|
|
1314
|
+
}
|
|
1315
|
+
case "UpdateObligationOrderCreationEnabled": {
|
|
1316
|
+
return new UpdateObligationOrderCreationEnabled()
|
|
1317
|
+
}
|
|
1318
|
+
case "UpdateProposerAuthority": {
|
|
1319
|
+
return new UpdateProposerAuthority()
|
|
1320
|
+
}
|
|
1321
|
+
case "UpdatePriceTriggeredLiquidationDisabled": {
|
|
1322
|
+
return new UpdatePriceTriggeredLiquidationDisabled()
|
|
1323
|
+
}
|
|
1324
|
+
case "UpdateMatureReserveDebtLiquidationEnabled": {
|
|
1325
|
+
return new UpdateMatureReserveDebtLiquidationEnabled()
|
|
1326
|
+
}
|
|
1327
|
+
case "UpdateObligationBorrowDebtTermLiquidationEnabled": {
|
|
1328
|
+
return new UpdateObligationBorrowDebtTermLiquidationEnabled()
|
|
1329
|
+
}
|
|
1330
|
+
case "UpdateBorrowOrderCreationEnabled": {
|
|
1331
|
+
return new UpdateBorrowOrderCreationEnabled()
|
|
1332
|
+
}
|
|
1333
|
+
case "UpdateBorrowOrderExecutionEnabled": {
|
|
1334
|
+
return new UpdateBorrowOrderExecutionEnabled()
|
|
1335
|
+
}
|
|
1336
|
+
case "UpdateMinBorrowOrderFillValue": {
|
|
1337
|
+
return new UpdateMinBorrowOrderFillValue()
|
|
1338
|
+
}
|
|
1339
|
+
case "UpdateWithdrawTicketIssuanceEnabled": {
|
|
1340
|
+
return new UpdateWithdrawTicketIssuanceEnabled()
|
|
1341
|
+
}
|
|
1342
|
+
case "UpdateWithdrawTicketRedemptionEnabled": {
|
|
1343
|
+
return new UpdateWithdrawTicketRedemptionEnabled()
|
|
1344
|
+
}
|
|
1345
|
+
case "UpdateMinWithdrawQueuedLiquidityValue": {
|
|
1346
|
+
return new UpdateMinWithdrawQueuedLiquidityValue()
|
|
1347
|
+
}
|
|
1348
|
+
case "UpdateFixedTermRolloverWindowDurationSeconds": {
|
|
1349
|
+
return new UpdateFixedTermRolloverWindowDurationSeconds()
|
|
1350
|
+
}
|
|
1351
|
+
case "UpdateOpenTermRolloverWindowDurationSeconds": {
|
|
1352
|
+
return new UpdateOpenTermRolloverWindowDurationSeconds()
|
|
1353
|
+
}
|
|
1354
|
+
case "UpdateObligationBorrowRolloverConfigurationEnabled": {
|
|
1355
|
+
return new UpdateObligationBorrowRolloverConfigurationEnabled()
|
|
1356
|
+
}
|
|
1357
|
+
case "UpdateTermBasedFullLiquidationDurationSecs": {
|
|
1358
|
+
return new UpdateTermBasedFullLiquidationDurationSecs()
|
|
1359
|
+
}
|
|
1360
|
+
case "UpdateObligationBorrowMigrationToFixedExecutionEnabled": {
|
|
1361
|
+
return new UpdateObligationBorrowMigrationToFixedExecutionEnabled()
|
|
1362
|
+
}
|
|
1363
|
+
case "UpdateMinPartialRolloverValue": {
|
|
1364
|
+
return new UpdateMinPartialRolloverValue()
|
|
1365
|
+
}
|
|
1366
|
+
case "UpdateWithdrawTicketCancellationEnabled": {
|
|
1367
|
+
return new UpdateWithdrawTicketCancellationEnabled()
|
|
1368
|
+
}
|
|
1369
|
+
case "UpdatePermissioningAuthority": {
|
|
1370
|
+
return new UpdatePermissioningAuthority()
|
|
1371
|
+
}
|
|
1372
|
+
case "UpdatePermissionedOps": {
|
|
1373
|
+
return new UpdatePermissionedOps()
|
|
1374
|
+
}
|
|
1375
|
+
case "DeprecatedUpdateReserveRewardsMaxAprPct": {
|
|
1376
|
+
return new DeprecatedUpdateReserveRewardsMaxAprPct()
|
|
1377
|
+
}
|
|
1378
|
+
case "UpdateReserveRewardsMaxAprBps": {
|
|
1379
|
+
return new UpdateReserveRewardsMaxAprBps()
|
|
1380
|
+
}
|
|
1381
|
+
case "UpdateDisableNonceBlock": {
|
|
1382
|
+
return new UpdateDisableNonceBlock()
|
|
1383
|
+
}
|
|
542
1384
|
}
|
|
543
1385
|
}
|
|
544
1386
|
|
|
@@ -548,9 +1390,9 @@ export function layout(property?: string) {
|
|
|
548
1390
|
borsh.struct([], "UpdateEmergencyMode"),
|
|
549
1391
|
borsh.struct([], "UpdateLiquidationCloseFactor"),
|
|
550
1392
|
borsh.struct([], "UpdateLiquidationMaxValue"),
|
|
551
|
-
borsh.struct([], "
|
|
1393
|
+
borsh.struct([], "DeprecatedUpdateGlobalUnhealthyBorrow"),
|
|
552
1394
|
borsh.struct([], "UpdateGlobalAllowedBorrow"),
|
|
553
|
-
borsh.struct([], "
|
|
1395
|
+
borsh.struct([], "UpdateEmergencyCouncil"),
|
|
554
1396
|
borsh.struct([], "UpdateMinFullLiquidationThreshold"),
|
|
555
1397
|
borsh.struct([], "UpdateInsolvencyRiskLtv"),
|
|
556
1398
|
borsh.struct([], "UpdateElevationGroup"),
|
|
@@ -560,8 +1402,37 @@ export function layout(property?: string) {
|
|
|
560
1402
|
borsh.struct([], "UpdateAutodeleverageEnabled"),
|
|
561
1403
|
borsh.struct([], "UpdateBorrowingDisabled"),
|
|
562
1404
|
borsh.struct([], "UpdateMinNetValueObligationPostAction"),
|
|
563
|
-
borsh.struct([], "
|
|
1405
|
+
borsh.struct([], "UpdateMinValueLtvSkipPriorityLiqCheck"),
|
|
1406
|
+
borsh.struct([], "UpdateMinValueBfSkipPriorityLiqCheck"),
|
|
564
1407
|
borsh.struct([], "UpdatePaddingFields"),
|
|
1408
|
+
borsh.struct([], "UpdateName"),
|
|
1409
|
+
borsh.struct([], "UpdateIndividualAutodeleverageMarginCallPeriodSecs"),
|
|
1410
|
+
borsh.struct([], "UpdateInitialDepositAmount"),
|
|
1411
|
+
borsh.struct([], "UpdateObligationOrderExecutionEnabled"),
|
|
1412
|
+
borsh.struct([], "UpdateImmutableFlag"),
|
|
1413
|
+
borsh.struct([], "UpdateObligationOrderCreationEnabled"),
|
|
1414
|
+
borsh.struct([], "UpdateProposerAuthority"),
|
|
1415
|
+
borsh.struct([], "UpdatePriceTriggeredLiquidationDisabled"),
|
|
1416
|
+
borsh.struct([], "UpdateMatureReserveDebtLiquidationEnabled"),
|
|
1417
|
+
borsh.struct([], "UpdateObligationBorrowDebtTermLiquidationEnabled"),
|
|
1418
|
+
borsh.struct([], "UpdateBorrowOrderCreationEnabled"),
|
|
1419
|
+
borsh.struct([], "UpdateBorrowOrderExecutionEnabled"),
|
|
1420
|
+
borsh.struct([], "UpdateMinBorrowOrderFillValue"),
|
|
1421
|
+
borsh.struct([], "UpdateWithdrawTicketIssuanceEnabled"),
|
|
1422
|
+
borsh.struct([], "UpdateWithdrawTicketRedemptionEnabled"),
|
|
1423
|
+
borsh.struct([], "UpdateMinWithdrawQueuedLiquidityValue"),
|
|
1424
|
+
borsh.struct([], "UpdateFixedTermRolloverWindowDurationSeconds"),
|
|
1425
|
+
borsh.struct([], "UpdateOpenTermRolloverWindowDurationSeconds"),
|
|
1426
|
+
borsh.struct([], "UpdateObligationBorrowRolloverConfigurationEnabled"),
|
|
1427
|
+
borsh.struct([], "UpdateTermBasedFullLiquidationDurationSecs"),
|
|
1428
|
+
borsh.struct([], "UpdateObligationBorrowMigrationToFixedExecutionEnabled"),
|
|
1429
|
+
borsh.struct([], "UpdateMinPartialRolloverValue"),
|
|
1430
|
+
borsh.struct([], "UpdateWithdrawTicketCancellationEnabled"),
|
|
1431
|
+
borsh.struct([], "UpdatePermissioningAuthority"),
|
|
1432
|
+
borsh.struct([], "UpdatePermissionedOps"),
|
|
1433
|
+
borsh.struct([], "DeprecatedUpdateReserveRewardsMaxAprPct"),
|
|
1434
|
+
borsh.struct([], "UpdateReserveRewardsMaxAprBps"),
|
|
1435
|
+
borsh.struct([], "UpdateDisableNonceBlock"),
|
|
565
1436
|
])
|
|
566
1437
|
if (property !== undefined) {
|
|
567
1438
|
return ret.replicate(property)
|