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

Refactor brownie.convert #340

Merged
merged 6 commits into from
Jan 23, 2020
Merged

Refactor brownie.convert #340

merged 6 commits into from
Jan 23, 2020

Conversation

iamdefinitelyahuman
Copy link
Member

What I did

  • Refactor brownie/convert.py into a package
  • Use eth_abi.grammar.parse when normalizing data for contract calls

How I did it

convert/main.py - individual type conversion methods
convert/datatypes.py - data classes
convert/normalize.py - batch conversion for contract inputs and outputs
convert/utils.py - misc utils

All public methods are still available for import from brownie.convert - no breaking changes to the API are introduced by this PR

How to verify it

Run the tests.

Checklist

  • I have confirmed that my PR passes all linting checks
  • I have updated the documentation
  • I have added an entry to the changelog

@iamdefinitelyahuman iamdefinitelyahuman merged commit 38ec5b5 into master Jan 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant