synapsecns/sanguine

View on GitHub
services/explorer/consumer/client/queries/queries.graphql

Summary

Maintainability
Test Coverage
query GetLogsRange ($chain_id: Int!, $start_block: Int!, $end_block: Int!, $page: Int!, $contract_address: String) {
  response: logsRange (chain_id: $chain_id, start_block: $start_block, end_block: $end_block, page: $page, contract_address: $contract_address) {
    contract_address
    chain_id
    topics
    data
    block_number
    tx_hash
    tx_index
    block_hash
    index
    removed
  }
}

query GetTransactions ($chain_id: Int!, $page: Int!, $tx_hash: String) {
  response: transactions (chain_id: $chain_id, page: $page, tx_hash: $tx_hash) {
    chain_id
    tx_hash
    protected
    type
    data
    gas
    gas_price
    gas_tip_cap
    gas_fee_cap
    value
    nonce
    to
    timestamp
    sender
  }
}

query GetBlockTime ($chain_id: Int!, $block_number: Int!) {
  response: blockTime (chain_id: $chain_id, block_number: $block_number)
}

query GetLastStoredBlockNumber ($chain_id: Int!) {
  response: lastStoredBlockNumber (chain_id: $chain_id)
}

query GetFirstStoredBlockNumber ($chain_id: Int!) {
  response: firstStoredBlockNumber (chain_id: $chain_id)
}

query GetTxSender ($chain_id: Int!, $tx_hash: String!) {
  response: txSender (chain_id: $chain_id, tx_hash: $tx_hash)
}

query GetLastIndexed ($chain_id: Int!, $contract_address: String!) {
  response: lastIndexed (chain_id: $chain_id, contract_address: $contract_address)
}

query GetLastConfirmedBlockNumber ($chain_id: Int!) {
  response: lastConfirmedBlockNumber (chain_id: $chain_id)
}

query GetLogCount ($chain_id: Int!, $contract_address: String!) {
  response: logCount (chain_id: $chain_id, contract_address: $contract_address)
}
query GetReceiptCount ($chain_id: Int!) {
  response: receiptCount(chain_id: $chain_id)
}

query GetBlockTimeCount ($chain_id: Int!) {
  response: blockTimeCount (chain_id: $chain_id)
}