2018-06-13 22:39:39 +03:00
|
|
|
'use strict';
|
|
|
|
|
2018-06-22 09:07:57 +03:00
|
|
|
// This is empty in node, and used by browserify to inject extra goodies
|
2018-06-24 11:03:21 +03:00
|
|
|
import {} from './utils/shims';
|
2018-06-22 09:07:57 +03:00
|
|
|
|
2018-07-13 03:11:32 +03:00
|
|
|
|
2018-06-13 22:39:39 +03:00
|
|
|
import { Contract, Interface } from './contracts';
|
2018-07-15 00:19:08 +03:00
|
|
|
import * as providers from './providers';
|
2018-06-18 12:42:41 +03:00
|
|
|
import { getNetwork } from './providers/networks';
|
2018-07-15 00:19:08 +03:00
|
|
|
import * as utils from './utils';
|
2018-06-13 22:39:39 +03:00
|
|
|
import { HDNode, SigningKey, Wallet } from './wallet';
|
2018-06-24 11:03:21 +03:00
|
|
|
import * as wordlists from './wordlists';
|
2018-06-13 22:39:39 +03:00
|
|
|
|
2018-07-16 07:09:13 +03:00
|
|
|
import * as types from './utils/types';
|
|
|
|
|
|
|
|
import * as errors from './utils/errors';
|
|
|
|
|
2018-06-24 12:31:24 +03:00
|
|
|
import { version } from './_version';
|
2018-06-13 22:39:39 +03:00
|
|
|
|
2018-07-12 09:49:48 +03:00
|
|
|
const constants = utils.constants;
|
|
|
|
|
2018-06-13 22:39:39 +03:00
|
|
|
export {
|
|
|
|
Wallet,
|
|
|
|
|
|
|
|
HDNode,
|
|
|
|
SigningKey,
|
|
|
|
|
|
|
|
Contract,
|
|
|
|
Interface,
|
|
|
|
|
2018-06-18 12:42:41 +03:00
|
|
|
getNetwork,
|
2018-06-13 22:39:39 +03:00
|
|
|
providers,
|
|
|
|
|
2018-07-15 00:19:08 +03:00
|
|
|
types,
|
|
|
|
|
2018-06-13 22:39:39 +03:00
|
|
|
errors,
|
2018-07-12 09:49:48 +03:00
|
|
|
constants,
|
2018-06-13 22:39:39 +03:00
|
|
|
utils,
|
|
|
|
|
2018-06-24 11:03:21 +03:00
|
|
|
wordlists,
|
|
|
|
|
2018-06-19 09:12:57 +03:00
|
|
|
version
|
2018-06-13 22:39:39 +03:00
|
|
|
};
|
|
|
|
|
2018-07-16 07:39:29 +03:00
|
|
|
export const ethers = {
|
2018-06-24 11:03:21 +03:00
|
|
|
Wallet,
|
|
|
|
|
|
|
|
HDNode,
|
|
|
|
SigningKey,
|
2018-06-13 22:39:39 +03:00
|
|
|
|
2018-06-24 11:03:21 +03:00
|
|
|
Contract,
|
|
|
|
Interface,
|
2018-06-13 22:39:39 +03:00
|
|
|
|
2018-06-24 11:03:21 +03:00
|
|
|
getNetwork,
|
|
|
|
providers,
|
2018-06-13 22:39:39 +03:00
|
|
|
|
2018-07-15 00:19:08 +03:00
|
|
|
types,
|
|
|
|
|
2018-06-24 11:03:21 +03:00
|
|
|
errors,
|
2018-07-12 09:49:48 +03:00
|
|
|
constants,
|
2018-06-24 11:03:21 +03:00
|
|
|
utils,
|
2018-06-13 22:39:39 +03:00
|
|
|
|
2018-06-24 11:03:21 +03:00
|
|
|
wordlists,
|
2018-06-13 22:39:39 +03:00
|
|
|
|
2018-06-24 11:03:21 +03:00
|
|
|
version
|
2018-06-13 22:39:39 +03:00
|
|
|
}
|