graphql

package
v0.0.0-...-e1b7572 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

README

How to get latest Airstack GraphQL schema

  1. npm install -g get-graphql-schema
  2. get-graphql-schema https://api.airstack.xyz/gql > new-schema.graphql

How to generate code

  1. Add your query under /queries
  2. Modify genqlient.yaml operations to include all your query files
  3. Run go generate ./...
  4. Remember to check if new networks (TokenBlockchain) are added and change the corresponding constants in client.go

Documentation

Index

Constants

View Source
const GetFarcasterUsersByChannel_Operation = `` /* 468-byte string literal not displayed */

The query or mutation executed by GetFarcasterUsersByChannel.

View Source
const GetFarcasterUsersWithAssociatedAddresses_Operation = `` /* 316-byte string literal not displayed */

The query or mutation executed by GetFarcasterUsersWithAssociatedAddresses.

View Source
const GetTokenBalances_Operation = `` /* 374-byte string literal not displayed */

The query or mutation executed by GetTokenBalances.

View Source
const GetTokenDetails_Operation = `` /* 226-byte string literal not displayed */

The query or mutation executed by GetTokenDetails.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetFarcasterUsersByChannelFarcasterChannelsFarcasterChannelsOutput

type GetFarcasterUsersByChannelFarcasterChannelsFarcasterChannelsOutput struct {
	FarcasterChannel []GetFarcasterUsersByChannelFarcasterChannelsFarcasterChannelsOutputFarcasterChannel `json:"FarcasterChannel"`
	PageInfo         GetFarcasterUsersByChannelFarcasterChannelsFarcasterChannelsOutputPageInfo           `json:"pageInfo"`
}

GetFarcasterUsersByChannelFarcasterChannelsFarcasterChannelsOutput includes the requested fields of the GraphQL type FarcasterChannelsOutput.

func (*GetFarcasterUsersByChannelFarcasterChannelsFarcasterChannelsOutput) GetFarcasterChannel

GetFarcasterChannel returns GetFarcasterUsersByChannelFarcasterChannelsFarcasterChannelsOutput.FarcasterChannel, and is useful for accessing the field via an interface.

func (*GetFarcasterUsersByChannelFarcasterChannelsFarcasterChannelsOutput) GetPageInfo

GetPageInfo returns GetFarcasterUsersByChannelFarcasterChannelsFarcasterChannelsOutput.PageInfo, and is useful for accessing the field via an interface.

type GetFarcasterUsersByChannelFarcasterChannelsFarcasterChannelsOutputFarcasterChannel

type GetFarcasterUsersByChannelFarcasterChannelsFarcasterChannelsOutputFarcasterChannel struct {
	Participants []GetFarcasterUsersByChannelFarcasterChannelsFarcasterChannelsOutputFarcasterChannelParticipantsFarcasterChannelParticipant `json:"participants"`
}

GetFarcasterUsersByChannelFarcasterChannelsFarcasterChannelsOutputFarcasterChannel includes the requested fields of the GraphQL type FarcasterChannel.

func (*GetFarcasterUsersByChannelFarcasterChannelsFarcasterChannelsOutputFarcasterChannel) GetParticipants

GetParticipants returns GetFarcasterUsersByChannelFarcasterChannelsFarcasterChannelsOutputFarcasterChannel.Participants, and is useful for accessing the field via an interface.

type GetFarcasterUsersByChannelFarcasterChannelsFarcasterChannelsOutputFarcasterChannelParticipantsFarcasterChannelParticipant

type GetFarcasterUsersByChannelFarcasterChannelsFarcasterChannelsOutputFarcasterChannelParticipantsFarcasterChannelParticipant struct {
	Participant GetFarcasterUsersByChannelFarcasterChannelsFarcasterChannelsOutputFarcasterChannelParticipantsFarcasterChannelParticipantParticipantSocial `json:"participant"`
}

GetFarcasterUsersByChannelFarcasterChannelsFarcasterChannelsOutputFarcasterChannelParticipantsFarcasterChannelParticipant includes the requested fields of the GraphQL type FarcasterChannelParticipant.

func (*GetFarcasterUsersByChannelFarcasterChannelsFarcasterChannelsOutputFarcasterChannelParticipantsFarcasterChannelParticipant) GetParticipant

GetParticipant returns GetFarcasterUsersByChannelFarcasterChannelsFarcasterChannelsOutputFarcasterChannelParticipantsFarcasterChannelParticipant.Participant, and is useful for accessing the field via an interface.

type GetFarcasterUsersByChannelFarcasterChannelsFarcasterChannelsOutputFarcasterChannelParticipantsFarcasterChannelParticipantParticipantSocial

type GetFarcasterUsersByChannelFarcasterChannelsFarcasterChannelsOutputFarcasterChannelParticipantsFarcasterChannelParticipantParticipantSocial struct {
	UserAddress common.Address `json:"userAddress"`
	ProfileName string         `json:"profileName"`
	Fid         string         `json:"fid"`
	// blockchain addresses associated with the social profile
	UserAssociatedAddresses []common.Address `json:"userAssociatedAddresses"`
	FollowerCount           int              `json:"followerCount"`
	FollowingCount          int              `json:"followingCount"`
}

GetFarcasterUsersByChannelFarcasterChannelsFarcasterChannelsOutputFarcasterChannelParticipantsFarcasterChannelParticipantParticipantSocial includes the requested fields of the GraphQL type Social.

func (*GetFarcasterUsersByChannelFarcasterChannelsFarcasterChannelsOutputFarcasterChannelParticipantsFarcasterChannelParticipantParticipantSocial) GetFid

GetFid returns GetFarcasterUsersByChannelFarcasterChannelsFarcasterChannelsOutputFarcasterChannelParticipantsFarcasterChannelParticipantParticipantSocial.Fid, and is useful for accessing the field via an interface.

func (*GetFarcasterUsersByChannelFarcasterChannelsFarcasterChannelsOutputFarcasterChannelParticipantsFarcasterChannelParticipantParticipantSocial) GetFollowerCount

GetFollowerCount returns GetFarcasterUsersByChannelFarcasterChannelsFarcasterChannelsOutputFarcasterChannelParticipantsFarcasterChannelParticipantParticipantSocial.FollowerCount, and is useful for accessing the field via an interface.

func (*GetFarcasterUsersByChannelFarcasterChannelsFarcasterChannelsOutputFarcasterChannelParticipantsFarcasterChannelParticipantParticipantSocial) GetFollowingCount

GetFollowingCount returns GetFarcasterUsersByChannelFarcasterChannelsFarcasterChannelsOutputFarcasterChannelParticipantsFarcasterChannelParticipantParticipantSocial.FollowingCount, and is useful for accessing the field via an interface.

func (*GetFarcasterUsersByChannelFarcasterChannelsFarcasterChannelsOutputFarcasterChannelParticipantsFarcasterChannelParticipantParticipantSocial) GetProfileName

GetProfileName returns GetFarcasterUsersByChannelFarcasterChannelsFarcasterChannelsOutputFarcasterChannelParticipantsFarcasterChannelParticipantParticipantSocial.ProfileName, and is useful for accessing the field via an interface.

func (*GetFarcasterUsersByChannelFarcasterChannelsFarcasterChannelsOutputFarcasterChannelParticipantsFarcasterChannelParticipantParticipantSocial) GetUserAddress

GetUserAddress returns GetFarcasterUsersByChannelFarcasterChannelsFarcasterChannelsOutputFarcasterChannelParticipantsFarcasterChannelParticipantParticipantSocial.UserAddress, and is useful for accessing the field via an interface.

func (*GetFarcasterUsersByChannelFarcasterChannelsFarcasterChannelsOutputFarcasterChannelParticipantsFarcasterChannelParticipantParticipantSocial) GetUserAssociatedAddresses

GetUserAssociatedAddresses returns GetFarcasterUsersByChannelFarcasterChannelsFarcasterChannelsOutputFarcasterChannelParticipantsFarcasterChannelParticipantParticipantSocial.UserAssociatedAddresses, and is useful for accessing the field via an interface.

type GetFarcasterUsersByChannelFarcasterChannelsFarcasterChannelsOutputPageInfo

type GetFarcasterUsersByChannelFarcasterChannelsFarcasterChannelsOutputPageInfo struct {
	HasNextPage bool   `json:"hasNextPage"`
	HasPrevPage bool   `json:"hasPrevPage"`
	NextCursor  string `json:"nextCursor"`
	PrevCursor  string `json:"prevCursor"`
}

GetFarcasterUsersByChannelFarcasterChannelsFarcasterChannelsOutputPageInfo includes the requested fields of the GraphQL type PageInfo.

func (*GetFarcasterUsersByChannelFarcasterChannelsFarcasterChannelsOutputPageInfo) GetHasNextPage

GetHasNextPage returns GetFarcasterUsersByChannelFarcasterChannelsFarcasterChannelsOutputPageInfo.HasNextPage, and is useful for accessing the field via an interface.

func (*GetFarcasterUsersByChannelFarcasterChannelsFarcasterChannelsOutputPageInfo) GetHasPrevPage

GetHasPrevPage returns GetFarcasterUsersByChannelFarcasterChannelsFarcasterChannelsOutputPageInfo.HasPrevPage, and is useful for accessing the field via an interface.

func (*GetFarcasterUsersByChannelFarcasterChannelsFarcasterChannelsOutputPageInfo) GetNextCursor

GetNextCursor returns GetFarcasterUsersByChannelFarcasterChannelsFarcasterChannelsOutputPageInfo.NextCursor, and is useful for accessing the field via an interface.

func (*GetFarcasterUsersByChannelFarcasterChannelsFarcasterChannelsOutputPageInfo) GetPrevCursor

GetPrevCursor returns GetFarcasterUsersByChannelFarcasterChannelsFarcasterChannelsOutputPageInfo.PrevCursor, and is useful for accessing the field via an interface.

type GetFarcasterUsersByChannelResponse

type GetFarcasterUsersByChannelResponse struct {
	FarcasterChannels GetFarcasterUsersByChannelFarcasterChannelsFarcasterChannelsOutput `json:"FarcasterChannels"`
}

GetFarcasterUsersByChannelResponse is returned by GetFarcasterUsersByChannel on success.

func GetFarcasterUsersByChannel

func GetFarcasterUsersByChannel(
	ctx context.Context,
	client graphql.Client,
	channelId string,
	limit int,
	cursor string,
) (*GetFarcasterUsersByChannelResponse, error)

func (*GetFarcasterUsersByChannelResponse) GetFarcasterChannels

GetFarcasterChannels returns GetFarcasterUsersByChannelResponse.FarcasterChannels, and is useful for accessing the field via an interface.

type GetFarcasterUsersWithAssociatedAddressesResponse

type GetFarcasterUsersWithAssociatedAddressesResponse struct {
	Socials GetFarcasterUsersWithAssociatedAddressesSocialsSocialsOutput `json:"Socials"`
}

GetFarcasterUsersWithAssociatedAddressesResponse is returned by GetFarcasterUsersWithAssociatedAddresses on success.

func GetFarcasterUsersWithAssociatedAddresses

func GetFarcasterUsersWithAssociatedAddresses(
	ctx context.Context,
	client graphql.Client,
	limit int,
	cursor string,
) (*GetFarcasterUsersWithAssociatedAddressesResponse, error)

func (*GetFarcasterUsersWithAssociatedAddressesResponse) GetSocials

GetSocials returns GetFarcasterUsersWithAssociatedAddressesResponse.Socials, and is useful for accessing the field via an interface.

type GetFarcasterUsersWithAssociatedAddressesSocialsSocialsOutput

type GetFarcasterUsersWithAssociatedAddressesSocialsSocialsOutput struct {
	Social   []GetFarcasterUsersWithAssociatedAddressesSocialsSocialsOutputSocial `json:"Social"`
	PageInfo GetFarcasterUsersWithAssociatedAddressesSocialsSocialsOutputPageInfo `json:"pageInfo"`
}

GetFarcasterUsersWithAssociatedAddressesSocialsSocialsOutput includes the requested fields of the GraphQL type SocialsOutput.

func (*GetFarcasterUsersWithAssociatedAddressesSocialsSocialsOutput) GetPageInfo

GetPageInfo returns GetFarcasterUsersWithAssociatedAddressesSocialsSocialsOutput.PageInfo, and is useful for accessing the field via an interface.

func (*GetFarcasterUsersWithAssociatedAddressesSocialsSocialsOutput) GetSocial

GetSocial returns GetFarcasterUsersWithAssociatedAddressesSocialsSocialsOutput.Social, and is useful for accessing the field via an interface.

type GetFarcasterUsersWithAssociatedAddressesSocialsSocialsOutputPageInfo

type GetFarcasterUsersWithAssociatedAddressesSocialsSocialsOutputPageInfo struct {
	NextCursor  string `json:"nextCursor"`
	PrevCursor  string `json:"prevCursor"`
	HasNextPage bool   `json:"hasNextPage"`
	HasPrevPage bool   `json:"hasPrevPage"`
}

GetFarcasterUsersWithAssociatedAddressesSocialsSocialsOutputPageInfo includes the requested fields of the GraphQL type PageInfo.

func (*GetFarcasterUsersWithAssociatedAddressesSocialsSocialsOutputPageInfo) GetHasNextPage

GetHasNextPage returns GetFarcasterUsersWithAssociatedAddressesSocialsSocialsOutputPageInfo.HasNextPage, and is useful for accessing the field via an interface.

func (*GetFarcasterUsersWithAssociatedAddressesSocialsSocialsOutputPageInfo) GetHasPrevPage

GetHasPrevPage returns GetFarcasterUsersWithAssociatedAddressesSocialsSocialsOutputPageInfo.HasPrevPage, and is useful for accessing the field via an interface.

func (*GetFarcasterUsersWithAssociatedAddressesSocialsSocialsOutputPageInfo) GetNextCursor

GetNextCursor returns GetFarcasterUsersWithAssociatedAddressesSocialsSocialsOutputPageInfo.NextCursor, and is useful for accessing the field via an interface.

func (*GetFarcasterUsersWithAssociatedAddressesSocialsSocialsOutputPageInfo) GetPrevCursor

GetPrevCursor returns GetFarcasterUsersWithAssociatedAddressesSocialsSocialsOutputPageInfo.PrevCursor, and is useful for accessing the field via an interface.

type GetFarcasterUsersWithAssociatedAddressesSocialsSocialsOutputSocial

type GetFarcasterUsersWithAssociatedAddressesSocialsSocialsOutputSocial struct {
	UserId string `json:"userId"`
	// blockchain addresses associated with the social profile
	UserAssociatedAddresses []common.Address `json:"userAssociatedAddresses"`
}

GetFarcasterUsersWithAssociatedAddressesSocialsSocialsOutputSocial includes the requested fields of the GraphQL type Social.

func (*GetFarcasterUsersWithAssociatedAddressesSocialsSocialsOutputSocial) GetUserAssociatedAddresses

GetUserAssociatedAddresses returns GetFarcasterUsersWithAssociatedAddressesSocialsSocialsOutputSocial.UserAssociatedAddresses, and is useful for accessing the field via an interface.

func (*GetFarcasterUsersWithAssociatedAddressesSocialsSocialsOutputSocial) GetUserId

GetUserId returns GetFarcasterUsersWithAssociatedAddressesSocialsSocialsOutputSocial.UserId, and is useful for accessing the field via an interface.

type GetTokenBalancesResponse

type GetTokenBalancesResponse struct {
	TokenBalances GetTokenBalancesTokenBalancesTokenBalancesOutput `json:"TokenBalances"`
}

GetTokenBalancesResponse is returned by GetTokenBalances on success.

func GetTokenBalances

func GetTokenBalances(
	ctx context.Context,
	client graphql.Client,
	tokenAddress common.Address,
	blockchain TokenBlockchain,
	limit int,
	cursor string,
) (*GetTokenBalancesResponse, error)

func (*GetTokenBalancesResponse) GetTokenBalances

GetTokenBalances returns GetTokenBalancesResponse.TokenBalances, and is useful for accessing the field via an interface.

type GetTokenBalancesTokenBalancesTokenBalancesOutput

type GetTokenBalancesTokenBalancesTokenBalancesOutput struct {
	TokenBalance []GetTokenBalancesTokenBalancesTokenBalancesOutputTokenBalance `json:"TokenBalance"`
	PageInfo     GetTokenBalancesTokenBalancesTokenBalancesOutputPageInfo       `json:"pageInfo"`
}

GetTokenBalancesTokenBalancesTokenBalancesOutput includes the requested fields of the GraphQL type TokenBalancesOutput.

func (*GetTokenBalancesTokenBalancesTokenBalancesOutput) GetPageInfo

GetPageInfo returns GetTokenBalancesTokenBalancesTokenBalancesOutput.PageInfo, and is useful for accessing the field via an interface.

func (*GetTokenBalancesTokenBalancesTokenBalancesOutput) GetTokenBalance

GetTokenBalance returns GetTokenBalancesTokenBalancesTokenBalancesOutput.TokenBalance, and is useful for accessing the field via an interface.

type GetTokenBalancesTokenBalancesTokenBalancesOutputPageInfo

type GetTokenBalancesTokenBalancesTokenBalancesOutputPageInfo struct {
	NextCursor  string `json:"nextCursor"`
	PrevCursor  string `json:"prevCursor"`
	HasNextPage bool   `json:"hasNextPage"`
	HasPrevPage bool   `json:"hasPrevPage"`
}

GetTokenBalancesTokenBalancesTokenBalancesOutputPageInfo includes the requested fields of the GraphQL type PageInfo.

func (*GetTokenBalancesTokenBalancesTokenBalancesOutputPageInfo) GetHasNextPage

GetHasNextPage returns GetTokenBalancesTokenBalancesTokenBalancesOutputPageInfo.HasNextPage, and is useful for accessing the field via an interface.

func (*GetTokenBalancesTokenBalancesTokenBalancesOutputPageInfo) GetHasPrevPage

GetHasPrevPage returns GetTokenBalancesTokenBalancesTokenBalancesOutputPageInfo.HasPrevPage, and is useful for accessing the field via an interface.

func (*GetTokenBalancesTokenBalancesTokenBalancesOutputPageInfo) GetNextCursor

GetNextCursor returns GetTokenBalancesTokenBalancesTokenBalancesOutputPageInfo.NextCursor, and is useful for accessing the field via an interface.

func (*GetTokenBalancesTokenBalancesTokenBalancesOutputPageInfo) GetPrevCursor

GetPrevCursor returns GetTokenBalancesTokenBalancesTokenBalancesOutputPageInfo.PrevCursor, and is useful for accessing the field via an interface.

type GetTokenBalancesTokenBalancesTokenBalancesOutputTokenBalance

type GetTokenBalancesTokenBalancesTokenBalancesOutputTokenBalance struct {
	// Nested Query allowing to retrieve address, domain names, social profiles of the owner
	Owner GetTokenBalancesTokenBalancesTokenBalancesOutputTokenBalanceOwnerWallet `json:"owner"`
	// Token amount the address currently holds
	Amount string `json:"amount"`
}

GetTokenBalancesTokenBalancesTokenBalancesOutputTokenBalance includes the requested fields of the GraphQL type TokenBalance.

func (*GetTokenBalancesTokenBalancesTokenBalancesOutputTokenBalance) GetAmount

GetAmount returns GetTokenBalancesTokenBalancesTokenBalancesOutputTokenBalance.Amount, and is useful for accessing the field via an interface.

func (*GetTokenBalancesTokenBalancesTokenBalancesOutputTokenBalance) GetOwner

GetOwner returns GetTokenBalancesTokenBalancesTokenBalancesOutputTokenBalance.Owner, and is useful for accessing the field via an interface.

type GetTokenBalancesTokenBalancesTokenBalancesOutputTokenBalanceOwnerWallet

type GetTokenBalancesTokenBalancesTokenBalancesOutputTokenBalanceOwnerWallet struct {
	// Returns addresses associated with the identity input
	Addresses []common.Address `json:"addresses"`
}

GetTokenBalancesTokenBalancesTokenBalancesOutputTokenBalanceOwnerWallet includes the requested fields of the GraphQL type Wallet.

func (*GetTokenBalancesTokenBalancesTokenBalancesOutputTokenBalanceOwnerWallet) GetAddresses

GetAddresses returns GetTokenBalancesTokenBalancesTokenBalancesOutputTokenBalanceOwnerWallet.Addresses, and is useful for accessing the field via an interface.

type GetTokenDetailsResponse

type GetTokenDetailsResponse struct {
	Tokens GetTokenDetailsTokensTokensOutput `json:"Tokens"`
}

GetTokenDetailsResponse is returned by GetTokenDetails on success.

func GetTokenDetails

func GetTokenDetails(
	ctx context.Context,
	client graphql.Client,
	tokenAddress common.Address,
	blockchain TokenBlockchain,
) (*GetTokenDetailsResponse, error)

func (*GetTokenDetailsResponse) GetTokens

GetTokens returns GetTokenDetailsResponse.Tokens, and is useful for accessing the field via an interface.

type GetTokenDetailsTokensTokensOutput

type GetTokenDetailsTokensTokensOutput struct {
	Token []GetTokenDetailsTokensTokensOutputToken `json:"Token"`
}

GetTokenDetailsTokensTokensOutput includes the requested fields of the GraphQL type TokensOutput.

func (*GetTokenDetailsTokensTokensOutput) GetToken

GetToken returns GetTokenDetailsTokensTokensOutput.Token, and is useful for accessing the field via an interface.

type GetTokenDetailsTokensTokensOutputToken

type GetTokenDetailsTokensTokensOutputToken struct {
	// Name of the token, mirrored from the smart contract
	Name string `json:"name"`
	// Symbol of the token, mirrored from the smart contract
	Symbol string `json:"symbol"`
	// The number of decimal places this token uses, default to 18
	Decimals int `json:"decimals"`
	// Amount of tokens in the protocol
	TotalSupply string `json:"totalSupply"`
}

GetTokenDetailsTokensTokensOutputToken includes the requested fields of the GraphQL type Token.

func (*GetTokenDetailsTokensTokensOutputToken) GetDecimals

GetDecimals returns GetTokenDetailsTokensTokensOutputToken.Decimals, and is useful for accessing the field via an interface.

func (*GetTokenDetailsTokensTokensOutputToken) GetName

GetName returns GetTokenDetailsTokensTokensOutputToken.Name, and is useful for accessing the field via an interface.

func (*GetTokenDetailsTokensTokensOutputToken) GetSymbol

GetSymbol returns GetTokenDetailsTokensTokensOutputToken.Symbol, and is useful for accessing the field via an interface.

func (*GetTokenDetailsTokensTokensOutputToken) GetTotalSupply

func (v *GetTokenDetailsTokensTokensOutputToken) GetTotalSupply() string

GetTotalSupply returns GetTokenDetailsTokensTokensOutputToken.TotalSupply, and is useful for accessing the field via an interface.

type TokenBlockchain

type TokenBlockchain string
const (
	TokenBlockchainEthereum TokenBlockchain = "ethereum"
	TokenBlockchainBase     TokenBlockchain = "base"
	TokenBlockchainZora     TokenBlockchain = "zora"
	TokenBlockchainGold     TokenBlockchain = "gold"
	TokenBlockchainDegen    TokenBlockchain = "degen"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL