internal

package
v1.43.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package internal provides the RFQ client implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bridge

type Bridge struct {
	TransactionID         string `json:"transactionId"`
	OriginChain           string `json:"originChain"`
	DestChain             string `json:"destChain"`
	OriginChainID         int    `json:"originChainId"`
	DestChainID           int    `json:"destChainId"`
	OriginToken           string `json:"originToken"`
	DestToken             string `json:"destToken"`
	OriginAmountFormatted string `json:"originAmountFormatted"`
	DestAmountFormatted   string `json:"destAmountFormatted"`
	Sender                string `json:"sender"`
	SendChainGas          int    `json:"sendChainGas"`
	Request               string `json:"request"`
}

Bridge contains the bridge information.

type BridgeClaim

type BridgeClaim struct {
	BlockNumber     string `json:"blockNumber"`
	BlockTimestamp  int64  `json:"blockTimestamp"`
	TransactionHash string `json:"transactionHash"`
	To              string `json:"to"`
	Relayer         string `json:"relayer"`
	AmountFormatted string `json:"amountFormatted"`
}

BridgeClaim contains the bridge claim information.

type BridgeProof

type BridgeProof struct {
	BlockNumber     string `json:"blockNumber"`
	BlockTimestamp  int64  `json:"blockTimestamp"`
	TransactionHash string `json:"transactionHash"`
	Relayer         string `json:"relayer"`
}

BridgeProof contains the bridge proof information.

type BridgeRelay

type BridgeRelay struct {
	BlockNumber     string `json:"blockNumber"`
	BlockTimestamp  int64  `json:"blockTimestamp"`
	TransactionHash string `json:"transactionHash"`
	Relayer         string `json:"relayer"`
	To              string `json:"to"`
}

BridgeRelay contains the bridge relay information.

type BridgeRequest

type BridgeRequest struct {
	BlockNumber     string `json:"blockNumber"`
	BlockTimestamp  int64  `json:"blockTimestamp"`
	TransactionHash string `json:"transactionHash"`
}

BridgeRequest contains the bridge request information.

type GetRFQByTxIDResponse

type GetRFQByTxIDResponse struct {
	Bridge        Bridge        `json:"Bridge"`
	BridgeRequest BridgeRequest `json:"BridgeRequest"`
	BridgeRelay   BridgeRelay   `json:"BridgeRelay"`
	BridgeProof   BridgeProof   `json:"BridgeProof"`
	BridgeClaim   BridgeClaim   `json:"BridgeClaim"`
}

GetRFQByTxIDResponse is the response for GetRFQByTxID.

type RFQClient

type RFQClient interface {
	// GetRFQ gets a quote request by transaction ID.
	GetRFQ(ctx context.Context, txIdentifier string) (resp *GetRFQByTxIDResponse, status string, err error)
}

RFQClient is the interface for the RFQ client.

func NewRFQClient

func NewRFQClient(handler metrics.Handler, indexerURL string) RFQClient

NewRFQClient creates a new RFQClient.

Jump to

Keyboard shortcuts

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