2018-06-13 15:39:39 -04:00
|
|
|
'use strict';
|
|
|
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
|
if (mod && mod.__esModule) return mod;
|
|
|
|
var result = {};
|
|
|
|
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
|
|
result["default"] = mod;
|
|
|
|
return result;
|
|
|
|
};
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
var abi_coder_1 = require("./abi-coder");
|
2018-09-24 16:07:14 -04:00
|
|
|
exports.AbiCoder = abi_coder_1.AbiCoder;
|
2018-06-20 20:29:54 -04:00
|
|
|
exports.defaultAbiCoder = abi_coder_1.defaultAbiCoder;
|
2018-06-24 20:32:14 -04:00
|
|
|
exports.formatSignature = abi_coder_1.formatSignature;
|
|
|
|
exports.formatParamType = abi_coder_1.formatParamType;
|
2018-06-20 20:29:54 -04:00
|
|
|
exports.parseSignature = abi_coder_1.parseSignature;
|
|
|
|
exports.parseParamType = abi_coder_1.parseParamType;
|
2018-07-30 18:59:52 -04:00
|
|
|
var address_1 = require("./address");
|
|
|
|
exports.getAddress = address_1.getAddress;
|
|
|
|
exports.getContractAddress = address_1.getContractAddress;
|
|
|
|
exports.getIcapAddress = address_1.getIcapAddress;
|
2018-06-13 15:39:39 -04:00
|
|
|
var base64 = __importStar(require("./base64"));
|
2018-06-20 20:29:54 -04:00
|
|
|
exports.base64 = base64;
|
|
|
|
var bignumber_1 = require("./bignumber");
|
2018-09-24 16:07:14 -04:00
|
|
|
exports.BigNumber = bignumber_1.BigNumber;
|
2018-06-20 20:29:54 -04:00
|
|
|
exports.bigNumberify = bignumber_1.bigNumberify;
|
|
|
|
var bytes_1 = require("./bytes");
|
|
|
|
exports.arrayify = bytes_1.arrayify;
|
|
|
|
exports.concat = bytes_1.concat;
|
2018-07-12 02:44:45 -04:00
|
|
|
exports.hexDataSlice = bytes_1.hexDataSlice;
|
|
|
|
exports.hexDataLength = bytes_1.hexDataLength;
|
2018-06-20 20:29:54 -04:00
|
|
|
exports.hexlify = bytes_1.hexlify;
|
2018-07-12 02:44:45 -04:00
|
|
|
exports.hexStripZeros = bytes_1.hexStripZeros;
|
|
|
|
exports.hexZeroPad = bytes_1.hexZeroPad;
|
2018-06-20 20:29:54 -04:00
|
|
|
exports.joinSignature = bytes_1.joinSignature;
|
|
|
|
exports.padZeros = bytes_1.padZeros;
|
|
|
|
exports.splitSignature = bytes_1.splitSignature;
|
|
|
|
exports.stripZeros = bytes_1.stripZeros;
|
2018-06-18 05:42:41 -04:00
|
|
|
var hash_1 = require("./hash");
|
2018-06-20 20:29:54 -04:00
|
|
|
exports.hashMessage = hash_1.hashMessage;
|
|
|
|
exports.id = hash_1.id;
|
|
|
|
exports.namehash = hash_1.namehash;
|
2018-09-24 16:07:14 -04:00
|
|
|
var HDNode = __importStar(require("./hdnode"));
|
|
|
|
exports.HDNode = HDNode;
|
|
|
|
var interface_1 = require("./interface");
|
|
|
|
exports.Interface = interface_1.Interface;
|
2018-07-17 01:46:27 -04:00
|
|
|
var json_wallet_1 = require("./json-wallet");
|
|
|
|
exports.getJsonWalletAddress = json_wallet_1.getJsonWalletAddress;
|
2018-06-13 15:39:39 -04:00
|
|
|
var keccak256_1 = require("./keccak256");
|
2018-06-20 20:29:54 -04:00
|
|
|
exports.keccak256 = keccak256_1.keccak256;
|
|
|
|
var sha2_1 = require("./sha2");
|
|
|
|
exports.sha256 = sha2_1.sha256;
|
|
|
|
var solidity_1 = require("./solidity");
|
|
|
|
exports.solidityKeccak256 = solidity_1.keccak256;
|
|
|
|
exports.solidityPack = solidity_1.pack;
|
|
|
|
exports.soliditySha256 = solidity_1.sha256;
|
2018-06-13 15:39:39 -04:00
|
|
|
var random_bytes_1 = require("./random-bytes");
|
2018-06-20 20:29:54 -04:00
|
|
|
exports.randomBytes = random_bytes_1.randomBytes;
|
2018-07-16 00:55:34 -04:00
|
|
|
var networks_1 = require("./networks");
|
|
|
|
exports.getNetwork = networks_1.getNetwork;
|
2018-06-20 20:29:54 -04:00
|
|
|
var properties_1 = require("./properties");
|
2018-10-14 19:05:38 -04:00
|
|
|
exports.checkProperties = properties_1.checkProperties;
|
2018-08-21 13:13:52 +02:00
|
|
|
exports.deepCopy = properties_1.deepCopy;
|
2018-06-20 20:29:54 -04:00
|
|
|
exports.defineReadOnly = properties_1.defineReadOnly;
|
|
|
|
exports.resolveProperties = properties_1.resolveProperties;
|
|
|
|
exports.shallowCopy = properties_1.shallowCopy;
|
2018-06-13 15:39:39 -04:00
|
|
|
var RLP = __importStar(require("./rlp"));
|
2018-06-20 20:29:54 -04:00
|
|
|
exports.RLP = RLP;
|
2018-07-17 01:46:27 -04:00
|
|
|
var secp256k1_1 = require("./secp256k1");
|
2018-09-06 16:41:02 -04:00
|
|
|
exports.computeAddress = secp256k1_1.computeAddress;
|
2018-07-23 02:59:01 -04:00
|
|
|
exports.computePublicKey = secp256k1_1.computePublicKey;
|
2018-09-06 16:41:02 -04:00
|
|
|
exports.recoverAddress = secp256k1_1.recoverAddress;
|
|
|
|
exports.recoverPublicKey = secp256k1_1.recoverPublicKey;
|
2018-07-17 01:46:27 -04:00
|
|
|
exports.verifyMessage = secp256k1_1.verifyMessage;
|
2018-09-24 16:07:14 -04:00
|
|
|
var signing_key_1 = require("./signing-key");
|
|
|
|
exports.SigningKey = signing_key_1.SigningKey;
|
2018-07-12 20:14:04 -04:00
|
|
|
var transaction_1 = require("./transaction");
|
2018-10-14 19:05:38 -04:00
|
|
|
exports.populateTransaction = transaction_1.populateTransaction;
|
|
|
|
var transaction_2 = require("./transaction");
|
|
|
|
exports.parseTransaction = transaction_2.parse;
|
|
|
|
exports.serializeTransaction = transaction_2.serialize;
|
2018-06-20 20:29:54 -04:00
|
|
|
var utf8_1 = require("./utf8");
|
2018-08-21 13:13:52 +02:00
|
|
|
exports.formatBytes32String = utf8_1.formatBytes32String;
|
|
|
|
exports.parseBytes32String = utf8_1.parseBytes32String;
|
2018-06-20 20:29:54 -04:00
|
|
|
exports.toUtf8Bytes = utf8_1.toUtf8Bytes;
|
|
|
|
exports.toUtf8String = utf8_1.toUtf8String;
|
|
|
|
var units_1 = require("./units");
|
2018-09-26 16:15:13 -04:00
|
|
|
exports.commify = units_1.commify;
|
2018-06-20 20:29:54 -04:00
|
|
|
exports.formatEther = units_1.formatEther;
|
|
|
|
exports.parseEther = units_1.parseEther;
|
|
|
|
exports.formatUnits = units_1.formatUnits;
|
|
|
|
exports.parseUnits = units_1.parseUnits;
|
2018-06-13 15:39:39 -04:00
|
|
|
var web_1 = require("./web");
|
2018-06-20 20:29:54 -04:00
|
|
|
exports.fetchJson = web_1.fetchJson;
|
2018-09-24 16:07:14 -04:00
|
|
|
////////////////////////
|
|
|
|
// Enums
|
|
|
|
var hmac_1 = require("./hmac");
|
|
|
|
exports.SupportedAlgorithms = hmac_1.SupportedAlgorithms;
|
|
|
|
var utf8_2 = require("./utf8");
|
|
|
|
exports.UnicodeNormalizationForm = utf8_2.UnicodeNormalizationForm;
|
|
|
|
var wordlist_1 = require("./wordlist");
|
|
|
|
exports.Wordlist = wordlist_1.Wordlist;
|