lib eth.rb v0.5.3 beta
lib eth.rb v0.5.3 is a feature release adding support for smart contracts in ruby.
contract = Eth::Contract.create(file: 'spec/fixtures/contracts/dummy.sol')
# => #<Eth::Contract::Dummy:0x00007fbeee936598>
cli = Eth::Client.create "/tmp/geth.ipc"
# => #<Eth::Client::Ipc:0x00007fbeee946128 @gas_limit=21000, @id=0, @max_fee_per_gas=0.2e11, @max_priority_fee_per_gas=0, @path="/tmp/geth.ipc">
address = cli.deploy_and_wait(contract)
# => "0x2f2faa160420cee087ded96bad52475147136bd8"
cli.transact_and_wait(contract, "set", 1234)
# => "0x49ca4c0a5729da19a1d2574de9a444a9cd3219bdad81745b54f9cf3bb83b6a06"
cli.call(contract, "get")
# => 1234
what's changed
- eth/abi: decode event log by @josh in #69
- gem: bump version by @q9f in #70
- eth/abi/event: batch log decoder by @josh in #71
- smart contract support by @kurotaky in #68
new contributors
full changelog: v0.5.2...v0.5.3