Nabarun Gogoi
c4ba59d97e
* Create repo webhook and express handler for webhook * Create deployments from commits in GitHub * Update isCurrent in previous production deployment * Create script for setting authority * Update README for initialize registry script * Handle review changes * Use correct repo URL in record data * Handle github unique webhook error * Handle async execution of publishing records * Update readme with ngrok setup * Review changes * Add logs for GitHub webhooks --------- Co-authored-by: neeraj <neeraj.rtly@gmail.com>
38 lines
612 B
TypeScript
38 lines
612 B
TypeScript
export interface ServerConfig {
|
|
host: string;
|
|
port: number;
|
|
gqlPath?: string;
|
|
}
|
|
|
|
export interface DatabaseConfig {
|
|
dbPath: string;
|
|
}
|
|
|
|
export interface GitHubConfig {
|
|
webhookUrl: string;
|
|
oAuth: {
|
|
clientId: string;
|
|
clientSecret: string;
|
|
}
|
|
}
|
|
|
|
export interface RegistryConfig {
|
|
restEndpoint: string;
|
|
gqlEndpoint: string;
|
|
chainId: string;
|
|
privateKey: string;
|
|
bondId: string;
|
|
fee: {
|
|
amount: string;
|
|
denom: string;
|
|
gas: string;
|
|
}
|
|
}
|
|
|
|
export interface Config {
|
|
server: ServerConfig;
|
|
database: DatabaseConfig;
|
|
gitHub: GitHubConfig;
|
|
registryConfig: RegistryConfig;
|
|
}
|