-
Notifications
You must be signed in to change notification settings - Fork 167
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: POST /uploads can write uploads to w3up for web3 serving and dagcargoless filecoin deal-making #2522
Merged
Merged
feat: POST /uploads can write uploads to w3up for web3 serving and dagcargoless filecoin deal-making #2522
Changes from 47 commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
b77350e
add decisions/20240313-try-w3up.md
gobengo 4db52ef
Update decisions/20240313-try-w3up.md
gobengo 8481203
clarify NFTSTORAGE_W3S_ALLOW_ACCOUNTS may be removed later and is onl…
gobengo fd5a02e
Merge branch 'w3s-0007' of github.com:nftstorage/nft.storage into w3s…
gobengo 5fb898a
add packages/api/test.md so trigger api CI
gobengo 21d602b
update decisions/20240313-try-w3up.md with steps
gobengo dc2bf27
mention dagcargo in try-w3up problem statement
gobengo 987f940
add test for write to w3up, W3UP_URL env var, and placeholder http re…
gobengo 0d9b492
mergeback from main
gobengo 1565762
Revert "add packages/api/test.md so trigger api CI"
gobengo 972a5bd
dont warn about missing optional env vars in CI (its too verbose)
gobengo 5b8df19
Revert "dont warn about missing optional env vars in CI (its too verb…
gobengo a16127b
add w3up utils for parsing proof/principal
gobengo c779311
upgrade typescript in packages/api to fix errors with new deps
gobengo 2ba345c
fix tsc errors in packages/client
gobengo bd4d6fa
ci: .github/workflows/website.yml no longer uses node v16 because tha…
gobengo 7d4c838
upgrading eslint plugins to work with ts 5.0
gobengo e3fc4f6
ci: anything using node-version 16 now uses 18
gobengo 0dde373
fix ts errors in cron
gobengo 6ea03bc
ci: client ci only does install in client package, so node 16 doesnt …
gobengo 522d0db
try differently for client ci to only install in packages/client
gobengo 00af17d
try differently for client ci to only install in packages/client
gobengo a6f3f70
try differently for client ci to only install in packages/client
gobengo 672eac4
try differently for client ci to only install in packages/client
gobengo d94cbb3
ci: client no longer tests using node 16 because yarn install fails u…
gobengo 6d8cc30
try differently for client ci to only install in packages/client
gobengo 0b22f78
ci: client no longer tests using node 16 because yarn install fails u…
gobengo d9b6b29
empty commit
gobengo 06b0718
nfts-upload.spec creates real values for W3_NFTSTORAGE envs
gobengo ededb89
add W3_NFTSTORAGE_ env vars to bindings
gobengo d36dc20
add w3up createW3upClientFromConfig
gobengo 6d14169
add W3_NFTSTORAGE_SPACE to bindings
gobengo c4d1289
nft-upload route logs w3upConfig
gobengo 37e06ff
rm unused import in case it causes URL error
gobengo 7c1aa0b
re add import
gobengo 1532a09
use w3up client 12.5
gobengo f18264c
api context tries to construct a w3up-client
gobengo 8cc5676
add W3_NFTSTORAGE_ vars to ret of serviceConfigFromVariables
gobengo fa84813
fix how test creates W3_NFTSTORAGE_PRINCIPAL value
gobengo 96fe60f
parseW3Proof allows base32
gobengo 2171390
proof cid for test uses base64 multibase
gobengo 05b65cb
rm unused import that breaks ci
gobengo 67665f7
mock w3up uses ucanto. POST /upload/ handler does w3up.uploadCAR
gobengo cdc9426
fix test and dont log secrets
gobengo 3a66d40
fix tsc error
gobengo 9d46b27
add feature switch for w3up upload
gobengo 9462e07
remove .only from test
gobengo fc15939
fix: updates from Alan's review
travis 11897aa
refactor: move w3up uploading to uploadCar
403ff99
chore: move to classic.nft.storage
847c282
fix: un remove ts-expect-errors
4cea9a4
feat: get DAG structure for w3up uploads
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,6 @@ jobs: | |
strategy: | ||
matrix: | ||
node_version: | ||
- 16 | ||
- 18 | ||
- 20 | ||
steps: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ jobs: | |
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16' | ||
node-version: '18' | ||
- uses: bahmutov/npm-install@v1 | ||
- name: Publish app | ||
uses: cloudflare/[email protected] | ||
|
@@ -43,7 +43,7 @@ jobs: | |
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16' | ||
node-version: '18' | ||
- uses: bahmutov/npm-install@v1 | ||
- run: ./packages/tools/cli.js dns --name nft.storage --token ${{ secrets.CF_API_TOKEN }} --zone ${{ secrets.CF_ZONE }} --content ${{ github.event.inputs.frontend_cname }} | ||
- run: echo "::warning::https://nft.storage" | ||
|
@@ -54,7 +54,7 @@ jobs: | |
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16' | ||
node-version: '18' | ||
- uses: bahmutov/npm-install@v1 | ||
- run: ./packages/tools/cli.js dns --name staging.nft.storage --token ${{ secrets.CF_API_TOKEN }} --zone ${{ secrets.CF_ZONE }} --content ${{ github.event.inputs.frontend_cname }} | ||
- run: echo "::warning::https://staging.nft.storage" | ||
|
@@ -65,7 +65,7 @@ jobs: | |
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16' | ||
node-version: '18' | ||
- uses: bahmutov/npm-install@v1 | ||
- run: ./packages/tools/cli.js dns --name dev.nft.storage --token ${{ secrets.CF_API_TOKEN }} --zone ${{ secrets.CF_ZONE }} --content ${{ github.event.inputs.frontend_cname }} | ||
- run: echo "::warning::https://dev.nft.storage" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
How would a user know that an upload had failed in this case? I think we should stick with sync.