Documentation ¶
Index ¶
- type MockWalletProxy
- func (m *MockWalletProxy) AddAddress(account string, addrs []address.Address) error
- func (m *MockWalletProxy) ListWalletInfo(_ context.Context) ([]*gtypes.WalletDetail, error)
- func (m *MockWalletProxy) ListWalletInfoByWallet(_ context.Context, _ string) (*gtypes.WalletDetail, error)
- func (m *MockWalletProxy) RemoveAddress(account string, addrs []address.Address) error
- func (m *MockWalletProxy) WalletHas(_ context.Context, addr address.Address, accounts []string) (bool, error)
- func (m *MockWalletProxy) WalletSign(ctx context.Context, addr address.Address, accounts []string, toSign []byte, ...) (*crypto.Signature, error)
- type WalletProxy
- func (w *WalletProxy) ListWalletInfo(context.Context) ([]*gtypes.WalletDetail, error)
- func (w *WalletProxy) ListWalletInfoByWallet(context.Context, string) (*gtypes.WalletDetail, error)
- func (w *WalletProxy) WalletHas(ctx context.Context, addr address.Address, accounts []string) (bool, error)
- func (w *WalletProxy) WalletSign(ctx context.Context, addr address.Address, accounts []string, toSign []byte, ...) (*crypto.Signature, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockWalletProxy ¶
type MockWalletProxy struct {
// contains filtered or unexported fields
}
func NewMockWalletProxy ¶
func NewMockWalletProxy() *MockWalletProxy
func (*MockWalletProxy) AddAddress ¶
func (m *MockWalletProxy) AddAddress(account string, addrs []address.Address) error
func (*MockWalletProxy) ListWalletInfo ¶
func (m *MockWalletProxy) ListWalletInfo(_ context.Context) ([]*gtypes.WalletDetail, error)
func (*MockWalletProxy) ListWalletInfoByWallet ¶
func (m *MockWalletProxy) ListWalletInfoByWallet(_ context.Context, _ string) (*gtypes.WalletDetail, error)
func (*MockWalletProxy) RemoveAddress ¶
func (m *MockWalletProxy) RemoveAddress(account string, addrs []address.Address) error
type WalletProxy ¶
type WalletProxy struct {
// contains filtered or unexported fields
}
func NewWalletClient ¶
func NewWalletClient(ctx context.Context, cfg *config.GatewayConfig, ) (*WalletProxy, jsonrpc.ClientCloser, error)
func (*WalletProxy) ListWalletInfo ¶
func (w *WalletProxy) ListWalletInfo(context.Context) ([]*gtypes.WalletDetail, error)
func (*WalletProxy) ListWalletInfoByWallet ¶
func (w *WalletProxy) ListWalletInfoByWallet(context.Context, string) (*gtypes.WalletDetail, error)
func (*WalletProxy) WalletSign ¶
func (w *WalletProxy) WalletSign(ctx context.Context, addr address.Address, accounts []string, toSign []byte, meta venusTypes.MsgMeta) (*crypto.Signature, error)
Click to show internal directories.
Click to hide internal directories.