What are the corresponding numbers for the NNS topics?

The NNS has the topics labelled nicely in the NNS dApp by name

However, in the NNS smart contract the #Follow command has the following types with topic as Int32:

  public type Follow = { topic : Int32; followees : [NeuronId] };

From my tests there seems be topics from 0 - 15 inclusive, maybe more will be added and some have already been removed (topic 11 came up with an error saying it’s removed), is there a place where all the topics and their corresponding numbers can be seen? I presume there is since they are labelled on the NNS UI?

3 Likes

Thank you, that’s what I needed!