MCPcopy
hub / github.com/unicity-sphere/sphere-sdk / load

Function load

impl/shared/trustbase-loader.ts:45–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43 protected abstract loadFromExternal(): Promise<unknown | null>;
44
45 async load(): Promise<unknown | null> {
46 // Try external source first
47 const external = await this.loadFromExternal();
48 if (external) {
49 return external;
50 }
51
52 // Fallback to embedded data
53 return getEmbeddedTrustBase(this.network);
54 }
55}

Callers

nothing calls this directly

Calls 2

getEmbeddedTrustBaseFunction · 0.85
loadFromExternalMethod · 0.45

Tested by

no test coverage detected