chore(deps): update dependency web3 to v4 #678
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.10.0->4.16.0Release Notes
ChainSafe/web3.js (web3)
v4.16.0Compare Source
Fixed
web3
web3-utils
fromWeireturn "0" when input is0(#7387)Removed
web3-eth-accounts
Added
web3-types
web3-eth-accounts
web3
web3-core
web3-account-abstraction
web3-errors
web3-eth
web3-eth-contract
web3-rpc-providers
web3-utils
web3-eth-abi
v4.15.0Compare Source
Added
web3-eth
createNewPendingTransactionFilter,createNewFilter,createNewBlockFilter,uninstallFilter,getFilterChangesandgetFilterLogsare exported fromWeb3Ethandfiltering_rpc_method_wrappers(#7353)web3-eth-abi
decodeFunctionCallanddecodeFunctionReturn. (#7345)web3-eth-accounts
hashMessagenow has a new optional paramskipPrefixwith a default value offalse. A new functionsignRawwas added to sign a message without prefix. (#7346)web3-rpc-providers
web3-types
FilterParamstype added (#7353)Fixed
web3-eth-contracts
v4.14.0Compare Source
Added
web3-core
ignoreGasPricingtoWeb3ConfigOptions. IfignoreGasPricingis true, gasPrice will not be estimated (#7320)web3-eth
syncingsubscription now supports Besu and Nethermind payload formatpopulateGasPricefunction now checksWeb3Context.config.ignoreGasPricing. IfignoreGasPricingis true, gasPrice will not be estimated (#7320)Changed
web3
providersnamespace. (#7270)web3-eth
getEthereumjsTxDataFromto return additional fields that may be passed if using acustomTransactionSchema.web3-types
baseFeePerGasatweb3.eth.getFeeHistoryto be a number. (#7291)web3-eth
Fixed
web3-eth-abi
decodeLog,decodeParametersWith,decodeParametersanddecodeParametersnow accepts first immutable param as well (#7288)web3-utils
padRightvalidation failure on largeuint(#7265)v4.13.0Compare Source
Added
web3-core
customTransactionSchema) toWeb3ConfigOptions(#7227)web3-eth
{transactionSchema?: ValidationSchemaInput}that exists informatTransactiontovalidateTransactionForSigningweb3-types
Changed
web3-eth
web3Context.config.customTransactionSchematoformatTransactionweb3-eth-personal
web3Context.config.customTransactionSchematoformatTransactionweb3
Web3.providersnamespace exportstype EIP6963ProviderResponse = Map<string, EIP6963ProviderDetail>. Return type for the staticWeb3.requestEIP6963Providersfunction is nowPromise<EIP6963ProviderResponse>. (#7239)Web3.onNewProviderDiscoveredfunction expects a parameter of typeEIP6963ProvidersMapUpdateEventas opposed toEIP6963AnnounceProviderEvent. (#7242)v4.12.1Compare Source
Fixed
web3-eth-accounts
TransactionFactory.registerTransactionTypeif there is a version mistatch betweenweb3-ethandweb3-eth-accountsand fix nextjs problem. (#7216)v4.12.0Compare Source
Fixed
web3-core
setConfig()fix forsetMaxListenerWarningThresholdfix (#5079)web3-eth-accounts
TransactionFactory.registerTransactionTypenot working, if there is a version mistatch betweenweb3-ethandweb3-eth-accountsby savingextraTxTypesatglobals. (#7197)Added
web3-eth-accounts
signMessageWithPrivateKey(#7174)web3-eth-contract
populateTransactionto thecontract.deploy(...)properties. (#7197)web3-providers-http
statusCodeof response in ResponseError,statusCodeis optional property in ResponseError.web3-rpc-providers
HttpProviderOptions | SocketOptionsinWeb3ExternalProviderandQuickNodeProviderfor provider configsweb3-errors
statusCodeproperty of response in ResponseError.Changed
web3-eth-contract
contract.deploy(...)are structured with a newly created class namedDeployerMethodClass. (#7197)abiparameter, atdataInputEncodeMethodHelperandgetSendTxParams. (#7197)v4.11.1Compare Source
Fixed
web3-errors
Eip838ExecutionErrorconstructor (#6905)web3-eth
getTransactionReceiptto not be casted asTransactionReceiptto give proper return type (#7159)web3
v4.11.0Compare Source
Fixed
web3-eth-abi
web3-utils
_sendPendingRequestswill catch unhandled errors from_sendToSocket(#6968)web3-eth
Changed
web3-eth-accounts
web3-providers-ws
web3-plugin-example
web3-rpc-providers
Promise<ResultType>toPromise<JsonRpcResponseWithResult<ResultType>>(#7102)Added
web3-eth-contract
populateTransactionwas added to contract methods (#7124)setTransactionMiddlewareandgetTransactionMiddlewarefor automatically passing tosentTransactionfordeployandsendfunctions (#7138)web3-rpc-providers
web3
web3.eth.Contractwill get transaction middleware and use it, ifweb3.ethhas transaction middleware. (#7138)v4.10.0Compare Source
Added
web3
web3-core
web3-eth
sendTransactioninrpc_method_wrappersaccepts optional param ofTransactionMiddleware(#7088)setTransactionMiddlewareandgetTransactionMiddlewarefor automatically passing tosentTransaction(#7088)web3-eth-ens
getTextnow supports first param AddressgetNamehas optional second param checkInterfaceSupportweb3-types
resultas optionalneveranderroras optionalnever in typeJsonRpcNotification` (#7091)JsonRpcNotficationas a union type inJsonRpcResponse(#7091)web3-rpc-providers
Fixed
web3-eth-ens
getNamereverse resolutionFixed
web3-eth
Added
web3
web3.eth.Contractwill get transaction middleware and use it, ifweb3.ethhas transaction middleware. (#7138)web3-eth-contract
populateTransactionwas added to contract methods (#7124)setTransactionMiddlewareandgetTransactionMiddlewarefor automatically passing tosentTransactionfordeployandsendfunctions (#7138)v4.9.0Compare Source
Added
web3
Web3EthInterface.accountsto includesprivateKeyToAccount,privateKeyToAddress,andprivateKeyToPublicKey(#6762)web3-core
defaultReturnFormatwas added to the configuration options. (#6947)web3-errors
InvalidIntegerErrorerror for fromWei and toWei (#7052)web3-eth
defaultReturnFormatwas added to all methods that haveReturnTypeparam. (#6947)getTransactionFromOrToAttr,waitForTransactionReceipt,trySendTransaction,SendTxHelperwas exported (#7000)web3-eth-contract
defaultReturnFormatwas added to all methods that haveReturnTypeparam. (#6947)web3-eth-ens
defaultReturnFormatwas added to all methods that haveReturnTypeparam. (#6947)web3-net
defaultReturnFormatwas added to all methods that haveReturnTypeparam. (#6947)web3-types
signatureto typeAbiFunctionFragment(#6922)Withdrawals,blockandBlockHeaderOutputto include properties of eip 4844, 4895, 4788 (#6933)web3-utils
toWeiadd warning when using large numbers or large decimals that may cause precision loss (#6908)toWeiandfromWeinow supports integers as a unit. (#7053)Fixed
web3-eth
checkRevertBeforeSendingif there is no data set in transaction, set gas to be21000(#7043)web3-utils
toWeisupport numbers in scientific notation (#6908)toWeiandfromWeitrims according to ether unit successfuly (#7044)web3-validator
abi.nameis not available, for example, in the case of public mappings. (#6981)browserentry point that was pointing to a non-existing bundle file was removed frompackage.json(#7015)web3-core
Changed
web3-core
RequestManagerMiddlewarewas changed (#7003)web3-eth
customTransactionReceiptSchemainto methodsemitConfirmation,waitForTransactionReceipt,watchTransactionByPolling,watchTransactionBySubscription,watchTransactionForConfirmations(#7000)baseFeePerGas===0x0fillmaxPriorityFeePerGasandmaxFeePerGasbygetGasPricemethod (#7050)web3-eth-abi
web3-rpc-methods
estimateGasmethod to add possibility pass Transaction type (#7000)v4.8.0Compare Source
Changed
web3-eth-abi
web3-eth-accounts
Fixed
web3-eth-contract
web3-utils
Added
web3-eth-contract
web3-eth
getBlocknow includes properties of eip 4844, 4895, 4788 when returning block (#6933)withdrawalsSchema,blockSchemaandblockHeaderSchemaschemas to include properties of eip 4844, 4895, 4788 (#6933)web3-types
signatureto typeAbiFunctionFragment(#6922)Withdrawals,blockandBlockHeaderOutputto include properties of eip 4844, 4895, 4788 (#6933)v4.7.0Compare Source
added
web3-eth-contract
ContractDeploySend,ContractMethodSend,Web3PromiEventwas exported (#6883)web3-eth-ens
fixed
web3-validator
web3-utils
toNumber(...)function (#6880)v4.6.0Compare Source
Added
web3
requestEIP6963Providersfor multi provider discoveryweb3-eth
eth.getMaxPriorityFeePerGasmethod (#6748)web3-eth-ens
setAddressin ENS and Resolver classes (#5956)web3-rpc-methods
getMaxPriorityFeePerGasmethod (#6748)web3-types
FeeDatato be filled byawait web3.eth.calculateFeeData()to be used with EIP-1559 transactions (#6795)Fixed
web3-utils
v4.5.0Compare Source
Added
web3-utils
AbiItemfrom 1.x to v4 for compatabiltiy (#6678)web3-types
AbiItemfrom 1.x to v4 for compatabiltiy (#6678)Changed
web3
v4.4.0Compare Source
Added
web3-eth
TransactionPollingTimeoutErrorwas added to send transaction events (#6623)Changed
web3-eth-abi
AbiErrorinstead ofErrorfor errors at web3-eth-abi (#6641).web3-eth-contract
deployfunction to accept parameters, even when no ABI was provided to theContract(#6635)web3
Fixed
web3-eth-abi
web3-eth-accounts
commondid not have acopy()and thechainIdwas not provided (#6663)web3-eth-contract
contract.getPastEventsorcontract.events.allEvents(), if there is no matching events. (#6647)web3-utils
web3-validator
v4.3.0Compare Source
Changed
web3-core
contractDataInputFillhas been defaulted todata, instead ofinput. (#6622)web3-eth-contracts
datainstead ofinputwithin method calls (#6622)Added
web3-utils
SocketProvidernow contains public functiongetPendingRequestQueueSize,getSentRequestsQueueSizeandclearQueues(#6479)safeDisconnectas aSocketProvidermethod to disconnect only when request queue size and send request queue size is 0 (#6479)isContractInitOptionsmethod (#6555)web3
Fixed
web3-rpc-methods
web3-utils
v4.2.2Compare Source
Added
web3-core
isMetaMaskProviderfunction to check if provider is metamask (#6534)web3-types
MetaMaskProvideradded and is part ofSupportedProviders(#6534)gasPricewas added toTransaction1559UnsignedAPItype. (#6539)Changed
web3
Fixed
web3-errors
transactionTimeoutHint(#6559)web3-eth-contract
datafor transactions in contract for metamask provider instead ofinput(#6534)v4.2.1Compare Source
Fixed
web3-eth-abi
ERR_UNSUPPORTED_DIR_IMPORTin ABI (#6535)Changed
web3-eth-contract
web3-eth
web3-eth-ens
web3-eth-personal
v4.2.0Compare Source
Added
web3
web3-eth
ALL_EVENTSandALL_EVENTS_ABIconstants,SendTransactionEventsBasetype,decodeEventABImethod (#6410)web3-eth-accounts
privateKeyToPublicKeyBaseTransactionfrom the package (#6493)txUtilsfrom the package (#6493)web3-types
EventLogwas added. (#6410)web3-utils
EventEmitterhas been implemented and exported. (#6398)Fixed
web3-core
web3-errors
web3-eth
checkRevertBeforeSendinginsendSignedTransactiondefaultTransactionBuilderfor value issue (#6509)web3-eth-abi
web3-eth-accounts
recoverfunction,vwill be normalized to value 0,1 (#6344)web3-providers-http
web3-providers-ipc
web3-providers-ws
web3-utils
web3-validator
convertToZodmethod (#6434)Changed
web3
web3-core
EventEmitterfromweb3-utilsthat works in node envrioment as well as in the browser. (#6398)web3-eth
web3-eth-contract
eventsproperty was added to thereceiptobject (#6410)web3-eth-ens
web3-eth-iban
web3-eth-personal
web3-net
web3-providers-http
web3-rpc-methods
v4.1.2Compare Source
Fixed
web3
web3-eth-accounts
randsreturned bysignto does not always consist of 64 characters" (#6411)web3-eth-contract
web3-utils
soliditySha3()with BigInt supportAdded
web3-core
Web3ConfigpropertycontractDataInputFillallowing users to have the choice using propertydata,inputorbothfor contract methods to be sent to the RPC provider when creating contracts. (#6377) (#6400)web3-eth
Web3ConfigpropertycontractDataInputFillallowing users to have the choice using propertydata,inputorbothfor contract methods to be sent to the RPC provider when creating contracts. (#6377) (#6400)ALL_EVENTSandALL_EVENTS_ABIconstants,SendTransactionEventsBasetype,decodeEventABImethod (#6410)web3-eth-contract
dataInputFillas a ContractInitOption, allowing users to have the choice using propertydata,inputorbothfor contract methods to be sent to the RPC provider. (#6355)Web3ConfigpropertycontractDataInputFillallowing users to have the choice using propertydata,inputorbothfor contract methods to be sent to the RPC provider when creating contracts. (#6377)web3-types
asEIP1193ProvidertoWeb3BaseProviderso every inherited class can have the returned value ofrequestmethod, fully compatible with EIP-1193. (#6407)Changed
web3-core
web3-errors
web3-eth-abi
web3-eth-ens
web3-eth-iban
web3-eth-personal
web3-net
web3-providers-http
web3-providers-ipc
web3-providers-ws
web3-rpc-methods
web3-validator
v4.1.1Compare Source
Added
web3
web3-core
web3-eth-contract
Fixed
web3-eth
formatSubscriptionResultin classNewHeadsSubscription(#6368)web3-core
sendmethod on request manager (#6300).web3-errors
web3-eth-contract
contract.events.allEventsweb3-validator
Changed
web3-eth-abi
web3-eth-accounts
web3-eth-ens
web3-eth-iban
web3-eth-personal
web3-net
web3-providers-http
web3-providers-ipc
web3-providers-ws
web3-rpc-methods
web3-types
web3-utils
v4.1.0Compare Source
Added
web3
web3-core
web3-errors
RpcErrorMessagesthat contains mapping for standard RPC Errors and their messages. (#6230)TransactionGasMismatchInnerErrorfor clarity on the error inTransactionGasMismatchError(#6215)MissingGasInnerErrorfor clarity on the error inMissingGasError(#6215)web3-eth
rpc_method_wrapper(signTypedData) for the rpc callseth_signTypedDataandeth_signTypedData_v4(#6286)signTypedDatamethod to theWeb3Ethclass (#6286)web3-eth-abi
getEncodedEip712Datamethod that takes an EIP-712 typed data object and returns the encoded data with the option to also keccak256 hash it (#6286)web3-rpc-methods
signTypedDatamethod toeth_rpc_methodsfor the rpc callseth_signTypedDataandeth_signTypedData_v4(#6286)web3-types
eth_signTypedDataandeth_signTypedData_v4toweb3_eth_execution_api(#6286)Eip712TypeDetailsandEip712TypedDatatoeth_types(#6286)web3-validator
json-schemaas a main json schema type (#6264)Fixed
web3-core
web3-errors
web3-eth
estimateGasunless transaction builderoptions.fillGasis false. (#6249)blockHeaderSchemaproperties causing some properties to not appear in response ofnewHeadssubscription (#6243)blockHeaderSchemaproperties causing some properties to not appear in response ofnewHeadssubscription (#6243)web3-providers-ws
Changed
web3-core
CommonSubscriptionEvents &at every child class ofWeb3Subscription(#6262)_processSubscriptionResultand_processSubscriptionErrorhas been written in the base classWeb3Subscriptionand maidpublic. (#6262)formatSubscriptionResultcould be used to customize data formatting instead of re-implementing_processSubscriptionResult. (#6262)CommonSubscriptionEvents &for the first generic parameter ofWeb3Subscriptionwhen inheriting from it. (#6262)web3-eth
MissingGasErrorerror message changed for clarity (#6215)inputanddataare no longer auto populated for transaction objects if they are not present. Instead, whichever property is provided by the user is formatted and sent to the RPC provider. Transaction objects returned from RPC responses are still formatted to contain bothinputanddataproperties (#6294)web3-eth-accounts
web3-eth-contract
web3-eth-ens
web3-eth-iban
web3-eth-personal
web3-net
web3-providers-http
web3-providers-ipc
web3-types
inputanddataare now optional properties onPopulatedUnsignedBaseTransaction(previouslyinputwas a required property, anddatawas not available) (#6294)web3-utils
web3-validator
is-my-json-validwithzoddependency. Related code was changed (#6264)ValidationErrorandJsonSchemawere changed (#6264)Removed
web3-eth
blockHeaderSchemaproperties causing some properties to not appear in response ofnewHeadssubscription (#6243)RawValidationErrorwas removed (#6264)web3-validator
RawValidationErrorwas removed (#6264)v4.0.3Compare Source
Fixed
web3
web3-rpc-methods
getPastLogsaccept blockHash as a parameter https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getlogs (#6181)web3-types
FilterincludesblockHash(#6206)web3-utils
numberToHex(#6206)Changed
web3-core
web3-errors
web3-eth
web3-eth-abi
web3-eth-accounts
web3-eth-contract
web3-eth-ens
web3-eth-iban
web3-eth-personal
web3-net
web3-providers-http
web3-providers-ipc
web3-providers-ws
web3-validator
v4.0.2Compare Source
Fixed
web3
web3-core
web3-eth-abi
web3-eth-accounts
randsreturned bysignTransactionto does not always consist of 64 characters #6207" (#6216)web3-eth-contract
web3-eth-ens
web3-providers-ws
web3-types
Added
web3
Web3Context,Web3PluginBase,Web3EthPluginBasefrom'web3-core', andWeb3Validatorfrom'web3-validator'(#6165)web3-core
web3-types
SimpleProviderinterface which has onlyrequest(args)method that is compatible with EIP-1193 (#6210)Eip1193EventNametype that contains the possible events names according to EIP-1193 (#6210)Changed
web3-core
web3-errors
web3-eth
web3-eth-iban
web3-eth-personal
web3-net
web3-providers-http
web3-providers-ipc
web3-rpc-methods
web3-types
EIP1193Providerclass has now all the events (foronandremoveListener) according to EIP-1193 (#6210)web3-utils
web3-validator
v4.0.1Compare Source
Fixed
v1.10.4Compare Source
Security
Maintenance Countdown:
Commencing from January 1, 2024, a 90-day countdown has been initiated, signaling the transition of Web3.js version 1.x into an end-of-maintenance phase.
Timeline of Changes:
90-Day Countdown (1/1/24 - 3/31/24): During this period, we strongly encourage users to plan accordingly and initiate the upgrade to Web3.js version 4.x
No New Bug Fixes (4/1/24 onwards):
Starting April 1, 2024, new bug fixes for Web3.js version 1.x will no longer be provided. To benefit from continued support and access to new features, we recommend upgrading to Web3.js version 4.x
End of Security Fixes (7/1/24):
Security fixes for Web3.js version 1.x will be discontinued from July 1, 2024. Upgrading to Web3.js version 4.x is crucial to ensure the security of your applications.
v1.10.3Compare Source
Security
web3-eth-accounts: Bumped@ethereumjsdependencies (#6457)Updated dependencies (#6491)
v1.10.2Compare Source
Fixed
v1.10.1Compare Source
Fixed
ints (#6239)submitWorkparameters, accepts 3 parameters instead of an array (#5200)Changed
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.