Commit Graph

12 Commits

Author SHA1 Message Date
John Hyde
c53218f7da updating references to martian to laconic 2025-09-16 23:42:51 -07:00
John Hyde
3bb71252ce making validation function public 2025-09-11 18:28:40 -07:00
John Hyde
5ffc0fb6bb Fix a function signature -_- 2025-09-10 14:40:55 -07:00
John Hyde
b7e26b3f1d Check for no sponsor when validating star sponsorship 2025-09-10 14:23:16 -07:00
John Hyde
8bcf220c5d Fix the client code to match schema again 2025-09-09 17:46:40 -07:00
John Hyde
f9c1626a0d Fix the schema hopefully 2025-09-09 17:40:48 -07:00
John Hyde
075af942a2 Add GetPointOwnership function and update GraphQL schema compatibility
- Add PointOwnership struct and GetPointOwnership function for comprehensive ownership queries
- Update GraphQL schema to match laconic-az-ts schema (remove azimuth prefixes)
- Update all GraphQL queries to use new field names (getSponsor, isActive, etc.)
- Regenerate GraphQL client code with HasSponsor query support
- Update response field references throughout client code
- Use "latest" block hash for efficiency in ownership queries
- Support proper sponsor detection using HasSponsor + GetSponsor queries

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-09 17:01:30 -07:00
John Hyde
1a568ba765 Add GetPointOwnership function for comprehensive ownership queries
- Add PointOwnership struct with Owner, IsActive, HasSponsor, Sponsor fields
- Implement GetPointOwnership function using GraphQL queries to azimuth-watcher
- Use "latest" block hash for efficiency
- Properly handle sponsor detection using HasSponsor query
- Support galaxy ~zod (point 0) as valid sponsor

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-09 16:25:40 -07:00
John Hyde
60ee72d192 Fix byte order for Urbit Ed25519 key compatibility
- Add reverseBytes helper function for key processing
- Reverse authentication and encryption key bytes when returned from GraphQL
- This resolves signature verification failures in downstream applications
- Urbit stores Ed25519 keys in reverse byte order compared to standard implementations

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-09 10:22:19 -07:00
John Hyde
adf7a63f35 updating references to zenithchain 2025-08-14 15:11:52 -07:00
6d36f3b4ea Update module path to github.com/martian-engineering/azimuth-client-go
- Fix module path mismatch between repository URL and go.mod declaration
- Update genqlient configuration to use correct module path
- Regenerate GraphQL client code with updated imports

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-30 14:51:37 -04:00
4d7ab16549 Initial release of azimuth-client-go library
- 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>
2025-07-30 14:01:03 -04:00