azimuth-client-go/generated.go
2025-09-09 17:40:48 -07:00

1197 lines
47 KiB
Go

// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package azimuth
import (
"context"
"encoding/json"
"fmt"
"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:"-"`
}
// GetBlock returns EventsInRangeAzimuthEventsInRangeResultEvent.Block, and is useful for accessing the field via an interface.
func (v *EventsInRangeAzimuthEventsInRangeResultEvent) GetBlock() EventsInRangeAzimuthEventsInRangeResultEventBlockBlock_ {
return v.Block
}
// GetTx returns EventsInRangeAzimuthEventsInRangeResultEvent.Tx, and is useful for accessing the field via an interface.
func (v *EventsInRangeAzimuthEventsInRangeResultEvent) GetTx() EventsInRangeAzimuthEventsInRangeResultEventTxTransaction_ {
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 }
// GetEvent returns EventsInRangeAzimuthEventsInRangeResultEvent.Event, and is useful for accessing the field via an interface.
func (v *EventsInRangeAzimuthEventsInRangeResultEvent) GetEvent() EventsInRangeAzimuthEventsInRangeResultEventEvent {
return v.Event
}
func (v *EventsInRangeAzimuthEventsInRangeResultEvent) UnmarshalJSON(b []byte) error {
if string(b) == "null" {
return nil
}
var firstPass struct {
*EventsInRangeAzimuthEventsInRangeResultEvent
Event json.RawMessage `json:"event"`
graphql.NoUnmarshalJSON
}
firstPass.EventsInRangeAzimuthEventsInRangeResultEvent = v
err := json.Unmarshal(b, &firstPass)
if err != nil {
return err
}
{
dst := &v.Event
src := firstPass.Event
if len(src) != 0 && string(src) != "null" {
err = __unmarshalEventsInRangeAzimuthEventsInRangeResultEventEvent(
src, dst)
if err != nil {
return fmt.Errorf(
"unable to unmarshal EventsInRangeAzimuthEventsInRangeResultEvent.Event: %w", err)
}
}
}
return nil
}
type __premarshalEventsInRangeAzimuthEventsInRangeResultEvent struct {
Block EventsInRangeAzimuthEventsInRangeResultEventBlockBlock_ `json:"block"`
Tx EventsInRangeAzimuthEventsInRangeResultEventTxTransaction_ `json:"tx"`
EventIndex int `json:"eventIndex"`
Event json.RawMessage `json:"event"`
}
func (v *EventsInRangeAzimuthEventsInRangeResultEvent) MarshalJSON() ([]byte, error) {
premarshaled, err := v.__premarshalJSON()
if err != nil {
return nil, err
}
return json.Marshal(premarshaled)
}
func (v *EventsInRangeAzimuthEventsInRangeResultEvent) __premarshalJSON() (*__premarshalEventsInRangeAzimuthEventsInRangeResultEvent, error) {
var retval __premarshalEventsInRangeAzimuthEventsInRangeResultEvent
retval.Block = v.Block
retval.Tx = v.Tx
retval.EventIndex = v.EventIndex
{
dst := &retval.Event
src := v.Event
var err error
*dst, err = __marshalEventsInRangeAzimuthEventsInRangeResultEventEvent(
&src)
if err != nil {
return nil, fmt.Errorf(
"unable to marshal EventsInRangeAzimuthEventsInRangeResultEvent.Event: %w", err)
}
}
return &retval, nil
}
// EventsInRangeAzimuthEventsInRangeResultEventBlockBlock_ includes the requested fields of the GraphQL type _Block_.
type EventsInRangeAzimuthEventsInRangeResultEventBlockBlock_ 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 }
// GetNumber returns EventsInRangeAzimuthEventsInRangeResultEventBlockBlock_.Number, and is useful for accessing the field via an interface.
func (v *EventsInRangeAzimuthEventsInRangeResultEventBlockBlock_) GetNumber() int { return v.Number }
// EventsInRangeAzimuthEventsInRangeResultEventEvent includes the requested fields of the GraphQL interface Event.
//
// EventsInRangeAzimuthEventsInRangeResultEventEvent is implemented by the following types:
// EventsInRangeAzimuthEventsInRangeResultEventEventActivatedEvent
// EventsInRangeAzimuthEventsInRangeResultEventEventBrokeContinuityEvent
// EventsInRangeAzimuthEventsInRangeResultEventEventChangedDnsEvent
// EventsInRangeAzimuthEventsInRangeResultEventEventChangedKeysEvent
// EventsInRangeAzimuthEventsInRangeResultEventEventChangedManagementProxyEvent
// EventsInRangeAzimuthEventsInRangeResultEventEventChangedSpawnProxyEvent
// EventsInRangeAzimuthEventsInRangeResultEventEventChangedTransferProxyEvent
// EventsInRangeAzimuthEventsInRangeResultEventEventChangedVotingProxyEvent
// EventsInRangeAzimuthEventsInRangeResultEventEventEscapeAcceptedEvent
// EventsInRangeAzimuthEventsInRangeResultEventEventEscapeCanceledEvent
// EventsInRangeAzimuthEventsInRangeResultEventEventEscapeRequestedEvent
// EventsInRangeAzimuthEventsInRangeResultEventEventLostSponsorEvent
// EventsInRangeAzimuthEventsInRangeResultEventEventOwnerChangedEvent
// EventsInRangeAzimuthEventsInRangeResultEventEventOwnershipRenouncedEvent
// EventsInRangeAzimuthEventsInRangeResultEventEventOwnershipTransferredEvent
// EventsInRangeAzimuthEventsInRangeResultEventEventSpawnedEvent
type EventsInRangeAzimuthEventsInRangeResultEventEvent interface {
implementsGraphQLInterfaceEventsInRangeAzimuthEventsInRangeResultEventEvent()
// GetTypename returns the receiver's concrete GraphQL type-name (see interface doc for possible values).
GetTypename() string
}
func (v *EventsInRangeAzimuthEventsInRangeResultEventEventActivatedEvent) implementsGraphQLInterfaceEventsInRangeAzimuthEventsInRangeResultEventEvent() {
}
func (v *EventsInRangeAzimuthEventsInRangeResultEventEventBrokeContinuityEvent) implementsGraphQLInterfaceEventsInRangeAzimuthEventsInRangeResultEventEvent() {
}
func (v *EventsInRangeAzimuthEventsInRangeResultEventEventChangedDnsEvent) implementsGraphQLInterfaceEventsInRangeAzimuthEventsInRangeResultEventEvent() {
}
func (v *EventsInRangeAzimuthEventsInRangeResultEventEventChangedKeysEvent) implementsGraphQLInterfaceEventsInRangeAzimuthEventsInRangeResultEventEvent() {
}
func (v *EventsInRangeAzimuthEventsInRangeResultEventEventChangedManagementProxyEvent) implementsGraphQLInterfaceEventsInRangeAzimuthEventsInRangeResultEventEvent() {
}
func (v *EventsInRangeAzimuthEventsInRangeResultEventEventChangedSpawnProxyEvent) implementsGraphQLInterfaceEventsInRangeAzimuthEventsInRangeResultEventEvent() {
}
func (v *EventsInRangeAzimuthEventsInRangeResultEventEventChangedTransferProxyEvent) implementsGraphQLInterfaceEventsInRangeAzimuthEventsInRangeResultEventEvent() {
}
func (v *EventsInRangeAzimuthEventsInRangeResultEventEventChangedVotingProxyEvent) implementsGraphQLInterfaceEventsInRangeAzimuthEventsInRangeResultEventEvent() {
}
func (v *EventsInRangeAzimuthEventsInRangeResultEventEventEscapeAcceptedEvent) implementsGraphQLInterfaceEventsInRangeAzimuthEventsInRangeResultEventEvent() {
}
func (v *EventsInRangeAzimuthEventsInRangeResultEventEventEscapeCanceledEvent) implementsGraphQLInterfaceEventsInRangeAzimuthEventsInRangeResultEventEvent() {
}
func (v *EventsInRangeAzimuthEventsInRangeResultEventEventEscapeRequestedEvent) implementsGraphQLInterfaceEventsInRangeAzimuthEventsInRangeResultEventEvent() {
}
func (v *EventsInRangeAzimuthEventsInRangeResultEventEventLostSponsorEvent) implementsGraphQLInterfaceEventsInRangeAzimuthEventsInRangeResultEventEvent() {
}
func (v *EventsInRangeAzimuthEventsInRangeResultEventEventOwnerChangedEvent) implementsGraphQLInterfaceEventsInRangeAzimuthEventsInRangeResultEventEvent() {
}
func (v *EventsInRangeAzimuthEventsInRangeResultEventEventOwnershipRenouncedEvent) implementsGraphQLInterfaceEventsInRangeAzimuthEventsInRangeResultEventEvent() {
}
func (v *EventsInRangeAzimuthEventsInRangeResultEventEventOwnershipTransferredEvent) implementsGraphQLInterfaceEventsInRangeAzimuthEventsInRangeResultEventEvent() {
}
func (v *EventsInRangeAzimuthEventsInRangeResultEventEventSpawnedEvent) implementsGraphQLInterfaceEventsInRangeAzimuthEventsInRangeResultEventEvent() {
}
func __unmarshalEventsInRangeAzimuthEventsInRangeResultEventEvent(b []byte, v *EventsInRangeAzimuthEventsInRangeResultEventEvent) error {
if string(b) == "null" {
return nil
}
var tn struct {
TypeName string `json:"__typename"`
}
err := json.Unmarshal(b, &tn)
if err != nil {
return err
}
switch tn.TypeName {
case "ActivatedEvent":
*v = new(EventsInRangeAzimuthEventsInRangeResultEventEventActivatedEvent)
return json.Unmarshal(b, *v)
case "BrokeContinuityEvent":
*v = new(EventsInRangeAzimuthEventsInRangeResultEventEventBrokeContinuityEvent)
return json.Unmarshal(b, *v)
case "ChangedDnsEvent":
*v = new(EventsInRangeAzimuthEventsInRangeResultEventEventChangedDnsEvent)
return json.Unmarshal(b, *v)
case "ChangedKeysEvent":
*v = new(EventsInRangeAzimuthEventsInRangeResultEventEventChangedKeysEvent)
return json.Unmarshal(b, *v)
case "ChangedManagementProxyEvent":
*v = new(EventsInRangeAzimuthEventsInRangeResultEventEventChangedManagementProxyEvent)
return json.Unmarshal(b, *v)
case "ChangedSpawnProxyEvent":
*v = new(EventsInRangeAzimuthEventsInRangeResultEventEventChangedSpawnProxyEvent)
return json.Unmarshal(b, *v)
case "ChangedTransferProxyEvent":
*v = new(EventsInRangeAzimuthEventsInRangeResultEventEventChangedTransferProxyEvent)
return json.Unmarshal(b, *v)
case "ChangedVotingProxyEvent":
*v = new(EventsInRangeAzimuthEventsInRangeResultEventEventChangedVotingProxyEvent)
return json.Unmarshal(b, *v)
case "EscapeAcceptedEvent":
*v = new(EventsInRangeAzimuthEventsInRangeResultEventEventEscapeAcceptedEvent)
return json.Unmarshal(b, *v)
case "EscapeCanceledEvent":
*v = new(EventsInRangeAzimuthEventsInRangeResultEventEventEscapeCanceledEvent)
return json.Unmarshal(b, *v)
case "EscapeRequestedEvent":
*v = new(EventsInRangeAzimuthEventsInRangeResultEventEventEscapeRequestedEvent)
return json.Unmarshal(b, *v)
case "LostSponsorEvent":
*v = new(EventsInRangeAzimuthEventsInRangeResultEventEventLostSponsorEvent)
return json.Unmarshal(b, *v)
case "OwnerChangedEvent":
*v = new(EventsInRangeAzimuthEventsInRangeResultEventEventOwnerChangedEvent)
return json.Unmarshal(b, *v)
case "OwnershipRenouncedEvent":
*v = new(EventsInRangeAzimuthEventsInRangeResultEventEventOwnershipRenouncedEvent)
return json.Unmarshal(b, *v)
case "OwnershipTransferredEvent":
*v = new(EventsInRangeAzimuthEventsInRangeResultEventEventOwnershipTransferredEvent)
return json.Unmarshal(b, *v)
case "SpawnedEvent":
*v = new(EventsInRangeAzimuthEventsInRangeResultEventEventSpawnedEvent)
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)
}
}
func __marshalEventsInRangeAzimuthEventsInRangeResultEventEvent(v *EventsInRangeAzimuthEventsInRangeResultEventEvent) ([]byte, error) {
var typename string
switch v := (*v).(type) {
case *EventsInRangeAzimuthEventsInRangeResultEventEventActivatedEvent:
typename = "ActivatedEvent"
result := struct {
TypeName string `json:"__typename"`
*EventsInRangeAzimuthEventsInRangeResultEventEventActivatedEvent
}{typename, v}
return json.Marshal(result)
case *EventsInRangeAzimuthEventsInRangeResultEventEventBrokeContinuityEvent:
typename = "BrokeContinuityEvent"
result := struct {
TypeName string `json:"__typename"`
*EventsInRangeAzimuthEventsInRangeResultEventEventBrokeContinuityEvent
}{typename, v}
return json.Marshal(result)
case *EventsInRangeAzimuthEventsInRangeResultEventEventChangedDnsEvent:
typename = "ChangedDnsEvent"
result := struct {
TypeName string `json:"__typename"`
*EventsInRangeAzimuthEventsInRangeResultEventEventChangedDnsEvent
}{typename, v}
return json.Marshal(result)
case *EventsInRangeAzimuthEventsInRangeResultEventEventChangedKeysEvent:
typename = "ChangedKeysEvent"
result := struct {
TypeName string `json:"__typename"`
*EventsInRangeAzimuthEventsInRangeResultEventEventChangedKeysEvent
}{typename, v}
return json.Marshal(result)
case *EventsInRangeAzimuthEventsInRangeResultEventEventChangedManagementProxyEvent:
typename = "ChangedManagementProxyEvent"
result := struct {
TypeName string `json:"__typename"`
*EventsInRangeAzimuthEventsInRangeResultEventEventChangedManagementProxyEvent
}{typename, v}
return json.Marshal(result)
case *EventsInRangeAzimuthEventsInRangeResultEventEventChangedSpawnProxyEvent:
typename = "ChangedSpawnProxyEvent"
result := struct {
TypeName string `json:"__typename"`
*EventsInRangeAzimuthEventsInRangeResultEventEventChangedSpawnProxyEvent
}{typename, v}
return json.Marshal(result)
case *EventsInRangeAzimuthEventsInRangeResultEventEventChangedTransferProxyEvent:
typename = "ChangedTransferProxyEvent"
result := struct {
TypeName string `json:"__typename"`
*EventsInRangeAzimuthEventsInRangeResultEventEventChangedTransferProxyEvent
}{typename, v}
return json.Marshal(result)
case *EventsInRangeAzimuthEventsInRangeResultEventEventChangedVotingProxyEvent:
typename = "ChangedVotingProxyEvent"
result := struct {
TypeName string `json:"__typename"`
*EventsInRangeAzimuthEventsInRangeResultEventEventChangedVotingProxyEvent
}{typename, v}
return json.Marshal(result)
case *EventsInRangeAzimuthEventsInRangeResultEventEventEscapeAcceptedEvent:
typename = "EscapeAcceptedEvent"
result := struct {
TypeName string `json:"__typename"`
*EventsInRangeAzimuthEventsInRangeResultEventEventEscapeAcceptedEvent
}{typename, v}
return json.Marshal(result)
case *EventsInRangeAzimuthEventsInRangeResultEventEventEscapeCanceledEvent:
typename = "EscapeCanceledEvent"
result := struct {
TypeName string `json:"__typename"`
*EventsInRangeAzimuthEventsInRangeResultEventEventEscapeCanceledEvent
}{typename, v}
return json.Marshal(result)
case *EventsInRangeAzimuthEventsInRangeResultEventEventEscapeRequestedEvent:
typename = "EscapeRequestedEvent"
result := struct {
TypeName string `json:"__typename"`
*EventsInRangeAzimuthEventsInRangeResultEventEventEscapeRequestedEvent
}{typename, v}
return json.Marshal(result)
case *EventsInRangeAzimuthEventsInRangeResultEventEventLostSponsorEvent:
typename = "LostSponsorEvent"
result := struct {
TypeName string `json:"__typename"`
*EventsInRangeAzimuthEventsInRangeResultEventEventLostSponsorEvent
}{typename, v}
return json.Marshal(result)
case *EventsInRangeAzimuthEventsInRangeResultEventEventOwnerChangedEvent:
typename = "OwnerChangedEvent"
result := struct {
TypeName string `json:"__typename"`
*EventsInRangeAzimuthEventsInRangeResultEventEventOwnerChangedEvent
}{typename, v}
return json.Marshal(result)
case *EventsInRangeAzimuthEventsInRangeResultEventEventOwnershipRenouncedEvent:
typename = "OwnershipRenouncedEvent"
result := struct {
TypeName string `json:"__typename"`
*EventsInRangeAzimuthEventsInRangeResultEventEventOwnershipRenouncedEvent
}{typename, v}
return json.Marshal(result)
case *EventsInRangeAzimuthEventsInRangeResultEventEventOwnershipTransferredEvent:
typename = "OwnershipTransferredEvent"
result := struct {
TypeName string `json:"__typename"`
*EventsInRangeAzimuthEventsInRangeResultEventEventOwnershipTransferredEvent
}{typename, v}
return json.Marshal(result)
case *EventsInRangeAzimuthEventsInRangeResultEventEventSpawnedEvent:
typename = "SpawnedEvent"
result := struct {
TypeName string `json:"__typename"`
*EventsInRangeAzimuthEventsInRangeResultEventEventSpawnedEvent
}{typename, v}
return json.Marshal(result)
case nil:
return []byte("null"), nil
default:
return nil, fmt.Errorf(
`unexpected concrete type for EventsInRangeAzimuthEventsInRangeResultEventEvent: "%T"`, v)
}
}
// EventsInRangeAzimuthEventsInRangeResultEventEventActivatedEvent includes the requested fields of the GraphQL type ActivatedEvent.
type EventsInRangeAzimuthEventsInRangeResultEventEventActivatedEvent struct {
Typename string `json:"__typename"`
}
// GetTypename returns EventsInRangeAzimuthEventsInRangeResultEventEventActivatedEvent.Typename, and is useful for accessing the field via an interface.
func (v *EventsInRangeAzimuthEventsInRangeResultEventEventActivatedEvent) GetTypename() string {
return v.Typename
}
// EventsInRangeAzimuthEventsInRangeResultEventEventBrokeContinuityEvent includes the requested fields of the GraphQL type BrokeContinuityEvent.
type EventsInRangeAzimuthEventsInRangeResultEventEventBrokeContinuityEvent struct {
Typename string `json:"__typename"`
}
// GetTypename returns EventsInRangeAzimuthEventsInRangeResultEventEventBrokeContinuityEvent.Typename, and is useful for accessing the field via an interface.
func (v *EventsInRangeAzimuthEventsInRangeResultEventEventBrokeContinuityEvent) GetTypename() string {
return v.Typename
}
// EventsInRangeAzimuthEventsInRangeResultEventEventChangedDnsEvent includes the requested fields of the GraphQL type ChangedDnsEvent.
type EventsInRangeAzimuthEventsInRangeResultEventEventChangedDnsEvent struct {
Typename string `json:"__typename"`
}
// GetTypename returns EventsInRangeAzimuthEventsInRangeResultEventEventChangedDnsEvent.Typename, and is useful for accessing the field via an interface.
func (v *EventsInRangeAzimuthEventsInRangeResultEventEventChangedDnsEvent) GetTypename() string {
return v.Typename
}
// EventsInRangeAzimuthEventsInRangeResultEventEventChangedKeysEvent includes the requested fields of the GraphQL type ChangedKeysEvent.
type EventsInRangeAzimuthEventsInRangeResultEventEventChangedKeysEvent struct {
Typename string `json:"__typename"`
}
// GetTypename returns EventsInRangeAzimuthEventsInRangeResultEventEventChangedKeysEvent.Typename, and is useful for accessing the field via an interface.
func (v *EventsInRangeAzimuthEventsInRangeResultEventEventChangedKeysEvent) GetTypename() string {
return v.Typename
}
// EventsInRangeAzimuthEventsInRangeResultEventEventChangedManagementProxyEvent includes the requested fields of the GraphQL type ChangedManagementProxyEvent.
type EventsInRangeAzimuthEventsInRangeResultEventEventChangedManagementProxyEvent struct {
Typename string `json:"__typename"`
}
// GetTypename returns EventsInRangeAzimuthEventsInRangeResultEventEventChangedManagementProxyEvent.Typename, and is useful for accessing the field via an interface.
func (v *EventsInRangeAzimuthEventsInRangeResultEventEventChangedManagementProxyEvent) GetTypename() string {
return v.Typename
}
// EventsInRangeAzimuthEventsInRangeResultEventEventChangedSpawnProxyEvent includes the requested fields of the GraphQL type ChangedSpawnProxyEvent.
type EventsInRangeAzimuthEventsInRangeResultEventEventChangedSpawnProxyEvent struct {
Typename string `json:"__typename"`
}
// GetTypename returns EventsInRangeAzimuthEventsInRangeResultEventEventChangedSpawnProxyEvent.Typename, and is useful for accessing the field via an interface.
func (v *EventsInRangeAzimuthEventsInRangeResultEventEventChangedSpawnProxyEvent) GetTypename() string {
return v.Typename
}
// EventsInRangeAzimuthEventsInRangeResultEventEventChangedTransferProxyEvent includes the requested fields of the GraphQL type ChangedTransferProxyEvent.
type EventsInRangeAzimuthEventsInRangeResultEventEventChangedTransferProxyEvent struct {
Typename string `json:"__typename"`
}
// GetTypename returns EventsInRangeAzimuthEventsInRangeResultEventEventChangedTransferProxyEvent.Typename, and is useful for accessing the field via an interface.
func (v *EventsInRangeAzimuthEventsInRangeResultEventEventChangedTransferProxyEvent) GetTypename() string {
return v.Typename
}
// EventsInRangeAzimuthEventsInRangeResultEventEventChangedVotingProxyEvent includes the requested fields of the GraphQL type ChangedVotingProxyEvent.
type EventsInRangeAzimuthEventsInRangeResultEventEventChangedVotingProxyEvent struct {
Typename string `json:"__typename"`
}
// GetTypename returns EventsInRangeAzimuthEventsInRangeResultEventEventChangedVotingProxyEvent.Typename, and is useful for accessing the field via an interface.
func (v *EventsInRangeAzimuthEventsInRangeResultEventEventChangedVotingProxyEvent) GetTypename() string {
return v.Typename
}
// EventsInRangeAzimuthEventsInRangeResultEventEventEscapeAcceptedEvent includes the requested fields of the GraphQL type EscapeAcceptedEvent.
type EventsInRangeAzimuthEventsInRangeResultEventEventEscapeAcceptedEvent struct {
Typename string `json:"__typename"`
}
// GetTypename returns EventsInRangeAzimuthEventsInRangeResultEventEventEscapeAcceptedEvent.Typename, and is useful for accessing the field via an interface.
func (v *EventsInRangeAzimuthEventsInRangeResultEventEventEscapeAcceptedEvent) GetTypename() string {
return v.Typename
}
// EventsInRangeAzimuthEventsInRangeResultEventEventEscapeCanceledEvent includes the requested fields of the GraphQL type EscapeCanceledEvent.
type EventsInRangeAzimuthEventsInRangeResultEventEventEscapeCanceledEvent struct {
Typename string `json:"__typename"`
}
// GetTypename returns EventsInRangeAzimuthEventsInRangeResultEventEventEscapeCanceledEvent.Typename, and is useful for accessing the field via an interface.
func (v *EventsInRangeAzimuthEventsInRangeResultEventEventEscapeCanceledEvent) GetTypename() string {
return v.Typename
}
// EventsInRangeAzimuthEventsInRangeResultEventEventEscapeRequestedEvent includes the requested fields of the GraphQL type EscapeRequestedEvent.
type EventsInRangeAzimuthEventsInRangeResultEventEventEscapeRequestedEvent struct {
Typename string `json:"__typename"`
}
// GetTypename returns EventsInRangeAzimuthEventsInRangeResultEventEventEscapeRequestedEvent.Typename, and is useful for accessing the field via an interface.
func (v *EventsInRangeAzimuthEventsInRangeResultEventEventEscapeRequestedEvent) GetTypename() string {
return v.Typename
}
// EventsInRangeAzimuthEventsInRangeResultEventEventLostSponsorEvent includes the requested fields of the GraphQL type LostSponsorEvent.
type EventsInRangeAzimuthEventsInRangeResultEventEventLostSponsorEvent struct {
Typename string `json:"__typename"`
}
// GetTypename returns EventsInRangeAzimuthEventsInRangeResultEventEventLostSponsorEvent.Typename, and is useful for accessing the field via an interface.
func (v *EventsInRangeAzimuthEventsInRangeResultEventEventLostSponsorEvent) GetTypename() string {
return v.Typename
}
// EventsInRangeAzimuthEventsInRangeResultEventEventOwnerChangedEvent includes the requested fields of the GraphQL type OwnerChangedEvent.
type EventsInRangeAzimuthEventsInRangeResultEventEventOwnerChangedEvent 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 {
return v.Typename
}
// GetPoint returns EventsInRangeAzimuthEventsInRangeResultEventEventOwnerChangedEvent.Point, and is useful for accessing the field via an interface.
func (v *EventsInRangeAzimuthEventsInRangeResultEventEventOwnerChangedEvent) GetPoint() BigInt {
return v.Point
}
// GetOwner returns EventsInRangeAzimuthEventsInRangeResultEventEventOwnerChangedEvent.Owner, and is useful for accessing the field via an interface.
func (v *EventsInRangeAzimuthEventsInRangeResultEventEventOwnerChangedEvent) GetOwner() string {
return v.Owner
}
// EventsInRangeAzimuthEventsInRangeResultEventEventOwnershipRenouncedEvent includes the requested fields of the GraphQL type OwnershipRenouncedEvent.
type EventsInRangeAzimuthEventsInRangeResultEventEventOwnershipRenouncedEvent struct {
Typename string `json:"__typename"`
}
// GetTypename returns EventsInRangeAzimuthEventsInRangeResultEventEventOwnershipRenouncedEvent.Typename, and is useful for accessing the field via an interface.
func (v *EventsInRangeAzimuthEventsInRangeResultEventEventOwnershipRenouncedEvent) GetTypename() string {
return v.Typename
}
// EventsInRangeAzimuthEventsInRangeResultEventEventOwnershipTransferredEvent includes the requested fields of the GraphQL type OwnershipTransferredEvent.
type EventsInRangeAzimuthEventsInRangeResultEventEventOwnershipTransferredEvent struct {
Typename string `json:"__typename"`
}
// GetTypename returns EventsInRangeAzimuthEventsInRangeResultEventEventOwnershipTransferredEvent.Typename, and is useful for accessing the field via an interface.
func (v *EventsInRangeAzimuthEventsInRangeResultEventEventOwnershipTransferredEvent) GetTypename() string {
return v.Typename
}
// EventsInRangeAzimuthEventsInRangeResultEventEventSpawnedEvent includes the requested fields of the GraphQL type SpawnedEvent.
type EventsInRangeAzimuthEventsInRangeResultEventEventSpawnedEvent struct {
Typename string `json:"__typename"`
}
// GetTypename returns EventsInRangeAzimuthEventsInRangeResultEventEventSpawnedEvent.Typename, and is useful for accessing the field via an interface.
func (v *EventsInRangeAzimuthEventsInRangeResultEventEventSpawnedEvent) GetTypename() string {
return v.Typename
}
// EventsInRangeAzimuthEventsInRangeResultEventTxTransaction_ includes the requested fields of the GraphQL type _Transaction_.
type EventsInRangeAzimuthEventsInRangeResultEventTxTransaction_ 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 }
// GetIndex returns EventsInRangeAzimuthEventsInRangeResultEventTxTransaction_.Index, and is useful for accessing the field via an interface.
func (v *EventsInRangeAzimuthEventsInRangeResultEventTxTransaction_) 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 }
// GetTo returns EventsInRangeAzimuthEventsInRangeResultEventTxTransaction_.To, and is useful for accessing the field via an interface.
func (v *EventsInRangeAzimuthEventsInRangeResultEventTxTransaction_) GetTo() string { return v.To }
// EventsInRangeResponse is returned by EventsInRange on success.
type EventsInRangeResponse struct {
AzimuthEventsInRange []EventsInRangeAzimuthEventsInRangeResultEvent `json:"azimuthEventsInRange"`
}
// GetAzimuthEventsInRange returns EventsInRangeResponse.AzimuthEventsInRange, and is useful for accessing the field via an interface.
func (v *EventsInRangeResponse) GetAzimuthEventsInRange() []EventsInRangeAzimuthEventsInRangeResultEvent {
return v.AzimuthEventsInRange
}
// GetKeysAzimuthGetKeysResultGetKeysType includes the requested fields of the GraphQL type ResultGetKeysType.
type GetKeysAzimuthGetKeysResultGetKeysType struct {
Value GetKeysAzimuthGetKeysResultGetKeysTypeValueGetKeysType `json:"value"`
Proof GetKeysAzimuthGetKeysResultGetKeysTypeProof `json:"proof"`
}
// GetValue returns GetKeysAzimuthGetKeysResultGetKeysType.Value, and is useful for accessing the field via an interface.
func (v *GetKeysAzimuthGetKeysResultGetKeysType) GetValue() GetKeysAzimuthGetKeysResultGetKeysTypeValueGetKeysType {
return v.Value
}
// GetProof returns GetKeysAzimuthGetKeysResultGetKeysType.Proof, and is useful for accessing the field via an interface.
func (v *GetKeysAzimuthGetKeysResultGetKeysType) GetProof() GetKeysAzimuthGetKeysResultGetKeysTypeProof {
return v.Proof
}
// GetKeysAzimuthGetKeysResultGetKeysTypeProof includes the requested fields of the GraphQL type Proof.
type GetKeysAzimuthGetKeysResultGetKeysTypeProof 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 }
// GetKeysAzimuthGetKeysResultGetKeysTypeValueGetKeysType includes the requested fields of the GraphQL type GetKeysType.
type GetKeysAzimuthGetKeysResultGetKeysTypeValueGetKeysType 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 }
// GetValue1 returns GetKeysAzimuthGetKeysResultGetKeysTypeValueGetKeysType.Value1, and is useful for accessing the field via an interface.
func (v *GetKeysAzimuthGetKeysResultGetKeysTypeValueGetKeysType) 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 }
// GetValue3 returns GetKeysAzimuthGetKeysResultGetKeysTypeValueGetKeysType.Value3, and is useful for accessing the field via an interface.
func (v *GetKeysAzimuthGetKeysResultGetKeysTypeValueGetKeysType) GetValue3() BigInt { return v.Value3 }
// GetKeysResponse is returned by GetKeys on success.
type GetKeysResponse struct {
AzimuthGetKeys GetKeysAzimuthGetKeysResultGetKeysType `json:"azimuthGetKeys"`
}
// GetAzimuthGetKeys returns GetKeysResponse.AzimuthGetKeys, and is useful for accessing the field via an interface.
func (v *GetKeysResponse) GetAzimuthGetKeys() GetKeysAzimuthGetKeysResultGetKeysType {
return v.AzimuthGetKeys
}
// GetOwnerAzimuthGetOwnerResultString includes the requested fields of the GraphQL type ResultString.
type GetOwnerAzimuthGetOwnerResultString 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 }
// GetOwnerResponse is returned by GetOwner on success.
type GetOwnerResponse struct {
AzimuthGetOwner GetOwnerAzimuthGetOwnerResultString `json:"azimuthGetOwner"`
}
// GetAzimuthGetOwner returns GetOwnerResponse.AzimuthGetOwner, and is useful for accessing the field via an interface.
func (v *GetOwnerResponse) GetAzimuthGetOwner() GetOwnerAzimuthGetOwnerResultString {
return v.AzimuthGetOwner
}
// GetSponsorAzimuthGetSponsorResultBigInt includes the requested fields of the GraphQL type ResultBigInt.
type GetSponsorAzimuthGetSponsorResultBigInt struct {
Value BigInt `json:"value"`
}
// GetValue returns GetSponsorAzimuthGetSponsorResultBigInt.Value, and is useful for accessing the field via an interface.
func (v *GetSponsorAzimuthGetSponsorResultBigInt) GetValue() BigInt { return v.Value }
// GetSponsorResponse is returned by GetSponsor on success.
type GetSponsorResponse struct {
AzimuthGetSponsor GetSponsorAzimuthGetSponsorResultBigInt `json:"azimuthGetSponsor"`
}
// GetAzimuthGetSponsor returns GetSponsorResponse.AzimuthGetSponsor, and is useful for accessing the field via an interface.
func (v *GetSponsorResponse) GetAzimuthGetSponsor() GetSponsorAzimuthGetSponsorResultBigInt {
return v.AzimuthGetSponsor
}
// GetSponsoringAzimuthGetSponsoringResultBigIntArray includes the requested fields of the GraphQL type ResultBigIntArray.
type GetSponsoringAzimuthGetSponsoringResultBigIntArray struct {
Value []BigInt `json:"value"`
}
// GetValue returns GetSponsoringAzimuthGetSponsoringResultBigIntArray.Value, and is useful for accessing the field via an interface.
func (v *GetSponsoringAzimuthGetSponsoringResultBigIntArray) GetValue() []BigInt { return v.Value }
// GetSponsoringResponse is returned by GetSponsoring on success.
type GetSponsoringResponse struct {
AzimuthGetSponsoring GetSponsoringAzimuthGetSponsoringResultBigIntArray `json:"azimuthGetSponsoring"`
}
// GetAzimuthGetSponsoring returns GetSponsoringResponse.AzimuthGetSponsoring, and is useful for accessing the field via an interface.
func (v *GetSponsoringResponse) GetAzimuthGetSponsoring() GetSponsoringAzimuthGetSponsoringResultBigIntArray {
return v.AzimuthGetSponsoring
}
// GetSyncStatusAzimuthGetSyncStatus includes the requested fields of the GraphQL type SyncStatus.
type GetSyncStatusAzimuthGetSyncStatus 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 {
return v.LatestProcessedBlockHash
}
// GetLatestProcessedBlockNumber returns GetSyncStatusAzimuthGetSyncStatus.LatestProcessedBlockNumber, and is useful for accessing the field via an interface.
func (v *GetSyncStatusAzimuthGetSyncStatus) GetLatestProcessedBlockNumber() int {
return v.LatestProcessedBlockNumber
}
// GetSyncStatusResponse is returned by GetSyncStatus on success.
type GetSyncStatusResponse struct {
AzimuthGetSyncStatus GetSyncStatusAzimuthGetSyncStatus `json:"azimuthGetSyncStatus"`
}
// GetAzimuthGetSyncStatus returns GetSyncStatusResponse.AzimuthGetSyncStatus, and is useful for accessing the field via an interface.
func (v *GetSyncStatusResponse) GetAzimuthGetSyncStatus() GetSyncStatusAzimuthGetSyncStatus {
return v.AzimuthGetSyncStatus
}
// HasSponsorAzimuthHasSponsorResultBoolean includes the requested fields of the GraphQL type ResultBoolean.
type HasSponsorAzimuthHasSponsorResultBoolean struct {
Value bool `json:"value"`
}
// GetValue returns HasSponsorAzimuthHasSponsorResultBoolean.Value, and is useful for accessing the field via an interface.
func (v *HasSponsorAzimuthHasSponsorResultBoolean) GetValue() bool { return v.Value }
// HasSponsorResponse is returned by HasSponsor on success.
type HasSponsorResponse struct {
AzimuthHasSponsor HasSponsorAzimuthHasSponsorResultBoolean `json:"azimuthHasSponsor"`
}
// GetAzimuthHasSponsor returns HasSponsorResponse.AzimuthHasSponsor, and is useful for accessing the field via an interface.
func (v *HasSponsorResponse) GetAzimuthHasSponsor() HasSponsorAzimuthHasSponsorResultBoolean {
return v.AzimuthHasSponsor
}
// IsActiveAzimuthIsActiveResultBoolean includes the requested fields of the GraphQL type ResultBoolean.
type IsActiveAzimuthIsActiveResultBoolean struct {
Value bool `json:"value"`
}
// GetValue returns IsActiveAzimuthIsActiveResultBoolean.Value, and is useful for accessing the field via an interface.
func (v *IsActiveAzimuthIsActiveResultBoolean) GetValue() bool { return v.Value }
// IsActiveResponse is returned by IsActive on success.
type IsActiveResponse struct {
AzimuthIsActive IsActiveAzimuthIsActiveResultBoolean `json:"azimuthIsActive"`
}
// GetAzimuthIsActive returns IsActiveResponse.AzimuthIsActive, and is useful for accessing the field via an interface.
func (v *IsActiveResponse) GetAzimuthIsActive() IsActiveAzimuthIsActiveResultBoolean {
return v.AzimuthIsActive
}
// __EventsInRangeInput is used internally by genqlient
type __EventsInRangeInput struct {
FromBlockNumber int `json:"fromBlockNumber"`
ToBlockNumber int `json:"toBlockNumber"`
Name string `json:"name"`
}
// GetFromBlockNumber returns __EventsInRangeInput.FromBlockNumber, and is useful for accessing the field via an interface.
func (v *__EventsInRangeInput) GetFromBlockNumber() int { return v.FromBlockNumber }
// GetToBlockNumber returns __EventsInRangeInput.ToBlockNumber, and is useful for accessing the field via an interface.
func (v *__EventsInRangeInput) GetToBlockNumber() int { return v.ToBlockNumber }
// GetName returns __EventsInRangeInput.Name, and is useful for accessing the field via an interface.
func (v *__EventsInRangeInput) GetName() string { return v.Name }
// __GetKeysInput is used internally by genqlient
type __GetKeysInput struct {
BlockHash string `json:"blockHash"`
ContractAddress string `json:"contractAddress"`
Point BigInt `json:"_point"`
}
// GetBlockHash returns __GetKeysInput.BlockHash, and is useful for accessing the field via an interface.
func (v *__GetKeysInput) GetBlockHash() string { return v.BlockHash }
// GetContractAddress returns __GetKeysInput.ContractAddress, and is useful for accessing the field via an interface.
func (v *__GetKeysInput) GetContractAddress() string { return v.ContractAddress }
// GetPoint returns __GetKeysInput.Point, and is useful for accessing the field via an interface.
func (v *__GetKeysInput) GetPoint() BigInt { return v.Point }
// __GetOwnerInput is used internally by genqlient
type __GetOwnerInput struct {
BlockHash string `json:"blockHash"`
ContractAddress string `json:"contractAddress"`
Point BigInt `json:"_point"`
}
// GetBlockHash returns __GetOwnerInput.BlockHash, and is useful for accessing the field via an interface.
func (v *__GetOwnerInput) GetBlockHash() string { return v.BlockHash }
// GetContractAddress returns __GetOwnerInput.ContractAddress, and is useful for accessing the field via an interface.
func (v *__GetOwnerInput) GetContractAddress() string { return v.ContractAddress }
// GetPoint returns __GetOwnerInput.Point, and is useful for accessing the field via an interface.
func (v *__GetOwnerInput) GetPoint() BigInt { return v.Point }
// __GetSponsorInput is used internally by genqlient
type __GetSponsorInput struct {
Point BigInt `json:"point"`
BlockHash string `json:"blockHash"`
ContractAddress string `json:"contractAddress"`
}
// GetPoint returns __GetSponsorInput.Point, and is useful for accessing the field via an interface.
func (v *__GetSponsorInput) GetPoint() BigInt { return v.Point }
// GetBlockHash returns __GetSponsorInput.BlockHash, and is useful for accessing the field via an interface.
func (v *__GetSponsorInput) GetBlockHash() string { return v.BlockHash }
// GetContractAddress returns __GetSponsorInput.ContractAddress, and is useful for accessing the field via an interface.
func (v *__GetSponsorInput) GetContractAddress() string { return v.ContractAddress }
// __GetSponsoringInput is used internally by genqlient
type __GetSponsoringInput struct {
Sponsor BigInt `json:"sponsor"`
BlockHash string `json:"blockHash"`
ContractAddress string `json:"contractAddress"`
}
// GetSponsor returns __GetSponsoringInput.Sponsor, and is useful for accessing the field via an interface.
func (v *__GetSponsoringInput) GetSponsor() BigInt { return v.Sponsor }
// GetBlockHash returns __GetSponsoringInput.BlockHash, and is useful for accessing the field via an interface.
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"`
ContractAddress string `json:"contractAddress"`
Point BigInt `json:"_point"`
}
// GetBlockHash returns __IsActiveInput.BlockHash, and is useful for accessing the field via an interface.
func (v *__IsActiveInput) GetBlockHash() string { return v.BlockHash }
// GetContractAddress returns __IsActiveInput.ContractAddress, and is useful for accessing the field via an interface.
func (v *__IsActiveInput) GetContractAddress() string { return v.ContractAddress }
// GetPoint returns __IsActiveInput.Point, and is useful for accessing the field via an interface.
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) {
block {
hash
number
}
tx {
hash
index
from
to
}
eventIndex
event {
__typename
... on OwnerChangedEvent {
point
owner
}
}
}
}
`
func EventsInRange(
ctx_ context.Context,
client_ graphql.Client,
fromBlockNumber int,
toBlockNumber int,
name string,
) (data_ *EventsInRangeResponse, err_ error) {
req_ := &graphql.Request{
OpName: "EventsInRange",
Query: EventsInRange_Operation,
Variables: &__EventsInRangeInput{
FromBlockNumber: fromBlockNumber,
ToBlockNumber: toBlockNumber,
Name: name,
},
}
data_ = &EventsInRangeResponse{}
resp_ := &graphql.Response{Data: data_}
err_ = client_.MakeRequest(
ctx_,
req_,
resp_,
)
return data_, err_
}
// The query executed by GetKeys.
const GetKeys_Operation = `
query GetKeys ($blockHash: String!, $contractAddress: String!, $_point: BigInt!) {
azimuthGetKeys(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point) {
value {
value0
value1
value2
value3
}
proof {
data
}
}
}
`
func GetKeys(
ctx_ context.Context,
client_ graphql.Client,
blockHash string,
contractAddress string,
_point BigInt,
) (data_ *GetKeysResponse, err_ error) {
req_ := &graphql.Request{
OpName: "GetKeys",
Query: GetKeys_Operation,
Variables: &__GetKeysInput{
BlockHash: blockHash,
ContractAddress: contractAddress,
Point: _point,
},
}
data_ = &GetKeysResponse{}
resp_ := &graphql.Response{Data: data_}
err_ = client_.MakeRequest(
ctx_,
req_,
resp_,
)
return data_, err_
}
// The query executed by GetOwner.
const GetOwner_Operation = `
query GetOwner ($blockHash: String!, $contractAddress: String!, $_point: BigInt!) {
azimuthGetOwner(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point) {
value
}
}
`
func GetOwner(
ctx_ context.Context,
client_ graphql.Client,
blockHash string,
contractAddress string,
_point BigInt,
) (data_ *GetOwnerResponse, err_ error) {
req_ := &graphql.Request{
OpName: "GetOwner",
Query: GetOwner_Operation,
Variables: &__GetOwnerInput{
BlockHash: blockHash,
ContractAddress: contractAddress,
Point: _point,
},
}
data_ = &GetOwnerResponse{}
resp_ := &graphql.Response{Data: data_}
err_ = client_.MakeRequest(
ctx_,
req_,
resp_,
)
return data_, err_
}
// The query executed by GetSponsor.
const GetSponsor_Operation = `
query GetSponsor ($point: BigInt!, $blockHash: String!, $contractAddress: String!) {
azimuthGetSponsor(blockHash: $blockHash, contractAddress: $contractAddress, _point: $point) {
value
}
}
`
func GetSponsor(
ctx_ context.Context,
client_ graphql.Client,
point BigInt,
blockHash string,
contractAddress string,
) (data_ *GetSponsorResponse, err_ error) {
req_ := &graphql.Request{
OpName: "GetSponsor",
Query: GetSponsor_Operation,
Variables: &__GetSponsorInput{
Point: point,
BlockHash: blockHash,
ContractAddress: contractAddress,
},
}
data_ = &GetSponsorResponse{}
resp_ := &graphql.Response{Data: data_}
err_ = client_.MakeRequest(
ctx_,
req_,
resp_,
)
return data_, err_
}
// The query executed by GetSponsoring.
const GetSponsoring_Operation = `
query GetSponsoring ($sponsor: BigInt!, $blockHash: String!, $contractAddress: String!) {
azimuthGetSponsoring(blockHash: $blockHash, contractAddress: $contractAddress, _sponsor: $sponsor) {
value
}
}
`
func GetSponsoring(
ctx_ context.Context,
client_ graphql.Client,
sponsor BigInt,
blockHash string,
contractAddress string,
) (data_ *GetSponsoringResponse, err_ error) {
req_ := &graphql.Request{
OpName: "GetSponsoring",
Query: GetSponsoring_Operation,
Variables: &__GetSponsoringInput{
Sponsor: sponsor,
BlockHash: blockHash,
ContractAddress: contractAddress,
},
}
data_ = &GetSponsoringResponse{}
resp_ := &graphql.Response{Data: data_}
err_ = client_.MakeRequest(
ctx_,
req_,
resp_,
)
return data_, err_
}
// The query executed by GetSyncStatus.
const GetSyncStatus_Operation = `
query GetSyncStatus {
azimuthGetSyncStatus {
latestProcessedBlockHash
latestProcessedBlockNumber
}
}
`
func GetSyncStatus(
ctx_ context.Context,
client_ graphql.Client,
) (data_ *GetSyncStatusResponse, err_ error) {
req_ := &graphql.Request{
OpName: "GetSyncStatus",
Query: GetSyncStatus_Operation,
}
data_ = &GetSyncStatusResponse{}
resp_ := &graphql.Response{Data: data_}
err_ = client_.MakeRequest(
ctx_,
req_,
resp_,
)
return data_, err_
}
// The query executed by HasSponsor.
const HasSponsor_Operation = `
query HasSponsor ($blockHash: String!, $contractAddress: String!, $_point: BigInt!) {
azimuthHasSponsor(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) {
value
}
}
`
func IsActive(
ctx_ context.Context,
client_ graphql.Client,
blockHash string,
contractAddress string,
_point BigInt,
) (data_ *IsActiveResponse, err_ error) {
req_ := &graphql.Request{
OpName: "IsActive",
Query: IsActive_Operation,
Variables: &__IsActiveInput{
BlockHash: blockHash,
ContractAddress: contractAddress,
Point: _point,
},
}
data_ = &IsActiveResponse{}
resp_ := &graphql.Response{Data: data_}
err_ = client_.MakeRequest(
ctx_,
req_,
resp_,
)
return data_, err_
}