Removed BigNumber and AbiCoder objects from utils and exposed them at the root.
This commit is contained in:
parent
e4d5786861
commit
f4c3073304
@ -6,6 +6,9 @@ import * as providers from './providers';
|
|||||||
|
|
||||||
import { HDNode, SigningKey, Wallet } from './wallet';
|
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 constants from './utils/constants';
|
||||||
import * as errors from './utils/errors';
|
import * as errors from './utils/errors';
|
||||||
import * as utils from './utils';
|
import * as utils from './utils';
|
||||||
@ -39,6 +42,8 @@ export {
|
|||||||
getDefaultProvider,
|
getDefaultProvider,
|
||||||
providers,
|
providers,
|
||||||
|
|
||||||
|
AbiCoder,
|
||||||
|
BigNumber,
|
||||||
errors,
|
errors,
|
||||||
constants,
|
constants,
|
||||||
utils,
|
utils,
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
'use strict';
|
'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 { getAddress, getContractAddress, getIcapAddress } from './address';
|
||||||
import * as base64 from './base64';
|
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 { arrayify, concat, hexDataSlice, hexDataLength, hexlify, hexStripZeros, hexZeroPad, joinSignature, padZeros, splitSignature, stripZeros } from './bytes';
|
||||||
import { hashMessage, id, namehash } from './hash';
|
import { hashMessage, id, namehash } from './hash';
|
||||||
import { getJsonWalletAddress } from './json-wallet';
|
import { getJsonWalletAddress } from './json-wallet';
|
||||||
@ -21,7 +21,6 @@ import { formatEther, parseEther, formatUnits, parseUnits } from './units';
|
|||||||
import { fetchJson } from './web';
|
import { fetchJson } from './web';
|
||||||
|
|
||||||
export {
|
export {
|
||||||
AbiCoder,
|
|
||||||
defaultAbiCoder,
|
defaultAbiCoder,
|
||||||
formatSignature,
|
formatSignature,
|
||||||
formatParamType,
|
formatParamType,
|
||||||
@ -46,7 +45,6 @@ export {
|
|||||||
|
|
||||||
base64,
|
base64,
|
||||||
|
|
||||||
BigNumber,
|
|
||||||
bigNumberify,
|
bigNumberify,
|
||||||
|
|
||||||
hexlify,
|
hexlify,
|
||||||
|
Loading…
Reference in New Issue
Block a user