Skip to content

feat: add support for Parameter Change and Hard Fork Initiation gov actions creation#3660

Merged
MSzalowski merged 1 commit into
developfrom
feat/add-support-for-hard-fork-and-protocol-parameter-gov-actions-creation
May 22, 2025
Merged

feat: add support for Parameter Change and Hard Fork Initiation gov actions creation#3660
MSzalowski merged 1 commit into
developfrom
feat/add-support-for-hard-fork-and-protocol-parameter-gov-actions-creation

Conversation

@MSzalowski
Copy link
Copy Markdown
Contributor

List of changes

  • Add support for Parameter Change and Hard Fork Initiation gov actions creation

Checklist

  • My changes generate no new warnings
  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the changelog
  • I have added tests that prove my fix is effective or that my feature works

@MSzalowski MSzalowski requested a review from Ryun1 as a code owner May 21, 2025 21:40
@MSzalowski MSzalowski requested a review from Ciabas May 21, 2025 21:40
@github-actions
Copy link
Copy Markdown
Contributor

✅ All checks succeeded

2 similar comments
@github-actions
Copy link
Copy Markdown
Contributor

✅ All checks succeeded

@github-actions
Copy link
Copy Markdown
Contributor

✅ All checks succeeded

Copy link
Copy Markdown
Contributor

@Ciabas Ciabas left a comment

Choose a reason for hiding this comment

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

I don't see anything fishy here. 👍
There is no big risk, since it is behind the flag and I won't be used on production anyway.
Sorry, but I only took a brief glance on the haskel code.

constitutionHash: FieldSchema;
scriptHash: FieldSchema;
}>;
export type ProtocolParameterActionFieldSchema = Partial<{
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[question]
I believe that Partial is not changing the deeply nested structure. So the end result of it is just:

{ 
  prevGovernanceActionHash?: FieldSchema;
  prevGovernanceActionIndex?: FieldSchema;
  protocolParameters?: FieldSchema; 
}

useEffect(() => {
if (govActionType === GovernanceActionType.ParameterChange) {
setValue("protocolParameters", JSON.stringify(protocolParams));
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we want to clear those values just in case in for all the other types?

@MSzalowski MSzalowski force-pushed the feat/add-support-for-hard-fork-and-protocol-parameter-gov-actions-creation branch from 78fe42a to a39bd39 Compare May 22, 2025 12:06
@github-actions
Copy link
Copy Markdown
Contributor

✅ All checks succeeded

@MSzalowski MSzalowski merged commit a2cbaff into develop May 22, 2025
10 checks passed
@MSzalowski MSzalowski deleted the feat/add-support-for-hard-fork-and-protocol-parameter-gov-actions-creation branch May 22, 2025 12:08
@github-actions
Copy link
Copy Markdown
Contributor

✅ All checks succeeded

1 similar comment
@github-actions
Copy link
Copy Markdown
Contributor

✅ All checks succeeded

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