MCPcopy Create free account
hub / github.com/dfinity/cancan / getCandid

Function getCandid

scripts/setup.ts:54–58  ·  view source on GitHub ↗
(canisterName)

Source from the content-addressed store, hash-verified

52};
53
54const getCandid = (canisterName) =>
55 fs
56 .readFileSync(`${getCanisterPath(canisterName)}/${canisterName}.did.js`)
57 .toString()
58 .replace(/(\bexport\b\s+(default\s+)?)/g, "");
59
60const getCanisterId = (canisterName) => {
61 const canisterIdsPath = networkName === "local" ? outputRoot : ".";

Callers 1

getCanisterFunction · 0.85

Calls 1

getCanisterPathFunction · 0.85

Tested by

no test coverage detected