2016-07-25 10:55:16 +03:00
|
|
|
'use strict';
|
2016-07-16 06:47:35 +03:00
|
|
|
|
2018-09-24 22:55:17 +03:00
|
|
|
import { AbiCoder, defaultAbiCoder, formatSignature, formatParamType, parseSignature, parseParamType } from './abi-coder';
|
2018-07-31 01:59:52 +03:00
|
|
|
import { getAddress, getContractAddress, getIcapAddress } from './address';
|
2018-06-13 22:39:39 +03:00
|
|
|
import * as base64 from './base64';
|
2018-09-24 22:55:17 +03:00
|
|
|
import { BigNumber, bigNumberify } from './bignumber';
|
2018-08-03 03:30:44 +03:00
|
|
|
import { arrayify, concat, hexDataSlice, hexDataLength, hexlify, hexStripZeros, hexZeroPad, joinSignature, padZeros, splitSignature, stripZeros } from './bytes';
|
2018-06-18 12:42:41 +03:00
|
|
|
import { hashMessage, id, namehash } from './hash';
|
2018-09-24 22:55:17 +03:00
|
|
|
import * as HDNode from './hdnode';
|
|
|
|
import { Interface } from './interface';
|
2018-07-17 08:44:04 +03:00
|
|
|
import { getJsonWalletAddress } from './json-wallet';
|
2018-06-13 22:39:39 +03:00
|
|
|
import { keccak256 } from './keccak256';
|
2018-06-21 03:29:54 +03:00
|
|
|
import { sha256 } from './sha2';
|
|
|
|
import { keccak256 as solidityKeccak256, pack as solidityPack, sha256 as soliditySha256 } from './solidity';
|
2018-06-13 22:39:39 +03:00
|
|
|
import { randomBytes } from './random-bytes';
|
2018-07-16 07:48:41 +03:00
|
|
|
import { getNetwork } from './networks';
|
2018-08-21 14:11:44 +03:00
|
|
|
import { deepCopy, defineReadOnly, resolveProperties, shallowCopy } from './properties';
|
2018-06-13 22:39:39 +03:00
|
|
|
import * as RLP from './rlp';
|
2018-09-06 23:37:44 +03:00
|
|
|
import { computeAddress, computePublicKey, recoverAddress, recoverPublicKey, verifyMessage } from './secp256k1';
|
2018-09-24 22:55:17 +03:00
|
|
|
import { SigningKey } from './signing-key';
|
2018-07-13 03:11:32 +03:00
|
|
|
import { parse as parseTransaction, serialize as serializeTransaction } from './transaction';
|
2018-08-21 14:11:44 +03:00
|
|
|
import { formatBytes32String, parseBytes32String, toUtf8Bytes, toUtf8String } from './utf8';
|
2018-06-21 03:29:54 +03:00
|
|
|
import { formatEther, parseEther, formatUnits, parseUnits } from './units';
|
2018-06-13 22:39:39 +03:00
|
|
|
import { fetchJson } from './web';
|
|
|
|
|
2018-09-24 22:55:17 +03:00
|
|
|
|
|
|
|
////////////////////////
|
|
|
|
// Enums
|
|
|
|
|
|
|
|
import { SupportedAlgorithms } from './hmac';
|
|
|
|
import { UnicodeNormalizationForm } from './utf8';
|
|
|
|
|
|
|
|
|
|
|
|
////////////////////////
|
|
|
|
// Types
|
|
|
|
|
|
|
|
import { CoerceFunc, EventFragment, FunctionFragment, ParamType } from './abi-coder';
|
|
|
|
import { BigNumberish } from './bignumber';
|
|
|
|
import { Arrayish, Hexable, Signature } from './bytes';
|
|
|
|
import { Indexed, DeployDescription, EventDescription, FunctionDescription, LogDescription, TransactionDescription } from './interface';
|
|
|
|
import { Network, Networkish } from './networks';
|
|
|
|
import { Transaction, UnsignedTransaction } from './transaction';
|
|
|
|
import { ConnectionInfo, OnceBlockable, PollOptions } from './web';
|
|
|
|
import { EncryptOptions, ProgressCallback } from './secret-storage';
|
|
|
|
import { Wordlist } from './wordlist';
|
|
|
|
|
|
|
|
////////////////////////
|
|
|
|
// Exports
|
|
|
|
|
2018-06-21 03:29:54 +03:00
|
|
|
export {
|
2018-09-24 22:55:17 +03:00
|
|
|
AbiCoder,
|
2018-06-21 03:29:54 +03:00
|
|
|
defaultAbiCoder,
|
2018-06-25 03:32:14 +03:00
|
|
|
formatSignature,
|
|
|
|
formatParamType,
|
2018-06-21 03:29:54 +03:00
|
|
|
parseSignature,
|
|
|
|
parseParamType,
|
2016-07-16 06:47:35 +03:00
|
|
|
|
2018-06-21 03:29:54 +03:00
|
|
|
RLP,
|
2016-07-16 06:47:35 +03:00
|
|
|
|
2018-06-21 03:29:54 +03:00
|
|
|
fetchJson,
|
2018-07-16 07:48:41 +03:00
|
|
|
getNetwork,
|
2016-07-16 06:47:35 +03:00
|
|
|
|
2018-08-21 14:11:44 +03:00
|
|
|
deepCopy,
|
2018-06-21 03:29:54 +03:00
|
|
|
defineReadOnly,
|
|
|
|
resolveProperties,
|
|
|
|
shallowCopy,
|
2016-07-16 06:47:35 +03:00
|
|
|
|
2018-06-21 03:29:54 +03:00
|
|
|
arrayify,
|
2018-04-14 23:10:26 +03:00
|
|
|
|
2018-06-21 03:29:54 +03:00
|
|
|
concat,
|
|
|
|
padZeros,
|
|
|
|
stripZeros,
|
2016-07-16 06:47:35 +03:00
|
|
|
|
2018-09-24 22:55:17 +03:00
|
|
|
HDNode,
|
|
|
|
SigningKey,
|
|
|
|
|
|
|
|
Interface,
|
|
|
|
|
2018-06-21 03:29:54 +03:00
|
|
|
base64,
|
2016-08-24 03:12:12 +03:00
|
|
|
|
2018-09-24 22:55:17 +03:00
|
|
|
BigNumber,
|
2018-06-21 03:29:54 +03:00
|
|
|
bigNumberify,
|
2016-08-24 05:06:26 +03:00
|
|
|
|
2018-06-21 03:29:54 +03:00
|
|
|
hexlify,
|
2018-07-12 09:44:45 +03:00
|
|
|
hexStripZeros,
|
|
|
|
hexZeroPad,
|
|
|
|
hexDataLength,
|
|
|
|
hexDataSlice,
|
2017-05-04 03:24:07 +03:00
|
|
|
|
2018-06-21 03:29:54 +03:00
|
|
|
toUtf8Bytes,
|
|
|
|
toUtf8String,
|
2016-08-03 09:26:36 +03:00
|
|
|
|
2018-08-21 14:11:44 +03:00
|
|
|
formatBytes32String,
|
|
|
|
parseBytes32String,
|
|
|
|
|
2018-06-21 03:29:54 +03:00
|
|
|
hashMessage,
|
|
|
|
namehash,
|
|
|
|
id,
|
2016-07-16 06:47:35 +03:00
|
|
|
|
2018-06-21 03:29:54 +03:00
|
|
|
getAddress,
|
|
|
|
getIcapAddress,
|
|
|
|
getContractAddress,
|
2018-02-08 04:34:39 +03:00
|
|
|
|
2018-06-21 03:29:54 +03:00
|
|
|
formatEther,
|
|
|
|
parseEther,
|
2017-02-24 22:41:24 +03:00
|
|
|
|
2018-06-21 03:29:54 +03:00
|
|
|
formatUnits,
|
|
|
|
parseUnits,
|
2017-11-23 10:11:08 +03:00
|
|
|
|
2018-06-21 03:29:54 +03:00
|
|
|
keccak256,
|
|
|
|
sha256,
|
2018-04-12 22:18:11 +03:00
|
|
|
|
2018-06-21 03:29:54 +03:00
|
|
|
randomBytes,
|
2018-06-17 23:32:57 +03:00
|
|
|
|
2018-06-21 03:29:54 +03:00
|
|
|
solidityPack,
|
|
|
|
solidityKeccak256,
|
|
|
|
soliditySha256,
|
|
|
|
|
|
|
|
splitSignature,
|
|
|
|
joinSignature,
|
|
|
|
|
|
|
|
parseTransaction,
|
2018-06-26 04:02:20 +03:00
|
|
|
serializeTransaction,
|
2018-06-21 03:29:54 +03:00
|
|
|
|
2018-07-17 08:44:04 +03:00
|
|
|
getJsonWalletAddress,
|
|
|
|
|
2018-09-06 23:37:44 +03:00
|
|
|
computeAddress,
|
2018-07-23 02:59:27 +03:00
|
|
|
computePublicKey,
|
2018-09-06 23:37:44 +03:00
|
|
|
recoverAddress,
|
|
|
|
recoverPublicKey,
|
2018-09-24 22:55:17 +03:00
|
|
|
verifyMessage,
|
|
|
|
|
|
|
|
|
|
|
|
////////////////////////
|
|
|
|
// Enums
|
|
|
|
|
|
|
|
SupportedAlgorithms,
|
|
|
|
UnicodeNormalizationForm,
|
|
|
|
|
|
|
|
|
|
|
|
////////////////////////
|
|
|
|
// Types
|
|
|
|
|
|
|
|
CoerceFunc,
|
|
|
|
EventFragment,
|
|
|
|
FunctionFragment,
|
|
|
|
ParamType,
|
|
|
|
|
|
|
|
BigNumberish,
|
|
|
|
|
|
|
|
Arrayish,
|
|
|
|
Hexable,
|
|
|
|
Signature,
|
|
|
|
|
|
|
|
Indexed,
|
|
|
|
|
|
|
|
DeployDescription,
|
|
|
|
EventDescription,
|
|
|
|
FunctionDescription,
|
|
|
|
LogDescription,
|
|
|
|
TransactionDescription,
|
|
|
|
|
|
|
|
Network,
|
|
|
|
Networkish,
|
|
|
|
|
|
|
|
Transaction,
|
|
|
|
UnsignedTransaction,
|
|
|
|
|
|
|
|
ConnectionInfo,
|
|
|
|
OnceBlockable,
|
|
|
|
PollOptions,
|
|
|
|
|
|
|
|
EncryptOptions,
|
|
|
|
ProgressCallback,
|
|
|
|
|
|
|
|
Wordlist,
|
|
|
|
|
2016-07-16 06:47:35 +03:00
|
|
|
}
|
2018-06-24 11:03:21 +03:00
|
|
|
|