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: change identical resolve traits to Specifier<T> #550

Merged
merged 1 commit into from
Mar 2, 2024

Conversation

prestwich
Copy link
Member

@prestwich prestwich commented Mar 1, 2024

Motivation

Prep for more DynSol____ by unifying resolution under the concept of a Specifier<T>. A specifier is any data that specifies a Solidity interface item. E.g. the string "bytes memory", the solidity code function a() or a JSON ABI object.

This PR preps for adding DynSolFunc and DynSolError and removal or modification of JsonAbiExt and related traits in favor of shortcut encoding traits blanket implemented on Specifier<T>

Solution

Unify ResolveSolType and ResolveSolEvent into Specifier<T>

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@prestwich prestwich added the enhancement New feature or request label Mar 1, 2024
@prestwich prestwich requested a review from DaniPopes March 1, 2024 21:36
@prestwich prestwich self-assigned this Mar 1, 2024
@prestwich prestwich mentioned this pull request Mar 1, 2024
3 tasks
Copy link
Member

@gakonst gakonst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good w me lets the resolver to be used with other types

@prestwich prestwich merged commit 1530a5b into main Mar 2, 2024
21 checks passed
@prestwich prestwich deleted the prestwich/specifier branch March 2, 2024 10:07
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.

2 participants