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

feat(nns): list_neurons supports querying by subaccount #3592

Merged
merged 18 commits into from
Feb 5, 2025

Conversation

max-dfinity
Copy link
Contributor

@max-dfinity max-dfinity commented Jan 24, 2025

Why

This allows users who know the subaccounts of their neurons (i.e. they know the nonce and the principal used when the neurons are created) to specify which neurons they would like to list without needing to know the neuron ids (which are generated at random).

What

This adds a new API field to list_neurons called neuron_subaccounts, which works in the same way that neuron_ids works. By specifying which subaccounts the user would like to list, they are able to retrieve neurons in the same way that they also can provide neuron ids. Both of these are compatible, and in the case of overlaps, no duplicates are returned.

@max-dfinity max-dfinity force-pushed the msum/neurons-by-subaccounts branch from e735184 to 16a14b2 Compare January 24, 2025 01:12
@max-dfinity max-dfinity changed the title List Neurons by subaccount feat(nns): list_neurons supports querying by subaccount Jan 24, 2025
@github-actions github-actions bot added the feat label Jan 24, 2025
@max-dfinity max-dfinity marked this pull request as ready for review January 29, 2025 00:31
@max-dfinity max-dfinity requested review from a team as code owners January 29, 2025 00:31
@max-dfinity max-dfinity force-pushed the msum/neurons-by-subaccounts branch from 3411732 to 93436e7 Compare January 29, 2025 00:39
@max-dfinity max-dfinity force-pushed the msum/neurons-by-subaccounts branch from afe31d5 to 504cc42 Compare January 29, 2025 00:55
@max-dfinity max-dfinity marked this pull request as draft January 29, 2025 01:00
@max-dfinity max-dfinity force-pushed the msum/neurons-by-subaccounts branch 4 times, most recently from b6966e7 to b1715d5 Compare February 4, 2025 00:44
@max-dfinity max-dfinity marked this pull request as ready for review February 4, 2025 00:48
@max-dfinity max-dfinity force-pushed the msum/neurons-by-subaccounts branch from 51a24cf to 4862e0f Compare February 4, 2025 01:23
@max-dfinity max-dfinity enabled auto-merge February 4, 2025 23:58
@max-dfinity max-dfinity disabled auto-merge February 4, 2025 23:58
@max-dfinity max-dfinity force-pushed the msum/neurons-by-subaccounts branch from 4862e0f to 1c31fb2 Compare February 4, 2025 23:58
@max-dfinity max-dfinity force-pushed the msum/neurons-by-subaccounts branch from fa00814 to d95b9fb Compare February 5, 2025 00:15
@max-dfinity max-dfinity added this pull request to the merge queue Feb 5, 2025
Merged via the queue into master with commit 413a393 Feb 5, 2025
25 checks passed
@max-dfinity max-dfinity deleted the msum/neurons-by-subaccounts branch February 5, 2025 17:39
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.

4 participants