client

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const GetLogsDocument = `` /* 217-byte string literal not displayed */
View Source
const GetLogsRangeDocument = `` /* 315-byte string literal not displayed */
View Source
const GetLogsResolversDocument = `` /* 431-byte string literal not displayed */
View Source
const GetReceiptsDocument = `` /* 257-byte string literal not displayed */
View Source
const GetReceiptsRangeDocument = `` /* 355-byte string literal not displayed */
View Source
const GetReceiptsResolversDocument = `` /* 403-byte string literal not displayed */
View Source
const GetTransactionsDocument = `` /* 234-byte string literal not displayed */
View Source
const GetTransactionsRangeDocument = `` /* 332-byte string literal not displayed */
View Source
const GetTransactionsResolversDocument = `` /* 437-byte string literal not displayed */

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Client *client.Client
}

func NewClient

func NewClient(cli *http.Client, baseURL string, options ...client.HTTPRequestOption) *Client

func (*Client) GetLogs

func (c *Client) GetLogs(ctx context.Context, chainID int, page int, httpRequestOptions ...client.HTTPRequestOption) (*GetLogs, error)

func (*Client) GetLogsRange

func (c *Client) GetLogsRange(ctx context.Context, chainID int, startBlock int, endBlock int, page int, httpRequestOptions ...client.HTTPRequestOption) (*GetLogsRange, error)

func (*Client) GetLogsResolvers

func (c *Client) GetLogsResolvers(ctx context.Context, chainID int, page int, httpRequestOptions ...client.HTTPRequestOption) (*GetLogsResolvers, error)

func (*Client) GetReceipts

func (c *Client) GetReceipts(ctx context.Context, chainID int, page int, httpRequestOptions ...client.HTTPRequestOption) (*GetReceipts, error)

func (*Client) GetReceiptsRange

func (c *Client) GetReceiptsRange(ctx context.Context, chainID int, startBlock int, endBlock int, page int, httpRequestOptions ...client.HTTPRequestOption) (*GetReceiptsRange, error)

func (*Client) GetReceiptsResolvers

func (c *Client) GetReceiptsResolvers(ctx context.Context, chainID int, page int, httpRequestOptions ...client.HTTPRequestOption) (*GetReceiptsResolvers, error)

func (*Client) GetTransactions

func (c *Client) GetTransactions(ctx context.Context, chainID int, page int, httpRequestOptions ...client.HTTPRequestOption) (*GetTransactions, error)

func (*Client) GetTransactionsRange

func (c *Client) GetTransactionsRange(ctx context.Context, chainID int, startBlock int, endBlock int, page int, httpRequestOptions ...client.HTTPRequestOption) (*GetTransactionsRange, error)

func (*Client) GetTransactionsResolvers

func (c *Client) GetTransactionsResolvers(ctx context.Context, chainID int, page int, httpRequestOptions ...client.HTTPRequestOption) (*GetTransactionsResolvers, error)

type GetLogs

type GetLogs struct {
	Response []*struct {
		ContractAddress string   "json:\"contract_address\" graphql:\"contract_address\""
		ChainID         int      "json:\"chain_id\" graphql:\"chain_id\""
		Topics          []string "json:\"topics\" graphql:\"topics\""
		Data            string   "json:\"data\" graphql:\"data\""
		BlockNumber     int      "json:\"block_number\" graphql:\"block_number\""
		TxHash          string   "json:\"tx_hash\" graphql:\"tx_hash\""
		TxIndex         int      "json:\"tx_index\" graphql:\"tx_index\""
		BlockHash       string   "json:\"block_hash\" graphql:\"block_hash\""
		Index           int      "json:\"index\" graphql:\"index\""
		Removed         bool     "json:\"removed\" graphql:\"removed\""
	} "json:\"response\" graphql:\"response\""
}

type GetLogsRange

type GetLogsRange struct {
	Response []*struct {
		ContractAddress string   "json:\"contract_address\" graphql:\"contract_address\""
		ChainID         int      "json:\"chain_id\" graphql:\"chain_id\""
		Topics          []string "json:\"topics\" graphql:\"topics\""
		Data            string   "json:\"data\" graphql:\"data\""
		BlockNumber     int      "json:\"block_number\" graphql:\"block_number\""
		TxHash          string   "json:\"tx_hash\" graphql:\"tx_hash\""
		TxIndex         int      "json:\"tx_index\" graphql:\"tx_index\""
		BlockHash       string   "json:\"block_hash\" graphql:\"block_hash\""
		Index           int      "json:\"index\" graphql:\"index\""
		Removed         bool     "json:\"removed\" graphql:\"removed\""
	} "json:\"response\" graphql:\"response\""
}

type GetLogsResolvers

type GetLogsResolvers struct {
	Response []*struct {
		Receipt struct {
			ChainID           int    "json:\"chain_id\" graphql:\"chain_id\""
			Type              int    "json:\"type\" graphql:\"type\""
			PostState         string "json:\"post_state\" graphql:\"post_state\""
			Status            int    "json:\"status\" graphql:\"status\""
			CumulativeGasUsed int    "json:\"cumulative_gas_used\" graphql:\"cumulative_gas_used\""
			Bloom             string "json:\"bloom\" graphql:\"bloom\""
			TxHash            string "json:\"tx_hash\" graphql:\"tx_hash\""
			ContractAddress   string "json:\"contract_address\" graphql:\"contract_address\""
			GasUsed           int    "json:\"gas_used\" graphql:\"gas_used\""
			BlockNumber       int    "json:\"block_number\" graphql:\"block_number\""
			TransactionIndex  int    "json:\"transaction_index\" graphql:\"transaction_index\""
		} "json:\"receipt\" graphql:\"receipt\""
		Transaction struct {
			ChainID   int    "json:\"chain_id\" graphql:\"chain_id\""
			TxHash    string "json:\"tx_hash\" graphql:\"tx_hash\""
			Protected bool   "json:\"protected\" graphql:\"protected\""
			Type      int    "json:\"type\" graphql:\"type\""
			Data      string "json:\"data\" graphql:\"data\""
			Gas       int    "json:\"gas\" graphql:\"gas\""
			GasPrice  int    "json:\"gas_price\" graphql:\"gas_price\""
			GasTipCap string "json:\"gas_tip_cap\" graphql:\"gas_tip_cap\""
			GasFeeCap string "json:\"gas_fee_cap\" graphql:\"gas_fee_cap\""
			Value     string "json:\"value\" graphql:\"value\""
			Nonce     int    "json:\"nonce\" graphql:\"nonce\""
			To        string "json:\"to\" graphql:\"to\""
		} "json:\"transaction\" graphql:\"transaction\""
	} "json:\"response\" graphql:\"response\""
}

type GetReceipts

type GetReceipts struct {
	Response []*struct {
		ChainID           int    "json:\"chain_id\" graphql:\"chain_id\""
		Type              int    "json:\"type\" graphql:\"type\""
		PostState         string "json:\"post_state\" graphql:\"post_state\""
		Status            int    "json:\"status\" graphql:\"status\""
		CumulativeGasUsed int    "json:\"cumulative_gas_used\" graphql:\"cumulative_gas_used\""
		Bloom             string "json:\"bloom\" graphql:\"bloom\""
		TxHash            string "json:\"tx_hash\" graphql:\"tx_hash\""
		ContractAddress   string "json:\"contract_address\" graphql:\"contract_address\""
		GasUsed           int    "json:\"gas_used\" graphql:\"gas_used\""
		BlockNumber       int    "json:\"block_number\" graphql:\"block_number\""
		TransactionIndex  int    "json:\"transaction_index\" graphql:\"transaction_index\""
	} "json:\"response\" graphql:\"response\""
}

type GetReceiptsRange

type GetReceiptsRange struct {
	Response []*struct {
		ChainID           int    "json:\"chain_id\" graphql:\"chain_id\""
		Type              int    "json:\"type\" graphql:\"type\""
		PostState         string "json:\"post_state\" graphql:\"post_state\""
		Status            int    "json:\"status\" graphql:\"status\""
		CumulativeGasUsed int    "json:\"cumulative_gas_used\" graphql:\"cumulative_gas_used\""
		Bloom             string "json:\"bloom\" graphql:\"bloom\""
		TxHash            string "json:\"tx_hash\" graphql:\"tx_hash\""
		ContractAddress   string "json:\"contract_address\" graphql:\"contract_address\""
		GasUsed           int    "json:\"gas_used\" graphql:\"gas_used\""
		BlockNumber       int    "json:\"block_number\" graphql:\"block_number\""
		TransactionIndex  int    "json:\"transaction_index\" graphql:\"transaction_index\""
	} "json:\"response\" graphql:\"response\""
}

type GetReceiptsResolvers

type GetReceiptsResolvers struct {
	Response []*struct {
		Logs []*struct {
			ContractAddress string   "json:\"contract_address\" graphql:\"contract_address\""
			ChainID         int      "json:\"chain_id\" graphql:\"chain_id\""
			Topics          []string "json:\"topics\" graphql:\"topics\""
			Data            string   "json:\"data\" graphql:\"data\""
			BlockNumber     int      "json:\"block_number\" graphql:\"block_number\""
			TxHash          string   "json:\"tx_hash\" graphql:\"tx_hash\""
			TxIndex         int      "json:\"tx_index\" graphql:\"tx_index\""
			BlockHash       string   "json:\"block_hash\" graphql:\"block_hash\""
			Index           int      "json:\"index\" graphql:\"index\""
			Removed         bool     "json:\"removed\" graphql:\"removed\""
		} "json:\"logs\" graphql:\"logs\""
		Transaction struct {
			ChainID   int    "json:\"chain_id\" graphql:\"chain_id\""
			TxHash    string "json:\"tx_hash\" graphql:\"tx_hash\""
			Protected bool   "json:\"protected\" graphql:\"protected\""
			Type      int    "json:\"type\" graphql:\"type\""
			Data      string "json:\"data\" graphql:\"data\""
			Gas       int    "json:\"gas\" graphql:\"gas\""
			GasPrice  int    "json:\"gas_price\" graphql:\"gas_price\""
			GasTipCap string "json:\"gas_tip_cap\" graphql:\"gas_tip_cap\""
			GasFeeCap string "json:\"gas_fee_cap\" graphql:\"gas_fee_cap\""
			Value     string "json:\"value\" graphql:\"value\""
			Nonce     int    "json:\"nonce\" graphql:\"nonce\""
			To        string "json:\"to\" graphql:\"to\""
		} "json:\"transaction\" graphql:\"transaction\""
	} "json:\"response\" graphql:\"response\""
}

type GetTransactions

type GetTransactions struct {
	Response []*struct {
		ChainID   int    "json:\"chain_id\" graphql:\"chain_id\""
		TxHash    string "json:\"tx_hash\" graphql:\"tx_hash\""
		Protected bool   "json:\"protected\" graphql:\"protected\""
		Type      int    "json:\"type\" graphql:\"type\""
		Data      string "json:\"data\" graphql:\"data\""
		Gas       int    "json:\"gas\" graphql:\"gas\""
		GasPrice  int    "json:\"gas_price\" graphql:\"gas_price\""
		GasTipCap string "json:\"gas_tip_cap\" graphql:\"gas_tip_cap\""
		GasFeeCap string "json:\"gas_fee_cap\" graphql:\"gas_fee_cap\""
		Value     string "json:\"value\" graphql:\"value\""
		Nonce     int    "json:\"nonce\" graphql:\"nonce\""
		To        string "json:\"to\" graphql:\"to\""
	} "json:\"response\" graphql:\"response\""
}

type GetTransactionsRange

type GetTransactionsRange struct {
	Response []*struct {
		ChainID   int    "json:\"chain_id\" graphql:\"chain_id\""
		TxHash    string "json:\"tx_hash\" graphql:\"tx_hash\""
		Protected bool   "json:\"protected\" graphql:\"protected\""
		Type      int    "json:\"type\" graphql:\"type\""
		Data      string "json:\"data\" graphql:\"data\""
		Gas       int    "json:\"gas\" graphql:\"gas\""
		GasPrice  int    "json:\"gas_price\" graphql:\"gas_price\""
		GasTipCap string "json:\"gas_tip_cap\" graphql:\"gas_tip_cap\""
		GasFeeCap string "json:\"gas_fee_cap\" graphql:\"gas_fee_cap\""
		Value     string "json:\"value\" graphql:\"value\""
		Nonce     int    "json:\"nonce\" graphql:\"nonce\""
		To        string "json:\"to\" graphql:\"to\""
	} "json:\"response\" graphql:\"response\""
}

type GetTransactionsResolvers

type GetTransactionsResolvers struct {
	Response []*struct {
		Receipt struct {
			ChainID           int    "json:\"chain_id\" graphql:\"chain_id\""
			Type              int    "json:\"type\" graphql:\"type\""
			PostState         string "json:\"post_state\" graphql:\"post_state\""
			Status            int    "json:\"status\" graphql:\"status\""
			CumulativeGasUsed int    "json:\"cumulative_gas_used\" graphql:\"cumulative_gas_used\""
			Bloom             string "json:\"bloom\" graphql:\"bloom\""
			TxHash            string "json:\"tx_hash\" graphql:\"tx_hash\""
			ContractAddress   string "json:\"contract_address\" graphql:\"contract_address\""
			GasUsed           int    "json:\"gas_used\" graphql:\"gas_used\""
			BlockNumber       int    "json:\"block_number\" graphql:\"block_number\""
			TransactionIndex  int    "json:\"transaction_index\" graphql:\"transaction_index\""
		} "json:\"receipt\" graphql:\"receipt\""
		Logs []*struct {
			ContractAddress string   "json:\"contract_address\" graphql:\"contract_address\""
			ChainID         int      "json:\"chain_id\" graphql:\"chain_id\""
			Topics          []string "json:\"topics\" graphql:\"topics\""
			Data            string   "json:\"data\" graphql:\"data\""
			BlockNumber     int      "json:\"block_number\" graphql:\"block_number\""
			TxHash          string   "json:\"tx_hash\" graphql:\"tx_hash\""
			TxIndex         int      "json:\"tx_index\" graphql:\"tx_index\""
			BlockHash       string   "json:\"block_hash\" graphql:\"block_hash\""
			Index           int      "json:\"index\" graphql:\"index\""
			Removed         bool     "json:\"removed\" graphql:\"removed\""
		} "json:\"logs\" graphql:\"logs\""
	} "json:\"response\" graphql:\"response\""
}

type Query

type Query struct {
	Logs              []*model.Log         "json:\"logs\" graphql:\"logs\""
	LogsRange         []*model.Log         "json:\"logsRange\" graphql:\"logsRange\""
	Receipts          []*model.Receipt     "json:\"receipts\" graphql:\"receipts\""
	ReceiptsRange     []*model.Receipt     "json:\"receiptsRange\" graphql:\"receiptsRange\""
	Transactions      []*model.Transaction "json:\"transactions\" graphql:\"transactions\""
	TransactionsRange []*model.Transaction "json:\"transactionsRange\" graphql:\"transactionsRange\""
}

Jump to

Keyboard shortcuts

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