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

chore(sns): Duplicate ClaimSwapNeuronsRequest into Swap, so the version in SNS Governance can be changed independently #1295

Merged
merged 1 commit into from
Sep 4, 2024

Conversation

anchpop
Copy link
Contributor

@anchpop anchpop commented Sep 3, 2024

This will allow us to remove the NeuronParameters field from Governance. This extra rigamarole is required because the field is not optional, so we need to make sure the callee is not expecting it before the caller stops providing it in the request.

Once #1297 is released, this PR should be reverted. With that in mind, I've implemented it optimizing for revert-ability. This means avoiding doing refactors that would potentially be painful to revert, if the code continued to change between now and then.

Next PR →

@max-dfinity max-dfinity self-requested a review September 3, 2024 15:20
@anchpop anchpop force-pushed the @anchpop/claim-swap-neurons-request-duplication branch from b1d3dfc to 9670985 Compare September 3, 2024 15:41
@anchpop anchpop changed the title chore(sns): Move ClaimSwapNeuronsRequest into Swap, so the version in SNS Governance can be changed independently chore(sns): Duplicate ClaimSwapNeuronsRequest into Swap, so the version in SNS Governance can be changed independently Sep 3, 2024
@anchpop anchpop force-pushed the @anchpop/claim-swap-neurons-request-duplication branch 5 times, most recently from f3085ca to 7955941 Compare September 4, 2024 20:49
@anchpop anchpop force-pushed the @anchpop/claim-swap-neurons-request-duplication branch from 7955941 to a217819 Compare September 4, 2024 21:15
@anchpop anchpop enabled auto-merge September 4, 2024 21:31
@anchpop anchpop added this pull request to the merge queue Sep 4, 2024
Merged via the queue into master with commit edd826b Sep 4, 2024
24 checks passed
@anchpop anchpop deleted the @anchpop/claim-swap-neurons-request-duplication branch September 4, 2024 21:48
github-merge-queue bot pushed a commit that referenced this pull request Sep 5, 2024
…SNS Governance's side (#1297)

The field is deprecated and no longer supported. This change is safe
because neuron_parameters was already not supported by `Governance`,
this just removes the field entirely from the request it expects.

[← Previous PR](#1295)
anchpop added a commit that referenced this pull request Sep 10, 2024
anchpop added a commit that referenced this pull request Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants