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 NewAPIRegisterHub ¶
func NewAPIRegisterHub(lc fx.Lifecycle, signer types.IWalletHandler, bus EventBus.Bus, cfg *config.APIRegisterHubConfig) (*APIRegisterHub, error)
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 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
Click to show internal directories.
Click to hide internal directories.