Skip to content
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

Disperser Client v2 #900

Merged
merged 2 commits into from
Nov 15, 2024
Merged

Conversation

ian-shim
Copy link
Contributor

Why are these changes needed?

Checks

  • I've made sure the tests are passing. Note that there might be a few flaky tests, in that case, please comment that they are not relevant.
  • I've checked the new test coverage and the coverage percentage didn't drop.
  • Testing Strategy
    • Unit tests
    • Integration tests
    • This PR is not tested :(

@ian-shim ian-shim marked this pull request as ready for review November 15, 2024 02:09
@ian-shim ian-shim force-pushed the disperser-client-v2 branch 2 times, most recently from ba47d2f to 43b2f26 Compare November 15, 2024 05:18
@ian-shim ian-shim mentioned this pull request Nov 15, 2024
5 tasks
Comment on lines 191 to 208
func (c *disperserClientV2) GetBlobStatus(ctx context.Context, blobKey corev2.BlobKey) (*disperser_rpc.BlobStatusReply, error) {
err := c.initOnceGrpcConnection()
if err != nil {
return nil, api.NewErrorInternal(err.Error())
}

request := &disperser_rpc.BlobStatusRequest{
BlobKey: blobKey[:],
}
return c.client.GetBlobStatus(ctx, request)
}

func (c *disperserClientV2) GetBlobCommitment(ctx context.Context, data []byte) (*disperser_rpc.BlobCommitmentReply, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Since this will be more on the public facing side of things, wondering if it's worth it to write godocs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good call. Done.

@ian-shim ian-shim force-pushed the disperser-client-v2 branch from 43b2f26 to 766b4eb Compare November 15, 2024 19:42
@ian-shim ian-shim force-pushed the disperser-client-v2 branch from 766b4eb to b5ff373 Compare November 15, 2024 19:43
@ian-shim ian-shim merged commit 259bd5d into Layr-Labs:master Nov 15, 2024
6 checks passed
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