Type Alias TwoHopSwapV2Instruction<TProgram, TAccountWhirlpoolOne, TAccountWhirlpoolTwo, TAccountTokenMintInput, TAccountTokenMintIntermediate, TAccountTokenMintOutput, TAccountTokenProgramInput, TAccountTokenProgramIntermediate, TAccountTokenProgramOutput, TAccountTokenOwnerAccountInput, TAccountTokenVaultOneInput, TAccountTokenVaultOneIntermediate, TAccountTokenVaultTwoIntermediate, TAccountTokenVaultTwoOutput, TAccountTokenOwnerAccountOutput, TAccountTokenAuthority, TAccountTickArrayOne0, TAccountTickArrayOne1, TAccountTickArrayOne2, TAccountTickArrayTwo0, TAccountTickArrayTwo1, TAccountTickArrayTwo2, TAccountOracleOne, TAccountOracleTwo, TAccountMemoProgram, TRemainingAccounts>

TwoHopSwapV2Instruction: IInstruction<TProgram> & IInstructionWithData<
    Uint8Array,
> & IInstructionWithAccounts<
    [
        TAccountWhirlpoolOne extends string
            ? WritableAccount<TAccountWhirlpoolOne>
            : TAccountWhirlpoolOne,
        TAccountWhirlpoolTwo extends string
            ? WritableAccount<TAccountWhirlpoolTwo>
            : TAccountWhirlpoolTwo,
        TAccountTokenMintInput extends string
            ? ReadonlyAccount<TAccountTokenMintInput>
            : TAccountTokenMintInput,
        TAccountTokenMintIntermediate extends string
            ? ReadonlyAccount<TAccountTokenMintIntermediate>
            : TAccountTokenMintIntermediate,
        TAccountTokenMintOutput extends string
            ? ReadonlyAccount<TAccountTokenMintOutput>
            : TAccountTokenMintOutput,
        TAccountTokenProgramInput extends string
            ? ReadonlyAccount<TAccountTokenProgramInput>
            : TAccountTokenProgramInput,
        TAccountTokenProgramIntermediate extends string
            ? ReadonlyAccount<TAccountTokenProgramIntermediate>
            : TAccountTokenProgramIntermediate,
        TAccountTokenProgramOutput extends string
            ? ReadonlyAccount<TAccountTokenProgramOutput>
            : TAccountTokenProgramOutput,
        TAccountTokenOwnerAccountInput extends string
            ? WritableAccount<TAccountTokenOwnerAccountInput>
            : TAccountTokenOwnerAccountInput,
        TAccountTokenVaultOneInput extends string
            ? WritableAccount<TAccountTokenVaultOneInput>
            : TAccountTokenVaultOneInput,
        TAccountTokenVaultOneIntermediate extends string
            ? WritableAccount<TAccountTokenVaultOneIntermediate>
            : TAccountTokenVaultOneIntermediate,
        TAccountTokenVaultTwoIntermediate extends string
            ? WritableAccount<TAccountTokenVaultTwoIntermediate>
            : TAccountTokenVaultTwoIntermediate,
        TAccountTokenVaultTwoOutput extends string
            ? WritableAccount<TAccountTokenVaultTwoOutput>
            : TAccountTokenVaultTwoOutput,
        TAccountTokenOwnerAccountOutput extends string
            ? WritableAccount<TAccountTokenOwnerAccountOutput>
            : TAccountTokenOwnerAccountOutput,
        TAccountTokenAuthority extends string
            ? ReadonlySignerAccount<TAccountTokenAuthority> & IAccountSignerMeta<
                TAccountTokenAuthority,
            >
            : TAccountTokenAuthority,
        TAccountTickArrayOne0 extends string
            ? WritableAccount<TAccountTickArrayOne0>
            : TAccountTickArrayOne0,
        TAccountTickArrayOne1 extends string
            ? WritableAccount<TAccountTickArrayOne1>
            : TAccountTickArrayOne1,
        TAccountTickArrayOne2 extends string
            ? WritableAccount<TAccountTickArrayOne2>
            : TAccountTickArrayOne2,
        TAccountTickArrayTwo0 extends string
            ? WritableAccount<TAccountTickArrayTwo0>
            : TAccountTickArrayTwo0,
        TAccountTickArrayTwo1 extends string
            ? WritableAccount<TAccountTickArrayTwo1>
            : TAccountTickArrayTwo1,
        TAccountTickArrayTwo2 extends string
            ? WritableAccount<TAccountTickArrayTwo2>
            : TAccountTickArrayTwo2,
        TAccountOracleOne extends string
            ? WritableAccount<TAccountOracleOne>
            : TAccountOracleOne,
        TAccountOracleTwo extends string
            ? WritableAccount<TAccountOracleTwo>
            : TAccountOracleTwo,
        TAccountMemoProgram extends string
            ? ReadonlyAccount<TAccountMemoProgram>
            : TAccountMemoProgram,
        ...TRemainingAccounts,
    ],
>

Type Parameters

  • TProgram extends string = typeof WHIRLPOOL_PROGRAM_ADDRESS
  • TAccountWhirlpoolOne extends string | IAccountMeta<string> = string
  • TAccountWhirlpoolTwo extends string | IAccountMeta<string> = string
  • TAccountTokenMintInput extends string | IAccountMeta<string> = string
  • TAccountTokenMintIntermediate extends string | IAccountMeta<string> = string
  • TAccountTokenMintOutput extends string | IAccountMeta<string> = string
  • TAccountTokenProgramInput extends string | IAccountMeta<string> = string
  • TAccountTokenProgramIntermediate extends string | IAccountMeta<string> = string
  • TAccountTokenProgramOutput extends string | IAccountMeta<string> = string
  • TAccountTokenOwnerAccountInput extends string | IAccountMeta<string> = string
  • TAccountTokenVaultOneInput extends string | IAccountMeta<string> = string
  • TAccountTokenVaultOneIntermediate extends string | IAccountMeta<string> = string
  • TAccountTokenVaultTwoIntermediate extends string | IAccountMeta<string> = string
  • TAccountTokenVaultTwoOutput extends string | IAccountMeta<string> = string
  • TAccountTokenOwnerAccountOutput extends string | IAccountMeta<string> = string
  • TAccountTokenAuthority extends string | IAccountMeta<string> = string
  • TAccountTickArrayOne0 extends string | IAccountMeta<string> = string
  • TAccountTickArrayOne1 extends string | IAccountMeta<string> = string
  • TAccountTickArrayOne2 extends string | IAccountMeta<string> = string
  • TAccountTickArrayTwo0 extends string | IAccountMeta<string> = string
  • TAccountTickArrayTwo1 extends string | IAccountMeta<string> = string
  • TAccountTickArrayTwo2 extends string | IAccountMeta<string> = string
  • TAccountOracleOne extends string | IAccountMeta<string> = string
  • TAccountOracleTwo extends string | IAccountMeta<string> = string
  • TAccountMemoProgram extends string | IAccountMeta<string> = string
  • TRemainingAccounts extends readonly IAccountMeta<string>[] = []