remove the empty interface and return the array instead

This commit is contained in:
Tommy Verrall
2023-01-26 12:00:25 +00:00
parent 8d82a11b00
commit 975af0c79b
2 changed files with 2 additions and 8 deletions
+2 -4
View File
@@ -3,8 +3,6 @@ import {
AllGateways,
AllMixnodes,
EpochRewardParams,
BlacklistedGateways,
BlacklistedMixnodes,
CurrentEpoch,
} from "../types/ContractCacheTypes";
import { APIClient } from "./abstracts/APIClient";
@@ -64,14 +62,14 @@ export default class ContractCache extends APIClient {
return response.data;
}
public async getBlacklistedMixnodes(): Promise<BlacklistedMixnodes[]> {
public async getBlacklistedMixnodes(): Promise<[]> {
const response = await this.restClient.sendGet({
route: `mixnodes/blacklisted`,
});
return response.data;
}
public async getBlacklistedGateways(): Promise<BlacklistedGateways[]> {
public async getBlacklistedGateways(): Promise<[]> {
const response = await this.restClient.sendGet({
route: `gateways/blacklisted`,
});
@@ -75,10 +75,6 @@ export interface MixnodesDetailed {
family: string;
}
export interface BlacklistedMixnodes {}
export interface BlacklistedGateways {}
export interface Gateway {
host: string;
mix_port: number;