Type Alias InitializeRewardV2Instruction<TProgram, TAccountRewardAuthority, TAccountFunder, TAccountWhirlpool, TAccountRewardMint, TAccountRewardTokenBadge, TAccountRewardVault, TAccountRewardTokenProgram, TAccountSystemProgram, TAccountRent, TRemainingAccounts>

InitializeRewardV2Instruction: IInstruction<TProgram> & IInstructionWithData<
    Uint8Array,
> & IInstructionWithAccounts<
    [
        TAccountRewardAuthority extends string
            ? ReadonlySignerAccount<TAccountRewardAuthority> & IAccountSignerMeta<
                TAccountRewardAuthority,
            >
            : TAccountRewardAuthority,
        TAccountFunder extends string
            ? WritableSignerAccount<TAccountFunder> & IAccountSignerMeta<
                TAccountFunder,
            >
            : TAccountFunder,
        TAccountWhirlpool extends string
            ? WritableAccount<TAccountWhirlpool>
            : TAccountWhirlpool,
        TAccountRewardMint extends string
            ? ReadonlyAccount<TAccountRewardMint>
            : TAccountRewardMint,
        TAccountRewardTokenBadge extends string
            ? ReadonlyAccount<TAccountRewardTokenBadge>
            : TAccountRewardTokenBadge,
        TAccountRewardVault extends string
            ? WritableSignerAccount<TAccountRewardVault> & IAccountSignerMeta<
                TAccountRewardVault,
            >
            : TAccountRewardVault,
        TAccountRewardTokenProgram extends string
            ? ReadonlyAccount<TAccountRewardTokenProgram>
            : TAccountRewardTokenProgram,
        TAccountSystemProgram extends string
            ? ReadonlyAccount<TAccountSystemProgram>
            : TAccountSystemProgram,
        TAccountRent extends string ? ReadonlyAccount<TAccountRent> : TAccountRent,
        ...TRemainingAccounts,
    ],
>

Type Parameters

  • TProgram extends string = typeof WHIRLPOOL_PROGRAM_ADDRESS
  • TAccountRewardAuthority extends string | IAccountMeta<string> = string
  • TAccountFunder extends string | IAccountMeta<string> = string
  • TAccountWhirlpool extends string | IAccountMeta<string> = string
  • TAccountRewardMint extends string | IAccountMeta<string> = string
  • TAccountRewardTokenBadge extends string | IAccountMeta<string> = string
  • TAccountRewardVault extends string | IAccountMeta<string> = string
  • TAccountRewardTokenProgram extends string | IAccountMeta<string> = string
  • TAccountSystemProgram extends string | IAccountMeta<string> = "11111111111111111111111111111111"
  • TAccountRent extends string | IAccountMeta<string> = "SysvarRent111111111111111111111111111111111"
  • TRemainingAccounts extends readonly IAccountMeta<string>[] = []