import { DB } from '../db/DB'; import { CompleteSetsPurchasedLog, CompleteSetsSoldLog, DisputeCrowdsourcerContributionLog, DisputeCrowdsourcerRedeemedLog, InitialReporterRedeemedLog, InitialReportSubmittedLog, MarketCreatedLog, ParsedOrderEventLog, TradingProceedsClaimedLog } from '../logs/types'; import { Augur } from '../../index'; import * as t from 'io-ts'; export declare enum Action { ALL = "ALL", BUY = "BUY", SELL = "SELL", CANCEL = "CANCEL", CLAIM_PARTICIPATION_TOKENS = "CLAIM_PARTICIPATION_TOKENS", CLAIM_TRADING_PROCEEDS = "CLAIM_TRADING_PROCEEDS", CLAIM_WINNING_CROWDSOURCERS = "CLAIM_WINNING_CROWDSOURCERS", DISPUTE = "DISPUTE", INITIAL_REPORT = "INITIAL_REPORT", MARKET_CREATION = "MARKET_CREATION", COMPLETE_SETS = "COMPLETE_SETS" } export declare enum Coin { ALL = "ALL", ETH = "ETH", REP = "REP" } export declare const actionnDeserializer: t.KeyofType; export declare const coinDeserializer: t.KeyofType; export interface AccountTransaction { action: string; coin: string; details: string; fee: string; marketDescription: string; outcome: number | null; outcomeDescription: string | null; price: string; quantity: string; timestamp: number; total: string; transactionHash: string; } export interface MarketCreatedInfo { [key: string]: MarketCreatedLog; } export declare class Accounts { static getAccountTransactionHistoryParams: t.IntersectionType<[t.InterfaceType<{ universe: t.StringType; account: t.StringType; earliestTransactionTime: t.UnionType<(t.NumberType | t.NullType | t.UndefinedType)[], number, number, unknown>; latestTransactionTime: t.UnionType<(t.NumberType | t.NullType | t.UndefinedType)[], number, number, unknown>; coin: t.UnionType<(t.KeyofType | t.NullType | t.UndefinedType)[], "ALL" | "ETH" | "REP", "ALL" | "ETH" | "REP", unknown>; action: t.UnionType<(t.KeyofType | t.NullType | t.UndefinedType)[], "ALL" | "BUY" | "SELL" | "CANCEL" | "CLAIM_PARTICIPATION_TOKENS" | "CLAIM_TRADING_PROCEEDS" | "CLAIM_WINNING_CROWDSOURCERS" | "DISPUTE" | "INITIAL_REPORT" | "MARKET_CREATION" | "COMPLETE_SETS", "ALL" | "BUY" | "SELL" | "CANCEL" | "CLAIM_PARTICIPATION_TOKENS" | "CLAIM_TRADING_PROCEEDS" | "CLAIM_WINNING_CROWDSOURCERS" | "DISPUTE" | "INITIAL_REPORT" | "MARKET_CREATION" | "COMPLETE_SETS", unknown>; }, t.TypeOfProps<{ universe: t.StringType; account: t.StringType; earliestTransactionTime: t.UnionType<(t.NumberType | t.NullType | t.UndefinedType)[], number, number, unknown>; latestTransactionTime: t.UnionType<(t.NumberType | t.NullType | t.UndefinedType)[], number, number, unknown>; coin: t.UnionType<(t.KeyofType | t.NullType | t.UndefinedType)[], "ALL" | "ETH" | "REP", "ALL" | "ETH" | "REP", unknown>; action: t.UnionType<(t.KeyofType | t.NullType | t.UndefinedType)[], "ALL" | "BUY" | "SELL" | "CANCEL" | "CLAIM_PARTICIPATION_TOKENS" | "CLAIM_TRADING_PROCEEDS" | "CLAIM_WINNING_CROWDSOURCERS" | "DISPUTE" | "INITIAL_REPORT" | "MARKET_CREATION" | "COMPLETE_SETS", "ALL" | "BUY" | "SELL" | "CANCEL" | "CLAIM_PARTICIPATION_TOKENS" | "CLAIM_TRADING_PROCEEDS" | "CLAIM_WINNING_CROWDSOURCERS" | "DISPUTE" | "INITIAL_REPORT" | "MARKET_CREATION" | "COMPLETE_SETS", unknown>; }>, t.OutputOfProps<{ universe: t.StringType; account: t.StringType; earliestTransactionTime: t.UnionType<(t.NumberType | t.NullType | t.UndefinedType)[], number, number, unknown>; latestTransactionTime: t.UnionType<(t.NumberType | t.NullType | t.UndefinedType)[], number, number, unknown>; coin: t.UnionType<(t.KeyofType | t.NullType | t.UndefinedType)[], "ALL" | "ETH" | "REP", "ALL" | "ETH" | "REP", unknown>; action: t.UnionType<(t.KeyofType | t.NullType | t.UndefinedType)[], "ALL" | "BUY" | "SELL" | "CANCEL" | "CLAIM_PARTICIPATION_TOKENS" | "CLAIM_TRADING_PROCEEDS" | "CLAIM_WINNING_CROWDSOURCERS" | "DISPUTE" | "INITIAL_REPORT" | "MARKET_CREATION" | "COMPLETE_SETS", "ALL" | "BUY" | "SELL" | "CANCEL" | "CLAIM_PARTICIPATION_TOKENS" | "CLAIM_TRADING_PROCEEDS" | "CLAIM_WINNING_CROWDSOURCERS" | "DISPUTE" | "INITIAL_REPORT" | "MARKET_CREATION" | "COMPLETE_SETS", unknown>; }>, unknown>, t.PartialType<{ sortBy: t.StringType; isSortDescending: t.BooleanType; limit: t.NumberType; offset: t.NumberType; }, t.TypeOfPartialProps<{ sortBy: t.StringType; isSortDescending: t.BooleanType; limit: t.NumberType; offset: t.NumberType; }>, t.OutputOfPartialProps<{ sortBy: t.StringType; isSortDescending: t.BooleanType; limit: t.NumberType; offset: t.NumberType; }>, unknown>], t.Compact; latestTransactionTime: t.UnionType<(t.NumberType | t.NullType | t.UndefinedType)[], number, number, unknown>; coin: t.UnionType<(t.KeyofType | t.NullType | t.UndefinedType)[], "ALL" | "ETH" | "REP", "ALL" | "ETH" | "REP", unknown>; action: t.UnionType<(t.KeyofType | t.NullType | t.UndefinedType)[], "ALL" | "BUY" | "SELL" | "CANCEL" | "CLAIM_PARTICIPATION_TOKENS" | "CLAIM_TRADING_PROCEEDS" | "CLAIM_WINNING_CROWDSOURCERS" | "DISPUTE" | "INITIAL_REPORT" | "MARKET_CREATION" | "COMPLETE_SETS", "ALL" | "BUY" | "SELL" | "CANCEL" | "CLAIM_PARTICIPATION_TOKENS" | "CLAIM_TRADING_PROCEEDS" | "CLAIM_WINNING_CROWDSOURCERS" | "DISPUTE" | "INITIAL_REPORT" | "MARKET_CREATION" | "COMPLETE_SETS", unknown>; }> & t.TypeOfPartialProps<{ sortBy: t.StringType; isSortDescending: t.BooleanType; limit: t.NumberType; offset: t.NumberType; }>>, t.Compact; latestTransactionTime: t.UnionType<(t.NumberType | t.NullType | t.UndefinedType)[], number, number, unknown>; coin: t.UnionType<(t.KeyofType | t.NullType | t.UndefinedType)[], "ALL" | "ETH" | "REP", "ALL" | "ETH" | "REP", unknown>; action: t.UnionType<(t.KeyofType | t.NullType | t.UndefinedType)[], "ALL" | "BUY" | "SELL" | "CANCEL" | "CLAIM_PARTICIPATION_TOKENS" | "CLAIM_TRADING_PROCEEDS" | "CLAIM_WINNING_CROWDSOURCERS" | "DISPUTE" | "INITIAL_REPORT" | "MARKET_CREATION" | "COMPLETE_SETS", "ALL" | "BUY" | "SELL" | "CANCEL" | "CLAIM_PARTICIPATION_TOKENS" | "CLAIM_TRADING_PROCEEDS" | "CLAIM_WINNING_CROWDSOURCERS" | "DISPUTE" | "INITIAL_REPORT" | "MARKET_CREATION" | "COMPLETE_SETS", unknown>; }> & t.OutputOfPartialProps<{ sortBy: t.StringType; isSortDescending: t.BooleanType; limit: t.NumberType; offset: t.NumberType; }>>, unknown>; static getAccountTransactionHistory(augur: Augur, db: DB, params: t.TypeOf): Promise; static getMarketCreatedInfo(db: DB, transactionLogs: Array): Promise; } //# sourceMappingURL=Accounts.d.ts.map