web3-eth-ens
Advanced tools
Changelog
[4.0.1-alpha.2]
web3-eth-accounts
to web3-types
package: Cipher, CipherOptions, ScryptParams, PBKDF2SHA256Params, KeyStore (#5581 )uuidV4
that generates a random v4 Uuid (#5373).id
(#5652).isPromise
that checks if an object is a promise (#5652).SpecialOutput
type was added as a generic type into the call function to support reassigning output types (#5631)ContractOverloadedMethodInputs
, ContractOverloadedMethodOutputs
) was added (#5631)fromBlock
when passed to contract.events.someEventName
(#5201)ContractOptions
-> jsonInterface
setter and getter (#5474)Contract
constructor where provider
wasn't being set when provided within the optionsOrContextOrReturnFormat
argument (#5669)request
method of EIP1193Provider
class, compatible with EIP 1193 (#5591)isHex
returning false
for -123
, fix isHexStrict
returning true
for -0x
, and fix isHex
returning true
for empty strings `` (#5373).ContractMethodOutputParameters
type to support output object types by index and string key. Also, it returns void if ABI doesn't have outputs and returns exactly one type if the output array has only one element. (#5631)web3-eth-accounts
to web3-types
package: Cipher, CipherOptions, ScryptParams, PBKDF2SHA256Params, KeyStore (#5581 )Changelog
[4.0.1-alpha.1]
execution reverted
, raise ContractExecutionError
and pass the response error to it in order to be set as innerError
(this innerError will be decoded at web3-eth-contract if its ABI was provided according to EIP-838). (#5434)enableExperimentalFeatures
. (#5481)registerPlugin
method to Web3Context
(#5393)Web3PluginBase
exported abstract class (#5393)Web3EthPluginBase
exported abstract class (#5393)innerError
property to the abstract class Web3Error
. This innerError
could be Error
, Error[]
or undefined
. (#5435) (#5434)Web3ContractError
is moved to this package from web3-eth-contract
. (#5434)ERR_TX_SIGNING
and used it inside TransactionSigningError
(#5462)ERR_TX_GAS_MISMATCH
and used it inside TransactionGasMismatchError
(#5462)SignatureError
to web3-errors/src/errors/signature_errors.ts
(moved from web3-eth/src/errors.ts
) (#5462)web3-errors/src/errors/transaction_errors.ts
from web3-eth/src/errors.ts
(#5462)TransactionBlockTimeoutError
class and its error code ERR_TX_BLOCK_TIMEOUT
(#5294)ExistingPluginNamespaceError
class and it's error code ERR_EXISTING_PLUGIN_NAMESPACE
(#5393)web3-rpc-methods
dependency (#5441)validateTransactionForSigning
innerError
inside the error class AbiError
. (#5435)web3-eth-contract
, when decoding error data according to EIP-838. (#5434)Web3ContractError
is moved from this package to web3-error
. (#5434)requestManager
(#5393)pollTillDefined
, rejectIfTimeout
and rejectIfConditionAtInterval
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-rpc-methods
dependency (#5441)web3-rpc-methods
dependency (#5441)Web3EthExecutionAPI
export (#5441)Web3NetAPI
export (#5441)EthPersonalAPI
export (#5441)API
generic for Web3ContextObject
from any
to unknown
(#5393)API
generic for Web3ContextInitOptions
from any
to unknown
(#5393)defaultHardfork
and defaultCommon.hardfork
are different in web3configdefaultChain
and defaultCommon.basechain
are different in web3configenableExperimentalFeatures
. (#5481)SignerError
from web3-errors/src/errors/signature_errors.ts
to web3-errors/src/errors/transaction_errors.ts
, and renamed it to TransactionSigningError
(#5462)JSONRPC_ERR_UNAUTHORIZED
to be 4100
(#5462)Web3EthExecutionAPI
is now imported via web3-types
instead of web3_eth_execution_api.ts
(#5441)rpc_methods.ts
with ethRpcMethods
imports from web3-rpc-methods
(#5441)Web3NetAPI
is now imported from web3-types
instead of web3-net
(#5441)rpc_methods
tests to web3-rpc-methods
(#5441)transactionBlockTimeout
(#5294)rejectIfBlockTimeout
when the provider supports subscription. Implement this as an experimental feature (if useSubscriptionWhenCheckingBlockTimeout
at enableExperimentalFeatures
is true
). (#5481)signTransaction
and privateKeyToAccount
will throw TransactionSigningError
instead of SignerError
now (#5462)Web3NetAPI
is now imported from web3-types
instead of web3-net
(#5441)EthPersonalAPI
from web3-types
instead of local import (#5441)rcp_methods.ts
with personalRpcMethods
imports from web3-rpc-methods
(#5441)EthPersonalAPIManager
with Web3RequestManager<EthPersonalAPI>
(#5441)Web3NetAPI
is now imported from web3-types
instead of web3_net_api.ts
(#5441)rpc_methods.ts
with netRpcMethods
imports from web3-rpc-methods
(#5441)Web3APISpec
, Web3APIMethod
, and Web3APIParams
now supports unknown
APIs (#5393)JSONRPC_ERR_UNAUTHORIZED
to be 4100
(#5462)getBlock
returning empty transactions object on hydrated
true (#5556)web3-eth-abi
, the decoded values of the large numbers, returned from function calls or events, are now available as BigInt
. (#5435)BigInt
instead of string
when decoding function parameters for large numbers, such as uint256
. (#5435)Web3APISpec
, Web3APIMethod
, and Web3APIParams
now supports unknown
APIs (#5393)web3-eth/src/errors.ts
to web3-errors/src/errors/transaction_errors.ts
(#5462)EthPersonalAPIManager
, EthPersonalAPI
is not exported via web3-types
(#5441)rpcMethods
export, these methods are now exported via web3-rpc-methods
as netRpcMethods
(#5441)Web3NetAPI
export, now exported via web3-types
as Web3NetAPI
(#5441)toJSON()
in Web3ValidatorError
class as its available via base class (#5435)Changelog
[4.0.1-alpha.0]
Changelog
[4.0.0-alpha.0]
Note: Yarn is resolving to some old deprecated package versions for 4.0.0-alpha.0 instead of latest alpha versions. A patch bump is posted so yarn users should use 4.0.1-alpha.0 for testing.
web3-errors
new package is created, it has Web3 Error codes and classesweb3-types
new package is created, it provides the common data structures and interfaces for web3 modulesweb3-validator
new package is created, it has JSON-Schema compatible validator functionality for Web3errors
are moved to web3-errors
package and formatters are moved in web3-core
packageweb3-core-method
functionality is moved to web3-eth
packageweb3-core
packageweb3-core
packageweb3-core
packageextend
is deprecatedoutputBigNumberFormatter
in web3-core-helper
renamed to outputBigIntFormatter
under web3-core
this.defaultBlock
context from inputDefaultBlockNumberFormatter
in web3-core-helper
and converted to additional parameterthis.defaultBlock
context from inputTransactionFormatter
in web3-core-helper
and converted to additional parametersoliditySha3
soliditySha3Raw
encodePacked
now includes type validation and requires type specification, instead of guessing the value typesoliditySha3
, soliditySha3Raw
and encodePacked
did not support BN; But, now supports BigInt
flattenTypes
and jsonInterfaceMethodToString
moved to the web3-eth-abi
packageisAddress
now includes an optional parameter checkChecksum
type booleanisBoolean
now accept 1
, and 0
as valid values to test. Ref: web3-validator
create
function does not take in the optional parameter entropy
Wallet.create
function doesn't accept entropy
paramisBoolean
now accept 1
, and 0
as valid values to test.signTransaction
will not fill any default values, and it will only sign and return result. For filling default values, use web3-eth
packagerecover
function's last param is boolean hashed
, it is used to indicate if data provided is already hashed or not. By default, this function will assume data is not hashed.Wallet
no longer supports address/number indexing. Have to use wallet.get
instead.Wallet.create
function doesn't accept entropy
paramcontract.method.send()
will resolve to transaction receipt instead of transactionHash
. User can use receipt.transactionHash
instead.isDirect
, isValid
, isIndirect
are now also included as static methods.setMultihash
is not supported in web3-eth-ens 4.x as it's deprecated in ENS public resolver (https://github.com/ensdomains/resolvers/blob/master/contracts/PublicResolver.sol)setContent
is not supported in web3-eth-ens 4.x as it's deprecated in ENS public resolver (https://github.com/ensdomains/resolvers/blob/master/contracts/PublicResolver.sol)getContent
is not supported in web3-eth-ens 4.x as it's deprecated in ENS public resolver.getMultihash
is not supported in web3-eth-ens 4.x as it's deprecated in ENS public resolver.internalType
was renamed to baseType
in all abi typesgivenProvider
default value is undefineddefaultHardfork
default value is 'london'defaultAccount
default value is undefineddefaultNetworkId
default value is undefinedtransactionSendTimeout
, throw an Error.clearSubscriptions
Instead of returning true
, clearSubscriptions
now returns array of subscription's idsgivenProvider
default value is undefinedcurrentProvider
default value is undefinedChangelog
[1.7.5]
maxFeePerGas
and maxPriorityFeePerGas
(#5121)createAccessList
types in web3.eth (#5146)AbstractProvider
interface (#5150)got
lib version and fixed other libs using npm audit fix (#5178) (#5254)