MCPcopy Create free account
hub / github.com/dfinity/orbit / getWasmChunkStoreId

Function getWasmChunkStoreId

cli/src/registry/registry.core.ts:11–17  ·  view source on GitHub ↗
(network: string = 'local')

Source from the content-addressed store, hash-verified

9}
10
11export const getWasmChunkStoreId = (network: string = 'local'): Principal => {
12 const maybeCanisterId = execSync(`dfx canister id wasm_chunk_store --network ${network}`)
13 .toString()
14 .trim();
15
16 return Principal.fromText(maybeCanisterId);
17};
18
19export const applicationToRegistryEntryMap: Record<Application, string> = {
20 [Application.Station]: '@orbit/station',

Callers 1

publish.tsFile · 0.90

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected