-
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
feat(billing): support blob capabilities #356
Conversation
alanshaw
commented
Apr 24, 2024
- Use the blob allocate receipt to track space size additions.
- Use blob remove receipt to track space size reductions.
f3608c4
to
989ff31
Compare
View stack outputs
|
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.
lgtm
billing/test/lib/ucan-stream.js
Outdated
const receipts = [{ | ||
type: 'receipt', | ||
carCid: randomLink(), | ||
invocationCid: randomLink(), | ||
value: { | ||
att: [{ | ||
with: await randomDID(), | ||
with: await randomDIDKey(), | ||
can: 'web3.storage/blob/allocate', |
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.
Nit, could we use exported .can
from capabilities repo instead?
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 did reach for that first but then I realised I didn't do it for the rest of them in the other tests and it would be a bigger change. Worth doing in retrospect.