Documentation
¶
Index ¶
- func AppendEndpoints(api *operations.MassaWalletAPI, prompterApp prompt.WalletPrompterInterface, ...)
- func CacheKey(correlationId models.CorrelationID) [32]byte
- func HandleExportFile(params operations.ExportAccountFileParams) middleware.Responder
- func NewBackupAccount(prompterApp prompt.WalletPrompterInterface) operations.BackupAccountHandler
- func NewCreateAccount(prompterApp prompt.WalletPrompterInterface, ...) operations.CreateAccountHandler
- func NewDelete(prompterApp prompt.WalletPrompterInterface, ...) operations.DeleteAccountHandler
- func NewGet(prompterApp prompt.WalletPrompterInterface, ...) operations.GetAccountHandler
- func NewGetAll(massaClient network.NodeFetcherInterface) operations.AccountListHandler
- func NewImport(prompterApp prompt.WalletPrompterInterface, ...) operations.ImportAccountHandler
- func NewSign(prompterApp prompt.WalletPrompterInterface, gc gcache.Cache) operations.SignHandler
- func NewTradeRolls(prompterApp prompt.WalletPrompterInterface, ...) operations.TradeRollsHandler
- func NewTransferCoin(prompterApp prompt.WalletPrompterInterface, ...) operations.TransferCoinHandler
- func NewUpdateAccount(prompterApp prompt.WalletPrompterInterface, ...) operations.UpdateAccountHandler
- type PromptRequestDeleteData
- type PromptRequestTransferData
- type PromptRequestUpdateAccountData
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 NewBackupAccount ¶
func NewBackupAccount(prompterApp prompt.WalletPrompterInterface) operations.BackupAccountHandler
func NewCreateAccount ¶
func NewCreateAccount(prompterApp prompt.WalletPrompterInterface, massaClient network.NodeFetcherInterface) operations.CreateAccountHandler
func NewDelete ¶
func NewDelete(prompterApp prompt.WalletPrompterInterface, massaClient network.NodeFetcherInterface) operations.DeleteAccountHandler
func NewGet ¶
func NewGet(prompterApp prompt.WalletPrompterInterface, massaClient network.NodeFetcherInterface) operations.GetAccountHandler
NewGet instantiates a Get Handler The "classical" way is not possible because we need to pass to the handler a wallet.WalletPrompterInterface.
func NewGetAll ¶
func NewGetAll(massaClient network.NodeFetcherInterface) operations.AccountListHandler
func NewImport ¶
func NewImport(prompterApp prompt.WalletPrompterInterface, massaClient network.NodeFetcherInterface) operations.ImportAccountHandler
func NewSign ¶
func NewSign(prompterApp prompt.WalletPrompterInterface, gc gcache.Cache) operations.SignHandler
NewSign instantiates a sign Handler The "classical" way is not possible because we need to pass to the handler a password.PasswordAsker.
func NewTradeRolls ¶
func NewTradeRolls(prompterApp prompt.WalletPrompterInterface, massaClient network.NodeFetcherInterface) operations.TradeRollsHandler
func NewTransferCoin ¶
func NewTransferCoin(prompterApp prompt.WalletPrompterInterface, massaClient network.NodeFetcherInterface) operations.TransferCoinHandler
func NewUpdateAccount ¶
func NewUpdateAccount(prompterApp prompt.WalletPrompterInterface, massaClient network.NodeFetcherInterface) operations.UpdateAccountHandler
Types ¶
type PromptRequestDeleteData ¶
Click to show internal directories.
Click to hide internal directories.