Skip to content

Commit 0a8d04e

Browse files
committed
chore(deps): migrate x402 SDK coinbase/x402/go → x402-foundation/x402/go
Module-path migration (not a version bump): the SDK renamed its path in the post-2026-03-31 releases. `github.com/coinbase/x402/go` → `github.com/x402-foundation/x402/go` @ v0.0.0-20260529172747; the foundation module is the maintained path (and where new schemes land). Pure path swap of the single `.../go/types` import across the tree; types API unchanged. Unlocks the upto + batch-settlement schemes already shipped under mechanisms/evm/. Folded in from #613 so this branch is self-contained on the latest module.
1 parent 04bebbc commit 0a8d04e

20 files changed

Lines changed: 22 additions & 22 deletions

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ go 1.25.1
44

55
require (
66
github.com/charmbracelet/lipgloss v1.1.0
7-
github.com/coinbase/x402/go v0.0.0-20260331075907-bff876de232a
87
github.com/cucumber/godog v0.15.1
98
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.0
109
github.com/dustinkirkland/golang-petname v0.0.0-20240428194347-eebcea082ee0
@@ -22,6 +21,7 @@ require (
2221
github.com/shopspring/decimal v1.3.1
2322
github.com/urfave/cli/v2 v2.27.5
2423
github.com/urfave/cli/v3 v3.6.2
24+
github.com/x402-foundation/x402/go v0.0.0-20260529172747-45d81d46e5bd
2525
golang.org/x/crypto v0.46.0
2626
golang.org/x/net v0.48.0
2727
golang.org/x/sys v0.39.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ github.com/cockroachdb/redact v1.1.5 h1:u1PMllDkdFfPWaNGMyLD1+so+aq3uUItthCFqzwP
4040
github.com/cockroachdb/redact v1.1.5/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZZ2lK+dpvRg=
4141
github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 h1:zuQyyAKVxetITBuuhv3BI9cMrmStnpT18zmgmTxunpo=
4242
github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06/go.mod h1:7nc4anLGjupUW/PeY5qiNYsdNXj7zopG+eqsS7To5IQ=
43-
github.com/coinbase/x402/go v0.0.0-20260331075907-bff876de232a h1:L8ZxbOqBxB7LYXdypWYA7Qq0iQtFaS6PCwjnhij4Oks=
44-
github.com/coinbase/x402/go v0.0.0-20260331075907-bff876de232a/go.mod h1:8xt63HO8mECoUwoI8E9xOjPiOzgFUvUx+Svrok+Wkss=
4543
github.com/consensys/gnark-crypto v0.19.2 h1:qrEAIXq3T4egxqiliFFoNrepkIWVEeIYwt3UL0fvS80=
4644
github.com/consensys/gnark-crypto v0.19.2/go.mod h1:rT23F0XSZqE0mUA0+pRtnL56IbPxs6gp4CeRsBk4XS0=
4745
github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
@@ -320,6 +318,8 @@ github.com/urfave/cli/v2 v2.27.5 h1:WoHEJLdsXr6dDWoJgMq/CboDmyY/8HMMH1fTECbih+w=
320318
github.com/urfave/cli/v2 v2.27.5/go.mod h1:3Sevf16NykTbInEnD0yKkjDAeZDS0A6bzhBH5hrMvTQ=
321319
github.com/urfave/cli/v3 v3.6.2 h1:lQuqiPrZ1cIz8hz+HcrG0TNZFxU70dPZ3Yl+pSrH9A8=
322320
github.com/urfave/cli/v3 v3.6.2/go.mod h1:ysVLtOEmg2tOy6PknnYVhDoouyC/6N42TMeoMzskhso=
321+
github.com/x402-foundation/x402/go v0.0.0-20260529172747-45d81d46e5bd h1:Bb+VbLsDEQ7g69MZNfUkOva2qKuB5TCSgGXXOPTB0Qw=
322+
github.com/x402-foundation/x402/go v0.0.0-20260529172747-45d81d46e5bd/go.mod h1:58Cdk20g83eAI3QvxAiQJze7qWUgkjCj9uZlPb4M4HM=
323323
github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM=
324324
github.com/x448/float16 v0.8.4/go.mod h1:14CWIYCyZA/cWjXOioeEpHeN/83MdbZDRQHoFcYsOfg=
325325
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e h1:JVG44RsyaB9T2KIHavMF/ppJZNG9ZpyihvCd0w101no=

internal/inference/gateway.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
"github.com/ObolNetwork/obol-stack/internal/enclave"
1717
"github.com/ObolNetwork/obol-stack/internal/tee"
1818
x402pkg "github.com/ObolNetwork/obol-stack/internal/x402"
19-
x402types "github.com/coinbase/x402/go/types"
19+
x402types "github.com/x402-foundation/x402/go/types"
2020
)
2121

2222
// GatewayConfig holds configuration for the x402 inference gateway.

internal/inference/gateway_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"testing"
1212

1313
x402pkg "github.com/ObolNetwork/obol-stack/internal/x402"
14-
x402types "github.com/coinbase/x402/go/types"
14+
x402types "github.com/x402-foundation/x402/go/types"
1515
)
1616

1717
// ── Mock facilitator ──────────────────────────────────────────────────────────

internal/serviceoffercontroller/openapi_components.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ package serviceoffercontroller
77
// Two principles:
88
//
99
// 1. x402 components mirror the canonical Coinbase types/v2 wire format
10-
// (github.com/coinbase/x402/go/types). Field names, optionality, and
10+
// (github.com/x402-foundation/x402/go/types). Field names, optionality, and
1111
// X402Version=2 must stay in sync with that upstream — internal/x402
1212
// re-exports the same structs and lockstep is enforced by 402 smoke
1313
// tests, not by a generator. Update both together when the spec moves.

internal/x402/agent_extras_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"reflect"
55
"testing"
66

7-
x402types "github.com/coinbase/x402/go/types"
7+
x402types "github.com/x402-foundation/x402/go/types"
88
)
99

1010
func TestMergeAgentExtras_Noop_NonAgentRule(t *testing.T) {

internal/x402/buyer/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
"path/filepath"
1616
"strings"
1717

18-
x402types "github.com/coinbase/x402/go/types"
18+
x402types "github.com/x402-foundation/x402/go/types"
1919
)
2020

2121
// Config is the top-level sidecar configuration, loaded from a JSON file

internal/x402/buyer/encoding.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"encoding/json"
66
"fmt"
77

8-
x402types "github.com/coinbase/x402/go/types"
8+
x402types "github.com/x402-foundation/x402/go/types"
99
)
1010

1111
// EncodePayment converts a v2 PaymentPayload to a base64-encoded JSON string

internal/x402/buyer/encoding_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"encoding/json"
66
"testing"
77

8-
x402types "github.com/coinbase/x402/go/types"
8+
x402types "github.com/x402-foundation/x402/go/types"
99
)
1010

1111
func TestEncodePayment_RoundTrip(t *testing.T) {

internal/x402/buyer/proxy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"sync"
1515
"time"
1616

17-
x402types "github.com/coinbase/x402/go/types"
17+
x402types "github.com/x402-foundation/x402/go/types"
1818
)
1919

2020
// userAgent is sent on every outbound HTTP request the sidecar makes to an

0 commit comments

Comments
 (0)