aboutsummaryrefslogtreecommitdiffstats
path: root/packages/typescript-typings
diff options
context:
space:
mode:
authorHsuan Lee <boczeratul@gmail.com>2019-03-06 14:50:42 +0800
committerHsuan Lee <boczeratul@gmail.com>2019-03-06 14:50:42 +0800
commitd20e81c449a717a79e1a78f83963cf64fbcddfd7 (patch)
tree57cf4d159ce6c8c83822656e83b78aae258e3448 /packages/typescript-typings
parent089d04de844a776df3c4095db22039a929ed3d65 (diff)
downloaddexon-sol-tools-d20e81c449a717a79e1a78f83963cf64fbcddfd7.tar
dexon-sol-tools-d20e81c449a717a79e1a78f83963cf64fbcddfd7.tar.gz
dexon-sol-tools-d20e81c449a717a79e1a78f83963cf64fbcddfd7.tar.bz2
dexon-sol-tools-d20e81c449a717a79e1a78f83963cf64fbcddfd7.tar.lz
dexon-sol-tools-d20e81c449a717a79e1a78f83963cf64fbcddfd7.tar.xz
dexon-sol-tools-d20e81c449a717a79e1a78f83963cf64fbcddfd7.tar.zst
dexon-sol-tools-d20e81c449a717a79e1a78f83963cf64fbcddfd7.zip
Add type definitions to web3-provider-engine
Diffstat (limited to 'packages/typescript-typings')
-rw-r--r--packages/typescript-typings/types/web3-provider-engine/LICENSE21
-rw-r--r--packages/typescript-typings/types/web3-provider-engine/README.md16
-rw-r--r--packages/typescript-typings/types/web3-provider-engine/index.d.ts39
-rw-r--r--packages/typescript-typings/types/web3-provider-engine/package.json24
4 files changed, 100 insertions, 0 deletions
diff --git a/packages/typescript-typings/types/web3-provider-engine/LICENSE b/packages/typescript-typings/types/web3-provider-engine/LICENSE
new file mode 100644
index 000000000..21071075c
--- /dev/null
+++ b/packages/typescript-typings/types/web3-provider-engine/LICENSE
@@ -0,0 +1,21 @@
+ MIT License
+
+ Copyright (c) Microsoft Corporation. All rights reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included in all
+ copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ SOFTWARE
diff --git a/packages/typescript-typings/types/web3-provider-engine/README.md b/packages/typescript-typings/types/web3-provider-engine/README.md
new file mode 100644
index 000000000..c0f8fdd8b
--- /dev/null
+++ b/packages/typescript-typings/types/web3-provider-engine/README.md
@@ -0,0 +1,16 @@
+# 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
+
+Additional Details
+ * Last updated: Mon, 30 Jul 2018 23:12:12 GMT
+ * Dependencies: ethereum-protocol
+ * Global values: none
+
+# Credits
+These definitions were written by Leonid Logvinov <https://github.com/LogvinovLeon>.
diff --git a/packages/typescript-typings/types/web3-provider-engine/index.d.ts b/packages/typescript-typings/types/web3-provider-engine/index.d.ts
new file mode 100644
index 000000000..41130f38f
--- /dev/null
+++ b/packages/typescript-typings/types/web3-provider-engine/index.d.ts
@@ -0,0 +1,39 @@
+// 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
+
+declare module '@dexon-foundation/web3-provider-engine' {
+ import {
+ Provider,
+ JSONRPCRequestPayload,
+ JSONRPCResponsePayload
+ } from "ethereum-protocol";
+ interface Web3ProviderEngineOptions {
+ pollingInterval?: number;
+ 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";
diff --git a/packages/typescript-typings/types/web3-provider-engine/package.json b/packages/typescript-typings/types/web3-provider-engine/package.json
new file mode 100644
index 000000000..f2445a22c
--- /dev/null
+++ b/packages/typescript-typings/types/web3-provider-engine/package.json
@@ -0,0 +1,24 @@
+{
+ "name": "@types/web3-provider-engine",
+ "version": "14.0.0",
+ "description": "TypeScript definitions for web3-provider-engine",
+ "license": "MIT",
+ "contributors": [
+ {
+ "name": "Leonid Logvinov",
+ "url": "https://github.com/LogvinovLeon",
+ "githubUsername": "LogvinovLeon"
+ }
+ ],
+ "main": "",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git"
+ },
+ "scripts": {},
+ "dependencies": {
+ "@types/ethereum-protocol": "*"
+ },
+ "typesPublisherContentHash": "aa787c969f42d99ef10c771552fe48a55c2b9ae57d92371eda77b74957500729",
+ "typeScriptVersion": "2.4"
+} \ No newline at end of file