Skip to content

sqlite file of locked values in the dmap

Notifications You must be signed in to change notification settings

stobiewan/locktopus

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

locktopus

Core term

[ when slot zone name meta data ]

  • when: time entry was locked in the dmap (last event block time)
  • slot: the slot in dmap data is stored at
  • zone: dmap namezone
  • name: the key that was set
  • meta: the metadata, bit 0 is lock flag
  • data: the data

Core rule

Only add values that are locked in the dmap.

Config

~/.locktopus/
    config.jams
    locktopus.sqlite

config.jams

{
  eth_rpc  <url>
  finality <seconds> // time from lock time to last confirmed block time
}

Command

The locktopus is a cache for dmap walk and other dmap resolvers. In this repo make a command with just dmap walk <dpath>, and have it resolve via locktopus if entry is cached, otherwise look it up and cache it if locked.

dmap walk <dpath>

Returns:

meta: ...
data: ...

About

sqlite file of locked values in the dmap

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%