(assetCid, blockchainInfo)
| 414 | } |
| 415 | |
| 416 | export async function getLatestCommitSummary(assetCid, blockchainInfo) { |
| 417 | const commitBlockNumbers = await getCommitBlockNumbers(assetCid, blockchainInfo); |
| 418 | const commitAmount = commitBlockNumbers.length; |
| 419 | const events = await iterateCommitEvents(assetCid, blockchainInfo, commitAmount - 1, commitAmount); |
| 420 | const commitsSummary = await getCommitsSummary(events); |
| 421 | return commitsSummary.pop(); |
| 422 | } |
| 423 | |
| 424 | export async function getAssetTree(assetTreeCid) { |
| 425 | const assetTreeBytes = await ipfs.ipfsCat(assetTreeCid); |
no test coverage detected