-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Release/4.0.1 alpha.1 #5580
Release/4.0.1 alpha.1 #5580
Conversation
|
yes sure, but just want to confirm PR, #5547 is for 1.x, and current release PR is for 4.x. |
Typo , i meant #5574 |
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.
[4.0.1-alpha.1]
Added
web3-core
execution reverted
, raiseContractExecutionError
and 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 atrejectIfBlockTimeout
when the provider supports subscription #5481)registerPlugin
method toWeb3Context
(Example Plugin Implementation #5393)Web3PluginBase
exported abstract class (Example Plugin Implementation #5393)Web3EthPluginBase
exported abstract class (Example Plugin Implementation #5393)web3-error
innerError
property to the abstract classWeb3Error
. ThisinnerError
could 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)Web3ContractError
is moved to this package fromweb3-eth-contract
. (Decoding EIP-838 error codes #5434)ERR_TX_SIGNING
and used it insideTransactionSigningError
(AddERR_TX_SIGNING
andERR_TX_GAS_MISMATCH
and refactor and relocate some errors' classes #5462)ERR_TX_GAS_MISMATCH
and used it insideTransactionGasMismatchError
(AddERR_TX_SIGNING
andERR_TX_GAS_MISMATCH
and refactor and relocate some errors' classes #5462)SignatureError
toweb3-errors/src/errors/signature_errors.ts
(moved fromweb3-eth/src/errors.ts
) (AddERR_TX_SIGNING
andERR_TX_GAS_MISMATCH
and refactor and relocate some errors' classes #5462)web3-errors/src/errors/transaction_errors.ts
fromweb3-eth/src/errors.ts
(AddERR_TX_SIGNING
andERR_TX_GAS_MISMATCH
and refactor and relocate some errors' classes #5462)TransactionBlockTimeoutError
class and its error codeERR_TX_BLOCK_TIMEOUT
(Stop waiting aftertransactionBlockTimeout
#5294)ExistingPluginNamespaceError
class and it's error codeERR_EXISTING_PLUGIN_NAMESPACE
(Example Plugin Implementation #5393)web3-eth
web3-rpc-methods
dependency (Initweb3-rpc-methods
package #5441)validateTransactionForSigning
web3-eth-abi
innerError
inside 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
Web3ContractError
is moved from this package toweb3-error
. (Decoding EIP-838 error codes #5434)web3-plugin-example
requestManager
(Example Plugin Implementation #5393)web3-utils
pollTillDefined
,rejectIfTimeout
andrejectIfConditionAtInterval
which 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-methods
dependency (Initweb3-rpc-methods
package #5441)web3-eth-net
web3-rpc-methods
dependency (Initweb3-rpc-methods
package #5441)web3-providers-ipc
transactionBlockTimeout
#5294)web3-rpc-methods
web3-types
Web3EthExecutionAPI
export (Initweb3-rpc-methods
package #5441)Web3NetAPI
export (Initweb3-rpc-methods
package #5441)EthPersonalAPI
export (Initweb3-rpc-methods
package #5441)Changed
web3-core
API
generic forWeb3ContextObject
fromany
tounknown
(Example Plugin Implementation #5393)API
generic forWeb3ContextInitOptions
fromany
tounknown
(Example Plugin Implementation #5393)defaultHardfork
anddefaultCommon.hardfork
are different in web3configdefaultChain
anddefaultCommon.basechain
are different in web3configenableExperimentalFeatures
. (Use subscription atrejectIfBlockTimeout
when the provider supports subscription #5481)web3-error
SignerError
fromweb3-errors/src/errors/signature_errors.ts
toweb3-errors/src/errors/transaction_errors.ts
, and renamed it toTransactionSigningError
(AddERR_TX_SIGNING
andERR_TX_GAS_MISMATCH
and refactor and relocate some errors' classes #5462)JSONRPC_ERR_UNAUTHORIZED
to be4100
(AddERR_TX_SIGNING
andERR_TX_GAS_MISMATCH
and refactor and relocate some errors' classes #5462)web3-eth
Web3EthExecutionAPI
is now imported viaweb3-types
instead ofweb3_eth_execution_api.ts
(Initweb3-rpc-methods
package #5441)rpc_methods.ts
withethRpcMethods
imports fromweb3-rpc-methods
(Initweb3-rpc-methods
package #5441)Web3NetAPI
is now imported fromweb3-types
instead ofweb3-net
(Initweb3-rpc-methods
package #5441)rpc_methods
tests toweb3-rpc-methods
(Initweb3-rpc-methods
package #5441)transactionBlockTimeout
(Stop waiting aftertransactionBlockTimeout
#5294)rejectIfBlockTimeout
when the provider supports subscription. Implement this as an experimental feature (ifuseSubscriptionWhenCheckingBlockTimeout
atenableExperimentalFeatures
istrue
). (Use subscription atrejectIfBlockTimeout
when the provider supports subscription #5481)rejectIfBlockTimeout
when the provider supports subscription #5481)web3-eth-accounts
signTransaction
andprivateKeyToAccount
will throwTransactionSigningError
instead ofSignerError
now (AddERR_TX_SIGNING
andERR_TX_GAS_MISMATCH
and refactor and relocate some errors' classes #5462)web3-eth-ens
Web3NetAPI
is now imported fromweb3-types
instead ofweb3-net
(Initweb3-rpc-methods
package #5441)web3-eth-personal
EthPersonalAPI
fromweb3-types
instead of local import (Initweb3-rpc-methods
package #5441)rcp_methods.ts
withpersonalRpcMethods
imports fromweb3-rpc-methods
(Initweb3-rpc-methods
package #5441)EthPersonalAPIManager
withWeb3RequestManager<EthPersonalAPI>
(Initweb3-rpc-methods
package #5441)web3-eth-net
Web3NetAPI
is now imported fromweb3-types
instead ofweb3_net_api.ts
(Initweb3-rpc-methods
package #5441)rpc_methods.ts
withnetRpcMethods
imports fromweb3-rpc-methods
(Initweb3-rpc-methods
package #5441)web3-types
Web3APISpec
,Web3APIMethod
, andWeb3APIParams
now supportsunknown
APIs (Example Plugin Implementation #5393)Fixed
web3-error
JSONRPC_ERR_UNAUTHORIZED
to be4100
(AddERR_TX_SIGNING
andERR_TX_GAS_MISMATCH
and refactor and relocate some errors' classes #5462)web3-eth
getBlock
returning empty transactions object onhydrated
true (eth.getBlock with hydrated = true returning empty transaction objects #5556)setImmediate
Not 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
BigInt
instead ofstring
when 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
, andWeb3APIParams
now supportsunknown
APIs (Example Plugin Implementation #5393)Removed
web3-eth
web3-eth/src/errors.ts
toweb3-errors/src/errors/transaction_errors.ts
(AddERR_TX_SIGNING
andERR_TX_GAS_MISMATCH
and refactor and relocate some errors' classes #5462)web3-eth-personal
EthPersonalAPIManager
,EthPersonalAPI
is not exported viaweb3-types
(Initweb3-rpc-methods
package #5441)web3-eth-net
rpcMethods
export, these methods are now exported viaweb3-rpc-methods
asnetRpcMethods
(Initweb3-rpc-methods
package #5441)Web3NetAPI
export, now exported viaweb3-types
asWeb3NetAPI
(Initweb3-rpc-methods
package #5441)web3-validator
toJSON()
inWeb3ValidatorError
class as its available via base class (Use BigInt when decoding functions' and events' parameters returned from Smart Contracts calls and events #5435)