UNPKG

casper-cep18-js-client

Version:
17 lines (16 loc) 867 B
import { Contracts, EventStream, ExecutionResult } from 'casper-js-sdk'; import { CEP18Event, EventsMap } from './events'; interface ITypedContract { contractClient: Contracts.Contract; setupEventStream(eventStream: EventStream): Promise<void>; parseExecutionResult(result: ExecutionResult): CEP18Event[]; on<K extends keyof EventsMap>(type: K, listener: (ev: EventsMap[K]) => void): void; addEventListener<K extends keyof EventsMap>(type: K, listener: (ev: EventsMap[K]) => void): void; off<K extends keyof EventsMap>(type: K, listener: (ev: EventsMap[K]) => void): void; removeEventListener<K extends keyof EventsMap>(type: K, listener: (ev: EventsMap[K]) => void): void; } declare const TypedContract: { new (nodeAddress: string, networkName: string): ITypedContract; prototype: ITypedContract; }; export default TypedContract;