Emits
Clock
map modules at set intervals.
1m
,3m
,5m
,30m
,1h
,2h
,6h
,8h
,12h
,1d
,3d
,m
,y
are supported usingparams
.
gh repo clone pinax-network/substreams-clock
cd substreams-clock
make
make gui
graph TD;
clock[map: clock];
sf.substreams.v1.Clock[source: sf.substreams.v1.Clock] --> clock;
store_clock[store: store_clock];
clock --> store_clock;
map_clock[map: map_clock];
map_clock:params[params] --> map_clock;
clock --> map_clock;
store_clock -- deltas --> map_clock;
{
"id": "ab79f822909750f88dfb9dd0350c1ebe98d5495e9c969cdeb6e0ac993b80175b",
"number": "6912",
"timestamp": "2015-07-31T00:00:01Z"
}
Name: clock
Initial block: 0
Kind: map
Input: source: sf.substreams.v1.Clock
Output Type: proto:sf.substreams.v1.Clock
Hash: e32f1a6a86b08f7285391a1ff7afa137890bd69c
Name: store_clock
Initial block: 0
Kind: store
Input: map: clock
Value Type: string
Update Policy: set
Hash: c19e41a32c4fc4515c64a7bc7df4b5f9c750f252
Name: map_clock
Initial block: 0
Kind: map
Input: params: 1d
Input: map: clock
Input: store: store_clock
Output Type: proto:sf.substreams.v1.Clock
Hash: 159236d0b300b149a972744aef40f79c805df3d0