Add whitelisting service + update the jwt valid audience
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
using Managing.Domain.Whitelist;
|
||||
|
||||
namespace Managing.Application.Abstractions.Repositories;
|
||||
|
||||
public interface IWhitelistRepository
|
||||
{
|
||||
Task<(IEnumerable<WhitelistAccount> Accounts, int TotalCount)> GetPaginatedAsync(
|
||||
int pageNumber,
|
||||
int pageSize,
|
||||
string? searchExternalEthereumAccount = null,
|
||||
string? searchTwitterAccount = null);
|
||||
|
||||
Task<int> SetIsWhitelistedAsync(IEnumerable<int> accountIds, bool isWhitelisted);
|
||||
Task<WhitelistAccount?> GetByIdAsync(int id);
|
||||
Task<WhitelistAccount?> GetByPrivyIdAsync(string privyId);
|
||||
Task<WhitelistAccount?> GetByEmbeddedWalletAsync(string embeddedWallet);
|
||||
Task<WhitelistAccount> CreateOrUpdateAsync(WhitelistAccount whitelistAccount);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user