relayer

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrChainNotFound    = errors.New("chain not found")
	ErrEntryNotFound    = errors.New("entry not found")
	ErrAlreadySubmitted = errors.New("already transited")
)

Functions

This section is empty.

Types

type Service

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

func NewService

func NewService(cfg config.Config) *Service

func (*Service) GistRelay

func (c *Service) GistRelay(ctx context.Context, gist string, chainName string, waitTxConfirm bool) (txhash string, err error)

func (*Service) GistRelays

func (c *Service) GistRelays(ctx context.Context, gist string) ([]data.GistTransition, error)

func (*Service) StateRelay

func (c *Service) StateRelay(ctx context.Context, state string, chainName string, waitTxConfirm bool) (txhash string, err error)

func (*Service) StateRelays

func (c *Service) StateRelays(ctx context.Context, state string) ([]data.Transition, error)

Jump to

Keyboard shortcuts

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