Skip to content

Add RequestToReceiveBill message handler#200

Open
kid42 wants to merge 1 commit intocode-payments:mainfrom
kid42:feat/request-to-receive-bill
Open

Add RequestToReceiveBill message handler#200
kid42 wants to merge 1 commit intocode-payments:mainfrom
kid42:feat/request-to-receive-bill

Conversation

@kid42
Copy link
Copy Markdown

@kid42 kid42 commented May 9, 2026

Server-side handler for the new RequestToReceiveBill message type (see companion proto PR: code-payments/ocp-protobuf-api#47).

Adds RequestToReceiveBillMessageHandler with validation:

  • Requestor must be a primary account (same check as RequestToGrabBill)
  • Mint must be a supported mint (same check as RequestToGiveBill)
  • Fee destinations validated, individual fees capped at 5000 bps, total fees capped at 5000 bps

Also wired up in SendMessage dispatch and injectAdditionalContext so mint metadata gets attached to the message.

Backward-compatible -- the new handler only activates when a client sends a RequestToReceiveBill message, which nothing does yet. Existing flows are untouched.

Related: #199

@kid42 kid42 requested a review from jeffyanta as a code owner May 9, 2026 06:25
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