diff --git a/README.md b/README.md index c48c7ab..43c9030 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ A Go client library for interacting with the Azimuth watcher GraphQL API. This l ## Installation ```bash -go get github.com/zenithchain/azimuth-client-go +go get github.com/martian-engineering/azimuth-client-go ``` ## Usage @@ -29,7 +29,7 @@ import ( "fmt" "log" - azimuth "github.com/zenithchain/azimuth-client-go" + azimuth "github.com/martian-engineering/azimuth-client-go" ) func main() { @@ -100,4 +100,4 @@ go generate ./... ## License -This project is licensed under the MIT License. \ No newline at end of file +This project is licensed under the MIT License. diff --git a/examples_test.go b/examples_test.go index b4b9f50..4941ab3 100644 --- a/examples_test.go +++ b/examples_test.go @@ -4,16 +4,16 @@ import ( "fmt" "log" - azimuth "github.com/zenithchain/azimuth-client-go" + azimuth "github.com/martian-engineering/azimuth-client-go" ) func ExampleNewClient() { // Create client with default endpoint _ = azimuth.NewClient("") - + // Or with custom endpoint _ = azimuth.NewClient("https://azimuth.dev.vdb.to") - + fmt.Printf("Client created with contract address: %s\n", azimuth.AzimuthContract) // Output: Client created with contract address: 0x223c067F8CF28ae173EE5CafEa60cA44C335fecB } @@ -26,17 +26,17 @@ func ExampleNewClientWithOptions() { ContractAddress: azimuth.AzimuthContract, Timeout: azimuth.DefaultTimeout, }) - + fmt.Printf("Custom client created\n") // Output: Custom client created } func ExampleGetShipType() { // Classify different ship types - fmt.Printf("Point 0 is a %s\n", azimuth.GetShipType(0)) // Galaxy - fmt.Printf("Point 256 is a %s\n", azimuth.GetShipType(256)) // Star + fmt.Printf("Point 0 is a %s\n", azimuth.GetShipType(0)) // Galaxy + fmt.Printf("Point 256 is a %s\n", azimuth.GetShipType(256)) // Star fmt.Printf("Point 65536 is a %s\n", azimuth.GetShipType(65536)) // Planet - + // Output: // Point 0 is a galaxy // Point 256 is a star @@ -50,14 +50,14 @@ func ExampleParseShipName() { log.Fatal(err) } fmt.Printf("Ship name '256' -> point %d\n", point) - + // Parse with tilde prefix point, err = azimuth.ParseShipName("~256") if err != nil { log.Fatal(err) } fmt.Printf("Ship name '~256' -> point %d\n", point) - + // Output: // Ship name '256' -> point 256 // Ship name '~256' -> point 256 @@ -70,13 +70,13 @@ func ExampleParseStarID() { log.Fatal(err) } fmt.Printf("Valid star ID: %d\n", starID) - + // This would return an error since 255 is a galaxy _, err = azimuth.ParseStarID("255") if err != nil { fmt.Printf("Error for galaxy: %s\n", err.Error()) } - + // Output: // Valid star ID: 256 // Error for galaxy: ID 255 is not a valid star (must be 256-65535) @@ -85,7 +85,7 @@ func ExampleParseStarID() { func ExampleClient_GetAuthenticationKey() { // This is a mock example - would require real azimuth-watcher endpoint fmt.Printf("Getting authentication key for point 256...\n") - + // In a real scenario: // client := azimuth.NewClient("") // ctx := context.Background() @@ -94,14 +94,14 @@ func ExampleClient_GetAuthenticationKey() { // log.Fatal(err) // } // fmt.Printf("Authentication key: %x\n", authKey) - + // Output: Getting authentication key for point 256... } func ExampleClient_GetShipKeys() { // This is a mock example - would require real azimuth-watcher endpoint fmt.Printf("Getting all keys for point 256...\n") - + // In a real scenario: // client := azimuth.NewClient("") // ctx := context.Background() @@ -113,30 +113,30 @@ func ExampleClient_GetShipKeys() { // fmt.Printf("Authentication key: %x\n", keys.AuthenticationKey) // fmt.Printf("Crypto suite version: %d\n", keys.CryptoSuiteVersion) // fmt.Printf("Key revision number: %d\n", keys.KeyRevisionNumber) - + // Output: Getting all keys for point 256... } func ExampleClient_IsShipActive() { // This is a mock example - would require real azimuth-watcher endpoint fmt.Printf("Checking if point 256 is active...\n") - + // In a real scenario: // client := azimuth.NewClient("") // ctx := context.Background() // active, err := client.IsShipActive(ctx, 256) // if err != nil { - // log.Fatal(err) + // log.Fatal(err) // } // fmt.Printf("Point 256 is active: %t\n", active) - + // Output: Checking if point 256 is active... } func ExampleClient_GetSponsor() { // This is a mock example - would require real azimuth-watcher endpoint fmt.Printf("Getting sponsor for star 256...\n") - + // In a real scenario: // client := azimuth.NewClient("") // ctx := context.Background() @@ -145,14 +145,14 @@ func ExampleClient_GetSponsor() { // log.Fatal(err) // } // fmt.Printf("Star 256 is sponsored by galaxy %d\n", sponsor) - + // Output: Getting sponsor for star 256... } func ExampleValidateStarSponsorship() { // This is a mock example - would require real azimuth-watcher endpoint fmt.Printf("Validating star 256 is sponsored by galaxy 0...\n") - + // In a real scenario: // client := azimuth.NewClient("") // ctx := context.Background() @@ -162,6 +162,6 @@ func ExampleValidateStarSponsorship() { // } else { // fmt.Printf("Validation successful!\n") // } - + // Output: Validating star 256 is sponsored by galaxy 0... -} \ No newline at end of file +}