xchain

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 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 Jobber

type Jobber interface {
	VerifyJob(ctx sdk.Context, definition []byte, payload []byte, refID ReferenceID) (err error)
	ExecuteJob(ctx sdk.Context, definition []byte, payload []byte, senderAddress sdk.AccAddress, contractAddress sdk.AccAddress, refID ReferenceID) (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