MCPcopy Create free account
hub / github.com/cameri/nostream / findByPubkey

Method findByPubkey

src/@types/repositories.ts:52–52  ·  view source on GitHub ↗
(pubkey: Pubkey, client?: DatabaseClient)

Source from the content-addressed store, hash-verified

50
51export interface IUserRepository {
52 findByPubkey(pubkey: Pubkey, client?: DatabaseClient): Promise<User | undefined>
53 upsert(user: Partial<User>, client?: DatabaseClient): Promise<number>
54 getBalanceByPubkey(pubkey: Pubkey, client?: DatabaseClient): Promise<bigint>
55 isVanished(pubkey: Pubkey, client?: DatabaseClient): Promise<boolean>

Callers 7

handleRequestMethod · 0.65
handleRequestMethod · 0.65
isUserAdmittedMethod · 0.65
processNip05MetadataMethod · 0.65
isUserAdmittedMethod · 0.65

Implementers 1

UserRepositorysrc/repositories/user-repository.ts

Calls

no outgoing calls

Tested by

no test coverage detected