ethers.js/index.js

52 lines
1.2 KiB
JavaScript
Raw Normal View History

2016-07-25 10:55:16 +03:00
'use strict';
/*
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');
2017-03-08 09:50:12 +03:00
//var HDNode = require('./hdnode/index.js');
2017-02-27 08:09:07 +03:00
var providers = require('./providers/index.js');
var utils = require('./utils/index.js');
2017-03-08 09:50:12 +03:00
var wallet = require('./wallet/index.js');
2016-07-14 20:43:15 +03:00
module.exports = {
2017-03-08 09:50:12 +03:00
Wallet: wallet.Wallet,
2016-07-14 20:43:15 +03:00
2017-03-08 09:50:12 +03:00
HDNode: wallet.HDNode,
2016-07-14 20:43:15 +03:00
Contract: contracts.Contract,
Interface: contracts.Interface,
2016-07-14 20:43:15 +03:00
2017-02-27 08:09:07 +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,
2017-03-08 09:50:12 +03:00
toUtf8Bytes: utils.toUtf8Bytes,
toUtf8String: utils.toUtf8String,
keccak256: utils.keccak256,
sha256: utils.sha256,
2016-07-14 20:43:15 +03:00
randomBytes: utils.randomBytes,
},
_utils: utils,
2017-03-08 09:50:12 +03:00
_SigningKey: wallet._SigningKey,
};
require('ethers-utils/standalone.js')(module.exports);