Documentation
¶
Index ¶
- Constants
- func AppendEndpoints(api *operations.MassaWalletAPI, prompterApp prompt.WalletPrompterInterface, ...)
- func CacheKey(correlationID models.CorrelationID) [32]byte
- func NewAddAsset(AssetsStore *assets.AssetsStore, massaClient network.NodeFetcherInterface) operations.AddAssetHandler
- func NewBackupAccount(prompterApp prompt.WalletPrompterInterface) operations.BackupAccountHandler
- func NewCreateAccount(prompterApp prompt.WalletPrompterInterface, ...) operations.CreateAccountHandler
- func NewDelete(prompterApp prompt.WalletPrompterInterface, ...) operations.DeleteAccountHandler
- func NewDeleteAsset(AssetsStore *assets.AssetsStore) operations.DeleteAssetHandler
- func NewGet(prompterApp prompt.WalletPrompterInterface, ...) operations.GetAccountHandler
- func NewGetAll(wallet *wallet.Wallet, massaClient network.NodeFetcherInterface) operations.AccountListHandler
- func NewGetAllAssets(wallet *wallet.Wallet, AssetsStore *assets.AssetsStore, ...) operations.GetAllAssetsHandler
- func NewImport(prompterApp prompt.WalletPrompterInterface, ...) operations.ImportAccountHandler
- func NewSign(prompterApp prompt.WalletPrompterInterface, gc gcache.Cache) operations.SignHandler
- func NewSignMessage(prompterApp prompt.WalletPrompterInterface, gc gcache.Cache) operations.SignMessageHandler
- func NewTradeRolls(prompterApp prompt.WalletPrompterInterface, ...) operations.TradeRollsHandler
- func NewTransferCoin(prompterApp prompt.WalletPrompterInterface, ...) operations.TransferCoinHandler
- func NewUpdateAccount(prompterApp prompt.WalletPrompterInterface, ...) operations.UpdateAccountHandler
- func NewWalletExportFile(wallet *wallet.Wallet) operations.ExportAccountFileHandler
- func Xor(bufferA, bufferB *memguard.LockedBuffer) (*memguard.LockedBuffer, error)
- type AssetInfoListResponse
- type KeyPair
- type PromptRequestDeleteData
- type PromptRequestSignData
- type PromptRequestSignMessageData
- type PromptRequestUpdateAccountData
Constants ¶
View Source
const (
Message = int(-1)
)
View Source
const (
RollPrice = 100
)
Variables ¶
This section is empty.
Functions ¶
func AppendEndpoints ¶
func AppendEndpoints(api *operations.MassaWalletAPI, prompterApp prompt.WalletPrompterInterface, massaClient network.NodeFetcherInterface, AssetsStore *assets.AssetsStore, 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 NewAddAsset ¶ added in v0.2.1
func NewAddAsset(AssetsStore *assets.AssetsStore, massaClient network.NodeFetcherInterface) operations.AddAssetHandler
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 NewDeleteAsset ¶ added in v0.2.1
func NewDeleteAsset(AssetsStore *assets.AssetsStore) operations.DeleteAssetHandler
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(wallet *wallet.Wallet, massaClient network.NodeFetcherInterface) operations.AccountListHandler
func NewGetAllAssets ¶ added in v0.2.1
func NewGetAllAssets(wallet *wallet.Wallet, AssetsStore *assets.AssetsStore, massaClient network.NodeFetcherInterface) operations.GetAllAssetsHandler
func NewImport ¶
func NewImport(prompterApp prompt.WalletPrompterInterface, massaClient network.NodeFetcherInterface) operations.ImportAccountHandler
func NewSign ¶
func NewSign(prompterApp prompt.WalletPrompterInterface, gc gcache.Cache) operations.SignHandler
func NewSignMessage ¶ added in v0.2.5
func NewSignMessage(prompterApp prompt.WalletPrompterInterface, gc gcache.Cache) operations.SignMessageHandler
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
func NewWalletExportFile ¶ added in v0.2.9
func NewWalletExportFile(wallet *wallet.Wallet) operations.ExportAccountFileHandler
func Xor ¶ added in v0.2.9
func Xor(bufferA, bufferB *memguard.LockedBuffer) (*memguard.LockedBuffer, error)
Types ¶
type AssetInfoListResponse ¶ added in v0.2.1
type PromptRequestDeleteData ¶
type PromptRequestSignData ¶ added in v0.2.2
type PromptRequestSignData struct { Description string Fees string OperationType int Coins string Address string Function string MaxCoins string WalletAddress string Nickname string RollCount uint64 RecipientAddress string RecipientNickname string Amount string PlainText string AllowFeeEdition bool }
type PromptRequestSignMessageData ¶ added in v0.2.5
Click to show internal directories.
Click to hide internal directories.