Skip to content

Conversation

@goran-ethernal
Copy link
Contributor

@goran-ethernal goran-ethernal commented Jul 28, 2025

🔄 Changes Summary

This PR breakes the flow_base.go to two files:

  • common_params_builder.go
  • common_params_verifier.go

They provide two abstractions created from functions to build and verify common certificate build parameters that were located in flow_base.go:

  • CommonCertParamsBuilder - which provides functions to generate common parameters for new and retry certificates.
  • CommonCertParamsVerifier - which provides functions to verify and sanity check parameters to build or retry a certificate.

The pessimistic and fep flows will now receive these interfaces in their constructor, instead of the previous base flow.

This makes code separation better, and more abstract, making writing UTs and changing/adding functions much easier than before.

This PR also moves the test related to functions that are moved to the common_params_builder and common_params_verifier from previous files, to the test files of given components.

⚠️ Breaking Changes

NA

📋 Config Updates

NA

✅ Testing

  • 🤖 Automatic: aggkit CI tests are enough to check there is no regression.

🐞 Issues

NA

🔗 Related PRs

NA

📝 Notes

NA

@goran-ethernal goran-ethernal self-assigned this Jul 28, 2025
@goran-ethernal goran-ethernal changed the base branch from develop to feat/aggchain-proof-query July 28, 2025 09:55
@goran-ethernal goran-ethernal force-pushed the feat/aggchain-proof-query branch from 776f08b to 97336c2 Compare July 30, 2025 07:25
Base automatically changed from feat/aggchain-proof-query to develop July 30, 2025 11:17
@goran-ethernal goran-ethernal force-pushed the feat/certificate-builder branch from e93e051 to 031c329 Compare July 30, 2025 11:18
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants