common

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2021 License: LGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Logger instance for quick declarative logging levels
	Logger    = logging.MustGetLogger("replayer")
	SdkLogger = &sdkLogger{}
)

Functions

func InitLogger

func InitLogger(config *config.LogConfig)

InitLogger initialises the logger.

Types

type Codec

type Codec = amino.Codec
var Cdc *Codec

type ConsensusState

type ConsensusState struct {
	ChainID             string
	Height              uint64
	AppHash             []byte
	CurValidatorSetHash []byte
	NextValidatorSet    *tmtypes.ValidatorSet
}

func (ConsensusState) EncodeConsensusState

func (cs ConsensusState) EncodeConsensusState() ([]byte, error)

output: | chainID | height | appHash | curValidatorSetHash | [{validator pubkey, voting power}] | | 32 bytes | 8 bytes | 32 bytes | 32 bytes | [{32 bytes, 8 bytes}] |

type CrossChainChannelID

type CrossChainChannelID int8

type CrossChainID

type CrossChainID uint16
type Header struct {
	tmtypes.SignedHeader
	ValidatorSet     *tmtypes.ValidatorSet `json:"validator_set"`
	NextValidatorSet *tmtypes.ValidatorSet `json:"next_validator_set"`
}

func (*Header) EncodeHeader

func (h *Header) EncodeHeader() ([]byte, error)

func (*Header) Validate

func (h *Header) Validate(chainID string) error

type Task

type Task struct {
	ChannelID CrossChainChannelID
	Sequence  uint64
}

type TaskSet

type TaskSet struct {
	Height   uint64
	TaskList []Task
}

Jump to

Keyboard shortcuts

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