UNPKG

opnet

Version:

The perfect library for building Bitcoin-based applications.

26 lines (25 loc) 783 B
import { BinaryReader, LoadedStorage, NetEvent } from '@btc-vision/transaction'; 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 | BinaryReader; readonly events: RawEventList; readonly accessList: IAccessList; readonly revert?: string; readonly estimatedGas?: string; readonly specialGas?: string; readonly loadedStorage?: LoadedStorage; } export type ICallResult = ICallRequestError | ICallResultData;