@@ -13,53 +13,29 @@ export default async function (cid: any, options: any) {
1313 const { data } = await getPodsi ( cid )
1414 console . log ( bold ( ) . cyan ( 'Piece Info:' ) )
1515 console . log ( green ( 'Piece CID:' ) , data . pieceCID )
16- console . log ( green ( 'Piece Size:' ) , data . pieceSize )
17- console . log ( green ( 'Car File Size:' ) , data . carFileSize )
1816
1917 console . log ( '\n' + bold ( ) . cyan ( 'Proof Data:' ) )
20- console . log ( green ( 'Piece CID:' ) , data . proof . pieceCID )
21- console . log ( green ( 'ID:' ) , data . proof . id )
22- console . log (
23- green ( 'Last Update:' ) ,
24- new Date ( data . proof . lastUpdate * 1000 ) . toLocaleString ( )
25- )
2618
2719 console . log ( '\n' + bold ( ) . cyan ( 'Inclusion Proof:' ) )
2820 console . log (
2921 green ( 'Proof Index:' ) ,
30- data . proof . fileProof . inclusionProof . proofIndex . index
22+ data . dealInfo [ 0 ] . proof . inclusionProof . proofIndex . index
3123 )
3224 console . log ( green ( 'Proof Paths:' ) )
33- data . proof . fileProof . inclusionProof . proofIndex . path . forEach ( ( path ) => {
25+ data . dealInfo [ 0 ] . proof . inclusionProof . proofIndex . path . forEach ( ( path ) => {
3426 console . log ( yellow ( ' -' ) , path )
3527 } )
3628
3729 console . log ( '\n' + bold ( ) . cyan ( 'Proof Subtree:' ) )
3830 console . log (
3931 green ( 'Index:' ) ,
40- data . proof . fileProof . inclusionProof . proofSubtree . index
32+ data . dealInfo [ 0 ] . proof . inclusionProof . proofSubtree . index
4133 )
4234 console . log ( green ( 'Paths:' ) )
43- data . proof . fileProof . inclusionProof . proofSubtree . path . forEach ( ( path ) => {
35+ data . dealInfo [ 0 ] . proof . inclusionProof . proofSubtree . path . forEach ( ( path ) => {
4436 console . log ( yellow ( ' -' ) , path )
4537 } )
4638
47- console . log ( '\n' + bold ( ) . cyan ( 'Index Record:' ) )
48- console . log ( green ( 'Checksum:' ) , data . proof . fileProof . indexRecord . checksum )
49- console . log (
50- green ( 'Proof Index:' ) ,
51- data . proof . fileProof . indexRecord . proofIndex
52- )
53- console . log (
54- green ( 'Proof Subtree:' ) ,
55- data . proof . fileProof . indexRecord . proofSubtree
56- )
57- console . log ( green ( 'Size:' ) , data . proof . fileProof . indexRecord . size )
58-
59- console . log ( '\n' + bold ( ) . cyan ( 'Verifier Data:' ) )
60- console . log ( green ( 'Comm Pc:' ) , data . proof . fileProof . verifierData . commPc )
61- console . log ( green ( 'Size Pc:' ) , data . proof . fileProof . verifierData . sizePc )
62-
6339 console . log ( '\n' + bold ( ) . cyan ( 'Deal Info:' ) )
6440 data . dealInfo . forEach ( ( deal ) => {
6541 console . log ( green ( 'Deal ID:' ) , deal . dealId )
0 commit comments