Needlessly Provoking Marsupials

    @types/web3-provider-engine
    TypeScript icon, indicating that this package has built-in type declarations

    14.0.1 • Public • Published

    Installation

    npm install --save @types/web3-provider-engine

    Summary

    This package contains type definitions for web3-provider-engine (https://github.com/MetaMask/provider-engine#readme).

    Details

    Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/web3-provider-engine.

    index.d.ts

    // Type definitions for web3-provider-engine 14.0
    // Project: https://github.com/MetaMask/provider-engine#readme
    // Definitions by: Leonid Logvinov <https://github.com/LogvinovLeon>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    // TypeScript Version: 2.4
    
    import {
        Provider,
        JSONRPCRequestPayload,
        JSONRPCResponsePayload
    } from "ethereum-protocol";
    interface Web3ProviderEngineOptions {
        pollingInterval?: number | undefined;
        blockTracker?: any;
        blockTrackerProvider?: any;
    }
    declare class Web3ProviderEngine implements Provider {
        constructor(options?: Web3ProviderEngineOptions);
        on(event: string, handler: () => void): void;
        send(payload: JSONRPCRequestPayload): void;
        sendAsync(
            payload: JSONRPCRequestPayload,
            callback: (
                error: null | Error,
                response: JSONRPCResponsePayload
            ) => void
        ): void;
        addProvider(provider: any): void;
        // start block polling
        start(callback?: () => void): void;
        // stop block polling
        stop(): void;
    }
    export = Web3ProviderEngine;
    
    // declare module "web3-provider-engine/subproviders/nonce-tracker";
    // declare module "web3-provider-engine/subproviders/hooked-wallet";
    // declare module "web3-provider-engine/subproviders/filters";

    Additional Details

    Credits

    These definitions were written by Leonid Logvinov.

    Keywords

    none

    Install

    npm i @types/web3-provider-engine

    DownloadsWeekly Downloads

    19,224

    Version

    14.0.1

    License

    MIT

    Unpacked Size

    5.38 kB

    Total Files

    4

    Last publish

    Collaborators

    • types