nostros/frontend/Functions/RelayFunctions/index.ts

13 lines
438 B
TypeScript
Raw Normal View History

2022-10-31 00:37:42 +00:00
import RelayPool from '../../lib/nostr/RelayPool/intex'
2022-11-04 14:01:02 +00:00
import { QuickSQLiteConnection } from 'react-native-quick-sqlite'
2022-10-31 00:37:42 +00:00
import { populatePets, populateProfile } from './Users'
2022-10-24 17:27:31 +00:00
2022-10-25 02:29:59 +00:00
export const populateRelay: (
relayPool: RelayPool,
2022-11-04 14:01:02 +00:00
database: QuickSQLiteConnection,
2022-10-25 02:29:59 +00:00
publicKey: string,
) => void = (relayPool, database, publicKey) => {
2022-10-31 00:37:42 +00:00
populateProfile(relayPool, database, publicKey)
populatePets(relayPool, database, publicKey)
}