tornado-governance-subgraph/schema.graphql

69 lines
1.0 KiB
GraphQL
Raw Permalink Normal View History

2024-04-28 05:08:14 +00:00
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!
}
2024-04-28 05:50:14 +00:00
type Vote @entity {
2024-04-28 05:08:14 +00:00
id: ID!
timestamp: Int!
blockNumber: Int!
logIndex: Int!
transactionHash: Bytes!
proposalId: Int!
voter: Bytes!
support: Boolean!
votes: BigInt!
from: Bytes!
input: Bytes!
}
2024-04-28 05:50:14 +00:00
type Delegate @entity {
2024-04-28 05:08:14 +00:00
id: ID!
timestamp: Int!
blockNumber: Int!
logIndex: Int!
transactionHash: Bytes!
account: Bytes!
delegateTo: Bytes!
}
2024-04-28 05:50:14 +00:00
type Undelegate @entity {
2024-04-28 05:08:14 +00:00
id: ID!
timestamp: Int!
blockNumber: Int!
logIndex: Int!
transactionHash: Bytes!
account: Bytes!
delegateFrom: Bytes!
}
2024-04-28 05:50:14 +00:00
type StakeBurn @entity {
2024-04-28 05:08:14 +00:00
id: ID!
timestamp: Int!
blockNumber: Int!
logIndex: Int!
transactionHash: Bytes!
relayer: Bytes!
amountBurned: BigInt!
}
2024-04-28 05:50:14 +00:00
type StakeDailyBurn @entity {
2024-04-28 05:08:14 +00:00
id: ID!
date: Int!
dailyAmountBurned: BigInt!
}