Repository navigation
·
14 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
Minor Changes
- Changed the MCP client to pay only the best-ranked offer and return its error, as mppx does, instead of paying another offer after a failure that might already have moved funds. Added
MppError::UnknownPaymentOutcomeso providers of any method can report an unknown outcome without a transaction hash. (by @rkrasiuk, #739) - Added Zone payments to the Tempo charge method, as mppx does: servers accept them with
TempoBuilder::zones(and, withTempoBuilder::zone_credential_grace, a latezoneCredential whose withdrawal settled before its Challenge expired) and verify the newzoneCredential against the Zone portal's settlement on Tempo, and clients pay from a Zone balance withTempoProvider::with_zone, resuming an outstanding withdrawal instead of paying the same terms twice.TempoMethodDetailsgained azonesfield andPayloadTypeaZonevariant, so exhaustive literals and matches need updating. (by @rkrasiuk, #739) - Added TIP-1166 configurable account vouchers for TIP-1034 sessions: servers opt in with
SessionMethod::with_configurable_vouchers(advertised asconfigurableVouchers) and track each channel'sopening_commitment, and clients sign withTempoSessionProvider::with_configurable_voucher_signer. Session snapshot recovery checks a configurable voucher against the channel's opening commitment (hydrate_session_snapshot_with_opening_commitment). Defaults are unchanged.ChannelStategains the publicopening_commitmentfield, so code that builds it with a struct literal must set it (Nonewhen unknown). (by @rkrasiuk, #739)
Patch Changes
- Fixed session restoration authorizing an extra request and recovered payments exceeding the local spending cap, while preserving close of previously authorized amounts. Bounded management error response bodies. (by @rkrasiuk, #739)
- Rejected received challenges and echoed credentials whose
headerauth-param is anything butPayment-Authorizationin any case (including an explicitAuthorizationor an empty value), skipping such challenges so another challenge in the same response can still be paid, as mppx does. A locally built challenge or echo whoseheaderisAuthorizationin any case now serializes without it, as mppx does, and serializing any other unsupported value fails.mcp::extract_result_challengesnow returns an empty list instead ofNonewhen every challenge was rejected for its header, soMcpClientrolls back a paid retry answered that way instead of committing it. (by @rkrasiuk, #739) - The HTTP and MCP clients resent the same Credential when the server offered the Challenge it had just answered again, and the MCP client paid a new Challenge offered after a refused Credential, as mppx does. Any MCP answer other than payment required, such as a server error, ended the call without paying again, and adapters report it through the new
ToolCaller::payment_answer_from_errorandToolCaller::payment_answer_from_outputhooks. On a Challenge offered again, the previous Credential's session lease is released before achallenge.receivedcallback runs, so a callback paying through the same session provider is not left waiting on it; the previous Credential is rolled back only when the callback returns its own, and is resent when the callback returnsNone. (by @rkrasiuk, #739) - Bound a session open Credential's
sourceto the payer its signed transaction authenticates (a direct payer signature, an access key the transaction authorizes for this chain, or an unrevoked, unexpired access key of the payer on chain), as mppx does. Credentials without a source are unchanged. (by @rkrasiuk, #739) - Fixed Receipt parsing to reject an explicit
nullexternalIdorsubscriptionIdinstead of reading it as absent, as mppx does. (by @rkrasiuk, #739) - Fixed Tempo transactions that also authorize the signing access key failing with "intrinsic gas too low" or a failed gas estimate: installing a key can cost over 18,000,000 gas. A sponsored session open, top-up or charge, and a legacy session open, now declare 20,000,000 gas when they carry a key authorization (within the 25,000,000 that fee payers such as Tempo Gateway sponsor), and an unsponsored one estimates its gas under that limit rather than 3,000,000. Transactions without a key authorization are unchanged. (by @rkrasiuk, #739)
- Changed Zone payments to resume a pending withdrawal instead of withdrawing again, as mppx does: a Credential made after its Challenge expired is reused only for that Challenge, other Challenges with the same terms fail with
ZoneSettlementPendinguntil its redemption window ends, and an expired Challenge is refused before paying. Servers now honorzone_credential_graceonly for Challenges issued with it, which carry the_mppx_expiry_gracemarker in theiropaque, and refuse it with a relay.Mpp::newalso honors a charge method's own grace and relay, read through the newChargeMethod::zone_credential_graceandverifies_zone_credentialshooks. A Zone payment dropped before its withdrawal was sent no longer sends it. A Zone payment for a Challenge without a readable recipient no longer leaves a pending withdrawal behind, and a refused payment never forgets a withdrawal another payment may be sending. (by @rkrasiuk, #739)
What's Changed
- fix: bound session recovery authorization and management errors by @brendanjryan in #728
- fix(tempo): declare enough gas for a sponsored session open that authorizes its key by @gakonst in #726
- ci: remove the pr-audit workflow by @grandizzy in #724
- fix(receipt): reject null externalId and subscriptionId (mpp-tools#346) by @brendanjryan in #703
- feat(tempo): add Zone payments to the charge method (mppx#1216, mppx#1313) by @brendanjryan in #734
- fix(mcp): pay only the best-ranked offer, as mppx does by @brendanjryan in #733
- fix(core): reject challenges selecting a credential header other than Payment-Authorization by @brendanjryan in #732
- fix(client): pay a new challenge offered after a rejected credential by @brendanjryan in #736
- feat(tempo): accept TIP-1166 configurable account vouchers by @brendanjryan in #731
- fix: bind session open credential source to the transaction payer (mppx#1300) by @brendanjryan in #735
- chore(deps): bump url to 2.5.9 (RUSTSEC-2026-0592) by @rkrasiuk in #739
- Release
v0.22.0by @tempo-github-sts[bot] in #729
New Contributors
Full Changelog: v0.21.0...v0.22.0