Skip to content

Releases: pinax-network/substreams

pomelo.bounties-v0.1.0

24 Jul 17:32
Compare
Choose a tag to compare

Pomelo Bounties state change tracking substream

params-v0.1.0

24 Jul 20:37
Compare
Choose a tag to compare
add readme

common-v0.6.0

11 Jul 19:49
Compare
Choose a tag to compare

Antelope Common Substream

Antelope action traces & database operations.

Latest Releases

What's new

  • Changed kv_out to output BlockTimestamp and BlockId messages.

Quickstart

$ make
$ make run

KV

  • block.number:<number> -> BlockTimestamp
  • block.timestamp:<timestamp> -> BlockId

proto

message BlockId {
  string id = 1;
  uint64 number = 2;
}

message BlockTimestamp {
  string timestamp = 1;
}

Params

Params allow to filter messages and can be supplied to modules in the form of URL query, i.e. contract=eosio.token&action=transfer - filter eosio.token contract transfer actions.

module key description
map_transaction_traces contract filter by contract(s)
map_transaction_traces action filter by action(s)
map_transaction_traces receiver filter by receiver(s)
map_action_traces contract filter by contract(s)
map_action_traces action filter by action(s)
map_action_traces receiver filter by receiver(s)
map_db_ops contract filter by contract(s)
map_db_ops table filter by action(s)

Mermaid graph

graph TD;
  map_block_header[map: map_block_header];                                                                                                                    
  sf.antelope.type.v1.Block[source: sf.antelope.type.v1.Block] --> map_block_header;                                                                          
  map_blockroot_merkle[map: map_blockroot_merkle];
  sf.antelope.type.v1.Block[source: sf.antelope.type.v1.Block] --> map_blockroot_merkle;
  map_transaction_traces[map: map_transaction_traces];
  map_transaction_traces:params[params] --> map_transaction_traces;
  sf.antelope.type.v1.Block[source: sf.antelope.type.v1.Block] --> map_transaction_traces;
  map_action_traces[map: map_action_traces];
  map_action_traces:params[params] --> map_action_traces;
  sf.antelope.type.v1.Block[source: sf.antelope.type.v1.Block] --> map_action_traces;
  map_db_ops[map: map_db_ops];
  map_db_ops:params[params] --> map_db_ops;                                  
  sf.antelope.type.v1.Block[source: sf.antelope.type.v1.Block] --> map_db_ops;
  kv_out[map: kv_out];        
  sf.substreams.v1.Clock[source: sf.substreams.v1.Clock] --> kv_out;

Modules

Package name: common
Version: v0.6.0
Doc: Antelope based action traces & database operations.                                                                                                      
Modules:
----
Name: map_block_header
Initial block: 2
Kind: map
Output Type: proto:sf.antelope.type.v1.BlockHeader
Hash: 33951d63d323eb9a2bae9d09e9df8a7ebe84362b

Name: map_blockroot_merkle
Initial block: 2
Kind: map
Output Type: proto:sf.antelope.type.v1.BlockRootMerkle
Hash: 797ec4ed64818cbdd92ec75dabadd81ef3ad1dbb

Name: map_transaction_traces
Initial block: 2
Kind: map
Output Type: proto:sf.antelope.type.v1.TransactionTraces
Hash: f2541a11641027caec2d60de4b56f41c35837283

Name: map_action_traces
Initial block: 2
Kind: map
Output Type: proto:sf.antelope.type.v1.ActionTraces
Hash: b4c28e9904a2ea44ddf4eb891bc5a15040acc118

Name: map_db_ops
Initial block: 2
Kind: map
Output Type: proto:sf.antelope.type.v1.DBOps
Hash: c5acb9bb18e65fb6ab8d375053c1257bcb3b8a16

Name: kv_out
Initial block: 0
Kind: map
Output Type: proto:sf.substreams.sink.kv.v1.KVOperations
Hash: 9a2f97c2cf63229d2bec92b338007ad44baa87d0

antelope.oracles-v0.0.6

20 Jun 15:39
Compare
Choose a tag to compare

Antelope Oracles Substream

Antelope Oracles prices from delphioracle and oracle.defi

Latest Releases

What's new

  • Added kv_out sink
  • Added db_out sink

Full Changelog: antelope.oracles-v0.0.5...antelope.oracles-v0.0.6

Quickstart

$ make delphioracle # quotes
$ make oracle.defi # prices

delphioracle

message Datapoint {
  uint64 id = 1;
  uint64 median = 2;
  string owner = 3;
  string timestamp = 4;
  uint64 value = 5;
}

message Quote {
  string pair = 1;
  Datapoint value = 2;
}

oracle.defi

message Price {
    uint64 id = 1;
    string contract = 2;
    string coin = 3;
    uint32 precision = 4;
    uint64 acc_price = 5;
    uint64 last_price = 6;
    uint64 avg_price = 7;
    string last_update = 8;
}

Mermaid graph

graph TD;
  map_prices[map: map_prices];
  map_prices:params[params] --> map_prices;
  sf.antelope.type.v1.Block[source: sf.antelope.type.v1.Block] --> map_prices;
  map_quotes[map: map_quotes];
  map_quotes:params[params] --> map_quotes;
  sf.antelope.type.v1.Block[source: sf.antelope.type.v1.Block] --> map_quotes;
  kv_out[map: kv_out];
  map_quotes --> kv_out;
  sf.substreams.v1.Clock[source: sf.substreams.v1.Clock] --> kv_out;
  db_out[map: db_out];
  map_quotes --> db_out;

Modules

Package name: antelope_oracles
Version: v0.0.6
Doc: Antelope `eosio.token` based action traces & database operations.
Modules:
----
Name: map_prices
Initial block: 0
Kind: map
Output Type: proto:antelope.oracles.v1.Prices
Hash: d5ec501aa597007bb1b63f729263f3a152b749ac

Name: map_quotes
Initial block: 0
Kind: map
Output Type: proto:antelope.oracles.v1.Quotes
Hash: 76429076938ef322d2bc68412e9137eb40f4ef53

Name: kv_out
Initial block: 0
Kind: map
Output Type: proto:sf.substreams.sink.kv.v1.KVOperations
Hash: 2e4bf0e6984be6caa57d81f6afe826f8027d79eb

Name: db_out
Initial block: 0
Kind: map
Output Type: proto:sf.substreams.sink.database.v1.DatabaseChanges
Hash: 72a43f091ecbccc84af59cfc66b512c11779a3d3

antelope.oracles-v0.0.5

19 Jun 15:54
Compare
Choose a tag to compare
  • Replaced map_datapoints with map_quotes for delphioracle to add information about the token pair.
  • Fixed the substream manifest proto paths.

Full Changelog: antelope.oracles-v0.0.4...antelope.oracles-v0.0.5

antelope.oracles-v0.0.4

16 Jun 15:34
Compare
Choose a tag to compare

Antelope Oracles Substream

Antelope Oracles prices from delphioracle and oracle.defi

Latest Releases

Quickstart

$ make
$ make delphioracle # datapoints
$ make oracle_defi # prices

Mermaid graph

graph TD;
  map_datapoints[map: map_datapoints];
  map_datapoints:params[params] --> map_datapoints;
  sf.antelope.type.v1.Block[source: sf.antelope.type.v1.Block] --> map_datapoints;
  map_prices[map: map_prices];
  map_prices:params[params] --> map_prices;
  sf.antelope.type.v1.Block[source: sf.antelope.type.v1.Block] --> map_prices;

Modules

Package name: antelope_oracles
Version: v0.0.4
Doc: Antelope `eosio.token` based action traces & database operations.
Modules:
----
Name: map_datapoints
Initial block: 0
Kind: map
Output Type: proto:antelope.eosio.oracles.v1.Datapoints
Hash: e9b08ff893182a651a14697e8b9aff395c804012

Name: map_prices
Initial block: 0
Kind: map
Output Type: proto:antelope.eosio.oracles.v1.Prices
Hash: 2491cc1d1f2750102a45a1010a0e5023709c7ace

eosio.token-v0.13.0

08 Jun 02:58
Compare
Choose a tag to compare
  • add extra param filters for accounts & stat
  • add *_delta amount values for accounts & stat
  • add extra protobuf attributes to accounts & stat

Params

Params allow to filter messages and can be supplied to modules in the form of URL query.

i.e. to=swap.defi&contract=eosio.token&symcode=EOS - filters EOS transfers to swap.defi account.

  • map_transfers - filter transfers
    • to - receiver
    • from - sender
    • symcode - symbol code
    • contract - token contract
    • to_or_from - either receiver or sender
    • quantity_lt - quantity amount less than
    • quantity_lte - quantity amount less than or equal to
    • quantity_gt - quantity amount greater than
    • quantity_gte - quantity amount greater than or equal to
  • map_accounts - filter account balance changes
    • account - account
    • symcode - symbol code
    • contract - token contract
    • balance_lt - balance amount less than
    • balance_lte - balance amount less than or equal to
    • balance_gt - balance amount greater than
    • balance_gte - balance amount greater than or equal to
    • balance_delta_lt - balance delta amount less than
    • balance_delta_lte - balance delta amount less than or equal to
    • balance_delta_gt - balance delta amount greater than
    • balance_delta_gte - balance delta amount greater than or equal to
  • map_stat - filter token stats
    • symcode - symbol code
    • contract - token contract
    • supply_lt - supply amount less than
    • supply_lte - supply amount less than or equal to
    • supply_gt - supply amount greater than
    • supply_gte - supply amount greater than or equal to
    • supply_delta_lt - supply delta amount less than
    • supply_delta_lte - supply delta amount less than or equal to
    • supply_delta_gt - supply delta amount greater than
    • supply_delta_gte - supply delta amount greater than or equal to
image image

common-v0.5.0

01 Jun 19:28
Compare
Choose a tag to compare

Antelope Common Substream

Antelope action traces & database operations.

Latest Releases

Quickstart

$ make
$ make run

KV

  • block.id:<block.number>
  • block.timestamp:<block.number>

Params

Params allow to filter messages and can be supplied to modules in the form of URL query, i.e. contract=eosio.token&action=transfer - filter eosio.token contract transfer actions.

module key description
map_transaction_traces contract filter by contract(s)
map_transaction_traces action filter by action(s)
map_transaction_traces receiver filter by receiver(s)
map_action_traces contract filter by contract(s)
map_action_traces action filter by action(s)
map_action_traces receiver filter by receiver(s)
map_db_ops contract filter by contract(s)
map_db_ops table filter by action(s)

Mermaid graph

graph TD;
  map_block_header[map: map_block_header];
  sf.antelope.type.v1.Block[source: sf.antelope.type.v1.Block] --> map_block_header;
  map_blockroot_merkle[map: map_blockroot_merkle];
  sf.antelope.type.v1.Block[source: sf.antelope.type.v1.Block] --> map_blockroot_merkle;
  map_transaction_traces[map: map_transaction_traces];
  map_transaction_traces:params[params] --> map_transaction_traces;
  sf.antelope.type.v1.Block[source: sf.antelope.type.v1.Block] --> map_transaction_traces;
  map_action_traces[map: map_action_traces];
  map_action_traces:params[params] --> map_action_traces;
  sf.antelope.type.v1.Block[source: sf.antelope.type.v1.Block] --> map_action_traces;
  map_db_ops[map: map_db_ops];
  map_db_ops:params[params] --> map_db_ops;
  sf.antelope.type.v1.Block[source: sf.antelope.type.v1.Block] --> map_db_ops;
  kv_out[map: kv_out];
  sf.antelope.type.v1.Block[source: sf.antelope.type.v1.Block] --> kv_out;

Modules

Package name: common
Version: v0.5.0
Doc: Antelope based action traces & database operations.
Modules:
----
Name: map_block_header
Initial block: 2
Kind: map
Output Type: proto:sf.antelope.type.v1.BlockHeader
Hash: 28ee1f2bd5abdbf74cda9d2767f6928cbf178a35

Name: map_blockroot_merkle
Initial block: 2
Kind: map
Output Type: proto:sf.antelope.type.v1.BlockRootMerkle
Hash: 23107f7d53b6e80417bd36acb5c7fbd6020dd04f

Name: map_transaction_traces
Initial block: 2
Kind: map
Output Type: proto:sf.antelope.type.v1.TransactionTraces
Hash: cd6fb8422bbd0fc41819a63e9b473ecf76a3f478

Name: map_action_traces
Initial block: 2
Kind: map
Output Type: proto:sf.antelope.type.v1.ActionTraces
Hash: 6310c031f22b5e80f41123efad448f48f5a7f000

Name: map_db_ops
Initial block: 2
Kind: map
Output Type: proto:sf.antelope.type.v1.DBOps
Hash: 8a5340561fc532ebd52c7074d14c7b60fa7fffa1

Name: kv_out
Initial block: 0
Kind: map
Output Type: proto:sf.substreams.sink.kv.v1.KVOperations
Hash: f3a5dbde58ac99fbef4e6a1dd4eae0375073b56a

eosio.token-v0.12.1

29 May 16:14
Compare
Choose a tag to compare
  • add action=transfer to eosio.token substream
image

eosio.token-v0.12.0

26 May 18:58
Compare
Choose a tag to compare
  • add value attribute to eosio.token maps & sinks

image