- 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>
69 lines
1.6 KiB
GraphQL
69 lines
1.6 KiB
GraphQL
# GraphQL queries for azimuth-client-go
|
|
|
|
query GetSyncStatus {
|
|
azimuthGetSyncStatus {
|
|
latestProcessedBlockHash
|
|
latestProcessedBlockNumber
|
|
}
|
|
}
|
|
|
|
query EventsInRange($fromBlockNumber: Int!, $toBlockNumber: Int!, $name: String) {
|
|
azimuthEventsInRange(fromBlockNumber: $fromBlockNumber, toBlockNumber: $toBlockNumber, name: $name) {
|
|
block {
|
|
hash
|
|
number
|
|
}
|
|
tx {
|
|
hash
|
|
index
|
|
from
|
|
to
|
|
}
|
|
eventIndex
|
|
event {
|
|
__typename
|
|
... on OwnerChangedEvent {
|
|
point
|
|
owner
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
query GetOwner($blockHash: String!, $contractAddress: String!, $_point: BigInt!) {
|
|
azimuthGetOwner(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point) {
|
|
value
|
|
}
|
|
}
|
|
|
|
query GetSponsoring($sponsor: BigInt!, $blockHash: String!, $contractAddress: String!) {
|
|
azimuthGetSponsoring(_sponsor: $sponsor, blockHash: $blockHash, contractAddress: $contractAddress) {
|
|
value
|
|
}
|
|
}
|
|
|
|
query GetSponsor($point: BigInt!, $blockHash: String!, $contractAddress: String!) {
|
|
azimuthGetSponsor(_point: $point, blockHash: $blockHash, contractAddress: $contractAddress) {
|
|
value
|
|
}
|
|
}
|
|
|
|
query GetKeys($blockHash: String!, $contractAddress: String!, $_point: BigInt!) {
|
|
azimuthGetKeys(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point) {
|
|
value {
|
|
value0
|
|
value1
|
|
value2
|
|
value3
|
|
}
|
|
proof {
|
|
data
|
|
}
|
|
}
|
|
}
|
|
|
|
query IsActive($blockHash: String!, $contractAddress: String!, $_point: BigInt!) {
|
|
azimuthIsActive(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point) {
|
|
value
|
|
}
|
|
} |