Type Alias CollectFeesInstruction<TProgram, TAccountWhirlpool, TAccountPositionAuthority, TAccountPosition, TAccountPositionTokenAccount, TAccountTokenOwnerAccountA, TAccountTokenVaultA, TAccountTokenOwnerAccountB, TAccountTokenVaultB, TAccountTokenProgram, TRemainingAccounts>

CollectFeesInstruction: IInstruction<TProgram> & IInstructionWithData<
    Uint8Array,
> & IInstructionWithAccounts<
    [
        TAccountWhirlpool extends string
            ? ReadonlyAccount<TAccountWhirlpool>
            : TAccountWhirlpool,
        TAccountPositionAuthority extends string
            ? ReadonlySignerAccount<TAccountPositionAuthority> & IAccountSignerMeta<
                TAccountPositionAuthority,
            >
            : TAccountPositionAuthority,
        TAccountPosition extends string
            ? WritableAccount<TAccountPosition>
            : TAccountPosition,
        TAccountPositionTokenAccount extends string
            ? ReadonlyAccount<TAccountPositionTokenAccount>
            : TAccountPositionTokenAccount,
        TAccountTokenOwnerAccountA extends string
            ? WritableAccount<TAccountTokenOwnerAccountA>
            : TAccountTokenOwnerAccountA,
        TAccountTokenVaultA extends string
            ? WritableAccount<TAccountTokenVaultA>
            : TAccountTokenVaultA,
        TAccountTokenOwnerAccountB extends string
            ? WritableAccount<TAccountTokenOwnerAccountB>
            : TAccountTokenOwnerAccountB,
        TAccountTokenVaultB extends string
            ? WritableAccount<TAccountTokenVaultB>
            : TAccountTokenVaultB,
        TAccountTokenProgram extends string
            ? ReadonlyAccount<TAccountTokenProgram>
            : TAccountTokenProgram,
        ...TRemainingAccounts,
    ],
>

Type Parameters

  • TProgram extends string = typeof WHIRLPOOL_PROGRAM_ADDRESS
  • TAccountWhirlpool extends string | IAccountMeta<string> = string
  • TAccountPositionAuthority extends string | IAccountMeta<string> = string
  • TAccountPosition extends string | IAccountMeta<string> = string
  • TAccountPositionTokenAccount extends string | IAccountMeta<string> = string
  • TAccountTokenOwnerAccountA extends string | IAccountMeta<string> = string
  • TAccountTokenVaultA extends string | IAccountMeta<string> = string
  • TAccountTokenOwnerAccountB extends string | IAccountMeta<string> = string
  • TAccountTokenVaultB extends string | IAccountMeta<string> = string
  • TAccountTokenProgram extends string | IAccountMeta<string> = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
  • TRemainingAccounts extends readonly IAccountMeta<string>[] = []