deposit

package
v0.1.1-experimental.2 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidPubKeyLength is returned when the public key is invalid.
	ErrInvalidPubKeyLength = errors.New(
		"invalid public key length",
	)

	// ErrInvalidWithdrawalCredentialsLength is returned when the withdrawal
	// credentials are invalid.
	ErrInvalidWithdrawalCredentialsLength = errors.New(
		"invalid withdrawal credentials length",
	)

	// ErrInvalidAmount is returned when the deposit amount is invalid.
	ErrInvalidAmount = errors.New(
		"invalid amount",
	)

	// ErrInvalidSignatureLength is returned when the signature is invalid.
	ErrInvalidSignatureLength = errors.New(
		"invalid signature length",
	)

	// ErrInvalidVersionLength is returned when the deposit version is invalid.
	ErrInvalidVersionLength = errors.New(
		"invalid version",
	)

	// ErrInvalidRootLength is returned when the deposit root is invalid.
	ErrInvalidRootLength = errors.New(
		"invalid root length",
	)
)

Functions

func Commands

func Commands() *cobra.Command

Commands creates a new command for deposit related actions.

func ConvertAmount

func ConvertAmount(amount string) (primitives.Gwei, error)

ConvertAmount converts a string to a deposit amount.

func ConvertGenesisValidatorRoot

func ConvertGenesisValidatorRoot(root string) (primitives.Root, error)

func ConvertPubkey

func ConvertPubkey(pubkey string) (primitives.BLSPubkey, error)

ConvertPubkey converts a string to a public key.

func ConvertSignature

func ConvertSignature(signature string) (primitives.BLSSignature, error)

ConvertSignature converts a string to a signature.

func ConvertVersion

func ConvertVersion(version string) (primitives.Version, error)

func ConvertWithdrawalCredentials

func ConvertWithdrawalCredentials(credentials string) (
	types.WithdrawalCredentials,
	error,
)

ConvertWithdrawalCredentials converts a string to a withdrawal credentials.

func NewValidateDeposit

func NewValidateDeposit() *cobra.Command

NewValidateDeposit creates a new command for validating a deposit message.

Types

This section is empty.

Jump to

Keyboard shortcuts

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