Repository navigation
refactor(sns): Add controller and hotkeys information to ClaimSwapNeuronsRequest, and use it in SNS Governance - #596
Merged
Conversation
anchpop
force-pushed
the
@anchpop/neuron-recipies-refactor
branch
2 times, most recently
from
July 25, 2024 20:32
1efa825 to
24668ed
Compare
anchpop
marked this pull request as ready for review
July 25, 2024 21:51
anchpop
force-pushed
the
@anchpop/neuron-recipies-refactor
branch
5 times, most recently
from
July 26, 2024 15:21
4328a29 to
0a867c0
Compare
anchpop
force-pushed
the
@anchpop/neuron-recipies-refactor
branch
from
July 26, 2024 16:13
0a867c0 to
eea0ce9
Compare
max-dfinity
reviewed
Jul 26, 2024
max-dfinity
reviewed
Jul 26, 2024
anchpop
force-pushed
the
@anchpop/neuron-recipies-refactor
branch
2 times, most recently
from
July 26, 2024 17:47
43e73e7 to
4753941
Compare
max-dfinity
reviewed
Jul 26, 2024
anchpop
force-pushed
the
@anchpop/neuron-recipies-refactor
branch
2 times, most recently
from
July 26, 2024 21:24
e3afc60 to
51319f0
Compare
aterga
reviewed
Jul 29, 2024
aterga
reviewed
Jul 29, 2024
aterga
reviewed
Jul 29, 2024
aterga
reviewed
Jul 29, 2024
aterga
reviewed
Jul 29, 2024
aterga
reviewed
Jul 29, 2024
aterga
reviewed
Jul 29, 2024
aterga
reviewed
Jul 29, 2024
aterga
reviewed
Jul 29, 2024
aterga
reviewed
Jul 29, 2024
aterga
reviewed
Jul 29, 2024
aterga
reviewed
Jul 29, 2024
aterga
reviewed
Jul 29, 2024
aterga
requested changes
Jul 29, 2024
aterga
left a comment
Contributor
There was a problem hiding this comment.
LGTM, modulo the changes requested.
anchpop
force-pushed
the
@anchpop/neuron-recipies-refactor
branch
5 times, most recently
from
July 29, 2024 19:21
aa4e3f4 to
e3d0da6
Compare
anchpop
force-pushed
the
@anchpop/neuron-recipies-refactor
branch
from
July 30, 2024 15:20
e3d0da6 to
be272ad
Compare
anchpop
added a commit
that referenced
this pull request
Jul 30, 2024
…rameters` (#679) This PR simplifies the implementation of `claim_swap_neurons` in SnsGov by (1) retrofitting `NeuronRecipes` based on legacy struct `NeuronParameters` (if the new field was not set), and (2) processing the new neuron recipes in a uniformly. < [Previous PR in this series](#596) | Co-authored-by: Andre Popovitch <[email protected]>
aterga
approved these changes
Jul 30, 2024
anchpop
added a commit
that referenced
this pull request
Jul 30, 2024
…rameters` (#679) This PR simplifies the implementation of `claim_swap_neurons` in SnsGov by (1) retrofitting `NeuronRecipes` based on legacy struct `NeuronParameters` (if the new field was not set), and (2) processing the new neuron recipes in a uniformly. < [Previous PR in this series](#596) | Co-authored-by: Andre Popovitch <[email protected]>
anchpop
force-pushed
the
@anchpop/neuron-recipies-refactor
branch
3 times, most recently
from
July 30, 2024 17:42
923f0a3 to
634c864
Compare
anchpop
enabled auto-merge
July 30, 2024 17:45
…rameters` (#679) This PR simplifies the implementation of `claim_swap_neurons` in SnsGov by (1) retrofitting `NeuronRecipes` based on legacy struct `NeuronParameters` (if the new field was not set), and (2) processing the new neuron recipes in a uniformly. < [Previous PR in this series](#596) | Co-authored-by: Andre Popovitch <[email protected]>
anchpop
force-pushed
the
@anchpop/neuron-recipies-refactor
branch
from
July 30, 2024 21:55
634c864 to
4e1bd3b
Compare
github-merge-queue Bot
pushed a commit
that referenced
this pull request
Aug 5, 2024
#596 added `NeuronRecipes` in `ClaimSwapNeuronsRequest`, a replacement for `NeuronParameters`. This PR uses it in SNS Swap | [Next PR](#705) > --------- Co-authored-by: Arshavir Ter-Gabrielyan <[email protected]>
Contributor
|
LGTM. The neuron recipe's construct_permissions LGTM. The new neuron recipe validation introduces a new way to fail claiming a neuron, but this does not lead to any unsafe behavior because the SNS will not go into normal mode if it is unable to create any swap neurons. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note that we transition to an entirely new type inside
ClaimSwapNeuronsRequest,NeuronRecipesrather thanNeuronParameters. However the types are generally very similar isomorphic.Change 1:
A
oneofhas been added to collect information that is unique to direct participants and neurons' fund participants.Change 2:
They
hotkeyfield has been replaced withnns_neuron_controller. This is convenient because otherwise the next change would have been confusing. The old field was named that way because it becomes a hotkey on the SNS neuron that is allocated to that NNS neuron, but it does not represent a hotkey on the NNS neuron.Change 2:
A hotkeys field has been added.
This is useful because we want to transfer NF neurons' hotkeys from the NNS over to the SNS.
Change 3
SNS Governance has been updated to support the new type. The old type is still supported as of this MR. SNS Swap still sends uses the old type.
Upgrade dependency
None
NNS1-3198 (which tracks the removal NeuronParameters) can only be implemented once the old field,
neuron_parameters, is no longer used by any canisters, and will have to be rolled out carefully since theneuron_parametersfield is non-optional.