-
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: add receipts endpoint #275
Conversation
dea46e2
to
d9f8591
Compare
d9f8591
to
2416f62
Compare
View stack outputs
|
@@ -116,12 +116,12 @@ export const useInvocationStore = (s3client, bucketName) => { | |||
}) | |||
const listObject = await s3client.send(listObjectCmd) | |||
const carEntry = listObject.Contents?.find( | |||
content => content.Key?.endsWith('.workflow') | |||
content => content.Key?.endsWith('.out') |
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.
😱 this had a bug, but this code path was not being used. See https://github.com/web3-storage/w3infra/blob/main/docs/ucan-invocation-stream.md#buckets as this first was .workflow
but then was iterated to .in
and .out
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.
\o/
Adds `getReceipt(taskCid)` support in client after endpoint added into w3filecoin earlier this week storacha/w3infra#275 When you get a CID from an invocation, you can look for its receipt and go through receipt chain if you like from the client :)
Adds receipts endpoint with redirect to workflow bucket where receipt for asked task will be available.
Bucket was made public to accept GETs, you can see the generated policy here . IAM Role has general access to the bucket, while
"Principal": "*"
can performGetObject
.Integration tests were added to inspect receipt from
filecoin/offer
invocation