From 36717a08269bb1a60f9c552fdb6220c72b0331a7 Mon Sep 17 00:00:00 2001 From: Prad Nukala Date: Thu, 8 Jan 2026 15:46:02 -0500 Subject: [PATCH] refactor(token): migrate from ucan-wg to code.sonr.org/go --- token/inspect.go | 2 +- token/interface.go | 2 +- token/internal/envelope/cid_test.go | 2 +- token/internal/envelope/example_test.go | 6 +++--- token/internal/envelope/ipld.go | 4 ++-- token/internal/envelope/ipld_test.go | 4 ++-- token/internal/parse/parse.go | 4 ++-- token/internal/parse/parse_test.go | 2 +- token/read.go | 8 ++++---- 9 files changed, 17 insertions(+), 17 deletions(-) diff --git a/token/inspect.go b/token/inspect.go index 108aed5..2c29199 100644 --- a/token/inspect.go +++ b/token/inspect.go @@ -3,7 +3,7 @@ package token import ( "github.com/ipld/go-ipld-prime/datamodel" - "github.com/ucan-wg/go-ucan/token/internal/envelope" + "code.sonr.org/go/ucan/token/internal/envelope" ) type Info = envelope.Info diff --git a/token/interface.go b/token/interface.go index 823e3d1..f1a01e1 100644 --- a/token/interface.go +++ b/token/interface.go @@ -4,7 +4,7 @@ import ( "io" "time" - "github.com/MetaMask/go-did-it/crypto" + "code.sonr.org/go/did-it/crypto" "github.com/ipfs/go-cid" "github.com/ipld/go-ipld-prime/codec" ) diff --git a/token/internal/envelope/cid_test.go b/token/internal/envelope/cid_test.go index cc9f975..3c75755 100644 --- a/token/internal/envelope/cid_test.go +++ b/token/internal/envelope/cid_test.go @@ -10,7 +10,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/ucan-wg/go-ucan/token/internal/envelope" + "code.sonr.org/go/ucan/token/internal/envelope" ) func TestCidFromBytes(t *testing.T) { diff --git a/token/internal/envelope/example_test.go b/token/internal/envelope/example_test.go index 3257c95..30de8b5 100644 --- a/token/internal/envelope/example_test.go +++ b/token/internal/envelope/example_test.go @@ -7,8 +7,8 @@ import ( "sync" "testing" - "github.com/MetaMask/go-did-it/crypto" - "github.com/MetaMask/go-did-it/crypto/ed25519" + "code.sonr.org/go/did-it/crypto" + "code.sonr.org/go/did-it/crypto/ed25519" "github.com/ipld/go-ipld-prime" "github.com/ipld/go-ipld-prime/codec/dagcbor" "github.com/ipld/go-ipld-prime/datamodel" @@ -18,7 +18,7 @@ import ( "github.com/ipld/go-ipld-prime/schema" "github.com/stretchr/testify/require" - "github.com/ucan-wg/go-ucan/token/internal/envelope" + "code.sonr.org/go/ucan/token/internal/envelope" ) const ( diff --git a/token/internal/envelope/ipld.go b/token/internal/envelope/ipld.go index c2501b2..a130a64 100644 --- a/token/internal/envelope/ipld.go +++ b/token/internal/envelope/ipld.go @@ -42,8 +42,8 @@ import ( "github.com/ipld/go-ipld-prime/schema" "github.com/ucan-wg/go-varsig" - "github.com/MetaMask/go-did-it" - "github.com/MetaMask/go-did-it/crypto" + "code.sonr.org/go/did-it" + "code.sonr.org/go/did-it/crypto" ) const ( diff --git a/token/internal/envelope/ipld_test.go b/token/internal/envelope/ipld_test.go index 28155e3..44edc98 100644 --- a/token/internal/envelope/ipld_test.go +++ b/token/internal/envelope/ipld_test.go @@ -8,13 +8,13 @@ import ( "os" "testing" - _ "github.com/MetaMask/go-did-it/verifiers/did-key" + _ "code.sonr.org/go/did-it/verifiers/did-key" "github.com/ipld/go-ipld-prime" "github.com/ipld/go-ipld-prime/codec/dagcbor" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/ucan-wg/go-ucan/token/internal/envelope" + "code.sonr.org/go/ucan/token/internal/envelope" ) func TestDecode(t *testing.T) { diff --git a/token/internal/parse/parse.go b/token/internal/parse/parse.go index 04de474..51c98f7 100644 --- a/token/internal/parse/parse.go +++ b/token/internal/parse/parse.go @@ -4,9 +4,9 @@ import ( "fmt" "time" - "github.com/MetaMask/go-did-it" + "code.sonr.org/go/did-it" - "github.com/ucan-wg/go-ucan/pkg/policy/limits" + "code.sonr.org/go/ucan/pkg/policy/limits" ) func OptionalDID(s *string) (did.DID, error) { diff --git a/token/internal/parse/parse_test.go b/token/internal/parse/parse_test.go index df380b5..49d6d25 100644 --- a/token/internal/parse/parse_test.go +++ b/token/internal/parse/parse_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/ucan-wg/go-ucan/pkg/policy/limits" + "code.sonr.org/go/ucan/pkg/policy/limits" ) func TestOptionalTimestamp(t *testing.T) { diff --git a/token/read.go b/token/read.go index eb5dd16..78751c2 100644 --- a/token/read.go +++ b/token/read.go @@ -4,7 +4,7 @@ import ( "fmt" "io" - "github.com/MetaMask/go-did-it" + "code.sonr.org/go/did-it" "github.com/ipfs/go-cid" "github.com/ipld/go-ipld-prime" "github.com/ipld/go-ipld-prime/codec" @@ -12,9 +12,9 @@ import ( "github.com/ipld/go-ipld-prime/codec/dagjson" "github.com/ipld/go-ipld-prime/datamodel" - "github.com/ucan-wg/go-ucan/token/delegation" - "github.com/ucan-wg/go-ucan/token/internal/envelope" - "github.com/ucan-wg/go-ucan/token/invocation" + "code.sonr.org/go/ucan/token/delegation" + "code.sonr.org/go/ucan/token/internal/envelope" + "code.sonr.org/go/ucan/token/invocation" ) // FromSealed decodes an arbitrary token type from the binary data,