urbit / NEAR

Public repo for Urbit Labs projects
MIT License
4 stars 3 forks source link

Update poke() method to route pokes to %near-handler #3

Closed hanfel-dovned closed 9 months ago

hanfel-dovned commented 9 months ago

Prerequisites: #1 and #2

The NEAR Urbit object's poke() method should still take an agent, a mark, and some data, but rather than using those directly as the parameters for the wrapped urbit.poke(), hardcode in the agent and mark fields to point at %near-handler, and send the data as [%poke agent mark data]. %near-handler will then take use this data to construct a poke to the true receiving agent.

Demo: an Urbit app, written using the forked NEAR Social VM library, that simply displays a blank page and prints a message in dojo (or adds a pal, or something else trivial) via %near-handler.

bonbud-macryg commented 9 months ago

Closed by #7.