Repository navigation
Harden refunds, top-up settlement and chain checks - #11
Merged
Merged
Conversation
…olvent - Closing a report as "refunded" now needs the refund's transaction hash. NimPoint checks it on-chain: paid from the bond wallet, with the agent's BONDOUT memo, to the wallet that really paid, covering the NIM sent. One refund can close one order only. - Payment detection pages back through the recipient's history to the order's creation, instead of only the last 50 transactions. The bond book and the public chain count page the same way (no 500 cap). - All agents share one bond wallet: if their deposits exceed what it really holds, every bond is scaled down by the same factor. - Mock node supports startAt paging; e2e covers refund checks, the bond drop after a refund, and a payment behind 120 newer transactions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LgM2HJTJrXqRMuo7gBcNHw
A top-up was marked arrived by any payment to the customer with the order memo, of any size. Now only the agent's wallet (or its Nimiq Pay HTLC) sending at least the quoted NIM settles it. Later payments count as overpayments only when they come from the same sender. Two new e2e checks: a stranger's payment and a short agent payment are both ignored. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LgM2HJTJrXqRMuo7gBcNHw
… screen - A transaction counts only when the node reports executionResult true and a block; missing fields mean no. The memo is read from recipient data only. - The last good rate is still shown for up to 6h, but an order only locks a rate under 10 minutes old. - Agents are shown offline after AGENT_IDLE_HOURS (default 12) without the console open. Fixes the offline toggle in production: Upstash returns '0' as the number 0, so the flag was never seen as off. - Rate-limit IP comes from Vercel's own headers (or the last proxy hop). - Wallet lookups no longer return any bank details. - The order page shows the on-chain refund, with a link. - The passcode screen says what NimPoint is and that the passcode is only a screen lock. README updated: passcode, CBN rules of 5 Nov 2026, agent presence, rate freshness. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LgM2HJTJrXqRMuo7gBcNHw
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
How I tested it
npm run lint && npm run typecheck && npm run buildnpm run test:e2eagainst the mock node (107 checks passed)executionResult,confirmations,blockNumberand supportsstartAtpaging🤖 Generated with Claude Code