Add 30019

Add an event `30019` to use `naddr` for customized UI/UX
This commit is contained in:
Tiago Vasconcelos 2023-05-29 11:39:45 +01:00 committed by GitHub
parent b12c93c452
commit 6ffa75b994
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

19
15.md
View File

@ -204,6 +204,25 @@ The below json goes in `content` of [NIP04](https://github.com/nostr-protocol/ni
"shipped": <Bool, true/false has been shipped>,
}
```
## Customize Marketplace
Create a customized user experience using the `naddr` from [NIP-19](https://github.com/nostr-protocol/nips/blob/master/19.md#shareable-identifiers-with-extra-metadata). Include relays, merchants, color, banner, etc...
### Event `30019`: Create or update marketplace UI/UX
**Event Content**:
```json
{
"name": <String (optional), market name>,
"about": <String (optional), market description>,
"ui": {
"picture": <String (optional), market logo image URL>,
"banner": <String (optional), market logo banner URL>,
"theme": <String (optional), market theme>
},
"merchants": <[String] (optional), array of pubkeys>,
...
}
```
## Customer support events