Type Alias LockPositionInstruction<TProgram, TAccountFunder, TAccountPositionAuthority, TAccountPosition, TAccountPositionMint, TAccountPositionTokenAccount, TAccountLockConfig, TAccountWhirlpool, TAccountToken2022Program, TAccountSystemProgram, TRemainingAccounts>

LockPositionInstruction: IInstruction<TProgram> & IInstructionWithData<
    Uint8Array,
> & IInstructionWithAccounts<
    [
        TAccountFunder extends string
            ? WritableSignerAccount<TAccountFunder> & IAccountSignerMeta<
                TAccountFunder,
            >
            : TAccountFunder,
        TAccountPositionAuthority extends string
            ? ReadonlySignerAccount<TAccountPositionAuthority> & IAccountSignerMeta<
                TAccountPositionAuthority,
            >
            : TAccountPositionAuthority,
        TAccountPosition extends string
            ? ReadonlyAccount<TAccountPosition>
            : TAccountPosition,
        TAccountPositionMint extends string
            ? ReadonlyAccount<TAccountPositionMint>
            : TAccountPositionMint,
        TAccountPositionTokenAccount extends string
            ? WritableAccount<TAccountPositionTokenAccount>
            : TAccountPositionTokenAccount,
        TAccountLockConfig extends string
            ? WritableAccount<TAccountLockConfig>
            : TAccountLockConfig,
        TAccountWhirlpool extends string
            ? ReadonlyAccount<TAccountWhirlpool>
            : TAccountWhirlpool,
        TAccountToken2022Program extends string
            ? ReadonlyAccount<TAccountToken2022Program>
            : TAccountToken2022Program,
        TAccountSystemProgram extends string
            ? ReadonlyAccount<TAccountSystemProgram>
            : TAccountSystemProgram,
        ...TRemainingAccounts,
    ],
>

Type Parameters

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