types

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Target

type Target interface {
	// ChainID returns the chain ID of the target contract.
	ChainID() uint64

	// Address returns the address of the target contract.
	Address() common.Address

	// IsAllowedCall returns true if the call is allowed.
	IsAllowedCall(call bindings.SolveCall) bool

	// TokenPrereqs returns the token prerequisites required for the call.
	TokenPrereqs(call bindings.SolveCall) ([]bindings.SolveTokenPrereq, error)

	// Verify returns an error if the call should not be fulfilled.
	Verify(srcChainID uint64, call bindings.SolveCall, deposits []bindings.SolveDeposit) error
}

Target is the interface for a target contract the solver can interact with.

type Targets

type Targets []Target

func (Targets) ForCall

func (t Targets) ForCall(call bindings.SolveCall) (Target, error)

Jump to

Keyboard shortcuts

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