@kamino-finance/klend-sdk 7.0.12 → 7.1.0
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 +5 -4
- 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/market.d.ts.map +1 -1
- package/dist/classes/market.js +5 -5
- package/dist/classes/market.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 +13 -13
- 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/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 +16 -12
- 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/market.ts +17 -5
- package/src/classes/reserve.ts +8 -8
- package/src/classes/vault.ts +51 -44
- 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/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
|
@@ -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
|
}
|
|
@@ -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,10 @@ 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([
|
|
19
|
+
154, 174, 252, 157, 91, 215, 179, 156,
|
|
20
|
+
])
|
|
21
|
+
|
|
18
22
|
export interface SetWormholeAddressArgs {
|
|
19
23
|
wormhole: Address
|
|
20
24
|
}
|
|
@@ -24,18 +28,21 @@ export interface SetWormholeAddressAccounts {
|
|
|
24
28
|
config: Address
|
|
25
29
|
}
|
|
26
30
|
|
|
27
|
-
export const layout = borsh.struct([
|
|
31
|
+
export const layout = borsh.struct<SetWormholeAddressArgs>([
|
|
32
|
+
borshAddress("wormhole"),
|
|
33
|
+
])
|
|
28
34
|
|
|
29
35
|
export function setWormholeAddress(
|
|
30
36
|
args: SetWormholeAddressArgs,
|
|
31
37
|
accounts: SetWormholeAddressAccounts,
|
|
38
|
+
remainingAccounts: Array<AccountMeta | AccountSignerMeta> = [],
|
|
32
39
|
programAddress: Address = PROGRAM_ID
|
|
33
40
|
) {
|
|
34
|
-
const keys: Array<
|
|
41
|
+
const keys: Array<AccountMeta | AccountSignerMeta> = [
|
|
35
42
|
{ address: accounts.payer.address, role: 2, signer: accounts.payer },
|
|
36
43
|
{ address: accounts.config, role: 1 },
|
|
44
|
+
...remainingAccounts,
|
|
37
45
|
]
|
|
38
|
-
const identifier = Buffer.from([154, 174, 252, 157, 91, 215, 179, 156])
|
|
39
46
|
const buffer = Buffer.alloc(1000)
|
|
40
47
|
const len = layout.encode(
|
|
41
48
|
{
|
|
@@ -43,7 +50,7 @@ export function setWormholeAddress(
|
|
|
43
50
|
},
|
|
44
51
|
buffer
|
|
45
52
|
)
|
|
46
|
-
const data = Buffer.concat([
|
|
47
|
-
const ix:
|
|
53
|
+
const data = Buffer.concat([DISCRIMINATOR, buffer]).slice(0, 8 + len)
|
|
54
|
+
const ix: Instruction = { accounts: keys, programAddress, data }
|
|
48
55
|
return ix
|
|
49
56
|
}
|