Skip to content

fix: unify PaymentProtocol type (use @atxp/common, not local duplicate)#145

Merged
badjer merged 1 commit intomainfrom
fix/unify-payment-protocol-type
Mar 31, 2026
Merged

fix: unify PaymentProtocol type (use @atxp/common, not local duplicate)#145
badjer merged 1 commit intomainfrom
fix/unify-payment-protocol-type

Conversation

@badjer
Copy link
Copy Markdown
Contributor

@badjer badjer commented Mar 31, 2026

@atxp/server had its own PaymentProtocol = 'atxp' | 'x402' which didn't include 'mpp'. This caused type errors when passing PaymentProtocol from @atxp/common (which includes all protocols) to ProtocolSettlement.settle().

Now imports and re-exports from @atxp/common for type consistency.

Blocks LLM PR circuitandchisel/llm#113.

@atxp/server had its own PaymentProtocol = 'atxp' | 'x402' which didn't
include 'mpp'. @atxp/common has the canonical type that includes all
protocols. Import and re-export from common for type consistency.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@badjer badjer merged commit d7b8aab into main Mar 31, 2026
1 check failed
@badjer badjer deleted the fix/unify-payment-protocol-type branch March 31, 2026 23:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant