adding more nip-86 apis. #39
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nostr/chorus#39
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
here is my suggestion:
liveconnectionsuptimetotaleventstotal| receives an input which is a filter.delete| removes an event. (im not sure if the banevent command dose the same?)updatenip11| instead of passing keys one by one, inputs a whole json object and replace non-null ones with current document + add new ones. if it was present and set to null, it would remove it. this is the current model in immortal which reduces number of apis. (but nip-86 incompatible)add/removeadmin| inputs a pubkey to grant premissons to them, a list of command names may be present to limit access level.Ok I would maybe rename or tweak these a little. We already merged the first one but still I would change it.
baneventdeletes an event and prevents it from reappearing which is essentially the same as any delete would do.numconnections:[]<number>uptime:[]<number-of-seconds>bandwithstats:[]["bytes_received": <number>, "bytes_sent": <number>]storagestats:[]["num_events": <number>, "event_bytes": <number>, "num_files": <number>, "file_bytes": <number>]grantadmin:[<32-byte-hex-public-key>]truerevokeadmin:[<32-byte-hex-public-key>]trueYou can add
updatenip11but chorus can't easily support it (the NIP-11 is hard coded)Chorus really needs the
alloweventandallowpubkeyfunctionality. Events which don't pass a test have to go through an approval process to become publicly readable at which point either one of those can make it readable.i agree with your changes. im going to implement them.
what about total event counts and stuff like this? i can call the relay publicly using
COUNTas well, but not sure which is better.about nip11 we can discuss in more details, maybe keeping both, idk really.
I think we need to discuss the final NIP-86 methods and details in NIPs repo first, then we can go for a full implementation here.