diff options
| -rw-r--r-- | 88.md | 10 |
1 files changed, 5 insertions, 5 deletions
| @@ -50,7 +50,7 @@ Example Event | |||
| 50 | 50 | ||
| 51 | ### Responses | 51 | ### Responses |
| 52 | 52 | ||
| 53 | The response event is a `kind:1018` event. It contains an e tag with the poll event it is referencing, followed by one or more response tags. | 53 | The response event is a `kind:30068` event. It contains a d tag with the poll event it is referencing, followed by one or more response tags. |
| 54 | 54 | ||
| 55 | - **response** : The tag contains "response" as it's first positional argument followed by the option Id selected. | 55 | - **response** : The tag contains "response" as it's first positional argument followed by the option Id selected. |
| 56 | 56 | ||
| @@ -61,11 +61,11 @@ Example Response Event | |||
| 61 | "content": "", | 61 | "content": "", |
| 62 | "created_at": 1720097117, | 62 | "created_at": 1720097117, |
| 63 | "id": "60a005e32e9596c3f544a841a9bc4e46d3020ca3650d6a739c95c1568e33f6d8", | 63 | "id": "60a005e32e9596c3f544a841a9bc4e46d3020ca3650d6a739c95c1568e33f6d8", |
| 64 | "kind": 1018, | 64 | "kind": 30068, |
| 65 | "pubkey": "1bc70a0148b3f316da33fe7e89f23e3e71ac4ff998027ec712b905cd24f6a411", | 65 | "pubkey": "1bc70a0148b3f316da33fe7e89f23e3e71ac4ff998027ec712b905cd24f6a411", |
| 66 | "sig": "30071a633c65db8f3a075c7a8de757fbd8ce65e3607f4ba287fe6d7fbf839a380f94ff4e826fbba593f6faaa13683b7ea9114ade140720ecf4927010ebf3e44f", | 66 | "sig": "30071a633c65db8f3a075c7a8de757fbd8ce65e3607f4ba287fe6d7fbf839a380f94ff4e826fbba593f6faaa13683b7ea9114ade140720ecf4927010ebf3e44f", |
| 67 | "tags": [ | 67 | "tags": [ |
| 68 | ["e", "1fc80cf813f1af33d5a435862b7ef7fb96b47e68a48f1abcadf8081f5a545550"], | 68 | ["d", "1fc80cf813f1af33d5a435862b7ef7fb96b47e68a48f1abcadf8081f5a545550"], |
| 69 | ["response", "gga6cdnqj"], | 69 | ["response", "gga6cdnqj"], |
| 70 | ["response", "m3agjsdq1"] | 70 | ["response", "m3agjsdq1"] |
| 71 | ] | 71 | ] |
| @@ -74,7 +74,7 @@ Example Response Event | |||
| 74 | 74 | ||
| 75 | ### Poll Types | 75 | ### Poll Types |
| 76 | 76 | ||
| 77 | Poll Types can be configured in the settings object of the poll, the setting dictates how multiple response tags are handled in the `kind:1018` event. | 77 | Poll Types can be configured in the settings object of the poll, the setting dictates how multiple response tags are handled in the `kind:30068` event. |
| 78 | 78 | ||
| 79 | - **PollType: singlechoice**: The first response tag is to be considered the actual response. | 79 | - **PollType: singlechoice**: The first response tag is to be considered the actual response. |
| 80 | - **PollType: multiplechoice**: The first response tag pointing to each id is considered the actual response, without considering the order of the response tags. | 80 | - **PollType: multiplechoice**: The first response tag pointing to each id is considered the actual response, without considering the order of the response tags. |
| @@ -82,7 +82,7 @@ Poll Types can be configured in the settings object of the poll, the setting dic | |||
| 82 | 82 | ||
| 83 | ### Counting Results | 83 | ### Counting Results |
| 84 | 84 | ||
| 85 | Results can be queried by fetching `kind:1018` events from the relays specified in the poll. | 85 | Results can be queried by fetching `kind:30068` events from the relays specified in the poll. |
| 86 | The results displayed should only be 1 vote event per pubkey. | 86 | The results displayed should only be 1 vote event per pubkey. |
| 87 | In case of multiple events for a pubkey, the event with the largest timestamp should be considered. | 87 | In case of multiple events for a pubkey, the event with the largest timestamp should be considered. |
| 88 | 88 | ||