MCPcopy
hub / github.com/tinyplex/tinybase / stamped

Function stamped

test/unit/common/mergeable.ts:58–61  ·  view source on GitHub ↗
(offset: number, counter: number, thing: any)

Source from the content-addressed store, hash-verified

56 encodeHlc(START_TIME + offset, counter, STORE_ID_HASHES[storeId]);
57
58export const stamped = (offset: number, counter: number, thing: any) => [
59 thing,
60 time(offset, counter, 's1'),
61];
62
63export const nullStamped = <Thing>(thing: Thing): Stamp<Thing> => [thing, ''];

Callers 1

Calls 1

timeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…