- Consolidated azimuth client implementations from zenithd and janus - Type-safe GraphQL client using genqlient code generation - Comprehensive caching with configurable TTL (1 hour default) - Full API coverage: authentication keys, ship activity, sponsorship, ownership - Enhanced functionality combining best features from both original implementations - Extensive test suite with 16 unit tests covering all functionality - Complete documentation with examples and usage patterns - Support for galaxy, star, and planet ship type classification - BigInt utility for proper GraphQL number handling - MIT licensed for open source usage 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
84 lines
1.7 KiB
GraphQL
84 lines
1.7 KiB
GraphQL
scalar BigInt
|
|
|
|
type _Block_ {
|
|
cid: String
|
|
hash: String!
|
|
number: Int!
|
|
timestamp: Int!
|
|
parentHash: String!
|
|
}
|
|
|
|
type _Transaction_ {
|
|
hash: String!
|
|
index: Int!
|
|
from: String!
|
|
to: String!
|
|
}
|
|
|
|
type Proof {
|
|
data: String!
|
|
}
|
|
|
|
type ResultEvent {
|
|
block: _Block_!
|
|
tx: _Transaction_!
|
|
contract: String!
|
|
eventIndex: Int!
|
|
event: Event!
|
|
proof: Proof
|
|
}
|
|
|
|
type ResultString {
|
|
value: String!
|
|
proof: Proof
|
|
}
|
|
|
|
type ResultArray {
|
|
value: [String!]!
|
|
proof: Proof
|
|
}
|
|
|
|
type ResultGetKeysType {
|
|
value: GetKeysType!
|
|
proof: Proof
|
|
}
|
|
|
|
type GetKeysType {
|
|
value0: String!
|
|
value1: String!
|
|
value2: BigInt!
|
|
value3: BigInt!
|
|
}
|
|
|
|
type ResultBool {
|
|
value: Boolean!
|
|
proof: Proof
|
|
}
|
|
|
|
union Event = OwnerChangedEvent
|
|
|
|
type OwnerChangedEvent {
|
|
point: BigInt!
|
|
owner: String!
|
|
}
|
|
|
|
type SyncStatus {
|
|
latestIndexedBlockHash: String!
|
|
latestIndexedBlockNumber: Int!
|
|
latestCanonicalBlockHash: String!
|
|
latestCanonicalBlockNumber: Int!
|
|
initialIndexedBlockHash: String!
|
|
initialIndexedBlockNumber: Int!
|
|
latestProcessedBlockHash: String!
|
|
latestProcessedBlockNumber: Int!
|
|
}
|
|
|
|
type Query {
|
|
azimuthEventsInRange(fromBlockNumber: Int!, toBlockNumber: Int!, name: String): [ResultEvent!]
|
|
azimuthGetSyncStatus: SyncStatus
|
|
azimuthGetOwner(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultString!
|
|
azimuthGetSponsoring(_sponsor: BigInt!, blockHash: String!, contractAddress: String!): ResultArray!
|
|
azimuthGetSponsor(_point: BigInt!, blockHash: String!, contractAddress: String!): ResultString!
|
|
azimuthGetKeys(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultGetKeysType!
|
|
azimuthIsActive(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultBool!
|
|
} |