Class AccountHandler
Basic account Handler class
It can load/add/remove/handle multiple account, use their actions, etc.
It can use the verification/protection of the calls with the system of the signatures of the messages
Inheritance
System.Object
AccountHandler
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: VEDriversLite.dll
Syntax
public static class AccountHandler
Methods
|
Improve this Doc
View Source
AddEmptyDogeAccount(AdminActionBase, String, Boolean)
Add empty Doge Account to the VEDLDataContext.DogeAccounts
Declaration
public static async Task<bool> AddEmptyDogeAccount(AdminActionBase baseInfo, string address, bool verifyActive = false)
Parameters
Type |
Name |
Description |
AdminActionBase |
baseInfo |
|
System.String |
address |
|
System.Boolean |
verifyActive |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Boolean> |
|
|
Improve this Doc
View Source
AddEmptyNeblioAccount(AdminActionBase, String, Boolean)
Function will add new Neblio Account to the VEDLDataContext.Accounts
Declaration
public static async Task<bool> AddEmptyNeblioAccount(AdminActionBase baseInfo, string address, bool verifyActive = false)
Parameters
Type |
Name |
Description |
AdminActionBase |
baseInfo |
|
System.String |
address |
|
System.Boolean |
verifyActive |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Boolean> |
|
|
Improve this Doc
View Source
AddReadOnlyNeblioAccount(AdminActionBase, String, Boolean)
Function will add new Neblio Account without Private Key to the VEDLDataContext.Accounts
Account can be used just for the observation.
Declaration
public static async Task<bool> AddReadOnlyNeblioAccount(AdminActionBase baseInfo, string address, bool verifyActive = false)
Parameters
Type |
Name |
Description |
AdminActionBase |
baseInfo |
|
System.String |
address |
|
System.Boolean |
verifyActive |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Boolean> |
|
|
Improve this Doc
View Source
ConnectDogeAccount(AdminActionBase, ConnectDogeAccountDto, Boolean)
Connect Doge account to the Neblio Account
Declaration
public static async Task<bool> ConnectDogeAccount(AdminActionBase baseInfo, ConnectDogeAccountDto dto, bool verifyActive = false)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Boolean> |
|
|
Improve this Doc
View Source
DisconnectDogeAccount(AdminActionBase, ConnectDogeAccountDto, Boolean)
Disconnect Doge account from Neblio account
Declaration
public static async Task<bool> DisconnectDogeAccount(AdminActionBase baseInfo, ConnectDogeAccountDto dto, bool verifyActive = false)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Boolean> |
|
|
Improve this Doc
View Source
LoadVENFTBackup(AdminActionBase, EncryptedBackupDto, Boolean)
Decrypt and oad file from VENFT app to account
If account already exists, the data is updates.
If account do not exists, it will create new one and fill with the data
All accounts are stored in VEDLDataContext static class
After upload of the data, the local backup file is created. It is ecnrypted with private key, so key.json file is still required for the restart
Declaration
public static async Task<bool> LoadVENFTBackup(AdminActionBase baseInfo, EncryptedBackupDto data, bool verifyActive = false)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Boolean> |
|
|
Improve this Doc
View Source
ReloadNFTHashes()
Reload all NFT Hashes.
NFT Hash is shorten version of the NFT hash, just to save space if you have just smaller amount of the NFTs.
Declaration
public static async Task<bool> ReloadNFTHashes()
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Boolean> |
|
|
Improve this Doc
View Source
RemoveDogeAccount(AdminActionBase, String, Boolean)
Remove Doge Account from the VEDLDataContext.DogeAccounts
Declaration
public static async Task<bool> RemoveDogeAccount(AdminActionBase baseInfo, string address, bool verifyActive = false)
Parameters
Type |
Name |
Description |
AdminActionBase |
baseInfo |
|
System.String |
address |
|
System.Boolean |
verifyActive |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Boolean> |
|
|
Improve this Doc
View Source
RemoveNeblioAccount(AdminActionBase, String, Boolean)
Remove Neblio Account from the VEDLDataContext.Accounts
Declaration
public static async Task<bool> RemoveNeblioAccount(AdminActionBase baseInfo, string address, bool verifyActive = false)
Parameters
Type |
Name |
Description |
AdminActionBase |
baseInfo |
|
System.String |
address |
|
System.Boolean |
verifyActive |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Boolean> |
|
|
Improve this Doc
View Source
VerifyAdminAction(String, String, String)
Function will check if the requested action exists and if the signature match
Declaration
public static async Task<IAdminAction> VerifyAdminAction(string admin, string signature, string message)
Parameters
Type |
Name |
Description |
System.String |
admin |
|
System.String |
signature |
|
System.String |
message |
|
Returns
Exceptions
Type |
Condition |
System.Exception |
|