Skip to content

v0.3.0

Latest
Compare
Choose a tag to compare
@DenisCarriere DenisCarriere released this 23 Oct 15:41
· 15 commits to main since this release

What's new

  • schema.graphql breaking changes
  • upgrade to new Rust substreams v0.6.0
    • block-index v0.2.0 NOT being used currently

GraphQL

Balances by Owner

query BalanceByOwner{
  balances(first: 20, where:{ owner: "eosio.stake" }) {
    balance
    token{
     code
      symcode
      precision
    }
  }
}

Tokens by Top Holders

query TokensHolders {
  balances(where: {token_: {code: "eosio.token"}} orderBy: balance, orderDirection: desc) {
    owner
    balance
    token{
     code
      symcode
    }
  }
}

Token Supply

query Supply {
  supplies(first: 20, orderBy: block__number, orderDirection: desc){
    supply
    max_supply
    token{
      code
      symcode
      precision
    }
  }
}

Recent Balances Changes

query RecentBalancesChanges {
  balances(first: 20, orderBy: block__number, orderDirection: desc) {
    owner
    balance
    token{
     code
     symcode
    }
  block{
      number
      date
    }
  }
}

Modules

Name: graph_out
Initial block: 0
Kind: map
Input: params: 
Input: source: sf.substreams.v1.Clock
Input: map: block_index:map_db_ops
Output Type: proto:sf.substreams.sink.entity.v1.EntityChanges
Hash: 794c63419bbe05e1308a9c7e56f8a54778d87724

Name: block_index:index_blocks
Initial block: 0
Kind: index
Input: source: sf.antelope.type.v1.Block
Output Type: proto:sf.substreams.index.v1.Keys
Hash: 15f03d68c8b56336999fac6be2a3d1c6d558288b

Name: block_index:map_db_ops
Initial block: 0
Kind: map
Input: source: sf.antelope.type.v1.Block
Block Filter: (using *block_index:index_blocks*): `&{db.table:accounts || db.table:stat}`
Output Type: proto:sf.antelope.type.v1.DBOps
Hash: 9df5eeba09d51a87ea9eaf3ca18a13111cc495b1