import type { EthereumTransaction } from "@rarible/ethereum-provider" import type { Blockchain } from "@rarible/api-client" interface Transaction { blockchain: T hash: string result?: TransactionResult } export interface TransactionIndexer extends Record { "ETHEREUM": EthereumTransaction "FLOW": FlowTransaction // @todo add typings from flow-sdk } export interface IBlockchainTransaction { blockchain: T transaction: TransactionIndexer[T] /** * Returns true if there is no transaction data and transaction object should be ignored */ isEmpty: boolean hash(): string wait(): Promise> getTxLink(): string } export interface FlowTransaction { txId: string status: number events: any[] }