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

feat: get receipt support in client #1135

Merged
merged 4 commits into from
Nov 15, 2023

Conversation

vasco-santos
Copy link
Contributor

@vasco-santos vasco-santos commented Nov 15, 2023

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 :)

@vasco-santos vasco-santos force-pushed the feat/get-receipt-support-in-client branch 3 times, most recently from c31fc31 to 470450d Compare November 15, 2023 14:10
@vasco-santos vasco-santos force-pushed the feat/get-receipt-support-in-client branch from 470450d to 357d453 Compare November 15, 2023 14:12
@vasco-santos vasco-santos marked this pull request as ready for review November 15, 2023 14:17
// Fetch receipt from endpoint
const workflowResponse = await fetch(
new URL(taskCid.toString(), this._receiptsEndpoint)
)
Copy link
Contributor

Choose a reason for hiding this comment

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

Handle 404

@vasco-santos vasco-santos merged commit 660d088 into main Nov 15, 2023
3 checks passed
@vasco-santos vasco-santos deleted the feat/get-receipt-support-in-client branch November 15, 2023 14:33
vasco-santos pushed a commit that referenced this pull request Nov 15, 2023
🤖 I have created a release *beep* *boop*
---


##
[11.0.0](w3up-client-v10.3.0...w3up-client-v11.0.0)
(2023-11-15)


### ⚠ BREAKING CHANGES

* coupon ([#1136](#1136))

### Features

* coupon ([#1136](#1136))
([1b94f2d](1b94f2d))
* get receipt support in client
([#1135](#1135))
([660d088](660d088))


### Bug Fixes

* upgrade ucanto core
([#1127](#1127))
([5ce4d22](5ce4d22))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
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