xchain

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 3 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(sdk.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 sdk.Context, definition []byte, payload []byte, refID ReferenceID) (err error)
	ExecuteJob(ctx sdk.Context, jcfg *JobConfiguration) (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