MCPcopy Create free account
hub / github.com/dailydotdev/apps / realmLevelOf

Function realmLevelOf

packages/world-cli/src/world.js:22–23  ·  view source on GitHub ↗
(reads)

Source from the content-addressed store, hash-verified

20
21/** Realm ladder: the same rungs spread across the reads of several districts. */
22export const realmLevelOf = (reads) =>
23 reads <= 0 ? 0 : Math.max(1, levelOf(reads / 8));
24
25const USER = `query WorldUser($id: ID!) { user(id: $id) { id username name } }`;
26/* Every field `buildWorld` reads, and no more. The timeline is the slow half

Callers 2

resolveRealmTargetFunction · 0.90
runInspectFunction · 0.90

Calls 1

levelOfFunction · 0.70

Tested by

no test coverage detected