2024-02-22 11:56:26 +00:00
|
|
|
export interface SessionConfig {
|
|
|
|
secret: string;
|
|
|
|
appOriginUrl: string;
|
|
|
|
trustProxy: boolean;
|
|
|
|
domain: string;
|
|
|
|
}
|
|
|
|
|
2024-01-16 09:36:35 +00:00
|
|
|
export interface ServerConfig {
|
|
|
|
host: string;
|
|
|
|
port: number;
|
|
|
|
gqlPath?: string;
|
2024-02-22 11:56:26 +00:00
|
|
|
sessionSecret: string;
|
|
|
|
appOriginUrl: string;
|
|
|
|
isProduction: boolean;
|
|
|
|
session: SessionConfig;
|
2024-01-16 09:36:35 +00:00
|
|
|
}
|
|
|
|
|
2024-01-17 05:23:01 +00:00
|
|
|
export interface DatabaseConfig {
|
|
|
|
dbPath: string;
|
|
|
|
}
|
|
|
|
|
2024-02-15 11:54:57 +00:00
|
|
|
export interface GitHubConfig {
|
|
|
|
webhookUrl: string;
|
|
|
|
oAuth: {
|
|
|
|
clientId: string;
|
|
|
|
clientSecret: string;
|
2024-02-22 05:45:17 +00:00
|
|
|
};
|
2024-01-30 14:20:53 +00:00
|
|
|
}
|
|
|
|
|
2024-02-12 06:04:01 +00:00
|
|
|
export interface RegistryConfig {
|
|
|
|
restEndpoint: string;
|
|
|
|
gqlEndpoint: string;
|
|
|
|
chainId: string;
|
|
|
|
privateKey: string;
|
|
|
|
bondId: string;
|
2024-02-19 08:13:29 +00:00
|
|
|
fetchDeploymentRecordDelay: number;
|
2024-10-18 12:37:01 +00:00
|
|
|
checkAuctionStatusDelay: number;
|
2024-02-23 09:17:29 +00:00
|
|
|
authority: string;
|
2024-02-12 06:04:01 +00:00
|
|
|
fee: {
|
|
|
|
gas: string;
|
2024-10-16 08:43:51 +00:00
|
|
|
fees: string;
|
|
|
|
gasPrice: string;
|
2024-02-22 05:45:17 +00:00
|
|
|
};
|
2024-02-12 06:04:01 +00:00
|
|
|
}
|
|
|
|
|
2024-10-18 12:37:01 +00:00
|
|
|
export interface AuctionConfig {
|
|
|
|
commitFee: string;
|
|
|
|
commitsDuration: string;
|
|
|
|
revealFee: string;
|
|
|
|
revealsDuration: string;
|
|
|
|
denom: string;
|
|
|
|
}
|
|
|
|
|
2024-01-16 09:36:35 +00:00
|
|
|
export interface Config {
|
|
|
|
server: ServerConfig;
|
2024-01-17 05:23:01 +00:00
|
|
|
database: DatabaseConfig;
|
2024-02-15 11:54:57 +00:00
|
|
|
gitHub: GitHubConfig;
|
2024-02-12 06:04:01 +00:00
|
|
|
registryConfig: RegistryConfig;
|
2024-10-18 12:37:01 +00:00
|
|
|
auction: AuctionConfig;
|
2024-05-06 19:36:33 +00:00
|
|
|
turnkey: {
|
|
|
|
apiBaseUrl: string;
|
|
|
|
apiPublicKey: string;
|
|
|
|
apiPrivateKey: string;
|
|
|
|
defaultOrganizationId: string;
|
|
|
|
};
|
2024-01-16 09:36:35 +00:00
|
|
|
}
|