Type Alias ParsedTwoHopSwapInstruction<TProgram, TAccountMetas>

ParsedTwoHopSwapInstruction: {
    accounts: {
        oracleOne: TAccountMetas[18];
        oracleTwo: TAccountMetas[19];
        tickArrayOne0: TAccountMetas[12];
        tickArrayOne1: TAccountMetas[13];
        tickArrayOne2: TAccountMetas[14];
        tickArrayTwo0: TAccountMetas[15];
        tickArrayTwo1: TAccountMetas[16];
        tickArrayTwo2: TAccountMetas[17];
        tokenAuthority: TAccountMetas[1];
        tokenOwnerAccountOneA: TAccountMetas[4];
        tokenOwnerAccountOneB: TAccountMetas[6];
        tokenOwnerAccountTwoA: TAccountMetas[8];
        tokenOwnerAccountTwoB: TAccountMetas[10];
        tokenProgram: TAccountMetas[0];
        tokenVaultOneA: TAccountMetas[5];
        tokenVaultOneB: TAccountMetas[7];
        tokenVaultTwoA: TAccountMetas[9];
        tokenVaultTwoB: TAccountMetas[11];
        whirlpoolOne: TAccountMetas[2];
        whirlpoolTwo: TAccountMetas[3];
    };
    data: TwoHopSwapInstructionData;
    programAddress: Address<TProgram>;
}

Type Parameters

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

Type declaration