ethers.js/src.ts/utils/index.ts

188 lines
4.1 KiB
TypeScript
Raw Normal View History

2016-07-25 03:55:16 -04:00
'use strict';
2016-07-15 23:47:35 -04:00
import { AbiCoder, defaultAbiCoder, formatSignature, formatParamType, parseSignature, parseParamType } from './abi-coder';
import { getAddress, getContractAddress, getIcapAddress } from './address';
2018-06-13 15:39:39 -04:00
import * as base64 from './base64';
import { BigNumber, bigNumberify } from './bignumber';
import { arrayify, concat, hexDataSlice, hexDataLength, hexlify, hexStripZeros, hexZeroPad, isHexString, joinSignature, padZeros, splitSignature, stripZeros } from './bytes';
2018-06-18 05:42:41 -04:00
import { hashMessage, id, namehash } from './hash';
import * as HDNode from './hdnode';
import { Interface } from './interface';
import { getJsonWalletAddress } from './json-wallet';
2018-06-13 15:39:39 -04:00
import { keccak256 } from './keccak256';
import { sha256 } from './sha2';
import { keccak256 as solidityKeccak256, pack as solidityPack, sha256 as soliditySha256 } from './solidity';
2018-06-13 15:39:39 -04:00
import { randomBytes } from './random-bytes';
2018-07-16 00:48:41 -04:00
import { getNetwork } from './networks';
import { checkProperties, deepCopy, defineReadOnly, resolveProperties, shallowCopy } from './properties';
2018-06-13 15:39:39 -04:00
import * as RLP from './rlp';
import { computeAddress, computePublicKey, recoverAddress, recoverPublicKey, verifyMessage } from './secp256k1';
import { SigningKey } from './signing-key';
import { populateTransaction } from './transaction';
import { parse as parseTransaction, serialize as serializeTransaction } from './transaction';
import { formatBytes32String, parseBytes32String, toUtf8Bytes, toUtf8String } from './utf8';
import { commify, formatEther, parseEther, formatUnits, parseUnits } from './units';
2019-05-24 14:38:54 -04:00
import { fetchJson, poll } from './web';
2018-06-13 15:39:39 -04: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
export {
AbiCoder,
defaultAbiCoder,
formatSignature,
formatParamType,
parseSignature,
parseParamType,
2016-07-15 23:47:35 -04:00
RLP,
2016-07-15 23:47:35 -04:00
fetchJson,
2018-07-16 00:48:41 -04:00
getNetwork,
2016-07-15 23:47:35 -04:00
checkProperties,
deepCopy,
defineReadOnly,
resolveProperties,
shallowCopy,
2016-07-15 23:47:35 -04:00
arrayify,
concat,
padZeros,
stripZeros,
2016-07-15 23:47:35 -04:00
HDNode,
SigningKey,
Interface,
base64,
BigNumber,
bigNumberify,
2016-08-23 22:06:26 -04:00
hexlify,
isHexString,
2018-07-12 02:44:45 -04:00
hexStripZeros,
hexZeroPad,
hexDataLength,
hexDataSlice,
2017-05-03 20:24:07 -04:00
toUtf8Bytes,
toUtf8String,
formatBytes32String,
parseBytes32String,
hashMessage,
namehash,
id,
2016-07-15 23:47:35 -04:00
getAddress,
getIcapAddress,
getContractAddress,
formatEther,
parseEther,
formatUnits,
parseUnits,
commify,
keccak256,
sha256,
randomBytes,
solidityPack,
solidityKeccak256,
soliditySha256,
splitSignature,
joinSignature,
parseTransaction,
populateTransaction,
serializeTransaction,
getJsonWalletAddress,
computeAddress,
2018-07-22 19:59:27 -04:00
computePublicKey,
recoverAddress,
recoverPublicKey,
verifyMessage,
2019-05-24 14:38:54 -04:00
poll,
////////////////////////
// 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-15 23:47:35 -04:00
}