diff options
Diffstat (limited to '15.md')
| -rw-r--r-- | 15.md | 19 |
1 files changed, 10 insertions, 9 deletions
| @@ -73,10 +73,10 @@ Fields that are not self-explanatory: | |||
| 73 | 73 | ||
| 74 | **Event Tags** | 74 | **Event Tags** |
| 75 | 75 | ||
| 76 | ```json | 76 | ```jsonc |
| 77 | { | 77 | { |
| 78 | "tags": [["d", <string, id of stall]], | 78 | "tags": [["d", <string, id of stall]], |
| 79 | ... | 79 | // other fields... |
| 80 | } | 80 | } |
| 81 | ``` | 81 | ``` |
| 82 | - the `d` tag is required, its value MUST be the same as the stall `id`. | 82 | - the `d` tag is required, its value MUST be the same as the stall `id`. |
| @@ -124,12 +124,12 @@ Fields that are not self-explanatory: | |||
| 124 | 124 | ||
| 125 | **Event Tags** | 125 | **Event Tags** |
| 126 | 126 | ||
| 127 | ```json | 127 | ```jsonc |
| 128 | "tags": [ | 128 | "tags": [ |
| 129 | ["d", <string, id of product], | 129 | ["d", <string, id of product], |
| 130 | ["t", <string (optional), product category], | 130 | ["t", <string (optional), product category], |
| 131 | ["t", <string (optional), product category], | 131 | ["t", <string (optional), product category], |
| 132 | ... | 132 | // other fields... |
| 133 | ], | 133 | ], |
| 134 | ... | 134 | ... |
| 135 | ``` | 135 | ``` |
| @@ -158,7 +158,7 @@ The below JSON goes in content of [NIP-04](04.md). | |||
| 158 | "type": 0, | 158 | "type": 0, |
| 159 | "name": <string (optional), ???>, | 159 | "name": <string (optional), ???>, |
| 160 | "address": <string (optional), for physical goods an address should be provided>, | 160 | "address": <string (optional), for physical goods an address should be provided>, |
| 161 | "message": "<string (optional), message for merchant>, | 161 | "message": <string (optional), message for merchant>, |
| 162 | "contact": { | 162 | "contact": { |
| 163 | "nostr": <32-bytes hex of a pubkey>, | 163 | "nostr": <32-bytes hex of a pubkey>, |
| 164 | "phone": <string (optional), if the customer wants to be contacted by phone>, | 164 | "phone": <string (optional), if the customer wants to be contacted by phone>, |
| @@ -237,7 +237,7 @@ Create a customized user experience using the `naddr` from [NIP-19](19.md#sharea | |||
| 237 | 237 | ||
| 238 | **Event Content** | 238 | **Event Content** |
| 239 | 239 | ||
| 240 | ```json | 240 | ```jsonc |
| 241 | { | 241 | { |
| 242 | "name": <string (optional), market name>, | 242 | "name": <string (optional), market name>, |
| 243 | "about": <string (optional), market description>, | 243 | "about": <string (optional), market description>, |
| @@ -248,7 +248,7 @@ Create a customized user experience using the `naddr` from [NIP-19](19.md#sharea | |||
| 248 | "darkMode": <bool, true/false> | 248 | "darkMode": <bool, true/false> |
| 249 | }, | 249 | }, |
| 250 | "merchants": [array of pubkeys (optional)], | 250 | "merchants": [array of pubkeys (optional)], |
| 251 | ... | 251 | // other fields... |
| 252 | } | 252 | } |
| 253 | ``` | 253 | ``` |
| 254 | 254 | ||
| @@ -290,10 +290,11 @@ This event leverages naddr to enable comprehensive customization and sharing of | |||
| 290 | 290 | ||
| 291 | ### Event `1021`: Bid | 291 | ### Event `1021`: Bid |
| 292 | 292 | ||
| 293 | ```json | 293 | ```jsonc |
| 294 | { | 294 | { |
| 295 | "content": <int, amount of sats>, | 295 | "content": <int, amount of sats>, |
| 296 | "tags": [["e", <event ID of the auction to bid on>]], | 296 | "tags": [["e", <event ID of the auction to bid on>]], |
| 297 | // other fields... | ||
| 297 | } | 298 | } |
| 298 | ``` | 299 | ``` |
| 299 | 300 | ||
| @@ -335,4 +336,4 @@ Customer support is handled over whatever communication method was specified. If | |||
| 335 | 336 | ||
| 336 | ## Additional | 337 | ## Additional |
| 337 | 338 | ||
| 338 | Standard data models can be found <a href="https://raw.githubusercontent.com/lnbits/nostrmarket/main/models.py">here</a> | 339 | Standard data models can be found [here](https://raw.githubusercontent.com/lnbits/nostrmarket/main/models.py) |