Update to @azeth/sdk 0.2.22 / @azeth/provider 0.2.21 APIs#1
Open
0xtus wants to merge 1 commit into
Open
Conversation
- bump @azeth/sdk ^0.2.22, @azeth/provider ^0.2.21
- publishService now requires name/description/entityType (RegisterParams)
- x402 routes use PaymentOption shape: accepts { scheme, price, network (CAIP-2), payTo }
- createX402StackFromEnv is async and takes a payTo override (smart account)
- getWeightedReputation returns { weightedValue, totalWeight, opinionCount }
- submitOpinion takes SimpleOpinion { serviceTokenId, rating (-100..100), tag1 };
handle the $1 net-payment gate gracefully
- README: MCP server now exposes 34 tools
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
Summary
The template was written against the v0.2.0-era API surface and no longer compiled against the latest published packages. This updates it to build clean on
@azeth/sdk@0.2.22and@azeth/provider@0.2.21.Changes
@azeth/sdk→^0.2.22,@azeth/provider→^0.2.21publishService:RegisterParamsnow requiresname,description, andentityTypealongsidecapabilities/endpointPaymentOptionshape —accepts: { scheme: 'exact', price, network, payTo }with CAIP-2 networks (via the exportedCAIP2_NETWORKSmap) instead of the flat{ price, network: 'base-sepolia' }objectcreateX402StackFromEnv: now async; pass the smart account aspayToso consumers can rate the servicegetWeightedReputation: returns{ weightedValue, totalWeight, opinionCount }(payment-weighted, 18-decimal fixed point on a -100..100 scale) — display updated accordinglysubmitOpinion: uses theSimpleOpinionshape ({ serviceTokenId, rating, tag1, endpoint }); ratings are payment-gated (≥ $1 net USD paid to the provider), so the example now handles that gate gracefully instead of crashingVerification
npm installresolves@azeth/sdk@0.2.22,@azeth/provider@0.2.21(0 vulnerabilities)npm run build(tsc) passes cleannode dist/server.js/node dist/client.jsstart and exit with the expected missing-key guidance (runtime ESM resolution verified)🤖 Generated with Claude Code