Skip to content

feat: support flexible payment obligations and reusable links - #309

Merged
trevormil merged 16 commits into
mainfrom
feat/payment-obligations
Sep 12, 2026
Merged

feat: support flexible payment obligations and reusable links#309
trevormil merged 16 commits into
mainfrom
feat/payment-obligations

Conversation

@trevormil

@trevormil trevormil commented Sep 12, 2026

Copy link
Copy Markdown
Collaborator

Adds finite payment obligations and reusable payment links using existing token approvals. Invoices can require one payer, one of a roster, every payer, distinct payers, installments, or partial contributions, with atomic recipient splits and denomination-specific amounts. Builders, strict parsers, CLI, MCP, and indexed progress types share the same terms.

Validation rejects altered economic approvals, archived collections, unsupported escrow funding, invalid payment targets, and excessive aggregate payouts. Existing invoice and subscription formats remain separate. Subscription interval endpoints now match chain ranges, and alias derivation preserves uint64 identifiers while rejecting invalid or unsafe numeric inputs. Optional queue generation/claim/lease fields support the private indexer's recovery protocol.

Validation: 181 SDK test suites / 3,633 tests pass; package build passes; Bun dependency audit is clean. Hosted tests and CodeQL pass. Keeper-derived fixtures exercise canonical collection recognition. Dependency changes are pinned and documented in their commit. The V2 CLI build awaits its output/deployment pipeline and propagates failures; canonical payment-mode inference is shared with manager projections.

Release order: human merge and publish this SDK, then pin that exact version in the private frontend and indexer and run their clean CI. Local SDK links are for smoke testing only. No new chain primitive or chain migration is required.

Pin yaml 2.8.3 and override qs 6.16.0, vulnerable bn.js 4.11.6 to 4.12.3, and tsoa CLI ts-deepmerge to 8.0.0. Preserve bn.js 5.x and all other dependency versions.

The ts-deepmerge major fixes GHSA-87mf-gv2c-c62c; the published 7.0.3 to 8.0.0 runtime diff only expands the unsafe-key filter, with unchanged declarations and exports. Swagger 2 and OpenAPI 3 deep-merge generation checks pass.

Registry publish dates: bn.js 2026-02-19; qs 2026-08-29; ts-deepmerge 2026-05-22; yaml 2026-03-21. All exceed 72 hours. Scoped overrides require Bun lockfile v3; frozen install verified using Bun 1.4.0.

Validation: bun audit reports zero advisories; 179 SDK unit suites / 3608 tests pass; complete SDK build and package import checks pass.
@trevormil
trevormil merged commit 1c14b80 into main Sep 12, 2026
3 checks passed
@trevormil
trevormil deleted the feat/payment-obligations branch September 12, 2026 19:31
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