1 | // Type definitions for web3 1.0
|
2 | // Project: https://github.com/ethereum/web3.js
|
3 | // Definitions by: Simon Jentzsch <https://github.com/simon-jentzsch>
|
4 | // Nitzan Tomer <https://github.com/nitzantomer>
|
5 | // Zurbo <https://github.com/zurbo>
|
6 | // Xiao Liang <https://github.com/yxliang01>
|
7 | // Francesco Soncina <https://github.com/phra>
|
8 | // Nick Addison <https://github.com/naddison36>
|
9 | // Ícaro Harry <https://github.com/icaroharry>
|
10 | // Linus Norton <https://github.com/linusnorton>
|
11 | // Javier Peletier <https://github.com/jpeletier>
|
12 | // HIKARU KOBORI <https://github.com/anneau>
|
13 | // Baris Gumustas <https://github.com/matrushka>
|
14 | // André Vitor de Lima Matos <https://github.com/andrevmatos>
|
15 | // Levin Keller <https://github.com/levino>
|
16 | // Dmitry Radkovskiy <https://github.com/zlumer>
|
17 | // Konstantin Melnikov <https://github.com/archangel-irk>
|
18 | // Asgeir Sognefest <https://github.com/sogasg>
|
19 | // Donam Kim <https://github.com/donamk>
|
20 | // Doug Kent <https://github.com/dkent600>
|
21 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
22 | // TypeScript Version: 2.4
|
23 |
|
24 | import Providers, { Provider } from "./providers";
|
25 | import { Bzz, Shh } from "./types";
|
26 | import { BatchRequest, Net, Personal } from "./eth/types";
|
27 | import Utils from "./utils";
|
28 | import Eth from "./eth/index";
|
29 |
|
30 | declare class Web3 {
|
31 | static providers: Providers;
|
32 | static givenProvider: Provider;
|
33 | static modules: {
|
34 | Eth: new (provider: Provider) => Eth;
|
35 | Net: new (provider: Provider) => Net;
|
36 | Personal: new (provider: Provider) => Personal;
|
37 | Shh: new (provider: Provider) => Shh;
|
38 | Bzz: new (provider: Provider) => Bzz;
|
39 | };
|
40 | static utils: Utils;
|
41 | constructor(provider?: Provider | string);
|
42 | version: string;
|
43 | BatchRequest: new () => BatchRequest;
|
44 | extend(methods: any): any; // TODO
|
45 | bzz: Bzz;
|
46 | currentProvider: Provider;
|
47 | eth: Eth;
|
48 | shh: Shh;
|
49 | givenProvider: Provider;
|
50 | providers: Providers;
|
51 | setProvider(provider: Provider): void;
|
52 | utils: Utils;
|
53 | }
|
54 |
|
55 | export = Web3;
|