MCPcopy Index your code
hub / github.com/numbersprotocol/nit / getCommitBlockNumbers

Function getCommitBlockNumbers

src/nit.ts:430–433  ·  view source on GitHub ↗
(assetCid: string, blockchainInfo)

Source from the content-addressed store, hash-verified

428}
429
430export async function getCommitBlockNumbers(assetCid: string, blockchainInfo) {
431 const commits = await blockchainInfo.contract.getCommits(assetCid);
432 return commits.length > 0 ? commits.map(element => element.toNumber()) : [];
433}
434
435export async function filterCommitEvents(assetCid: string, blockchainInfo, fromIndex, toIndex) {
436 /* Have 3 more keys than eventLog in iterateCommitEvents: event, eventSignature, args

Callers 7

logFunction · 0.85
differenceFunction · 0.85
getLatestCommitSummaryFunction · 0.85
filterCommitEventsFunction · 0.85
iterateCommitEventsFunction · 0.85
eventLogRangeQueryFunction · 0.85
eventLogIteratingQueryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected