const Subpath
Subpath is the subpath of a realm's gnotif identity: me := cur.Sub(gnotif.Subpath).
Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.
Package gnotif is a registry of notification triggers. Each trigger names a realm and an event type to watch, and the...
Package gnotif is a registry of notification triggers. Each trigger names a realm and an event type to watch, and the text of the notification that gnotif servers send when a matching event lands on chain. A later registry version follows the rules in https://gnotif.xyz/docs/how-it-works/#rules-for-a-new-registry-version.
Active lists target's active trigger ids, comma-separated, oldest first.
Drop removes target's listed active triggers, ids separated by commas. Spaces around an id are ignored. Only target's namespace owner may call it, directly, with their own key. A call that lists an id more than once, or one that is not an active trigger of target, removes nothing. Drop leaves the realm's handle live: Revoke stops the realm from setting them again.
Render serves "" (the first page), "page/N", "trigger/<id>" and "target/<path>".
Revoke ends target's handle: its methods panic from then on, and target's triggers stay. The realm can Open a new handle. Only target's namespace owner may call it, directly, with their own key.
Open returns the handle that changes the triggers of the realm whose gnotif identity calls it. It panics while the realm holds a handle its namespace owner has not revoked, and unless that owner signed the transaction and sent it straight to the realm.
Handle changes the triggers of the realm that opened it. Each method also needs that realm's gnotif identity as its caller, so the pointer alone is useless to any other realm.
Remove removes the trigger under name, and with it every user's choice to receive it.
Set stores t under name and returns its id. A new name gets a new id. On a name in use, t must watch the same event, filter and param: the id stays, so users who turned the trigger on keep it.
Trigger is an alias, so a dapp imports only the registry.