web3-utils
Advanced tools
Changelog
[1.5.0]
eth_feehistory
call (#4191)toNumber
method to web3.utils
(#4191)Changelog
[1.4.0]
stable
to 1.10.3
in e2e.geth.instamine.sh
and scripts/e2e.geth.automine.sh
(#4154)Changelog
[4.0.0-alpha.0]
Note: Yarn is resolving to some old deprecated package versions for 4.0.0-alpha.0 instead of latest alpha versions. A patch bump is posted so yarn users should use 4.0.1-alpha.0 for testing.
web3-errors
new package is created, it has Web3 Error codes and classesweb3-types
new package is created, it provides the common data structures and interfaces for web3 modulesweb3-validator
new package is created, it has JSON-Schema compatible validator functionality for Web3errors
are moved to web3-errors
package and formatters are moved in web3-core
packageweb3-core-method
functionality is moved to web3-eth
packageweb3-core
packageweb3-core
packageweb3-core
packageextend
is deprecatedoutputBigNumberFormatter
in web3-core-helper
renamed to outputBigIntFormatter
under web3-core
this.defaultBlock
context from inputDefaultBlockNumberFormatter
in web3-core-helper
and converted to additional parameterthis.defaultBlock
context from inputTransactionFormatter
in web3-core-helper
and converted to additional parametersoliditySha3
soliditySha3Raw
encodePacked
now includes type validation and requires type specification, instead of guessing the value typesoliditySha3
, soliditySha3Raw
and encodePacked
did not support BN; But, now supports BigInt
flattenTypes
and jsonInterfaceMethodToString
moved to the web3-eth-abi
packageisAddress
now includes an optional parameter checkChecksum
type booleanisBoolean
now accept 1
, and 0
as valid values to test. Ref: web3-validator
create
function does not take in the optional parameter entropy
Wallet.create
function doesn't accept entropy
paramisBoolean
now accept 1
, and 0
as valid values to test.signTransaction
will not fill any default values, and it will only sign and return result. For filling default values, use web3-eth
packagerecover
function's last param is boolean hashed
, it is used to indicate if data provided is already hashed or not. By default, this function will assume data is not hashed.Wallet
no longer supports address/number indexing. Have to use wallet.get
instead.Wallet.create
function doesn't accept entropy
paramcontract.method.send()
will resolve to transaction receipt instead of transactionHash
. User can use receipt.transactionHash
instead.isDirect
, isValid
, isIndirect
are now also included as static methods.setMultihash
is not supported in web3-eth-ens 4.x as it's deprecated in ENS public resolver (https://github.com/ensdomains/resolvers/blob/master/contracts/PublicResolver.sol)setContent
is not supported in web3-eth-ens 4.x as it's deprecated in ENS public resolver (https://github.com/ensdomains/resolvers/blob/master/contracts/PublicResolver.sol)getContent
is not supported in web3-eth-ens 4.x as it's deprecated in ENS public resolver.getMultihash
is not supported in web3-eth-ens 4.x as it's deprecated in ENS public resolver.internalType
was renamed to baseType
in all abi typesgivenProvider
default value is undefineddefaultHardfork
default value is 'london'defaultAccount
default value is undefineddefaultNetworkId
default value is undefinedtransactionSendTimeout
, throw an Error.clearSubscriptions
Instead of returning true
, clearSubscriptions
now returns array of subscription's idsgivenProvider
default value is undefinedcurrentProvider
default value is undefinedChangelog
[4.0.0-alpha.0]
Note: Yarn is resolving to some old deprecated package versions for 4.0.0-alpha.0 instead of latest alpha versions. A patch bump is posted so yarn users should use 4.0.1-alpha.0 for testing.
web3-errors
new package is created, it has Web3 Error codes and classesweb3-types
new package is created, it provides the common data structures and interfaces for web3 modulesweb3-validator
new package is created, it has JSON-Schema compatible validator functionality for Web3errors
are moved to web3-errors
package and formatters are moved in web3-core
packageweb3-core-method
functionality is moved to web3-eth
packageweb3-core
packageweb3-core
packageweb3-core
packageextend
is deprecatedoutputBigNumberFormatter
in web3-core-helper
renamed to outputBigIntFormatter
under web3-core
this.defaultBlock
context from inputDefaultBlockNumberFormatter
in web3-core-helper
and converted to additional parameterthis.defaultBlock
context from inputTransactionFormatter
in web3-core-helper
and converted to additional parametersoliditySha3
soliditySha3Raw
encodePacked
now includes type validation and requires type specification, instead of guessing the value typesoliditySha3
, soliditySha3Raw
and encodePacked
did not support BN; But, now supports BigInt
flattenTypes
and jsonInterfaceMethodToString
moved to the web3-eth-abi
packageisAddress
now includes an optional parameter checkChecksum
type booleanisBoolean
now accept 1
, and 0
as valid values to test. Ref: web3-validator
create
function does not take in the optional parameter entropy
Wallet.create
function doesn't accept entropy
paramisBoolean
now accept 1
, and 0
as valid values to test.signTransaction
will not fill any default values, and it will only sign and return result. For filling default values, use web3-eth
packagerecover
function's last param is boolean hashed
, it is used to indicate if data provided is already hashed or not. By default, this function will assume data is not hashed.Wallet
no longer supports address/number indexing. Have to use wallet.get
instead.Wallet.create
function doesn't accept entropy
paramcontract.method.send()
will resolve to transaction receipt instead of transactionHash
. User can use receipt.transactionHash
instead.isDirect
, isValid
, isIndirect
are now also included as static methods.setMultihash
is not supported in web3-eth-ens 4.x as it's deprecated in ENS public resolver (https://github.com/ensdomains/resolvers/blob/master/contracts/PublicResolver.sol)setContent
is not supported in web3-eth-ens 4.x as it's deprecated in ENS public resolver (https://github.com/ensdomains/resolvers/blob/master/contracts/PublicResolver.sol)getContent
is not supported in web3-eth-ens 4.x as it's deprecated in ENS public resolver.getMultihash
is not supported in web3-eth-ens 4.x as it's deprecated in ENS public resolver.internalType
was renamed to baseType
in all abi typesgivenProvider
default value is undefineddefaultHardfork
default value is 'london'defaultAccount
default value is undefineddefaultNetworkId
default value is undefinedtransactionSendTimeout
, throw an Error.clearSubscriptions
Instead of returning true
, clearSubscriptions
now returns array of subscription's idsgivenProvider
default value is undefinedcurrentProvider
default value is undefinedChangelog
[1.3.6]
underscore
package from 1.9.1
to 1.12.1
(#4051)@ensdomains/ens
package from ^0.4.5
to ^0.6.0
(#4059)ethers
package from ^5.0.18
to ^5.1.4
(#4059)