tornado-governance-subgraph/schema.graphql
2024-04-28 05:50:14 +00:00

69 lines
1.0 KiB
GraphQL

type Proposal @entity {
id: ID!
timestamp: Int!
blockNumber: Int!
logIndex: Int!
transactionHash: Bytes!
proposalId: Int!
proposer: Bytes!
target: Bytes!
startTime: Int!
endTime: Int!
description: String!
executed: Boolean!
}
type Vote @entity {
id: ID!
timestamp: Int!
blockNumber: Int!
logIndex: Int!
transactionHash: Bytes!
proposalId: Int!
voter: Bytes!
support: Boolean!
votes: BigInt!
from: Bytes!
input: Bytes!
}
type Delegate @entity {
id: ID!
timestamp: Int!
blockNumber: Int!
logIndex: Int!
transactionHash: Bytes!
account: Bytes!
delegateTo: Bytes!
}
type Undelegate @entity {
id: ID!
timestamp: Int!
blockNumber: Int!
logIndex: Int!
transactionHash: Bytes!
account: Bytes!
delegateFrom: Bytes!
}
type StakeBurn @entity {
id: ID!
timestamp: Int!
blockNumber: Int!
logIndex: Int!
transactionHash: Bytes!
relayer: Bytes!
amountBurned: BigInt!
}
type StakeDailyBurn @entity {
id: ID!
date: Int!
dailyAmountBurned: BigInt!
}