lifi

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2026 License: LGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TRANSACTION_TIMEOUT = 30 * time.Second
	OpenEventTopic      = "0x9ff74bd56d00785b881ef9fa3f03d7b598686a39a9bcff89a6008db588b18a7b"
)
View Source
const (
	LIFI_URL = "https://order.li.fi"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LifiAPI

type LifiAPI struct {
	HTTPClient *http.Client
}

func NewLifiAPI

func NewLifiAPI() *LifiAPI

func (*LifiAPI) GetOrder

func (a *LifiAPI) GetOrder(orderID string) (*lifi.LifiOrder, error)

GetOrder fetches order from the LiFi API by its on-chain orderID

type LifiEventFetcher added in v1.0.0

type LifiEventFetcher struct {
	// contains filtered or unexported fields
}

func NewLifiEventFetcher added in v1.0.0

func NewLifiEventFetcher(
	client ReceiptFetcher,
	inputSettler common.Address,
) *LifiEventFetcher

func (*LifiEventFetcher) Order added in v1.0.0

func (h *LifiEventFetcher) Order(ctx context.Context, hash common.Hash, orderID common.Hash) (*lifi.LifiOrder, error)

type ReceiptFetcher added in v1.0.0

type ReceiptFetcher interface {
	TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)
}

type Response

type Response struct {
	Data []lifi.LifiOrder `json:"data"`
}

Directories

Path Synopsis
Package mock_lifi is a generated GoMock package.
Package mock_lifi is a generated GoMock package.

Jump to

Keyboard shortcuts

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