@0xcert/ethereum-sandbox
Version:
Test server for local running testing of modules on the Ethereum blockchain.
15 lines (14 loc) • 409 B
TypeScript
import { Protocol } from './protocol';
export interface SandboxOptions {
port?: number;
blockTime?: number;
}
export declare class Sandbox {
server: any;
web3: any;
protocol: Protocol;
static createProvider(options?: SandboxOptions): any;
static listen(options?: SandboxOptions): Promise<Sandbox>;
listen(options?: SandboxOptions): Promise<this>;
close(): Promise<this>;
}