From d133b6f0099f1aac968a69c9e321e745f3fd000d Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 30 Dec 2023 10:29:05 -0600 Subject: [PATCH] Add Event<30361> fixture --- docs/events.md | 21 +++++++++++++++++++++ fixtures/events/event-30361.json | 15 +++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 fixtures/events/event-30361.json diff --git a/docs/events.md b/docs/events.md index 8f011e4..f19845e 100644 --- a/docs/events.md +++ b/docs/events.md @@ -9,6 +9,27 @@ User events have the following tags: - `d` - pubkey of the user. - `name` - NIP-05 username granted to the user, without the domain. - `role` - one of `admin` or `user`. +- `origin` - the origin of the user's NIP-05, at the time the event was published. + +Example: + +```json +{ + "id": "d6ae2f320ae163612bf28080e7c6e55b228ee39bfa04ad50baab2e51022d4d59", + "kind": 30361, + "pubkey": "4cfc6ceb07bbe2f5e75f746f3e6f0eda53973e0374cd6bdbce7a930e10437e06", + "content": "", + "created_at": 1691568245, + "tags": [ + ["d", "79c2cae114ea28a981e7559b4fe7854a473521a8d22a66bbab9fa248eb820ff6"], + ["name", "alex"], + ["role", "user"], + ["origin", "https://ditto.ngrok.app"], + ["alt", "@alex@ditto.ngrok.app's account was updated by the admins of ditto.ngrok.app"] + ], + "sig": "fc12db77b1c8f8aa86c73b617f0cd4af1e6ba244239eaf3164a292de6d39363f32d6b817ffff796ace7a103d75e1d8e6a0fb7f618819b32d81a953b4a75d7507" +} +``` ## NIP-78 diff --git a/fixtures/events/event-30361.json b/fixtures/events/event-30361.json new file mode 100644 index 0000000..5844000 --- /dev/null +++ b/fixtures/events/event-30361.json @@ -0,0 +1,15 @@ +{ + "id": "d6ae2f320ae163612bf28080e7c6e55b228ee39bfa04ad50baab2e51022d4d59", + "kind": 30361, + "pubkey": "4cfc6ceb07bbe2f5e75f746f3e6f0eda53973e0374cd6bdbce7a930e10437e06", + "content": "", + "created_at": 1691568245, + "tags": [ + ["d", "79c2cae114ea28a981e7559b4fe7854a473521a8d22a66bbab9fa248eb820ff6"], + ["name", "alex"], + ["role", "user"], + ["origin", "https://ditto.ngrok.app"], + ["alt", "@alex@ditto.ngrok.app's account was updated by the admins of ditto.ngrok.app"] + ], + "sig": "fc12db77b1c8f8aa86c73b617f0cd4af1e6ba244239eaf3164a292de6d39363f32d6b817ffff796ace7a103d75e1d8e6a0fb7f618819b32d81a953b4a75d7507" +} \ No newline at end of file