diff options
| author | Pablo Fernandez <p@f7z.io> | 2023-11-23 17:52:48 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-23 17:52:48 +0200 |
| commit | 60256a62675a165c4d4fd9811a19a9cbf6a9e7fd (patch) | |
| tree | 5c450154d373caafc37f324dd01e20338308c9d6 /75.md | |
| parent | 43d50ee42409252a1313928cd437d55fd7bf7bf4 (diff) | |
| parent | 7822a8b12670312aff104ddc03066425882f739d (diff) | |
Merge branch 'master' into nip88
Diffstat (limited to '75.md')
| -rw-r--r-- | 75.md | 19 |
1 files changed, 12 insertions, 7 deletions
| @@ -1,8 +1,10 @@ | |||
| 1 | # NIP-75 | 1 | NIP-75 |
| 2 | ====== | ||
| 2 | 3 | ||
| 3 | ## Zap Goals | 4 | Zap Goals |
| 5 | --------- | ||
| 4 | 6 | ||
| 5 | `draft` `optional` `author:verbiricha` | 7 | `draft` `optional` |
| 6 | 8 | ||
| 7 | This NIP defines an event for creating fundraising goals. Users can contribute funds towards the goal by zapping the goal event. | 9 | This NIP defines an event for creating fundraising goals. Users can contribute funds towards the goal by zapping the goal event. |
| 8 | 10 | ||
| @@ -27,7 +29,7 @@ Example event: | |||
| 27 | ["amount", "210000"], | 29 | ["amount", "210000"], |
| 28 | ], | 30 | ], |
| 29 | "content": "Nostrasia travel expenses", | 31 | "content": "Nostrasia travel expenses", |
| 30 | ...other fields | 32 | ... |
| 31 | ``` | 33 | ``` |
| 32 | 34 | ||
| 33 | The following tags are OPTIONAL. | 35 | The following tags are OPTIONAL. |
| @@ -43,7 +45,8 @@ The following tags are OPTIONAL. | |||
| 43 | ["closed_at", "<unix timestamp in seconds>"], | 45 | ["closed_at", "<unix timestamp in seconds>"], |
| 44 | ], | 46 | ], |
| 45 | "content": "Nostrasia travel expenses", | 47 | "content": "Nostrasia travel expenses", |
| 46 | ...other fields | 48 | ... |
| 49 | } | ||
| 47 | ``` | 50 | ``` |
| 48 | 51 | ||
| 49 | The goal MAY include an `r` or `a` tag linking to a URL or parameterized replaceable event. | 52 | The goal MAY include an `r` or `a` tag linking to a URL or parameterized replaceable event. |
| @@ -54,12 +57,14 @@ Parameterized replaceable events can link to a goal by using a `goal` tag specif | |||
| 54 | 57 | ||
| 55 | ```json | 58 | ```json |
| 56 | { | 59 | { |
| 57 | "kind": 3XXXX, | 60 | ... |
| 61 | "kind": 3xxxx, | ||
| 58 | "tags": [ | 62 | "tags": [ |
| 59 | ... | 63 | ... |
| 60 | ["goal", "<event id>", "<Relay URL (optional)>"], | 64 | ["goal", "<event id>", "<Relay URL (optional)>"], |
| 61 | ], | 65 | ], |
| 62 | ...other fields | 66 | ... |
| 67 | } | ||
| 63 | ``` | 68 | ``` |
| 64 | 69 | ||
| 65 | ## Client behavior | 70 | ## Client behavior |