update poll_options value to json serialized Map<Int, String>

This commit is contained in:
toadlyBroodle 2023-03-19 22:09:26 +09:00
parent db4741de5c
commit c7d87005be

7
69.md
View File

@ -42,7 +42,12 @@ A poll event:
"tags": [
["e", <32-bytes hex of the id of the poll event>, <primary poll host relay URL>],
["p", <32-bytes hex of the key>, <primary poll host relay URL>],
["poll_options", "[[0, 'poll option 0 description string'], [1, 'poll option 1 description string'], [<n>, 'poll option <n> description string']]"],
["poll_options", "{
\"0\": \"poll option 0 description string\",
\"1\": \"poll option 1 description string\",
\"n\": \"poll option <n> description string\"
}"
],
["value_maximum", "maximum satoshi value for inclusion in tally"],
["value_minimum", "minimum satoshi value for inclusion in tally"],
["consensus_threshold", "required percentage to attain consensus <0..100>"],