Closed p4u closed 5 months ago
The election API response has two new fields to improve support with process archive
chainId
fromArchive
{ "electionId": "c5d2460186f738d2bc91b89928f78cbab3e4b1949e28787ec7a3020000000006", "organizationId": "38d2bc91b89928f78cbab3e4b1949e28787ec7a3", "status": "RESULTS", "startDate": "2023-10-09T09:12:06.476691294Z", "endDate": "2023-10-22T11:40:54.476691294Z", "voteCount": 0, "finalResults": true, "result": [ [ "0", "1" ] ], "manuallyEnded": false, "fromArchive": true, "chainId": "vocdoni-stage-8", "census": { "censusOrigin": "OFF_CHAIN_TREE_WEIGHTED", "censusRoot": "b9d9032f745bb8f926d25f856e34c80dfc29509361a61010a2203150cefa8c86", "postRegisterCensusRoot": "", "censusURL": "ipfs://bafybeidrrlva27y5mz7bmig6r5elpyq6twwlm6di74fhd4fgjpclrdmram", "maxCensusSize": 3000 }, "metadataURL": "ipfs://bafybeihwo5faycjy3y6zkvlsz6sqqlndgd5che4u5dgqrioev5sec3ew34", "creationTime": "2023-11-08T10:14:00.845537778Z", "voteMode": { "serial": false, "anonymous": false, "encryptedVotes": false, "uniqueValues": false, "costFromWeight": false }, "electionMode": { "autoStart": true, "interruptible": true, "dynamicCensus": false, "encryptedMetaData": false, "preRegister": false }, "tallyMode": { "maxCount": 1, "maxValue": 1, "maxVoteOverwrites": 0, "maxTotalCost": 0, "costExponent": 10000 }, "metadata": { "title": { "default": "こんにちは 🖖" }, "version": "1.1", "description": { "default": "" }, "media": {}, "meta": { "census": { "fields": [ "firstname", "lastname", "email" ], "type": "spreadsheet" }, "generated": "ui-scaffold", "sdk": { "version": "0.3.1" } }, "questions": [ { "choices": [ { "title": { "default": "一" }, "value": 0 }, { "title": { "default": "二" }, "value": 1 } ], "description": { "default": "" }, "title": { "default": "最初の質問" } } ], "results": { "aggregation": "discrete-counting", "display": "multiple-question" } } }
Ready in the SDK https://github.com/vocdoni/vocdoni-sdk/releases/tag/v0.5.1
ui-components (multiple package upgrades) and ui-scaffold are also up-to-date and ready to go
Related: #110
The election API response has two new fields to improve support with process archive
chainId
string indicating the origin chainfromArchive
a boolean that indicates if the process comes from archive