chore(deps): bump x402-foundation/x402/go to /v2 (v2.16.0)#672
Open
bussyjd wants to merge 1 commit into
Open
Conversation
The x402 Go SDK ships tagged releases under the v2 module path
(github.com/x402-foundation/x402/go/v2, latest v2.16.0). obol-stack was
pinned to the untagged v0 module via a pseudo-version
(v0.0.0-20260529172747-...), which carries no semver tags. Move every
import to the /v2 path and pin v2.16.0.
Mechanical change — import paths + go.mod/go.sum only. `go build ./...` and
the x402 / x402mcp / inference / serviceoffercontroller suites are green;
no API adjustments were needed.
Unlocks the batch-settlement scheme: v2 carries
mechanisms/evm/batch-settlement/{client,facilitator,server} (escrow-backed
payment channels + cumulative vouchers + batched on-chain claims) — the
rail the buyer sidecar and seller gateway will adopt to amortize
per-request settlement gas.
Claude-Session: https://claude.ai/code/session_01XgUndZjSoxr2jNNGG5sVYD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Moves the x402 Go SDK dependency from the untagged v0 module
(
github.com/x402-foundation/x402/go, pinned via pseudo-versionv0.0.0-20260529172747-…) to the maintained v2 module pathgithub.com/x402-foundation/x402/go/v2, pinned at v2.16.0. Every import isrewritten
…/go/…→…/go/v2/….Why
The SDK only publishes semver-tagged releases under the
/v2module path(
v2.5.0 … v2.16.0); the plain…/gopath has no tags, so we were tracking anarbitrary untagged commit. More importantly, v2 is where the batch-settlement
scheme lives:
mechanisms/evm/batch-settlement/client(deposit + cumulative vouchers)mechanisms/evm/batch-settlement/server(off-chain voucher verify + channel manager)mechanisms/evm/batch-settlement/facilitator(plus
exactandupto). This bump is the prerequisite for the buyer-sidecar /seller-gateway batch-settlement integration (escrow-backed payment channels +
batched on-chain claims) that amortizes per-request settlement gas for
micro-priced calls.
Scope
Mechanical only — import paths +
go.mod/go.sum. No API changes wererequired.
go build ./...✅go test ./internal/x402/... ./internal/x402mcp/... ./internal/inference/... ./internal/serviceoffercontroller/...✅ (all pass)22 files changed (imports), +
go.mod/go.sum.https://claude.ai/code/session_01XgUndZjSoxr2jNNGG5sVYD