handler

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateAccounts added in v1.0.8

func GenerateAccounts(wallet core.Wallet, store *inmemory.InMemStore, index int, accountFlags *CreateAccountFlagValues) error

GenerateAccounts generates account by index using provided account flags

func SaveHighestData added in v1.0.8

func SaveHighestData(acc core.ValidatorAccount, store *inmemory.InMemStore, accountFlags *CreateAccountFlagValues, index int) error

SaveHighestData save the highest source, target and proposal for account

func ValidateHighestValues added in v1.1.1

func ValidateHighestValues(accountFlagValues CreateAccountFlagValues) error

ValidateHighestValues Performs basic validation for account highest attestation/proposal values

Types

type Account

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

Account contains handler functions of the CLI commands related to wallet account.

func New

func New(printer printer.Printer) *Account

New is the constructor of Account handler.

func (*Account) BuildAccounts added in v1.1.1

func (h *Account) BuildAccounts(accountFlags *CreateAccountFlagValues) error

BuildAccounts builds accounts based on account flags.

func (*Account) Create

func (h *Account) Create(cmd *cobra.Command, args []string) error

Create creates a new wallet account(s) and prints the storage.

func (*Account) Credentials added in v1.3.0

func (h *Account) Credentials(cmd *cobra.Command, args []string) error

Credentials creates a new wallet account(s) and prints the storage.

func (*Account) DepositData

func (h *Account) DepositData(cmd *cobra.Command, _ []string) error

DepositData generates account deposit-data and prints it.

func (*Account) List

func (h *Account) List(cmd *cobra.Command, _ []string) error

List lists wallet accounts and prints the accounts.

func (*Account) VoluntaryExit added in v1.3.0

func (h *Account) VoluntaryExit(cmd *cobra.Command, args []string) error

VoluntaryExit creates a new wallet account(s) and prints the storage.

type CreateAccountFlagValues added in v1.0.8

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

CreateAccountFlagValues keeps all collected values for seed and seedless modes

func CollectAccountFlags added in v1.0.8

func CollectAccountFlags(cmd *cobra.Command) (*CreateAccountFlagValues, error)

CollectAccountFlags returns collected flags for seed and seedless modes

type CredentialsFlagValues added in v1.3.0

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

CredentialsFlagValues keeps all collected values for seed

func CollectCredentialsFlags added in v1.3.0

func CollectCredentialsFlags(cmd *cobra.Command) (*CredentialsFlagValues, error)

CollectCredentialsFlags returns collected flags for seed

type SignRequestEncoded added in v1.3.0

type SignRequestEncoded struct {
	PublicKey       []byte   `json:"public_key,omitempty"`
	SignatureDomain [32]byte `json:"signature_domain,omitempty"`
	Data            []byte
	ObjectType      string
}

SignRequestEncoded is the encoded sign request

type VoluntaryExitFlagValues added in v1.3.0

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

VoluntaryExitFlagValues keeps all collected values for seed

func CollectVoluntaryExitFlags added in v1.3.0

func CollectVoluntaryExitFlags(cmd *cobra.Command) (*VoluntaryExitFlagValues, error)

CollectVoluntaryExitFlags returns collected flags for seed

Jump to

Keyboard shortcuts

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