Type Alias ParsedSwapInstruction<TProgram, TAccountMetas>

ParsedSwapInstruction: {
    accounts: {
        oracle: TAccountMetas[10];
        tickArray0: TAccountMetas[7];
        tickArray1: TAccountMetas[8];
        tickArray2: TAccountMetas[9];
        tokenAuthority: TAccountMetas[1];
        tokenOwnerAccountA: TAccountMetas[3];
        tokenOwnerAccountB: TAccountMetas[5];
        tokenProgram: TAccountMetas[0];
        tokenVaultA: TAccountMetas[4];
        tokenVaultB: TAccountMetas[6];
        whirlpool: TAccountMetas[2];
    };
    data: SwapInstructionData;
    programAddress: Address<TProgram>;
}

Type Parameters

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

Type declaration