Skip to content

feat: pinata migration due to storacha's foreclosure#12

Merged
kaf-lamed-beyt merged 3 commits intomainfrom
dev
Apr 6, 2026
Merged

feat: pinata migration due to storacha's foreclosure#12
kaf-lamed-beyt merged 3 commits intomainfrom
dev

Conversation

@kaf-lamed-beyt
Copy link
Copy Markdown
Contributor

No description provided.

storacha is shutting down on april 15 (uploads) and may 31 (gateways). this migrates the storage backend to pinata as announced in #8.

files are packed into CAR format via ipfs-car and pinned to ipfs through pinata.

- add pinata.service.ts with `pinCAR`, `unpinCID`, `getUsage`, `gatewayUrl`
- add buildCAR to compute-cid.ts; `computeCID` now delegates to it
- update upload, agent, jobs, console controllers to use pinata
* feat: return gateway urls from server, remove w3s.link hardcoding

server now attaches a `url` field to upload history records and renewal responses using the pinata gateway. sol sdk consumes the url from the server instead of constructing it from a hardcoded w3s.link url.

* chore: add changeset
…nata migration. (#11)

* refactor!: overhaul of the existing upload flow to accommodate the pinata migration.

initially, our upload flow had various steps in between what defines a successful upload.

from computing the CID with storacha's `ipfs-car` and comparing if it matches what is generated on a successful upload+deposit, to cmaking another roundtrip to verify that pre-computed CID matches what's been paid for, and then confirming again.

all this to ensure whatever is stored is actually paid for.

with this new migration, and the sudden foreclosure of storacha, however sad that may be, the previous design is pretty much useless and obsolete now.

so we pin directly to IPFS, and claenup debtors if peradventure the upload fails halfway and they do not continue/resume it to pay in 24 hours.

* chore: remove unused deps
@kaf-lamed-beyt kaf-lamed-beyt merged commit ca04dba into main Apr 6, 2026
6 checks passed
@kaf-lamed-beyt kaf-lamed-beyt deleted the dev branch April 6, 2026 16:42
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.

1 participant