Coda by Ian Macalinao
    Preparing search index...

    Type Alias KaminoLendingPluginInstructions

    type KaminoLendingPluginInstructions = {
        borrowObligationLiquidity: (
            input: BorrowObligationLiquidityAsyncInput,
        ) => ReturnType<typeof getBorrowObligationLiquidityInstructionAsync> & SelfPlanAndSendFunctions;
        borrowObligationLiquidityV2: (
            input: BorrowObligationLiquidityV2AsyncInput,
        ) => ReturnType<typeof getBorrowObligationLiquidityV2InstructionAsync> & SelfPlanAndSendFunctions;
        deleteReferrerStateAndShortUrl: (
            input: DeleteReferrerStateAndShortUrlInput,
        ) => ReturnType<typeof getDeleteReferrerStateAndShortUrlInstruction> & SelfPlanAndSendFunctions;
        depositAndWithdraw: (
            input: DepositAndWithdrawInput,
        ) => ReturnType<typeof getDepositAndWithdrawInstruction> & SelfPlanAndSendFunctions;
        depositObligationCollateral: (
            input: DepositObligationCollateralInput,
        ) => ReturnType<typeof getDepositObligationCollateralInstruction> & SelfPlanAndSendFunctions;
        depositObligationCollateralV2: (
            input: DepositObligationCollateralV2AsyncInput,
        ) => ReturnType<typeof getDepositObligationCollateralV2InstructionAsync> & SelfPlanAndSendFunctions;
        depositReserveLiquidity: (
            input: DepositReserveLiquidityAsyncInput,
        ) => ReturnType<typeof getDepositReserveLiquidityInstructionAsync> & SelfPlanAndSendFunctions;
        depositReserveLiquidityAndObligationCollateral: (
            input: DepositReserveLiquidityAndObligationCollateralAsyncInput,
        ) => ReturnType<
            typeof getDepositReserveLiquidityAndObligationCollateralInstructionAsync,
        > & SelfPlanAndSendFunctions;
        depositReserveLiquidityAndObligationCollateralV2: (
            input: DepositReserveLiquidityAndObligationCollateralV2AsyncInput,
        ) => ReturnType<
            typeof getDepositReserveLiquidityAndObligationCollateralV2InstructionAsync,
        > & SelfPlanAndSendFunctions;
        flashBorrowReserveLiquidity: (
            input: FlashBorrowReserveLiquidityAsyncInput,
        ) => ReturnType<typeof getFlashBorrowReserveLiquidityInstructionAsync> & SelfPlanAndSendFunctions;
        flashRepayReserveLiquidity: (
            input: FlashRepayReserveLiquidityAsyncInput,
        ) => ReturnType<typeof getFlashRepayReserveLiquidityInstructionAsync> & SelfPlanAndSendFunctions;
        idlMissingTypes: (
            input: IdlMissingTypesInput,
        ) => ReturnType<typeof getIdlMissingTypesInstruction> & SelfPlanAndSendFunctions;
        initFarmsForReserve: (
            input: InitFarmsForReserveAsyncInput,
        ) => ReturnType<typeof getInitFarmsForReserveInstructionAsync> & SelfPlanAndSendFunctions;
        initGlobalConfig: (
            input: MakeOptional<InitGlobalConfigAsyncInput, "payer">,
        ) => ReturnType<typeof getInitGlobalConfigInstructionAsync> & SelfPlanAndSendFunctions;
        initLendingMarket: (
            input: InitLendingMarketAsyncInput,
        ) => ReturnType<typeof getInitLendingMarketInstructionAsync> & SelfPlanAndSendFunctions;
        initObligation: (
            input: MakeOptional<InitObligationInput, "feePayer">,
        ) => ReturnType<typeof getInitObligationInstruction> & SelfPlanAndSendFunctions;
        initObligationFarmsForReserve: (
            input: MakeOptional<InitObligationFarmsForReserveAsyncInput, "payer">,
        ) => ReturnType<typeof getInitObligationFarmsForReserveInstructionAsync> & SelfPlanAndSendFunctions;
        initReferrerStateAndShortUrl: (
            input: InitReferrerStateAndShortUrlInput,
        ) => ReturnType<typeof getInitReferrerStateAndShortUrlInstruction> & SelfPlanAndSendFunctions;
        initReferrerTokenState: (
            input: MakeOptional<InitReferrerTokenStateInput, "payer">,
        ) => ReturnType<typeof getInitReferrerTokenStateInstruction> & SelfPlanAndSendFunctions;
        initReserve: (
            input: InitReserveAsyncInput,
        ) => ReturnType<typeof getInitReserveInstructionAsync> & SelfPlanAndSendFunctions;
        initUserMetadata: (
            input: MakeOptional<InitUserMetadataInput, "feePayer">,
        ) => ReturnType<typeof getInitUserMetadataInstruction> & SelfPlanAndSendFunctions;
        liquidateObligationAndRedeemReserveCollateral: (
            input: LiquidateObligationAndRedeemReserveCollateralAsyncInput,
        ) => ReturnType<
            typeof getLiquidateObligationAndRedeemReserveCollateralInstructionAsync,
        > & SelfPlanAndSendFunctions;
        liquidateObligationAndRedeemReserveCollateralV2: (
            input: LiquidateObligationAndRedeemReserveCollateralV2Input,
        ) => ReturnType<
            typeof getLiquidateObligationAndRedeemReserveCollateralV2Instruction,
        > & SelfPlanAndSendFunctions;
        markObligationForDeleveraging: (
            input: MarkObligationForDeleveragingInput,
        ) => ReturnType<typeof getMarkObligationForDeleveragingInstruction> & SelfPlanAndSendFunctions;
        redeemFees: (
            input: RedeemFeesAsyncInput,
        ) => ReturnType<typeof getRedeemFeesInstructionAsync> & SelfPlanAndSendFunctions;
        redeemReserveCollateral: (
            input: RedeemReserveCollateralAsyncInput,
        ) => ReturnType<typeof getRedeemReserveCollateralInstructionAsync> & SelfPlanAndSendFunctions;
        refreshObligation: (
            input: RefreshObligationInput,
        ) => ReturnType<typeof getRefreshObligationInstruction> & SelfPlanAndSendFunctions;
        refreshObligationFarmsForReserve: (
            input: RefreshObligationFarmsForReserveAsyncInput,
        ) => ReturnType<typeof getRefreshObligationFarmsForReserveInstructionAsync> & SelfPlanAndSendFunctions;
        refreshReserve: (
            input: RefreshReserveInput,
        ) => ReturnType<typeof getRefreshReserveInstruction> & SelfPlanAndSendFunctions;
        refreshReservesBatch: (
            input: RefreshReservesBatchInput,
        ) => ReturnType<typeof getRefreshReservesBatchInstruction> & SelfPlanAndSendFunctions;
        repayAndWithdrawAndRedeem: (
            input: RepayAndWithdrawAndRedeemInput,
        ) => ReturnType<typeof getRepayAndWithdrawAndRedeemInstruction> & SelfPlanAndSendFunctions;
        repayObligationLiquidity: (
            input: RepayObligationLiquidityInput,
        ) => ReturnType<typeof getRepayObligationLiquidityInstruction> & SelfPlanAndSendFunctions;
        repayObligationLiquidityV2: (
            input: RepayObligationLiquidityV2AsyncInput,
        ) => ReturnType<typeof getRepayObligationLiquidityV2InstructionAsync> & SelfPlanAndSendFunctions;
        requestElevationGroup: (
            input: RequestElevationGroupInput,
        ) => ReturnType<typeof getRequestElevationGroupInstruction> & SelfPlanAndSendFunctions;
        setObligationOrder: (
            input: SetObligationOrderInput,
        ) => ReturnType<typeof getSetObligationOrderInstruction> & SelfPlanAndSendFunctions;
        socializeLoss: (
            input: SocializeLossInput,
        ) => ReturnType<typeof getSocializeLossInstruction> & SelfPlanAndSendFunctions;
        socializeLossV2: (
            input: SocializeLossV2AsyncInput,
        ) => ReturnType<typeof getSocializeLossV2InstructionAsync> & SelfPlanAndSendFunctions;
        updateGlobalConfig: (
            input: UpdateGlobalConfigInput,
        ) => ReturnType<typeof getUpdateGlobalConfigInstruction> & SelfPlanAndSendFunctions;
        updateGlobalConfigAdmin: (
            input: UpdateGlobalConfigAdminInput,
        ) => ReturnType<typeof getUpdateGlobalConfigAdminInstruction> & SelfPlanAndSendFunctions;
        updateLendingMarket: (
            input: UpdateLendingMarketInput,
        ) => ReturnType<typeof getUpdateLendingMarketInstruction> & SelfPlanAndSendFunctions;
        updateLendingMarketOwner: (
            input: UpdateLendingMarketOwnerInput,
        ) => ReturnType<typeof getUpdateLendingMarketOwnerInstruction> & SelfPlanAndSendFunctions;
        updateReserveConfig: (
            input: UpdateReserveConfigInput,
        ) => ReturnType<typeof getUpdateReserveConfigInstruction> & SelfPlanAndSendFunctions;
        withdrawObligationCollateral: (
            input: WithdrawObligationCollateralAsyncInput,
        ) => ReturnType<typeof getWithdrawObligationCollateralInstructionAsync> & SelfPlanAndSendFunctions;
        withdrawObligationCollateralAndRedeemReserveCollateral: (
            input: WithdrawObligationCollateralAndRedeemReserveCollateralAsyncInput,
        ) => ReturnType<
            typeof getWithdrawObligationCollateralAndRedeemReserveCollateralInstructionAsync,
        > & SelfPlanAndSendFunctions;
        withdrawObligationCollateralAndRedeemReserveCollateralV2: (
            input: WithdrawObligationCollateralAndRedeemReserveCollateralV2AsyncInput,
        ) => ReturnType<
            typeof getWithdrawObligationCollateralAndRedeemReserveCollateralV2InstructionAsync,
        > & SelfPlanAndSendFunctions;
        withdrawObligationCollateralV2: (
            input: WithdrawObligationCollateralV2AsyncInput,
        ) => ReturnType<typeof getWithdrawObligationCollateralV2InstructionAsync> & SelfPlanAndSendFunctions;
        withdrawProtocolFee: (
            input: WithdrawProtocolFeeAsyncInput,
        ) => ReturnType<typeof getWithdrawProtocolFeeInstructionAsync> & SelfPlanAndSendFunctions;
        withdrawReferrerFees: (
            input: WithdrawReferrerFeesAsyncInput,
        ) => ReturnType<typeof getWithdrawReferrerFeesInstructionAsync> & SelfPlanAndSendFunctions;
    }
    Index
    borrowObligationLiquidity: (
        input: BorrowObligationLiquidityAsyncInput,
    ) => ReturnType<typeof getBorrowObligationLiquidityInstructionAsync> & SelfPlanAndSendFunctions
    borrowObligationLiquidityV2: (
        input: BorrowObligationLiquidityV2AsyncInput,
    ) => ReturnType<typeof getBorrowObligationLiquidityV2InstructionAsync> & SelfPlanAndSendFunctions
    deleteReferrerStateAndShortUrl: (
        input: DeleteReferrerStateAndShortUrlInput,
    ) => ReturnType<typeof getDeleteReferrerStateAndShortUrlInstruction> & SelfPlanAndSendFunctions
    depositAndWithdraw: (
        input: DepositAndWithdrawInput,
    ) => ReturnType<typeof getDepositAndWithdrawInstruction> & SelfPlanAndSendFunctions
    depositObligationCollateral: (
        input: DepositObligationCollateralInput,
    ) => ReturnType<typeof getDepositObligationCollateralInstruction> & SelfPlanAndSendFunctions
    depositObligationCollateralV2: (
        input: DepositObligationCollateralV2AsyncInput,
    ) => ReturnType<typeof getDepositObligationCollateralV2InstructionAsync> & SelfPlanAndSendFunctions
    depositReserveLiquidity: (
        input: DepositReserveLiquidityAsyncInput,
    ) => ReturnType<typeof getDepositReserveLiquidityInstructionAsync> & SelfPlanAndSendFunctions
    depositReserveLiquidityAndObligationCollateral: (
        input: DepositReserveLiquidityAndObligationCollateralAsyncInput,
    ) => ReturnType<
        typeof getDepositReserveLiquidityAndObligationCollateralInstructionAsync,
    > & SelfPlanAndSendFunctions
    depositReserveLiquidityAndObligationCollateralV2: (
        input: DepositReserveLiquidityAndObligationCollateralV2AsyncInput,
    ) => ReturnType<
        typeof getDepositReserveLiquidityAndObligationCollateralV2InstructionAsync,
    > & SelfPlanAndSendFunctions
    flashBorrowReserveLiquidity: (
        input: FlashBorrowReserveLiquidityAsyncInput,
    ) => ReturnType<typeof getFlashBorrowReserveLiquidityInstructionAsync> & SelfPlanAndSendFunctions
    flashRepayReserveLiquidity: (
        input: FlashRepayReserveLiquidityAsyncInput,
    ) => ReturnType<typeof getFlashRepayReserveLiquidityInstructionAsync> & SelfPlanAndSendFunctions
    idlMissingTypes: (
        input: IdlMissingTypesInput,
    ) => ReturnType<typeof getIdlMissingTypesInstruction> & SelfPlanAndSendFunctions
    initFarmsForReserve: (
        input: InitFarmsForReserveAsyncInput,
    ) => ReturnType<typeof getInitFarmsForReserveInstructionAsync> & SelfPlanAndSendFunctions
    initGlobalConfig: (
        input: MakeOptional<InitGlobalConfigAsyncInput, "payer">,
    ) => ReturnType<typeof getInitGlobalConfigInstructionAsync> & SelfPlanAndSendFunctions
    initLendingMarket: (
        input: InitLendingMarketAsyncInput,
    ) => ReturnType<typeof getInitLendingMarketInstructionAsync> & SelfPlanAndSendFunctions
    initObligation: (
        input: MakeOptional<InitObligationInput, "feePayer">,
    ) => ReturnType<typeof getInitObligationInstruction> & SelfPlanAndSendFunctions
    initObligationFarmsForReserve: (
        input: MakeOptional<InitObligationFarmsForReserveAsyncInput, "payer">,
    ) => ReturnType<typeof getInitObligationFarmsForReserveInstructionAsync> & SelfPlanAndSendFunctions
    initReferrerStateAndShortUrl: (
        input: InitReferrerStateAndShortUrlInput,
    ) => ReturnType<typeof getInitReferrerStateAndShortUrlInstruction> & SelfPlanAndSendFunctions
    initReferrerTokenState: (
        input: MakeOptional<InitReferrerTokenStateInput, "payer">,
    ) => ReturnType<typeof getInitReferrerTokenStateInstruction> & SelfPlanAndSendFunctions
    initReserve: (
        input: InitReserveAsyncInput,
    ) => ReturnType<typeof getInitReserveInstructionAsync> & SelfPlanAndSendFunctions
    initUserMetadata: (
        input: MakeOptional<InitUserMetadataInput, "feePayer">,
    ) => ReturnType<typeof getInitUserMetadataInstruction> & SelfPlanAndSendFunctions
    liquidateObligationAndRedeemReserveCollateral: (
        input: LiquidateObligationAndRedeemReserveCollateralAsyncInput,
    ) => ReturnType<
        typeof getLiquidateObligationAndRedeemReserveCollateralInstructionAsync,
    > & SelfPlanAndSendFunctions
    liquidateObligationAndRedeemReserveCollateralV2: (
        input: LiquidateObligationAndRedeemReserveCollateralV2Input,
    ) => ReturnType<
        typeof getLiquidateObligationAndRedeemReserveCollateralV2Instruction,
    > & SelfPlanAndSendFunctions
    markObligationForDeleveraging: (
        input: MarkObligationForDeleveragingInput,
    ) => ReturnType<typeof getMarkObligationForDeleveragingInstruction> & SelfPlanAndSendFunctions
    redeemFees: (
        input: RedeemFeesAsyncInput,
    ) => ReturnType<typeof getRedeemFeesInstructionAsync> & SelfPlanAndSendFunctions
    redeemReserveCollateral: (
        input: RedeemReserveCollateralAsyncInput,
    ) => ReturnType<typeof getRedeemReserveCollateralInstructionAsync> & SelfPlanAndSendFunctions
    refreshObligation: (
        input: RefreshObligationInput,
    ) => ReturnType<typeof getRefreshObligationInstruction> & SelfPlanAndSendFunctions
    refreshObligationFarmsForReserve: (
        input: RefreshObligationFarmsForReserveAsyncInput,
    ) => ReturnType<typeof getRefreshObligationFarmsForReserveInstructionAsync> & SelfPlanAndSendFunctions
    refreshReserve: (
        input: RefreshReserveInput,
    ) => ReturnType<typeof getRefreshReserveInstruction> & SelfPlanAndSendFunctions
    refreshReservesBatch: (
        input: RefreshReservesBatchInput,
    ) => ReturnType<typeof getRefreshReservesBatchInstruction> & SelfPlanAndSendFunctions
    repayAndWithdrawAndRedeem: (
        input: RepayAndWithdrawAndRedeemInput,
    ) => ReturnType<typeof getRepayAndWithdrawAndRedeemInstruction> & SelfPlanAndSendFunctions
    repayObligationLiquidity: (
        input: RepayObligationLiquidityInput,
    ) => ReturnType<typeof getRepayObligationLiquidityInstruction> & SelfPlanAndSendFunctions
    repayObligationLiquidityV2: (
        input: RepayObligationLiquidityV2AsyncInput,
    ) => ReturnType<typeof getRepayObligationLiquidityV2InstructionAsync> & SelfPlanAndSendFunctions
    requestElevationGroup: (
        input: RequestElevationGroupInput,
    ) => ReturnType<typeof getRequestElevationGroupInstruction> & SelfPlanAndSendFunctions
    setObligationOrder: (
        input: SetObligationOrderInput,
    ) => ReturnType<typeof getSetObligationOrderInstruction> & SelfPlanAndSendFunctions
    socializeLoss: (
        input: SocializeLossInput,
    ) => ReturnType<typeof getSocializeLossInstruction> & SelfPlanAndSendFunctions
    socializeLossV2: (
        input: SocializeLossV2AsyncInput,
    ) => ReturnType<typeof getSocializeLossV2InstructionAsync> & SelfPlanAndSendFunctions
    updateGlobalConfig: (
        input: UpdateGlobalConfigInput,
    ) => ReturnType<typeof getUpdateGlobalConfigInstruction> & SelfPlanAndSendFunctions
    updateGlobalConfigAdmin: (
        input: UpdateGlobalConfigAdminInput,
    ) => ReturnType<typeof getUpdateGlobalConfigAdminInstruction> & SelfPlanAndSendFunctions
    updateLendingMarket: (
        input: UpdateLendingMarketInput,
    ) => ReturnType<typeof getUpdateLendingMarketInstruction> & SelfPlanAndSendFunctions
    updateLendingMarketOwner: (
        input: UpdateLendingMarketOwnerInput,
    ) => ReturnType<typeof getUpdateLendingMarketOwnerInstruction> & SelfPlanAndSendFunctions
    updateReserveConfig: (
        input: UpdateReserveConfigInput,
    ) => ReturnType<typeof getUpdateReserveConfigInstruction> & SelfPlanAndSendFunctions
    withdrawObligationCollateral: (
        input: WithdrawObligationCollateralAsyncInput,
    ) => ReturnType<typeof getWithdrawObligationCollateralInstructionAsync> & SelfPlanAndSendFunctions
    withdrawObligationCollateralAndRedeemReserveCollateral: (
        input: WithdrawObligationCollateralAndRedeemReserveCollateralAsyncInput,
    ) => ReturnType<
        typeof getWithdrawObligationCollateralAndRedeemReserveCollateralInstructionAsync,
    > & SelfPlanAndSendFunctions
    withdrawObligationCollateralAndRedeemReserveCollateralV2: (
        input: WithdrawObligationCollateralAndRedeemReserveCollateralV2AsyncInput,
    ) => ReturnType<
        typeof getWithdrawObligationCollateralAndRedeemReserveCollateralV2InstructionAsync,
    > & SelfPlanAndSendFunctions
    withdrawObligationCollateralV2: (
        input: WithdrawObligationCollateralV2AsyncInput,
    ) => ReturnType<typeof getWithdrawObligationCollateralV2InstructionAsync> & SelfPlanAndSendFunctions
    withdrawProtocolFee: (
        input: WithdrawProtocolFeeAsyncInput,
    ) => ReturnType<typeof getWithdrawProtocolFeeInstructionAsync> & SelfPlanAndSendFunctions
    withdrawReferrerFees: (
        input: WithdrawReferrerFeesAsyncInput,
    ) => ReturnType<typeof getWithdrawReferrerFeesInstructionAsync> & SelfPlanAndSendFunctions