(assetCid: string, blockchainInfo)
| 428 | } |
| 429 | |
| 430 | export 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 | |
| 435 | export async function filterCommitEvents(assetCid: string, blockchainInfo, fromIndex, toIndex) { |
| 436 | /* Have 3 more keys than eventLog in iterateCommitEvents: event, eventSignature, args |
no outgoing calls
no test coverage detected