Added
web3
registeredSubscriptions
was added by default in web3 constructor (#5792)- Add named exports for all objects which are the default-exported-object in their packages (#5771)
- Export all packages' objects organized by namespaces (#5771)
- Add Additional flat exports for all types and constants from
web3-types
,web3-errors
andweb3
. (#5771) - Fix few issues with
new Web3().eth.contract
(#5824)
web3-core
- Added rpc exception codes following eip-1474 as an experimental feature (if
useRpcCallSpecification
atenableExperimentalFeatures
istrue
) (#5525) - Added support of
safe
andfinalized
block tags (#5823)
web3-errors
- Added error class
InvalidMethodParamsError
and error codeERR_INVALID_METHOD_PARAMS = 207
(#5824) request
property toResponseError
(#5854)data
property toTransactionRevertInstructionError
(#5854)TransactionRevertWithCustomError
was added to handle custom solidity errors (#5854)
web3-eth
- Added
createAccessList
functionality ( #5780 ) - Added support of
safe
andfinalized
block tags (#5823) contractAbi
option toSendTransactionOptions
andSendSignedTransactionOptions
to added the ability to parse custom solidity errors (#5854)
web3-eth-abi
decodeErrorData
fromweb3-eth-contract
is now exported from this package and was renamed todecodeContractErrorData
(#5844)
web3-eth-contract
- Added functionality of
createAccessList
for contracts ( #5780 ) - An instance of
Contract
willsubscribeToContextEvents
upon instantiation ifsyncWithContext
is set totrue
and the constructor is passed an instance ofWeb3Context
(#5833) - Added support of
safe
andfinalized
block tags (#5823)
web3-providers-http
- Added named export for
HttpProvider
(#5771)
web3-providers-ipc
- Added named export for
IpcProvider
(#5771) - Pass
_socketOptions
fromIpcProvider
constructor to the underlyingSocket
(#5891) - The getter of
SocketConnection
inIpcProvider
(inherited fromSocketProvider
) returnsnet.Socket
(#5891)
web3-providers-ws
- Added named export for
WebSocketProvider
(#5771) - The getter of
SocketConnection
inWebSocketProvider
(inherited fromSocketProvider
) returns isomorphicWebSocket
(#5891)
web3-rpc-methods
- Added
createAccessList
functionality ( #5780 ) - Added support of
safe
andfinalized
block tags (#5823)
web3-types
- Added types from
web3-eth-abi
andTypedArray
from (#5771) - Added
TypedArray
fromweb3-utils
andweb3-validator
(it was defined twice) (#5771) - Added
safe
andfinalized
block tags inBlockTags
andBlockTag
types (#5823)
web3-utils
- Added support of
safe
andfinalized
block tags (#5823)
web3-validator
- Added support of
safe
andfinalized
block tags inisBlockTag
method (#5823)
Changed
web3
require('web3')
will now return all web3 exported-objects organized in namespaces . (#5771)
web3-errors
- The abstract class
Web3Error
is renamed toBaseWeb3Error
(#5771) - Renamed TransactionRevertError to TransactionRevertInstructionError to remain consistent with 1.x
- Using
MaxAttemptsReachedOnReconnectingError
with the same message for 1.x but also adding themaxAttempts
(#5894)
web3-eth
- Update imports statements for objects that was moved between web3 packages (#5771)
sendTransaction
andsendSignedTransaction
now errors with (anderror
event emits) the following possible errors:TransactionRevertedWithoutReasonError
,TransactionRevertInstructionError
,TransactionRevertWithCustomError
,InvalidResponseError
, orContractExecutionError
(#5854)
web3-eth-accounts
- Updated dependencies (#5912)
web3-eth-contract
- Update imports statements for objects that was moved between web3 packages (#5771)
web3-eth-ens
- Updated dependencies (#5912)
web3-eth-iban
- Updated dependencies (#5912)
web3-eth-personal
- Updated dependencies (#5912)
web3-net
- Updated dependencies (#5912)
web3-utils
compareBlockNumbers
function now only supports comparison of both blocktags params ( exceptearliest
vs number) or both block number params (#5842)SocketProvider
abstract class now resolves JSON RPC response errors instead of rejecting them (#5844)- Exposes the getter of
SocketConnection
inSocketProvider
(#5891)
Removed
web3
- Private static
_contracts:Contract[]
and staticsetProvider
function was removed (#5792)
web3-eth
getRevertReason
is no longer exported (#5844)
web3-eth-abi
- Moved all types and interfaces to
web3-types
(#5771)
web3-eth-contract
decodeErrorData
is no longer exported (method was moved toweb3-eth-abi
and renameddecodeContractErrorData
) (#5844)
web3-utils
- Moved
TypedArray
toweb3-types
(was also duplicated atweb3-validator
) (#5771) - Removed support of
genesis
tag incompareBlockNumbers
function (#5823)
web3-validator
- Moved
TypedArray
toweb3-types
(was also duplicated atweb3-utils
) (#5771)