@kamino-finance/klend-sdk 7.0.13 → 7.1.1
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/dist/@codegen/jupiter_perps/accounts/Custody.d.ts.map +1 -1
- package/dist/@codegen/jupiter_perps/accounts/Custody.js +2 -2
- package/dist/@codegen/jupiter_perps/accounts/Custody.js.map +1 -1
- package/dist/@codegen/jupiter_perps/accounts/Perpetuals.d.ts.map +1 -1
- package/dist/@codegen/jupiter_perps/accounts/Perpetuals.js +2 -2
- package/dist/@codegen/jupiter_perps/accounts/Perpetuals.js.map +1 -1
- package/dist/@codegen/jupiter_perps/accounts/Pool.d.ts.map +1 -1
- package/dist/@codegen/jupiter_perps/accounts/Pool.js +2 -2
- package/dist/@codegen/jupiter_perps/accounts/Pool.js.map +1 -1
- package/dist/@codegen/jupiter_perps/accounts/Position.d.ts.map +1 -1
- package/dist/@codegen/jupiter_perps/accounts/Position.js +2 -2
- package/dist/@codegen/jupiter_perps/accounts/Position.js.map +1 -1
- package/dist/@codegen/jupiter_perps/accounts/PositionRequest.d.ts.map +1 -1
- package/dist/@codegen/jupiter_perps/accounts/PositionRequest.js +2 -2
- package/dist/@codegen/jupiter_perps/accounts/PositionRequest.js.map +1 -1
- package/dist/@codegen/jupiter_perps/accounts/TestOracle.d.ts.map +1 -1
- package/dist/@codegen/jupiter_perps/accounts/TestOracle.js +2 -2
- package/dist/@codegen/jupiter_perps/accounts/TestOracle.js.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/addCustody.d.ts +3 -2
- package/dist/@codegen/jupiter_perps/instructions/addCustody.d.ts.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/addCustody.js +8 -5
- package/dist/@codegen/jupiter_perps/instructions/addCustody.js.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/addLiquidity.d.ts +4 -3
- package/dist/@codegen/jupiter_perps/instructions/addLiquidity.d.ts.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/addLiquidity.js +8 -5
- package/dist/@codegen/jupiter_perps/instructions/addLiquidity.js.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/addPool.d.ts +4 -3
- package/dist/@codegen/jupiter_perps/instructions/addPool.d.ts.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/addPool.js +8 -5
- package/dist/@codegen/jupiter_perps/instructions/addPool.js.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/closePositionRequest.d.ts +4 -3
- package/dist/@codegen/jupiter_perps/instructions/closePositionRequest.d.ts.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/closePositionRequest.js +5 -4
- package/dist/@codegen/jupiter_perps/instructions/closePositionRequest.js.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/createDecreasePositionRequest.d.ts +3 -2
- package/dist/@codegen/jupiter_perps/instructions/createDecreasePositionRequest.d.ts.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/createDecreasePositionRequest.js +5 -4
- package/dist/@codegen/jupiter_perps/instructions/createDecreasePositionRequest.js.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/createIncreasePositionRequest.d.ts +3 -2
- package/dist/@codegen/jupiter_perps/instructions/createIncreasePositionRequest.d.ts.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/createIncreasePositionRequest.js +5 -4
- package/dist/@codegen/jupiter_perps/instructions/createIncreasePositionRequest.js.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/decreasePosition.d.ts +4 -3
- package/dist/@codegen/jupiter_perps/instructions/decreasePosition.d.ts.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/decreasePosition.js +5 -4
- package/dist/@codegen/jupiter_perps/instructions/decreasePosition.js.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/decreasePositionPostSwap.d.ts +4 -3
- package/dist/@codegen/jupiter_perps/instructions/decreasePositionPostSwap.d.ts.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/decreasePositionPostSwap.js +5 -4
- package/dist/@codegen/jupiter_perps/instructions/decreasePositionPostSwap.js.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/getAddLiquidityAmountAndFee.d.ts +4 -3
- package/dist/@codegen/jupiter_perps/instructions/getAddLiquidityAmountAndFee.d.ts.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/getAddLiquidityAmountAndFee.js +7 -4
- package/dist/@codegen/jupiter_perps/instructions/getAddLiquidityAmountAndFee.js.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/getDecreasePosition.d.ts +4 -3
- package/dist/@codegen/jupiter_perps/instructions/getDecreasePosition.d.ts.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/getDecreasePosition.js +5 -4
- package/dist/@codegen/jupiter_perps/instructions/getDecreasePosition.js.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/getExactOutSwapAmountAndFees.d.ts +4 -3
- package/dist/@codegen/jupiter_perps/instructions/getExactOutSwapAmountAndFees.d.ts.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/getExactOutSwapAmountAndFees.js +5 -4
- package/dist/@codegen/jupiter_perps/instructions/getExactOutSwapAmountAndFees.js.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/getIncreasePosition.d.ts +3 -2
- package/dist/@codegen/jupiter_perps/instructions/getIncreasePosition.d.ts.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/getIncreasePosition.js +5 -4
- package/dist/@codegen/jupiter_perps/instructions/getIncreasePosition.js.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/getLiquidationState.d.ts +4 -3
- package/dist/@codegen/jupiter_perps/instructions/getLiquidationState.d.ts.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/getLiquidationState.js +5 -4
- package/dist/@codegen/jupiter_perps/instructions/getLiquidationState.js.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/getOraclePrice.d.ts +3 -2
- package/dist/@codegen/jupiter_perps/instructions/getOraclePrice.d.ts.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/getOraclePrice.js +5 -3
- package/dist/@codegen/jupiter_perps/instructions/getOraclePrice.js.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/getPnl.d.ts +4 -3
- package/dist/@codegen/jupiter_perps/instructions/getPnl.d.ts.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/getPnl.js +8 -5
- package/dist/@codegen/jupiter_perps/instructions/getPnl.js.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/getRemoveLiquidityAmountAndFee.d.ts +4 -3
- package/dist/@codegen/jupiter_perps/instructions/getRemoveLiquidityAmountAndFee.d.ts.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/getRemoveLiquidityAmountAndFee.js +5 -4
- package/dist/@codegen/jupiter_perps/instructions/getRemoveLiquidityAmountAndFee.js.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/getSwapAmountAndFees.d.ts +4 -3
- package/dist/@codegen/jupiter_perps/instructions/getSwapAmountAndFees.d.ts.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/getSwapAmountAndFees.js +5 -4
- package/dist/@codegen/jupiter_perps/instructions/getSwapAmountAndFees.js.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/increasePosition.d.ts +4 -3
- package/dist/@codegen/jupiter_perps/instructions/increasePosition.d.ts.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/increasePosition.js +5 -4
- package/dist/@codegen/jupiter_perps/instructions/increasePosition.js.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/increasePositionPreSwap.d.ts +4 -3
- package/dist/@codegen/jupiter_perps/instructions/increasePositionPreSwap.d.ts.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/increasePositionPreSwap.js +5 -4
- package/dist/@codegen/jupiter_perps/instructions/increasePositionPreSwap.js.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/init.d.ts +4 -3
- package/dist/@codegen/jupiter_perps/instructions/init.d.ts.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/init.js +8 -5
- package/dist/@codegen/jupiter_perps/instructions/init.js.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/liquidatePosition.d.ts +4 -3
- package/dist/@codegen/jupiter_perps/instructions/liquidatePosition.d.ts.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/liquidatePosition.js +5 -4
- package/dist/@codegen/jupiter_perps/instructions/liquidatePosition.js.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/removeLiquidity.d.ts +4 -3
- package/dist/@codegen/jupiter_perps/instructions/removeLiquidity.d.ts.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/removeLiquidity.js +5 -4
- package/dist/@codegen/jupiter_perps/instructions/removeLiquidity.js.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/setCustodyConfig.d.ts +3 -2
- package/dist/@codegen/jupiter_perps/instructions/setCustodyConfig.d.ts.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/setCustodyConfig.js +5 -4
- package/dist/@codegen/jupiter_perps/instructions/setCustodyConfig.js.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/setCustodyGlobalLimit.d.ts +4 -3
- package/dist/@codegen/jupiter_perps/instructions/setCustodyGlobalLimit.d.ts.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/setCustodyGlobalLimit.js +5 -4
- package/dist/@codegen/jupiter_perps/instructions/setCustodyGlobalLimit.js.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/setPerpetualsConfig.d.ts +4 -3
- package/dist/@codegen/jupiter_perps/instructions/setPerpetualsConfig.d.ts.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/setPerpetualsConfig.js +5 -4
- package/dist/@codegen/jupiter_perps/instructions/setPerpetualsConfig.js.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/setPoolConfig.d.ts +4 -3
- package/dist/@codegen/jupiter_perps/instructions/setPoolConfig.d.ts.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/setPoolConfig.js +8 -5
- package/dist/@codegen/jupiter_perps/instructions/setPoolConfig.js.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/setTestOraclePrice.d.ts +4 -3
- package/dist/@codegen/jupiter_perps/instructions/setTestOraclePrice.d.ts.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/setTestOraclePrice.js +5 -4
- package/dist/@codegen/jupiter_perps/instructions/setTestOraclePrice.js.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/setTestTime.d.ts +4 -3
- package/dist/@codegen/jupiter_perps/instructions/setTestTime.d.ts.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/setTestTime.js +10 -5
- package/dist/@codegen/jupiter_perps/instructions/setTestTime.js.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/swap.d.ts +4 -3
- package/dist/@codegen/jupiter_perps/instructions/swap.d.ts.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/swap.js +10 -5
- package/dist/@codegen/jupiter_perps/instructions/swap.js.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/swapExactOut.d.ts +4 -3
- package/dist/@codegen/jupiter_perps/instructions/swapExactOut.d.ts.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/swapExactOut.js +8 -5
- package/dist/@codegen/jupiter_perps/instructions/swapExactOut.js.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/testInit.d.ts +4 -3
- package/dist/@codegen/jupiter_perps/instructions/testInit.d.ts.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/testInit.js +8 -5
- package/dist/@codegen/jupiter_perps/instructions/testInit.js.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/transferAdmin.d.ts +4 -3
- package/dist/@codegen/jupiter_perps/instructions/transferAdmin.d.ts.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/transferAdmin.js +8 -5
- package/dist/@codegen/jupiter_perps/instructions/transferAdmin.js.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/updateDecreasePositionRequest.d.ts +4 -3
- package/dist/@codegen/jupiter_perps/instructions/updateDecreasePositionRequest.d.ts.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/updateDecreasePositionRequest.js +5 -4
- package/dist/@codegen/jupiter_perps/instructions/updateDecreasePositionRequest.js.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/updateIncreasePositionRequest.d.ts +4 -3
- package/dist/@codegen/jupiter_perps/instructions/updateIncreasePositionRequest.d.ts.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/updateIncreasePositionRequest.js +5 -4
- package/dist/@codegen/jupiter_perps/instructions/updateIncreasePositionRequest.js.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/withdrawFees.d.ts +4 -3
- package/dist/@codegen/jupiter_perps/instructions/withdrawFees.d.ts.map +1 -1
- package/dist/@codegen/jupiter_perps/instructions/withdrawFees.js +10 -5
- package/dist/@codegen/jupiter_perps/instructions/withdrawFees.js.map +1 -1
- package/dist/@codegen/klend/accounts/GlobalConfig.d.ts.map +1 -1
- package/dist/@codegen/klend/accounts/GlobalConfig.js +2 -2
- package/dist/@codegen/klend/accounts/GlobalConfig.js.map +1 -1
- package/dist/@codegen/klend/accounts/LendingMarket.d.ts.map +1 -1
- package/dist/@codegen/klend/accounts/LendingMarket.js +2 -2
- package/dist/@codegen/klend/accounts/LendingMarket.js.map +1 -1
- package/dist/@codegen/klend/accounts/Obligation.d.ts.map +1 -1
- package/dist/@codegen/klend/accounts/Obligation.js +2 -2
- package/dist/@codegen/klend/accounts/Obligation.js.map +1 -1
- package/dist/@codegen/klend/accounts/ReferrerState.d.ts.map +1 -1
- package/dist/@codegen/klend/accounts/ReferrerState.js +2 -2
- package/dist/@codegen/klend/accounts/ReferrerState.js.map +1 -1
- package/dist/@codegen/klend/accounts/ReferrerTokenState.d.ts.map +1 -1
- package/dist/@codegen/klend/accounts/ReferrerTokenState.js +2 -2
- package/dist/@codegen/klend/accounts/ReferrerTokenState.js.map +1 -1
- package/dist/@codegen/klend/accounts/Reserve.d.ts.map +1 -1
- package/dist/@codegen/klend/accounts/Reserve.js +2 -2
- package/dist/@codegen/klend/accounts/Reserve.js.map +1 -1
- package/dist/@codegen/klend/accounts/ShortUrl.d.ts.map +1 -1
- package/dist/@codegen/klend/accounts/ShortUrl.js +2 -2
- package/dist/@codegen/klend/accounts/ShortUrl.js.map +1 -1
- package/dist/@codegen/klend/accounts/UserMetadata.d.ts.map +1 -1
- package/dist/@codegen/klend/accounts/UserMetadata.js +2 -2
- package/dist/@codegen/klend/accounts/UserMetadata.js.map +1 -1
- package/dist/@codegen/klend/accounts/UserState.d.ts.map +1 -1
- package/dist/@codegen/klend/accounts/UserState.js +2 -2
- package/dist/@codegen/klend/accounts/UserState.js.map +1 -1
- package/dist/@codegen/klend/instructions/borrowObligationLiquidity.d.ts +4 -3
- package/dist/@codegen/klend/instructions/borrowObligationLiquidity.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/borrowObligationLiquidity.js +8 -5
- package/dist/@codegen/klend/instructions/borrowObligationLiquidity.js.map +1 -1
- package/dist/@codegen/klend/instructions/borrowObligationLiquidityV2.d.ts +4 -3
- package/dist/@codegen/klend/instructions/borrowObligationLiquidityV2.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/borrowObligationLiquidityV2.js +8 -5
- package/dist/@codegen/klend/instructions/borrowObligationLiquidityV2.js.map +1 -1
- package/dist/@codegen/klend/instructions/deleteReferrerStateAndShortUrl.d.ts +3 -2
- package/dist/@codegen/klend/instructions/deleteReferrerStateAndShortUrl.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/deleteReferrerStateAndShortUrl.js +5 -3
- package/dist/@codegen/klend/instructions/deleteReferrerStateAndShortUrl.js.map +1 -1
- package/dist/@codegen/klend/instructions/depositAndWithdraw.d.ts +4 -3
- package/dist/@codegen/klend/instructions/depositAndWithdraw.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/depositAndWithdraw.js +5 -4
- package/dist/@codegen/klend/instructions/depositAndWithdraw.js.map +1 -1
- package/dist/@codegen/klend/instructions/depositObligationCollateral.d.ts +4 -3
- package/dist/@codegen/klend/instructions/depositObligationCollateral.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/depositObligationCollateral.js +8 -5
- package/dist/@codegen/klend/instructions/depositObligationCollateral.js.map +1 -1
- package/dist/@codegen/klend/instructions/depositObligationCollateralV2.d.ts +4 -3
- package/dist/@codegen/klend/instructions/depositObligationCollateralV2.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/depositObligationCollateralV2.js +8 -5
- package/dist/@codegen/klend/instructions/depositObligationCollateralV2.js.map +1 -1
- package/dist/@codegen/klend/instructions/depositReserveLiquidity.d.ts +4 -3
- package/dist/@codegen/klend/instructions/depositReserveLiquidity.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/depositReserveLiquidity.js +8 -5
- package/dist/@codegen/klend/instructions/depositReserveLiquidity.js.map +1 -1
- package/dist/@codegen/klend/instructions/depositReserveLiquidityAndObligationCollateral.d.ts +4 -3
- package/dist/@codegen/klend/instructions/depositReserveLiquidityAndObligationCollateral.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/depositReserveLiquidityAndObligationCollateral.js +8 -5
- package/dist/@codegen/klend/instructions/depositReserveLiquidityAndObligationCollateral.js.map +1 -1
- package/dist/@codegen/klend/instructions/depositReserveLiquidityAndObligationCollateralV2.d.ts +4 -3
- package/dist/@codegen/klend/instructions/depositReserveLiquidityAndObligationCollateralV2.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/depositReserveLiquidityAndObligationCollateralV2.js +10 -5
- package/dist/@codegen/klend/instructions/depositReserveLiquidityAndObligationCollateralV2.js.map +1 -1
- package/dist/@codegen/klend/instructions/flashBorrowReserveLiquidity.d.ts +4 -3
- package/dist/@codegen/klend/instructions/flashBorrowReserveLiquidity.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/flashBorrowReserveLiquidity.js +8 -5
- package/dist/@codegen/klend/instructions/flashBorrowReserveLiquidity.js.map +1 -1
- package/dist/@codegen/klend/instructions/flashRepayReserveLiquidity.d.ts +4 -3
- package/dist/@codegen/klend/instructions/flashRepayReserveLiquidity.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/flashRepayReserveLiquidity.js +5 -4
- package/dist/@codegen/klend/instructions/flashRepayReserveLiquidity.js.map +1 -1
- package/dist/@codegen/klend/instructions/idlMissingTypes.d.ts +3 -2
- package/dist/@codegen/klend/instructions/idlMissingTypes.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/idlMissingTypes.js +5 -4
- package/dist/@codegen/klend/instructions/idlMissingTypes.js.map +1 -1
- package/dist/@codegen/klend/instructions/initFarmsForReserve.d.ts +4 -3
- package/dist/@codegen/klend/instructions/initFarmsForReserve.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/initFarmsForReserve.js +5 -4
- package/dist/@codegen/klend/instructions/initFarmsForReserve.js.map +1 -1
- package/dist/@codegen/klend/instructions/initGlobalConfig.d.ts +3 -2
- package/dist/@codegen/klend/instructions/initGlobalConfig.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/initGlobalConfig.js +5 -3
- package/dist/@codegen/klend/instructions/initGlobalConfig.js.map +1 -1
- package/dist/@codegen/klend/instructions/initLendingMarket.d.ts +4 -3
- package/dist/@codegen/klend/instructions/initLendingMarket.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/initLendingMarket.js +5 -4
- package/dist/@codegen/klend/instructions/initLendingMarket.js.map +1 -1
- package/dist/@codegen/klend/instructions/initObligation.d.ts +4 -3
- package/dist/@codegen/klend/instructions/initObligation.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/initObligation.js +8 -5
- package/dist/@codegen/klend/instructions/initObligation.js.map +1 -1
- package/dist/@codegen/klend/instructions/initObligationFarmsForReserve.d.ts +4 -3
- package/dist/@codegen/klend/instructions/initObligationFarmsForReserve.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/initObligationFarmsForReserve.js +8 -5
- package/dist/@codegen/klend/instructions/initObligationFarmsForReserve.js.map +1 -1
- package/dist/@codegen/klend/instructions/initReferrerStateAndShortUrl.d.ts +4 -3
- package/dist/@codegen/klend/instructions/initReferrerStateAndShortUrl.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/initReferrerStateAndShortUrl.js +8 -5
- package/dist/@codegen/klend/instructions/initReferrerStateAndShortUrl.js.map +1 -1
- package/dist/@codegen/klend/instructions/initReferrerTokenState.d.ts +3 -2
- package/dist/@codegen/klend/instructions/initReferrerTokenState.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/initReferrerTokenState.js +5 -3
- package/dist/@codegen/klend/instructions/initReferrerTokenState.js.map +1 -1
- package/dist/@codegen/klend/instructions/initReserve.d.ts +3 -2
- package/dist/@codegen/klend/instructions/initReserve.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/initReserve.js +5 -3
- package/dist/@codegen/klend/instructions/initReserve.js.map +1 -1
- package/dist/@codegen/klend/instructions/initUserMetadata.d.ts +4 -3
- package/dist/@codegen/klend/instructions/initUserMetadata.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/initUserMetadata.js +8 -5
- package/dist/@codegen/klend/instructions/initUserMetadata.js.map +1 -1
- package/dist/@codegen/klend/instructions/liquidateObligationAndRedeemReserveCollateral.d.ts +4 -3
- package/dist/@codegen/klend/instructions/liquidateObligationAndRedeemReserveCollateral.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/liquidateObligationAndRedeemReserveCollateral.js +5 -4
- package/dist/@codegen/klend/instructions/liquidateObligationAndRedeemReserveCollateral.js.map +1 -1
- package/dist/@codegen/klend/instructions/liquidateObligationAndRedeemReserveCollateralV2.d.ts +4 -3
- package/dist/@codegen/klend/instructions/liquidateObligationAndRedeemReserveCollateralV2.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/liquidateObligationAndRedeemReserveCollateralV2.js +6 -5
- package/dist/@codegen/klend/instructions/liquidateObligationAndRedeemReserveCollateralV2.js.map +1 -1
- package/dist/@codegen/klend/instructions/markObligationForDeleveraging.d.ts +4 -3
- package/dist/@codegen/klend/instructions/markObligationForDeleveraging.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/markObligationForDeleveraging.js +8 -5
- package/dist/@codegen/klend/instructions/markObligationForDeleveraging.js.map +1 -1
- package/dist/@codegen/klend/instructions/redeemFees.d.ts +3 -2
- package/dist/@codegen/klend/instructions/redeemFees.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/redeemFees.js +5 -3
- package/dist/@codegen/klend/instructions/redeemFees.js.map +1 -1
- package/dist/@codegen/klend/instructions/redeemReserveCollateral.d.ts +4 -3
- package/dist/@codegen/klend/instructions/redeemReserveCollateral.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/redeemReserveCollateral.js +10 -5
- package/dist/@codegen/klend/instructions/redeemReserveCollateral.js.map +1 -1
- package/dist/@codegen/klend/instructions/refreshObligation.d.ts +3 -2
- package/dist/@codegen/klend/instructions/refreshObligation.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/refreshObligation.js +5 -3
- package/dist/@codegen/klend/instructions/refreshObligation.js.map +1 -1
- package/dist/@codegen/klend/instructions/refreshObligationFarmsForReserve.d.ts +4 -3
- package/dist/@codegen/klend/instructions/refreshObligationFarmsForReserve.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/refreshObligationFarmsForReserve.js +8 -5
- package/dist/@codegen/klend/instructions/refreshObligationFarmsForReserve.js.map +1 -1
- package/dist/@codegen/klend/instructions/refreshReserve.d.ts +3 -2
- package/dist/@codegen/klend/instructions/refreshReserve.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/refreshReserve.js +5 -3
- package/dist/@codegen/klend/instructions/refreshReserve.js.map +1 -1
- package/dist/@codegen/klend/instructions/refreshReservesBatch.d.ts +4 -3
- package/dist/@codegen/klend/instructions/refreshReservesBatch.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/refreshReservesBatch.js +10 -6
- package/dist/@codegen/klend/instructions/refreshReservesBatch.js.map +1 -1
- package/dist/@codegen/klend/instructions/repayAndWithdrawAndRedeem.d.ts +4 -3
- package/dist/@codegen/klend/instructions/repayAndWithdrawAndRedeem.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/repayAndWithdrawAndRedeem.js +5 -4
- package/dist/@codegen/klend/instructions/repayAndWithdrawAndRedeem.js.map +1 -1
- package/dist/@codegen/klend/instructions/repayObligationLiquidity.d.ts +4 -3
- package/dist/@codegen/klend/instructions/repayObligationLiquidity.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/repayObligationLiquidity.js +8 -5
- package/dist/@codegen/klend/instructions/repayObligationLiquidity.js.map +1 -1
- package/dist/@codegen/klend/instructions/repayObligationLiquidityV2.d.ts +4 -3
- package/dist/@codegen/klend/instructions/repayObligationLiquidityV2.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/repayObligationLiquidityV2.js +8 -5
- package/dist/@codegen/klend/instructions/repayObligationLiquidityV2.js.map +1 -1
- package/dist/@codegen/klend/instructions/requestElevationGroup.d.ts +4 -3
- package/dist/@codegen/klend/instructions/requestElevationGroup.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/requestElevationGroup.js +8 -5
- package/dist/@codegen/klend/instructions/requestElevationGroup.js.map +1 -1
- package/dist/@codegen/klend/instructions/setObligationOrder.d.ts +4 -3
- package/dist/@codegen/klend/instructions/setObligationOrder.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/setObligationOrder.js +5 -4
- package/dist/@codegen/klend/instructions/setObligationOrder.js.map +1 -1
- package/dist/@codegen/klend/instructions/socializeLoss.d.ts +4 -3
- package/dist/@codegen/klend/instructions/socializeLoss.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/socializeLoss.js +8 -5
- package/dist/@codegen/klend/instructions/socializeLoss.js.map +1 -1
- package/dist/@codegen/klend/instructions/socializeLossV2.d.ts +4 -3
- package/dist/@codegen/klend/instructions/socializeLossV2.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/socializeLossV2.js +8 -5
- package/dist/@codegen/klend/instructions/socializeLossV2.js.map +1 -1
- package/dist/@codegen/klend/instructions/updateGlobalConfig.d.ts +3 -2
- package/dist/@codegen/klend/instructions/updateGlobalConfig.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/updateGlobalConfig.js +5 -4
- package/dist/@codegen/klend/instructions/updateGlobalConfig.js.map +1 -1
- package/dist/@codegen/klend/instructions/updateGlobalConfigAdmin.d.ts +3 -2
- package/dist/@codegen/klend/instructions/updateGlobalConfigAdmin.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/updateGlobalConfigAdmin.js +5 -3
- package/dist/@codegen/klend/instructions/updateGlobalConfigAdmin.js.map +1 -1
- package/dist/@codegen/klend/instructions/updateLendingMarket.d.ts +4 -3
- package/dist/@codegen/klend/instructions/updateLendingMarket.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/updateLendingMarket.js +5 -4
- package/dist/@codegen/klend/instructions/updateLendingMarket.js.map +1 -1
- package/dist/@codegen/klend/instructions/updateLendingMarketOwner.d.ts +3 -2
- package/dist/@codegen/klend/instructions/updateLendingMarketOwner.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/updateLendingMarketOwner.js +5 -3
- package/dist/@codegen/klend/instructions/updateLendingMarketOwner.js.map +1 -1
- package/dist/@codegen/klend/instructions/updateReserveConfig.d.ts +3 -2
- package/dist/@codegen/klend/instructions/updateReserveConfig.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/updateReserveConfig.js +5 -4
- package/dist/@codegen/klend/instructions/updateReserveConfig.js.map +1 -1
- package/dist/@codegen/klend/instructions/withdrawObligationCollateral.d.ts +4 -3
- package/dist/@codegen/klend/instructions/withdrawObligationCollateral.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/withdrawObligationCollateral.js +8 -5
- package/dist/@codegen/klend/instructions/withdrawObligationCollateral.js.map +1 -1
- package/dist/@codegen/klend/instructions/withdrawObligationCollateralAndRedeemReserveCollateral.d.ts +4 -3
- package/dist/@codegen/klend/instructions/withdrawObligationCollateralAndRedeemReserveCollateral.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/withdrawObligationCollateralAndRedeemReserveCollateral.js +8 -5
- package/dist/@codegen/klend/instructions/withdrawObligationCollateralAndRedeemReserveCollateral.js.map +1 -1
- package/dist/@codegen/klend/instructions/withdrawObligationCollateralAndRedeemReserveCollateralV2.d.ts +4 -3
- package/dist/@codegen/klend/instructions/withdrawObligationCollateralAndRedeemReserveCollateralV2.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/withdrawObligationCollateralAndRedeemReserveCollateralV2.js +8 -5
- package/dist/@codegen/klend/instructions/withdrawObligationCollateralAndRedeemReserveCollateralV2.js.map +1 -1
- package/dist/@codegen/klend/instructions/withdrawObligationCollateralV2.d.ts +4 -3
- package/dist/@codegen/klend/instructions/withdrawObligationCollateralV2.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/withdrawObligationCollateralV2.js +10 -5
- package/dist/@codegen/klend/instructions/withdrawObligationCollateralV2.js.map +1 -1
- package/dist/@codegen/klend/instructions/withdrawProtocolFee.d.ts +4 -3
- package/dist/@codegen/klend/instructions/withdrawProtocolFee.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/withdrawProtocolFee.js +8 -5
- package/dist/@codegen/klend/instructions/withdrawProtocolFee.js.map +1 -1
- package/dist/@codegen/klend/instructions/withdrawReferrerFees.d.ts +3 -2
- package/dist/@codegen/klend/instructions/withdrawReferrerFees.d.ts.map +1 -1
- package/dist/@codegen/klend/instructions/withdrawReferrerFees.js +7 -3
- package/dist/@codegen/klend/instructions/withdrawReferrerFees.js.map +1 -1
- package/dist/@codegen/kvault/accounts/Reserve.d.ts.map +1 -1
- package/dist/@codegen/kvault/accounts/Reserve.js +2 -2
- package/dist/@codegen/kvault/accounts/Reserve.js.map +1 -1
- package/dist/@codegen/kvault/accounts/VaultState.d.ts.map +1 -1
- package/dist/@codegen/kvault/accounts/VaultState.js +2 -2
- package/dist/@codegen/kvault/accounts/VaultState.js.map +1 -1
- package/dist/@codegen/kvault/instructions/deposit.d.ts +4 -3
- package/dist/@codegen/kvault/instructions/deposit.d.ts.map +1 -1
- package/dist/@codegen/kvault/instructions/deposit.js +5 -4
- package/dist/@codegen/kvault/instructions/deposit.js.map +1 -1
- package/dist/@codegen/kvault/instructions/giveUpPendingFees.d.ts +4 -3
- package/dist/@codegen/kvault/instructions/giveUpPendingFees.d.ts.map +1 -1
- package/dist/@codegen/kvault/instructions/giveUpPendingFees.js +10 -5
- package/dist/@codegen/kvault/instructions/giveUpPendingFees.js.map +1 -1
- package/dist/@codegen/kvault/instructions/initVault.d.ts +3 -2
- package/dist/@codegen/kvault/instructions/initVault.d.ts.map +1 -1
- package/dist/@codegen/kvault/instructions/initVault.js +5 -3
- package/dist/@codegen/kvault/instructions/initVault.js.map +1 -1
- package/dist/@codegen/kvault/instructions/initializeSharesMetadata.d.ts +4 -3
- package/dist/@codegen/kvault/instructions/initializeSharesMetadata.d.ts.map +1 -1
- package/dist/@codegen/kvault/instructions/initializeSharesMetadata.js +5 -4
- package/dist/@codegen/kvault/instructions/initializeSharesMetadata.js.map +1 -1
- package/dist/@codegen/kvault/instructions/invest.d.ts +3 -2
- package/dist/@codegen/kvault/instructions/invest.d.ts.map +1 -1
- package/dist/@codegen/kvault/instructions/invest.js +5 -3
- package/dist/@codegen/kvault/instructions/invest.js.map +1 -1
- package/dist/@codegen/kvault/instructions/removeAllocation.d.ts +3 -2
- package/dist/@codegen/kvault/instructions/removeAllocation.d.ts.map +1 -1
- package/dist/@codegen/kvault/instructions/removeAllocation.js +5 -3
- package/dist/@codegen/kvault/instructions/removeAllocation.js.map +1 -1
- package/dist/@codegen/kvault/instructions/updateAdmin.d.ts +3 -2
- package/dist/@codegen/kvault/instructions/updateAdmin.d.ts.map +1 -1
- package/dist/@codegen/kvault/instructions/updateAdmin.js +5 -3
- package/dist/@codegen/kvault/instructions/updateAdmin.js.map +1 -1
- package/dist/@codegen/kvault/instructions/updateReserveAllocation.d.ts +4 -3
- package/dist/@codegen/kvault/instructions/updateReserveAllocation.d.ts.map +1 -1
- package/dist/@codegen/kvault/instructions/updateReserveAllocation.js +9 -5
- package/dist/@codegen/kvault/instructions/updateReserveAllocation.js.map +1 -1
- package/dist/@codegen/kvault/instructions/updateSharesMetadata.d.ts +4 -3
- package/dist/@codegen/kvault/instructions/updateSharesMetadata.d.ts.map +1 -1
- package/dist/@codegen/kvault/instructions/updateSharesMetadata.js +7 -4
- package/dist/@codegen/kvault/instructions/updateSharesMetadata.js.map +1 -1
- package/dist/@codegen/kvault/instructions/updateVaultConfig.d.ts +3 -2
- package/dist/@codegen/kvault/instructions/updateVaultConfig.d.ts.map +1 -1
- package/dist/@codegen/kvault/instructions/updateVaultConfig.js +5 -4
- package/dist/@codegen/kvault/instructions/updateVaultConfig.js.map +1 -1
- package/dist/@codegen/kvault/instructions/withdraw.d.ts +4 -3
- package/dist/@codegen/kvault/instructions/withdraw.d.ts.map +1 -1
- package/dist/@codegen/kvault/instructions/withdraw.js +5 -4
- package/dist/@codegen/kvault/instructions/withdraw.js.map +1 -1
- package/dist/@codegen/kvault/instructions/withdrawFromAvailable.d.ts +4 -3
- package/dist/@codegen/kvault/instructions/withdrawFromAvailable.d.ts.map +1 -1
- package/dist/@codegen/kvault/instructions/withdrawFromAvailable.js +8 -5
- package/dist/@codegen/kvault/instructions/withdrawFromAvailable.js.map +1 -1
- package/dist/@codegen/kvault/instructions/withdrawPendingFees.d.ts +3 -2
- package/dist/@codegen/kvault/instructions/withdrawPendingFees.d.ts.map +1 -1
- package/dist/@codegen/kvault/instructions/withdrawPendingFees.js +7 -3
- package/dist/@codegen/kvault/instructions/withdrawPendingFees.js.map +1 -1
- package/dist/@codegen/kvault/types/ReserveConfig.d.ts +51 -10
- package/dist/@codegen/kvault/types/ReserveConfig.d.ts.map +1 -1
- package/dist/@codegen/kvault/types/ReserveConfig.js +33 -14
- package/dist/@codegen/kvault/types/ReserveConfig.js.map +1 -1
- package/dist/@codegen/pyth_rec/accounts/Config.d.ts.map +1 -1
- package/dist/@codegen/pyth_rec/accounts/Config.js +2 -2
- package/dist/@codegen/pyth_rec/accounts/Config.js.map +1 -1
- package/dist/@codegen/pyth_rec/accounts/priceUpdateV2.d.ts.map +1 -1
- package/dist/@codegen/pyth_rec/accounts/priceUpdateV2.js +2 -2
- package/dist/@codegen/pyth_rec/accounts/priceUpdateV2.js.map +1 -1
- package/dist/@codegen/pyth_rec/accounts/twapUpdate.d.ts.map +1 -1
- package/dist/@codegen/pyth_rec/accounts/twapUpdate.js +2 -2
- package/dist/@codegen/pyth_rec/accounts/twapUpdate.js.map +1 -1
- package/dist/@codegen/pyth_rec/instructions/acceptGovernanceAuthorityTransfer.d.ts +3 -2
- package/dist/@codegen/pyth_rec/instructions/acceptGovernanceAuthorityTransfer.d.ts.map +1 -1
- package/dist/@codegen/pyth_rec/instructions/acceptGovernanceAuthorityTransfer.js +5 -3
- package/dist/@codegen/pyth_rec/instructions/acceptGovernanceAuthorityTransfer.js.map +1 -1
- package/dist/@codegen/pyth_rec/instructions/reclaimRent.d.ts +3 -2
- package/dist/@codegen/pyth_rec/instructions/reclaimRent.d.ts.map +1 -1
- package/dist/@codegen/pyth_rec/instructions/reclaimRent.js +5 -3
- package/dist/@codegen/pyth_rec/instructions/reclaimRent.js.map +1 -1
- package/dist/@codegen/pyth_rec/instructions/reclaimTwapRent.d.ts +3 -2
- package/dist/@codegen/pyth_rec/instructions/reclaimTwapRent.d.ts.map +1 -1
- package/dist/@codegen/pyth_rec/instructions/reclaimTwapRent.js +5 -3
- package/dist/@codegen/pyth_rec/instructions/reclaimTwapRent.js.map +1 -1
- package/dist/@codegen/pyth_rec/instructions/requestGovernanceAuthorityTransfer.d.ts +4 -3
- package/dist/@codegen/pyth_rec/instructions/requestGovernanceAuthorityTransfer.d.ts.map +1 -1
- package/dist/@codegen/pyth_rec/instructions/requestGovernanceAuthorityTransfer.js +8 -5
- package/dist/@codegen/pyth_rec/instructions/requestGovernanceAuthorityTransfer.js.map +1 -1
- package/dist/@codegen/pyth_rec/instructions/setDataSources.d.ts +4 -3
- package/dist/@codegen/pyth_rec/instructions/setDataSources.d.ts.map +1 -1
- package/dist/@codegen/pyth_rec/instructions/setDataSources.js +5 -4
- package/dist/@codegen/pyth_rec/instructions/setDataSources.js.map +1 -1
- package/dist/@codegen/pyth_rec/instructions/setFee.d.ts +4 -3
- package/dist/@codegen/pyth_rec/instructions/setFee.d.ts.map +1 -1
- package/dist/@codegen/pyth_rec/instructions/setFee.js +8 -5
- package/dist/@codegen/pyth_rec/instructions/setFee.js.map +1 -1
- package/dist/@codegen/pyth_rec/instructions/setMinimumSignatures.d.ts +4 -3
- package/dist/@codegen/pyth_rec/instructions/setMinimumSignatures.d.ts.map +1 -1
- package/dist/@codegen/pyth_rec/instructions/setMinimumSignatures.js +8 -5
- package/dist/@codegen/pyth_rec/instructions/setMinimumSignatures.js.map +1 -1
- package/dist/@codegen/pyth_rec/instructions/setWormholeAddress.d.ts +4 -3
- package/dist/@codegen/pyth_rec/instructions/setWormholeAddress.d.ts.map +1 -1
- package/dist/@codegen/pyth_rec/instructions/setWormholeAddress.js +10 -5
- package/dist/@codegen/pyth_rec/instructions/setWormholeAddress.js.map +1 -1
- package/dist/classes/action.d.ts +12 -12
- package/dist/classes/action.d.ts.map +1 -1
- package/dist/classes/action.js +35 -35
- package/dist/classes/action.js.map +1 -1
- package/dist/classes/farm_utils.d.ts +8 -8
- package/dist/classes/farm_utils.d.ts.map +1 -1
- package/dist/classes/farm_utils.js.map +1 -1
- package/dist/classes/manager.d.ts +18 -18
- package/dist/classes/manager.d.ts.map +1 -1
- package/dist/classes/manager.js +3 -3
- package/dist/classes/manager.js.map +1 -1
- package/dist/classes/reserve.d.ts +5 -5
- package/dist/classes/reserve.d.ts.map +1 -1
- package/dist/classes/reserve.js +3 -3
- package/dist/classes/reserve.js.map +1 -1
- package/dist/classes/vault.d.ts +10 -10
- package/dist/classes/vault.d.ts.map +1 -1
- package/dist/classes/vault.js +12 -12
- package/dist/classes/vault.js.map +1 -1
- package/dist/classes/vault_types.d.ts +25 -25
- package/dist/classes/vault_types.d.ts.map +1 -1
- package/dist/client/tx/multisig.d.ts +2 -2
- package/dist/client/tx/multisig.d.ts.map +1 -1
- package/dist/client/tx/multisig.js.map +1 -1
- package/dist/client/tx/priorityFee.d.ts +3 -3
- package/dist/client/tx/priorityFee.d.ts.map +1 -1
- package/dist/client/tx/priorityFee.js.map +1 -1
- package/dist/client/tx/processor.d.ts +2 -2
- package/dist/client/tx/processor.d.ts.map +1 -1
- package/dist/client/tx/processor.js.map +1 -1
- package/dist/client/tx/simulate.d.ts +2 -2
- package/dist/client/tx/simulate.d.ts.map +1 -1
- package/dist/client/tx/simulate.js.map +1 -1
- package/dist/client/tx/tx.d.ts +2 -2
- package/dist/client/tx/tx.d.ts.map +1 -1
- package/dist/client/tx/tx.js.map +1 -1
- package/dist/idl/klend.json +1 -1
- package/dist/lending_operations/repay_with_collateral_operations.d.ts +3 -3
- package/dist/lending_operations/repay_with_collateral_operations.d.ts.map +1 -1
- package/dist/lending_operations/repay_with_collateral_operations.js.map +1 -1
- package/dist/lending_operations/swap_collateral_operations.d.ts +3 -3
- package/dist/lending_operations/swap_collateral_operations.d.ts.map +1 -1
- package/dist/lending_operations/swap_collateral_operations.js.map +1 -1
- package/dist/leverage/instructions.d.ts +4 -4
- package/dist/leverage/instructions.d.ts.map +1 -1
- package/dist/leverage/instructions.js +2 -2
- package/dist/leverage/instructions.js.map +1 -1
- package/dist/leverage/operations.d.ts +7 -7
- package/dist/leverage/operations.d.ts.map +1 -1
- package/dist/leverage/operations.js.map +1 -1
- package/dist/leverage/types.d.ts +6 -6
- package/dist/leverage/types.d.ts.map +1 -1
- package/dist/leverage/utils.d.ts +2 -2
- package/dist/leverage/utils.d.ts.map +1 -1
- package/dist/leverage/utils.js.map +1 -1
- package/dist/manager/client_kamino_manager.js +1 -0
- package/dist/manager/client_kamino_manager.js.map +1 -1
- package/dist/manager/tx/multisig.d.ts +2 -2
- package/dist/manager/tx/multisig.d.ts.map +1 -1
- package/dist/manager/tx/multisig.js.map +1 -1
- package/dist/manager/tx/priorityFee.d.ts +3 -3
- package/dist/manager/tx/priorityFee.d.ts.map +1 -1
- package/dist/manager/tx/priorityFee.js.map +1 -1
- package/dist/manager/tx/processor.d.ts +2 -2
- package/dist/manager/tx/processor.d.ts.map +1 -1
- package/dist/manager/tx/processor.js.map +1 -1
- package/dist/manager/tx/simulate.d.ts +2 -2
- package/dist/manager/tx/simulate.d.ts.map +1 -1
- package/dist/manager/tx/simulate.js.map +1 -1
- package/dist/manager/tx/tx.d.ts +2 -2
- package/dist/manager/tx/tx.d.ts.map +1 -1
- package/dist/manager/tx/tx.js.map +1 -1
- package/dist/referrals/instructions.d.ts +4 -4
- package/dist/referrals/instructions.d.ts.map +1 -1
- package/dist/referrals/instructions.js +3 -3
- package/dist/referrals/instructions.js.map +1 -1
- package/dist/utils/ata.d.ts +7 -7
- package/dist/utils/ata.d.ts.map +1 -1
- package/dist/utils/ata.js.map +1 -1
- package/dist/utils/instruction.d.ts +5 -5
- package/dist/utils/instruction.d.ts.map +1 -1
- package/dist/utils/instruction.js.map +1 -1
- package/dist/utils/lookupTable.d.ts +7 -7
- package/dist/utils/lookupTable.d.ts.map +1 -1
- package/dist/utils/lookupTable.js.map +1 -1
- package/dist/utils/metadata.d.ts +3 -3
- package/dist/utils/metadata.d.ts.map +1 -1
- package/dist/utils/userMetadata.d.ts +2 -2
- package/dist/utils/userMetadata.d.ts.map +1 -1
- package/dist/utils/userMetadata.js +1 -1
- package/dist/utils/userMetadata.js.map +1 -1
- package/package.json +9 -9
- package/src/@codegen/jupiter_perps/accounts/Custody.ts +6 -2
- package/src/@codegen/jupiter_perps/accounts/Perpetuals.ts +6 -2
- package/src/@codegen/jupiter_perps/accounts/Pool.ts +6 -2
- package/src/@codegen/jupiter_perps/accounts/Position.ts +6 -2
- package/src/@codegen/jupiter_perps/accounts/PositionRequest.ts +6 -2
- package/src/@codegen/jupiter_perps/accounts/TestOracle.ts +6 -2
- package/src/@codegen/jupiter_perps/instructions/addCustody.ts +13 -8
- package/src/@codegen/jupiter_perps/instructions/addLiquidity.ts +13 -8
- package/src/@codegen/jupiter_perps/instructions/addPool.ts +13 -8
- package/src/@codegen/jupiter_perps/instructions/closePositionRequest.ts +11 -8
- package/src/@codegen/jupiter_perps/instructions/createDecreasePositionRequest.ts +10 -7
- package/src/@codegen/jupiter_perps/instructions/createIncreasePositionRequest.ts +10 -7
- package/src/@codegen/jupiter_perps/instructions/decreasePosition.ts +11 -8
- package/src/@codegen/jupiter_perps/instructions/decreasePositionPostSwap.ts +11 -8
- package/src/@codegen/jupiter_perps/instructions/getAddLiquidityAmountAndFee.ts +13 -8
- package/src/@codegen/jupiter_perps/instructions/getDecreasePosition.ts +11 -8
- package/src/@codegen/jupiter_perps/instructions/getExactOutSwapAmountAndFees.ts +11 -8
- package/src/@codegen/jupiter_perps/instructions/getIncreasePosition.ts +10 -7
- package/src/@codegen/jupiter_perps/instructions/getLiquidationState.ts +11 -8
- package/src/@codegen/jupiter_perps/instructions/getOraclePrice.ts +10 -7
- package/src/@codegen/jupiter_perps/instructions/getPnl.ts +13 -8
- package/src/@codegen/jupiter_perps/instructions/getRemoveLiquidityAmountAndFee.ts +11 -8
- package/src/@codegen/jupiter_perps/instructions/getSwapAmountAndFees.ts +11 -8
- package/src/@codegen/jupiter_perps/instructions/increasePosition.ts +11 -8
- package/src/@codegen/jupiter_perps/instructions/increasePositionPreSwap.ts +11 -8
- package/src/@codegen/jupiter_perps/instructions/init.ts +13 -8
- package/src/@codegen/jupiter_perps/instructions/liquidatePosition.ts +11 -8
- package/src/@codegen/jupiter_perps/instructions/removeLiquidity.ts +11 -8
- package/src/@codegen/jupiter_perps/instructions/setCustodyConfig.ts +10 -7
- package/src/@codegen/jupiter_perps/instructions/setCustodyGlobalLimit.ts +11 -8
- package/src/@codegen/jupiter_perps/instructions/setPerpetualsConfig.ts +11 -8
- package/src/@codegen/jupiter_perps/instructions/setPoolConfig.ts +13 -8
- package/src/@codegen/jupiter_perps/instructions/setTestOraclePrice.ts +11 -8
- package/src/@codegen/jupiter_perps/instructions/setTestTime.ts +15 -8
- package/src/@codegen/jupiter_perps/instructions/swap.ts +15 -8
- package/src/@codegen/jupiter_perps/instructions/swapExactOut.ts +13 -8
- package/src/@codegen/jupiter_perps/instructions/testInit.ts +13 -8
- package/src/@codegen/jupiter_perps/instructions/transferAdmin.ts +13 -8
- package/src/@codegen/jupiter_perps/instructions/updateDecreasePositionRequest.ts +11 -8
- package/src/@codegen/jupiter_perps/instructions/updateIncreasePositionRequest.ts +11 -8
- package/src/@codegen/jupiter_perps/instructions/withdrawFees.ts +15 -8
- package/src/@codegen/klend/accounts/GlobalConfig.ts +6 -2
- package/src/@codegen/klend/accounts/LendingMarket.ts +6 -2
- package/src/@codegen/klend/accounts/Obligation.ts +6 -2
- package/src/@codegen/klend/accounts/ReferrerState.ts +6 -2
- package/src/@codegen/klend/accounts/ReferrerTokenState.ts +6 -2
- package/src/@codegen/klend/accounts/Reserve.ts +6 -2
- package/src/@codegen/klend/accounts/ShortUrl.ts +6 -2
- package/src/@codegen/klend/accounts/UserMetadata.ts +6 -2
- package/src/@codegen/klend/accounts/UserState.ts +6 -2
- package/src/@codegen/klend/instructions/borrowObligationLiquidity.ts +13 -8
- package/src/@codegen/klend/instructions/borrowObligationLiquidityV2.ts +13 -8
- package/src/@codegen/klend/instructions/deleteReferrerStateAndShortUrl.ts +10 -7
- package/src/@codegen/klend/instructions/depositAndWithdraw.ts +11 -8
- package/src/@codegen/klend/instructions/depositObligationCollateral.ts +13 -8
- package/src/@codegen/klend/instructions/depositObligationCollateralV2.ts +13 -8
- package/src/@codegen/klend/instructions/depositReserveLiquidity.ts +13 -8
- package/src/@codegen/klend/instructions/depositReserveLiquidityAndObligationCollateral.ts +14 -8
- package/src/@codegen/klend/instructions/depositReserveLiquidityAndObligationCollateralV2.ts +16 -8
- package/src/@codegen/klend/instructions/flashBorrowReserveLiquidity.ts +13 -8
- package/src/@codegen/klend/instructions/flashRepayReserveLiquidity.ts +11 -8
- package/src/@codegen/klend/instructions/idlMissingTypes.ts +10 -7
- package/src/@codegen/klend/instructions/initFarmsForReserve.ts +11 -8
- package/src/@codegen/klend/instructions/initGlobalConfig.ts +10 -7
- package/src/@codegen/klend/instructions/initLendingMarket.ts +11 -8
- package/src/@codegen/klend/instructions/initObligation.ts +13 -8
- package/src/@codegen/klend/instructions/initObligationFarmsForReserve.ts +13 -8
- package/src/@codegen/klend/instructions/initReferrerStateAndShortUrl.ts +13 -8
- package/src/@codegen/klend/instructions/initReferrerTokenState.ts +10 -7
- package/src/@codegen/klend/instructions/initReserve.ts +10 -7
- package/src/@codegen/klend/instructions/initUserMetadata.ts +13 -8
- package/src/@codegen/klend/instructions/liquidateObligationAndRedeemReserveCollateral.ts +16 -12
- package/src/@codegen/klend/instructions/liquidateObligationAndRedeemReserveCollateralV2.ts +17 -13
- package/src/@codegen/klend/instructions/markObligationForDeleveraging.ts +13 -8
- package/src/@codegen/klend/instructions/redeemFees.ts +10 -7
- package/src/@codegen/klend/instructions/redeemReserveCollateral.ts +15 -8
- package/src/@codegen/klend/instructions/refreshObligation.ts +10 -7
- package/src/@codegen/klend/instructions/refreshObligationFarmsForReserve.ts +13 -8
- package/src/@codegen/klend/instructions/refreshReserve.ts +10 -7
- package/src/@codegen/klend/instructions/refreshReservesBatch.ts +14 -8
- package/src/@codegen/klend/instructions/repayAndWithdrawAndRedeem.ts +11 -8
- package/src/@codegen/klend/instructions/repayObligationLiquidity.ts +13 -8
- package/src/@codegen/klend/instructions/repayObligationLiquidityV2.ts +13 -8
- package/src/@codegen/klend/instructions/requestElevationGroup.ts +13 -8
- package/src/@codegen/klend/instructions/setObligationOrder.ts +11 -8
- package/src/@codegen/klend/instructions/socializeLoss.ts +13 -8
- package/src/@codegen/klend/instructions/socializeLossV2.ts +13 -8
- package/src/@codegen/klend/instructions/updateGlobalConfig.ts +10 -7
- package/src/@codegen/klend/instructions/updateGlobalConfigAdmin.ts +10 -7
- package/src/@codegen/klend/instructions/updateLendingMarket.ts +11 -8
- package/src/@codegen/klend/instructions/updateLendingMarketOwner.ts +10 -7
- package/src/@codegen/klend/instructions/updateReserveConfig.ts +10 -7
- package/src/@codegen/klend/instructions/withdrawObligationCollateral.ts +13 -8
- package/src/@codegen/klend/instructions/withdrawObligationCollateralAndRedeemReserveCollateral.ts +14 -8
- package/src/@codegen/klend/instructions/withdrawObligationCollateralAndRedeemReserveCollateralV2.ts +14 -8
- package/src/@codegen/klend/instructions/withdrawObligationCollateralV2.ts +15 -8
- package/src/@codegen/klend/instructions/withdrawProtocolFee.ts +13 -8
- package/src/@codegen/klend/instructions/withdrawReferrerFees.ts +12 -7
- package/src/@codegen/kvault/accounts/Reserve.ts +6 -2
- package/src/@codegen/kvault/accounts/VaultState.ts +6 -2
- package/src/@codegen/kvault/instructions/deposit.ts +11 -8
- package/src/@codegen/kvault/instructions/giveUpPendingFees.ts +15 -8
- package/src/@codegen/kvault/instructions/initVault.ts +10 -7
- package/src/@codegen/kvault/instructions/initializeSharesMetadata.ts +11 -8
- package/src/@codegen/kvault/instructions/invest.ts +10 -7
- package/src/@codegen/kvault/instructions/removeAllocation.ts +10 -7
- package/src/@codegen/kvault/instructions/updateAdmin.ts +10 -7
- package/src/@codegen/kvault/instructions/updateReserveAllocation.ts +14 -8
- package/src/@codegen/kvault/instructions/updateSharesMetadata.ts +13 -8
- package/src/@codegen/kvault/instructions/updateVaultConfig.ts +10 -7
- package/src/@codegen/kvault/instructions/withdraw.ts +11 -8
- package/src/@codegen/kvault/instructions/withdrawFromAvailable.ts +13 -8
- package/src/@codegen/kvault/instructions/withdrawPendingFees.ts +12 -7
- package/src/@codegen/kvault/types/ReserveConfig.ts +63 -18
- package/src/@codegen/pyth_rec/accounts/Config.ts +6 -2
- package/src/@codegen/pyth_rec/accounts/priceUpdateV2.ts +6 -2
- package/src/@codegen/pyth_rec/accounts/twapUpdate.ts +6 -2
- package/src/@codegen/pyth_rec/instructions/acceptGovernanceAuthorityTransfer.ts +10 -7
- package/src/@codegen/pyth_rec/instructions/reclaimRent.ts +10 -7
- package/src/@codegen/pyth_rec/instructions/reclaimTwapRent.ts +10 -7
- package/src/@codegen/pyth_rec/instructions/requestGovernanceAuthorityTransfer.ts +13 -8
- package/src/@codegen/pyth_rec/instructions/setDataSources.ts +11 -8
- package/src/@codegen/pyth_rec/instructions/setFee.ts +13 -8
- package/src/@codegen/pyth_rec/instructions/setMinimumSignatures.ts +13 -8
- package/src/@codegen/pyth_rec/instructions/setWormholeAddress.ts +15 -8
- package/src/classes/action.ts +73 -41
- package/src/classes/farm_utils.ts +9 -9
- package/src/classes/manager.ts +25 -25
- package/src/classes/reserve.ts +8 -8
- package/src/classes/vault.ts +46 -43
- package/src/classes/vault_types.ts +25 -25
- package/src/client/tx/multisig.ts +2 -2
- package/src/client/tx/priorityFee.ts +3 -3
- package/src/client/tx/processor.ts +2 -2
- package/src/client/tx/simulate.ts +2 -2
- package/src/client/tx/tx.ts +2 -2
- package/src/idl/klend.json +2 -2
- package/src/lending_operations/repay_with_collateral_operations.ts +4 -4
- package/src/lending_operations/swap_collateral_operations.ts +16 -16
- package/src/leverage/instructions.ts +2 -2
- package/src/leverage/operations.ts +13 -13
- package/src/leverage/types.ts +6 -6
- package/src/leverage/utils.ts +3 -3
- package/src/manager/client_kamino_manager.ts +5 -3
- package/src/manager/tx/multisig.ts +2 -2
- package/src/manager/tx/priorityFee.ts +3 -3
- package/src/manager/tx/processor.ts +2 -2
- package/src/manager/tx/simulate.ts +2 -2
- package/src/manager/tx/tx.ts +2 -2
- package/src/referrals/instructions.ts +6 -3
- package/src/utils/ata.ts +11 -11
- package/src/utils/instruction.ts +6 -6
- package/src/utils/lookupTable.ts +8 -8
- package/src/utils/metadata.ts +3 -3
- package/src/utils/userMetadata.ts +4 -3
|
@@ -17,7 +17,7 @@ export interface ReserveConfigFields {
|
|
|
17
17
|
* - Reward points multiplier per obligation type
|
|
18
18
|
* Can be re-used after making sure all underlying production account data is zeroed.
|
|
19
19
|
*/
|
|
20
|
-
|
|
20
|
+
reserved1: Array<number>
|
|
21
21
|
/** Cut of the order execution bonus that the protocol receives, as a percentage */
|
|
22
22
|
protocolOrderExecutionFeePct: number
|
|
23
23
|
/** Protocol take rate is the amount borrowed interest protocol receives, as a percentage */
|
|
@@ -76,7 +76,14 @@ export interface ReserveConfigFields {
|
|
|
76
76
|
* obligations) is NOT affected by this flag.
|
|
77
77
|
*/
|
|
78
78
|
autodeleverageEnabled: number
|
|
79
|
-
|
|
79
|
+
/**
|
|
80
|
+
* Boolean flag indicating whether the reserve is locked for the proposer authority.
|
|
81
|
+
*
|
|
82
|
+
* Once the proposer have finished preparing the reserve, it must be locked to prevent
|
|
83
|
+
* further changes to the reserve configuration allowing review and voting on the proposal
|
|
84
|
+
* without alteration during the voting period.
|
|
85
|
+
*/
|
|
86
|
+
proposerAuthorityLocked: number
|
|
80
87
|
/**
|
|
81
88
|
* Maximum amount liquidity of this reserve borrowed outside all elevation groups
|
|
82
89
|
* - u64::MAX for inf
|
|
@@ -95,6 +102,12 @@ export interface ReserveConfigFields {
|
|
|
95
102
|
* Only relevant when `autodeleverage_enabled == 1`, and must not be 0 in such case.
|
|
96
103
|
*/
|
|
97
104
|
deleveragingBonusIncreaseBpsPerDay: BN
|
|
105
|
+
/**
|
|
106
|
+
* The timestamp at which all [Obligation::borrows] using this reserve become liquidatable
|
|
107
|
+
* (on the same terms as reserve-wide deleveraging).
|
|
108
|
+
* Inactive when zeroed (i.e. debt never matures).
|
|
109
|
+
*/
|
|
110
|
+
debtMaturityTimestamp: BN
|
|
98
111
|
}
|
|
99
112
|
|
|
100
113
|
export interface ReserveConfigJSON {
|
|
@@ -110,7 +123,7 @@ export interface ReserveConfigJSON {
|
|
|
110
123
|
* - Reward points multiplier per obligation type
|
|
111
124
|
* Can be re-used after making sure all underlying production account data is zeroed.
|
|
112
125
|
*/
|
|
113
|
-
|
|
126
|
+
reserved1: Array<number>
|
|
114
127
|
/** Cut of the order execution bonus that the protocol receives, as a percentage */
|
|
115
128
|
protocolOrderExecutionFeePct: number
|
|
116
129
|
/** Protocol take rate is the amount borrowed interest protocol receives, as a percentage */
|
|
@@ -169,7 +182,14 @@ export interface ReserveConfigJSON {
|
|
|
169
182
|
* obligations) is NOT affected by this flag.
|
|
170
183
|
*/
|
|
171
184
|
autodeleverageEnabled: number
|
|
172
|
-
|
|
185
|
+
/**
|
|
186
|
+
* Boolean flag indicating whether the reserve is locked for the proposer authority.
|
|
187
|
+
*
|
|
188
|
+
* Once the proposer have finished preparing the reserve, it must be locked to prevent
|
|
189
|
+
* further changes to the reserve configuration allowing review and voting on the proposal
|
|
190
|
+
* without alteration during the voting period.
|
|
191
|
+
*/
|
|
192
|
+
proposerAuthorityLocked: number
|
|
173
193
|
/**
|
|
174
194
|
* Maximum amount liquidity of this reserve borrowed outside all elevation groups
|
|
175
195
|
* - u64::MAX for inf
|
|
@@ -188,6 +208,12 @@ export interface ReserveConfigJSON {
|
|
|
188
208
|
* Only relevant when `autodeleverage_enabled == 1`, and must not be 0 in such case.
|
|
189
209
|
*/
|
|
190
210
|
deleveragingBonusIncreaseBpsPerDay: string
|
|
211
|
+
/**
|
|
212
|
+
* The timestamp at which all [Obligation::borrows] using this reserve become liquidatable
|
|
213
|
+
* (on the same terms as reserve-wide deleveraging).
|
|
214
|
+
* Inactive when zeroed (i.e. debt never matures).
|
|
215
|
+
*/
|
|
216
|
+
debtMaturityTimestamp: string
|
|
191
217
|
}
|
|
192
218
|
|
|
193
219
|
/** Reserve configuration values */
|
|
@@ -204,7 +230,7 @@ export class ReserveConfig {
|
|
|
204
230
|
* - Reward points multiplier per obligation type
|
|
205
231
|
* Can be re-used after making sure all underlying production account data is zeroed.
|
|
206
232
|
*/
|
|
207
|
-
readonly
|
|
233
|
+
readonly reserved1: Array<number>
|
|
208
234
|
/** Cut of the order execution bonus that the protocol receives, as a percentage */
|
|
209
235
|
readonly protocolOrderExecutionFeePct: number
|
|
210
236
|
/** Protocol take rate is the amount borrowed interest protocol receives, as a percentage */
|
|
@@ -263,7 +289,14 @@ export class ReserveConfig {
|
|
|
263
289
|
* obligations) is NOT affected by this flag.
|
|
264
290
|
*/
|
|
265
291
|
readonly autodeleverageEnabled: number
|
|
266
|
-
|
|
292
|
+
/**
|
|
293
|
+
* Boolean flag indicating whether the reserve is locked for the proposer authority.
|
|
294
|
+
*
|
|
295
|
+
* Once the proposer have finished preparing the reserve, it must be locked to prevent
|
|
296
|
+
* further changes to the reserve configuration allowing review and voting on the proposal
|
|
297
|
+
* without alteration during the voting period.
|
|
298
|
+
*/
|
|
299
|
+
readonly proposerAuthorityLocked: number
|
|
267
300
|
/**
|
|
268
301
|
* Maximum amount liquidity of this reserve borrowed outside all elevation groups
|
|
269
302
|
* - u64::MAX for inf
|
|
@@ -282,12 +315,18 @@ export class ReserveConfig {
|
|
|
282
315
|
* Only relevant when `autodeleverage_enabled == 1`, and must not be 0 in such case.
|
|
283
316
|
*/
|
|
284
317
|
readonly deleveragingBonusIncreaseBpsPerDay: BN
|
|
318
|
+
/**
|
|
319
|
+
* The timestamp at which all [Obligation::borrows] using this reserve become liquidatable
|
|
320
|
+
* (on the same terms as reserve-wide deleveraging).
|
|
321
|
+
* Inactive when zeroed (i.e. debt never matures).
|
|
322
|
+
*/
|
|
323
|
+
readonly debtMaturityTimestamp: BN
|
|
285
324
|
|
|
286
325
|
constructor(fields: ReserveConfigFields) {
|
|
287
326
|
this.status = fields.status
|
|
288
327
|
this.assetTier = fields.assetTier
|
|
289
328
|
this.hostFixedInterestRateBps = fields.hostFixedInterestRateBps
|
|
290
|
-
this.
|
|
329
|
+
this.reserved1 = fields.reserved1
|
|
291
330
|
this.protocolOrderExecutionFeePct = fields.protocolOrderExecutionFeePct
|
|
292
331
|
this.protocolTakeRatePct = fields.protocolTakeRatePct
|
|
293
332
|
this.protocolLiquidationFeePct = fields.protocolLiquidationFeePct
|
|
@@ -319,13 +358,14 @@ export class ReserveConfig {
|
|
|
319
358
|
this.utilizationLimitBlockBorrowingAbovePct =
|
|
320
359
|
fields.utilizationLimitBlockBorrowingAbovePct
|
|
321
360
|
this.autodeleverageEnabled = fields.autodeleverageEnabled
|
|
322
|
-
this.
|
|
361
|
+
this.proposerAuthorityLocked = fields.proposerAuthorityLocked
|
|
323
362
|
this.borrowLimitOutsideElevationGroup =
|
|
324
363
|
fields.borrowLimitOutsideElevationGroup
|
|
325
364
|
this.borrowLimitAgainstThisCollateralInElevationGroup =
|
|
326
365
|
fields.borrowLimitAgainstThisCollateralInElevationGroup
|
|
327
366
|
this.deleveragingBonusIncreaseBpsPerDay =
|
|
328
367
|
fields.deleveragingBonusIncreaseBpsPerDay
|
|
368
|
+
this.debtMaturityTimestamp = fields.debtMaturityTimestamp
|
|
329
369
|
}
|
|
330
370
|
|
|
331
371
|
static layout(property?: string) {
|
|
@@ -334,7 +374,7 @@ export class ReserveConfig {
|
|
|
334
374
|
borsh.u8("status"),
|
|
335
375
|
borsh.u8("assetTier"),
|
|
336
376
|
borsh.u16("hostFixedInterestRateBps"),
|
|
337
|
-
borsh.array(borsh.u8(), 9, "
|
|
377
|
+
borsh.array(borsh.u8(), 9, "reserved1"),
|
|
338
378
|
borsh.u8("protocolOrderExecutionFeePct"),
|
|
339
379
|
borsh.u8("protocolTakeRatePct"),
|
|
340
380
|
borsh.u8("protocolLiquidationFeePct"),
|
|
@@ -357,7 +397,7 @@ export class ReserveConfig {
|
|
|
357
397
|
borsh.u8("disableUsageAsCollOutsideEmode"),
|
|
358
398
|
borsh.u8("utilizationLimitBlockBorrowingAbovePct"),
|
|
359
399
|
borsh.u8("autodeleverageEnabled"),
|
|
360
|
-
borsh.
|
|
400
|
+
borsh.u8("proposerAuthorityLocked"),
|
|
361
401
|
borsh.u64("borrowLimitOutsideElevationGroup"),
|
|
362
402
|
borsh.array(
|
|
363
403
|
borsh.u64(),
|
|
@@ -365,6 +405,7 @@ export class ReserveConfig {
|
|
|
365
405
|
"borrowLimitAgainstThisCollateralInElevationGroup"
|
|
366
406
|
),
|
|
367
407
|
borsh.u64("deleveragingBonusIncreaseBpsPerDay"),
|
|
408
|
+
borsh.u64("debtMaturityTimestamp"),
|
|
368
409
|
],
|
|
369
410
|
property
|
|
370
411
|
)
|
|
@@ -376,7 +417,7 @@ export class ReserveConfig {
|
|
|
376
417
|
status: obj.status,
|
|
377
418
|
assetTier: obj.assetTier,
|
|
378
419
|
hostFixedInterestRateBps: obj.hostFixedInterestRateBps,
|
|
379
|
-
|
|
420
|
+
reserved1: obj.reserved1,
|
|
380
421
|
protocolOrderExecutionFeePct: obj.protocolOrderExecutionFeePct,
|
|
381
422
|
protocolTakeRatePct: obj.protocolTakeRatePct,
|
|
382
423
|
protocolLiquidationFeePct: obj.protocolLiquidationFeePct,
|
|
@@ -405,12 +446,13 @@ export class ReserveConfig {
|
|
|
405
446
|
utilizationLimitBlockBorrowingAbovePct:
|
|
406
447
|
obj.utilizationLimitBlockBorrowingAbovePct,
|
|
407
448
|
autodeleverageEnabled: obj.autodeleverageEnabled,
|
|
408
|
-
|
|
449
|
+
proposerAuthorityLocked: obj.proposerAuthorityLocked,
|
|
409
450
|
borrowLimitOutsideElevationGroup: obj.borrowLimitOutsideElevationGroup,
|
|
410
451
|
borrowLimitAgainstThisCollateralInElevationGroup:
|
|
411
452
|
obj.borrowLimitAgainstThisCollateralInElevationGroup,
|
|
412
453
|
deleveragingBonusIncreaseBpsPerDay:
|
|
413
454
|
obj.deleveragingBonusIncreaseBpsPerDay,
|
|
455
|
+
debtMaturityTimestamp: obj.debtMaturityTimestamp,
|
|
414
456
|
})
|
|
415
457
|
}
|
|
416
458
|
|
|
@@ -419,7 +461,7 @@ export class ReserveConfig {
|
|
|
419
461
|
status: fields.status,
|
|
420
462
|
assetTier: fields.assetTier,
|
|
421
463
|
hostFixedInterestRateBps: fields.hostFixedInterestRateBps,
|
|
422
|
-
|
|
464
|
+
reserved1: fields.reserved1,
|
|
423
465
|
protocolOrderExecutionFeePct: fields.protocolOrderExecutionFeePct,
|
|
424
466
|
protocolTakeRatePct: fields.protocolTakeRatePct,
|
|
425
467
|
protocolLiquidationFeePct: fields.protocolLiquidationFeePct,
|
|
@@ -450,12 +492,13 @@ export class ReserveConfig {
|
|
|
450
492
|
utilizationLimitBlockBorrowingAbovePct:
|
|
451
493
|
fields.utilizationLimitBlockBorrowingAbovePct,
|
|
452
494
|
autodeleverageEnabled: fields.autodeleverageEnabled,
|
|
453
|
-
|
|
495
|
+
proposerAuthorityLocked: fields.proposerAuthorityLocked,
|
|
454
496
|
borrowLimitOutsideElevationGroup: fields.borrowLimitOutsideElevationGroup,
|
|
455
497
|
borrowLimitAgainstThisCollateralInElevationGroup:
|
|
456
498
|
fields.borrowLimitAgainstThisCollateralInElevationGroup,
|
|
457
499
|
deleveragingBonusIncreaseBpsPerDay:
|
|
458
500
|
fields.deleveragingBonusIncreaseBpsPerDay,
|
|
501
|
+
debtMaturityTimestamp: fields.debtMaturityTimestamp,
|
|
459
502
|
}
|
|
460
503
|
}
|
|
461
504
|
|
|
@@ -464,7 +507,7 @@ export class ReserveConfig {
|
|
|
464
507
|
status: this.status,
|
|
465
508
|
assetTier: this.assetTier,
|
|
466
509
|
hostFixedInterestRateBps: this.hostFixedInterestRateBps,
|
|
467
|
-
|
|
510
|
+
reserved1: this.reserved1,
|
|
468
511
|
protocolOrderExecutionFeePct: this.protocolOrderExecutionFeePct,
|
|
469
512
|
protocolTakeRatePct: this.protocolTakeRatePct,
|
|
470
513
|
protocolLiquidationFeePct: this.protocolLiquidationFeePct,
|
|
@@ -490,7 +533,7 @@ export class ReserveConfig {
|
|
|
490
533
|
utilizationLimitBlockBorrowingAbovePct:
|
|
491
534
|
this.utilizationLimitBlockBorrowingAbovePct,
|
|
492
535
|
autodeleverageEnabled: this.autodeleverageEnabled,
|
|
493
|
-
|
|
536
|
+
proposerAuthorityLocked: this.proposerAuthorityLocked,
|
|
494
537
|
borrowLimitOutsideElevationGroup:
|
|
495
538
|
this.borrowLimitOutsideElevationGroup.toString(),
|
|
496
539
|
borrowLimitAgainstThisCollateralInElevationGroup:
|
|
@@ -499,6 +542,7 @@ export class ReserveConfig {
|
|
|
499
542
|
),
|
|
500
543
|
deleveragingBonusIncreaseBpsPerDay:
|
|
501
544
|
this.deleveragingBonusIncreaseBpsPerDay.toString(),
|
|
545
|
+
debtMaturityTimestamp: this.debtMaturityTimestamp.toString(),
|
|
502
546
|
}
|
|
503
547
|
}
|
|
504
548
|
|
|
@@ -507,7 +551,7 @@ export class ReserveConfig {
|
|
|
507
551
|
status: obj.status,
|
|
508
552
|
assetTier: obj.assetTier,
|
|
509
553
|
hostFixedInterestRateBps: obj.hostFixedInterestRateBps,
|
|
510
|
-
|
|
554
|
+
reserved1: obj.reserved1,
|
|
511
555
|
protocolOrderExecutionFeePct: obj.protocolOrderExecutionFeePct,
|
|
512
556
|
protocolTakeRatePct: obj.protocolTakeRatePct,
|
|
513
557
|
protocolLiquidationFeePct: obj.protocolLiquidationFeePct,
|
|
@@ -537,7 +581,7 @@ export class ReserveConfig {
|
|
|
537
581
|
utilizationLimitBlockBorrowingAbovePct:
|
|
538
582
|
obj.utilizationLimitBlockBorrowingAbovePct,
|
|
539
583
|
autodeleverageEnabled: obj.autodeleverageEnabled,
|
|
540
|
-
|
|
584
|
+
proposerAuthorityLocked: obj.proposerAuthorityLocked,
|
|
541
585
|
borrowLimitOutsideElevationGroup: new BN(
|
|
542
586
|
obj.borrowLimitOutsideElevationGroup
|
|
543
587
|
),
|
|
@@ -548,6 +592,7 @@ export class ReserveConfig {
|
|
|
548
592
|
deleveragingBonusIncreaseBpsPerDay: new BN(
|
|
549
593
|
obj.deleveragingBonusIncreaseBpsPerDay
|
|
550
594
|
),
|
|
595
|
+
debtMaturityTimestamp: new BN(obj.debtMaturityTimestamp),
|
|
551
596
|
})
|
|
552
597
|
}
|
|
553
598
|
|
|
@@ -76,7 +76,9 @@ export class Config {
|
|
|
76
76
|
return null
|
|
77
77
|
}
|
|
78
78
|
if (info.programAddress !== programId) {
|
|
79
|
-
throw new Error(
|
|
79
|
+
throw new Error(
|
|
80
|
+
`ConfigFields account ${address} belongs to wrong program ${info.programAddress}, expected ${programId}`
|
|
81
|
+
)
|
|
80
82
|
}
|
|
81
83
|
|
|
82
84
|
return this.decode(Buffer.from(info.data))
|
|
@@ -94,7 +96,9 @@ export class Config {
|
|
|
94
96
|
return null
|
|
95
97
|
}
|
|
96
98
|
if (info.programAddress !== programId) {
|
|
97
|
-
throw new Error(
|
|
99
|
+
throw new Error(
|
|
100
|
+
`ConfigFields account ${info.address} belongs to wrong program ${info.programAddress}, expected ${programId}`
|
|
101
|
+
)
|
|
98
102
|
}
|
|
99
103
|
|
|
100
104
|
return this.decode(Buffer.from(info.data))
|
|
@@ -64,7 +64,9 @@ export class priceUpdateV2 {
|
|
|
64
64
|
return null
|
|
65
65
|
}
|
|
66
66
|
if (info.programAddress !== programId) {
|
|
67
|
-
throw new Error(
|
|
67
|
+
throw new Error(
|
|
68
|
+
`priceUpdateV2Fields account ${address} belongs to wrong program ${info.programAddress}, expected ${programId}`
|
|
69
|
+
)
|
|
68
70
|
}
|
|
69
71
|
|
|
70
72
|
return this.decode(Buffer.from(info.data))
|
|
@@ -82,7 +84,9 @@ export class priceUpdateV2 {
|
|
|
82
84
|
return null
|
|
83
85
|
}
|
|
84
86
|
if (info.programAddress !== programId) {
|
|
85
|
-
throw new Error(
|
|
87
|
+
throw new Error(
|
|
88
|
+
`priceUpdateV2Fields account ${info.address} belongs to wrong program ${info.programAddress}, expected ${programId}`
|
|
89
|
+
)
|
|
86
90
|
}
|
|
87
91
|
|
|
88
92
|
return this.decode(Buffer.from(info.data))
|
|
@@ -54,7 +54,9 @@ export class twapUpdate {
|
|
|
54
54
|
return null
|
|
55
55
|
}
|
|
56
56
|
if (info.programAddress !== programId) {
|
|
57
|
-
throw new Error(
|
|
57
|
+
throw new Error(
|
|
58
|
+
`twapUpdateFields account ${address} belongs to wrong program ${info.programAddress}, expected ${programId}`
|
|
59
|
+
)
|
|
58
60
|
}
|
|
59
61
|
|
|
60
62
|
return this.decode(Buffer.from(info.data))
|
|
@@ -72,7 +74,9 @@ export class twapUpdate {
|
|
|
72
74
|
return null
|
|
73
75
|
}
|
|
74
76
|
if (info.programAddress !== programId) {
|
|
75
|
-
throw new Error(
|
|
77
|
+
throw new Error(
|
|
78
|
+
`twapUpdateFields account ${info.address} belongs to wrong program ${info.programAddress}, expected ${programId}`
|
|
79
|
+
)
|
|
76
80
|
}
|
|
77
81
|
|
|
78
82
|
return this.decode(Buffer.from(info.data))
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Address,
|
|
4
4
|
isSome,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
AccountMeta,
|
|
6
|
+
AccountSignerMeta,
|
|
7
|
+
Instruction,
|
|
8
8
|
Option,
|
|
9
9
|
TransactionSigner,
|
|
10
10
|
} from "@solana/kit"
|
|
@@ -15,6 +15,8 @@ import { borshAddress } from "../utils" // eslint-disable-line @typescript-eslin
|
|
|
15
15
|
import * as types from "../types" // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
16
16
|
import { PROGRAM_ID } from "../programId"
|
|
17
17
|
|
|
18
|
+
export const DISCRIMINATOR = Buffer.from([254, 39, 222, 79, 64, 217, 205, 127])
|
|
19
|
+
|
|
18
20
|
export interface AcceptGovernanceAuthorityTransferAccounts {
|
|
19
21
|
payer: TransactionSigner
|
|
20
22
|
config: Address
|
|
@@ -22,14 +24,15 @@ export interface AcceptGovernanceAuthorityTransferAccounts {
|
|
|
22
24
|
|
|
23
25
|
export function acceptGovernanceAuthorityTransfer(
|
|
24
26
|
accounts: AcceptGovernanceAuthorityTransferAccounts,
|
|
27
|
+
remainingAccounts: Array<AccountMeta | AccountSignerMeta> = [],
|
|
25
28
|
programAddress: Address = PROGRAM_ID
|
|
26
29
|
) {
|
|
27
|
-
const keys: Array<
|
|
30
|
+
const keys: Array<AccountMeta | AccountSignerMeta> = [
|
|
28
31
|
{ address: accounts.payer.address, role: 2, signer: accounts.payer },
|
|
29
32
|
{ address: accounts.config, role: 1 },
|
|
33
|
+
...remainingAccounts,
|
|
30
34
|
]
|
|
31
|
-
const
|
|
32
|
-
const
|
|
33
|
-
const ix: IInstruction = { accounts: keys, programAddress, data }
|
|
35
|
+
const data = DISCRIMINATOR
|
|
36
|
+
const ix: Instruction = { accounts: keys, programAddress, data }
|
|
34
37
|
return ix
|
|
35
38
|
}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Address,
|
|
4
4
|
isSome,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
AccountMeta,
|
|
6
|
+
AccountSignerMeta,
|
|
7
|
+
Instruction,
|
|
8
8
|
Option,
|
|
9
9
|
TransactionSigner,
|
|
10
10
|
} from "@solana/kit"
|
|
@@ -15,6 +15,8 @@ import { borshAddress } from "../utils" // eslint-disable-line @typescript-eslin
|
|
|
15
15
|
import * as types from "../types" // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
16
16
|
import { PROGRAM_ID } from "../programId"
|
|
17
17
|
|
|
18
|
+
export const DISCRIMINATOR = Buffer.from([218, 200, 19, 197, 227, 89, 192, 22])
|
|
19
|
+
|
|
18
20
|
export interface ReclaimRentAccounts {
|
|
19
21
|
payer: TransactionSigner
|
|
20
22
|
priceUpdateAccount: Address
|
|
@@ -22,14 +24,15 @@ export interface ReclaimRentAccounts {
|
|
|
22
24
|
|
|
23
25
|
export function reclaimRent(
|
|
24
26
|
accounts: ReclaimRentAccounts,
|
|
27
|
+
remainingAccounts: Array<AccountMeta | AccountSignerMeta> = [],
|
|
25
28
|
programAddress: Address = PROGRAM_ID
|
|
26
29
|
) {
|
|
27
|
-
const keys: Array<
|
|
30
|
+
const keys: Array<AccountMeta | AccountSignerMeta> = [
|
|
28
31
|
{ address: accounts.payer.address, role: 3, signer: accounts.payer },
|
|
29
32
|
{ address: accounts.priceUpdateAccount, role: 1 },
|
|
33
|
+
...remainingAccounts,
|
|
30
34
|
]
|
|
31
|
-
const
|
|
32
|
-
const
|
|
33
|
-
const ix: IInstruction = { accounts: keys, programAddress, data }
|
|
35
|
+
const data = DISCRIMINATOR
|
|
36
|
+
const ix: Instruction = { accounts: keys, programAddress, data }
|
|
34
37
|
return ix
|
|
35
38
|
}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Address,
|
|
4
4
|
isSome,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
AccountMeta,
|
|
6
|
+
AccountSignerMeta,
|
|
7
|
+
Instruction,
|
|
8
8
|
Option,
|
|
9
9
|
TransactionSigner,
|
|
10
10
|
} from "@solana/kit"
|
|
@@ -15,6 +15,8 @@ import { borshAddress } from "../utils" // eslint-disable-line @typescript-eslin
|
|
|
15
15
|
import * as types from "../types" // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
16
16
|
import { PROGRAM_ID } from "../programId"
|
|
17
17
|
|
|
18
|
+
export const DISCRIMINATOR = Buffer.from([84, 3, 32, 238, 108, 217, 135, 39])
|
|
19
|
+
|
|
18
20
|
export interface ReclaimTwapRentAccounts {
|
|
19
21
|
payer: TransactionSigner
|
|
20
22
|
twapUpdateAccount: Address
|
|
@@ -22,14 +24,15 @@ export interface ReclaimTwapRentAccounts {
|
|
|
22
24
|
|
|
23
25
|
export function reclaimTwapRent(
|
|
24
26
|
accounts: ReclaimTwapRentAccounts,
|
|
27
|
+
remainingAccounts: Array<AccountMeta | AccountSignerMeta> = [],
|
|
25
28
|
programAddress: Address = PROGRAM_ID
|
|
26
29
|
) {
|
|
27
|
-
const keys: Array<
|
|
30
|
+
const keys: Array<AccountMeta | AccountSignerMeta> = [
|
|
28
31
|
{ address: accounts.payer.address, role: 3, signer: accounts.payer },
|
|
29
32
|
{ address: accounts.twapUpdateAccount, role: 1 },
|
|
33
|
+
...remainingAccounts,
|
|
30
34
|
]
|
|
31
|
-
const
|
|
32
|
-
const
|
|
33
|
-
const ix: IInstruction = { accounts: keys, programAddress, data }
|
|
35
|
+
const data = DISCRIMINATOR
|
|
36
|
+
const ix: Instruction = { accounts: keys, programAddress, data }
|
|
34
37
|
return ix
|
|
35
38
|
}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Address,
|
|
4
4
|
isSome,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
AccountMeta,
|
|
6
|
+
AccountSignerMeta,
|
|
7
|
+
Instruction,
|
|
8
8
|
Option,
|
|
9
9
|
TransactionSigner,
|
|
10
10
|
} from "@solana/kit"
|
|
@@ -15,6 +15,8 @@ import { borshAddress } from "../utils" // eslint-disable-line @typescript-eslin
|
|
|
15
15
|
import * as types from "../types" // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
16
16
|
import { PROGRAM_ID } from "../programId"
|
|
17
17
|
|
|
18
|
+
export const DISCRIMINATOR = Buffer.from([92, 18, 67, 156, 27, 151, 183, 224])
|
|
19
|
+
|
|
18
20
|
export interface RequestGovernanceAuthorityTransferArgs {
|
|
19
21
|
targetGovernanceAuthority: Address
|
|
20
22
|
}
|
|
@@ -24,18 +26,21 @@ export interface RequestGovernanceAuthorityTransferAccounts {
|
|
|
24
26
|
config: Address
|
|
25
27
|
}
|
|
26
28
|
|
|
27
|
-
export const layout = borsh.struct([
|
|
29
|
+
export const layout = borsh.struct<RequestGovernanceAuthorityTransferArgs>([
|
|
30
|
+
borshAddress("targetGovernanceAuthority"),
|
|
31
|
+
])
|
|
28
32
|
|
|
29
33
|
export function requestGovernanceAuthorityTransfer(
|
|
30
34
|
args: RequestGovernanceAuthorityTransferArgs,
|
|
31
35
|
accounts: RequestGovernanceAuthorityTransferAccounts,
|
|
36
|
+
remainingAccounts: Array<AccountMeta | AccountSignerMeta> = [],
|
|
32
37
|
programAddress: Address = PROGRAM_ID
|
|
33
38
|
) {
|
|
34
|
-
const keys: Array<
|
|
39
|
+
const keys: Array<AccountMeta | AccountSignerMeta> = [
|
|
35
40
|
{ address: accounts.payer.address, role: 2, signer: accounts.payer },
|
|
36
41
|
{ address: accounts.config, role: 1 },
|
|
42
|
+
...remainingAccounts,
|
|
37
43
|
]
|
|
38
|
-
const identifier = Buffer.from([92, 18, 67, 156, 27, 151, 183, 224])
|
|
39
44
|
const buffer = Buffer.alloc(1000)
|
|
40
45
|
const len = layout.encode(
|
|
41
46
|
{
|
|
@@ -43,7 +48,7 @@ export function requestGovernanceAuthorityTransfer(
|
|
|
43
48
|
},
|
|
44
49
|
buffer
|
|
45
50
|
)
|
|
46
|
-
const data = Buffer.concat([
|
|
47
|
-
const ix:
|
|
51
|
+
const data = Buffer.concat([DISCRIMINATOR, buffer]).slice(0, 8 + len)
|
|
52
|
+
const ix: Instruction = { accounts: keys, programAddress, data }
|
|
48
53
|
return ix
|
|
49
54
|
}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Address,
|
|
4
4
|
isSome,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
AccountMeta,
|
|
6
|
+
AccountSignerMeta,
|
|
7
|
+
Instruction,
|
|
8
8
|
Option,
|
|
9
9
|
TransactionSigner,
|
|
10
10
|
} from "@solana/kit"
|
|
@@ -15,6 +15,8 @@ import { borshAddress } from "../utils" // eslint-disable-line @typescript-eslin
|
|
|
15
15
|
import * as types from "../types" // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
16
16
|
import { PROGRAM_ID } from "../programId"
|
|
17
17
|
|
|
18
|
+
export const DISCRIMINATOR = Buffer.from([107, 73, 15, 119, 195, 116, 91, 210])
|
|
19
|
+
|
|
18
20
|
export interface SetDataSourcesArgs {
|
|
19
21
|
validDataSources: Array<types.DataSourceFields>
|
|
20
22
|
}
|
|
@@ -24,20 +26,21 @@ export interface SetDataSourcesAccounts {
|
|
|
24
26
|
config: Address
|
|
25
27
|
}
|
|
26
28
|
|
|
27
|
-
export const layout = borsh.struct([
|
|
29
|
+
export const layout = borsh.struct<SetDataSourcesArgs>([
|
|
28
30
|
borsh.vec(types.DataSource.layout(), "validDataSources"),
|
|
29
31
|
])
|
|
30
32
|
|
|
31
33
|
export function setDataSources(
|
|
32
34
|
args: SetDataSourcesArgs,
|
|
33
35
|
accounts: SetDataSourcesAccounts,
|
|
36
|
+
remainingAccounts: Array<AccountMeta | AccountSignerMeta> = [],
|
|
34
37
|
programAddress: Address = PROGRAM_ID
|
|
35
38
|
) {
|
|
36
|
-
const keys: Array<
|
|
39
|
+
const keys: Array<AccountMeta | AccountSignerMeta> = [
|
|
37
40
|
{ address: accounts.payer.address, role: 2, signer: accounts.payer },
|
|
38
41
|
{ address: accounts.config, role: 1 },
|
|
42
|
+
...remainingAccounts,
|
|
39
43
|
]
|
|
40
|
-
const identifier = Buffer.from([107, 73, 15, 119, 195, 116, 91, 210])
|
|
41
44
|
const buffer = Buffer.alloc(1000)
|
|
42
45
|
const len = layout.encode(
|
|
43
46
|
{
|
|
@@ -47,7 +50,7 @@ export function setDataSources(
|
|
|
47
50
|
},
|
|
48
51
|
buffer
|
|
49
52
|
)
|
|
50
|
-
const data = Buffer.concat([
|
|
51
|
-
const ix:
|
|
53
|
+
const data = Buffer.concat([DISCRIMINATOR, buffer]).slice(0, 8 + len)
|
|
54
|
+
const ix: Instruction = { accounts: keys, programAddress, data }
|
|
52
55
|
return ix
|
|
53
56
|
}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Address,
|
|
4
4
|
isSome,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
AccountMeta,
|
|
6
|
+
AccountSignerMeta,
|
|
7
|
+
Instruction,
|
|
8
8
|
Option,
|
|
9
9
|
TransactionSigner,
|
|
10
10
|
} from "@solana/kit"
|
|
@@ -15,6 +15,8 @@ import { borshAddress } from "../utils" // eslint-disable-line @typescript-eslin
|
|
|
15
15
|
import * as types from "../types" // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
16
16
|
import { PROGRAM_ID } from "../programId"
|
|
17
17
|
|
|
18
|
+
export const DISCRIMINATOR = Buffer.from([18, 154, 24, 18, 237, 214, 19, 80])
|
|
19
|
+
|
|
18
20
|
export interface SetFeeArgs {
|
|
19
21
|
singleUpdateFeeInLamports: BN
|
|
20
22
|
}
|
|
@@ -24,18 +26,21 @@ export interface SetFeeAccounts {
|
|
|
24
26
|
config: Address
|
|
25
27
|
}
|
|
26
28
|
|
|
27
|
-
export const layout = borsh.struct([
|
|
29
|
+
export const layout = borsh.struct<SetFeeArgs>([
|
|
30
|
+
borsh.u64("singleUpdateFeeInLamports"),
|
|
31
|
+
])
|
|
28
32
|
|
|
29
33
|
export function setFee(
|
|
30
34
|
args: SetFeeArgs,
|
|
31
35
|
accounts: SetFeeAccounts,
|
|
36
|
+
remainingAccounts: Array<AccountMeta | AccountSignerMeta> = [],
|
|
32
37
|
programAddress: Address = PROGRAM_ID
|
|
33
38
|
) {
|
|
34
|
-
const keys: Array<
|
|
39
|
+
const keys: Array<AccountMeta | AccountSignerMeta> = [
|
|
35
40
|
{ address: accounts.payer.address, role: 2, signer: accounts.payer },
|
|
36
41
|
{ address: accounts.config, role: 1 },
|
|
42
|
+
...remainingAccounts,
|
|
37
43
|
]
|
|
38
|
-
const identifier = Buffer.from([18, 154, 24, 18, 237, 214, 19, 80])
|
|
39
44
|
const buffer = Buffer.alloc(1000)
|
|
40
45
|
const len = layout.encode(
|
|
41
46
|
{
|
|
@@ -43,7 +48,7 @@ export function setFee(
|
|
|
43
48
|
},
|
|
44
49
|
buffer
|
|
45
50
|
)
|
|
46
|
-
const data = Buffer.concat([
|
|
47
|
-
const ix:
|
|
51
|
+
const data = Buffer.concat([DISCRIMINATOR, buffer]).slice(0, 8 + len)
|
|
52
|
+
const ix: Instruction = { accounts: keys, programAddress, data }
|
|
48
53
|
return ix
|
|
49
54
|
}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Address,
|
|
4
4
|
isSome,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
AccountMeta,
|
|
6
|
+
AccountSignerMeta,
|
|
7
|
+
Instruction,
|
|
8
8
|
Option,
|
|
9
9
|
TransactionSigner,
|
|
10
10
|
} from "@solana/kit"
|
|
@@ -15,6 +15,8 @@ import { borshAddress } from "../utils" // eslint-disable-line @typescript-eslin
|
|
|
15
15
|
import * as types from "../types" // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
16
16
|
import { PROGRAM_ID } from "../programId"
|
|
17
17
|
|
|
18
|
+
export const DISCRIMINATOR = Buffer.from([5, 210, 206, 124, 43, 68, 104, 149])
|
|
19
|
+
|
|
18
20
|
export interface SetMinimumSignaturesArgs {
|
|
19
21
|
minimumSignatures: number
|
|
20
22
|
}
|
|
@@ -24,18 +26,21 @@ export interface SetMinimumSignaturesAccounts {
|
|
|
24
26
|
config: Address
|
|
25
27
|
}
|
|
26
28
|
|
|
27
|
-
export const layout = borsh.struct([
|
|
29
|
+
export const layout = borsh.struct<SetMinimumSignaturesArgs>([
|
|
30
|
+
borsh.u8("minimumSignatures"),
|
|
31
|
+
])
|
|
28
32
|
|
|
29
33
|
export function setMinimumSignatures(
|
|
30
34
|
args: SetMinimumSignaturesArgs,
|
|
31
35
|
accounts: SetMinimumSignaturesAccounts,
|
|
36
|
+
remainingAccounts: Array<AccountMeta | AccountSignerMeta> = [],
|
|
32
37
|
programAddress: Address = PROGRAM_ID
|
|
33
38
|
) {
|
|
34
|
-
const keys: Array<
|
|
39
|
+
const keys: Array<AccountMeta | AccountSignerMeta> = [
|
|
35
40
|
{ address: accounts.payer.address, role: 2, signer: accounts.payer },
|
|
36
41
|
{ address: accounts.config, role: 1 },
|
|
42
|
+
...remainingAccounts,
|
|
37
43
|
]
|
|
38
|
-
const identifier = Buffer.from([5, 210, 206, 124, 43, 68, 104, 149])
|
|
39
44
|
const buffer = Buffer.alloc(1000)
|
|
40
45
|
const len = layout.encode(
|
|
41
46
|
{
|
|
@@ -43,7 +48,7 @@ export function setMinimumSignatures(
|
|
|
43
48
|
},
|
|
44
49
|
buffer
|
|
45
50
|
)
|
|
46
|
-
const data = Buffer.concat([
|
|
47
|
-
const ix:
|
|
51
|
+
const data = Buffer.concat([DISCRIMINATOR, buffer]).slice(0, 8 + len)
|
|
52
|
+
const ix: Instruction = { accounts: keys, programAddress, data }
|
|
48
53
|
return ix
|
|
49
54
|
}
|