59 lines
1.2 KiB
GraphQL
59 lines
1.2 KiB
GraphQL
# scalar Bytes
|
|
# scalar BigInt
|
|
# scalar BigDecimal
|
|
|
|
type Stats @entity {
|
|
id: Bytes!
|
|
outstandingSupply: BigInt! # uint256
|
|
activeSupply: 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!]
|
|
#}
|