Skip to content

Commit 2b0a5e2

Browse files
authored
Updated the requested changes in Offline Election Prediction Tool PR (#2683)
1 parent 666cfdd commit 2b0a5e2

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

applications/OfflineElectionTool.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ As this tool is primarily CLI- and API-based, no user interface mockups are requ
2525
#### Data Models / API Specifications
2626
#### Core Input Parameters (JSON Schema format):
2727

28-
```json
2928
{
3029
"voters": [
3130
{
@@ -44,7 +43,6 @@ As this tool is primarily CLI- and API-based, no user interface mockups are requ
4443
"election_algorithm": "sequential-phragmen | phragmen | approval-voting",
4544
"snapshot_block": "optional<u32>"
4645
}
47-
```
4846

4947
#### Core API Endpoints (REST):
5048

@@ -54,7 +52,6 @@ As this tool is primarily CLI- and API-based, no user interface mockups are requ
5452

5553
#### API Output Example:
5654

57-
```json
5855
{
5956
"active_validators": [
6057
{
@@ -64,7 +61,6 @@ As this tool is primarily CLI- and API-based, no user interface mockups are requ
6461
}
6562
]
6663
}
67-
```
6864

6965
#### Technology Stack
7066

@@ -201,7 +197,7 @@ Stack exchange profiles of some of our team members:
201197
| **0b.** | Documentation |Examples and guide on how to include hypothetical or non-existent accounts in the simulation. |
202198
| **0c.** | Testing and Testing Guide | Unit tests covering edge cases with invalid or off-chain accounts. |
203199
| **0d.** | Docker | Docker image updated to support all new input types. |
204-
| 1. | Hypothetical Account Simulation | Updated version of the existing election script with support for accurate simulation of on-chain validator election logic using Phragmén and other supported algorithms. |
200+
| 1. | Hypothetical Account Simulation | Extend simulation engine to support voters or candidates that do not exist on-chain or lack bonded amounts. |
205201

206202
### Milestone 3 API Interface
207203

@@ -217,7 +213,7 @@ Stack exchange profiles of some of our team members:
217213
| **0c.** | Testing and Testing Guide | Integration tests for all API endpoints and a guide to test via API calls. |
218214
| **0d.** | Docker | Dockerfile to run the RESTful API server exposing the simulation endpoints. |
219215
| **0e.** | Article | A blog post or technical article describing how the election simulation works, how to use the tool via API, and its applications for nominators and validator programs. |
220-
| 1. | Core Election Engine | Extend simulation engine to support voters or candidates that do not exist on-chain or lack bonded amounts. |
216+
| 1. | API functionality | Implement API functionality to set parameters and expose results. |
221217

222218

223219
...

0 commit comments

Comments
 (0)