Documentation ¶
Index ¶
- Constants
- Variables
- func CheckCreateWalletRequest(req *wallet.CreateWalletRequest) error
- func CheckDeleteWalletRequest(req *DeleteWalletRequest) error
- func CheckImportWalletRequest(req *wallet.ImportWalletRequest) error
- func CheckSignMessageRequest(req *wallet.SignMessageRequest) error
- type CheckVersionResponse
- type ClearSentTransactionRequest
- type ConsentRequest
- type ConsentToTransactionRequest
- type DeleteWalletRequest
- type GetConsentRequestRequest
- type GetServiceStateResponse
- type GetVersionResponse
- type Handler
- func (h *Handler) AnnotateKey(req *wallet.AnnotateKeyRequest) error
- func (h *Handler) CheckVersion() (*CheckVersionResponse, error)
- func (h *Handler) ClearSentTransaction(req *ClearSentTransactionRequest) error
- func (h *Handler) ConsentToTransaction(req *ConsentToTransactionRequest) error
- func (h *Handler) CreateWallet(req *wallet.CreateWalletRequest) (*wallet.CreateWalletResponse, error)
- func (h *Handler) DOMReady(ctx context.Context)
- func (h *Handler) DeleteWallet(req *DeleteWalletRequest) error
- func (h *Handler) DescribeKey(req *wallet.DescribeKeyRequest) (*wallet.DescribeKeyResponse, error)
- func (h *Handler) GenerateKey(req *wallet.GenerateKeyRequest) (*wallet.GenerateKeyResponse, error)
- func (h *Handler) GetAppConfig() (config.Config, error)
- func (h *Handler) GetConsentRequest(req *GetConsentRequestRequest) (*ConsentRequest, 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(req *InitialiseAppRequest) error
- func (h *Handler) IsAppInitialised() (bool, error)
- func (h *Handler) IsolateKey(req *wallet.IsolateKeyRequest) (*wallet.IsolateKeyResponse, error)
- func (h *Handler) ListConsentRequests() (*ListConsentRequestsResponse, error)
- func (h *Handler) ListKeys(req *wallet.ListKeysRequest) (*wallet.ListKeysResponse, error)
- func (h *Handler) ListNetworks() (*network.ListNetworksResponse, error)
- func (h *Handler) ListSentTransactions() (*ListSentTransactionsResponse, 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
- func (h *Handler) UpdateAppConfig(cfg *config.Config) error
- type ImportWalletResponse
- type InitialiseAppRequest
- type ListConsentRequestsResponse
- type ListSentTransactionsResponse
- type SearchForExistingConfigurationResponse
- type SentTransaction
- type StartServiceRequest
Constants ¶
View Source
const ( NewConsentRequestEvent = "new_consent_request" TransactionSentEvent = "transaction_sent" )
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 ( ErrConsentRequestNotFound = errors.New("consent request not found") ErrTransactionNotFound = errors.New("transaction not found") )
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 CheckDeleteWalletRequest ¶ added in v0.2.0
func CheckDeleteWalletRequest(req *DeleteWalletRequest) 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 ClearSentTransactionRequest ¶ added in v0.2.0
type ClearSentTransactionRequest struct {
TxID string `json:"txId"`
}
type ConsentRequest ¶ added in v0.2.0
type ConsentToTransactionRequest ¶ added in v0.2.0
type DeleteWalletRequest ¶ added in v0.2.0
type DeleteWalletRequest struct {
Wallet string `json:"wallet"`
}
type GetConsentRequestRequest ¶ added in v0.2.0
type GetConsentRequestRequest struct {
TxID string `json:"txId"`
}
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) ClearSentTransaction ¶ added in v0.2.0
func (h *Handler) ClearSentTransaction(req *ClearSentTransactionRequest) error
func (*Handler) ConsentToTransaction ¶ added in v0.2.0
func (h *Handler) ConsentToTransaction(req *ConsentToTransactionRequest) error
func (*Handler) CreateWallet ¶ added in v0.1.0
func (h *Handler) CreateWallet(req *wallet.CreateWalletRequest) (*wallet.CreateWalletResponse, error)
func (*Handler) DeleteWallet ¶ added in v0.2.0
func (h *Handler) DeleteWallet(req *DeleteWalletRequest) 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) GetAppConfig ¶
GetAppConfig return the application configuration.
func (*Handler) GetConsentRequest ¶ added in v0.2.0
func (h *Handler) GetConsentRequest(req *GetConsentRequestRequest) (*ConsentRequest, 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) InitialiseApp ¶
func (h *Handler) InitialiseApp(req *InitialiseAppRequest) error
func (*Handler) IsAppInitialised ¶
func (*Handler) IsolateKey ¶ added in v0.1.0
func (h *Handler) IsolateKey(req *wallet.IsolateKeyRequest) (*wallet.IsolateKeyResponse, error)
func (*Handler) ListConsentRequests ¶ added in v0.2.0
func (h *Handler) ListConsentRequests() (*ListConsentRequestsResponse, 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) ListSentTransactions ¶ added in v0.2.0
func (h *Handler) ListSentTransactions() (*ListSentTransactionsResponse, 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 InitialiseAppRequest ¶
type InitialiseAppRequest struct {
VegaHome string `json:"vegaHome"`
}
type ListConsentRequestsResponse ¶ added in v0.2.0
type ListConsentRequestsResponse struct {
Requests []*ConsentRequest `json:"requests"`
}
type ListSentTransactionsResponse ¶ added in v0.2.0
type ListSentTransactionsResponse struct {
Transactions []*SentTransaction `json:"transactions"`
}
type SentTransaction ¶ added in v0.2.0
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.