tornado-governance-subgraph/QUERY.md

2.1 KiB

{ statsHourlies(first: 5, orderBy: timestamp, orderDirection: desc) { id timestamp blockNumber

ethUsdPrice
tornUsdPrice

totalSupply
lockedSupply
burnedSupply
rewardedSupply

} stakeBurns(first: 5, orderBy: timestamp, orderDirection: desc) { id timestamp blockNumber logIndex transactionHash

relayer
amountBurned
amountBurnedUSD
instance
relayerFee

} stakeDailyBurns(first:5, orderBy: date, orderDirection: desc) { id date dailyAmountBurned dailyAmountBurnedUSD } balances(first: 5, orderBy: balance, orderDirection: desc) { id address balance lockedBalance claimedRewards } transfers(first: 5, orderBy: value, orderDirection: desc) { id timestamp type from to value usdValue } relayers(first:5, orderBy: burnBalance, orderDirection: desc) { id address ensName ensHash

workers
stakeBalance
burnBalance

blockRegistration
registerTimestamp
registerTx
registerLogIndex

blockUnregisteration
unregisterTimestamp
unregisterTx
unregisterLogIndex

} withdrawals(first: 5, orderBy: timestamp, orderDirection: desc) { id timestamp blockNumber logIndex transactionHash

instance
to
nullifierHash
relayer
fee

} dataFeeds { id name

usdPrice
lastBlock
lastTimestamp

live
deprecatedBlock

} tornPairs { id name

ethPrice
lastBlock
lastTimestamp

} proposals(first: 5, orderBy: timestamp, orderDirection: desc) { id timestamp proposalId proposer target startTime endTime forVotes againstVotes description executed } votes(first: 5, orderBy: timestamp, orderDirection: desc) { id timestamp proposalId voter support votes from input } delegates(first:5) { id delegateTx undelegateTx account delegatedTo delegatedFrom } _meta { block { number hash timestamp } deployment hasIndexingErrors } }