tornado-governance-subgraph/schema.graphql

69 lines
1.0 KiB
GraphQL
Raw Normal View History

2024-04-28 08:08:14 +03: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!
}
type Voted @entity {
id: ID!
timestamp: Int!
blockNumber: Int!
logIndex: Int!
transactionHash: Bytes!
proposalId: Int!
voter: Bytes!
support: Boolean!
votes: BigInt!
from: Bytes!
input: Bytes!
}
type Delegated @entity {
id: ID!
timestamp: Int!
blockNumber: Int!
logIndex: Int!
transactionHash: Bytes!
account: Bytes!
delegateTo: Bytes!
}
type Undelegated @entity {
id: ID!
timestamp: Int!
blockNumber: Int!
logIndex: Int!
transactionHash: Bytes!
account: Bytes!
delegateFrom: Bytes!
}
type StakeBurned @entity {
id: ID!
timestamp: Int!
blockNumber: Int!
logIndex: Int!
transactionHash: Bytes!
relayer: Bytes!
amountBurned: BigInt!
}
type StakeDailyBurned @entity {
id: ID!
date: Int!
dailyAmountBurned: BigInt!
}