Documentation
¶
Index ¶
- Constants
- Variables
- func CheckCreateWalletRequest(req *wallet.CreateWalletRequest) error
- func CheckImportWalletRequest(req *wallet.ImportWalletRequest) error
- func CheckSignMessageRequest(req *wallet.SignMessageRequest) error
- type CheckVersionResponse
- type GetServiceStateResponse
- type GetVersionResponse
- type Handler
- func (h *Handler) AnnotateKey(req *wallet.AnnotateKeyRequest) error
- func (h *Handler) CheckVersion() (*CheckVersionResponse, error)
- func (h *Handler) CreateWallet(req *wallet.CreateWalletRequest) (*wallet.CreateWalletResponse, error)
- func (h *Handler) DOMReady(ctx context.Context)
- func (h *Handler) DescribeKey(req *wallet.DescribeKeyRequest) (*wallet.DescribeKeyResponse, error)
- func (h *Handler) GenerateKey(req *wallet.GenerateKeyRequest) (*wallet.GenerateKeyResponse, error)
- func (h *Handler) GetConsoleState() GetServiceStateResponse
- func (h *Handler) GetNetworkConfig(name string) (*network.Network, error)
- func (h *Handler) GetServiceState() GetServiceStateResponse
- func (h *Handler) GetTokenDAppState() GetServiceStateResponse
- func (h *Handler) GetVersion() *GetVersionResponse
- func (h *Handler) ImportNetwork(req *network.ImportNetworkFromSourceRequest) (*network.ImportNetworkFromSourceResponse, error)
- func (h *Handler) ImportWallet(req *wallet.ImportWalletRequest) (*wallet.ImportWalletResponse, error)
- func (h *Handler) InitialiseApp(cfg *config.Config) error
- func (h *Handler) IsAppInitialised() (bool, error)
- func (h *Handler) IsolateKey(req *wallet.IsolateKeyRequest) (*wallet.IsolateKeyResponse, error)
- func (h *Handler) ListKeys(req *wallet.ListKeysRequest) (*wallet.ListKeysResponse, error)
- func (h *Handler) ListNetworks() (*network.ListNetworksResponse, error)
- func (h *Handler) ListWallets() (*wallet.ListWalletsResponse, error)
- func (h *Handler) SaveNetworkConfig(cfg *network.Network) (bool, error)
- func (h *Handler) SearchForExistingConfiguration() (*SearchForExistingConfigurationResponse, error)
- func (h *Handler) Shutdown(_ context.Context)
- func (h *Handler) SignMessage(req *wallet.SignMessageRequest) (*wallet.SignMessageResponse, error)
- func (h *Handler) StartConsole(req *StartServiceRequest) (bool, error)
- func (h *Handler) StartService(req *StartServiceRequest) (bool, error)
- func (h *Handler) StartTokenDApp(req *StartServiceRequest) (bool, error)
- func (h *Handler) Startup(ctx context.Context)
- func (h *Handler) StopConsole() (bool, error)
- func (h *Handler) StopService() (bool, error)
- func (h *Handler) StopTokenDApp() (bool, error)
- func (h *Handler) TaintKey(req *wallet.TaintKeyRequest) error
- func (h *Handler) UntaintKey(req *wallet.UntaintKeyRequest) error
- type ImportWalletResponse
- type SearchForExistingConfigurationResponse
- type StartServiceRequest
Constants ¶
View Source
const ( ReleasesAPI = "https://api.github.com/repos/vegaprotocol/vegawallet-desktop/releases" ReleasesURL = "https://github.com/vegaprotocol/vegawallet-desktop/releases" )
Variables ¶
View Source
var ( ErrServiceAlreadyRunning = errors.New("the service is already running") ErrServiceNotRunning = errors.New("the service is not running") ErrConsoleAlreadyRunning = errors.New("the console proxy is already running") ErrConsoleNotRunning = errors.New("the console proxy is not running") ErrTokenDAppAlreadyRunning = errors.New("the token dApp proxy is already running") ErrTokenDAppNotRunning = errors.New("the token dApp proxy is not running") )
View Source
var ( // Hash specifies the git commit used to build the application. // See VERSION_HASH in Makefile for details. Hash = defaultVersionHash // Version specifies the version used to build the application. // See VERSION in Makefile for details. Version = defaultVersion )
Functions ¶
func CheckCreateWalletRequest ¶ added in v0.1.0
func CheckCreateWalletRequest(req *wallet.CreateWalletRequest) error
func CheckImportWalletRequest ¶ added in v0.1.0
func CheckImportWalletRequest(req *wallet.ImportWalletRequest) error
func CheckSignMessageRequest ¶ added in v0.1.0
func CheckSignMessageRequest(req *wallet.SignMessageRequest) error
Types ¶
type CheckVersionResponse ¶ added in v0.1.0
type GetServiceStateResponse ¶ added in v0.1.0
type GetVersionResponse ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*Handler) AnnotateKey ¶ added in v0.1.0
func (h *Handler) AnnotateKey(req *wallet.AnnotateKeyRequest) error
func (*Handler) CheckVersion ¶ added in v0.1.0
func (h *Handler) CheckVersion() (*CheckVersionResponse, error)
func (*Handler) CreateWallet ¶ added in v0.1.0
func (h *Handler) CreateWallet(req *wallet.CreateWalletRequest) (*wallet.CreateWalletResponse, error)
func (*Handler) DescribeKey ¶ added in v0.1.0
func (h *Handler) DescribeKey(req *wallet.DescribeKeyRequest) (*wallet.DescribeKeyResponse, error)
func (*Handler) GenerateKey ¶ added in v0.1.0
func (h *Handler) GenerateKey(req *wallet.GenerateKeyRequest) (*wallet.GenerateKeyResponse, error)
func (*Handler) GetConsoleState ¶ added in v0.1.0
func (h *Handler) GetConsoleState() GetServiceStateResponse
func (*Handler) GetNetworkConfig ¶ added in v0.1.0
func (*Handler) GetServiceState ¶ added in v0.1.0
func (h *Handler) GetServiceState() GetServiceStateResponse
func (*Handler) GetTokenDAppState ¶ added in v0.1.0
func (h *Handler) GetTokenDAppState() GetServiceStateResponse
func (*Handler) GetVersion ¶
func (h *Handler) GetVersion() *GetVersionResponse
func (*Handler) ImportNetwork ¶ added in v0.1.0
func (h *Handler) ImportNetwork(req *network.ImportNetworkFromSourceRequest) (*network.ImportNetworkFromSourceResponse, error)
func (*Handler) ImportWallet ¶ added in v0.1.0
func (h *Handler) ImportWallet(req *wallet.ImportWalletRequest) (*wallet.ImportWalletResponse, error)
func (*Handler) IsAppInitialised ¶
func (*Handler) IsolateKey ¶ added in v0.1.0
func (h *Handler) IsolateKey(req *wallet.IsolateKeyRequest) (*wallet.IsolateKeyResponse, error)
func (*Handler) ListKeys ¶ added in v0.1.0
func (h *Handler) ListKeys(req *wallet.ListKeysRequest) (*wallet.ListKeysResponse, error)
func (*Handler) ListNetworks ¶ added in v0.1.0
func (h *Handler) ListNetworks() (*network.ListNetworksResponse, error)
func (*Handler) ListWallets ¶ added in v0.1.0
func (h *Handler) ListWallets() (*wallet.ListWalletsResponse, error)
func (*Handler) SaveNetworkConfig ¶ added in v0.1.0
func (*Handler) SearchForExistingConfiguration ¶
func (h *Handler) SearchForExistingConfiguration() (*SearchForExistingConfigurationResponse, error)
SearchForExistingConfiguration searches for existing wallets and networks. This endpoint should be used to help the user to restore existing wallet setup in the app.
func (*Handler) SignMessage ¶ added in v0.1.0
func (h *Handler) SignMessage(req *wallet.SignMessageRequest) (*wallet.SignMessageResponse, error)
func (*Handler) StartConsole ¶ added in v0.1.0
func (h *Handler) StartConsole(req *StartServiceRequest) (bool, error)
func (*Handler) StartService ¶
func (h *Handler) StartService(req *StartServiceRequest) (bool, error)
func (*Handler) StartTokenDApp ¶ added in v0.1.0
func (h *Handler) StartTokenDApp(req *StartServiceRequest) (bool, error)
func (*Handler) StopConsole ¶ added in v0.1.0
func (*Handler) StopService ¶
func (*Handler) StopTokenDApp ¶ added in v0.1.0
func (*Handler) TaintKey ¶ added in v0.1.0
func (h *Handler) TaintKey(req *wallet.TaintKeyRequest) error
func (*Handler) UntaintKey ¶ added in v0.1.0
func (h *Handler) UntaintKey(req *wallet.UntaintKeyRequest) error
type ImportWalletResponse ¶ added in v0.1.0
type ImportWalletResponse struct {
WalletPath string
}
type StartServiceRequest ¶
type StartServiceRequest struct {
Network string `json:"network"`
}
func (StartServiceRequest) Check ¶
func (r StartServiceRequest) Check() error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.