Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
7446b55
inital implementation
volmedo Apr 8, 2025
4b8f87b
use legacy blob capabilities
volmedo Apr 9, 2025
b9e9698
fix HTTP PUT request not having ContentLength set
volmedo Apr 9, 2025
8046cb8
fix ucan/conclude with http/put receipt
volmedo Apr 9, 2025
94de2f8
wip: poll receipts endpoint for blob/accept receipt
volmedo Apr 9, 2025
27475df
point to new service in staging
volmedo Apr 9, 2025
3a0e1f9
get receipts URL
volmedo Apr 17, 2025
d638c08
poll accept receipt
volmedo Apr 17, 2025
6f674c8
use go-libstoracha upload/add capability
volmedo Apr 18, 2025
da67388
minimal UI feedback
volmedo Apr 18, 2025
733df42
first iteration of the test passing
volmedo Apr 25, 2025
9da0fbf
refactor test server code
volmedo Apr 25, 2025
42eaf22
remove store/add, which is deprecated
volmedo Apr 28, 2025
046be51
feedback: BlobAdd should not assume CARs
volmedo Apr 29, 2025
fc7e520
feedback: add comment about what BlobAdd returns
volmedo Apr 29, 2025
a3cf50d
feedback: better param name in pollAccept
volmedo Apr 29, 2025
009c23a
feedback: use STORACHA as prefix for env vars
volmedo Apr 29, 2025
1d7a458
feedback: wrap errors and avoid log.Fatal where inappropriate
volmedo Apr 30, 2025
4b3b616
feedback: check if path is a directory when uploading CARs
volmedo Apr 30, 2025
cef4ddd
feedback: fail fast if CAR decoding fails
volmedo Apr 30, 2025
a42c94c
feedback: alias capability packages consistently
volmedo Apr 30, 2025
54ad2c8
feedback: add default cases to switch statements where appropriate
volmedo Apr 30, 2025
435e807
feedback: add contexts
volmedo Apr 30, 2025
8f5e474
feedback: assume blob has already been uploaded if allocated address …
volmedo Apr 30, 2025
7e92922
feedback: remove concurrent-requests flag, which is unused
volmedo May 1, 2025
b864f3d
feedback: pass CAR roots to sharder
volmedo May 1, 2025
7285d19
feedback: unimplemented functions return errors
volmedo May 1, 2025
919c416
use proper releases of go-ucanto and go-libstoracha
volmedo May 12, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 0 additions & 26 deletions capability/storeadd/capability.go

This file was deleted.

7 changes: 0 additions & 7 deletions capability/storeadd/receipt.go

This file was deleted.

37 changes: 0 additions & 37 deletions capability/storeadd/result.go

This file was deleted.

41 changes: 0 additions & 41 deletions capability/storeadd/result.ipldsch

This file was deleted.

6 changes: 3 additions & 3 deletions car/sharding/sharding.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func WithShardSize(size int) Option {
func NewSharderFromCAR(reader io.Reader) (iter.Seq2[io.Reader, error], error) {
roots, blocks, err := car.Decode(reader)
if err != nil {
return nil, fmt.Errorf("decoding CAR: %s", err)
return nil, fmt.Errorf("decoding CAR: %w", err)
}
return NewSharder(roots, blocks)
}
Expand All @@ -51,7 +51,7 @@ func NewSharder(roots []ipld.Link, blocks iter.Seq2[ipld.Block, error], options

hdrlen, err := headerEncodingLength(roots)
if err != nil {
return nil, fmt.Errorf("encoding header: %s", err)
return nil, fmt.Errorf("encoding header: %w", err)
}

maxblklen := cfg.shdsize - hdrlen
Expand Down Expand Up @@ -150,7 +150,7 @@ func NewSharder(roots []ipld.Link, blocks iter.Seq2[ipld.Block, error], options

// hdrlen, err := headerEncodingLength(roots)
// if err != nil {
// return nil, fmt.Errorf("encoding header: %s", err)
// return nil, fmt.Errorf("encoding header: %w", err)
// }

// // if adding CAR root overflows the shard limit we move overflowing
Expand Down
Loading