info

package
v0.1.0-alpha.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(paramsTools *models.ParametersTool, paramsInfo *ParametersInfo, logger log.Logger) error

Types

type Command

type Command string
const (
	CommandCommittee   Command = "committee"
	CommandValidators  Command = "validators"
	CommandAccounts    Command = "accounts"
	CommandDelegations Command = "delegations"
	CommandRewards     Command = "rewards"
)

func (Command) String

func (c Command) String() string

type Manager

type Manager struct {
	log.Logger
	// contains filtered or unexported fields
}

func NewManager

func NewManager(logger log.Logger, accWallet *walletmanager.Manager) *Manager

func (*Manager) AccountsInfo

func (m *Manager) AccountsInfo() error

func (*Manager) CommitteeInfo

func (m *Manager) CommitteeInfo(ctx context.Context) error

func (*Manager) DelegatorsInfo

func (m *Manager) DelegatorsInfo() error

func (*Manager) RewardsInfo

func (m *Manager) RewardsInfo(ctx context.Context, params *ParametersInfo) error

func (*Manager) ValidatorsInfo

func (m *Manager) ValidatorsInfo(ctx context.Context) error

type ParametersInfo

type ParametersInfo struct {
	Alias string `default:"" usage:"Alias for which info command should be executed."`
}

Jump to

Keyboard shortcuts

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