(assetTreeCid)
| 422 | } |
| 423 | |
| 424 | export async function getAssetTree(assetTreeCid) { |
| 425 | const assetTreeBytes = await ipfs.ipfsCat(assetTreeCid); |
| 426 | const assetTree = JSON.parse(assetTreeBytes.toString()); |
| 427 | return assetTree; |
| 428 | } |
| 429 | |
| 430 | export async function getCommitBlockNumbers(assetCid: string, blockchainInfo) { |
| 431 | const commits = await blockchainInfo.contract.getCommits(assetCid); |