Skip to content

feat: remove bot-chat confirmations from P2P and collect - #102

Merged
cmnisal merged 5 commits into
mainfrom
xbuddhi/feat/remove-confirmations-main
Nov 20, 2026
Merged

cmnisal merged 5 commits into
mainfrom
xbuddhi/feat/remove-confirmations-main

Conversation

@xbuddhi

@xbuddhi xbuddhi commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator

Brings #101 to main. Already merged and testing in dev.

The signed Mini App or web app request is now the approval.

  • P2P: no Confirm / Cancel message and no confirm_threshold.
  • Collect: no Pay / Decline message, and no chat_prompt or notified.
  • API responses: /me and /init drop confirm_threshold and unconfirmed_remaining; invoice decode drops needs_confirmation; transfers drop confirm_by.

Still apply: max_amount, daily_limit, rate limits and the fresh-login rule for spends.

Legacy: transfers already saved as awaiting_confirmation still expire and give back their counters.

Security: until passkey (WebAuthn) approval lands, the DCA backend's P2P key plus a user's fresh initData can spend up to daily_limit.

Merge order: #86 → #95 → #97 → #98 → #99 → this.

Tests: go build, go vet ./internal/... and the non-cgo test packages pass. Docker wasn't running, so the telegram tests weren't run.

@xbuddhi
xbuddhi force-pushed the xbuddhi/fix/oidc-name-fallback-main branch from 3ce2f49 to 07c5ba5 Compare November 19, 2026 20:56
@xbuddhi
xbuddhi force-pushed the xbuddhi/feat/remove-confirmations-main branch from c68ca04 to 71c03ef Compare November 19, 2026 20:56
… Start

POST /api/v1/init creates the wallet from the verified Telegram
credential, like /start, with the same P2P service signature.

(cherry picked from commit 4e60b07)
(cherry picked from commit 6e0a3e3)
The signed Mini App / web app request is now the approval:
- P2P sends and invoice payments run straight away; no Confirm / Cancel
  message, no confirm_threshold, no unconfirmed allowance.
- Collect requests send no Pay / Decline message and drop chat_prompt
  and notified; users approve in the Mini App or web app.
- /me drops confirm_threshold and unconfirmed_remaining; invoice decode
  drops needs_confirmation; transfers drop confirm_by.

Transfers saved as awaiting_confirmation before this still expire and
give back their counters. max_amount and daily_limit still apply.
Passkey approval through the DCA backend is planned.

(cherry picked from commit cd68a26)
@xbuddhi
xbuddhi force-pushed the xbuddhi/fix/oidc-name-fallback-main branch from 07c5ba5 to 848d8c0 Compare November 19, 2026 20:58
@xbuddhi
xbuddhi force-pushed the xbuddhi/feat/remove-confirmations-main branch from 71c03ef to a7d5556 Compare November 19, 2026 20:58
@cmnisal
cmnisal changed the base branch from xbuddhi/fix/oidc-name-fallback-main to main November 20, 2026 01:17
… main already equals this PR's base after the squash merges)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016uf9cmd4w65NVRsvrctidb
@cmnisal
cmnisal merged commit f5792c7 into main Nov 20, 2026
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.

3 participants