23 lines
767 B
C#
23 lines
767 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using WpfApp1TRC20.Data;
|
|
|
|
namespace WpfApp1TRC20.Services
|
|
{
|
|
public interface IDataService
|
|
{
|
|
Task<List<TokenInfo>> GetTokensAsync();
|
|
Task<List<WalletAccount>> GetWalletsAsync();
|
|
Task<List<TransactionRecord>> GetTransactionsAsync();
|
|
Task<TokenInfo> SaveTokenAsync(TokenInfo token);
|
|
Task<WalletAccount> SaveWalletAsync(WalletAccount wallet);
|
|
Task<TransactionRecord> SaveTransactionAsync(TransactionRecord transaction);
|
|
Task DeleteTokenAsync(int tokenId);
|
|
Task DeleteWalletAsync(int walletId);
|
|
Task<List<TokenBalance>> GetTokenBalancesAsync(string walletAddress);
|
|
}
|
|
}
|