Type Alias InitializePositionBundleInstruction<TProgram, TAccountPositionBundle, TAccountPositionBundleMint, TAccountPositionBundleTokenAccount, TAccountPositionBundleOwner, TAccountFunder, TAccountTokenProgram, TAccountSystemProgram, TAccountRent, TAccountAssociatedTokenProgram, TRemainingAccounts>

InitializePositionBundleInstruction: IInstruction<TProgram> & IInstructionWithData<
    Uint8Array,
> & IInstructionWithAccounts<
    [
        TAccountPositionBundle extends string
            ? WritableAccount<TAccountPositionBundle>
            : TAccountPositionBundle,
        TAccountPositionBundleMint extends string
            ? WritableSignerAccount<TAccountPositionBundleMint> & IAccountSignerMeta<
                TAccountPositionBundleMint,
            >
            : TAccountPositionBundleMint,
        TAccountPositionBundleTokenAccount extends string
            ? WritableAccount<TAccountPositionBundleTokenAccount>
            : TAccountPositionBundleTokenAccount,
        TAccountPositionBundleOwner extends string
            ? ReadonlyAccount<TAccountPositionBundleOwner>
            : TAccountPositionBundleOwner,
        TAccountFunder extends string
            ? WritableSignerAccount<TAccountFunder> & IAccountSignerMeta<
                TAccountFunder,
            >
            : TAccountFunder,
        TAccountTokenProgram extends string
            ? ReadonlyAccount<TAccountTokenProgram>
            : TAccountTokenProgram,
        TAccountSystemProgram extends string
            ? ReadonlyAccount<TAccountSystemProgram>
            : TAccountSystemProgram,
        TAccountRent extends string ? ReadonlyAccount<TAccountRent> : TAccountRent,
        TAccountAssociatedTokenProgram extends string
            ? ReadonlyAccount<TAccountAssociatedTokenProgram>
            : TAccountAssociatedTokenProgram,
        ...TRemainingAccounts,
    ],
>

Type Parameters

  • TProgram extends string = typeof WHIRLPOOL_PROGRAM_ADDRESS
  • TAccountPositionBundle extends string | IAccountMeta<string> = string
  • TAccountPositionBundleMint extends string | IAccountMeta<string> = string
  • TAccountPositionBundleTokenAccount extends string | IAccountMeta<string> = string
  • TAccountPositionBundleOwner extends string | IAccountMeta<string> = string
  • TAccountFunder extends string | IAccountMeta<string> = string
  • TAccountTokenProgram extends string | IAccountMeta<string> = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
  • TAccountSystemProgram extends string | IAccountMeta<string> = "11111111111111111111111111111111"
  • TAccountRent extends string | IAccountMeta<string> = "SysvarRent111111111111111111111111111111111"
  • TAccountAssociatedTokenProgram extends string | IAccountMeta<string> = string
  • TRemainingAccounts extends readonly IAccountMeta<string>[] = []