-
-
Notifications
You must be signed in to change notification settings - Fork 158
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
Conversation
d83d141
to
bff5dcf
Compare
bf79cf4
to
f2974d7
Compare
c7acae0
to
c74e3ed
Compare
53e896a
to
75bd607
Compare
HI, |
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. |
ba726f1
to
2cc035f
Compare
2cc035f
to
598965a
Compare
4baaa43
to
e4a450c
Compare
ac04405
to
830091b
Compare
14c160d
to
cf3ccc9
Compare
0b977d0
to
376b19d
Compare
♾️ |
3c593b6
to
ad32cb6
Compare
ad32cb6
to
74210ab
Compare
612c1a9
to
c46157b
Compare
0578d61
to
b661bdb
Compare
07041a8
to
37a0727
Compare
37a0727
to
79e649d
Compare
c5cfc9f
to
0580412
Compare
6ff3952
to
adc5849
Compare
adc5849
to
0276db9
Compare
Renovate Ignore NotificationBecause you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR. |
This PR contains the following updates:
1.10.4
->4.14.0
Release Notes
ChainSafe/web3.js (web3)
v4.14.0
Compare Source
Added
web3-core
ignoreGasPricing
toWeb3ConfigOptions
. IfignoreGasPricing
is true, gasPrice will not be estimated (#7320)web3-eth
syncing
subscription now supports Besu and Nethermind payload formatpopulateGasPrice
function now checksWeb3Context.config.ignoreGasPricing
. IfignoreGasPricing
is true, gasPrice will not be estimated (#7320)Changed
web3
providers
namespace. (#7270)web3-eth
getEthereumjsTxDataFrom
to return additional fields that may be passed if using acustomTransactionSchema
.web3-types
baseFeePerGas
atweb3.eth.getFeeHistory
to be a number. (#7291)Fixed
web3-eth-abi
decodeLog
,decodeParametersWith
,decodeParameters
anddecodeParameters
now accepts first immutable param as well (#7288)web3-utils
padRight
validation failure on largeuint
(#7265)v4.13.0
Compare Source
Added
web3-core
customTransactionSchema
) toWeb3ConfigOptions
(#7227)web3-eth
{transactionSchema?: ValidationSchemaInput}
that exists informatTransaction
tovalidateTransactionForSigning
web3-types
Changed
web3-eth
web3Context.config.customTransactionSchema
toformatTransaction
web3-eth-personal
web3Context.config.customTransactionSchema
toformatTransaction
web3
Web3.providers
namespace exportstype EIP6963ProviderResponse = Map<string, EIP6963ProviderDetail>
. Return type for the staticWeb3.requestEIP6963Providers
function is nowPromise<EIP6963ProviderResponse>
. (#7239)Web3.onNewProviderDiscovered
function expects a parameter of typeEIP6963ProvidersMapUpdateEvent
as opposed toEIP6963AnnounceProviderEvent
. (#7242)v4.12.1
Compare Source
Fixed
web3-eth-accounts
TransactionFactory.registerTransactionType
if there is a version mistatch betweenweb3-eth
andweb3-eth-accounts
and fix nextjs problem. (#7216)v4.12.0
Compare Source
Fixed
web3-core
setConfig()
fix forsetMaxListenerWarningThreshold
fix (#5079)web3-eth-accounts
TransactionFactory.registerTransactionType
not working, if there is a version mistatch betweenweb3-eth
andweb3-eth-accounts
by savingextraTxTypes
atglobals
. (#7197)Added
web3-eth-accounts
signMessageWithPrivateKey
(#7174)web3-eth-contract
populateTransaction
to thecontract.deploy(...)
properties. (#7197)web3-providers-http
statusCode
of response in ResponseError,statusCode
is optional property in ResponseError.web3-rpc-providers
HttpProviderOptions | SocketOptions
inWeb3ExternalProvider
andQuickNodeProvider
for provider configsweb3-errors
statusCode
property of response in ResponseError.Changed
web3-eth-contract
contract.deploy(...)
are structured with a newly created class namedDeployerMethodClass
. (#7197)abi
parameter, atdataInputEncodeMethodHelper
andgetSendTxParams
. (#7197)v4.11.1
Compare Source
Fixed
web3-errors
Eip838ExecutionError
constructor (#6905)web3-eth
getTransactionReceipt
to not be casted asTransactionReceipt
to give proper return type (#7159)web3
v4.11.0
Compare Source
Fixed
web3-eth-abi
web3-utils
_sendPendingRequests
will 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
populateTransaction
was added to contract methods (#7124)setTransactionMiddleware
andgetTransactionMiddleware
for automatically passing tosentTransaction
fordeploy
andsend
functions (#7138)web3-rpc-providers
web3
web3.eth.Contract
will get transaction middleware and use it, ifweb3.eth
has transaction middleware. (#7138)v4.10.0
Compare Source
Added
web3
web3-core
web3-eth
sendTransaction
inrpc_method_wrappers
accepts optional param ofTransactionMiddleware
(#7088)setTransactionMiddleware
andgetTransactionMiddleware
for automatically passing tosentTransaction
(#7088)web3-eth-ens
getText
now supports first param AddressgetName
has optional second param checkInterfaceSupportweb3-types
result
as optionalnever
anderror
as optionalnever in type
JsonRpcNotification` (#7091)JsonRpcNotfication
as a union type inJsonRpcResponse
(#7091)web3-rpc-providers
Fixed
web3-eth-ens
getName
reverse resolutionv4.9.0
Compare Source
Added
web3
Web3EthInterface.accounts
to includesprivateKeyToAccount
,privateKeyToAddress
,andprivateKeyToPublicKey
(#6762)web3-core
defaultReturnFormat
was added to the configuration options. (#6947)web3-errors
InvalidIntegerError
error for fromWei and toWei (#7052)web3-eth
defaultReturnFormat
was added to all methods that haveReturnType
param. (#6947)getTransactionFromOrToAttr
,waitForTransactionReceipt
,trySendTransaction
,SendTxHelper
was exported (#7000)web3-eth-contract
defaultReturnFormat
was added to all methods that haveReturnType
param. (#6947)web3-eth-ens
defaultReturnFormat
was added to all methods that haveReturnType
param. (#6947)web3-net
defaultReturnFormat
was added to all methods that haveReturnType
param. (#6947)web3-types
signature
to typeAbiFunctionFragment
(#6922)Withdrawals
,block
andBlockHeaderOutput
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
andfromWei
now supports integers as a unit. (#7053)Fixed
web3-eth
checkRevertBeforeSending
if there is no data set in transaction, set gas to be21000
(#7043)web3-utils
toWei
support numbers in scientific notation (#6908)toWei
andfromWei
trims according to ether unit successfuly (#7044)web3-validator
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 frompackage.json
(#7015)web3-core
Changed
web3-core
RequestManagerMiddleware
was changed (#7003)web3-eth
customTransactionReceiptSchema
into methodsemitConfirmation
,waitForTransactionReceipt
,watchTransactionByPolling
,watchTransactionBySubscription
,watchTransactionForConfirmations
(#7000)baseFeePerGas===0x0
fillmaxPriorityFeePerGas
andmaxFeePerGas
bygetGasPrice
method (#7050)web3-eth-abi
web3-rpc-methods
estimateGas
method to add possibility pass Transaction type (#7000)v4.8.0
Compare Source
Changed
web3-eth-abi
web3-eth-accounts
Fixed
web3-eth-contract
web3-utils
Added
web3-eth-contract
web3-eth
getBlock
now includes properties of eip 4844, 4895, 4788 when returning block (#6933)withdrawalsSchema
,blockSchema
andblockHeaderSchema
schemas to include properties of eip 4844, 4895, 4788 (#6933)web3-types
signature
to typeAbiFunctionFragment
(#6922)Withdrawals
,block
andBlockHeaderOutput
to include properties of eip 4844, 4895, 4788 (#6933)v4.7.0
Compare Source
added
web3-eth-contract
ContractDeploySend
,ContractMethodSend
,Web3PromiEvent
was exported (#6883)web3-eth-ens
fixed
web3-validator
web3-utils
toNumber(...)
function (#6880)v4.6.0
Compare Source
Added
web3
requestEIP6963Providers
for multi provider discoveryweb3-eth
eth.getMaxPriorityFeePerGas
method (#6748)web3-eth-ens
setAddress
in ENS and Resolver classes (#5956)web3-rpc-methods
getMaxPriorityFeePerGas
method (#6748)web3-types
FeeData
to be filled byawait web3.eth.calculateFeeData()
to be used with EIP-1559 transactions (#6795)Fixed
web3-utils
v4.5.0
Compare Source
Added
web3-utils
AbiItem
from 1.x to v4 for compatabiltiy (#6678)web3-types
AbiItem
from 1.x to v4 for compatabiltiy (#6678)Changed
web3
v4.4.0
Compare Source
Added
web3-eth
TransactionPollingTimeoutError
was added to send transaction events (#6623)Changed
web3-eth-abi
AbiError
instead ofError
for errors at web3-eth-abi (#6641).web3-eth-contract
deploy
function to accept parameters, even when no ABI was provided to theContract
(#6635)web3
Fixed
web3-eth-abi
web3-eth-accounts
common
did not have acopy()
and thechainId
was not provided (#6663)web3-eth-contract
contract.getPastEvents
orcontract.events.allEvents()
, if there is no matching events. (#6647)web3-utils
web3-validator
v4.3.0
Compare Source
Changed
web3-core
contractDataInputFill
has been defaulted todata
, instead ofinput
. (#6622)web3-eth-contracts
data
instead ofinput
within method calls (#6622)Added
web3-utils
SocketProvider
now contains public functiongetPendingRequestQueueSize
,getSentRequestsQueueSize
andclearQueues
(#6479)safeDisconnect
as aSocketProvider
method to disconnect only when request queue size and send request queue size is 0 (#6479)isContractInitOptions
method (#6555)web3
Fixed
web3-rpc-methods
web3-utils
v4.2.2
Compare Source
Added
web3-core
isMetaMaskProvider
function to check if provider is metamask (#6534)web3-types
MetaMaskProvider
added and is part ofSupportedProviders
(#6534)gasPrice
was added toTransaction1559UnsignedAPI
type. (#6539)Changed
web3
Fixed
web3-errors
transactionTimeoutHint
(#6559)web3-eth-contract
data
for transactions in contract for metamask provider instead ofinput
(#6534)v4.2.1
Compare Source
Fixed
web3-eth-abi
ERR_UNSUPPORTED_DIR_IMPORT
in ABI (#6535)Changed
web3-eth-contract
web3-eth
web3-eth-ens
web3-eth-personal
v4.2.0
Compare Source
Added
web3
web3-eth
ALL_EVENTS
andALL_EVENTS_ABI
constants,SendTransactionEventsBase
type,decodeEventABI
method (#6410)web3-eth-accounts
privateKeyToPublicKey
BaseTransaction
from the package (#6493)txUtils
from the package (#6493)web3-types
EventLog
was added. (#6410)web3-utils
EventEmitter
has been implemented and exported. (#6398)Fixed
web3-core
web3-errors
web3-eth
checkRevertBeforeSending
insendSignedTransaction
defaultTransactionBuilder
for value issue (#6509)web3-eth-abi
web3-eth-accounts
recover
function,v
will be normalized to value 0,1 (#6344)web3-providers-http
web3-providers-ipc
web3-providers-ws
web3-utils
web3-validator
convertToZod
method (#6434)Changed
web3
web3-core
EventEmitter
fromweb3-utils
that works in node envrioment as well as in the browser. (#6398)web3-eth
web3-eth-contract
events
property was added to thereceipt
object (#6410)web3-eth-ens
web3-eth-iban
web3-eth-personal
web3-net
web3-providers-http
web3-rpc-methods
v4.1.2
Compare Source
Fixed
web3
web3-eth-accounts
r
ands
returned bysign
to does not always consist of 64 characters" (#6411)web3-eth-contract
web3-utils
soliditySha3()
with BigInt supportAdded
web3-core
Web3Config
propertycontractDataInputFill
allowing users to have the choice using propertydata
,input
orboth
for contract methods to be sent to the RPC provider when creating contracts. (#6377) (#6400)web3-eth
Web3Config
propertycontractDataInputFill
allowing users to have the choice using propertydata
,input
orboth
for contract methods to be sent to the RPC provider when creating contracts. (#6377) (#6400)ALL_EVENTS
andALL_EVENTS_ABI
constants,SendTransactionEventsBase
type,decodeEventABI
method (#6410)web3-eth-contract
dataInputFill
as a ContractInitOption, allowing users to have the choice using propertydata
,input
orboth
for contract methods to be sent to the RPC provider. (#6355)Web3Config
propertycontractDataInputFill
allowing users to have the choice using propertydata
,input
orboth
for contract methods to be sent to the RPC provider when creating contracts. (#6377)web3-types
asEIP1193Provider
toWeb3BaseProvider
so every inherited class can have the returned value ofrequest
method, 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.1
Compare Source
Added
web3
web3-core
web3-eth-contract
Fixed
web3-eth
formatSubscriptionResult
in classNewHeadsSubscription
(#6368)web3-core
send
method on request manager (#6300).web3-errors
web3-eth-contract
contract.events.allEvents
web3-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.0
Compare Source
Added
web3
web3-core
web3-errors
RpcErrorMessages
that contains mapping for standard RPC Errors and their messages. (#6230)TransactionGasMismatchInnerError
for clarity on the error inTransactionGasMismatchError
(#6215)MissingGasInnerError
for clarity on the error inMissingGasError
(#6215)web3-eth
rpc_method_wrapper
(signTypedData
) for the rpc callseth_signTypedData
andeth_signTypedData_v4
(#6286)signTypedData
method to theWeb3Eth
class (#6286)web3-eth-abi
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
signTypedData
method toeth_rpc_methods
for the rpc callseth_signTypedData
andeth_signTypedData_v4
(#6286)web3-types
eth_signTypedData
andeth_signTypedData_v4
toweb3_eth_execution_api
(#6286)Eip712TypeDetails
andEip712TypedData
toeth_types
(#6286)web3-validator
json-schema
as a main json schema type (#6264)Fixed
web3-core
web3-errors
web3-eth
estimateGas
unless transaction builderoptions.fillGas
is false. (#6249)blockHeaderSchema
properties causing some properties to not appear in response ofnewHeads
subscription (#6243)blockHeaderSchema
properties causing some properties to not appear in response ofnewHeads
subscription (#6243)web3-providers-ws
Changed
web3-core
CommonSubscriptionEvents &
at every child class ofWeb3Subscription
(#6262)_processSubscriptionResult
and_processSubscriptionError
has been written in the base classWeb3Subscription
and maidpublic
. (#6262)formatSubscriptionResult
could be used to customize data formatting instead of re-implementing_processSubscriptionResult
. (#6262)CommonSubscriptionEvents &
for the first generic parameter ofWeb3Subscription
when inheriting from it. (#6262)web3-eth
MissingGasError
error message changed for clarity (#6215)input
anddata
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 bothinput
anddata
properties (#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
input
anddata
are now optional properties onPopulatedUnsignedBaseTransaction
(previouslyinput
was a required property, anddata
was not available) (#6294)web3-utils
web3-validator
is-my-json-valid
withzod
dependency. Related code was changed (#6264)ValidationError
andJsonSchema
were changed (#6264)Removed
web3-eth
blockHeaderSchema
properties causing some properties to not appear in response ofnewHeads
subscription (#6243)RawValidationError
was removed (#6264)web3-validator
RawValidationError
was removed (#6264)v4.0.3
Compare Source
Fixed
web3
web3-rpc-methods
getPastLogs
accept blockHash as a parameter https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getlogs (#6181)web3-types
Filter
includesblockHash
(#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.2
Compare Source
Fixed
web3
web3-core
web3-eth-abi
web3-eth-accounts
r
ands
returned bysignTransaction
to does not always consist of 64 characters #6207" (#6216)web3-eth-contract
web3-eth-ens
web3-providers-ws
web3-types
Added
web3
Web3Context
,Web3PluginBase
,Web3EthPluginBase
from'web3-core'
, andWeb3Validator
from'web3-validator'
(#6165)web3-core
web3-types
SimpleProvider
interface which has onlyrequest(args)
method that is compatible with EIP-1193 (#6210)Eip1193EventName
type 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
EIP1193Provider
class has now all the events (foron
andremoveListener
) according to EIP-1193 (#6210)web3-utils
web3-validator
v4.0.1
Compare Source
Fixed
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.