upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/15.md
diff options
context:
space:
mode:
authorfiatjaf_ <fiatjaf@gmail.com>2023-08-13 13:47:45 -0300
committerGitHub <noreply@github.com>2023-08-13 13:47:45 -0300
commit72bb8a128b2d7d3c2c654644cd68d0d0fe58a3b1 (patch)
tree9d2ee236bf72d540b5eca364a1ff60449dd9aa04 /15.md
parenta5047326d4d7c28e66c5d1262c252b86a1c8fe67 (diff)
merge nips 12, 16, 20 and 33 into nip 01 (#703)
Co-authored-by: Viktor Vsk <me@viktorvsk.com>
Diffstat (limited to '15.md')
-rw-r--r--15.md24
1 files changed, 12 insertions, 12 deletions
diff --git a/15.md b/15.md
index f8df328..f9e4b79 100644
--- a/15.md
+++ b/15.md
@@ -4,7 +4,7 @@ NIP-15
4Nostr Marketplace (for resilient marketplaces) 4Nostr Marketplace (for resilient marketplaces)
5----------------------------------- 5-----------------------------------
6 6
7`draft` `optional` `author:fiatjaf` `author:benarc` `author:motorina0` `author:talvasconcelos` 7`draft` `optional` `author:fiatjaf` `author:benarc` `author:motorina0` `author:talvasconcelos`
8 8
9> Based on https://github.com/lnbits/Diagon-Alley 9> Based on https://github.com/lnbits/Diagon-Alley
10 10
@@ -33,13 +33,13 @@ The `merchant` admin software can be purely clientside, but for `convenience` an
33## `Merchant` publishing/updating products (event) 33## `Merchant` publishing/updating products (event)
34 34
35A merchant can publish these events: 35A merchant can publish these events:
36| Kind | | Description | NIP | 36| Kind | | Description |
37|---------|------------------|---------------------------------------------------------------------------------------------------------------|-----------------------------------------| 37| --------- | ------------------ | --------------------------------------------------------------------------------------------------------------- |
38| `0 ` | `set_meta` | The merchant description (similar with any `nostr` public key). | [NIP01 ](https://github.com/nostr-protocol/nips/blob/master/01.md) | 38| `0 ` | `set_meta` | The merchant description (similar with any `nostr` public key). |
39| `30017` | `set_stall` | Create or update a stall. | [NIP33](https://github.com/nostr-protocol/nips/blob/master/33.md) (Parameterized Replaceable Event) | 39| `30017` | `set_stall` | Create or update a stall. |
40| `30018` | `set_product` | Create or update a product. | [NIP33](https://github.com/nostr-protocol/nips/blob/master/33.md) (Parameterized Replaceable Event) | 40| `30018` | `set_product` | Create or update a product. |
41| `4 ` | `direct_message` | Communicate with the customer. The messages can be plain-text or JSON. | [NIP04](https://github.com/nostr-protocol/nips/blob/master/04.md) | 41| `4 ` | `direct_message` | Communicate with the customer. The messages can be plain-text or JSON. |
42| `5 ` | `delete` | Delete a product or a stall. | [NIP09](https://github.com/nostr-protocol/nips/blob/master/09.md) | 42| `5 ` | `delete` | Delete a product or a stall. |
43 43
44### Event `30017`: Create or update a stall. 44### Event `30017`: Create or update a stall.
45 45
@@ -71,7 +71,7 @@ Fields that are not self-explanatory:
71```json 71```json
72 "tags": [["d", <String, id of stall]] 72 "tags": [["d", <String, id of stall]]
73``` 73```
74 - the `d` tag is required by [NIP33](https://github.com/nostr-protocol/nips/blob/master/33.md). Its value MUST be the same as the stall `id`. 74 - the `d` tag is required, its value MUST be the same as the stall `id`.
75 75
76### Event `30018`: Create or update a product 76### Event `30018`: Create or update a product
77 77
@@ -109,8 +109,8 @@ _Open_: better to move `spec` in the `tags` section of the event?
109 ] 109 ]
110``` 110```
111 111
112 - the `d` tag is required by [NIP33](https://github.com/nostr-protocol/nips/blob/master/33.md). Its value MUST be the same as the product `id`. 112 - the `d` tag is required, its value MUST be the same as the product `id`.
113 - the `t` tag is as searchable tag ([NIP12](https://github.com/nostr-protocol/nips/blob/master/12.md)). It represents different categories that the product can be part of (`food`, `fruits`). Multiple `t` tags can be present. 113 - the `t` tag is as searchable tag, it represents different categories that the product can be part of (`food`, `fruits`). Multiple `t` tags can be present.
114 114
115## Checkout events 115## Checkout events
116 116
@@ -152,7 +152,7 @@ The below json goes in content of [NIP04](https://github.com/nostr-protocol/nips
152``` 152```
153 153
154_Open_: is `contact.nostr` required? 154_Open_: is `contact.nostr` required?
155 155
156 156
157### Step 2: `merchant` request payment (event) 157### Step 2: `merchant` request payment (event)
158 158