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 Sourcify Client #707

Merged
merged 1 commit into from
Dec 12, 2023
Merged

Refactor Sourcify Client #707

merged 1 commit into from
Dec 12, 2023

Conversation

Uxio0
Copy link
Member

@Uxio0 Uxio0 commented Dec 5, 2023

  • Rename Sourcify to SourcifyClient
  • Add method to check networks not supported
  • Raise a SourcifyClientConfigurationProblem if network is not supported

@Uxio0 Uxio0 requested a review from a team as a code owner December 5, 2023 18:41
@Uxio0 Uxio0 requested review from fmrsabino, moisses89 and iamacook and removed request for a team December 5, 2023 18:41
@Uxio0 Uxio0 self-assigned this Dec 5, 2023
@Uxio0 Uxio0 added the breaking_change Breaking change label Dec 5, 2023

@cache
def get_chains(self) -> Dict[str, Any]:
return self._do_request("https://sourcify.dev/server/chains")
Copy link
Member

Choose a reason for hiding this comment

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

This url could be better in a constant.

Copy link
Member Author

Choose a reason for hiding this comment

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

You are right, done

- Rename `Sourcify` to `SourcifyClient`
- Add method to check networks not supported
- Raise a `SourcifyClientConfigurationProblem` if network is not supported
@Uxio0 Uxio0 force-pushed the refactor-sourcify branch from 8b8cda9 to 0be2b31 Compare December 11, 2023 15:41
@Uxio0 Uxio0 merged commit c486e4a into master Dec 12, 2023
@Uxio0 Uxio0 deleted the refactor-sourcify branch December 12, 2023 09:20
@github-actions github-actions bot locked and limited conversation to collaborators Dec 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
breaking_change Breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants