Type Alias OpenPositionWithTokenExtensionsInstruction<TProgram, TAccountFunder, TAccountOwner, TAccountPosition, TAccountPositionMint, TAccountPositionTokenAccount, TAccountWhirlpool, TAccountToken2022Program, TAccountSystemProgram, TAccountAssociatedTokenProgram, TAccountMetadataUpdateAuth, TRemainingAccounts>

OpenPositionWithTokenExtensionsInstruction: IInstruction<TProgram> & IInstructionWithData<
    Uint8Array,
> & IInstructionWithAccounts<
    [
        TAccountFunder extends string
            ? WritableSignerAccount<TAccountFunder> & IAccountSignerMeta<
                TAccountFunder,
            >
            : TAccountFunder,
        TAccountOwner extends string
            ? ReadonlyAccount<TAccountOwner>
            : TAccountOwner,
        TAccountPosition extends string
            ? WritableAccount<TAccountPosition>
            : TAccountPosition,
        TAccountPositionMint extends string
            ? WritableSignerAccount<TAccountPositionMint> & IAccountSignerMeta<
                TAccountPositionMint,
            >
            : TAccountPositionMint,
        TAccountPositionTokenAccount extends string
            ? WritableAccount<TAccountPositionTokenAccount>
            : TAccountPositionTokenAccount,
        TAccountWhirlpool extends string
            ? ReadonlyAccount<TAccountWhirlpool>
            : TAccountWhirlpool,
        TAccountToken2022Program extends string
            ? ReadonlyAccount<TAccountToken2022Program>
            : TAccountToken2022Program,
        TAccountSystemProgram extends string
            ? ReadonlyAccount<TAccountSystemProgram>
            : TAccountSystemProgram,
        TAccountAssociatedTokenProgram extends string
            ? ReadonlyAccount<TAccountAssociatedTokenProgram>
            : TAccountAssociatedTokenProgram,
        TAccountMetadataUpdateAuth extends string
            ? ReadonlyAccount<TAccountMetadataUpdateAuth>
            : TAccountMetadataUpdateAuth,
        ...TRemainingAccounts,
    ],
>

Type Parameters

  • TProgram extends string = typeof WHIRLPOOL_PROGRAM_ADDRESS
  • TAccountFunder extends string | IAccountMeta<string> = string
  • TAccountOwner extends string | IAccountMeta<string> = string
  • TAccountPosition extends string | IAccountMeta<string> = string
  • TAccountPositionMint extends string | IAccountMeta<string> = string
  • TAccountPositionTokenAccount extends string | IAccountMeta<string> = string
  • TAccountWhirlpool extends string | IAccountMeta<string> = string
  • TAccountToken2022Program extends string | IAccountMeta<string> = string
  • TAccountSystemProgram extends string | IAccountMeta<string> = "11111111111111111111111111111111"
  • TAccountAssociatedTokenProgram extends string | IAccountMeta<string> = string
  • TAccountMetadataUpdateAuth extends string | IAccountMeta<string> = string
  • TRemainingAccounts extends readonly IAccountMeta<string>[] = []