Skip to content

Conversation

snadrus
Copy link
Contributor

@snadrus snadrus commented Sep 5, 2025

The TypeScript SDK for Market V2, initially featuring PDPv1.

@LexLuthr LexLuthr changed the base branch from main to feat/market2 September 8, 2025 23:36
import type { Mk20Deal as Deal, Mk20Products as Products, Mk20PDPV1 as PDPV1, Mk20RetrievalV1 as RetrievalV1, Mk20DataSource, Mk20PieceDataFormat } from '../generated';
import { ulid } from 'ulid';

namespace StreamingCommP {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/FilOzone/synapse-sdk/blob/master/src/piece/piece.ts has a working implementation of both commpv2 and a streaming form

https://github.com/FilOzone/synapse-sdk/blob/master/src/test/piecelink.test.ts has some authoritative tests that are consistent with the Go implementation so it can be verified, the zeroPieceCidFixture is pretty old, commpv1 for boundary condition number of zero-filled bytes, we just convert the result to a v2 and have something we can validate against.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants