2016-07-25 10:55:16 +03:00
|
|
|
'use strict';
|
2016-07-16 06:47:35 +03:00
|
|
|
|
2017-02-24 22:41:24 +03:00
|
|
|
// This is SUPER useful, but adds 140kb (even zipped, adds 40kb)
|
|
|
|
//var unorm = require('unorm');
|
|
|
|
|
2017-04-05 00:26:09 +03:00
|
|
|
var address = require('./address');
|
|
|
|
var bigNumber = require('./bignumber');
|
|
|
|
var contractAddress = require('./contract-address');
|
|
|
|
var convert = require('./convert');
|
2017-10-17 23:05:44 +03:00
|
|
|
var id = require('./id');
|
2017-04-05 00:26:09 +03:00
|
|
|
var keccak256 = require('./keccak256');
|
2017-05-04 03:24:07 +03:00
|
|
|
var namehash = require('./namehash');
|
2017-04-05 00:26:09 +03:00
|
|
|
var sha256 = require('./sha2').sha256;
|
|
|
|
var randomBytes = require('./random-bytes');
|
|
|
|
var properties = require('./properties');
|
|
|
|
var RLP = require('./rlp');
|
|
|
|
var utf8 = require('./utf8');
|
|
|
|
var units = require('./units');
|
2017-02-24 22:41:24 +03:00
|
|
|
|
2016-08-03 09:26:36 +03:00
|
|
|
|
2017-02-24 22:41:24 +03:00
|
|
|
module.exports = {
|
2017-04-05 00:26:09 +03:00
|
|
|
RLP: RLP,
|
2016-07-16 06:47:35 +03:00
|
|
|
|
2017-02-24 22:41:24 +03:00
|
|
|
defineProperty: properties.defineProperty,
|
2016-07-16 06:47:35 +03:00
|
|
|
|
2017-02-24 22:41:24 +03:00
|
|
|
// NFKD (decomposed)
|
|
|
|
//etherSymbol: '\uD835\uDF63',
|
2016-07-16 06:47:35 +03:00
|
|
|
|
2017-02-24 22:41:24 +03:00
|
|
|
// NFKC (composed)
|
|
|
|
etherSymbol: '\u039e',
|
2016-07-16 06:47:35 +03:00
|
|
|
|
2017-02-24 22:41:24 +03:00
|
|
|
arrayify: convert.arrayify,
|
2016-07-16 06:47:35 +03:00
|
|
|
|
2017-02-24 22:41:24 +03:00
|
|
|
concat: convert.concat,
|
|
|
|
padZeros: convert.padZeros,
|
|
|
|
stripZeros: convert.stripZeros,
|
2016-07-16 06:47:35 +03:00
|
|
|
|
2017-02-24 22:41:24 +03:00
|
|
|
bigNumberify: bigNumber.bigNumberify,
|
2016-07-16 06:47:35 +03:00
|
|
|
|
2017-02-24 22:41:24 +03:00
|
|
|
hexlify: convert.hexlify,
|
2016-08-24 03:12:12 +03:00
|
|
|
|
2017-02-24 22:41:24 +03:00
|
|
|
toUtf8Bytes: utf8.toUtf8Bytes,
|
|
|
|
toUtf8String: utf8.toUtf8String,
|
2016-08-24 05:06:26 +03:00
|
|
|
|
2017-05-04 03:24:07 +03:00
|
|
|
namehash: namehash,
|
2017-10-17 23:05:44 +03:00
|
|
|
id: id,
|
2017-05-04 03:24:07 +03:00
|
|
|
|
2017-02-24 22:41:24 +03:00
|
|
|
getAddress: address.getAddress,
|
|
|
|
getContractAddress: contractAddress.getContractAddress,
|
2016-08-03 09:26:36 +03:00
|
|
|
|
2017-02-24 22:41:24 +03:00
|
|
|
formatEther: units.formatEther,
|
|
|
|
parseEther: units.parseEther,
|
2016-07-16 06:47:35 +03:00
|
|
|
|
2017-02-24 22:41:24 +03:00
|
|
|
keccak256: keccak256,
|
2016-07-21 01:03:46 +03:00
|
|
|
sha256: sha256,
|
2017-02-24 22:41:24 +03:00
|
|
|
|
|
|
|
randomBytes: randomBytes,
|
2016-07-16 06:47:35 +03:00
|
|
|
}
|
2017-02-28 01:35:23 +03:00
|
|
|
|
2017-04-05 00:26:09 +03:00
|
|
|
require('./standalone')({
|
2017-02-28 01:35:23 +03:00
|
|
|
utils: module.exports
|
|
|
|
});
|
|
|
|
|