export declare const DEFAULT_ADDRESS = "0x0000000000000000000000000000000000000000"; import { Transaction } from 'ethers/utils'; import { TransactionalServices, LocalServices } from '@oasisdex/spock-etl/dist/services/types'; import { BlockModel } from '@oasisdex/spock-etl/dist/db/models/Block'; export declare function getOrCreateTx(services: TransactionalServices, transactionHash: string, block: BlockModel): Promise; export declare function getTx({ tx }: LocalServices, txHash: string): Promise; export declare function getTxByIdOrDie({ tx }: LocalServices, txId: number): Promise; export declare function addTx(services: LocalServices, transaction: Transaction, block: BlockModel): Promise; interface PersistedTransaction { id: number; hash: string; nonce: number; from_address: string; to_address: string; value: string; gas_limit: string; gas_price: string; data: string; block_id: number; } export declare function matchMissingForeignKeyError(e: any): boolean; export declare function matchUniqueKeyError(e: any): boolean; export declare function matchDeadlockDetectedError(e: any): boolean; export declare const silenceError: (...matchers: ((e: any) => boolean)[]) => (e: any) => void; export declare class RetryableError extends Error { } export {};