harb/subgraph/base_sepolia/schema.graphql
2024-10-05 13:03:34 +02:00

60 lines
1.2 KiB
GraphQL

# scalar Bytes
# scalar BigInt
# scalar BigDecimal
type Stats @entity {
id: Bytes!
harbTotalSupply: BigInt! # uint256
stakeTotalSupply: BigInt! # uint256
outstandingStake: BigInt! # uint256
ringBuffer: [BigInt!]! # Ring buffer to store daily totals
ringBufferPointer: Int! # Pointer to the current day in the ring buffer
lastUpdatedHour: Int! # The last updated day boundary (timestamp in days)
totalMinted: BigInt!
mintedLastWeek: BigInt!
mintedLastDay: BigInt!
mintNextHourProjected: BigInt!
totalBurned: BigInt!
burnedLastWeek: BigInt!
burnedLastDay: BigInt!
burnNextHourProjected: BigInt!
totalTaxPaid: BigInt!
taxPaidLastWeek: BigInt!
taxPaidLastDay: BigInt!
taxNextHourProjected: BigInt!
totalUbiClaimed: BigInt!
ubiClaimedLastWeek: BigInt!
ubiClaimedLastDay: BigInt!
ubiNextHourProjected: BigInt!
}
enum PositionStatus {
Active
Closed
}
type Position @entity {
id: Bytes!
owner: Bytes! # address
share: BigDecimal!
# harb at start
# current harb value
creationTime: Int!
lastTaxTime: Int
taxRate: BigDecimal!
taxPaid: BigInt!
harbDeposit: BigInt!
snatched: Int!
totalSupplyInit: BigInt!
totalSupplyEnd: BigInt
status: PositionStatus!
payout: BigInt!
}
# type Query {
# stats: [Stats!]
# positions: [Position!]
#}