This commit is contained in:
Peter Harpending
2026-12-03 15:33:34 -08:00
parent 977cc48718
commit 23ec148c18
8 changed files with 795 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
contract interface Rubicon =
entrypoint lookup: () => list(string * int * string * string * address * bytes)
contract Names =
type rbx_tuple = string * int * string * string * address * bytes
type state = map(string, Rubicon)
entrypoint init(): state =
{}
stateful entrypoint register(name: string, addr: Rubicon): unit =
put(state{[name] = addr})
stateful entrypoint lookup(name: string): list(rbx_tuple) =
Map.lookup(name, state)