MCPcopy Create free account
hub / github.com/PageLeay/celestial-runtime / hasSub

Function hasSub

lib.commonjs/contract/contract.js:412–415  ·  view source on GitHub ↗
(contract, event)

Source from the content-addressed store, hash-verified

410 return { fragment, tag, topics };
411}
412async function hasSub(contract, event) {
413 const { subs } = getInternal(contract);
414 return subs.get((await getSubInfo(contract, event)).tag) || null;
415}
416async function getSub(contract, operation, event) {
417 // Make sure our runner can actually subscribe to events
418 const provider = getProvider(contract.runner);

Callers 5

_emitFunction · 0.70
listenerCountMethod · 0.70
listenersMethod · 0.70
offMethod · 0.70
removeAllListenersMethod · 0.70

Calls 2

getInternalFunction · 0.70
getSubInfoFunction · 0.70

Tested by

no test coverage detected