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 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
17 | // TypeScript Version: 2.4
|
18 | import BigNumber = require("bn.js");
|
19 | import Providers, { Provider } from "./providers";
|
20 | import Contract from "./eth/contract";
|
21 | import { Callback, Bzz, Shh } from "./types";
|
22 | import { BatchRequest, Net, Personal } from "./eth/types";
|
23 | import Utils from "./utils";
|
24 | import Eth from "./eth/index";
|
25 |
|
26 | declare class Web3 {
|
27 | static providers: Providers;
|
28 | static givenProvider: Provider;
|
29 | static modules: {
|
30 | Eth: new (provider: Provider) => Eth;
|
31 | Net: new (provider: Provider) => Net;
|
32 | Personal: new (provider: Provider) => Personal;
|
33 | Shh: new (provider: Provider) => Shh;
|
34 | Bzz: new (provider: Provider) => Bzz;
|
35 | };
|
36 | constructor(provider?: Provider | string);
|
37 | version: string;
|
38 | BatchRequest: new () => BatchRequest;
|
39 | extend(methods: any): any; // TODO
|
40 | bzz: Bzz;
|
41 | currentProvider: Provider;
|
42 | eth: Eth;
|
43 | ssh: Shh;
|
44 | givenProvider: Provider;
|
45 | providers: Providers;
|
46 | setProvider(provider: Provider): void;
|
47 | utils: Utils;
|
48 | }
|
49 |
|
50 | export = Web3;
|