8000 Include `blockFilter` in Mermaid graphs · Issue #469 · streamingfast/substreams · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Include blockFilter in Mermaid graphs #469

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
DenisCarriere opened this issue May 14, 2024 · 0 comments
Open

Include blockFilter in Mermaid graphs #469

DenisCarriere opened this issue May 14, 2024 · 0 comments

Comments

@DenisCarriere
Copy link
Contributor

The Mermaid graphs do not visualize the connection of blockFilter::module when using BlockIndex

Example substreams.yaml

  - name: index_transactions
    kind: blockIndex
    inputs:
      - map: map_transactions
    output:
      type: proto:sf.substreams.index.v1.Keys

  - name: map_transactions
    kind: map
    doc: Extracts Inscription transactions from the block
    inputs:
      - source: sf.ethereum.type.v2.Block
    output:
      type: proto:inscriptions.types.v1.Transactions

  - name: map_operations
    kind: map
    doc: Extracts Inscription operation events from the block
    inputs:
      - map: map_transactions
    blockFilter:
      module: index_transactions
      query:
        string: inscriptions
        params: false
    output:
      type: proto:inscriptions.types.v1.Operations

❌ Current Mermiad

graph TD;
  map_transactions --> index_transactions;
  map_transactions[map: map_transactions];
  sf.ethereum.type.v2.Block[source: sf.ethereum.type.v2.Block] --> map_transactions;
  map_operations[map: map_operations];
  map_transactions --> map_operations;
Loading

✅ Expected Mermaid

by adding index_transactions -.-> |blockIndex| map_operations;

graph TD;
  map_transactions --> index_transactions;
  index_transactions -.-> |blockIndex| map_operations;
  map_transactions[map: map_transactions];
  sf.ethereum.type.v2.Block[source: sf.ethereum.type.v2.Block] --> map_transactions;
  map_operations[map: map_operations];
  map_transactions --> map_operations;
Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0