Skip to content

Releases: streamingfast/substreams-sink-entity-changes

v2.0.0

16 Oct 19:15
Compare
Choose a tag to compare
  • Bumped dependencies to substreams to 0.6 and prost to 0.13 (see Upgrade notes)
  • Added Timestamp type.

v1.3.2

06 Mar 18:55
Compare
Choose a tag to compare

Added ToValue implementation for for Vec<Vec<u8>> which used to create Graph Node schema object of the form [Bytes].

v1.3.1

08 Dec 18:39
Compare
Choose a tag to compare
  • Added ToValue implementation for Vec<BigInt>, &Vec<BigInt>, Vec<BigDecimal>, and &Vec<BigDecimal>.

v1.3.0

29 Jun 19:31
Compare
Choose a tag to compare
  • Breaking Protobuf package id has been renamed to sf.substreams.sink.entity.v1 (previously sf.substreams.entity.v1). This is actually a soft breaking change, you will not see breaking code due just by bumping to this version and also, graph-node accepts the both package ids. The only change required on your part is changing your imports and module's output type (not the differences on entities_change and output.type fields):

    From

    imports:
      entities_change: https://github.com/streamingfast/substreams-entity-change/releases/download/v1.2.1/substreams-entity-change-v1.2.1.spkg
    
    ...
    
    - name: graph_out
      kind: map
      inputs:
        ...
      output:
        type: proto:sf.substreams.entity.v1.EntityChanges

    To

    imports:
      entities_change: https://github.com/streamingfast/substreams-sink-entity-changes/releases/download/v1.3.0/substreams-sink-entity-changes-v1.3.0.spkg
    
    ...
    
    - name: graph_out
      kind: map
      inputs:
        ...
      output:
        type: proto:sf.substreams.sink.entity.v1.EntityChanges
  • Breaking Renamed substreams_entity_change::pb::entity::entity_change::Operation::Unset to be become ...::Operation::Unspecified to make the Protobuf conforms to buf lint rules.

    We take the liberty to change it because we expect that almost everyone is using the abstraction provided by this library.

v1.2.2

09 Jun 19:44
Compare
Choose a tag to compare
  • Added more conversion for ToValue defined for tables::Tables.

    Note Added possibility to move some value in their final destination. So if you don't need the value when doing .set(...) calls in Tables, moving the value instead of passing it by reference (.set(..., &value)) for String and Vec<String> will lead to small speed improvements.

v1.2.1

09 Jun 16:49
Compare
Choose a tag to compare
  • Speed up tables::Tables#to_entity_changes by removing multiple clone that were not required.

v1.2.0

09 Jun 15:50
Compare
Choose a tag to compare
  • Added tables module so that you can use it as a better abstraction to build up your entity changes.

    use substreams_entity_change::tables::Tables;
    
    let mut tables = Tables::new();
    
    // Create a row (<entity_name>, <id>).[set(<column>, <value>), ...]
    tables
      .create_row("Factory", id)
      .set("poolCount", &bigint0)
      .set("txCount", &bigint0)
      .set("totalVolumeUSD", &bigdecimal0)
      .set("totalVolumeETH", &bigdecimal0)
      .set("totalFeesUSD", &bigdecimal0)
      .set("totalFeesETH", &bigdecimal0)
      .set("untrackedVolumeUSD", &bigdecimal0)
      .set("totalValueLockedUSD", &bigdecimal0)
      .set("totalValueLockedETH", &bigdecimal0)
      .set("totalValueLockedUSDUntracked", &bigdecimal0)
      .set("totalValueLockedETHUntracked", &bigdecimal0)
      .set("owner", &format!("0x{}", Hex(utils::ZERO_ADDRESS).to_string()));
    
    // Update a row (<entity_name>, <id>).[set(<column>, <value>), ...]
    tables
      .update_row("Bundle", "1").set("ethPriceUSD", &delta.new_value);
  • Added clean invalid string byte sequence when using a String, &String, Delta<String>, Delta<&String>, Vec<String>, &Vec<String>, DeltaArray<String> and &DeltaArray<String>

v1.1.0

02 May 17:41
Compare
Choose a tag to compare

Deprecation

  • Deprecated sf.substreams.entity.v1.EntityChange#ordinal, this is not used in graph-node.
  • Deprecated sf.substreams.entity.v1.Field#old_value, this is not used in graph-node.

Added

  • Added FINAL to sf.substreams.entity.v1.EntityChange#Operation enum list.

  • Added sf.substreams.entity.v1.EntityChangeAtBlockNum message.

v1.0.0

02 May 14:58
Compare
Choose a tag to compare

Changelog

  • dbe8ca7 bump version to 1.0.0, move proto package under 'sf.substreams...'

v0.3.0

28 Nov 16:18
Compare
Choose a tag to compare

Changelog

  • Bump substreams library to 0.5.0

Commits

  • 4f51e3f Preparing release of 0.3.0