Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dapphub/locktopus
sqlite file of locked values in the dmap
https://github.com/dapphub/locktopus
Last synced: about 2 months ago
JSON representation
sqlite file of locked values in the dmap
- Host: GitHub
- URL: https://github.com/dapphub/locktopus
- Owner: dapphub
- Created: 2022-05-26T05:24:31.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-06-06T11:45:54.000Z (over 2 years ago)
- Last Synced: 2024-06-02T05:35:39.164Z (4 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 6
- Watchers: 9
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
finality // 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 `, and have
it resolve via locktopus if entry is cached, otherwise look it up
and cache it if locked.```
dmap walk
```Returns:
```
meta: ...
data: ...
```