2018-07-16 10:27:49 +03:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
// This is empty in node, and used by browserify to inject extra goodies
|
2018-07-17 09:05:24 +03:00
|
|
|
import { platform } from './utils/shims';
|
2018-07-16 10:27:49 +03:00
|
|
|
|
|
|
|
import { Contract, Interface } from './contracts';
|
2018-07-31 01:59:52 +03:00
|
|
|
import {
|
|
|
|
Provider,
|
|
|
|
getDefaultProvider,
|
|
|
|
|
|
|
|
FallbackProvider,
|
|
|
|
|
|
|
|
EtherscanProvider,
|
|
|
|
InfuraProvider,
|
|
|
|
JsonRpcProvider,
|
|
|
|
Web3Provider,
|
|
|
|
|
|
|
|
IpcProvider,
|
|
|
|
} from './providers';
|
2018-07-16 10:27:49 +03:00
|
|
|
import { HDNode, SigningKey, Wallet } from './wallet';
|
2018-07-31 01:59:52 +03:00
|
|
|
|
|
|
|
import * as utils from './utils';
|
2018-07-16 10:27:49 +03:00
|
|
|
import * as wordlists from './wordlists';
|
|
|
|
|
2018-07-31 01:59:52 +03:00
|
|
|
import * as types from './types';
|
2018-07-16 10:27:49 +03:00
|
|
|
|
|
|
|
import * as errors from './utils/errors';
|
|
|
|
|
|
|
|
import { version } from './_version';
|
|
|
|
|
|
|
|
const constants = utils.constants;
|
|
|
|
|
|
|
|
export {
|
|
|
|
Wallet,
|
|
|
|
|
|
|
|
HDNode,
|
|
|
|
SigningKey,
|
|
|
|
|
|
|
|
Contract,
|
|
|
|
Interface,
|
|
|
|
|
2018-07-31 01:59:52 +03:00
|
|
|
getDefaultProvider,
|
|
|
|
Provider,
|
|
|
|
FallbackProvider,
|
|
|
|
EtherscanProvider,
|
|
|
|
InfuraProvider,
|
|
|
|
JsonRpcProvider,
|
|
|
|
Web3Provider,
|
|
|
|
IpcProvider,
|
2018-07-16 10:27:49 +03:00
|
|
|
|
|
|
|
types,
|
|
|
|
|
|
|
|
errors,
|
|
|
|
constants,
|
|
|
|
utils,
|
|
|
|
|
|
|
|
wordlists,
|
|
|
|
|
2018-07-17 09:05:24 +03:00
|
|
|
platform,
|
2018-07-16 10:27:49 +03:00
|
|
|
version
|
|
|
|
};
|
|
|
|
|