From 6b9698c1e8d04f2d4b3b4a265f8b767ec6172e84 Mon Sep 17 00:00:00 2001 From: Prad Nukala Date: Thu, 8 Jan 2026 15:45:49 -0500 Subject: [PATCH] refactor(client): migrate from MetaMask/go-did-it to code.sonr.org/go/did-it --- toolkit/client/client.go | 14 +++++++------- toolkit/client/client_test.go | 12 ++++++------ toolkit/client/clientissuer.go | 8 ++++---- toolkit/client/pool.go | 6 +++--- toolkit/client/proof.go | 6 +++--- toolkit/client/proof_test.go | 8 ++++---- toolkit/client/requester.go | 6 +++--- 7 files changed, 30 insertions(+), 30 deletions(-) diff --git a/toolkit/client/client.go b/toolkit/client/client.go index 6236ebe..40543e1 100644 --- a/toolkit/client/client.go +++ b/toolkit/client/client.go @@ -5,15 +5,15 @@ import ( "fmt" "iter" - "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" "github.com/ipfs/go-cid" - "github.com/ucan-wg/go-ucan/pkg/command" - "github.com/ucan-wg/go-ucan/pkg/container" - "github.com/ucan-wg/go-ucan/pkg/policy" - "github.com/ucan-wg/go-ucan/token/delegation" - "github.com/ucan-wg/go-ucan/token/invocation" + "code.sonr.org/go/ucan/pkg/command" + "code.sonr.org/go/ucan/pkg/container" + "code.sonr.org/go/ucan/pkg/policy" + "code.sonr.org/go/ucan/token/delegation" + "code.sonr.org/go/ucan/token/invocation" ) type Client struct { diff --git a/toolkit/client/client_test.go b/toolkit/client/client_test.go index 541e1a0..2e7e2c5 100644 --- a/toolkit/client/client_test.go +++ b/toolkit/client/client_test.go @@ -6,13 +6,13 @@ import ( "iter" "time" - "github.com/MetaMask/go-did-it" - "github.com/MetaMask/go-did-it/didtest" + "code.sonr.org/go/did-it" + "code.sonr.org/go/did-it/didtest" - "github.com/ucan-wg/go-ucan/pkg/command" - "github.com/ucan-wg/go-ucan/pkg/policy" - "github.com/ucan-wg/go-ucan/token/delegation" - "github.com/ucan-wg/go-ucan/token/invocation" + "code.sonr.org/go/ucan/pkg/command" + "code.sonr.org/go/ucan/pkg/policy" + "code.sonr.org/go/ucan/token/delegation" + "code.sonr.org/go/ucan/token/invocation" ) func ExampleNewClient() { diff --git a/toolkit/client/clientissuer.go b/toolkit/client/clientissuer.go index 4653fdc..bf6baa4 100644 --- a/toolkit/client/clientissuer.go +++ b/toolkit/client/clientissuer.go @@ -5,12 +5,12 @@ import ( "fmt" "iter" - "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" "github.com/ipfs/go-cid" - "github.com/ucan-wg/go-ucan/pkg/command" - "github.com/ucan-wg/go-ucan/token/delegation" + "code.sonr.org/go/ucan/pkg/command" + "code.sonr.org/go/ucan/token/delegation" ) // DlgIssuingLogic is a function that decides what powers are given to a client. diff --git a/toolkit/client/pool.go b/toolkit/client/pool.go index 71d9d69..3841f7d 100644 --- a/toolkit/client/pool.go +++ b/toolkit/client/pool.go @@ -6,11 +6,11 @@ import ( "sync" "time" - "github.com/MetaMask/go-did-it" + "code.sonr.org/go/did-it" "github.com/ipfs/go-cid" - "github.com/ucan-wg/go-ucan/pkg/command" - "github.com/ucan-wg/go-ucan/token/delegation" + "code.sonr.org/go/ucan/pkg/command" + "code.sonr.org/go/ucan/token/delegation" ) type Pool struct { diff --git a/toolkit/client/proof.go b/toolkit/client/proof.go index 14d557d..935759a 100644 --- a/toolkit/client/proof.go +++ b/toolkit/client/proof.go @@ -4,11 +4,11 @@ import ( "iter" "math" - "github.com/MetaMask/go-did-it" + "code.sonr.org/go/did-it" "github.com/ipfs/go-cid" - "github.com/ucan-wg/go-ucan/pkg/command" - "github.com/ucan-wg/go-ucan/token/delegation" + "code.sonr.org/go/ucan/pkg/command" + "code.sonr.org/go/ucan/token/delegation" ) // FindProof find in the pool the best (shortest, smallest in bytes) chain of delegation(s) matching the given invocation parameters. diff --git a/toolkit/client/proof_test.go b/toolkit/client/proof_test.go index c729418..9e2c4e8 100644 --- a/toolkit/client/proof_test.go +++ b/toolkit/client/proof_test.go @@ -4,12 +4,12 @@ import ( "iter" "testing" - "github.com/MetaMask/go-did-it/didtest" + "code.sonr.org/go/did-it/didtest" "github.com/stretchr/testify/require" - "github.com/ucan-wg/go-ucan/pkg/command" - "github.com/ucan-wg/go-ucan/token/delegation" - "github.com/ucan-wg/go-ucan/token/delegation/delegationtest" + "code.sonr.org/go/ucan/pkg/command" + "code.sonr.org/go/ucan/token/delegation" + "code.sonr.org/go/ucan/token/delegation/delegationtest" ) func TestFindProof(t *testing.T) { diff --git a/toolkit/client/requester.go b/toolkit/client/requester.go index 3e683e5..148668a 100644 --- a/toolkit/client/requester.go +++ b/toolkit/client/requester.go @@ -5,11 +5,11 @@ import ( "iter" "time" - "github.com/MetaMask/go-did-it" + "code.sonr.org/go/did-it" "github.com/avast/retry-go/v4" - "github.com/ucan-wg/go-ucan/pkg/command" - "github.com/ucan-wg/go-ucan/token/delegation" + "code.sonr.org/go/ucan/pkg/command" + "code.sonr.org/go/ucan/token/delegation" ) type DelegationRequester interface {