This repository was archived by the owner on Mar 5, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Release/4.0.1 alpha.1 #5580
Merged
Merged
Release/4.0.1 alpha.1 #5580
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
|
Contributor
Author
yes sure, but just want to confirm PR, #5547 is for 1.x, and current release PR is for 4.x. |
Contributor
Typo , i meant #5574 |
Contributor
Author
Muhammad-Altabba
approved these changes
Nov 3, 2022
Contributor
Muhammad-Altabba
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the tremendous fixes and enhancements to the CHANGELOG.md files.
31 tasks
luu-alex
approved these changes
Nov 3, 2022
avkos
approved these changes
Nov 3, 2022
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
[4.0.1-alpha.1]
Added
web3-core
execution reverted, raiseContractExecutionErrorand pass the response error to it in order to be set asinnerError(this innerError will be decoded at web3-eth-contract if its ABI was provided according to EIP-838). (Decoding EIP-838 error codes #5434)enableExperimentalFeatures. (Use subscription atrejectIfBlockTimeoutwhen the provider supports subscription #5481)registerPluginmethod toWeb3Context(Example Plugin Implementation #5393)Web3PluginBaseexported abstract class (Example Plugin Implementation #5393)Web3EthPluginBaseexported abstract class (Example Plugin Implementation #5393)web3-error
innerErrorproperty to the abstract classWeb3Error. ThisinnerErrorcould beError,Error[]orundefined. (Use BigInt when decoding functions' and events' parameters returned from Smart Contracts calls and events #5435) (Decoding EIP-838 error codes #5434)Web3ContractErroris moved to this package fromweb3-eth-contract. (Decoding EIP-838 error codes #5434)ERR_TX_SIGNINGand used it insideTransactionSigningError(AddERR_TX_SIGNINGandERR_TX_GAS_MISMATCHand refactor and relocate some errors' classes #5462)ERR_TX_GAS_MISMATCHand used it insideTransactionGasMismatchError(AddERR_TX_SIGNINGandERR_TX_GAS_MISMATCHand refactor and relocate some errors' classes #5462)SignatureErrortoweb3-errors/src/errors/signature_errors.ts(moved fromweb3-eth/src/errors.ts) (AddERR_TX_SIGNINGandERR_TX_GAS_MISMATCHand refactor and relocate some errors' classes #5462)web3-errors/src/errors/transaction_errors.tsfromweb3-eth/src/errors.ts(AddERR_TX_SIGNINGandERR_TX_GAS_MISMATCHand refactor and relocate some errors' classes #5462)TransactionBlockTimeoutErrorclass and its error codeERR_TX_BLOCK_TIMEOUT(Stop waiting aftertransactionBlockTimeout#5294)ExistingPluginNamespaceErrorclass and it's error codeERR_EXISTING_PLUGIN_NAMESPACE(Example Plugin Implementation #5393)web3-eth
web3-rpc-methodsdependency (Initweb3-rpc-methodspackage #5441)validateTransactionForSigningweb3-eth-abi
innerErrorinside the error classAbiError. (Use BigInt when decoding functions' and events' parameters returned from Smart Contracts calls and events #5435)web3-eth-contract, when decoding error data according to EIP-838. (Decoding EIP-838 error codes #5434)web3-eth-contract
Web3ContractErroris moved from this package toweb3-error. (Decoding EIP-838 error codes #5434)web3-plugin-example
requestManager(Example Plugin Implementation #5393)web3-utils
pollTillDefined,rejectIfTimeoutandrejectIfConditionAtIntervalwhich are useful when dealing with promises that involves polling, rejecting after timeout or rejecting if a condition was met when calling repeatably at every time intervals.web3-eth-personal
web3-rpc-methodsdependency (Initweb3-rpc-methodspackage #5441)web3-eth-net
web3-rpc-methodsdependency (Initweb3-rpc-methodspackage #5441)web3-providers-ipc
transactionBlockTimeout#5294)web3-rpc-methods
web3-types
Web3EthExecutionAPIexport (Initweb3-rpc-methodspackage #5441)Web3NetAPIexport (Initweb3-rpc-methodspackage #5441)EthPersonalAPIexport (Initweb3-rpc-methodspackage #5441)Changed
web3-core
APIgeneric forWeb3ContextObjectfromanytounknown(Example Plugin Implementation #5393)APIgeneric forWeb3ContextInitOptionsfromanytounknown(Example Plugin Implementation #5393)defaultHardforkanddefaultCommon.hardforkare different in web3configdefaultChainanddefaultCommon.basechainare different in web3configenableExperimentalFeatures. (Use subscription atrejectIfBlockTimeoutwhen the provider supports subscription #5481)web3-error
SignerErrorfromweb3-errors/src/errors/signature_errors.tstoweb3-errors/src/errors/transaction_errors.ts, and renamed it toTransactionSigningError(AddERR_TX_SIGNINGandERR_TX_GAS_MISMATCHand refactor and relocate some errors' classes #5462)JSONRPC_ERR_UNAUTHORIZEDto be4100(AddERR_TX_SIGNINGandERR_TX_GAS_MISMATCHand refactor and relocate some errors' classes #5462)web3-eth
Web3EthExecutionAPIis now imported viaweb3-typesinstead ofweb3_eth_execution_api.ts(Initweb3-rpc-methodspackage #5441)rpc_methods.tswithethRpcMethodsimports fromweb3-rpc-methods(Initweb3-rpc-methodspackage #5441)Web3NetAPIis now imported fromweb3-typesinstead ofweb3-net(Initweb3-rpc-methodspackage #5441)rpc_methodstests toweb3-rpc-methods(Initweb3-rpc-methodspackage #5441)transactionBlockTimeout(Stop waiting aftertransactionBlockTimeout#5294)rejectIfBlockTimeoutwhen the provider supports subscription. Implement this as an experimental feature (ifuseSubscriptionWhenCheckingBlockTimeoutatenableExperimentalFeaturesistrue). (Use subscription atrejectIfBlockTimeoutwhen the provider supports subscription #5481)rejectIfBlockTimeoutwhen the provider supports subscription #5481)web3-eth-accounts
signTransactionandprivateKeyToAccountwill throwTransactionSigningErrorinstead ofSignerErrornow (AddERR_TX_SIGNINGandERR_TX_GAS_MISMATCHand refactor and relocate some errors' classes #5462)web3-eth-ens
Web3NetAPIis now imported fromweb3-typesinstead ofweb3-net(Initweb3-rpc-methodspackage #5441)web3-eth-personal
EthPersonalAPIfromweb3-typesinstead of local import (Initweb3-rpc-methodspackage #5441)rcp_methods.tswithpersonalRpcMethodsimports fromweb3-rpc-methods(Initweb3-rpc-methodspackage #5441)EthPersonalAPIManagerwithWeb3RequestManager<EthPersonalAPI>(Initweb3-rpc-methodspackage #5441)web3-eth-net
Web3NetAPIis now imported fromweb3-typesinstead ofweb3_net_api.ts(Initweb3-rpc-methodspackage #5441)rpc_methods.tswithnetRpcMethodsimports fromweb3-rpc-methods(Initweb3-rpc-methodspackage #5441)web3-types
Web3APISpec,Web3APIMethod, andWeb3APIParamsnow supportsunknownAPIs (Example Plugin Implementation #5393)Fixed
web3-error
JSONRPC_ERR_UNAUTHORIZEDto be4100(AddERR_TX_SIGNINGandERR_TX_GAS_MISMATCHand refactor and relocate some errors' classes #5462)web3-eth
getBlockreturning empty transactions object onhydratedtrue (eth.getBlock with hydrated = true returning empty transaction objects #5556)setImmediateNot Defined in Browsers Fix #5450)web3-eth-contract
web3-eth-abi, the decoded values of the large numbers, returned from function calls or events, are now available asBigInt. (Use BigInt when decoding functions' and events' parameters returned from Smart Contracts calls and events #5435)web3-eth-abi
BigIntinstead ofstringwhen decoding function parameters for large numbers, such asuint256. (Use BigInt when decoding functions' and events' parameters returned from Smart Contracts calls and events #5435)web3-types
Web3APISpec,Web3APIMethod, andWeb3APIParamsnow supportsunknownAPIs (Example Plugin Implementation #5393)Removed
web3-eth
web3-eth/src/errors.tstoweb3-errors/src/errors/transaction_errors.ts(AddERR_TX_SIGNINGandERR_TX_GAS_MISMATCHand refactor and relocate some errors' classes #5462)web3-eth-personal
EthPersonalAPIManager,EthPersonalAPIis not exported viaweb3-types(Initweb3-rpc-methodspackage #5441)web3-eth-net
rpcMethodsexport, these methods are now exported viaweb3-rpc-methodsasnetRpcMethods(Initweb3-rpc-methodspackage #5441)Web3NetAPIexport, now exported viaweb3-typesasWeb3NetAPI(Initweb3-rpc-methodspackage #5441)web3-validator
toJSON()inWeb3ValidatorErrorclass as its available via base class (Use BigInt when decoding functions' and events' parameters returned from Smart Contracts calls and events #5435)