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: integrate updated blob/accept capability #21

Merged
merged 3 commits into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ require (
github.com/multiformats/go-multiaddr v0.13.0
github.com/multiformats/go-multibase v0.2.0
github.com/multiformats/go-multihash v0.2.3
github.com/storacha/go-capabilities v0.0.0-20241021134022-7144600f5aeb
github.com/storacha/go-capabilities v0.0.0-20241108115011-2ffd682f2397
github.com/storacha/go-metadata v0.0.0-20241021141939-f94d93dcda78
github.com/storacha/go-ucanto v0.1.1-0.20241028163940-34de8cd912bb
github.com/storacha/ipni-publisher v0.0.0-20241029210117-3286a26a47a8
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -536,8 +536,8 @@ github.com/spf13/cobra v1.2.1/go.mod h1:ExllRjgxM/piMAM+3tAZvg8fsklGAf3tPfi+i8t6
github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo=
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
github.com/spf13/viper v1.8.1/go.mod h1:o0Pch8wJ9BVSWGQMbra6iw0oQ5oktSIBaujf1rJH9Ns=
github.com/storacha/go-capabilities v0.0.0-20241021134022-7144600f5aeb h1:A9/44D9FChNmC0Kp+QIZ9k+a+ng2Qsym3TumTrEZPXM=
github.com/storacha/go-capabilities v0.0.0-20241021134022-7144600f5aeb/go.mod h1:1x2qMcvOUvF6prSiWXsEeEfV3OcX/L2fk6iNgPMNfZU=
github.com/storacha/go-capabilities v0.0.0-20241108115011-2ffd682f2397 h1:uLf9EeEdelXtHPTghZda3TcHChq1pmmF8cFgkb8g8r4=
github.com/storacha/go-capabilities v0.0.0-20241108115011-2ffd682f2397/go.mod h1:vHqUkLGC11Fhio/2qBJkK8MmA4q1t7DaRVdTIo0UHhE=
github.com/storacha/go-metadata v0.0.0-20241021141939-f94d93dcda78 h1:NAti9hMLMo8F0Iyz5ldS41CY6MyukRH0OrTPV4u2340=
github.com/storacha/go-metadata v0.0.0-20241021141939-f94d93dcda78/go.mod h1:DcwwQnyFuTk531cKD9sUkQg/gzpwKaIqH9I7oZYyeRc=
github.com/storacha/go-ucanto v0.1.1-0.20241028163940-34de8cd912bb h1:lFwFtMjgt162ot9pnu230haLjRQ1rqwJOIAyywOqAX8=
Expand Down
5 changes: 1 addition & 4 deletions pkg/service/storage/ucan_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"fmt"
"math/rand/v2"
"testing"
"time"

"github.com/ipld/go-ipld-prime"
"github.com/multiformats/go-multihash"
Expand Down Expand Up @@ -272,7 +271,6 @@ func TestServer(t *testing.T) {
data := testutil.RandomBytes(int(size))
digest := testutil.Must(multihash.Sum(data, multihash.SHA2_256, -1))(t)
cause := testutil.RandomCID()
exp := uint64(time.Now().Add(time.Second * 30).Unix())

allocNb := blob.AllocateCaveats{
Space: space,
Expand Down Expand Up @@ -303,9 +301,8 @@ func TestServer(t *testing.T) {
Digest: digest,
Size: size,
},
Expires: exp,
Put: blob.Promise{
UcanAwait: blob.Result{
UcanAwait: blob.Await{
Selector: ".out.ok",
Link: testutil.RandomCID(),
},
Expand Down
Loading