public async Task SaveAsync(IWallet wallet) { WalletEntity entity = WalletEntity.Create(wallet); await _tableStorage.InsertAsync(entity); }
public async Task <IWallet> GetWalletByPublicAddressAsync(string publicAddress) { IWallet wallet = await _tableStorage.GetDataAsync(WalletEntity.GeneratePartition(), WalletEntity.GenerateRowKey(publicAddress)); return(wallet); }
public async Task <IEnumerable <IWallet> > GetAllAsync() { return(await _tableStorage.GetDataAsync(WalletEntity.GeneratePartition())); }