wallet

package
v0.0.0-...-92c45cb Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2025 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateWalletUseCase

type CreateWalletUseCase interface {
	Execute(ctx context.Context, address *common.Address, keystoreBytes []byte, label string) error
}

func NewCreateWalletUseCase

func NewCreateWalletUseCase(config *config.Configuration, logger *slog.Logger, repo domain.WalletRepository) CreateWalletUseCase

type GetWalletUseCase

type GetWalletUseCase interface {
	Execute(ctx context.Context, address *common.Address) (*domain.Wallet, error)
}

func NewGetWalletUseCase

func NewGetWalletUseCase(config *config.Configuration, logger *slog.Logger, repo domain.WalletRepository) GetWalletUseCase

type ListAllAddressesWalletUseCase

type ListAllAddressesWalletUseCase interface {
	Execute(ctx context.Context) ([]*common.Address, error)
}

func NewListAllAddressesWalletUseCase

func NewListAllAddressesWalletUseCase(logger *slog.Logger, repo domain.WalletRepository) ListAllAddressesWalletUseCase

type ListAllWalletUseCase

type ListAllWalletUseCase interface {
	Execute(ctx context.Context) ([]*domain.Wallet, error)
}

func NewListAllWalletUseCase

func NewListAllWalletUseCase(config *config.Configuration, logger *slog.Logger, repo domain.WalletRepository) ListAllWalletUseCase

type WalletDecryptKeyUseCase

type WalletDecryptKeyUseCase interface {
	Execute(ctx context.Context, mnemonic *sstring.SecureString, path string) (*accounts.Account, *hdwallet.Wallet, error)
}

func NewWalletDecryptKeyUseCase

func NewWalletDecryptKeyUseCase(
	config *config.Configuration,
	logger *slog.Logger,
	keystore hdkeystore.KeystoreAdapter,
	repo domain.WalletRepository,
) WalletDecryptKeyUseCase

type WalletEncryptKeyUseCase

type WalletEncryptKeyUseCase interface {
	Execute(ctx context.Context, mnemonic *sstring.SecureString, path string) (*accounts.Account, *hdwallet.Wallet, error)
}

func NewWalletEncryptKeyUseCase

func NewWalletEncryptKeyUseCase(
	config *config.Configuration,
	logger *slog.Logger,
	keystore hdkeystore.KeystoreAdapter,
	repo domain.WalletRepository,
) WalletEncryptKeyUseCase

Jump to

Keyboard shortcuts

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