import { EthqlServiceDefinition } from '@ethql/base'; import { GraphQLResolveInfo } from 'graphql'; import { EthqlAccount, EthqlBlock, EthqlLog, EthqlTransaction, TransactionStatus } from '../../model'; declare module '@ethql/base' { interface EthqlServices { eth: EthService; } interface EthqlServiceDefinitions { eth: EthqlServiceDefinition<{}, EthService>; } } export declare type FetchHints = { transactions?: boolean; logs?: boolean; }; export interface EthService { fetchBlock(id: number | string, infoOrHints: GraphQLResolveInfo | FetchHints): Promise; fetchTxFromBlock(blockHash: string, txIndex: number): Promise; fetchStandaloneTx(txHash: string): Promise; fetchBalance(account: EthqlAccount): Promise; fetchCode(account: EthqlAccount): Promise; fetchStorage(account: EthqlAccount, position: number): Promise; fetchTransactionCount(account: EthqlAccount): Promise; fetchTransactionLogs(tx: EthqlTransaction): Promise; fetchCreatedContract(tx: EthqlTransaction): Promise; fetchTransactionStatus(tx: EthqlTransaction): Promise; } /** * Returns an object with the fetch hints for this block. * * @param info The GraphQL resolution info. */ export declare function fetchHints(info: GraphQLResolveInfo): FetchHints; //# sourceMappingURL=index.d.ts.map