Skip to content

Releases: pinax-network/substreams-sink-csv

v0.2.7

03 Mar 01:18
4b8152d
Compare
Choose a tag to compare

What's Changed

  • improve logging by @DenisCarriere in #8
    • Fix last_block_num & last_timestamp from not updating
    • Added extra logging on start
    • Converted logging to JSON format

Full Changelog: v0.2.6...v0.2.7

v0.2.6

02 Mar 23:08
852bf85
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.2.5...v0.2.6

v0.2.5

02 Mar 02:19
7a6f226
Compare
Choose a tag to compare

What's new

  • Improve SQL CREATE TABLE schema handling
$ substreams-sink-csv --schema schema.sql

Tested with

CREATE TABLE factory_pair_created (
    "evt_tx_hash" VARCHAR(64),
    "evt_index" INT,
    "evt_block_time" TIMESTAMP,
    "evt_block_number" DECIMAL,
    "pair" VARCHAR(40),
    "param3" DECIMAL,
    "token0" VARCHAR(40),
    "token1" VARCHAR(40),
    PRIMARY KEY(evt_tx_hash,evt_index)
)
CREATE TABLE block_meta
(
    id          TEXT NOT NULL CONSTRAINT block_meta_pk PRIMARY KEY,
    at          TIMESTAMP,
    number      BIGINT,
    hash        TEXT,
    parent_hash TEXT,
    timestamp   TIMESTAMP
);

What's Changed

Full Changelog: v0.2.4...v0.2.5

v0.2.4

01 Mar 17:11
e5ee262
Compare
Choose a tag to compare

What's new

  • fix issue with reading local spkg file

Following .env should work:

// local file
MANIFEST=./src/substreams-eth-block-meta-v0.5.1.spkg
MANIFEST=substreams-eth-block-meta-v0.5.1.spkg
MANIFEST=/usr/local/share/substreams-eth-block-meta-v0.5.1.spkg

// remote URL
MANIFEST=https://github.com/streamingfast/substreams-eth-block-meta/releases/download/v0.5.1/substreams-eth-block-meta-v0.5.1.spkg
  • add session logging
[substreams-sink-csv]
trace_id=3b26b6f6e35c425111b4ada6ad93f765 start_block=19340556 module_hash=3b180e1d2390afef1f22651581304e04245ba001 workers=4
last_block_num=0 last_timestamp= blocks=0 rows=0 bytes_read=310141454 bytes_written=0
  • add *.session file
{
  "traceId": "3b26b6f6e35c425111b4ada6ad93f765",
  "resolvedStartBlock": "19340556",
  "linearHandoffBlock": "19340556",
  "maxParallelWorkers": "4"
}

What's Changed

New Contributors

Full Changelog: https://github.com/pinax-network/substreams-sink-csv/commits/v0.2.4