Fix type in StateParams.ts and apply es-lint formatting

This commit is contained in:
Mark Sinclair
2022-06-10 14:23:07 +01:00
parent eff732aa2c
commit 6ef50b93bc
6 changed files with 26 additions and 12 deletions
+4 -2
View File
@@ -1,2 +1,4 @@
export interface AppEnv { ADMIN_ADDRESS: string | null, SHOW_TERMINAL: string | null, }
export interface AppEnv {
ADMIN_ADDRESS: string | null;
SHOW_TERMINAL: string | null;
}
+6 -2
View File
@@ -1,2 +1,6 @@
export interface Epoch { id: number, start: bigint, end: bigint, duration_seconds: bigint, }
export interface Epoch {
id: number;
start: bigint;
end: bigint;
duration_seconds: bigint;
}
+1 -2
View File
@@ -1,2 +1 @@
export type Network = "QA" | "SANDBOX" | "MAINNET";
export type Network = 'QA' | 'SANDBOX' | 'MAINNET';
+7 -2
View File
@@ -1,2 +1,7 @@
export interface TauriContractStateParams { minimum_mixnode_pledge: string, minimum_gateway_pledge: string, mixnode_rewarded_set_size: number, mixnode_active_set_size: number, stakin_supply: string }
export interface TauriContractStateParams {
minimum_mixnode_pledge: string;
minimum_gateway_pledge: string;
mixnode_rewarded_set_size: number;
mixnode_active_set_size: number;
staking_supply: string;
}
+4 -2
View File
@@ -1,2 +1,4 @@
export interface ValidatorUrl { url: string, name: string | null, }
export interface ValidatorUrl {
url: string;
name: string | null;
}
+4 -2
View File
@@ -1,3 +1,5 @@
import type { ValidatorUrl } from "./ValidatorUrl";
import type { ValidatorUrl } from './ValidatorUrl';
export interface ValidatorUrls { urls: Array<ValidatorUrl>, }
export interface ValidatorUrls {
urls: Array<ValidatorUrl>;
}