import { IDatabase } from "pg-promise" ; const sql = { selectNetworkPassphrase : "SELECT state FROM storestate WHERE statename = 'networkpassphrase'" } ; export default class StoreStateRepo { private db : IDatabase < any > ; constructor ( db ) { this . db = db ; } public async getStellarNetworkPassphrase ( ) { const res = await this . db . one ( sql . selectNetworkPassphrase ) ; return res . state ; } }