diff options
Diffstat (limited to 'desk/sur')
-rw-r--r-- | desk/sur/nostr.hoon | 10 | ||||
-rw-r--r-- | desk/sur/nostrill.hoon | 22 | ||||
-rw-r--r-- | desk/sur/nostrill/comms.hoon | 22 |
3 files changed, 45 insertions, 9 deletions
diff --git a/desk/sur/nostr.hoon b/desk/sur/nostr.hoon index ff5ad6b..a1b54d1 100644 --- a/desk/sur/nostr.hoon +++ b/desk/sur/nostr.hoon @@ -77,10 +77,12 @@ $% [%event sub-id=@t =event] :: https://github.com/sesseor/nostr-relays-list/blob/main/relays.txt ++ public-relays ^- (list @t) - :~ 'wss://nos.lol' - :: 'wss://relay.damus.io' - :: 'wss://nostr.wine' - :: 'wss://offchain.pub' + :~ + 'wss://n.urbit.cloud' + 'wss://nos.lol' + 'wss://relay.damus.io' + 'wss://nostr.wine' + 'wss://offchain.pub' == :: 'wss://knostr.neutrine.com' -- diff --git a/desk/sur/nostrill.hoon b/desk/sur/nostrill.hoon index a9ef8f3..70ce480 100644 --- a/desk/sur/nostrill.hoon +++ b/desk/sur/nostrill.hoon @@ -1,4 +1,4 @@ -/- trill=trill-feed, tp=trill-post, nostr +/- nostr, trill=trill-feed, tp=trill-post, gate=trill-gate |% +$ state state-0 +$ state-0 @@ -8,6 +8,7 @@ keys=(lest keys:nostr) :: cycled, i.keys is current one :: own feed feed=feed:trill + feed-perms=gate:gate :: nostr feed from relays =nostr-feed :: profiles @@ -34,12 +35,17 @@ $: pub=(unit @ux) |% +$ poke $% [%fols fols-poke] + [%begs begs-poke] [%post post-poke] :: [%reac reac-poke] [%prof prof-poke] [%keys ~] :: cycle-keys [%rela relay-poke] == + +$ begs-poke + $% [%feed p=@p] + [%thread p=@p id=@da] + == +$ post-poke $% [%add content=@t] [%rt id=@ux pubkey=@ux relay=@t] :: NIP-18 @@ -50,15 +56,21 @@ $: pub=(unit @ux) [%del pubkey=@ux] == +$ prof-poke - $% [%add pubkey=@ux meta=user-meta:nostr] - [%del pubkey=@ux] + $% [%add meta=user-meta:nostr] + [%del ~] == +$ relay-poke - $% [%send host=@p id=@ relays=(list @t)] + $% [%add p=@t] + [%del p=@t] + :: + [%sync ~] + :: send event for... relaying + [%send host=@p id=@ relays=(list @t)] == :: facts +$ fact - $% [%post post-fact] + $% [%nostr feed=nostr-feed] + [%post post-fact] [%enga p=post-wrapper reaction=*] == +$ post-fact diff --git a/desk/sur/nostrill/comms.hoon b/desk/sur/nostrill/comms.hoon new file mode 100644 index 0000000..d3dc8e1 --- /dev/null +++ b/desk/sur/nostrill/comms.hoon @@ -0,0 +1,22 @@ +/- sur=nostrill, nsur=nostr, feed=trill-feed, post=trill-post +|% ++$ poke + $% [%req req] + [%res res] + [%dbug *] + == ++$ req + $% [%feed ~] + [%thread id=@da] + [%prof ~] + == ++$ res + $% [%ok p=res-data] + [%ng msg=@t] + == ++$ res-data + $% [%feed =fc:feed] + [%thread p=full-node:post] + [%prof p=user-meta:nsur] + == +-- |