Skip to content

pinax-network/subgraph-roundtable

 
 

Repository files navigation

Subgraph: Roundtable

Transactions, Decoded Actions & Database Operations

sf.antelope.type.v1.Block

  • Blocks
  • Transactions
  • Actions
    • Authorization
    • Receiver
  • DatabaseOperations

Smart Contracts

  • bbsdailyrwrd
  • dwebregistry
  • bbseosbridge
  • bbsbbsbbseos
  • bbsengagemnt
  • deweb.eosn

Subgraph

GraphQL

{
  actions(
    orderBy: globalSequence
    orderDirection: asc
    first:20
    where:{
      name:"ledgerprint"
      globalSequence_gt:361417757518
    }
  ) {
    block{
      number
      timestamp
    }
    transaction {
      id
    }
    account
    name
    jsonData
    globalSequence
    receiver
    dbOps {
      code
      tableName
      primaryKey
      newDataJson
    }
  }
}

Subgraph deployment

$ ./shell cli
graph indexer rules prepare --network arbitrum-one QmWiivncZD2HHRKymf4ArQYQr7jRhZ6kWw2pFxD3nB8p8m
graph indexer allocations create QmWiivncZD2HHRKymf4ArQYQr7jRhZ6kWw2pFxD3nB8p8m arbitrum-one 100