wallet

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddKeyCmd

func AddKeyCmd(config *types.WalletConfig) *cobra.Command

func CollectDustCmd

func CollectDustCmd(config *types.WalletConfig) *cobra.Command

func CreateCmd

func CreateCmd(config *types.WalletConfig) *cobra.Command

func ExecAddKeyCmd

func ExecAddKeyCmd(cmd *cobra.Command, config *types.WalletConfig) error

func ExecCollectDust

func ExecCollectDust(cmd *cobra.Command, config *types.WalletConfig) error

func ExecCreateCmd

func ExecCreateCmd(cmd *cobra.Command, config *types.WalletConfig) (err error)

func ExecGetBalanceCmd

func ExecGetBalanceCmd(cmd *cobra.Command, config *types.WalletConfig) error

func ExecGetPubKeysCmd

func ExecGetPubKeysCmd(cmd *cobra.Command, config *types.WalletConfig) error

func ExecSendCmd

func ExecSendCmd(ctx context.Context, cmd *cobra.Command, config *types.WalletConfig) error

func GetBalanceCmd

func GetBalanceCmd(config *types.WalletConfig) *cobra.Command

func GetPubKeysCmd

func GetPubKeysCmd(config *types.WalletConfig) *cobra.Command

func GroupPubKeysAndAmounts

func GroupPubKeysAndAmounts(pubKeys []string, amounts []string) ([]money.ReceiverData, error)

func InitWalletConfig

func InitWalletConfig(cmd *cobra.Command, config *types.WalletConfig) error

func NewWalletCmd

func NewWalletCmd(baseConfig *types.BaseConfiguration, obsF Factory) *cobra.Command

NewWalletCmd creates a new cobra command for the wallet component.

func SendCmd

func SendCmd(config *types.WalletConfig) *cobra.Command

Types

type Factory

type Factory interface {
	Logger(cfg *logger.LogConfiguration) (*slog.Logger, error)
	Observability(metrics, traces string) (observability.MeterAndTracer, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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