-
Notifications
You must be signed in to change notification settings - Fork 7
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
chore: use w3up client final version #190
Conversation
21c1c3f
to
a7f0990
Compare
const cid = Link.create(raw.code, digest) | ||
spinner.stopAndPersist({ symbol: '⁂', text: `Stored ${base58btc.encode(digest.bytes)} (${cid})` }) | ||
const { multihash } = await client.capability.blob.add(blob, { | ||
receiptsEndpoint: client._receiptsEndpoint.toString() |
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.
Uses https://github.com/w3s-project/w3up/blob/695af8b7313a5edc75235cc578d333577d991e92/packages/w3up-client/src/base.js#L31 that is set in test context
@@ -0,0 +1,79 @@ | |||
import http from 'http' |
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.
@@ -0,0 +1,61 @@ | |||
import { CarWriter } from '@ipld/car' |
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.
a7f0990
to
b4ec8e0
Compare
b4ec8e0
to
4e7f40c
Compare
Needs to wire a server to serve a receipt agent message so that we can finish the upload blob flow, given this uses a server also for storing data