Skip to content

v0.1.2

Compare
Choose a tag to compare
@DenisCarriere DenisCarriere released this 12 Sep 17:34
· 5 commits to main since this release

Subgraph Deployment ID: QmZHo17bQbbh99pUWNPXmQ1Ao3JDnadhDNkP3Dw9ndVmcX
https://thegraph.com/explorer/subgraphs/BEPBdCakjSNmQFLy8RiSYpjnsKYN58VxJ41uz6qQHy2p?view=Indexers&chain=arbitrum-one

What's Changed

GraphQL Schema changes

type Action @entity {
  id:                       ID!
  account:                  String!
  name:                     String!
  jsonData:                 String!
  rawData:                  String!
  receiver:                 String!
  index:                    BigInt!
  globalSequence:           BigInt!
  isNotify:                 Boolean!
  isInput:                  Boolean!
  console:                  String!

  # derived fields
  block:                    Block!
  transaction:              Transaction!
  dbOps:                    [DbOp!]! @derivedFrom(field: "action")
  authorizations:           [Authorization!]! @derivedFrom(field: "action")
}


type Block @entity {
  id:                 ID!
  date:               String!
  month:              String!
  year:               String!
  timestamp:          Timestamp!
  number:             BigInt!
  previous:           String!
  producer:           String!
  transactions:       [Transaction!]! @derivedFrom(field: "block")
}

GraphQL Query

{
  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
    }
  }
}