-
Notifications
You must be signed in to change notification settings - Fork 28
Feat/tssdk #623
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: feat/market2
Are you sure you want to change the base?
Feat/tssdk #623
Conversation
import type { Mk20Deal as Deal, Mk20Products as Products, Mk20PDPV1 as PDPV1, Mk20RetrievalV1 as RetrievalV1, Mk20DataSource, Mk20PieceDataFormat } from '../generated'; | ||
import { ulid } from 'ulid'; | ||
|
||
namespace StreamingCommP { |
There was a problem hiding this comment.
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.
The TypeScript SDK for Market V2, initially featuring PDPv1.