wallet

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendEndpoints

func AppendEndpoints(api *operations.MassaWalletAPI, prompterApp prompt.WalletPrompterInterface, massaClient network.NodeFetcherInterface, gc gcache.Cache)

AppendEndpoints appends wallet endpoints to the API Note: the password prompter is mandatory for sign endpoint

func CacheKey

func CacheKey(correlationId models.CorrelationID) [32]byte

func HandleExportFile

func HandleExportFile(params operations.ExportAccountFileParams) middleware.Responder

HandleExportFile handles a export file request It will serve the yaml file so that the client can download it.

func NewGet

NewGet instantiates a Get Handler The "classical" way is not possible because we need to pass to the handler a wallet.WalletPrompterInterface.

func NewSign

NewSign instantiates a sign Handler The "classical" way is not possible because we need to pass to the handler a password.PasswordAsker.

Types

type PromptRequestDeleteData

type PromptRequestDeleteData struct {
	Nickname string
	Balance  string
}

type PromptRequestTransferData

type PromptRequestTransferData struct {
	NicknameFrom     string
	Amount           string
	Fee              string
	RecipientAddress string
}

type PromptRequestUpdateAccountData

type PromptRequestUpdateAccountData struct {
	Nickname string
	Balance  string
}

Jump to

Keyboard shortcuts

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