Documentation
¶
Index ¶
- func GenerateAccounts(wallet core.Wallet, store *inmemory.InMemStore, index int, ...) error
- func SaveHighestData(acc core.ValidatorAccount, store *inmemory.InMemStore, ...) error
- func ValidateHighestValues(accountFlagValues CreateAccountFlagValues) error
- type Account
- func (h *Account) BuildAccounts(accountFlags *CreateAccountFlagValues) error
- func (h *Account) Create(cmd *cobra.Command, args []string) error
- func (h *Account) Credentials(cmd *cobra.Command, args []string) error
- func (h *Account) DepositData(cmd *cobra.Command, _ []string) error
- func (h *Account) List(cmd *cobra.Command, _ []string) error
- func (h *Account) VoluntaryExit(cmd *cobra.Command, args []string) error
- type CreateAccountFlagValues
- type CredentialsFlagValues
- type SignRequestEncoded
- type VoluntaryExitFlagValues
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 (*Account) BuildAccounts ¶ added in v1.1.1
func (h *Account) BuildAccounts(accountFlags *CreateAccountFlagValues) error
BuildAccounts builds accounts based on account flags.
func (*Account) Credentials ¶ added in v1.3.0
Credentials creates a new wallet account(s) and prints the storage.
func (*Account) DepositData ¶
DepositData generates account deposit-data and prints it.
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