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>
This commit is contained in:
John Hyde 2025-09-09 17:01:30 -07:00
parent 1a568ba765
commit 075af942a2
4 changed files with 780 additions and 207 deletions

View File

@ -68,10 +68,10 @@ type CachedKey struct {
// PointOwnership represents point ownership information from Azimuth
type PointOwnership struct {
Owner string `json:"owner"`
IsActive bool `json:"is_active"`
HasSponsor bool `json:"has_sponsor"`
Sponsor uint32 `json:"sponsor,omitempty"`
Owner string `json:"owner"`
IsActive bool `json:"is_active"`
HasSponsor bool `json:"has_sponsor"`
Sponsor uint32 `json:"sponsor,omitempty"`
}
// NewClient creates a new Azimuth client with default configuration
@ -251,7 +251,7 @@ func (c *Client) IsShipActive(ctx context.Context, point uint32) (bool, error) {
return false, fmt.Errorf("failed to query ship activity: %w", err)
}
return resp.AzimuthIsActive.Value, nil
return resp.IsActive.Value, nil
}
// GetSponsor retrieves the sponsor of a point
@ -271,17 +271,13 @@ func (c *Client) GetSponsor(ctx context.Context, point uint32) (uint32, error) {
return 0, fmt.Errorf("failed to query sponsor: %w", err)
}
// Parse sponsor point number from string
if resp.AzimuthGetSponsor.Value == "" {
return 0, fmt.Errorf("point %d has no sponsor", point)
}
sponsorPoint, err := strconv.ParseUint(resp.AzimuthGetSponsor.Value, 10, 32)
// Parse sponsor point number from BigInt
sponsorPoint, err := resp.GetSponsor.Value.ToUint32()
if err != nil {
return 0, fmt.Errorf("invalid sponsor point format: %w", err)
}
return uint32(sponsorPoint), nil
return sponsorPoint, nil
}
// GetOwner retrieves the owner address of a point
@ -301,7 +297,7 @@ func (c *Client) GetOwner(ctx context.Context, point uint32) (string, error) {
return "", fmt.Errorf("failed to query owner: %w", err)
}
return resp.AzimuthGetOwner.Value, nil
return resp.GetOwner.Value, nil
}
// GetPointOwnership retrieves comprehensive ownership information for a point
@ -329,20 +325,20 @@ func (c *Client) GetPointOwnership(ctx context.Context, point uint32) (*PointOwn
// Query for sponsor point number
sponsorPoint := uint32(0)
if hasSponsorResp.AzimuthHasSponsor.Value {
if hasSponsorResp.HasSponsor.Value {
sponsorResp, err := GetSponsor(ctx, c.gqlClient, pointBigInt, "latest", c.contractAddress)
if err != nil {
return nil, fmt.Errorf("failed to query sponsor: %w", err)
}
if parsed, err := strconv.ParseUint(sponsorResp.AzimuthGetSponsor.Value, 10, 32); err == nil {
sponsorPoint = uint32(parsed)
if parsed, err := sponsorResp.GetSponsor.Value.ToUint32(); err == nil {
sponsorPoint = parsed
}
}
return &PointOwnership{
Owner: ownerResp.AzimuthGetOwner.Value,
IsActive: activeResp.AzimuthIsActive.Value,
HasSponsor: hasSponsorResp.AzimuthHasSponsor.Value,
Owner: ownerResp.GetOwner.Value,
IsActive: activeResp.IsActive.Value,
HasSponsor: hasSponsorResp.HasSponsor.Value,
Sponsor: sponsorPoint,
}, nil
}
@ -365,14 +361,14 @@ func (c *Client) getShipKeys(ctx context.Context, point uint32) (*ShipKeys, erro
}
// Check if keys exist for this point
if resp.AzimuthGetKeys.Value.Value1 == "" {
if resp.GetKeys.Value.Value1 == "" {
return nil, fmt.Errorf("no keys found for point %d", point)
}
keys := &ShipKeys{}
// Parse encryption key (32 bytes hex, remove 0x prefix if present)
encKeyHex := resp.AzimuthGetKeys.Value.Value0
encKeyHex := resp.GetKeys.Value.Value0
if len(encKeyHex) > 2 && encKeyHex[:2] == "0x" {
encKeyHex = encKeyHex[2:]
}
@ -386,7 +382,7 @@ func (c *Client) getShipKeys(ctx context.Context, point uint32) (*ShipKeys, erro
}
// Parse authentication key (32 bytes hex, remove 0x prefix if present)
authKeyHex := resp.AzimuthGetKeys.Value.Value1
authKeyHex := resp.GetKeys.Value.Value1
if len(authKeyHex) > 2 && authKeyHex[:2] == "0x" {
authKeyHex = authKeyHex[2:]
}
@ -401,14 +397,14 @@ func (c *Client) getShipKeys(ctx context.Context, point uint32) (*ShipKeys, erro
keys.AuthenticationKey = reverseBytes(authKey)
// Parse crypto suite version
suite, err := resp.AzimuthGetKeys.Value.Value2.ToUint32()
suite, err := resp.GetKeys.Value.Value2.ToUint32()
if err != nil {
return nil, fmt.Errorf("failed to parse crypto suite version: %w", err)
}
keys.CryptoSuiteVersion = uint64(suite)
// Parse key revision number
revision, err := resp.AzimuthGetKeys.Value.Value3.ToUint32()
revision, err := resp.GetKeys.Value.Value3.ToUint32()
if err != nil {
return nil, fmt.Errorf("failed to parse key revision: %w", err)
}
@ -425,7 +421,7 @@ func (c *Client) getLatestBlockHash(ctx context.Context) (string, error) {
return "", fmt.Errorf("failed to query sync status: %w", err)
}
return resp.AzimuthGetSyncStatus.LatestProcessedBlockHash, nil
return resp.GetSyncStatus.LatestProcessedBlockHash, nil
}
// ValidateStarSponsorship validates that a star is sponsored by the expected galaxy

View File

@ -10,44 +10,44 @@ import (
"github.com/Khan/genqlient/graphql"
)
// EventsInRangeAzimuthEventsInRangeResultEvent includes the requested fields of the GraphQL type ResultEvent.
type EventsInRangeAzimuthEventsInRangeResultEvent struct {
Block EventsInRangeAzimuthEventsInRangeResultEventBlockBlock_ `json:"block"`
Tx EventsInRangeAzimuthEventsInRangeResultEventTxTransaction_ `json:"tx"`
EventIndex int `json:"eventIndex"`
Event EventsInRangeAzimuthEventsInRangeResultEventEvent `json:"-"`
// EventsInRangeEventsInRangeResultEvent includes the requested fields of the GraphQL type ResultEvent.
type EventsInRangeEventsInRangeResultEvent struct {
Block EventsInRangeEventsInRangeResultEventBlockBlock_ `json:"block"`
Tx EventsInRangeEventsInRangeResultEventTxTransaction_ `json:"tx"`
EventIndex int `json:"eventIndex"`
Event EventsInRangeEventsInRangeResultEventEvent `json:"-"`
}
// GetBlock returns EventsInRangeAzimuthEventsInRangeResultEvent.Block, and is useful for accessing the field via an interface.
func (v *EventsInRangeAzimuthEventsInRangeResultEvent) GetBlock() EventsInRangeAzimuthEventsInRangeResultEventBlockBlock_ {
// GetBlock returns EventsInRangeEventsInRangeResultEvent.Block, and is useful for accessing the field via an interface.
func (v *EventsInRangeEventsInRangeResultEvent) GetBlock() EventsInRangeEventsInRangeResultEventBlockBlock_ {
return v.Block
}
// GetTx returns EventsInRangeAzimuthEventsInRangeResultEvent.Tx, and is useful for accessing the field via an interface.
func (v *EventsInRangeAzimuthEventsInRangeResultEvent) GetTx() EventsInRangeAzimuthEventsInRangeResultEventTxTransaction_ {
// GetTx returns EventsInRangeEventsInRangeResultEvent.Tx, and is useful for accessing the field via an interface.
func (v *EventsInRangeEventsInRangeResultEvent) GetTx() EventsInRangeEventsInRangeResultEventTxTransaction_ {
return v.Tx
}
// GetEventIndex returns EventsInRangeAzimuthEventsInRangeResultEvent.EventIndex, and is useful for accessing the field via an interface.
func (v *EventsInRangeAzimuthEventsInRangeResultEvent) GetEventIndex() int { return v.EventIndex }
// GetEventIndex returns EventsInRangeEventsInRangeResultEvent.EventIndex, and is useful for accessing the field via an interface.
func (v *EventsInRangeEventsInRangeResultEvent) GetEventIndex() int { return v.EventIndex }
// GetEvent returns EventsInRangeAzimuthEventsInRangeResultEvent.Event, and is useful for accessing the field via an interface.
func (v *EventsInRangeAzimuthEventsInRangeResultEvent) GetEvent() EventsInRangeAzimuthEventsInRangeResultEventEvent {
// GetEvent returns EventsInRangeEventsInRangeResultEvent.Event, and is useful for accessing the field via an interface.
func (v *EventsInRangeEventsInRangeResultEvent) GetEvent() EventsInRangeEventsInRangeResultEventEvent {
return v.Event
}
func (v *EventsInRangeAzimuthEventsInRangeResultEvent) UnmarshalJSON(b []byte) error {
func (v *EventsInRangeEventsInRangeResultEvent) UnmarshalJSON(b []byte) error {
if string(b) == "null" {
return nil
}
var firstPass struct {
*EventsInRangeAzimuthEventsInRangeResultEvent
*EventsInRangeEventsInRangeResultEvent
Event json.RawMessage `json:"event"`
graphql.NoUnmarshalJSON
}
firstPass.EventsInRangeAzimuthEventsInRangeResultEvent = v
firstPass.EventsInRangeEventsInRangeResultEvent = v
err := json.Unmarshal(b, &firstPass)
if err != nil {
@ -58,28 +58,28 @@ func (v *EventsInRangeAzimuthEventsInRangeResultEvent) UnmarshalJSON(b []byte) e
dst := &v.Event
src := firstPass.Event
if len(src) != 0 && string(src) != "null" {
err = __unmarshalEventsInRangeAzimuthEventsInRangeResultEventEvent(
err = __unmarshalEventsInRangeEventsInRangeResultEventEvent(
src, dst)
if err != nil {
return fmt.Errorf(
"unable to unmarshal EventsInRangeAzimuthEventsInRangeResultEvent.Event: %w", err)
"unable to unmarshal EventsInRangeEventsInRangeResultEvent.Event: %w", err)
}
}
}
return nil
}
type __premarshalEventsInRangeAzimuthEventsInRangeResultEvent struct {
Block EventsInRangeAzimuthEventsInRangeResultEventBlockBlock_ `json:"block"`
type __premarshalEventsInRangeEventsInRangeResultEvent struct {
Block EventsInRangeEventsInRangeResultEventBlockBlock_ `json:"block"`
Tx EventsInRangeAzimuthEventsInRangeResultEventTxTransaction_ `json:"tx"`
Tx EventsInRangeEventsInRangeResultEventTxTransaction_ `json:"tx"`
EventIndex int `json:"eventIndex"`
Event json.RawMessage `json:"event"`
}
func (v *EventsInRangeAzimuthEventsInRangeResultEvent) MarshalJSON() ([]byte, error) {
func (v *EventsInRangeEventsInRangeResultEvent) MarshalJSON() ([]byte, error) {
premarshaled, err := v.__premarshalJSON()
if err != nil {
return nil, err
@ -87,8 +87,8 @@ func (v *EventsInRangeAzimuthEventsInRangeResultEvent) MarshalJSON() ([]byte, er
return json.Marshal(premarshaled)
}
func (v *EventsInRangeAzimuthEventsInRangeResultEvent) __premarshalJSON() (*__premarshalEventsInRangeAzimuthEventsInRangeResultEvent, error) {
var retval __premarshalEventsInRangeAzimuthEventsInRangeResultEvent
func (v *EventsInRangeEventsInRangeResultEvent) __premarshalJSON() (*__premarshalEventsInRangeEventsInRangeResultEvent, error) {
var retval __premarshalEventsInRangeEventsInRangeResultEvent
retval.Block = v.Block
retval.Tx = v.Tx
@ -98,42 +98,87 @@ func (v *EventsInRangeAzimuthEventsInRangeResultEvent) __premarshalJSON() (*__pr
dst := &retval.Event
src := v.Event
var err error
*dst, err = __marshalEventsInRangeAzimuthEventsInRangeResultEventEvent(
*dst, err = __marshalEventsInRangeEventsInRangeResultEventEvent(
&src)
if err != nil {
return nil, fmt.Errorf(
"unable to marshal EventsInRangeAzimuthEventsInRangeResultEvent.Event: %w", err)
"unable to marshal EventsInRangeEventsInRangeResultEvent.Event: %w", err)
}
}
return &retval, nil
}
// EventsInRangeAzimuthEventsInRangeResultEventBlockBlock_ includes the requested fields of the GraphQL type _Block_.
type EventsInRangeAzimuthEventsInRangeResultEventBlockBlock_ struct {
// EventsInRangeEventsInRangeResultEventBlockBlock_ includes the requested fields of the GraphQL type _Block_.
type EventsInRangeEventsInRangeResultEventBlockBlock_ struct {
Hash string `json:"hash"`
Number int `json:"number"`
}
// GetHash returns EventsInRangeAzimuthEventsInRangeResultEventBlockBlock_.Hash, and is useful for accessing the field via an interface.
func (v *EventsInRangeAzimuthEventsInRangeResultEventBlockBlock_) GetHash() string { return v.Hash }
// GetHash returns EventsInRangeEventsInRangeResultEventBlockBlock_.Hash, and is useful for accessing the field via an interface.
func (v *EventsInRangeEventsInRangeResultEventBlockBlock_) GetHash() string { return v.Hash }
// GetNumber returns EventsInRangeAzimuthEventsInRangeResultEventBlockBlock_.Number, and is useful for accessing the field via an interface.
func (v *EventsInRangeAzimuthEventsInRangeResultEventBlockBlock_) GetNumber() int { return v.Number }
// GetNumber returns EventsInRangeEventsInRangeResultEventBlockBlock_.Number, and is useful for accessing the field via an interface.
func (v *EventsInRangeEventsInRangeResultEventBlockBlock_) GetNumber() int { return v.Number }
// EventsInRangeAzimuthEventsInRangeResultEventEvent includes the requested fields of the GraphQL interface Event.
// EventsInRangeEventsInRangeResultEventEvent includes the requested fields of the GraphQL interface Event.
//
// EventsInRangeAzimuthEventsInRangeResultEventEvent is implemented by the following types:
// EventsInRangeAzimuthEventsInRangeResultEventEventOwnerChangedEvent
type EventsInRangeAzimuthEventsInRangeResultEventEvent interface {
implementsGraphQLInterfaceEventsInRangeAzimuthEventsInRangeResultEventEvent()
// EventsInRangeEventsInRangeResultEventEvent is implemented by the following types:
// EventsInRangeEventsInRangeResultEventEventActivatedEvent
// EventsInRangeEventsInRangeResultEventEventBrokeContinuityEvent
// EventsInRangeEventsInRangeResultEventEventChangedDnsEvent
// EventsInRangeEventsInRangeResultEventEventChangedKeysEvent
// EventsInRangeEventsInRangeResultEventEventChangedManagementProxyEvent
// EventsInRangeEventsInRangeResultEventEventChangedSpawnProxyEvent
// EventsInRangeEventsInRangeResultEventEventChangedTransferProxyEvent
// EventsInRangeEventsInRangeResultEventEventChangedVotingProxyEvent
// EventsInRangeEventsInRangeResultEventEventEscapeAcceptedEvent
// EventsInRangeEventsInRangeResultEventEventEscapeCanceledEvent
// EventsInRangeEventsInRangeResultEventEventEscapeRequestedEvent
// EventsInRangeEventsInRangeResultEventEventLostSponsorEvent
// EventsInRangeEventsInRangeResultEventEventOwnerChangedEvent
// EventsInRangeEventsInRangeResultEventEventOwnershipRenouncedEvent
// EventsInRangeEventsInRangeResultEventEventOwnershipTransferredEvent
// EventsInRangeEventsInRangeResultEventEventSpawnedEvent
type EventsInRangeEventsInRangeResultEventEvent interface {
implementsGraphQLInterfaceEventsInRangeEventsInRangeResultEventEvent()
// GetTypename returns the receiver's concrete GraphQL type-name (see interface doc for possible values).
GetTypename() string
}
func (v *EventsInRangeAzimuthEventsInRangeResultEventEventOwnerChangedEvent) implementsGraphQLInterfaceEventsInRangeAzimuthEventsInRangeResultEventEvent() {
func (v *EventsInRangeEventsInRangeResultEventEventActivatedEvent) implementsGraphQLInterfaceEventsInRangeEventsInRangeResultEventEvent() {
}
func (v *EventsInRangeEventsInRangeResultEventEventBrokeContinuityEvent) implementsGraphQLInterfaceEventsInRangeEventsInRangeResultEventEvent() {
}
func (v *EventsInRangeEventsInRangeResultEventEventChangedDnsEvent) implementsGraphQLInterfaceEventsInRangeEventsInRangeResultEventEvent() {
}
func (v *EventsInRangeEventsInRangeResultEventEventChangedKeysEvent) implementsGraphQLInterfaceEventsInRangeEventsInRangeResultEventEvent() {
}
func (v *EventsInRangeEventsInRangeResultEventEventChangedManagementProxyEvent) implementsGraphQLInterfaceEventsInRangeEventsInRangeResultEventEvent() {
}
func (v *EventsInRangeEventsInRangeResultEventEventChangedSpawnProxyEvent) implementsGraphQLInterfaceEventsInRangeEventsInRangeResultEventEvent() {
}
func (v *EventsInRangeEventsInRangeResultEventEventChangedTransferProxyEvent) implementsGraphQLInterfaceEventsInRangeEventsInRangeResultEventEvent() {
}
func (v *EventsInRangeEventsInRangeResultEventEventChangedVotingProxyEvent) implementsGraphQLInterfaceEventsInRangeEventsInRangeResultEventEvent() {
}
func (v *EventsInRangeEventsInRangeResultEventEventEscapeAcceptedEvent) implementsGraphQLInterfaceEventsInRangeEventsInRangeResultEventEvent() {
}
func (v *EventsInRangeEventsInRangeResultEventEventEscapeCanceledEvent) implementsGraphQLInterfaceEventsInRangeEventsInRangeResultEventEvent() {
}
func (v *EventsInRangeEventsInRangeResultEventEventEscapeRequestedEvent) implementsGraphQLInterfaceEventsInRangeEventsInRangeResultEventEvent() {
}
func (v *EventsInRangeEventsInRangeResultEventEventLostSponsorEvent) implementsGraphQLInterfaceEventsInRangeEventsInRangeResultEventEvent() {
}
func (v *EventsInRangeEventsInRangeResultEventEventOwnerChangedEvent) implementsGraphQLInterfaceEventsInRangeEventsInRangeResultEventEvent() {
}
func (v *EventsInRangeEventsInRangeResultEventEventOwnershipRenouncedEvent) implementsGraphQLInterfaceEventsInRangeEventsInRangeResultEventEvent() {
}
func (v *EventsInRangeEventsInRangeResultEventEventOwnershipTransferredEvent) implementsGraphQLInterfaceEventsInRangeEventsInRangeResultEventEvent() {
}
func (v *EventsInRangeEventsInRangeResultEventEventSpawnedEvent) implementsGraphQLInterfaceEventsInRangeEventsInRangeResultEventEvent() {
}
func __unmarshalEventsInRangeAzimuthEventsInRangeResultEventEvent(b []byte, v *EventsInRangeAzimuthEventsInRangeResultEventEvent) error {
func __unmarshalEventsInRangeEventsInRangeResultEventEvent(b []byte, v *EventsInRangeEventsInRangeResultEventEvent) error {
if string(b) == "null" {
return nil
}
@ -147,241 +192,562 @@ func __unmarshalEventsInRangeAzimuthEventsInRangeResultEventEvent(b []byte, v *E
}
switch tn.TypeName {
case "ActivatedEvent":
*v = new(EventsInRangeEventsInRangeResultEventEventActivatedEvent)
return json.Unmarshal(b, *v)
case "BrokeContinuityEvent":
*v = new(EventsInRangeEventsInRangeResultEventEventBrokeContinuityEvent)
return json.Unmarshal(b, *v)
case "ChangedDnsEvent":
*v = new(EventsInRangeEventsInRangeResultEventEventChangedDnsEvent)
return json.Unmarshal(b, *v)
case "ChangedKeysEvent":
*v = new(EventsInRangeEventsInRangeResultEventEventChangedKeysEvent)
return json.Unmarshal(b, *v)
case "ChangedManagementProxyEvent":
*v = new(EventsInRangeEventsInRangeResultEventEventChangedManagementProxyEvent)
return json.Unmarshal(b, *v)
case "ChangedSpawnProxyEvent":
*v = new(EventsInRangeEventsInRangeResultEventEventChangedSpawnProxyEvent)
return json.Unmarshal(b, *v)
case "ChangedTransferProxyEvent":
*v = new(EventsInRangeEventsInRangeResultEventEventChangedTransferProxyEvent)
return json.Unmarshal(b, *v)
case "ChangedVotingProxyEvent":
*v = new(EventsInRangeEventsInRangeResultEventEventChangedVotingProxyEvent)
return json.Unmarshal(b, *v)
case "EscapeAcceptedEvent":
*v = new(EventsInRangeEventsInRangeResultEventEventEscapeAcceptedEvent)
return json.Unmarshal(b, *v)
case "EscapeCanceledEvent":
*v = new(EventsInRangeEventsInRangeResultEventEventEscapeCanceledEvent)
return json.Unmarshal(b, *v)
case "EscapeRequestedEvent":
*v = new(EventsInRangeEventsInRangeResultEventEventEscapeRequestedEvent)
return json.Unmarshal(b, *v)
case "LostSponsorEvent":
*v = new(EventsInRangeEventsInRangeResultEventEventLostSponsorEvent)
return json.Unmarshal(b, *v)
case "OwnerChangedEvent":
*v = new(EventsInRangeAzimuthEventsInRangeResultEventEventOwnerChangedEvent)
*v = new(EventsInRangeEventsInRangeResultEventEventOwnerChangedEvent)
return json.Unmarshal(b, *v)
case "OwnershipRenouncedEvent":
*v = new(EventsInRangeEventsInRangeResultEventEventOwnershipRenouncedEvent)
return json.Unmarshal(b, *v)
case "OwnershipTransferredEvent":
*v = new(EventsInRangeEventsInRangeResultEventEventOwnershipTransferredEvent)
return json.Unmarshal(b, *v)
case "SpawnedEvent":
*v = new(EventsInRangeEventsInRangeResultEventEventSpawnedEvent)
return json.Unmarshal(b, *v)
case "":
return fmt.Errorf(
"response was missing Event.__typename")
default:
return fmt.Errorf(
`unexpected concrete type for EventsInRangeAzimuthEventsInRangeResultEventEvent: "%v"`, tn.TypeName)
`unexpected concrete type for EventsInRangeEventsInRangeResultEventEvent: "%v"`, tn.TypeName)
}
}
func __marshalEventsInRangeAzimuthEventsInRangeResultEventEvent(v *EventsInRangeAzimuthEventsInRangeResultEventEvent) ([]byte, error) {
func __marshalEventsInRangeEventsInRangeResultEventEvent(v *EventsInRangeEventsInRangeResultEventEvent) ([]byte, error) {
var typename string
switch v := (*v).(type) {
case *EventsInRangeAzimuthEventsInRangeResultEventEventOwnerChangedEvent:
case *EventsInRangeEventsInRangeResultEventEventActivatedEvent:
typename = "ActivatedEvent"
result := struct {
TypeName string `json:"__typename"`
*EventsInRangeEventsInRangeResultEventEventActivatedEvent
}{typename, v}
return json.Marshal(result)
case *EventsInRangeEventsInRangeResultEventEventBrokeContinuityEvent:
typename = "BrokeContinuityEvent"
result := struct {
TypeName string `json:"__typename"`
*EventsInRangeEventsInRangeResultEventEventBrokeContinuityEvent
}{typename, v}
return json.Marshal(result)
case *EventsInRangeEventsInRangeResultEventEventChangedDnsEvent:
typename = "ChangedDnsEvent"
result := struct {
TypeName string `json:"__typename"`
*EventsInRangeEventsInRangeResultEventEventChangedDnsEvent
}{typename, v}
return json.Marshal(result)
case *EventsInRangeEventsInRangeResultEventEventChangedKeysEvent:
typename = "ChangedKeysEvent"
result := struct {
TypeName string `json:"__typename"`
*EventsInRangeEventsInRangeResultEventEventChangedKeysEvent
}{typename, v}
return json.Marshal(result)
case *EventsInRangeEventsInRangeResultEventEventChangedManagementProxyEvent:
typename = "ChangedManagementProxyEvent"
result := struct {
TypeName string `json:"__typename"`
*EventsInRangeEventsInRangeResultEventEventChangedManagementProxyEvent
}{typename, v}
return json.Marshal(result)
case *EventsInRangeEventsInRangeResultEventEventChangedSpawnProxyEvent:
typename = "ChangedSpawnProxyEvent"
result := struct {
TypeName string `json:"__typename"`
*EventsInRangeEventsInRangeResultEventEventChangedSpawnProxyEvent
}{typename, v}
return json.Marshal(result)
case *EventsInRangeEventsInRangeResultEventEventChangedTransferProxyEvent:
typename = "ChangedTransferProxyEvent"
result := struct {
TypeName string `json:"__typename"`
*EventsInRangeEventsInRangeResultEventEventChangedTransferProxyEvent
}{typename, v}
return json.Marshal(result)
case *EventsInRangeEventsInRangeResultEventEventChangedVotingProxyEvent:
typename = "ChangedVotingProxyEvent"
result := struct {
TypeName string `json:"__typename"`
*EventsInRangeEventsInRangeResultEventEventChangedVotingProxyEvent
}{typename, v}
return json.Marshal(result)
case *EventsInRangeEventsInRangeResultEventEventEscapeAcceptedEvent:
typename = "EscapeAcceptedEvent"
result := struct {
TypeName string `json:"__typename"`
*EventsInRangeEventsInRangeResultEventEventEscapeAcceptedEvent
}{typename, v}
return json.Marshal(result)
case *EventsInRangeEventsInRangeResultEventEventEscapeCanceledEvent:
typename = "EscapeCanceledEvent"
result := struct {
TypeName string `json:"__typename"`
*EventsInRangeEventsInRangeResultEventEventEscapeCanceledEvent
}{typename, v}
return json.Marshal(result)
case *EventsInRangeEventsInRangeResultEventEventEscapeRequestedEvent:
typename = "EscapeRequestedEvent"
result := struct {
TypeName string `json:"__typename"`
*EventsInRangeEventsInRangeResultEventEventEscapeRequestedEvent
}{typename, v}
return json.Marshal(result)
case *EventsInRangeEventsInRangeResultEventEventLostSponsorEvent:
typename = "LostSponsorEvent"
result := struct {
TypeName string `json:"__typename"`
*EventsInRangeEventsInRangeResultEventEventLostSponsorEvent
}{typename, v}
return json.Marshal(result)
case *EventsInRangeEventsInRangeResultEventEventOwnerChangedEvent:
typename = "OwnerChangedEvent"
result := struct {
TypeName string `json:"__typename"`
*EventsInRangeAzimuthEventsInRangeResultEventEventOwnerChangedEvent
*EventsInRangeEventsInRangeResultEventEventOwnerChangedEvent
}{typename, v}
return json.Marshal(result)
case *EventsInRangeEventsInRangeResultEventEventOwnershipRenouncedEvent:
typename = "OwnershipRenouncedEvent"
result := struct {
TypeName string `json:"__typename"`
*EventsInRangeEventsInRangeResultEventEventOwnershipRenouncedEvent
}{typename, v}
return json.Marshal(result)
case *EventsInRangeEventsInRangeResultEventEventOwnershipTransferredEvent:
typename = "OwnershipTransferredEvent"
result := struct {
TypeName string `json:"__typename"`
*EventsInRangeEventsInRangeResultEventEventOwnershipTransferredEvent
}{typename, v}
return json.Marshal(result)
case *EventsInRangeEventsInRangeResultEventEventSpawnedEvent:
typename = "SpawnedEvent"
result := struct {
TypeName string `json:"__typename"`
*EventsInRangeEventsInRangeResultEventEventSpawnedEvent
}{typename, v}
return json.Marshal(result)
case nil:
return []byte("null"), nil
default:
return nil, fmt.Errorf(
`unexpected concrete type for EventsInRangeAzimuthEventsInRangeResultEventEvent: "%T"`, v)
`unexpected concrete type for EventsInRangeEventsInRangeResultEventEvent: "%T"`, v)
}
}
// EventsInRangeAzimuthEventsInRangeResultEventEventOwnerChangedEvent includes the requested fields of the GraphQL type OwnerChangedEvent.
type EventsInRangeAzimuthEventsInRangeResultEventEventOwnerChangedEvent struct {
// EventsInRangeEventsInRangeResultEventEventActivatedEvent includes the requested fields of the GraphQL type ActivatedEvent.
type EventsInRangeEventsInRangeResultEventEventActivatedEvent struct {
Typename string `json:"__typename"`
}
// GetTypename returns EventsInRangeEventsInRangeResultEventEventActivatedEvent.Typename, and is useful for accessing the field via an interface.
func (v *EventsInRangeEventsInRangeResultEventEventActivatedEvent) GetTypename() string {
return v.Typename
}
// EventsInRangeEventsInRangeResultEventEventBrokeContinuityEvent includes the requested fields of the GraphQL type BrokeContinuityEvent.
type EventsInRangeEventsInRangeResultEventEventBrokeContinuityEvent struct {
Typename string `json:"__typename"`
}
// GetTypename returns EventsInRangeEventsInRangeResultEventEventBrokeContinuityEvent.Typename, and is useful for accessing the field via an interface.
func (v *EventsInRangeEventsInRangeResultEventEventBrokeContinuityEvent) GetTypename() string {
return v.Typename
}
// EventsInRangeEventsInRangeResultEventEventChangedDnsEvent includes the requested fields of the GraphQL type ChangedDnsEvent.
type EventsInRangeEventsInRangeResultEventEventChangedDnsEvent struct {
Typename string `json:"__typename"`
}
// GetTypename returns EventsInRangeEventsInRangeResultEventEventChangedDnsEvent.Typename, and is useful for accessing the field via an interface.
func (v *EventsInRangeEventsInRangeResultEventEventChangedDnsEvent) GetTypename() string {
return v.Typename
}
// EventsInRangeEventsInRangeResultEventEventChangedKeysEvent includes the requested fields of the GraphQL type ChangedKeysEvent.
type EventsInRangeEventsInRangeResultEventEventChangedKeysEvent struct {
Typename string `json:"__typename"`
}
// GetTypename returns EventsInRangeEventsInRangeResultEventEventChangedKeysEvent.Typename, and is useful for accessing the field via an interface.
func (v *EventsInRangeEventsInRangeResultEventEventChangedKeysEvent) GetTypename() string {
return v.Typename
}
// EventsInRangeEventsInRangeResultEventEventChangedManagementProxyEvent includes the requested fields of the GraphQL type ChangedManagementProxyEvent.
type EventsInRangeEventsInRangeResultEventEventChangedManagementProxyEvent struct {
Typename string `json:"__typename"`
}
// GetTypename returns EventsInRangeEventsInRangeResultEventEventChangedManagementProxyEvent.Typename, and is useful for accessing the field via an interface.
func (v *EventsInRangeEventsInRangeResultEventEventChangedManagementProxyEvent) GetTypename() string {
return v.Typename
}
// EventsInRangeEventsInRangeResultEventEventChangedSpawnProxyEvent includes the requested fields of the GraphQL type ChangedSpawnProxyEvent.
type EventsInRangeEventsInRangeResultEventEventChangedSpawnProxyEvent struct {
Typename string `json:"__typename"`
}
// GetTypename returns EventsInRangeEventsInRangeResultEventEventChangedSpawnProxyEvent.Typename, and is useful for accessing the field via an interface.
func (v *EventsInRangeEventsInRangeResultEventEventChangedSpawnProxyEvent) GetTypename() string {
return v.Typename
}
// EventsInRangeEventsInRangeResultEventEventChangedTransferProxyEvent includes the requested fields of the GraphQL type ChangedTransferProxyEvent.
type EventsInRangeEventsInRangeResultEventEventChangedTransferProxyEvent struct {
Typename string `json:"__typename"`
}
// GetTypename returns EventsInRangeEventsInRangeResultEventEventChangedTransferProxyEvent.Typename, and is useful for accessing the field via an interface.
func (v *EventsInRangeEventsInRangeResultEventEventChangedTransferProxyEvent) GetTypename() string {
return v.Typename
}
// EventsInRangeEventsInRangeResultEventEventChangedVotingProxyEvent includes the requested fields of the GraphQL type ChangedVotingProxyEvent.
type EventsInRangeEventsInRangeResultEventEventChangedVotingProxyEvent struct {
Typename string `json:"__typename"`
}
// GetTypename returns EventsInRangeEventsInRangeResultEventEventChangedVotingProxyEvent.Typename, and is useful for accessing the field via an interface.
func (v *EventsInRangeEventsInRangeResultEventEventChangedVotingProxyEvent) GetTypename() string {
return v.Typename
}
// EventsInRangeEventsInRangeResultEventEventEscapeAcceptedEvent includes the requested fields of the GraphQL type EscapeAcceptedEvent.
type EventsInRangeEventsInRangeResultEventEventEscapeAcceptedEvent struct {
Typename string `json:"__typename"`
}
// GetTypename returns EventsInRangeEventsInRangeResultEventEventEscapeAcceptedEvent.Typename, and is useful for accessing the field via an interface.
func (v *EventsInRangeEventsInRangeResultEventEventEscapeAcceptedEvent) GetTypename() string {
return v.Typename
}
// EventsInRangeEventsInRangeResultEventEventEscapeCanceledEvent includes the requested fields of the GraphQL type EscapeCanceledEvent.
type EventsInRangeEventsInRangeResultEventEventEscapeCanceledEvent struct {
Typename string `json:"__typename"`
}
// GetTypename returns EventsInRangeEventsInRangeResultEventEventEscapeCanceledEvent.Typename, and is useful for accessing the field via an interface.
func (v *EventsInRangeEventsInRangeResultEventEventEscapeCanceledEvent) GetTypename() string {
return v.Typename
}
// EventsInRangeEventsInRangeResultEventEventEscapeRequestedEvent includes the requested fields of the GraphQL type EscapeRequestedEvent.
type EventsInRangeEventsInRangeResultEventEventEscapeRequestedEvent struct {
Typename string `json:"__typename"`
}
// GetTypename returns EventsInRangeEventsInRangeResultEventEventEscapeRequestedEvent.Typename, and is useful for accessing the field via an interface.
func (v *EventsInRangeEventsInRangeResultEventEventEscapeRequestedEvent) GetTypename() string {
return v.Typename
}
// EventsInRangeEventsInRangeResultEventEventLostSponsorEvent includes the requested fields of the GraphQL type LostSponsorEvent.
type EventsInRangeEventsInRangeResultEventEventLostSponsorEvent struct {
Typename string `json:"__typename"`
}
// GetTypename returns EventsInRangeEventsInRangeResultEventEventLostSponsorEvent.Typename, and is useful for accessing the field via an interface.
func (v *EventsInRangeEventsInRangeResultEventEventLostSponsorEvent) GetTypename() string {
return v.Typename
}
// EventsInRangeEventsInRangeResultEventEventOwnerChangedEvent includes the requested fields of the GraphQL type OwnerChangedEvent.
type EventsInRangeEventsInRangeResultEventEventOwnerChangedEvent struct {
Typename string `json:"__typename"`
Point BigInt `json:"point"`
Owner string `json:"owner"`
}
// GetTypename returns EventsInRangeAzimuthEventsInRangeResultEventEventOwnerChangedEvent.Typename, and is useful for accessing the field via an interface.
func (v *EventsInRangeAzimuthEventsInRangeResultEventEventOwnerChangedEvent) GetTypename() string {
// GetTypename returns EventsInRangeEventsInRangeResultEventEventOwnerChangedEvent.Typename, and is useful for accessing the field via an interface.
func (v *EventsInRangeEventsInRangeResultEventEventOwnerChangedEvent) GetTypename() string {
return v.Typename
}
// GetPoint returns EventsInRangeAzimuthEventsInRangeResultEventEventOwnerChangedEvent.Point, and is useful for accessing the field via an interface.
func (v *EventsInRangeAzimuthEventsInRangeResultEventEventOwnerChangedEvent) GetPoint() BigInt {
// GetPoint returns EventsInRangeEventsInRangeResultEventEventOwnerChangedEvent.Point, and is useful for accessing the field via an interface.
func (v *EventsInRangeEventsInRangeResultEventEventOwnerChangedEvent) GetPoint() BigInt {
return v.Point
}
// GetOwner returns EventsInRangeAzimuthEventsInRangeResultEventEventOwnerChangedEvent.Owner, and is useful for accessing the field via an interface.
func (v *EventsInRangeAzimuthEventsInRangeResultEventEventOwnerChangedEvent) GetOwner() string {
// GetOwner returns EventsInRangeEventsInRangeResultEventEventOwnerChangedEvent.Owner, and is useful for accessing the field via an interface.
func (v *EventsInRangeEventsInRangeResultEventEventOwnerChangedEvent) GetOwner() string {
return v.Owner
}
// EventsInRangeAzimuthEventsInRangeResultEventTxTransaction_ includes the requested fields of the GraphQL type _Transaction_.
type EventsInRangeAzimuthEventsInRangeResultEventTxTransaction_ struct {
// EventsInRangeEventsInRangeResultEventEventOwnershipRenouncedEvent includes the requested fields of the GraphQL type OwnershipRenouncedEvent.
type EventsInRangeEventsInRangeResultEventEventOwnershipRenouncedEvent struct {
Typename string `json:"__typename"`
}
// GetTypename returns EventsInRangeEventsInRangeResultEventEventOwnershipRenouncedEvent.Typename, and is useful for accessing the field via an interface.
func (v *EventsInRangeEventsInRangeResultEventEventOwnershipRenouncedEvent) GetTypename() string {
return v.Typename
}
// EventsInRangeEventsInRangeResultEventEventOwnershipTransferredEvent includes the requested fields of the GraphQL type OwnershipTransferredEvent.
type EventsInRangeEventsInRangeResultEventEventOwnershipTransferredEvent struct {
Typename string `json:"__typename"`
}
// GetTypename returns EventsInRangeEventsInRangeResultEventEventOwnershipTransferredEvent.Typename, and is useful for accessing the field via an interface.
func (v *EventsInRangeEventsInRangeResultEventEventOwnershipTransferredEvent) GetTypename() string {
return v.Typename
}
// EventsInRangeEventsInRangeResultEventEventSpawnedEvent includes the requested fields of the GraphQL type SpawnedEvent.
type EventsInRangeEventsInRangeResultEventEventSpawnedEvent struct {
Typename string `json:"__typename"`
}
// GetTypename returns EventsInRangeEventsInRangeResultEventEventSpawnedEvent.Typename, and is useful for accessing the field via an interface.
func (v *EventsInRangeEventsInRangeResultEventEventSpawnedEvent) GetTypename() string {
return v.Typename
}
// EventsInRangeEventsInRangeResultEventTxTransaction_ includes the requested fields of the GraphQL type _Transaction_.
type EventsInRangeEventsInRangeResultEventTxTransaction_ struct {
Hash string `json:"hash"`
Index int `json:"index"`
From string `json:"from"`
To string `json:"to"`
}
// GetHash returns EventsInRangeAzimuthEventsInRangeResultEventTxTransaction_.Hash, and is useful for accessing the field via an interface.
func (v *EventsInRangeAzimuthEventsInRangeResultEventTxTransaction_) GetHash() string { return v.Hash }
// GetHash returns EventsInRangeEventsInRangeResultEventTxTransaction_.Hash, and is useful for accessing the field via an interface.
func (v *EventsInRangeEventsInRangeResultEventTxTransaction_) GetHash() string { return v.Hash }
// GetIndex returns EventsInRangeAzimuthEventsInRangeResultEventTxTransaction_.Index, and is useful for accessing the field via an interface.
func (v *EventsInRangeAzimuthEventsInRangeResultEventTxTransaction_) GetIndex() int { return v.Index }
// GetIndex returns EventsInRangeEventsInRangeResultEventTxTransaction_.Index, and is useful for accessing the field via an interface.
func (v *EventsInRangeEventsInRangeResultEventTxTransaction_) GetIndex() int { return v.Index }
// GetFrom returns EventsInRangeAzimuthEventsInRangeResultEventTxTransaction_.From, and is useful for accessing the field via an interface.
func (v *EventsInRangeAzimuthEventsInRangeResultEventTxTransaction_) GetFrom() string { return v.From }
// GetFrom returns EventsInRangeEventsInRangeResultEventTxTransaction_.From, and is useful for accessing the field via an interface.
func (v *EventsInRangeEventsInRangeResultEventTxTransaction_) GetFrom() string { return v.From }
// GetTo returns EventsInRangeAzimuthEventsInRangeResultEventTxTransaction_.To, and is useful for accessing the field via an interface.
func (v *EventsInRangeAzimuthEventsInRangeResultEventTxTransaction_) GetTo() string { return v.To }
// GetTo returns EventsInRangeEventsInRangeResultEventTxTransaction_.To, and is useful for accessing the field via an interface.
func (v *EventsInRangeEventsInRangeResultEventTxTransaction_) GetTo() string { return v.To }
// EventsInRangeResponse is returned by EventsInRange on success.
type EventsInRangeResponse struct {
AzimuthEventsInRange []EventsInRangeAzimuthEventsInRangeResultEvent `json:"azimuthEventsInRange"`
EventsInRange []EventsInRangeEventsInRangeResultEvent `json:"eventsInRange"`
}
// GetAzimuthEventsInRange returns EventsInRangeResponse.AzimuthEventsInRange, and is useful for accessing the field via an interface.
func (v *EventsInRangeResponse) GetAzimuthEventsInRange() []EventsInRangeAzimuthEventsInRangeResultEvent {
return v.AzimuthEventsInRange
// GetEventsInRange returns EventsInRangeResponse.EventsInRange, and is useful for accessing the field via an interface.
func (v *EventsInRangeResponse) GetEventsInRange() []EventsInRangeEventsInRangeResultEvent {
return v.EventsInRange
}
// GetKeysAzimuthGetKeysResultGetKeysType includes the requested fields of the GraphQL type ResultGetKeysType.
type GetKeysAzimuthGetKeysResultGetKeysType struct {
Value GetKeysAzimuthGetKeysResultGetKeysTypeValueGetKeysType `json:"value"`
Proof GetKeysAzimuthGetKeysResultGetKeysTypeProof `json:"proof"`
// GetKeysGetKeysResultGetKeysType includes the requested fields of the GraphQL type ResultGetKeysType.
type GetKeysGetKeysResultGetKeysType struct {
Value GetKeysGetKeysResultGetKeysTypeValueGetKeysType `json:"value"`
Proof GetKeysGetKeysResultGetKeysTypeProof `json:"proof"`
}
// GetValue returns GetKeysAzimuthGetKeysResultGetKeysType.Value, and is useful for accessing the field via an interface.
func (v *GetKeysAzimuthGetKeysResultGetKeysType) GetValue() GetKeysAzimuthGetKeysResultGetKeysTypeValueGetKeysType {
// GetValue returns GetKeysGetKeysResultGetKeysType.Value, and is useful for accessing the field via an interface.
func (v *GetKeysGetKeysResultGetKeysType) GetValue() GetKeysGetKeysResultGetKeysTypeValueGetKeysType {
return v.Value
}
// GetProof returns GetKeysAzimuthGetKeysResultGetKeysType.Proof, and is useful for accessing the field via an interface.
func (v *GetKeysAzimuthGetKeysResultGetKeysType) GetProof() GetKeysAzimuthGetKeysResultGetKeysTypeProof {
// GetProof returns GetKeysGetKeysResultGetKeysType.Proof, and is useful for accessing the field via an interface.
func (v *GetKeysGetKeysResultGetKeysType) GetProof() GetKeysGetKeysResultGetKeysTypeProof {
return v.Proof
}
// GetKeysAzimuthGetKeysResultGetKeysTypeProof includes the requested fields of the GraphQL type Proof.
type GetKeysAzimuthGetKeysResultGetKeysTypeProof struct {
// GetKeysGetKeysResultGetKeysTypeProof includes the requested fields of the GraphQL type Proof.
type GetKeysGetKeysResultGetKeysTypeProof struct {
Data string `json:"data"`
}
// GetData returns GetKeysAzimuthGetKeysResultGetKeysTypeProof.Data, and is useful for accessing the field via an interface.
func (v *GetKeysAzimuthGetKeysResultGetKeysTypeProof) GetData() string { return v.Data }
// GetData returns GetKeysGetKeysResultGetKeysTypeProof.Data, and is useful for accessing the field via an interface.
func (v *GetKeysGetKeysResultGetKeysTypeProof) GetData() string { return v.Data }
// GetKeysAzimuthGetKeysResultGetKeysTypeValueGetKeysType includes the requested fields of the GraphQL type GetKeysType.
type GetKeysAzimuthGetKeysResultGetKeysTypeValueGetKeysType struct {
// GetKeysGetKeysResultGetKeysTypeValueGetKeysType includes the requested fields of the GraphQL type GetKeysType.
type GetKeysGetKeysResultGetKeysTypeValueGetKeysType struct {
Value0 string `json:"value0"`
Value1 string `json:"value1"`
Value2 BigInt `json:"value2"`
Value3 BigInt `json:"value3"`
}
// GetValue0 returns GetKeysAzimuthGetKeysResultGetKeysTypeValueGetKeysType.Value0, and is useful for accessing the field via an interface.
func (v *GetKeysAzimuthGetKeysResultGetKeysTypeValueGetKeysType) GetValue0() string { return v.Value0 }
// GetValue0 returns GetKeysGetKeysResultGetKeysTypeValueGetKeysType.Value0, and is useful for accessing the field via an interface.
func (v *GetKeysGetKeysResultGetKeysTypeValueGetKeysType) GetValue0() string { return v.Value0 }
// GetValue1 returns GetKeysAzimuthGetKeysResultGetKeysTypeValueGetKeysType.Value1, and is useful for accessing the field via an interface.
func (v *GetKeysAzimuthGetKeysResultGetKeysTypeValueGetKeysType) GetValue1() string { return v.Value1 }
// GetValue1 returns GetKeysGetKeysResultGetKeysTypeValueGetKeysType.Value1, and is useful for accessing the field via an interface.
func (v *GetKeysGetKeysResultGetKeysTypeValueGetKeysType) GetValue1() string { return v.Value1 }
// GetValue2 returns GetKeysAzimuthGetKeysResultGetKeysTypeValueGetKeysType.Value2, and is useful for accessing the field via an interface.
func (v *GetKeysAzimuthGetKeysResultGetKeysTypeValueGetKeysType) GetValue2() BigInt { return v.Value2 }
// GetValue2 returns GetKeysGetKeysResultGetKeysTypeValueGetKeysType.Value2, and is useful for accessing the field via an interface.
func (v *GetKeysGetKeysResultGetKeysTypeValueGetKeysType) GetValue2() BigInt { return v.Value2 }
// GetValue3 returns GetKeysAzimuthGetKeysResultGetKeysTypeValueGetKeysType.Value3, and is useful for accessing the field via an interface.
func (v *GetKeysAzimuthGetKeysResultGetKeysTypeValueGetKeysType) GetValue3() BigInt { return v.Value3 }
// GetValue3 returns GetKeysGetKeysResultGetKeysTypeValueGetKeysType.Value3, and is useful for accessing the field via an interface.
func (v *GetKeysGetKeysResultGetKeysTypeValueGetKeysType) GetValue3() BigInt { return v.Value3 }
// GetKeysResponse is returned by GetKeys on success.
type GetKeysResponse struct {
AzimuthGetKeys GetKeysAzimuthGetKeysResultGetKeysType `json:"azimuthGetKeys"`
GetKeys GetKeysGetKeysResultGetKeysType `json:"getKeys"`
}
// GetAzimuthGetKeys returns GetKeysResponse.AzimuthGetKeys, and is useful for accessing the field via an interface.
func (v *GetKeysResponse) GetAzimuthGetKeys() GetKeysAzimuthGetKeysResultGetKeysType {
return v.AzimuthGetKeys
}
// GetGetKeys returns GetKeysResponse.GetKeys, and is useful for accessing the field via an interface.
func (v *GetKeysResponse) GetGetKeys() GetKeysGetKeysResultGetKeysType { return v.GetKeys }
// GetOwnerAzimuthGetOwnerResultString includes the requested fields of the GraphQL type ResultString.
type GetOwnerAzimuthGetOwnerResultString struct {
// GetOwnerGetOwnerResultString includes the requested fields of the GraphQL type ResultString.
type GetOwnerGetOwnerResultString struct {
Value string `json:"value"`
}
// GetValue returns GetOwnerAzimuthGetOwnerResultString.Value, and is useful for accessing the field via an interface.
func (v *GetOwnerAzimuthGetOwnerResultString) GetValue() string { return v.Value }
// GetValue returns GetOwnerGetOwnerResultString.Value, and is useful for accessing the field via an interface.
func (v *GetOwnerGetOwnerResultString) GetValue() string { return v.Value }
// GetOwnerResponse is returned by GetOwner on success.
type GetOwnerResponse struct {
AzimuthGetOwner GetOwnerAzimuthGetOwnerResultString `json:"azimuthGetOwner"`
GetOwner GetOwnerGetOwnerResultString `json:"getOwner"`
}
// GetAzimuthGetOwner returns GetOwnerResponse.AzimuthGetOwner, and is useful for accessing the field via an interface.
func (v *GetOwnerResponse) GetAzimuthGetOwner() GetOwnerAzimuthGetOwnerResultString {
return v.AzimuthGetOwner
// GetGetOwner returns GetOwnerResponse.GetOwner, and is useful for accessing the field via an interface.
func (v *GetOwnerResponse) GetGetOwner() GetOwnerGetOwnerResultString { return v.GetOwner }
// GetSponsorGetSponsorResultBigInt includes the requested fields of the GraphQL type ResultBigInt.
type GetSponsorGetSponsorResultBigInt struct {
Value BigInt `json:"value"`
}
// GetSponsorAzimuthGetSponsorResultString includes the requested fields of the GraphQL type ResultString.
type GetSponsorAzimuthGetSponsorResultString struct {
Value string `json:"value"`
}
// GetValue returns GetSponsorAzimuthGetSponsorResultString.Value, and is useful for accessing the field via an interface.
func (v *GetSponsorAzimuthGetSponsorResultString) GetValue() string { return v.Value }
// GetValue returns GetSponsorGetSponsorResultBigInt.Value, and is useful for accessing the field via an interface.
func (v *GetSponsorGetSponsorResultBigInt) GetValue() BigInt { return v.Value }
// GetSponsorResponse is returned by GetSponsor on success.
type GetSponsorResponse struct {
AzimuthGetSponsor GetSponsorAzimuthGetSponsorResultString `json:"azimuthGetSponsor"`
GetSponsor GetSponsorGetSponsorResultBigInt `json:"getSponsor"`
}
// GetAzimuthGetSponsor returns GetSponsorResponse.AzimuthGetSponsor, and is useful for accessing the field via an interface.
func (v *GetSponsorResponse) GetAzimuthGetSponsor() GetSponsorAzimuthGetSponsorResultString {
return v.AzimuthGetSponsor
// GetGetSponsor returns GetSponsorResponse.GetSponsor, and is useful for accessing the field via an interface.
func (v *GetSponsorResponse) GetGetSponsor() GetSponsorGetSponsorResultBigInt { return v.GetSponsor }
// GetSponsoringGetSponsoringResultBigIntArray includes the requested fields of the GraphQL type ResultBigIntArray.
type GetSponsoringGetSponsoringResultBigIntArray struct {
Value []BigInt `json:"value"`
}
// GetSponsoringAzimuthGetSponsoringResultArray includes the requested fields of the GraphQL type ResultArray.
type GetSponsoringAzimuthGetSponsoringResultArray struct {
Value []string `json:"value"`
}
// GetValue returns GetSponsoringAzimuthGetSponsoringResultArray.Value, and is useful for accessing the field via an interface.
func (v *GetSponsoringAzimuthGetSponsoringResultArray) GetValue() []string { return v.Value }
// GetValue returns GetSponsoringGetSponsoringResultBigIntArray.Value, and is useful for accessing the field via an interface.
func (v *GetSponsoringGetSponsoringResultBigIntArray) GetValue() []BigInt { return v.Value }
// GetSponsoringResponse is returned by GetSponsoring on success.
type GetSponsoringResponse struct {
AzimuthGetSponsoring GetSponsoringAzimuthGetSponsoringResultArray `json:"azimuthGetSponsoring"`
GetSponsoring GetSponsoringGetSponsoringResultBigIntArray `json:"getSponsoring"`
}
// GetAzimuthGetSponsoring returns GetSponsoringResponse.AzimuthGetSponsoring, and is useful for accessing the field via an interface.
func (v *GetSponsoringResponse) GetAzimuthGetSponsoring() GetSponsoringAzimuthGetSponsoringResultArray {
return v.AzimuthGetSponsoring
// GetGetSponsoring returns GetSponsoringResponse.GetSponsoring, and is useful for accessing the field via an interface.
func (v *GetSponsoringResponse) GetGetSponsoring() GetSponsoringGetSponsoringResultBigIntArray {
return v.GetSponsoring
}
// GetSyncStatusAzimuthGetSyncStatus includes the requested fields of the GraphQL type SyncStatus.
type GetSyncStatusAzimuthGetSyncStatus struct {
// GetSyncStatusGetSyncStatus includes the requested fields of the GraphQL type SyncStatus.
type GetSyncStatusGetSyncStatus struct {
LatestProcessedBlockHash string `json:"latestProcessedBlockHash"`
LatestProcessedBlockNumber int `json:"latestProcessedBlockNumber"`
}
// GetLatestProcessedBlockHash returns GetSyncStatusAzimuthGetSyncStatus.LatestProcessedBlockHash, and is useful for accessing the field via an interface.
func (v *GetSyncStatusAzimuthGetSyncStatus) GetLatestProcessedBlockHash() string {
// GetLatestProcessedBlockHash returns GetSyncStatusGetSyncStatus.LatestProcessedBlockHash, and is useful for accessing the field via an interface.
func (v *GetSyncStatusGetSyncStatus) GetLatestProcessedBlockHash() string {
return v.LatestProcessedBlockHash
}
// GetLatestProcessedBlockNumber returns GetSyncStatusAzimuthGetSyncStatus.LatestProcessedBlockNumber, and is useful for accessing the field via an interface.
func (v *GetSyncStatusAzimuthGetSyncStatus) GetLatestProcessedBlockNumber() int {
// GetLatestProcessedBlockNumber returns GetSyncStatusGetSyncStatus.LatestProcessedBlockNumber, and is useful for accessing the field via an interface.
func (v *GetSyncStatusGetSyncStatus) GetLatestProcessedBlockNumber() int {
return v.LatestProcessedBlockNumber
}
// GetSyncStatusResponse is returned by GetSyncStatus on success.
type GetSyncStatusResponse struct {
AzimuthGetSyncStatus GetSyncStatusAzimuthGetSyncStatus `json:"azimuthGetSyncStatus"`
GetSyncStatus GetSyncStatusGetSyncStatus `json:"getSyncStatus"`
}
// GetAzimuthGetSyncStatus returns GetSyncStatusResponse.AzimuthGetSyncStatus, and is useful for accessing the field via an interface.
func (v *GetSyncStatusResponse) GetAzimuthGetSyncStatus() GetSyncStatusAzimuthGetSyncStatus {
return v.AzimuthGetSyncStatus
}
// GetGetSyncStatus returns GetSyncStatusResponse.GetSyncStatus, and is useful for accessing the field via an interface.
func (v *GetSyncStatusResponse) GetGetSyncStatus() GetSyncStatusGetSyncStatus { return v.GetSyncStatus }
// IsActiveAzimuthIsActiveResultBool includes the requested fields of the GraphQL type ResultBool.
type IsActiveAzimuthIsActiveResultBool struct {
// HasSponsorHasSponsorResultBoolean includes the requested fields of the GraphQL type ResultBoolean.
type HasSponsorHasSponsorResultBoolean struct {
Value bool `json:"value"`
}
// GetValue returns IsActiveAzimuthIsActiveResultBool.Value, and is useful for accessing the field via an interface.
func (v *IsActiveAzimuthIsActiveResultBool) GetValue() bool { return v.Value }
// GetValue returns HasSponsorHasSponsorResultBoolean.Value, and is useful for accessing the field via an interface.
func (v *HasSponsorHasSponsorResultBoolean) GetValue() bool { return v.Value }
// HasSponsorResponse is returned by HasSponsor on success.
type HasSponsorResponse struct {
HasSponsor HasSponsorHasSponsorResultBoolean `json:"hasSponsor"`
}
// GetHasSponsor returns HasSponsorResponse.HasSponsor, and is useful for accessing the field via an interface.
func (v *HasSponsorResponse) GetHasSponsor() HasSponsorHasSponsorResultBoolean { return v.HasSponsor }
// IsActiveIsActiveResultBoolean includes the requested fields of the GraphQL type ResultBoolean.
type IsActiveIsActiveResultBoolean struct {
Value bool `json:"value"`
}
// GetValue returns IsActiveIsActiveResultBoolean.Value, and is useful for accessing the field via an interface.
func (v *IsActiveIsActiveResultBoolean) GetValue() bool { return v.Value }
// IsActiveResponse is returned by IsActive on success.
type IsActiveResponse struct {
AzimuthIsActive IsActiveAzimuthIsActiveResultBool `json:"azimuthIsActive"`
IsActive IsActiveIsActiveResultBoolean `json:"isActive"`
}
// GetAzimuthIsActive returns IsActiveResponse.AzimuthIsActive, and is useful for accessing the field via an interface.
func (v *IsActiveResponse) GetAzimuthIsActive() IsActiveAzimuthIsActiveResultBool {
return v.AzimuthIsActive
}
// GetIsActive returns IsActiveResponse.IsActive, and is useful for accessing the field via an interface.
func (v *IsActiveResponse) GetIsActive() IsActiveIsActiveResultBoolean { return v.IsActive }
// __EventsInRangeInput is used internally by genqlient
type __EventsInRangeInput struct {
@ -463,6 +829,22 @@ func (v *__GetSponsoringInput) GetBlockHash() string { return v.BlockHash }
// GetContractAddress returns __GetSponsoringInput.ContractAddress, and is useful for accessing the field via an interface.
func (v *__GetSponsoringInput) GetContractAddress() string { return v.ContractAddress }
// __HasSponsorInput is used internally by genqlient
type __HasSponsorInput struct {
BlockHash string `json:"blockHash"`
ContractAddress string `json:"contractAddress"`
Point BigInt `json:"_point"`
}
// GetBlockHash returns __HasSponsorInput.BlockHash, and is useful for accessing the field via an interface.
func (v *__HasSponsorInput) GetBlockHash() string { return v.BlockHash }
// GetContractAddress returns __HasSponsorInput.ContractAddress, and is useful for accessing the field via an interface.
func (v *__HasSponsorInput) GetContractAddress() string { return v.ContractAddress }
// GetPoint returns __HasSponsorInput.Point, and is useful for accessing the field via an interface.
func (v *__HasSponsorInput) GetPoint() BigInt { return v.Point }
// __IsActiveInput is used internally by genqlient
type __IsActiveInput struct {
BlockHash string `json:"blockHash"`
@ -482,7 +864,7 @@ func (v *__IsActiveInput) GetPoint() BigInt { return v.Point }
// The query executed by EventsInRange.
const EventsInRange_Operation = `
query EventsInRange ($fromBlockNumber: Int!, $toBlockNumber: Int!, $name: String) {
azimuthEventsInRange(fromBlockNumber: $fromBlockNumber, toBlockNumber: $toBlockNumber, name: $name) {
eventsInRange(fromBlockNumber: $fromBlockNumber, toBlockNumber: $toBlockNumber, name: $name) {
block {
hash
number
@ -537,7 +919,7 @@ func EventsInRange(
// The query executed by GetKeys.
const GetKeys_Operation = `
query GetKeys ($blockHash: String!, $contractAddress: String!, $_point: BigInt!) {
azimuthGetKeys(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point) {
getKeys(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point) {
value {
value0
value1
@ -583,7 +965,7 @@ func GetKeys(
// The query executed by GetOwner.
const GetOwner_Operation = `
query GetOwner ($blockHash: String!, $contractAddress: String!, $_point: BigInt!) {
azimuthGetOwner(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point) {
getOwner(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point) {
value
}
}
@ -621,7 +1003,7 @@ func GetOwner(
// The query executed by GetSponsor.
const GetSponsor_Operation = `
query GetSponsor ($point: BigInt!, $blockHash: String!, $contractAddress: String!) {
azimuthGetSponsor(_point: $point, blockHash: $blockHash, contractAddress: $contractAddress) {
getSponsor(blockHash: $blockHash, contractAddress: $contractAddress, _point: $point) {
value
}
}
@ -659,7 +1041,7 @@ func GetSponsor(
// The query executed by GetSponsoring.
const GetSponsoring_Operation = `
query GetSponsoring ($sponsor: BigInt!, $blockHash: String!, $contractAddress: String!) {
azimuthGetSponsoring(_sponsor: $sponsor, blockHash: $blockHash, contractAddress: $contractAddress) {
getSponsoring(blockHash: $blockHash, contractAddress: $contractAddress, _sponsor: $sponsor) {
value
}
}
@ -697,7 +1079,7 @@ func GetSponsoring(
// The query executed by GetSyncStatus.
const GetSyncStatus_Operation = `
query GetSyncStatus {
azimuthGetSyncStatus {
getSyncStatus {
latestProcessedBlockHash
latestProcessedBlockNumber
}
@ -725,10 +1107,48 @@ func GetSyncStatus(
return data_, err_
}
// The query executed by HasSponsor.
const HasSponsor_Operation = `
query HasSponsor ($blockHash: String!, $contractAddress: String!, $_point: BigInt!) {
hasSponsor(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point) {
value
}
}
`
func HasSponsor(
ctx_ context.Context,
client_ graphql.Client,
blockHash string,
contractAddress string,
_point BigInt,
) (data_ *HasSponsorResponse, err_ error) {
req_ := &graphql.Request{
OpName: "HasSponsor",
Query: HasSponsor_Operation,
Variables: &__HasSponsorInput{
BlockHash: blockHash,
ContractAddress: contractAddress,
Point: _point,
},
}
data_ = &HasSponsorResponse{}
resp_ := &graphql.Response{Data: data_}
err_ = client_.MakeRequest(
ctx_,
req_,
resp_,
)
return data_, err_
}
// The query executed by IsActive.
const IsActive_Operation = `
query IsActive ($blockHash: String!, $contractAddress: String!, $_point: BigInt!) {
azimuthIsActive(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point) {
isActive(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point) {
value
}
}

View File

@ -1,14 +1,14 @@
# GraphQL queries for azimuth-client-go
query GetSyncStatus {
azimuthGetSyncStatus {
getSyncStatus {
latestProcessedBlockHash
latestProcessedBlockNumber
}
}
query EventsInRange($fromBlockNumber: Int!, $toBlockNumber: Int!, $name: String) {
azimuthEventsInRange(fromBlockNumber: $fromBlockNumber, toBlockNumber: $toBlockNumber, name: $name) {
eventsInRange(fromBlockNumber: $fromBlockNumber, toBlockNumber: $toBlockNumber, name: $name) {
block {
hash
number
@ -31,25 +31,25 @@ query EventsInRange($fromBlockNumber: Int!, $toBlockNumber: Int!, $name: String)
}
query GetOwner($blockHash: String!, $contractAddress: String!, $_point: BigInt!) {
azimuthGetOwner(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point) {
getOwner(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point) {
value
}
}
query GetSponsoring($sponsor: BigInt!, $blockHash: String!, $contractAddress: String!) {
azimuthGetSponsoring(_sponsor: $sponsor, blockHash: $blockHash, contractAddress: $contractAddress) {
getSponsoring(blockHash: $blockHash, contractAddress: $contractAddress, _sponsor: $sponsor) {
value
}
}
query GetSponsor($point: BigInt!, $blockHash: String!, $contractAddress: String!) {
azimuthGetSponsor(_point: $point, blockHash: $blockHash, contractAddress: $contractAddress) {
getSponsor(blockHash: $blockHash, contractAddress: $contractAddress, _point: $point) {
value
}
}
query GetKeys($blockHash: String!, $contractAddress: String!, $_point: BigInt!) {
azimuthGetKeys(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point) {
getKeys(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point) {
value {
value0
value1
@ -63,7 +63,13 @@ query GetKeys($blockHash: String!, $contractAddress: String!, $_point: BigInt!)
}
query IsActive($blockHash: String!, $contractAddress: String!, $_point: BigInt!) {
azimuthIsActive(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point) {
isActive(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point) {
value
}
}
query HasSponsor($blockHash: String!, $contractAddress: String!, $_point: BigInt!) {
hasSponsor(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point) {
value
}
}

View File

@ -1,5 +1,20 @@
directive @cacheControl(maxAge: Int, inheritMaxAge: Boolean, scope: CacheControlScope) on FIELD_DEFINITION | OBJECT | INTERFACE | UNION
enum CacheControlScope {
PUBLIC
PRIVATE
}
scalar BigInt
scalar BigDecimal
scalar Bytes
type Proof {
data: String!
}
type _Block_ {
cid: String
hash: String!
@ -15,10 +30,6 @@ type _Transaction_ {
to: String!
}
type Proof {
data: String!
}
type ResultEvent {
block: _Block_!
tx: _Transaction_!
@ -28,13 +39,92 @@ type ResultEvent {
proof: Proof
}
type ResultString {
value: String!
proof: Proof
union Event = OwnerChangedEvent | ActivatedEvent | SpawnedEvent | EscapeRequestedEvent | EscapeCanceledEvent | EscapeAcceptedEvent | LostSponsorEvent | ChangedKeysEvent | BrokeContinuityEvent | ChangedSpawnProxyEvent | ChangedTransferProxyEvent | ChangedManagementProxyEvent | ChangedVotingProxyEvent | ChangedDnsEvent | OwnershipRenouncedEvent | OwnershipTransferredEvent
type OwnerChangedEvent {
point: BigInt!
owner: String!
}
type ResultArray {
value: [String!]!
type ActivatedEvent {
point: BigInt!
}
type SpawnedEvent {
prefix: BigInt!
child: BigInt!
}
type EscapeRequestedEvent {
point: BigInt!
sponsor: BigInt!
}
type EscapeCanceledEvent {
point: BigInt!
sponsor: BigInt!
}
type EscapeAcceptedEvent {
point: BigInt!
sponsor: BigInt!
}
type LostSponsorEvent {
point: BigInt!
sponsor: BigInt!
}
type ChangedKeysEvent {
point: BigInt!
encryptionKey: String!
authenticationKey: String!
cryptoSuiteVersion: BigInt!
keyRevisionNumber: BigInt!
}
type BrokeContinuityEvent {
point: BigInt!
number: BigInt!
}
type ChangedSpawnProxyEvent {
point: BigInt!
spawnProxy: String!
}
type ChangedTransferProxyEvent {
point: BigInt!
transferProxy: String!
}
type ChangedManagementProxyEvent {
point: BigInt!
managementProxy: String!
}
type ChangedVotingProxyEvent {
point: BigInt!
votingProxy: String!
}
type ChangedDnsEvent {
primary: String!
secondary: String!
tertiary: String!
}
type OwnershipRenouncedEvent {
previousOwner: String!
}
type OwnershipTransferredEvent {
previousOwner: String!
newOwner: String!
}
type ResultBoolean {
value: Boolean!
proof: Proof
}
@ -50,16 +140,27 @@ type GetKeysType {
value3: BigInt!
}
type ResultBool {
value: Boolean!
type ResultBigInt {
value: BigInt!
proof: Proof
}
union Event = OwnerChangedEvent
type ResultBigIntArray {
value: [BigInt!]!
proof: Proof
}
type OwnerChangedEvent {
point: BigInt!
owner: String!
type ResultString {
value: String!
proof: Proof
}
type ResultState {
block: _Block_!
contractAddress: String!
cid: String!
kind: String!
data: String!
}
type SyncStatus {
@ -74,11 +175,61 @@ type SyncStatus {
}
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!
}
events(blockHash: String!, contractAddress: String!, name: String): [ResultEvent!]
eventsInRange(fromBlockNumber: Int!, toBlockNumber: Int!, name: String): [ResultEvent!]
isActive(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultBoolean!
getKeys(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultGetKeysType!
getKeyRevisionNumber(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultBigInt!
hasBeenLinked(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultBoolean!
isLive(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultBoolean!
getContinuityNumber(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultBigInt!
getSpawnCount(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultBigInt!
getSpawned(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultBigIntArray!
hasSponsor(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultBoolean!
getSponsor(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultBigInt!
isSponsor(blockHash: String!, contractAddress: String!, _point: BigInt!, _sponsor: BigInt!): ResultBoolean!
getSponsoringCount(blockHash: String!, contractAddress: String!, _sponsor: BigInt!): ResultBigInt!
getSponsoring(blockHash: String!, contractAddress: String!, _sponsor: BigInt!): ResultBigIntArray!
isEscaping(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultBoolean!
getEscapeRequest(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultBigInt!
isRequestingEscapeTo(blockHash: String!, contractAddress: String!, _point: BigInt!, _sponsor: BigInt!): ResultBoolean!
getEscapeRequestsCount(blockHash: String!, contractAddress: String!, _sponsor: BigInt!): ResultBigInt!
getEscapeRequests(blockHash: String!, contractAddress: String!, _sponsor: BigInt!): ResultBigIntArray!
getOwner(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultString!
isOwner(blockHash: String!, contractAddress: String!, _point: BigInt!, _address: String!): ResultBoolean!
getOwnedPointCount(blockHash: String!, contractAddress: String!, _whose: String!): ResultBigInt!
getOwnedPoints(blockHash: String!, contractAddress: String!, _whose: String!): ResultBigIntArray!
getOwnedPointAtIndex(blockHash: String!, contractAddress: String!, _whose: String!, _index: BigInt!): ResultBigInt!
getManagementProxy(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultString!
isManagementProxy(blockHash: String!, contractAddress: String!, _point: BigInt!, _proxy: String!): ResultBoolean!
canManage(blockHash: String!, contractAddress: String!, _point: BigInt!, _who: String!): ResultBoolean!
getManagerForCount(blockHash: String!, contractAddress: String!, _proxy: String!): ResultBigInt!
getManagerFor(blockHash: String!, contractAddress: String!, _proxy: String!): ResultBigIntArray!
getSpawnProxy(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultString!
isSpawnProxy(blockHash: String!, contractAddress: String!, _point: BigInt!, _proxy: String!): ResultBoolean!
canSpawnAs(blockHash: String!, contractAddress: String!, _point: BigInt!, _who: String!): ResultBoolean!
getSpawningForCount(blockHash: String!, contractAddress: String!, _proxy: String!): ResultBigInt!
getSpawningFor(blockHash: String!, contractAddress: String!, _proxy: String!): ResultBigIntArray!
getVotingProxy(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultString!
isVotingProxy(blockHash: String!, contractAddress: String!, _point: BigInt!, _proxy: String!): ResultBoolean!
canVoteAs(blockHash: String!, contractAddress: String!, _point: BigInt!, _who: String!): ResultBoolean!
getVotingForCount(blockHash: String!, contractAddress: String!, _proxy: String!): ResultBigInt!
getVotingFor(blockHash: String!, contractAddress: String!, _proxy: String!): ResultBigIntArray!
getTransferProxy(blockHash: String!, contractAddress: String!, _point: BigInt!): ResultString!
isTransferProxy(blockHash: String!, contractAddress: String!, _point: BigInt!, _proxy: String!): ResultBoolean!
canTransfer(blockHash: String!, contractAddress: String!, _point: BigInt!, _who: String!): ResultBoolean!
getTransferringForCount(blockHash: String!, contractAddress: String!, _proxy: String!): ResultBigInt!
getTransferringFor(blockHash: String!, contractAddress: String!, _proxy: String!): ResultBigIntArray!
isOperator(blockHash: String!, contractAddress: String!, _owner: String!, _operator: String!): ResultBoolean!
getStateByCID(cid: String!): ResultState
getState(blockHash: String!, contractAddress: String!, kind: String): ResultState
getSyncStatus: SyncStatus
}
type Mutation {
watchContract(address: String!, kind: String!, checkpoint: Boolean!, startingBlock: Int): Boolean!
}
type Subscription {
onEvent: ResultEvent!
}