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

Function getEmbeddedTrustBase

impl/shared/trustbase-loader.ts:16–27  ·  view source on GitHub ↗
(network: NetworkType)

Source from the content-addressed store, hash-verified

14 * Get embedded trustbase data by network
15 */
16export function getEmbeddedTrustBase(network: NetworkType): unknown | null {
17 switch (network) {
18 case 'mainnet':
19 return TRUSTBASE_MAINNET;
20 case 'testnet':
21 return TRUSTBASE_TESTNET;
22 case 'dev':
23 return TRUSTBASE_DEV;
24 default:
25 return TRUSTBASE_TESTNET;
26 }
27}
28
29/**
30 * Base TrustBase loader with embedded fallback

Callers 1

loadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected