wallet_event

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: MIT, Apache-2.0, MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIRegisterHub

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

func NewAPIRegisterHub

func NewAPIRegisterHub(lc fx.Lifecycle, process ShimWallet, bus EventBus.Bus, cfg *config.APIRegisterHubConfig) (*APIRegisterHub, error)

func (*APIRegisterHub) AddNewAddress

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

func (*APIRegisterHub) RemoveAddress added in v1.2.1

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

func (*APIRegisterHub) SupportNewAccount

func (apiRegisterhub *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 IWalletEvent added in v1.4.0

type IWalletEvent = api.IWalletEvent

func NewWalletEventAPI

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

type IWalletProcess

type IWalletProcess interface {
	WalletList(ctx context.Context) ([]core.Address, error)
	WalletSign(ctx context.Context, signer core.Address, toSign []byte, meta types2.MsgMeta) (*core.Signature, error)
}

type ShimWallet added in v1.2.1

type ShimWallet interface {
	WalletList(ctx context.Context) ([]core.Address, error)
	WalletSign(ctx context.Context, signer core.Address, toSign []byte, meta types2.MsgMeta) (*core.Signature, error)
}

type WalletEvent

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

func (*WalletEvent) AddNewAddress

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

func (*WalletEvent) RemoveAddress added in v1.2.1

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

func (*WalletEvent) SupportAccount

func (e *WalletEvent) SupportAccount(ctx context.Context, supportAccount string) 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

type WalletRegisterClient

type WalletRegisterClient struct {
	ResponseWalletEvent func(ctx context.Context, resp *types.ResponseEvent) error
	ListenWalletEvent   func(ctx context.Context, policy *types.WalletRegisterPolicy) (chan *types.RequestEvent, error)
	SupportNewAccount   func(ctx context.Context, channelId types2.UUID, account string) error
	AddNewAddress       func(ctx context.Context, channelId types2.UUID, newAddrs []address.Address) error
	RemoveAddress       func(ctx context.Context, channelId types2.UUID, newAddrs []address.Address) error
}

func NewWalletRegisterClient

func NewWalletRegisterClient(ctx context.Context, url, token string) (*WalletRegisterClient, jsonrpc.ClientCloser, error)

Jump to

Keyboard shortcuts

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