Skip to content

Releases: substreams-js/substreams-sink-entity-changes

v0.3.11

07 Mar 14:44
Compare
Choose a tag to compare
  • fix getValuesInEntityChange parsing null & undefined

v0.3.10

07 Mar 14:14
Compare
Choose a tag to compare
  • add legacy operations from EntityChanges v1.1.0
    • "UNSET"
    • "CREATE"
    • "UPDATE"
    • "DELETE"
    • "FINAL"

v0.3.6

23 Feb 01:46
Compare
Choose a tag to compare
  • make ordinal optional type
    • Deprecated, this is not used within graph-node.

v0.3.4

08 Nov 16:21
183d1bc
Compare
Choose a tag to compare

What's Changed

  • Changed the format for extracted arrays from entity changes by @JulienR1 in #3

Full Changelog: v0.3.3...v0.3.4

v0.3.3

01 Nov 15:44
Compare
Choose a tag to compare
  • remove entity_pb from default export

v0.3.2

30 Oct 17:25
1c9f9a2
Compare
Choose a tag to compare

What's Changed

  • Array precision and value extraction by @JulienR1 in #2

Full Changelog: v0.3.1...v0.3.2

v0.3.1

13 Oct 21:01
Compare
Choose a tag to compare
  • Update README docs to include zod
  • set Typescript config strict: true

v0.3.0

13 Oct 20:27
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.1.0...v0.3.0

v0.2.0

05 Oct 17:53
Compare
Choose a tag to compare

What's New?

  • add TypeBox Static Type Resolution

Substreams Sink Entity Changes

Buf Protobuf codegen & TypeBox for EntityChanges.

Quickstart

$ npm install @substreams/sink-entity-changes
import { typebox, entity_pb } from "@substreams/sink-entity-changes"

Protobuf

message EntityChanges {
  repeated EntityChange entity_changes = 5;
}

message EntityChange {
  string entity = 1;
  string id = 2;
  Operation operation = 4;
  repeated Field fields = 5;
}

Using Buf Protobuf codegen

import { EntityChanges } from "@substreams/sink-entity-changes/entity_pb"
...

const emitter = new BlockEmitter(transport, request, registry);

// Stream EntityChanges
emitter.on("output", (output: EntityChanges) => {
  for ( const entityChange of output.entityChanges) {
    console.log(entityChange);
  }
});

Using TypeBox Static Type Resolution

import { EntityChanges } from "@substreams/sink-entity-changes/typebox"
...

const emitter = new BlockEmitter(transport, request, registry);

emitter.on("anyMessage", (message: EntityChanges) => {
  for ( const entityChange of message.entityChanges) {
    console.log(entityChange);
  }
});

v0.1.0

04 Oct 03:01
Compare
Choose a tag to compare

Substreams Sink Entity Changes

Buf codegen for EntityChanges.

Install

$ npm install @substreams/sink-entity-changes

Quickstart

import { EntityChanges } from "@substreams/sink-entity-changes"
...

const emitter = new BlockEmitter(transport, request, registry);

// Stream EntityChanges
emitter.on("output", (output: EntityChanges) => {
  for ( const entityChange of output.entityChanges) {
    // EntityChange {
    //   entity,
    //   id,
    //   operation,
    //   fields
    // }
    console.log(entityChange);
  }
});