vald

package
v0.35.6 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 54 Imported by: 0

Documentation

Index

Constants

View Source
const RW = 0600

RW grants -rw------- file permissions

View Source
const RWX = 0700

RWX grants -rwx------ file permissions

Variables

This section is empty.

Functions

func GetHealthCheckCommand

func GetHealthCheckCommand() *cobra.Command

GetHealthCheckCommand returns the command to execute a node health check

func GetSignCommand added in v0.34.0

func GetSignCommand() *cobra.Command

GetSignCommand returns the command to execute a manual sign request from vald

func GetValdCommand

func GetValdCommand() *cobra.Command

GetValdCommand returns the command to start vald

Types

type RWFile

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

RWFile implements the ReadWriter interface for an underlying file

func NewRWFile

func NewRWFile(path string) RWFile

NewRWFile returns a new RWFile instance for the given file path

func (RWFile) ReadAll

func (f RWFile) ReadAll() ([]byte, error)

ReadAll returns the full content of the file

func (RWFile) WriteAll

func (f RWFile) WriteAll(bz []byte) error

WriteAll writes the given bytes to a file. Creates a new fille if it does not exist, overwrites the previous content otherwise.

type ReadWriter

type ReadWriter interface {
	WriteAll([]byte) error
	ReadAll() ([]byte, error)
}

ReadWriter represents a data source/sink

type StateStore

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

StateStore manages event state persistence

func NewStateStore

func NewStateStore(rw ReadWriter) StateStore

NewStateStore returns a new StateStore instance

func (StateStore) GetState

func (s StateStore) GetState() (completed int64, err error)

GetState returns the stored block height for which all events have been published

func (StateStore) SetState

func (s StateStore) SetState(completed int64) error

SetState persists the block height for which all events have been published

Directories

Path Synopsis
evm
rpc
tss
rpc

Jump to

Keyboard shortcuts

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