wallet_event

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT, Apache-2.0, MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWalletEventAPI

func NewWalletEventAPI(fsr filemgr.Repo, cfg *config.APIRegisterHubConfig, apiRegisterHub IAPIRegisterHub) wallet.IWalletEvent

Types

type APIRegisterHub

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

func (*APIRegisterHub) AddNewAddress

func (h *APIRegisterHub) AddNewAddress(ctx context.Context, newAddrs []address.Address) error

func (*APIRegisterHub) RemoveAddress added in v1.2.1

func (h *APIRegisterHub) RemoveAddress(ctx context.Context, newAddrs []address.Address) error

func (*APIRegisterHub) SupportNewAccount

func (h *APIRegisterHub) SupportNewAccount(ctx context.Context, supportAccount string) error

type IAPIRegisterHub

type IAPIRegisterHub interface {
	SupportNewAccount(ctx context.Context, account string) error
	AddNewAddress(ctx context.Context, newAddrs []address.Address) error
	RemoveAddress(ctx context.Context, newAddrs []address.Address) error
}

type WalletEventAPI

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

func (*WalletEventAPI) AddNewAddress

func (walletEventAPI *WalletEventAPI) AddNewAddress(ctx context.Context, newAddrs []address.Address) error

func (*WalletEventAPI) AddSupportAccount

func (walletEventAPI *WalletEventAPI) AddSupportAccount(ctx context.Context, supportAccount string) error

Jump to

Keyboard shortcuts

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