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

Versioning of sub parameters #702

Merged
merged 12 commits into from
Mar 25, 2024
Merged

Conversation

xgreenx
Copy link
Collaborator

@xgreenx xgreenx commented Mar 21, 2024

Wrapped FeeParameters, PredicateParameters, TxParameters, ScriptParameters and ContractParameters into an enum to support versioning.

@xgreenx xgreenx self-assigned this Mar 21, 2024
@xgreenx xgreenx requested a review from a team March 21, 2024 20:57
Copy link
Collaborator Author

@xgreenx xgreenx left a comment

Choose a reason for hiding this comment

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

Ignore JS files please, it is auto formatter=)

Base automatically changed from feature/versioning-consensus-parameters to master March 21, 2024 22:11
# Conflicts:
#	CHANGELOG.md
#	fuel-tx/src/builder.rs
#	fuel-tx/src/tests/valid_cases/transaction.rs
#	fuel-tx/src/transaction/consensus_parameters.rs
#	fuel-vm/src/checked_transaction.rs
#	fuel-vm/src/tests/limits.rs
#	fuel-vm/src/tests/validation.rs
@xgreenx xgreenx enabled auto-merge March 21, 2024 22:51
@xgreenx xgreenx force-pushed the feature/versioning-sub-parameters branch from 1dc819b to 38e515d Compare March 22, 2024 13:23
impl PredicateParameters {
/// Default consensus parameters with settings suggested in fuel-specs
impl PredicateParametersV1 {
/// Default parameters just for testing.
Copy link
Member

Choose a reason for hiding this comment

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

If these are just for testing, shouldn't we feature-gate them?

Copy link
Collaborator Author

@xgreenx xgreenx Mar 25, 2024

Choose a reason for hiding this comment

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

Yeah, it is what we want=) I will put them under test-helpers in a separate PR

Copy link
Member

@Dentosal Dentosal left a comment

Choose a reason for hiding this comment

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

This is ok as-is, but needs follow-up PR as discussed above.

@xgreenx xgreenx added this pull request to the merge queue Mar 25, 2024
Merged via the queue into master with commit d5824dd Mar 25, 2024
38 checks passed
@xgreenx xgreenx deleted the feature/versioning-sub-parameters branch March 25, 2024 15:57
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.

2 participants