This repository was archived by the owner on Mar 5, 2025. It is now read-only.
v4.0.1-alpha.1 #5589
jdevcs
announced in
Announcements
v4.0.1-alpha.1
#5589
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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)This discussion was created from the release v4.0.1-alpha.1.
Beta Was this translation helpful? Give feedback.
All reactions