-
Notifications
You must be signed in to change notification settings - Fork 25
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
feat: implement uploadCAR
in uploader
#517
Conversation
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.
I think it's worth checking if manual proof inclusion is necessary, but can always do that post-merge - this looks great!
issuer: agent, | ||
with: space.did(), | ||
audience: servicePrincipal, | ||
proofs: await getProofs([ |
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.
If I recall correctly you don't actually need to include these proofs manually - access-client
should look through its list of proofs and include relevant proofs automatically. Could be misremembering so worth testing....
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.
Hmm, I thought that was w3up-client
? Remember we're using upload-client
here...
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.
oh right - what I'm thinking of is actually in agent.js
in access-client
which is I think what getProofs
ends up calling into - what you've got is exactly right!
this is probably another argument in favor of refactoring this to use w3up-client
rather than using the upload and access clients separately...
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
🤖 I have created a release *beep* *boop* --- ## [5.2.0](uploader-core-v5.1.0...uploader-core-v5.2.0) (2023-05-19) ### Features * implement `uploadCAR` in uploader ([#517](#517)) ([40036ea](40036ea)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
🤖 I have created a release *beep* *boop* --- ## [4.2.0](react-uploader-v4.1.0...react-uploader-v4.2.0) (2023-06-20) ### Features * implement `uploadCAR` in uploader ([#517](#517)) ([40036ea](40036ea)) ### Bug Fixes * missing `dataCID` in `onUploadComplete` callback ([#525](#525)) ([fb048a9](fb048a9)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
🤖 I have created a release *beep* *boop* --- ## [4.2.0](solid-uploader-v4.1.0...solid-uploader-v4.2.0) (2023-06-20) ### Features * implement `uploadCAR` in uploader ([#517](#517)) ([40036ea](40036ea)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Travis Vachon <[email protected]>
🤖 I have created a release *beep* *boop* --- ## [4.2.0](vue-uploader-v4.1.0...vue-uploader-v4.2.0) (2023-06-20) ### Features * implement `uploadCAR` in uploader ([#517](#517)) ([40036ea](40036ea)) ### Bug Fixes * inferred type error ([#516](#516)) ([1bf4cf2](1bf4cf2)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Travis Vachon <[email protected]>
This exposes the
upload-client
'suploadCAR
function in theUploaderProvider
.I need to be able to access this to upload merkle clock events generated by bucket mutations to w3up.