Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency web3 to v4 #718

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 7, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
web3 1.10.4 -> 4.9.0 age adoption passing confidence

Release Notes

ChainSafe/web3.js (web3)

v4.9.0

Compare Source

Added
web3
  • Updated type Web3EthInterface.accounts to includes privateKeyToAccount,privateKeyToAddress,and privateKeyToPublicKey (#​6762)
web3-core
  • defaultReturnFormat was added to the configuration options. (#​6947)
web3-errors
  • Added InvalidIntegerError error for fromWei and toWei (#​7052)
web3-eth
  • defaultReturnFormat was added to all methods that have ReturnType param. (#​6947)
  • getTransactionFromOrToAttr, waitForTransactionReceipt, trySendTransaction, SendTxHelper was exported (#​7000)
web3-eth-contract
  • defaultReturnFormat was added to all methods that have ReturnType param. (#​6947)
web3-eth-ens
  • defaultReturnFormat was added to all methods that have ReturnType param. (#​6947)
web3-net
  • defaultReturnFormat was added to all methods that have ReturnType param. (#​6947)
web3-types
  • Added signature to type AbiFunctionFragment (#​6922)
  • update type Withdrawals, block and BlockHeaderOutput to include properties of eip 4844, 4895, 4788 (#​6933)
web3-utils
  • toWei add warning when using large numbers or large decimals that may cause precision loss (#​6908)
  • toWei and fromWei now supports integers as a unit. (#​7053)
Fixed
web3-eth
  • Fixed issue with simple transactions, Within checkRevertBeforeSending if there is no data set in transaction, set gas to be 21000 (#​7043)
web3-utils
  • toWei support numbers in scientific notation (#​6908)
  • toWei and fromWei trims according to ether unit successfuly (#​7044)
web3-validator
  • The JSON schema conversion process now correctly assigns an id when the abi.name is not available, for example, in the case of public mappings. (#​6981)
  • browser entry point that was pointing to an non-existing bundle file was removed from package.json (#​7015)
web3-core
  • Set a try catch block if processesingError fails (#​7022)
Changed
web3-core
  • Interface RequestManagerMiddleware was changed (#​7003)
web3-eth
  • Added parameter customTransactionReceiptSchema into methods emitConfirmation, waitForTransactionReceipt, watchTransactionByPolling, watchTransactionBySubscription, watchTransactionForConfirmations (#​7000)
  • Changed functionality: For networks that returns baseFeePerGas===0x0 fill maxPriorityFeePerGas and maxFeePerGas by getGasPrice method (#​7050)
web3-eth-abi
  • Dependencies updated
web3-rpc-methods
  • Change estimateGas method to add possibility pass Transaction type (#​7000)

v4.8.0

Compare Source

Changed
web3-eth-abi
  • Dependencies updated
web3-eth-accounts
  • Dependencies updated
Fixed
web3-eth-contract
  • Fix an issue with smart contract function overloading (#​6922)
web3-utils
  • fixed toHex incorrectly hexing Uint8Arrays and Buffer (#​6957)
  • fixed isUint8Array not returning true for Buffer (#​6957)
Added
web3-eth-contract
  • Added a console warning in case of an ambiguous call to a solidity method with parameter overloading (#​6942)
  • Added contract.deploy(...).decodeData(...) and contract.decodeMethodData(...) that decode data based on the ABI (#​6950)
web3-eth
  • method getBlock now includes properties of eip 4844, 4895, 4788 when returning block (#​6933)
  • update type withdrawalsSchema, blockSchema and blockHeaderSchema schemas to include properties of eip 4844, 4895, 4788 (#​6933)
web3-types
  • Added signature to type AbiFunctionFragment (#​6922)
  • update type Withdrawals, block and BlockHeaderOutput to include properties of eip 4844, 4895, 4788 (#​6933)

v4.7.0

Compare Source

added
web3-eth-contract
  • Types ContractDeploySend, ContractMethodSend, Web3PromiEvent was exported (#​6883)
web3-eth-ens
  • Added function getText and getName in ENS and resolver classes (#​6914)
fixed
web3-validator
  • Multi-dimensional arrays(with a fix length) are now handled properly when parsing ABIs (#​6798)
web3-utils
  • fixed erroneous parsing of big numbers in the toNumber(...) function (#​6880)

v4.6.0

Compare Source

Added
web3
  • Added EIP-6963 utility function requestEIP6963Providers for multi provider discovery
web3-eth
  • Added eth.getMaxPriorityFeePerGas method (#​6748)
web3-eth-ens
  • Added function setAddress in ENS and Resolver classes (#​5956)
web3-rpc-methods
  • Added getMaxPriorityFeePerGas method (#​6748)
web3-types
  • Type FeeData to be filled by await web3.eth.calculateFeeData() to be used with EIP-1559 transactions (#​6795)
Fixed
web3-utils
  • replaced our eventEmitter to EventEmitter3 to support react native builds (#​6253)

v4.5.0

Compare Source

Added
web3-utils
  • Adds missing exported type AbiItem from 1.x to v4 for compatabiltiy (#​6678)
web3-types
  • Adds missing exported type AbiItem from 1.x to v4 for compatabiltiy (#​6678)
Changed
web3
  • Dependencies updated

v4.4.0

Compare Source

Added
web3-eth
  • Catch TransactionPollingTimeoutError was added to send transaction events (#​6623)
Changed
web3-eth-abi
  • Use AbiError instead of Error for errors at web3-eth-abi (#​6641).
web3-eth-contract
  • Allow the deploy function to accept parameters, even when no ABI was provided to the Contract(#​6635)
web3
  • Dependencies updated
Fixed
web3-eth-abi
  • Fixed an issue with detecting Uint8Array (#​6486)
web3-eth-accounts
  • Send Transaction config used to be ignored if the passed common did not have a copy() and the chainId was not provided (#​6663)
  • Fixed an issue with detecting Uint8Array (#​6486)
web3-eth-contract
  • Fix and error that happen when trying to get past events by calling contract.getPastEvents or contract.events.allEvents(), if there is no matching events. (#​6647)
  • Fixed: The Contract is not using the context wallet passed if context was passed at constructor. (#​6661)
web3-utils
  • Fixed an issue with detecting Uint8Array (#​6486)
web3-validator
  • Fixed an issue with detecting Uint8Array (#​6486)

v4.3.0

Compare Source

Changed
web3-core
  • Web3config contractDataInputFill has been defaulted to data, instead of input. (#​6622)
web3-eth-contracts
  • By default, contracts will fill data instead of input within method calls (#​6622)
Added
web3-utils
  • SocketProvider now contains public function getPendingRequestQueueSize, getSentRequestsQueueSize and clearQueues (#​6479)
  • Added safeDisconnect as a SocketProvider method to disconnect only when request queue size and send request queue size is 0 (#​6479)
  • Add isContractInitOptions method (#​6555)
web3
  • Added methods (privateKeyToAddress, parseAndValidatePrivateKey, and privateKeyToPublicKey) to web3.eth.accounts (#​6620)
Fixed
web3-rpc-methods
web3-utils
  • Fix unnecessary array copy when pack encoding (#​6553)

v4.2.2

Compare Source

Added
web3-core
  • Added isMetaMaskProvider function to check if provider is metamask (#​6534)
web3-types
  • Interface MetaMaskProvider added and is part of SupportedProviders (#​6534)
  • gasPrice was added to Transaction1559UnsignedAPI type. (#​6539)
Changed
web3
  • Dependencies updated
Fixed
web3-errors
  • Fixed grammar and spelling in transactionTimeoutHint (#​6559)
web3-eth-contract
  • Will populate data for transactions in contract for metamask provider instead of input (#​6534)

v4.2.1

Compare Source

Fixed
web3-eth-abi
  • Bug fix of ERR_UNSUPPORTED_DIR_IMPORT in ABI (#​6535)
Changed
web3-eth-contract
  • Dependencies updated
web3-eth
  • Dependencies updated
web3-eth-ens
  • Dependencies updated
web3-eth-personal
  • Dependencies updated

v4.2.0

Compare Source

Added
web3
  • Various web3 sub packages has new functions details are in root changelog
web3-eth
  • Added ALL_EVENTS and ALL_EVENTS_ABI constants, SendTransactionEventsBase type, decodeEventABI method (#​6410)
web3-eth-accounts
  • Added public function privateKeyToPublicKey
  • Added exporting BaseTransaction from the package (#​6493)
  • Added exporting txUtils from the package (#​6493)
web3-types
  • Interface EventLog was added. (#​6410)
web3-utils
  • As a replacment of the node EventEmitter, a custom EventEmitter has been implemented and exported. (#​6398)
Fixed
web3-core
  • Fix the issue: "Uncaught TypeError: Class extends value undefined is not a constructor or null #​6371". (#​6398)
web3-errors
  • Added new SchemaFormatError (#​6434)
web3-eth
  • Ensure provider.supportsSubscriptions exists before watching by subscription (#​6440)
  • Fixed param sent to checkRevertBeforeSending in sendSignedTransaction
  • Fixed defaultTransactionBuilder for value issue (#​6509)
web3-eth-abi
  • Fix issue with default config with babel (and React): "TypeError: Cannot convert a BigInt value to a number #​6187" (#​6506)
web3-eth-accounts
  • Fixed recover function, v will be normalized to value 0,1 (#​6344)
web3-providers-http
web3-providers-ipc
  • Fixed bug in chunks processing logic (#​6496)
web3-providers-ws
  • Fixed bug in chunks processing logic (#​6496)
web3-utils
  • Fix issue with default config with babel (and React): "TypeError: Cannot convert a BigInt value to a number #​6187" (#​6506)
  • Fixed bug in chunks processing logic (#​6496)
web3-validator
  • Multi-dimensional arrays are now handled properly when parsing ABIs (#​6435)
  • Fix issue with default config with babel (and React): "TypeError: Cannot convert a BigInt value to a number #​6187" (#​6506)
  • Validator will now properly handle all valid numeric type sizes: intN / uintN where 8 <= N <= 256 and N % 8 == 0 (#​6434)
  • Will now throw SchemaFormatError when unsupported format is passed to convertToZod method (#​6434)
Changed
web3
  • Dependencies updated
web3-core
  • defaultTransactionType is now type 0x2 instead of 0x0 (#​6282)
  • Allows formatter to parse large base fee (#​6456)
  • The package now uses EventEmitter from web3-utils that works in node envrioment as well as in the browser. (#​6398)
web3-eth
  • Transactions will now default to type 2 transactions instead of type 0, similar to 1.x version. (#​6282)
web3-eth-contract
  • The events property was added to the receipt object (#​6410)
web3-eth-ens
  • Dependencies updated
web3-eth-iban
  • Dependencies updated
web3-eth-personal
  • Dependencies updated
web3-net
  • Dependencies updated
web3-providers-http
  • Bump cross-fetch to version 4 (#​6463).
web3-rpc-methods
  • Dependencies updated

v4.1.2

Compare Source

Fixed
web3
  • Fix of incorrect provider warning behavior
web3-eth-accounts
  • Fixed "The r and s returned by sign to does not always consist of 64 characters" (#​6411)
web3-eth-contract
web3-utils
  • soliditySha3() with BigInt support
Added
web3-core
  • Added to Web3Config property contractDataInputFill allowing users to have the choice using property data, input or both for contract methods to be sent to the RPC provider when creating contracts. (#​6377) (#​6400)
web3-eth
  • Added to Web3Config property contractDataInputFill allowing users to have the choice using property data, input or both for contract methods to be sent to the RPC provider when creating contracts. (#​6377) (#​6400)
  • Added ALL_EVENTS and ALL_EVENTS_ABI constants, SendTransactionEventsBase type, decodeEventABI method (#​6410)
web3-eth-contract
  • Added dataInputFill as a ContractInitOption, allowing users to have the choice using property data, input or both for contract methods to be sent to the RPC provider. (#​6355)
  • Added to Web3Config property contractDataInputFill allowing users to have the choice using property data, input or both for contract methods to be sent to the RPC provider when creating contracts. (#​6377)
web3-types
  • add asEIP1193Provider to Web3BaseProvider so every inherited class can have the returned value of request method, fully compatible with EIP-1193. (#​6407)
Changed
web3-core
  • Dependencies updated
web3-errors
  • Dependencies updated
web3-eth-abi
  • Dependencies updated
web3-eth-ens
  • Dependencies updated
web3-eth-iban
  • Dependencies updated
web3-eth-personal
  • Dependencies updated
web3-net
  • Dependencies updated
web3-providers-http
  • Dependencies updated
web3-providers-ipc
  • Dependencies updated
web3-providers-ws
  • Dependencies updated
web3-rpc-methods
  • Dependencies updated
web3-validator
  • Dependencies updated

v4.1.1

Compare Source

Added
web3
  • To fix issue #​6190, added the functionality to introduce different timeout value for Web3. (#​6336)
web3-core
  • To fix issue #​6190, added the functionality to introduce different timeout value for Web3. (#​6336)
web3-eth-contract
  • In case of error events there will be inner error also available for details
Fixed
web3-eth
  • Added return type for formatSubscriptionResult in class NewHeadsSubscription (#​6368)
web3-core
  • Fixed rpc errors not being sent as an inner error when using the send method on request manager (#​6300).
web3-errors
web3-eth-contract
  • Fixed bug in contract.events.allEvents
web3-validator
Changed
web3-eth-abi
  • Dependencies updated
web3-eth-accounts
  • Dependencies updated
web3-eth-ens
  • Dependencies updated
web3-eth-iban
  • Dependencies updated
web3-eth-personal
  • Dependencies updated
web3-net
  • Dependencies updated
web3-providers-http
  • Dependencies updated
web3-providers-ipc
  • Dependencies updated
web3-providers-ws
  • Dependencies updated
web3-rpc-methods
  • Dependencies updated
web3-types
  • Dependencies updated
web3-utils
  • Dependencies updated

v4.1.0

Compare Source

Added
web3
  • Added minimum support of web3.extend function
web3-core
  • Added minimum support of web3.extend function
web3-errors
  • RpcErrorMessages that contains mapping for standard RPC Errors and their messages. (#​6230)
  • created TransactionGasMismatchInnerError for clarity on the error in TransactionGasMismatchError (#​6215)
  • created MissingGasInnerError for clarity on the error in MissingGasError (#​6215)
web3-eth
  • A rpc_method_wrapper (signTypedData) for the rpc calls eth_signTypedData and eth_signTypedData_v4 (#​6286)
  • A signTypedData method to the Web3Eth class (#​6286)
web3-eth-abi
  • A getEncodedEip712Data method 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
  • A signTypedData method to eth_rpc_methods for the rpc calls eth_signTypedData and eth_signTypedData_v4 (#​6286)
web3-types
  • eth_signTypedData and eth_signTypedData_v4 to web3_eth_execution_api (#​6286)
  • Eip712TypeDetails and Eip712TypedData to eth_types (#​6286)
web3-validator
  • Added json-schema as a main json schema type (#​6264)
Fixed
web3-core
  • Fixed the issue: "Version 4.x does not fire connected event for subscriptions. #​6252". (#​6262)
web3-errors
  • Fixed: "'disconnect' in Eip1193 provider must emit ProviderRpcError #​6003".(#​6230)
web3-eth
  • sendTransaction will have gas filled by default using method estimateGas unless transaction builder options.fillGas is false. (#​6249)
  • Missing blockHeaderSchema properties causing some properties to not appear in response of newHeads subscription (#​6243)
  • Missing blockHeaderSchema properties causing some properties to not appear in response of newHeads subscription (#​6243)
web3-providers-ws
Changed
web3-core
  • No need to pass CommonSubscriptionEvents & at every child class of Web3Subscription (#​6262)
  • Implementation of _processSubscriptionResult and _processSubscriptionError has been written in the base class Web3Subscription and maid public. (#​6262)
  • A new optional protected method formatSubscriptionResult could be used to customize data formatting instead of re-implementing _processSubscriptionResult. (#​6262)
  • No more needed to pass CommonSubscriptionEvents & for the first generic parameter of Web3Subscription when inheriting from it. (#​6262)
web3-eth
  • MissingGasError error message changed for clarity (#​6215)
  • input and data are 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 both input and data properties (#​6294)
web3-eth-accounts
  • Dependencies updated
web3-eth-contract
  • Dependencies updated
web3-eth-ens
  • Dependencies updated
web3-eth-iban
  • Dependencies updated
web3-eth-personal
  • Dependencies updated
web3-net
  • Dependencies updated
web3-providers-http
  • Dependencies updated
web3-providers-ipc
  • Dependencies updated
web3-types
  • input and data are now optional properties on PopulatedUnsignedBaseTransaction (previously input was a required property, and data was not available) (#​6294)
web3-utils
  • Dependencies updated
web3-validator
  • Replace is-my-json-valid with zod dependency. Related code was changed (#​6264)
  • Types ValidationError and JsonSchema were changed (#​6264)
Removed
web3-eth
  • Missing blockHeaderSchema properties causing some properties to not appear in response of newHeads subscription (#​6243)
  • Type RawValidationError was removed (#​6264)
web3-validator
  • Type RawValidationError was removed (#​6264)

v4.0.3

Compare Source

Fixed
web3
web3-rpc-methods
web3-types
  • type Filter includes blockHash (#​6206)
web3-utils
  • BigInts pass validation within the method numberToHex (#​6206)
Changed
web3-core
  • Dependencies updated
web3-errors
  • Dependencies updated
web3-eth
  • Dependencies updated
web3-eth-abi
  • Dependencies updated
web3-eth-accounts
  • Dependencies updated
web3-eth-contract
  • Dependencies updated
web3-eth-ens
  • Dependencies updated
web3-eth-iban
  • Dependencies updated
web3-eth-personal
  • Dependencies updated
web3-net
  • Dependencies updated
web3-providers-http
  • Dependencies updated
web3-providers-ipc
  • Dependencies updated
web3-providers-ws
  • Dependencies updated
web3-validator
  • Dependencies updated

v4.0.2

Compare Source

Fixed
web3
web3-core
  • Fixed Batch requests erroring out on one request (#​6164)
  • Fixed the issue: Subscribing to multiple blockchain events causes every listener to be fired for every registered event (#​6210)
  • Fixed the issue: Unsubscribe at a Web3Subscription class will still have the id of the subscription at the Web3SubscriptionManager (#​6210)
  • Fixed the issue: A call to the provider is made for every subscription object (#​6210)
web3-eth-abi
  • Support for "decoding" indexed string event arguments (returns the keccak256 hash of the string value instead of the actual string value) (#​6167)
web3-eth-accounts
  • Fixed "The r and s returned by signTransaction to does not always consist of 64 characters #​6207" (#​6216)
web3-eth-contract
  • Event filtering using non-indexed and indexed string event arguments (#​6167)
web3-eth-ens
web3-providers-ws
web3-types
Added
web3
  • Exported Web3Context, Web3PluginBase, Web3EthPluginBase from 'web3-core', and Web3Validator from 'web3-validator' (#​6165)
web3-core
  • Web3Subscription constructor accept a Subscription Manager (as an alternative to accepting Request Manager that is now marked marked as deprecated) (#​6210)
web3-types
  • Added the SimpleProvider interface which has only request(args) method that is compatible with EIP-1193 (#​6210)
  • Added the Eip1193EventName type that contains the possible events names according to EIP-1193 (#​6210)
Changed
web3-core
  • Web3Subscription constructor overloading that accept a Request Manager is marked as deprecated (#​6210)
web3-errors
  • Dependencies updated
web3-eth
  • Dependencies updated
web3-eth-iban
  • Dependencies updated
web3-eth-personal
  • Dependencies updated
web3-net
  • Dependencies updated
web3-providers-http
  • Dependencies updated
web3-providers-ipc
  • Dependencies updated
web3-rpc-methods
  • Dependencies updated
web3-types
  • The EIP1193Provider class has now all the events (for on and removeListener) according to EIP-1193 (#​6210)
web3-utils
  • Dependencies updated
web3-validator
  • Dependencies updated

v4.0.1

Compare Source

Fixed
  • Dependency tree cannot be resolved by Yarn due to old deprecated packages picked by yarn - fixed (#​5382)

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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/web3-4.x branch 3 times, most recently from d83d141 to bff5dcf Compare June 9, 2023 14:13
@renovate renovate bot force-pushed the renovate/web3-4.x branch 2 times, most recently from bf79cf4 to f2974d7 Compare June 23, 2023 15:08
@renovate renovate bot force-pushed the renovate/web3-4.x branch 5 times, most recently from c7acae0 to c74e3ed Compare July 1, 2023 12:29
@renovate renovate bot force-pushed the renovate/web3-4.x branch 2 times, most recently from 53e896a to 75bd607 Compare July 6, 2023 17:58
@francelwebdev
Copy link

HI,
I am trying to use the recover() function to recover the address of a wallet without success. On the frontend side, the user signs a message and the frontend only returns the signature. My question is how to retrieve the address of the wallet that signed the message with the signature only? THANKS

@francelwebdev
Copy link

my backend express sends a message to the frontend, and the frontend needs to sign the message and return the signature string and on the backend i need to retrieve the wallet address by the signature.

@renovate renovate bot force-pushed the renovate/web3-4.x branch 3 times, most recently from ba726f1 to 2cc035f Compare July 12, 2023 23:09
@renovate renovate bot force-pushed the renovate/web3-4.x branch 2 times, most recently from 4baaa43 to e4a450c Compare August 4, 2023 21:54
@renovate renovate bot force-pushed the renovate/web3-4.x branch 4 times, most recently from ac04405 to 830091b Compare August 14, 2023 17:23
@renovate renovate bot force-pushed the renovate/web3-4.x branch 3 times, most recently from 14c160d to cf3ccc9 Compare August 21, 2023 16:34
@renovate renovate bot force-pushed the renovate/web3-4.x branch 3 times, most recently from 0b977d0 to 376b19d Compare August 24, 2023 22:47
@renovate renovate bot force-pushed the renovate/web3-4.x branch 3 times, most recently from 91b004b to 28ccfb2 Compare March 8, 2024 16:08
@renovate renovate bot force-pushed the renovate/web3-4.x branch 4 times, most recently from ce00f2b to 1dd574f Compare March 20, 2024 23:12
@renovate renovate bot force-pushed the renovate/web3-4.x branch 4 times, most recently from 52ae108 to 3fc68de Compare March 29, 2024 18:35
@renovate renovate bot changed the title Update dependency web3 to v4 chore(deps): update dependency web3 to v4 Mar 29, 2024
@renovate renovate bot force-pushed the renovate/web3-4.x branch 3 times, most recently from e60444a to f8d88d4 Compare April 4, 2024 23:19
@renovate renovate bot force-pushed the renovate/web3-4.x branch 4 times, most recently from 82af9cf to ab5c4fb Compare April 11, 2024 17:42
@renovate renovate bot force-pushed the renovate/web3-4.x branch 2 times, most recently from e4d2dd4 to d69bbd6 Compare May 5, 2024 07:59
@renovate renovate bot force-pushed the renovate/web3-4.x branch 4 times, most recently from c1a4237 to 5cfda7c Compare May 13, 2024 22:44
@renovate renovate bot force-pushed the renovate/web3-4.x branch 2 times, most recently from c9ff142 to 87dea59 Compare May 24, 2024 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant