across

package
v1.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ZERO_HASH           = "0000000000000000000000000000000000000000000000000000000000000000"
	TRANSACTION_TIMEOUT = 30 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AcrossDepositFetcher

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

func NewAcrossDepositFetcher

func NewAcrossDepositFetcher(
	chainID uint64,
	tokenStore config.TokenStore,
	client EventFilterer,
	tokenMatcher TokenMatcher,
) *AcrossDepositFetcher

func (*AcrossDepositFetcher) Deposit

func (h *AcrossDepositFetcher) Deposit(ctx context.Context, hash common.Hash, depositID *big.Int) (*events.AcrossDeposit, error)

type EventFilterer

type EventFilterer interface {
	FilterLogs(ctx context.Context, q ethereum.FilterQuery) ([]types.Log, error)
	LatestBlock() (*big.Int, error)
	TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)
}

type TokenMatcher

type TokenMatcher interface {
	DestinationToken(destinationChainId *big.Int, symbol string) (common.Address, error)
}

Jump to

Keyboard shortcuts

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