- Add support for
eth_getTransactionByHash
RPC method
- Add support for weiroll
- Add
decodeLog
- (breaking) Replace
function encodeCallSignature(...)
withfunction encodeFunctionCall(...)
- (breaking) Replace
function decodeCallOutput(...)
withfunction decodeParameters(...)
- From
web3-eth-abi
package, add:function encodeFunctionSignature(...)
function encodeEventSignature(...)
function encodeParameters(...)
- Add a note about the absence of
function fromHex(number)
- Relax node engine requirements in
package.json
- (breaking) When an Ethereum full node call results in a HTTP status
200 OK
but the payload contained an error{error: { code: "XXXX", message: "error message"}}
we didn't throw but returnedresults: undefined
which was undefined behavior. - In
options
, allow users to defineAbortController.signal
to self-manage the lifecycle of a fetch request.
- For any kind of call to an Ethereum full node, when doing an RPC call, when
the HTTP request returned a status 200, but the body didn't contain a valid
JSON object, eth-fun emitted a
FetchError
that didn't show the text body to the developer. eth-fun now includes the non-json body in the error message so that developers understand what went wrong in the HTTP request and its parsing.
toHex(num)
now throws whentypeof num !== "number"
- Remove
solc
and all related functions (allFunctions
,getStorageLocation
&compile
).
- Have the
transport
module throw aRPCError
s upon encountering a status>= 500
from an Ethereum full node.
- Add
getTransactionReceipt
function
- Add
getLogs
function
- Export both ESM and CJS modules as package using "conditional exports"
- New build process allows to target CommonJS projects in e.g. node.js
- (Breaking change) Change
node
(it was a URL) function parameter tooptions
object for all JSON-RPC functions - (Breaking change) Rename
ethCall
tocall
- Expose
toHex
function - Add
getBlockByNumber
function
- (Breaking change) All RPC functions may now throw a
RPCError
in case the remote procedure returns an error - Add
error object
to exports - Add
ethCall
,encodeCallSignature
anddecodeCallOutput
functions to exports
- Add
nodes object
to exports - Add
getStorageLocation
function
- Add
getStorageAt
function - Add
blockNumber
function
- Add
compile
function - (Breaking change) Separate
allFunctions
andcompile
function - (Breaking change) Change
allFunctions
function signature. Output now returns an object of named contracts with the list of functions.
- Initial release
- Add
allFunctions
function that returns all functions of a contract in a.sol
file.