Type Alias CollectProtocolFeesV2Instruction<TProgram, TAccountWhirlpoolsConfig, TAccountWhirlpool, TAccountCollectProtocolFeesAuthority, TAccountTokenMintA, TAccountTokenMintB, TAccountTokenVaultA, TAccountTokenVaultB, TAccountTokenDestinationA, TAccountTokenDestinationB, TAccountTokenProgramA, TAccountTokenProgramB, TAccountMemoProgram, TRemainingAccounts>

CollectProtocolFeesV2Instruction: IInstruction<TProgram> & IInstructionWithData<
    Uint8Array,
> & IInstructionWithAccounts<
    [
        TAccountWhirlpoolsConfig extends string
            ? ReadonlyAccount<TAccountWhirlpoolsConfig>
            : TAccountWhirlpoolsConfig,
        TAccountWhirlpool extends string
            ? WritableAccount<TAccountWhirlpool>
            : TAccountWhirlpool,
        TAccountCollectProtocolFeesAuthority extends string
            ? ReadonlySignerAccount<TAccountCollectProtocolFeesAuthority> & IAccountSignerMeta<
                TAccountCollectProtocolFeesAuthority,
            >
            : TAccountCollectProtocolFeesAuthority,
        TAccountTokenMintA extends string
            ? ReadonlyAccount<TAccountTokenMintA>
            : TAccountTokenMintA,
        TAccountTokenMintB extends string
            ? ReadonlyAccount<TAccountTokenMintB>
            : TAccountTokenMintB,
        TAccountTokenVaultA extends string
            ? WritableAccount<TAccountTokenVaultA>
            : TAccountTokenVaultA,
        TAccountTokenVaultB extends string
            ? WritableAccount<TAccountTokenVaultB>
            : TAccountTokenVaultB,
        TAccountTokenDestinationA extends string
            ? WritableAccount<TAccountTokenDestinationA>
            : TAccountTokenDestinationA,
        TAccountTokenDestinationB extends string
            ? WritableAccount<TAccountTokenDestinationB>
            : TAccountTokenDestinationB,
        TAccountTokenProgramA extends string
            ? ReadonlyAccount<TAccountTokenProgramA>
            : TAccountTokenProgramA,
        TAccountTokenProgramB extends string
            ? ReadonlyAccount<TAccountTokenProgramB>
            : TAccountTokenProgramB,
        TAccountMemoProgram extends string
            ? ReadonlyAccount<TAccountMemoProgram>
            : TAccountMemoProgram,
        ...TRemainingAccounts,
    ],
>

Type Parameters

  • TProgram extends string = typeof WHIRLPOOL_PROGRAM_ADDRESS
  • TAccountWhirlpoolsConfig extends string | IAccountMeta<string> = string
  • TAccountWhirlpool extends string | IAccountMeta<string> = string
  • TAccountCollectProtocolFeesAuthority extends string | IAccountMeta<string> = string
  • TAccountTokenMintA extends string | IAccountMeta<string> = string
  • TAccountTokenMintB extends string | IAccountMeta<string> = string
  • TAccountTokenVaultA extends string | IAccountMeta<string> = string
  • TAccountTokenVaultB extends string | IAccountMeta<string> = string
  • TAccountTokenDestinationA extends string | IAccountMeta<string> = string
  • TAccountTokenDestinationB extends string | IAccountMeta<string> = string
  • TAccountTokenProgramA extends string | IAccountMeta<string> = string
  • TAccountTokenProgramB extends string | IAccountMeta<string> = string
  • TAccountMemoProgram extends string | IAccountMeta<string> = string
  • TRemainingAccounts extends readonly IAccountMeta<string>[] = []