migration

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMigrationCmd

func NewMigrationCmd() *cobra.Command

Types

type MigrationState

type MigrationState struct {
	Info        types.MigrationState `json:"state"`
	GenesisFile string               `json:"genesis_file"`
	Snapshot    string               `json:"snapshot"`
}

func (*MigrationState) MarshalJSON

func (m *MigrationState) MarshalJSON() ([]byte, error)

func (*MigrationState) MarshalText

func (m *MigrationState) MarshalText() ([]byte, error)

type MigrationStatus

type MigrationStatus struct {
	ProposalID *types.UUID
	ExpiresAt  int64    `json:"expires_at"` // ExpiresAt is the block height at which the migration proposal expires
	Board      [][]byte `json:"board"`      // Board is the list of validators who are eligible to vote on the migration proposal
	Approved   []bool   `json:"approved"`   // Approved is the list of bools indicating if the corresponding validator approved the migration proposal
}

func (*MigrationStatus) MarshalJSON

func (m *MigrationStatus) MarshalJSON() ([]byte, error)

func (*MigrationStatus) MarshalText

func (m *MigrationStatus) MarshalText() ([]byte, error)

type MigrationsList

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

func (*MigrationsList) MarshalJSON

func (m *MigrationsList) MarshalJSON() ([]byte, error)

func (*MigrationsList) MarshalText

func (m *MigrationsList) MarshalText() ([]byte, error)

Jump to

Keyboard shortcuts

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