Skip to content

Commit

Permalink
feat: use blob-fetcher lib (#105)
Browse files Browse the repository at this point in the history
Uses `@web3-storage/blob-fetcher`, `@web3-storage/public-bucket` and
`multipart-byte-range` to simplify code and ensure that freeway uses the
same code as hoverboard to fetch blocks via HTTP range requests informed
by location content claims.

This removes the content claims code from the existing R2 blockstore so
that it can be decomssioned more easily as there is clean separation
between new world and old world.
  • Loading branch information
Alan Shaw authored May 28, 2024
1 parent 1c7b7a6 commit 14e8b6d
Show file tree
Hide file tree
Showing 11 changed files with 328 additions and 516 deletions.
227 changes: 211 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"@ipld/dag-cbor": "^9.0.8",
"@ipld/dag-json": "^10.1.7",
"@ipld/dag-pb": "^4.0.8",
"@web3-storage/blob-fetcher": "^2.1.0",
"@web3-storage/content-claims": "^4.0.5",
"@web3-storage/gateway-lib": "^5.0.1",
"cardex": "^3.0.0",
Expand All @@ -53,16 +54,16 @@
"@aws-sdk/client-s3": "^3.490.0",
"@cloudflare/workers-types": "^4.20231218.0",
"@ucanto/principal": "^8.1.0",
"@web3-storage/public-r2-bucket": "^1.2.1",
"@web3-storage/public-bucket": "^1.0.0",
"ava": "^5.3.1",
"byteranges": "^1.1.0",
"carbites": "^1.0.6",
"carstream": "^2.1.0",
"dotenv": "^16.3.1",
"esbuild": "^0.18.20",
"files-from-path": "^0.2.6",
"ipfs-car": "^0.9.2",
"miniflare": "^2.14.1",
"multipart-byte-range": "^3.0.1",
"standard": "^17.1.0",
"typescript": "^5.3.3",
"uint8arrays": "^4.0.10"
Expand Down
Loading

0 comments on commit 14e8b6d

Please sign in to comment.