- Renamed core contract from Harberg.sol to Kraiken.sol - Updated token symbol from HARB to KRK - Renamed TypeScript library from harb-lib to kraiken-lib - Updated all contract imports and references across the codebase - Modified subgraph schema and source files for new naming - Updated transaction bot dependencies and service references - Fixed test files to use new contract and token names - Updated documentation in CLAUDE.md and README.md - Regenerated subgraph types and ABI files All components compile successfully and tests pass. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
51 lines
1 KiB
GraphQL
51 lines
1 KiB
GraphQL
# scalar Bytes
|
|
# scalar BigInt
|
|
# scalar BigDecimal
|
|
|
|
type Stats @entity {
|
|
id: Bytes!
|
|
kraikenTotalSupply: 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!
|
|
|
|
}
|
|
|
|
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!
|
|
kraikenDeposit: BigInt!
|
|
snatched: Int!
|
|
totalSupplyInit: BigInt!
|
|
totalSupplyEnd: BigInt
|
|
status: PositionStatus!
|
|
payout: BigInt!
|
|
}
|
|
|
|
# type Query {
|
|
# stats: [Stats!]
|
|
# positions: [Position!]
|
|
#}
|