31 lines
No EOL
473 B
GraphQL
31 lines
No EOL
473 B
GraphQL
scalar Bytes
|
|
scalar BigInt
|
|
scalar BigDecimal
|
|
|
|
type Stats @entity {
|
|
id: Bytes!
|
|
outstandingSupply: BigInt! # uint256
|
|
activeSupply: BigInt! # uint256
|
|
}
|
|
|
|
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!
|
|
status: PositionStatus!
|
|
}
|
|
|
|
type Query {
|
|
stats: [Stats]
|
|
positions: [Position]
|
|
} |