Skip to content

Releases: lmittmann/w3

v0.8.0

25 May 13:53
Compare
Choose a tag to compare

Changes

  • module/web3: added web3_clientVersion
  • internal/abi: improved + refactored package
  • core: deprecated CallFactoryReturns and CallFactoryReturnsRAW, use CallerFactory instead
  • upgraded go-ethereum: v1.10.17 -> v1.10.18

v0.7.0

26 Apr 12:50
Compare
Choose a tag to compare

Breaking Changes

  • utility functions:
    • A, APtr, B, H and I panic if input is not valid (use go-ethereum/common instead for parsing strings at runtime without panicking)
    • A, APtr panics if address is not checksum-encoded
  • module/eth: dropped AtBlock(…)
    • refactored eth.Balance(addr).AtBlock(blockNumber) -> eth.Balance(addr, blockNumber)
    • refactored eth.Call(msg).AtBlock(blockNumber) -> eth.Call(msg, blockNumber)
    • refactored eth.Code(addr).AtBlock(blockNumber) -> eth.Code(addr, blockNumber)
    • refactored eth.StorageAt(addr, slot).AtBlock(blockNumber) -> eth.StorageAt(addr, slot, blockNumber)
    • refactored eth.Nonce(addr).AtBlock(blockNumber) -> eth.Nonce(addr, blockNumber)

Changes

  • module/eth: performance improvements

v0.6.1

30 Mar 11:23
Compare
Choose a tag to compare

Changes

v0.6.0

15 Mar 19:18
Compare
Choose a tag to compare

Changes

  • upgraded to Go1.18
  • core: added generic CallFactoryReturns and CallFactoryReturnsRAW interface
  • module/eth: reduced number of exported types by applying CallFactoryReturns and CallFactoryReturnsRAW to hide factory implementations
  • module/eth: added Overrides to Call and CallFunc

v0.5.1

23 Feb 10:30
Compare
Choose a tag to compare

Changes

  • fixed array lexing/parsing in e.g. w3.NewFunc

v0.5.0

18 Feb 16:32
Compare
Choose a tag to compare

Changes

  • added ability to return raw RPC types for
    • eth.BlockByHash(...).ReturnsRAW(...)
    • eth.HeaderByHash(...).ReturnsRAW(...)
    • eth.BlockByNumber(...).ReturnsRAW(...)
    • eth.HeaderByNumber(...).ReturnsRAW(...)
    • eth.TransactionByHash(...).ReturnsRAW(...)
    • eth.TransactionReceipt(...).ReturnsRAW(...)
  • added W3 Gopher

v0.4.1

07 Feb 13:44
Compare
Choose a tag to compare

Changes

  • send non-batch request if len(requests) == 1 in Client.CallCtx(requests)

v0.4.0

06 Feb 17:19
Compare
Choose a tag to compare

Changes:

  • Package rpctest is now public
  • Doc & Readme improvements

v0.3.2

05 Feb 19:20
Compare
Choose a tag to compare

Fix: don't panic on empty RPC response

v0.3.1

04 Feb 15:26
Compare
Choose a tag to compare

Fix: allow nil as block number to fetch "latest" block in eth.BlockByNumber(...)