DiscoveredContact
Defined in: src/model/contacts.ts:5
A node we’ve heard an advert from. Superset of the on-radio contact list:
onRadio marks whether it is currently committed to the radio’s store.
Properties
Section titled “Properties”favourite
Section titled “favourite”favourite: boolean;Defined in: src/model/contacts.ts:26
firstHeardMs
Section titled “firstHeardMs”firstHeardMs: number;Defined in: src/model/contacts.ts:24
First time WE heard this pubkey (our clock), ms. Tracked app-side.
gpsLat?
Section titled “gpsLat?”optional gpsLat?: number;Defined in: src/model/contacts.ts:13
gpsLon?
Section titled “gpsLon?”optional gpsLon?: number;Defined in: src/model/contacts.ts:14
optional hops?: number;Defined in: src/model/contacts.ts:10
key: string;Defined in: src/model/contacts.ts:6
kind: ContactKind;Defined in: src/model/contacts.ts:9
lastAdvertMs?
Section titled “lastAdvertMs?”optional lastAdvertMs?: number;Defined in: src/model/contacts.ts:18
Last advert time stamped by the NODE’s own clock, ms. Unreliable — a node with a wrong RTC can report a time in the future or far past. Shown as the secondary “advertised” timestamp, never used for the “last heard” sort.
lastHeardMs?
Section titled “lastHeardMs?”optional lastHeardMs?: number;Defined in: src/model/contacts.ts:22
Last time WE actually heard a live advert (our clock), ms. Set only on a real PUSH_NEW_ADVERT, never on a GET_CONTACTS resync — so committing a contact to the radio doesn’t bump it. Undefined until first live advert.
name: string;Defined in: src/model/contacts.ts:8
onRadio
Section titled “onRadio”onRadio: boolean;Defined in: src/model/contacts.ts:25
outPathHashSize?
Section titled “outPathHashSize?”optional outPathHashSize?: PathHashSize;Defined in: src/model/contacts.ts:12
outPathHex?
Section titled “outPathHex?”optional outPathHex?: string;Defined in: src/model/contacts.ts:11
publicKeyHex
Section titled “publicKeyHex”publicKeyHex: string;Defined in: src/model/contacts.ts:7