azimuth-client-go/generated.go
John Hyde 075af942a2 Add GetPointOwnership function and update GraphQL schema compatibility
- Add PointOwnership struct and GetPointOwnership function for comprehensive ownership queries
- Update GraphQL schema to match laconic-az-ts schema (remove azimuth prefixes)
- Update all GraphQL queries to use new field names (getSponsor, isActive, etc.)
- Regenerate GraphQL client code with HasSponsor query support
- Update response field references throughout client code
- Use "latest" block hash for efficiency in ownership queries
- Support proper sponsor detection using HasSponsor + GetSponsor queries

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-09 17:01:30 -07:00

1185 lines
44 KiB
Go

// Code generated by github.com/Khan/genqlient, DO NOT EDIT.
package azimuth
import (
"context"
"encoding/json"
"fmt"
"github.com/Khan/genqlient/graphql"
)
// 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 EventsInRangeEventsInRangeResultEvent.Block, and is useful for accessing the field via an interface.
func (v *EventsInRangeEventsInRangeResultEvent) GetBlock() EventsInRangeEventsInRangeResultEventBlockBlock_ {
return v.Block
}
// GetTx returns EventsInRangeEventsInRangeResultEvent.Tx, and is useful for accessing the field via an interface.
func (v *EventsInRangeEventsInRangeResultEvent) GetTx() EventsInRangeEventsInRangeResultEventTxTransaction_ {
return v.Tx
}
// GetEventIndex returns EventsInRangeEventsInRangeResultEvent.EventIndex, and is useful for accessing the field via an interface.
func (v *EventsInRangeEventsInRangeResultEvent) GetEventIndex() int { return v.EventIndex }
// GetEvent returns EventsInRangeEventsInRangeResultEvent.Event, and is useful for accessing the field via an interface.
func (v *EventsInRangeEventsInRangeResultEvent) GetEvent() EventsInRangeEventsInRangeResultEventEvent {
return v.Event
}
func (v *EventsInRangeEventsInRangeResultEvent) UnmarshalJSON(b []byte) error {
if string(b) == "null" {
return nil
}
var firstPass struct {
*EventsInRangeEventsInRangeResultEvent
Event json.RawMessage `json:"event"`
graphql.NoUnmarshalJSON
}
firstPass.EventsInRangeEventsInRangeResultEvent = 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 = __unmarshalEventsInRangeEventsInRangeResultEventEvent(
src, dst)
if err != nil {
return fmt.Errorf(
"unable to unmarshal EventsInRangeEventsInRangeResultEvent.Event: %w", err)
}
}
}
return nil
}
type __premarshalEventsInRangeEventsInRangeResultEvent struct {
Block EventsInRangeEventsInRangeResultEventBlockBlock_ `json:"block"`
Tx EventsInRangeEventsInRangeResultEventTxTransaction_ `json:"tx"`
EventIndex int `json:"eventIndex"`
Event json.RawMessage `json:"event"`
}
func (v *EventsInRangeEventsInRangeResultEvent) MarshalJSON() ([]byte, error) {
premarshaled, err := v.__premarshalJSON()
if err != nil {
return nil, err
}
return json.Marshal(premarshaled)
}
func (v *EventsInRangeEventsInRangeResultEvent) __premarshalJSON() (*__premarshalEventsInRangeEventsInRangeResultEvent, error) {
var retval __premarshalEventsInRangeEventsInRangeResultEvent
retval.Block = v.Block
retval.Tx = v.Tx
retval.EventIndex = v.EventIndex
{
dst := &retval.Event
src := v.Event
var err error
*dst, err = __marshalEventsInRangeEventsInRangeResultEventEvent(
&src)
if err != nil {
return nil, fmt.Errorf(
"unable to marshal EventsInRangeEventsInRangeResultEvent.Event: %w", err)
}
}
return &retval, nil
}
// EventsInRangeEventsInRangeResultEventBlockBlock_ includes the requested fields of the GraphQL type _Block_.
type EventsInRangeEventsInRangeResultEventBlockBlock_ struct {
Hash string `json:"hash"`
Number int `json:"number"`
}
// GetHash returns EventsInRangeEventsInRangeResultEventBlockBlock_.Hash, and is useful for accessing the field via an interface.
func (v *EventsInRangeEventsInRangeResultEventBlockBlock_) GetHash() string { return v.Hash }
// GetNumber returns EventsInRangeEventsInRangeResultEventBlockBlock_.Number, and is useful for accessing the field via an interface.
func (v *EventsInRangeEventsInRangeResultEventBlockBlock_) GetNumber() int { return v.Number }
// EventsInRangeEventsInRangeResultEventEvent includes the requested fields of the GraphQL interface Event.
//
// 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 *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 __unmarshalEventsInRangeEventsInRangeResultEventEvent(b []byte, v *EventsInRangeEventsInRangeResultEventEvent) 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(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(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 EventsInRangeEventsInRangeResultEventEvent: "%v"`, tn.TypeName)
}
}
func __marshalEventsInRangeEventsInRangeResultEventEvent(v *EventsInRangeEventsInRangeResultEventEvent) ([]byte, error) {
var typename string
switch v := (*v).(type) {
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"`
*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 EventsInRangeEventsInRangeResultEventEvent: "%T"`, v)
}
}
// 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 EventsInRangeEventsInRangeResultEventEventOwnerChangedEvent.Typename, and is useful for accessing the field via an interface.
func (v *EventsInRangeEventsInRangeResultEventEventOwnerChangedEvent) GetTypename() string {
return v.Typename
}
// GetPoint returns EventsInRangeEventsInRangeResultEventEventOwnerChangedEvent.Point, and is useful for accessing the field via an interface.
func (v *EventsInRangeEventsInRangeResultEventEventOwnerChangedEvent) GetPoint() BigInt {
return v.Point
}
// GetOwner returns EventsInRangeEventsInRangeResultEventEventOwnerChangedEvent.Owner, and is useful for accessing the field via an interface.
func (v *EventsInRangeEventsInRangeResultEventEventOwnerChangedEvent) GetOwner() string {
return v.Owner
}
// 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 EventsInRangeEventsInRangeResultEventTxTransaction_.Hash, and is useful for accessing the field via an interface.
func (v *EventsInRangeEventsInRangeResultEventTxTransaction_) GetHash() string { return v.Hash }
// GetIndex returns EventsInRangeEventsInRangeResultEventTxTransaction_.Index, and is useful for accessing the field via an interface.
func (v *EventsInRangeEventsInRangeResultEventTxTransaction_) GetIndex() int { return v.Index }
// GetFrom returns EventsInRangeEventsInRangeResultEventTxTransaction_.From, and is useful for accessing the field via an interface.
func (v *EventsInRangeEventsInRangeResultEventTxTransaction_) GetFrom() string { return v.From }
// 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 {
EventsInRange []EventsInRangeEventsInRangeResultEvent `json:"eventsInRange"`
}
// GetEventsInRange returns EventsInRangeResponse.EventsInRange, and is useful for accessing the field via an interface.
func (v *EventsInRangeResponse) GetEventsInRange() []EventsInRangeEventsInRangeResultEvent {
return v.EventsInRange
}
// GetKeysGetKeysResultGetKeysType includes the requested fields of the GraphQL type ResultGetKeysType.
type GetKeysGetKeysResultGetKeysType struct {
Value GetKeysGetKeysResultGetKeysTypeValueGetKeysType `json:"value"`
Proof GetKeysGetKeysResultGetKeysTypeProof `json:"proof"`
}
// GetValue returns GetKeysGetKeysResultGetKeysType.Value, and is useful for accessing the field via an interface.
func (v *GetKeysGetKeysResultGetKeysType) GetValue() GetKeysGetKeysResultGetKeysTypeValueGetKeysType {
return v.Value
}
// GetProof returns GetKeysGetKeysResultGetKeysType.Proof, and is useful for accessing the field via an interface.
func (v *GetKeysGetKeysResultGetKeysType) GetProof() GetKeysGetKeysResultGetKeysTypeProof {
return v.Proof
}
// GetKeysGetKeysResultGetKeysTypeProof includes the requested fields of the GraphQL type Proof.
type GetKeysGetKeysResultGetKeysTypeProof struct {
Data string `json:"data"`
}
// GetData returns GetKeysGetKeysResultGetKeysTypeProof.Data, and is useful for accessing the field via an interface.
func (v *GetKeysGetKeysResultGetKeysTypeProof) GetData() string { return v.Data }
// 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 GetKeysGetKeysResultGetKeysTypeValueGetKeysType.Value0, and is useful for accessing the field via an interface.
func (v *GetKeysGetKeysResultGetKeysTypeValueGetKeysType) GetValue0() string { return v.Value0 }
// GetValue1 returns GetKeysGetKeysResultGetKeysTypeValueGetKeysType.Value1, and is useful for accessing the field via an interface.
func (v *GetKeysGetKeysResultGetKeysTypeValueGetKeysType) GetValue1() string { return v.Value1 }
// GetValue2 returns GetKeysGetKeysResultGetKeysTypeValueGetKeysType.Value2, and is useful for accessing the field via an interface.
func (v *GetKeysGetKeysResultGetKeysTypeValueGetKeysType) GetValue2() BigInt { return v.Value2 }
// 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 {
GetKeys GetKeysGetKeysResultGetKeysType `json:"getKeys"`
}
// GetGetKeys returns GetKeysResponse.GetKeys, and is useful for accessing the field via an interface.
func (v *GetKeysResponse) GetGetKeys() GetKeysGetKeysResultGetKeysType { return v.GetKeys }
// GetOwnerGetOwnerResultString includes the requested fields of the GraphQL type ResultString.
type GetOwnerGetOwnerResultString struct {
Value string `json:"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 {
GetOwner GetOwnerGetOwnerResultString `json:"getOwner"`
}
// 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"`
}
// 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 {
GetSponsor GetSponsorGetSponsorResultBigInt `json:"getSponsor"`
}
// 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"`
}
// 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 {
GetSponsoring GetSponsoringGetSponsoringResultBigIntArray `json:"getSponsoring"`
}
// GetGetSponsoring returns GetSponsoringResponse.GetSponsoring, and is useful for accessing the field via an interface.
func (v *GetSponsoringResponse) GetGetSponsoring() GetSponsoringGetSponsoringResultBigIntArray {
return v.GetSponsoring
}
// GetSyncStatusGetSyncStatus includes the requested fields of the GraphQL type SyncStatus.
type GetSyncStatusGetSyncStatus struct {
LatestProcessedBlockHash string `json:"latestProcessedBlockHash"`
LatestProcessedBlockNumber int `json:"latestProcessedBlockNumber"`
}
// GetLatestProcessedBlockHash returns GetSyncStatusGetSyncStatus.LatestProcessedBlockHash, and is useful for accessing the field via an interface.
func (v *GetSyncStatusGetSyncStatus) GetLatestProcessedBlockHash() string {
return v.LatestProcessedBlockHash
}
// 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 {
GetSyncStatus GetSyncStatusGetSyncStatus `json:"getSyncStatus"`
}
// GetGetSyncStatus returns GetSyncStatusResponse.GetSyncStatus, and is useful for accessing the field via an interface.
func (v *GetSyncStatusResponse) GetGetSyncStatus() GetSyncStatusGetSyncStatus { return v.GetSyncStatus }
// HasSponsorHasSponsorResultBoolean includes the requested fields of the GraphQL type ResultBoolean.
type HasSponsorHasSponsorResultBoolean struct {
Value bool `json:"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 {
IsActive IsActiveIsActiveResultBoolean `json:"isActive"`
}
// 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 {
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) {
eventsInRange(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!) {
getKeys(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!) {
getOwner(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!) {
getSponsor(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!) {
getSponsoring(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 {
getSyncStatus {
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!) {
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!) {
isActive(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_
}