q9f / eth.rb

a straightforward library to build, sign, and broadcast ethereum transactions anywhere you can run ruby.
https://q9f.github.io/eth.rb
Apache License 2.0
200 stars 86 forks source link

Dynamic struct encoding (#135) #185

Closed q9f closed 1 year ago

q9f commented 1 year ago

Taking over #135

adding abi encoder for the following data types

  • dynamic struct
  • static struct
  • dynamic array of dynamic struct
  • dynamic array of static struct
  • static array of dynamic struct
  • static array of static struct
codecov-commenter commented 1 year ago

Codecov Report

Merging #185 (1177a3d) into main (9e3e2af) will increase coverage by 0.00%. The diff coverage is 100.00%.

@@           Coverage Diff            @@
##             main     #185    +/-   ##
========================================
  Coverage   99.75%   99.76%            
========================================
  Files          70       70            
  Lines        4091     4229   +138     
========================================
+ Hits         4081     4219   +138     
  Misses         10       10            
Impacted Files Coverage Δ
lib/eth/abi.rb 100.00% <100.00%> (ø)
lib/eth/abi/type.rb 100.00% <100.00%> (ø)
lib/eth/client.rb 100.00% <100.00%> (ø)
lib/eth/contract/function.rb 100.00% <100.00%> (ø)
lib/eth/contract/function_input.rb 100.00% <100.00%> (ø)
spec/eth/abi/type_spec.rb 100.00% <100.00%> (ø)
spec/eth/abi_spec.rb 100.00% <100.00%> (ø)
spec/eth/contract/function_spec.rb 100.00% <100.00%> (ø)
spec/eth/contract_spec.rb 100.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more