@parallel-protocol/mpp-types
v0.1.2
Published
Parallel Protocol MPP (Machine Payments Protocol) charge-intent wire types — Challenge/Credential/Receipt + the evm and parallel methods
Readme
@parallel-protocol/mpp-types
MPP (Machine Payments Protocol, mpp.dev) charge-intent wire types for the
Parallel Protocol — the shared contract between the merchant SDK (which runs the
Payment HTTP auth-scheme dance) and the facilitator (which verifies + settles).
Conformant to tempoxyz/mpp-specs (draft-httpauth-payment-00 + intents/charge +
methods/evm). Two methods:
evm— the standard MPP evm/authorization credential type (an EIP-3009transferWithAuthorization, i.e. Route A). Maximally interoperable.parallel— Parallel's custom method: the credential payload IS the fullSignedPaymentPayload(@parallel-protocol/payment-core), so every route (collateral / sUSDp swaps via the Parallelizer, 0% fee) is reachable.
Exports the Zod schemas (Challenge / Credential / Receipt / charge request),
base64url helpers, and mppCredentialToX402 — which maps a decoded MPP charge
credential onto the x402 { paymentPayload, paymentRequirements } verify/settle
inputs.
