Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib: import ABI to eth/abi #29

Merged
merged 13 commits into from
Dec 21, 2021
Merged

lib: import ABI to eth/abi #29

merged 13 commits into from
Dec 21, 2021

Conversation

q9f
Copy link
Owner

@q9f q9f commented Dec 19, 2021

fix #28

imports a face-lifted version of https://github.com/cryptape/ruby-ethereum-abi/ (2016)

I couldn't reach two cases of nested, dynamically sized arrays with tests, so they will raise an UnimplementedError now. It would be interesting to get good test cases for that. ref ethereum/tests#691

@codecov-commenter
Copy link

codecov-commenter commented Dec 19, 2021

Codecov Report

Merging #29 (6b43e42) into main (8df81ac) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##              main       #29    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files           13        19     +6     
  Lines          518      1037   +519     
==========================================
+ Hits           518      1037   +519     
Impacted Files Coverage Δ
lib/eth.rb 100.00% <100.00%> (ø)
lib/eth/abi.rb 100.00% <100.00%> (ø)
lib/eth/abi/constant.rb 100.00% <100.00%> (ø)
lib/eth/abi/type.rb 100.00% <100.00%> (ø)
lib/eth/address.rb 100.00% <100.00%> (ø)
lib/eth/chain.rb 100.00% <100.00%> (ø)
lib/eth/key.rb 100.00% <100.00%> (ø)
lib/eth/signature.rb 100.00% <100.00%> (ø)
lib/eth/util.rb 100.00% <100.00%> (ø)
spec/eth/abi/constant_spec.rb 100.00% <100.00%> (ø)
... and 8 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8df81ac...6b43e42. Read the comment docs.

@q9f q9f marked this pull request as ready for review December 20, 2021 15:57
@q9f q9f merged commit ca7e513 into main Dec 21, 2021
@q9f q9f deleted the q9f/eth/abi branch December 21, 2021 13:26
@q9f q9f added the enhancement New feature or request label May 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

import Ethereum::ABI:: to Eth::Abi::
2 participants