xchain

package
v1.14.0-b895c4d Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrIncorrectJobType = whoops.Errorf("incorrect job type: got %T, expected %T")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Bridge

type Bridge interface {
	Info
	Jobber
	WalletUpdater
}

type CobraTXJobAdder

type CobraTXJobAdder interface {
	Args() cobra.Command
	Flags() any
	Parse(*cobra.Command, []string) (any, error)
}

type FundCollecter added in v0.10.2

type FundCollecter interface {
	CollectJobFundEvents(ctx sdk.Context) error
}

type Info

type Info interface {
	XChainType() Type
	XChainReferenceIDs(context.Context) []ReferenceID
}

type JobConfiguration added in v1.7.1

type JobConfiguration struct {
	Definition      []byte
	Payload         []byte
	SenderAddress   sdk.AccAddress
	ContractAddress sdk.AccAddress
	RefID           ReferenceID
	Requirements    JobRequirements
}

type JobRequirements added in v1.7.1

type JobRequirements struct {
	EnforceMEVRelay bool
}

type Jobber

type Jobber interface {
	VerifyJob(ctx context.Context, definition []byte, payload []byte, refID ReferenceID) (err error)
	ExecuteJob(ctx context.Context, jcfg *JobConfiguration) (msgID uint64, err error)
}

type ReferenceID

type ReferenceID = string

type RequiredInterfaceToSupport added in v0.10.2

type RequiredInterfaceToSupport interface {
	Bridge
}

type Type

type Type = string

type WalletUpdater

type WalletUpdater interface {
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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