import type { Provider, Signer, Transaction, TransactionReceipt } from 'nftx.js'; export type TransactionState = 'None' | 'PendingSignature' | 'Mining' | 'Success' | 'Fail' | 'Exception'; export type TransactionEvent = { id: string; type: TransactionState; description: string; createdAt: number; network: number; transaction?: Transaction; receipt?: TransactionReceipt; error?: any; }; type TxnArgs = { network?: number; provider: Provider; signer: Signer; }; type TxnFn = (args: A) => any; /** Takes a transaction function, removes the network and signer, and returns the remaining args */ export type TxnArgsOnly> = Omit[0], 'network' | 'signer' | 'provider'>; export {};