Type Alias ParsedWhirlpoolInstruction<TProgram>

ParsedWhirlpoolInstruction:
    | { instructionType: InitializeConfig } & ParsedInitializeConfigInstruction<
        TProgram,
    >
    | { instructionType: InitializePool } & ParsedInitializePoolInstruction<
        TProgram,
    >
    | { instructionType: InitializeTickArray } & ParsedInitializeTickArrayInstruction<
        TProgram,
    >
    | { instructionType: InitializeFeeTier } & ParsedInitializeFeeTierInstruction<
        TProgram,
    >
    | { instructionType: InitializeReward } & ParsedInitializeRewardInstruction<
        TProgram,
    >
    | { instructionType: SetRewardEmissions } & ParsedSetRewardEmissionsInstruction<
        TProgram,
    >
    | { instructionType: OpenPosition } & ParsedOpenPositionInstruction<
        TProgram,
    >
    | { instructionType: OpenPositionWithMetadata } & ParsedOpenPositionWithMetadataInstruction<
        TProgram,
    >
    | { instructionType: IncreaseLiquidity } & ParsedIncreaseLiquidityInstruction<
        TProgram,
    >
    | { instructionType: DecreaseLiquidity } & ParsedDecreaseLiquidityInstruction<
        TProgram,
    >
    | { instructionType: UpdateFeesAndRewards } & ParsedUpdateFeesAndRewardsInstruction<
        TProgram,
    >
    | { instructionType: CollectFees } & ParsedCollectFeesInstruction<TProgram>
    | { instructionType: CollectReward } & ParsedCollectRewardInstruction<
        TProgram,
    >
    | { instructionType: CollectProtocolFees } & ParsedCollectProtocolFeesInstruction<
        TProgram,
    >
    | { instructionType: Swap } & ParsedSwapInstruction<TProgram>
    | { instructionType: ClosePosition } & ParsedClosePositionInstruction<
        TProgram,
    >
    | { instructionType: SetDefaultFeeRate } & ParsedSetDefaultFeeRateInstruction<
        TProgram,
    >
    | { instructionType: SetDefaultProtocolFeeRate } & ParsedSetDefaultProtocolFeeRateInstruction<
        TProgram,
    >
    | { instructionType: SetFeeRate } & ParsedSetFeeRateInstruction<TProgram>
    | { instructionType: SetProtocolFeeRate } & ParsedSetProtocolFeeRateInstruction<
        TProgram,
    >
    | { instructionType: SetFeeAuthority } & ParsedSetFeeAuthorityInstruction<
        TProgram,
    >
    | { instructionType: SetCollectProtocolFeesAuthority } & ParsedSetCollectProtocolFeesAuthorityInstruction<
        TProgram,
    >
    | { instructionType: SetRewardAuthority } & ParsedSetRewardAuthorityInstruction<
        TProgram,
    >
    | { instructionType: SetRewardAuthorityBySuperAuthority } & ParsedSetRewardAuthorityBySuperAuthorityInstruction<
        TProgram,
    >
    | { instructionType: SetRewardEmissionsSuperAuthority } & ParsedSetRewardEmissionsSuperAuthorityInstruction<
        TProgram,
    >
    | { instructionType: TwoHopSwap } & ParsedTwoHopSwapInstruction<TProgram>
    | { instructionType: InitializePositionBundle } & ParsedInitializePositionBundleInstruction<
        TProgram,
    >
    | { instructionType: InitializePositionBundleWithMetadata } & ParsedInitializePositionBundleWithMetadataInstruction<
        TProgram,
    >
    | { instructionType: DeletePositionBundle } & ParsedDeletePositionBundleInstruction<
        TProgram,
    >
    | { instructionType: OpenBundledPosition } & ParsedOpenBundledPositionInstruction<
        TProgram,
    >
    | { instructionType: CloseBundledPosition } & ParsedCloseBundledPositionInstruction<
        TProgram,
    >
    | { instructionType: OpenPositionWithTokenExtensions } & ParsedOpenPositionWithTokenExtensionsInstruction<
        TProgram,
    >
    | { instructionType: ClosePositionWithTokenExtensions } & ParsedClosePositionWithTokenExtensionsInstruction<
        TProgram,
    >
    | { instructionType: CollectFeesV2 } & ParsedCollectFeesV2Instruction<
        TProgram,
    >
    | { instructionType: CollectProtocolFeesV2 } & ParsedCollectProtocolFeesV2Instruction<
        TProgram,
    >
    | { instructionType: CollectRewardV2 } & ParsedCollectRewardV2Instruction<
        TProgram,
    >
    | { instructionType: DecreaseLiquidityV2 } & ParsedDecreaseLiquidityV2Instruction<
        TProgram,
    >
    | { instructionType: IncreaseLiquidityV2 } & ParsedIncreaseLiquidityV2Instruction<
        TProgram,
    >
    | { instructionType: InitializePoolV2 } & ParsedInitializePoolV2Instruction<
        TProgram,
    >
    | { instructionType: InitializeRewardV2 } & ParsedInitializeRewardV2Instruction<
        TProgram,
    >
    | { instructionType: SetRewardEmissionsV2 } & ParsedSetRewardEmissionsV2Instruction<
        TProgram,
    >
    | { instructionType: SwapV2 } & ParsedSwapV2Instruction<TProgram>
    | { instructionType: TwoHopSwapV2 } & ParsedTwoHopSwapV2Instruction<
        TProgram,
    >
    | { instructionType: InitializeConfigExtension } & ParsedInitializeConfigExtensionInstruction<
        TProgram,
    >
    | { instructionType: SetConfigExtensionAuthority } & ParsedSetConfigExtensionAuthorityInstruction<
        TProgram,
    >
    | { instructionType: SetTokenBadgeAuthority } & ParsedSetTokenBadgeAuthorityInstruction<
        TProgram,
    >
    | { instructionType: InitializeTokenBadge } & ParsedInitializeTokenBadgeInstruction<
        TProgram,
    >
    | { instructionType: DeleteTokenBadge } & ParsedDeleteTokenBadgeInstruction<
        TProgram,
    >

Type Parameters

  • TProgram extends string = "whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc"