public interface WalletService
| Modifier and Type | Method and Description |
|---|---|
long |
getDynamicGasPrice() |
InitialFundsSettings |
getInitialFundsSettings() |
GlobalSettings |
getSettings()
Retrieves global stored settings used for all users.
|
UserSettings |
getUserSettings(String spaceId,
String currentUser,
boolean isAdministration)
Retrieves user settings including global setting, network settings and
contract detail.
|
boolean |
isEnabled() |
boolean |
isFundRequestSent(String notificationId,
String currentUser)
Get fund request status
|
boolean |
isUseDynamicGasPrice() |
void |
markFundRequestAsSent(String notificationId,
String currentUser)
Mark a fund request web notification as sent
|
void |
requestFunds(FundsRequest fundsRequest,
String currentUser)
Save funds request and send notifications
|
void |
saveInitialFundsSettings(InitialFundsSettings initialFundsSettings)
Save initial funds
|
void |
saveUserPreferences(String currentUser,
WalletSettings userPreferences)
Save user preferences of Wallet
|
void |
setConfiguredContractDetail(ContractDetail contractDetail)
Sets contract detail object in global settings
|
void |
setDynamicGasPrice(long blockchainGasPrice)
Sets gas price from blockchain network
|
void saveInitialFundsSettings(InitialFundsSettings initialFundsSettings)
initialFundsSettings - initial funds to saveInitialFundsSettings getInitialFundsSettings()
GlobalSettings getSettings()
GlobalSettings global settings of default watched
blockchain networkUserSettings getUserSettings(String spaceId, String currentUser, boolean isAdministration)
spaceId - space pretty name to include its settingscurrentUser - username to include its preferencesisAdministration - whether the settings to retrieve are for
administration or notUserSettings user settings with user and space preferences
included into itvoid saveUserPreferences(String currentUser, WalletSettings userPreferences)
currentUser - current user name to save its preferencesuserPreferences - user preferences to savevoid requestFunds(FundsRequest fundsRequest, String currentUser) throws IllegalAccessException
fundsRequest - funds request details to savecurrentUser - username of user sending requestIllegalAccessException - if request sender is not allowed to send
request to receiver walletvoid markFundRequestAsSent(String notificationId, String currentUser) throws IllegalAccessException
notificationId - web notification idcurrentUser - current username that is marking the notification as
sentIllegalAccessException - if current user is not the targetted user of
notificationboolean isFundRequestSent(String notificationId, String currentUser) throws IllegalAccessException
notificationId - web notification idcurrentUser - current usernameIllegalAccessException - if current user is not the targetted user of
notificationvoid setConfiguredContractDetail(ContractDetail contractDetail)
contractDetail - boolean isEnabled()
void setDynamicGasPrice(long blockchainGasPrice)
blockchainGasPrice - gas price in WEIlong getDynamicGasPrice()
boolean isUseDynamicGasPrice()
Copyright © 2003–2019 eXo Platform SAS. All rights reserved.