MCPcopy Create free account
hub / github.com/MiloOweno/vector-mesh / getCacheKey

Function getCacheKey

packages/cli/src/plugins/blockExplorer.ts:81–85  ·  view source on GitHub ↗
({ contract })

Source from the content-addressed store, hash-verified

79 contracts,
80 name,
81 getCacheKey({ contract }) {
82 if (typeof contract.address === 'string')
83 return `${camelCase(name)}:${contract.address}`
84 return `${camelCase(name)}:${JSON.stringify(contract.address)}`
85 },
86 async parse({ response }) {
87 const json = await response.json()
88 const parsed = await BlockExplorerResponse.safeParseAsync(json)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected