Type Alias ParsedTwoHopSwapV2Instruction<TProgram, TAccountMetas>

ParsedTwoHopSwapV2Instruction: {
    accounts: {
        memoProgram: TAccountMetas[23];
        oracleOne: TAccountMetas[21];
        oracleTwo: TAccountMetas[22];
        tickArrayOne0: TAccountMetas[15];
        tickArrayOne1: TAccountMetas[16];
        tickArrayOne2: TAccountMetas[17];
        tickArrayTwo0: TAccountMetas[18];
        tickArrayTwo1: TAccountMetas[19];
        tickArrayTwo2: TAccountMetas[20];
        tokenAuthority: TAccountMetas[14];
        tokenMintInput: TAccountMetas[2];
        tokenMintIntermediate: TAccountMetas[3];
        tokenMintOutput: TAccountMetas[4];
        tokenOwnerAccountInput: TAccountMetas[8];
        tokenOwnerAccountOutput: TAccountMetas[13];
        tokenProgramInput: TAccountMetas[5];
        tokenProgramIntermediate: TAccountMetas[6];
        tokenProgramOutput: TAccountMetas[7];
        tokenVaultOneInput: TAccountMetas[9];
        tokenVaultOneIntermediate: TAccountMetas[10];
        tokenVaultTwoIntermediate: TAccountMetas[11];
        tokenVaultTwoOutput: TAccountMetas[12];
        whirlpoolOne: TAccountMetas[0];
        whirlpoolTwo: TAccountMetas[1];
    };
    data: TwoHopSwapV2InstructionData;
    programAddress: Address<TProgram>;
}

Type Parameters

  • TProgram extends string = typeof WHIRLPOOL_PROGRAM_ADDRESS
  • TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]

Type declaration