UNPKG

rubanjs

Version:

Fractal JavaScript API

51 lines (45 loc) 1.73 kB
/* This file is part of web3.js. web3.js is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. web3.js is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with web3.js. If not, see <http://www.gnu.org/licenses/>. */ /** * @file index.d.ts * @author Josh Stevens <joshstevens19@hotmail.co.uk>, Samuel Furter <samuel@ethereum.org> * @date 2018 */ import {AbstractWeb3Module, Web3ModuleOptions} from 'web3-core'; import {Utils} from 'web3-utils'; import * as net from 'net'; import {provider} from 'web3-providers'; import {Eth} from 'web3-eth'; import {Network} from 'web3-net'; import {Shh} from 'web3-shh'; import {Personal} from 'web3-eth-personal'; export default class Web3 extends AbstractWeb3Module { constructor( provider: provider, net?: net.Socket, options?: Web3ModuleOptions ); static modules: Modules; static readonly givenProvider: any; utils: Utils; eth: Eth; shh: Shh; version: string; } export interface Modules { Eth: new (provider: provider, net: net.Socket) => Eth; Net: new (provider: provider, net: net.Socket) => Network; Personal: new (provider: provider, net: net.Socket) => Personal; Shh: new (provider: provider, net: net.Socket) => Shh; }