Removed BigNumber and AbiCoder objects from utils and exposed them at the root.

This commit is contained in:
Richard Moore 2018-08-13 16:58:19 +01:00
parent e4d5786861
commit f4c3073304
No known key found for this signature in database
GPG Key ID: 525F70A6FCABC295
2 changed files with 7 additions and 4 deletions

@ -6,6 +6,9 @@ import * as providers from './providers';
import { HDNode, SigningKey, Wallet } from './wallet';
import { AbiCoder } from './utils/abi-coder';
import { BigNumber } from './utils/bignumber';
import * as constants from './utils/constants';
import * as errors from './utils/errors';
import * as utils from './utils';
@ -39,6 +42,8 @@ export {
getDefaultProvider,
providers,
AbiCoder,
BigNumber,
errors,
constants,
utils,

@ -1,9 +1,9 @@
'use strict';
import { AbiCoder, defaultAbiCoder, formatSignature, formatParamType, parseSignature, parseParamType } from './abi-coder';
import { defaultAbiCoder, formatSignature, formatParamType, parseSignature, parseParamType } from './abi-coder';
import { getAddress, getContractAddress, getIcapAddress } from './address';
import * as base64 from './base64';
import { BigNumber, bigNumberify } from './bignumber';
import { bigNumberify } from './bignumber';
import { arrayify, concat, hexDataSlice, hexDataLength, hexlify, hexStripZeros, hexZeroPad, joinSignature, padZeros, splitSignature, stripZeros } from './bytes';
import { hashMessage, id, namehash } from './hash';
import { getJsonWalletAddress } from './json-wallet';
@ -21,7 +21,6 @@ import { formatEther, parseEther, formatUnits, parseUnits } from './units';
import { fetchJson } from './web';
export {
AbiCoder,
defaultAbiCoder,
formatSignature,
formatParamType,
@ -46,7 +45,6 @@ export {
base64,
BigNumber,
bigNumberify,
hexlify,