2016-07-25 10:55:16 +03:00
|
|
|
'use strict';
|
|
|
|
|
2016-07-14 20:43:15 +03:00
|
|
|
|
2017-02-24 22:41:24 +03:00
|
|
|
/*
|
|
|
|
var contracts = require('ethers-contracts');
|
|
|
|
var HDNode = require('ethers-hdnode');
|
|
|
|
//var providers = require('providers');
|
|
|
|
var utils = require('ethers-utils');
|
|
|
|
var Wallet = require('ethers-wallet');
|
|
|
|
*/
|
2016-07-14 20:43:15 +03:00
|
|
|
|
2017-02-24 22:41:24 +03:00
|
|
|
var contracts = require('./contracts/index.js');
|
|
|
|
var HDNode = require('./hdnode/index.js');
|
|
|
|
//var providers = require('providers');
|
|
|
|
var utils = require('./utils/index.js');
|
|
|
|
var Wallet = require('./wallet/index.js');
|
2016-07-14 20:43:15 +03:00
|
|
|
|
2017-02-24 22:41:24 +03:00
|
|
|
module.exports = {
|
|
|
|
Wallet: Wallet,
|
2016-07-14 20:43:15 +03:00
|
|
|
|
2017-02-24 22:41:24 +03:00
|
|
|
HDNode: HDNode,
|
2016-07-14 20:43:15 +03:00
|
|
|
|
2017-02-24 22:41:24 +03:00
|
|
|
Contract: contracts.Contract,
|
|
|
|
Interface: contracts.Interface,
|
2016-07-14 20:43:15 +03:00
|
|
|
|
2017-02-24 22:41:24 +03:00
|
|
|
// providers: providers,
|
2016-07-14 20:43:15 +03:00
|
|
|
|
|
|
|
|
2017-02-24 22:41:24 +03:00
|
|
|
utils: {
|
|
|
|
bigNumberify: utils.bigNumberify,
|
2016-07-16 06:47:35 +03:00
|
|
|
|
2017-02-24 22:41:24 +03:00
|
|
|
etherSymbol: utils.etherSymbol,
|
2016-07-16 06:47:35 +03:00
|
|
|
|
2017-02-24 22:41:24 +03:00
|
|
|
formatEther: utils.formatEther,
|
|
|
|
parseEther: utils.parseEther,
|
2016-08-02 02:24:52 +03:00
|
|
|
|
2017-02-24 22:41:24 +03:00
|
|
|
getAddress: utils.getAddress,
|
|
|
|
getContractAddress: utils.getContractAddress,
|
2016-08-04 02:36:44 +03:00
|
|
|
|
2017-02-24 22:41:24 +03:00
|
|
|
keccak256: utils.keccak256,
|
|
|
|
sha256: utils.sha256,
|
2016-07-14 20:43:15 +03:00
|
|
|
|
2017-02-24 22:41:24 +03:00
|
|
|
randomBytes: utils.randomBytes,
|
|
|
|
},
|
2016-07-23 10:27:14 +03:00
|
|
|
|
2017-02-24 22:41:24 +03:00
|
|
|
_utils: utils,
|
|
|
|
_SigningKey: Wallet._SigningKey,
|
|
|
|
};
|
2016-07-23 10:27:14 +03:00
|
|
|
|