public SrvBlockchainHelper(IWalletCredentialsRepository walletCredentialsRepository, HttpRequestClient requestClient, BaseSettings settings, ILog log, IWalletCredentialsHistoryRepository walletCredentialsHistoryRepository) { _walletCredentialsRepository = walletCredentialsRepository; _requestClient = requestClient; _settings = settings; _log = log; _walletCredentialsHistoryRepository = walletCredentialsHistoryRepository; }
public static async Task <string[]> GetAllClientMultisigs(this IWalletCredentialsRepository walletCredsRepo, IWalletCredentialsHistoryRepository walletHistoryCredsRepo, string clientId) { var currentCreds = await walletCredsRepo.GetAsync(clientId); var prevMultisigs = await walletHistoryCredsRepo.GetPrevMultisigsForUser(clientId); var res = new List <string>(); res.Add(currentCreds.MultiSig); res.AddRange(prevMultisigs); return(res.Distinct().ToArray()); }