ethers.js/index.js

50 lines
1.0 KiB
JavaScript
Raw Normal View History

2016-07-25 10:55:16 +03:00
'use strict';
2016-07-14 20:43:15 +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
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
module.exports = {
Wallet: Wallet,
2016-07-14 20:43:15 +03:00
HDNode: HDNode,
2016-07-14 20:43:15 +03:00
Contract: contracts.Contract,
Interface: contracts.Interface,
2016-07-14 20:43:15 +03:00
// providers: providers,
2016-07-14 20:43:15 +03:00
utils: {
bigNumberify: utils.bigNumberify,
2016-07-16 06:47:35 +03:00
etherSymbol: utils.etherSymbol,
2016-07-16 06:47:35 +03:00
formatEther: utils.formatEther,
parseEther: utils.parseEther,
2016-08-02 02:24:52 +03:00
getAddress: utils.getAddress,
getContractAddress: utils.getContractAddress,
keccak256: utils.keccak256,
sha256: utils.sha256,
2016-07-14 20:43:15 +03:00
randomBytes: utils.randomBytes,
},
_utils: utils,
_SigningKey: Wallet._SigningKey,
};