Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pinax-network/substreams-clock

Subgraphs for blockchain data
https://github.com/pinax-network/substreams-clock

Last synced: 11 days ago
JSON representation

Subgraphs for blockchain data

Awesome Lists containing this project

README

        

# `Clock` Substream

[![Build Status](https://github.com/pinax-network/substreams-clock/actions/workflows/test.yml/badge.svg)](https://github.com/pinax-network/substreams-clock/actions/workflows/test.yml)
![Version](https://img.shields.io/github/v/release/pinax-network/substreams-clock)
![License](https://img.shields.io/github/license/pinax-network/substreams-clock)

> Emits `Clock` map modules at set intervals.
>
> `1m`,`3m`,`5m`,`30m`,`1h`,`2h`,`6h`,`8h`,`12h`,`1d`,`3d`,`m`,`y` are supported using `params`.

## Quickstart

```
gh repo clone pinax-network/substreams-clock
cd substreams-clock
make
make gui
```

## Releases `.spkg`

-

## Mermaid graph

```mermaid
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;
```

## Map Outputs

### `graph_out`

```json
{
"id": "ab79f822909750f88dfb9dd0350c1ebe98d5495e9c969cdeb6e0ac993b80175b",
"number": "6912",
"timestamp": "2015-07-31T00:00:01Z"
}
```

### Modules

```yaml
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
```