chainwatch

package
v0.0.0-...-7c4983b Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chain

type Chain struct {
	Name                string
	AddressPrefix       string
	HasFaucet           bool
	SkipChannelCreation bool
	HDPath              string

	RelayerConfiguration operator.RelayerConfiguration
}

func (Chain) Validate

func (cc Chain) Validate() error

type ChainStatus

type ChainStatus uint

func (ChainStatus) MarshalBinary

func (cs ChainStatus) MarshalBinary() (data []byte, err error)

func (ChainStatus) String

func (i ChainStatus) String() string

func (*ChainStatus) UnmarshalBinary

func (cs *ChainStatus) UnmarshalBinary(data []byte) error

type Connection

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

func NewConnection

func NewConnection(host string) (*Connection, error)

func (*Connection) AddChain

func (c *Connection) AddChain(cc Chain) error

func (*Connection) ChainStatus

func (c *Connection) ChainStatus(chainName string) (ChainStatus, bool, error)

func (*Connection) Chains

func (c *Connection) Chains() ([]Chain, error)

func (*Connection) DeleteChainStatus

func (c *Connection) DeleteChainStatus(chainName string) error

func (*Connection) HasChain

func (c *Connection) HasChain(name string) (bool, error)

func (*Connection) HasChainStatus

func (c *Connection) HasChainStatus(chainName string) (bool, error)

func (*Connection) RemoveChain

func (c *Connection) RemoveChain(cc Chain) error

func (*Connection) SetChainStatus

func (c *Connection) SetChainStatus(chainName string, status ChainStatus) error

type Instance

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

func New

func New(
	l *zap.SugaredLogger,
	k kube.Client,
	defaultNamespace string,
	c *Connection,
	db *database.Instance,
	relayerDebug bool,
) *Instance

func (*Instance) Run

func (i *Instance) Run()

Jump to

Keyboard shortcuts

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