Skip to content

Commit b6e4d80

Browse files
authored
Merge pull request #7 from CodeGov-org/feat/tally-service
Feat/tally service
2 parents 66d13e6 + 513bea3 commit b6e4d80

File tree

16 files changed

+860
-1180
lines changed

16 files changed

+860
-1180
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@ If you want to test your project locally, you can use the following commands:
3333

3434
```bash
3535
# Starts the replica, running in the background
36+
dfx extension install nns
37+
dfx stop
3638
dfx start --background
37-
39+
dfx extension run nns install
3840
# Deploys your canisters to the replica and generates your candid interface
3941
dfx deploy
4042
```

dfx.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@
3030
},
3131
"output_env_file": ".env",
3232
"version": 1,
33-
"dfx": "0.20.1"
33+
"dfx": "0.24.1"
3434
}

src/proposal_tracker_backend/External_Canisters/NNS/NNSMappings.mo

Lines changed: 41 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import Result "mo:base/Result";
2+
import Nat64 "mo:base/Nat64";
23
module {
34

45
public let NNSFunctions : [(Int32, Text, ?Text)] = [
@@ -55,27 +56,46 @@ module {
5556
(51, "DeployHostosToSomeNodes", null)
5657
];
5758

58-
public type NNSTopic = {
59-
#Unspecified;
60-
#ManageNeuron;
61-
#ExchangeRate;
62-
#NetworkEconomics;
63-
#Governance;
64-
#NodeAdmin;
65-
#ParticipantManagement;
66-
#SubnetManagement;
67-
#NetworkCanisterManagement;
68-
#Kyc;
69-
#NodeProviderRewards;
70-
// @deprecated
71-
#SnsDecentralizationSale;
72-
#SubnetReplicaVersionManagement;
73-
#ReplicaVersionManagement;
74-
#SnsAndCommunityFund;
75-
#ApiBoundaryNodeManagement;
76-
#SubnetRental;
77-
};
78-
59+
// public type NNSTopic = {
60+
// #Unspecified;
61+
// #ManageNeuron;
62+
// #ExchangeRate;
63+
// #NetworkEconomics;
64+
// #Governance;
65+
// #NodeAdmin;
66+
// #ParticipantManagement;
67+
// #SubnetManagement;
68+
// #NetworkCanisterManagement;
69+
// #Kyc;
70+
// #NodeProviderRewards;
71+
// // @deprecated
72+
// #SnsDecentralizationSale;
73+
// #SubnetReplicaVersionManagement;
74+
// #ReplicaVersionManagement;
75+
// #SnsAndCommunityFund;
76+
// #ApiBoundaryNodeManagement;
77+
// #SubnetRental;
78+
// };
79+
80+
public let NNSTopics : [{id : Nat64; name : Text;description : ?Text;}] = [
81+
{id : Nat64 = 1; description = ?"Unspecified"; name = "Unspecified"},
82+
{id : Nat64 = 2; description = ?"Neuron Management"; name = "ManageNeuron"},
83+
{id : Nat64 = 3; description = ?"Exchange Rate"; name = "ExchangeRate"},
84+
{id : Nat64 = 4; description = ?"Network Economics"; name = "NetworkEconomics"},
85+
{id : Nat64 = 5; description = ?"Governance"; name = "Governance"},
86+
{id : Nat64 = 6; description = ?"Node Admin"; name = "NodeAdmin"},
87+
{id : Nat64 = 7; description = ?"Participant Management"; name = "ParticipantManagement"},
88+
{id : Nat64 = 8; description = ?"Subnet Management"; name = "SubnetManagement"},
89+
{id : Nat64 = 9; description = ?"System Canister Management"; name = "NetworkCanisterManagement"},
90+
{id : Nat64 = 10; description = ?"KYC"; name = "Kyc"},
91+
{id : Nat64 = 11; description = ?"Node Provider Rewards"; name = "NodeProviderRewards"},
92+
{id : Nat64 = 12; description = ?"SNS Decentralization Swap"; name = "SnsDecentralizationSale"},
93+
{id : Nat64 = 13; description = ?"IC OS Version Election"; name = "ReplicaVersionManagement"},
94+
{id : Nat64 = 14; description = ?"IC OS Version Deployment"; name = "SubnetReplicaVersionManagement"},
95+
{id : Nat64 = 15; description = ?"SNS & Neurons' Fund"; name = "SnsAndCommunityFund"},
96+
{id : Nat64 = 16; description = ?"API Boundary Node Management"; name = "ApiBoundaryNodeManagement"},
97+
{id : Nat64 = 17; description = ?"Subnet Rental"; name = "SubnetRental"}
98+
];
7999
public type NNSVote = {
80100
#Unspecified; //0
81101
#Yes; //1

0 commit comments

Comments
 (0)