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