2018-07-16 10:27:49 +03:00
|
|
|
'use strict';
|
|
|
|
|
2018-09-04 17:28:26 +03:00
|
|
|
import { Contract, Interface, VoidSigner } from './contracts';
|
2018-08-02 00:35:23 +03:00
|
|
|
|
2018-08-03 03:30:44 +03:00
|
|
|
import * as providers from './providers';
|
2018-08-02 00:35:23 +03:00
|
|
|
|
2018-07-16 10:27:49 +03:00
|
|
|
import { HDNode, SigningKey, Wallet } from './wallet';
|
2018-07-31 01:59:52 +03:00
|
|
|
|
2018-08-13 18:58:19 +03:00
|
|
|
import { AbiCoder } from './utils/abi-coder';
|
|
|
|
import { BigNumber } from './utils/bignumber';
|
|
|
|
|
2018-08-03 04:34:10 +03:00
|
|
|
import * as constants from './utils/constants';
|
2018-08-03 03:30:44 +03:00
|
|
|
import * as errors from './utils/errors';
|
2018-07-31 01:59:52 +03:00
|
|
|
import * as utils from './utils';
|
2018-07-16 10:27:49 +03:00
|
|
|
|
2018-08-03 03:30:44 +03:00
|
|
|
import * as types from './types';
|
2018-07-16 10:27:49 +03:00
|
|
|
|
2018-08-03 03:30:44 +03:00
|
|
|
import * as wordlists from './wordlists';
|
2018-07-16 10:27:49 +03:00
|
|
|
|
2018-08-02 00:35:23 +03:00
|
|
|
// This is empty in node, and used by browserify to inject extra goodies
|
|
|
|
import { platform } from './utils/shims';
|
|
|
|
|
|
|
|
// This is generated by "npm run dist"
|
2018-07-16 10:27:49 +03:00
|
|
|
import { version } from './_version';
|
|
|
|
|
2018-08-03 03:30:44 +03:00
|
|
|
function getDefaultProvider(network?: types.Network | string): providers.BaseProvider {
|
|
|
|
return new providers.FallbackProvider([
|
|
|
|
new providers.InfuraProvider(network),
|
|
|
|
new providers.EtherscanProvider(network),
|
|
|
|
]);
|
2018-08-02 00:35:23 +03:00
|
|
|
}
|
|
|
|
|
2018-07-16 10:27:49 +03:00
|
|
|
export {
|
|
|
|
Wallet,
|
2018-09-04 17:28:26 +03:00
|
|
|
VoidSigner,
|
2018-07-16 10:27:49 +03:00
|
|
|
|
|
|
|
HDNode,
|
|
|
|
SigningKey,
|
|
|
|
|
|
|
|
Contract,
|
|
|
|
Interface,
|
|
|
|
|
2018-07-31 01:59:52 +03:00
|
|
|
getDefaultProvider,
|
2018-08-02 00:35:23 +03:00
|
|
|
providers,
|
2018-07-16 10:27:49 +03:00
|
|
|
|
2018-08-13 18:58:19 +03:00
|
|
|
AbiCoder,
|
|
|
|
BigNumber,
|
2018-07-16 10:27:49 +03:00
|
|
|
errors,
|
|
|
|
constants,
|
|
|
|
utils,
|
|
|
|
|
2018-08-02 00:35:23 +03:00
|
|
|
types,
|
|
|
|
|
2018-07-16 10:27:49 +03:00
|
|
|
wordlists,
|
|
|
|
|
2018-07-17 09:05:24 +03:00
|
|
|
platform,
|
2018-07-16 10:27:49 +03:00
|
|
|
version
|
|
|
|
};
|
|
|
|
|