client

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const GetDestinationInfoDocument = `` /* 282-byte string literal not displayed */
View Source
const GetMessageStatusDocument = `` /* 274-byte string literal not displayed */
View Source
const GetMessagesByStatusDocument = `` /* 219-byte string literal not displayed */
View Source
const GetOriginInfoDocument = `` /* 432-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) GetDestinationInfo

func (c *Client) GetDestinationInfo(ctx context.Context, messageHash *string, chainID *int, txHash *string, httpRequestOptions ...client.HTTPRequestOption) (*GetDestinationInfo, error)

func (*Client) GetMessageStatus

func (c *Client) GetMessageStatus(ctx context.Context, messageHash *string, originChainID *int, originTxHash *string, httpRequestOptions ...client.HTTPRequestOption) (*GetMessageStatus, error)

func (*Client) GetMessagesByStatus added in v0.0.5

func (c *Client) GetMessagesByStatus(ctx context.Context, messageStatus model.MessageState, page int, httpRequestOptions ...client.HTTPRequestOption) (*GetMessagesByStatus, error)

func (*Client) GetOriginInfo

func (c *Client) GetOriginInfo(ctx context.Context, messageHash *string, chainID *int, txHash *string, httpRequestOptions ...client.HTTPRequestOption) (*GetOriginInfo, error)

type GetDestinationInfo

type GetDestinationInfo struct {
	Response []*struct {
		ContractAddress *string "json:\"contractAddress\" graphql:\"contractAddress\""
		BlockNumber     *int    "json:\"blockNumber\" graphql:\"blockNumber\""
		TxHash          *string "json:\"txHash\" graphql:\"txHash\""
		TxIndex         *int    "json:\"txIndex\" graphql:\"txIndex\""
		MessageHash     *string "json:\"messageHash\" graphql:\"messageHash\""
		ChainID         *int    "json:\"chainID\" graphql:\"chainID\""
		RemoteDomain    *int    "json:\"remoteDomain\" graphql:\"remoteDomain\""
		Success         *bool   "json:\"success\" graphql:\"success\""
	} "json:\"response\" graphql:\"response\""
}

type GetMessageStatus

type GetMessageStatus struct {
	Response *struct {
		LastSeen          *model.MessageStateLastSeen "json:\"lastSeen\" graphql:\"lastSeen\""
		OriginTxHash      *string                     "json:\"originTxHash\" graphql:\"originTxHash\""
		DestinationTxHash *string                     "json:\"destinationTxHash\" graphql:\"destinationTxHash\""
		MessageHash       *string                     "json:\"messageHash\" graphql:\"messageHash\""
	} "json:\"response\" graphql:\"response\""
}

type GetMessagesByStatus added in v0.0.5

type GetMessagesByStatus struct {
	Response []*struct {
		LastSeen          *model.MessageStateLastSeen "json:\"lastSeen\" graphql:\"lastSeen\""
		OriginTxHash      *string                     "json:\"originTxHash\" graphql:\"originTxHash\""
		DestinationTxHash *string                     "json:\"destinationTxHash\" graphql:\"destinationTxHash\""
		MessageHash       *string                     "json:\"messageHash\" graphql:\"messageHash\""
	} "json:\"response\" graphql:\"response\""
}

type GetOriginInfo

type GetOriginInfo struct {
	Response []*struct {
		MessageHash        *string "json:\"messageHash\" graphql:\"messageHash\""
		ContractAddress    *string "json:\"contractAddress\" graphql:\"contractAddress\""
		BlockNumber        *int    "json:\"blockNumber\" graphql:\"blockNumber\""
		OriginTxHash       *string "json:\"originTxHash\" graphql:\"originTxHash\""
		Sender             *string "json:\"sender\" graphql:\"sender\""
		Recipient          *string "json:\"recipient\" graphql:\"recipient\""
		OriginChainID      *int    "json:\"originChainID\" graphql:\"originChainID\""
		DestinationChainID *int    "json:\"destinationChainID\" graphql:\"destinationChainID\""
		Nonce              *int    "json:\"nonce\" graphql:\"nonce\""
		Message            *string "json:\"message\" graphql:\"message\""
		OptimisticSeconds  *int    "json:\"optimisticSeconds\" graphql:\"optimisticSeconds\""
		MessageFlag        *int    "json:\"messageFlag\" graphql:\"messageFlag\""
		SummitTip          *string "json:\"summitTip\" graphql:\"summitTip\""
		AttestationTip     *string "json:\"attestationTip\" graphql:\"attestationTip\""
		ExecutionTip       *string "json:\"executionTip\" graphql:\"executionTip\""
		DeliveryTip        *string "json:\"deliveryTip\" graphql:\"deliveryTip\""
		Version            *int    "json:\"version\" graphql:\"version\""
		GasLimit           *int    "json:\"gasLimit\" graphql:\"gasLimit\""
		GasDrop            *string "json:\"gasDrop\" graphql:\"gasDrop\""
	} "json:\"response\" graphql:\"response\""
}

type Query

type Query struct {
	GetMessageStatus    *model.MessageStatus     "json:\"getMessageStatus\" graphql:\"getMessageStatus\""
	GetMessagesByStatus []*model.MessageStatus   "json:\"getMessagesByStatus\" graphql:\"getMessagesByStatus\""
	GetOriginInfo       []*model.OriginInfo      "json:\"getOriginInfo\" graphql:\"getOriginInfo\""
	GetDestinationInfo  []*model.DestinationInfo "json:\"getDestinationInfo\" graphql:\"getDestinationInfo\""
}

Jump to

Keyboard shortcuts

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