Skip to content

Releases: pinax-network/substreams-clock

v0.3.0

21 Oct 02:09
Compare
Choose a tag to compare

Clock Substream

Emits Clock map modules at set intervals.

1m,3m,5m,30m,1h,2h,6h,8h,12h,1d,3d,m,y are supported using params.

Map Outputs

graph_out

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

Modules

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

v0.2.0

07 Jul 11:33
Compare
Choose a tag to compare
  • add min_block store & index for 24 hour intervals
  • replace graph_out => map_clock

v0.1.0

26 Sep 18:53
Compare
Choose a tag to compare

Clock Substream

Build Status Version License

Block ID, Number & Timestamp

Quickstart

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

Releases .spkg

Mermaid graph

graph TD;
  graph_out[map: graph_out];
  sf.substreams.v1.Clock[source: sf.substreams.v1.Clock] --> graph_out;

Map Outputs

graph_out

{
  "entityChanges": [
    {
      "entity": "Clock",
      "id": "542d7e9a07a94d93879a51452d6f077a461d311018f0b03377b2d877bb72cdf0",
      "ordinal": "0",
      "operation": "OPERATION_CREATE",
      "fields": [
        {
          "name": "number",
          "newValue": {
            "bigint": "18221781"
          }
        },
        {
          "name": "seconds",
          "newValue": {
            "bigint": "1695753443"
          }
        },
        {
          "name": "nanos",
          "newValue": {
            "bigint": "0"
          }
        },
        {
          "name": "timestamp",
          "newValue": {
            "string": "2023-09-26T18:37:23Z"
          }
        }
      ]
    }
  ]
}

Modules

Package name: clock
Version: v0.1.0
Doc: Block ID, number & timestamp
Modules:
----
Name: graph_out
Initial block: 0
Kind: map
Output Type: proto:sf.substreams.sink.entity.v1.EntityChanges
Hash: d2913e1f3c4966817a7cdbbd49db407a1a81ebc9