import { BinaryReader, LoadedStorage, NetEvent } from '../../../node_modules/@btc-vision/transaction/build/index.js'; import { IAccessList } from './IAccessList.js'; export interface ICallRequestError { readonly error: string; } export interface RawNetEvent { readonly type: string; readonly data: string; } export interface RawEventList { readonly [key: string]: RawNetEvent[]; } export interface EventList { [key: string]: NetEvent[]; } export interface ICallResultData { readonly result: string | Uint8Array | BinaryReader; readonly events: RawEventList; readonly accessList: IAccessList; readonly revert?: string; readonly estimatedGas?: string; readonly specialGas?: string; readonly loadedStorage?: LoadedStorage; } export type ICallResult = ICallRequestError | ICallResultData;