Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) GetAddressRanking(ctx context.Context, hours *int, ...) (*GetAddressRanking, error)
- func (c *Client) GetBridgeAmountStatistic(ctx context.Context, typeArg model.StatisticType, duration *model.Duration, ...) (*GetBridgeAmountStatistic, error)
- func (c *Client) GetBridgeTransactions(ctx context.Context, chainID *int, address *string, txHash *string, ...) (*GetBridgeTransactions, error)
- func (c *Client) GetCountByChainID(ctx context.Context, chainID *int, address *string, direction *model.Direction, ...) (*GetCountByChainID, error)
- func (c *Client) GetCountByTokenAddress(ctx context.Context, chainID *int, address *string, direction *model.Direction, ...) (*GetCountByTokenAddress, error)
- func (c *Client) GetHistoricalStatistics(ctx context.Context, chainID *int, typeArg *model.HistoricalResultType, ...) (*GetHistoricalStatistics, error)
- type GetAddressRanking
- type GetBridgeAmountStatistic
- type GetBridgeTransactions
- type GetCountByChainID
- type GetCountByTokenAddress
- type GetHistoricalStatistics
- type Query
Constants ¶
View Source
const GetAddressRankingDocument = `query GetAddressRanking ($hours: Int) {
response: addressRanking(hours: $hours) {
address
count
}
}
`
View Source
const GetBridgeAmountStatisticDocument = `` /* 283-byte string literal not displayed */
View Source
const GetBridgeTransactionsDocument = `` /* 657-byte string literal not displayed */
View Source
const GetCountByChainIDDocument = `` /* 223-byte string literal not displayed */
View Source
const GetCountByTokenAddressDocument = `` /* 248-byte string literal not displayed */
View Source
const GetHistoricalStatisticsDocument = `` /* 225-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) GetAddressRanking ¶
func (c *Client) GetAddressRanking(ctx context.Context, hours *int, httpRequestOptions ...client.HTTPRequestOption) (*GetAddressRanking, error)
func (*Client) GetBridgeAmountStatistic ¶
func (c *Client) GetBridgeAmountStatistic(ctx context.Context, typeArg model.StatisticType, duration *model.Duration, chainID *int, address *string, tokenAddress *string, httpRequestOptions ...client.HTTPRequestOption) (*GetBridgeAmountStatistic, error)
func (*Client) GetBridgeTransactions ¶
func (*Client) GetCountByChainID ¶
func (*Client) GetCountByTokenAddress ¶
func (*Client) GetHistoricalStatistics ¶
func (c *Client) GetHistoricalStatistics(ctx context.Context, chainID *int, typeArg *model.HistoricalResultType, days *int, httpRequestOptions ...client.HTTPRequestOption) (*GetHistoricalStatistics, error)
type GetAddressRanking ¶
type GetBridgeAmountStatistic ¶
type GetBridgeAmountStatistic struct { Response *struct { Value *string "json:\"value\" graphql:\"value\"" } "json:\"response\" graphql:\"response\"" }
type GetBridgeTransactions ¶
type GetBridgeTransactions struct { Response []*struct { FromInfo *struct { ChainID *int "json:\"chainId\" graphql:\"chainId\"" Address *string "json:\"address\" graphql:\"address\"" TxnHash *string "json:\"txnHash\" graphql:\"txnHash\"" Value *string "json:\"value\" graphql:\"value\"" FormattedValue *float64 "json:\"formattedValue\" graphql:\"formattedValue\"" USDValue *float64 "json:\"USDValue\" graphql:\"USDValue\"" TokenAddress *string "json:\"tokenAddress\" graphql:\"tokenAddress\"" TokenSymbol *string "json:\"tokenSymbol\" graphql:\"tokenSymbol\"" BlockNumber *int "json:\"blockNumber\" graphql:\"blockNumber\"" Time *int "json:\"time\" graphql:\"time\"" } "json:\"fromInfo\" graphql:\"fromInfo\"" ToInfo *struct { ChainID *int "json:\"chainId\" graphql:\"chainId\"" Address *string "json:\"address\" graphql:\"address\"" TxnHash *string "json:\"txnHash\" graphql:\"txnHash\"" Value *string "json:\"value\" graphql:\"value\"" FormattedValue *float64 "json:\"formattedValue\" graphql:\"formattedValue\"" USDValue *float64 "json:\"USDValue\" graphql:\"USDValue\"" TokenAddress *string "json:\"tokenAddress\" graphql:\"tokenAddress\"" TokenSymbol *string "json:\"tokenSymbol\" graphql:\"tokenSymbol\"" BlockNumber *int "json:\"blockNumber\" graphql:\"blockNumber\"" Time *int "json:\"time\" graphql:\"time\"" } "json:\"toInfo\" graphql:\"toInfo\"" Kappa *string "json:\"kappa\" graphql:\"kappa\"" Pending *bool "json:\"pending\" graphql:\"pending\"" SwapSuccess *bool "json:\"swapSuccess\" graphql:\"swapSuccess\"" } "json:\"response\" graphql:\"response\"" }
type GetCountByChainID ¶
type GetCountByTokenAddress ¶
type GetHistoricalStatistics ¶
type GetHistoricalStatistics struct { Response *struct { Total *float64 "json:\"total\" graphql:\"total\"" DateResults []*struct { Date *string "json:\"date\" graphql:\"date\"" Total *float64 "json:\"total\" graphql:\"total\"" } "json:\"dateResults\" graphql:\"dateResults\"" Type *model.HistoricalResultType "json:\"type\" graphql:\"type\"" } "json:\"response\" graphql:\"response\"" }
type Query ¶
type Query struct { BridgeTransactions []*model.BridgeTransaction "json:\"bridgeTransactions\" graphql:\"bridgeTransactions\"" BridgeAmountStatistic *model.ValueResult "json:\"bridgeAmountStatistic\" graphql:\"bridgeAmountStatistic\"" CountByChainID []*model.TransactionCountResult "json:\"countByChainId\" graphql:\"countByChainId\"" CountByTokenAddress []*model.TokenCountResult "json:\"countByTokenAddress\" graphql:\"countByTokenAddress\"" AddressRanking []*model.AddressRanking "json:\"addressRanking\" graphql:\"addressRanking\"" HistoricalStatistics *model.HistoricalResult "json:\"historicalStatistics\" graphql:\"historicalStatistics\"" }
Click to show internal directories.
Click to hide internal directories.