Skip to content

docs: fix naming, addresses, code examples across 8 pages - #2

Merged
vraspar merged 1 commit into
mainfrom
vraspar/fix-docs-review-issues
Feb 5, 2026
Merged

docs: fix naming, addresses, code examples across 8 pages#2
vraspar merged 1 commit into
mainfrom
vraspar/fix-docs-review-issues

Conversation

@vraspar

@vraspar vraspar commented Feb 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Standardized naming: PaymentOperator (not ArbitrationOperator), EscrowPeriod (not EscrowPeriodCondition)
  • Rewrote ethers.js code to use viem per project conventions
  • Fixed ICondition.check() signatures to include all 3 parameters (paymentInfo, amount, caller)
  • Converted pseudo-code new ClassName() patterns to factory deployment patterns
  • Filled in TBD factory and singleton addresses from SDK config source of truth
  • Fixed broken /quickstart links to point to /sdk/client/quickstart
  • Fixed state diagram, event names, and diagram inconsistencies against actual contract ABI

Files Changed (8)

File Fixes
contracts/examples.mdx ethers→viem, diagram fixes, pseudo-code note
contracts/conditions.mdx check() params, factory patterns, addresses
contracts/overview.mdx ArbitrationOperator→PaymentOperator, EscrowPeriod naming
contracts/core-contracts.mdx State diagram, "arbiter"→"conditions"
contracts/architecture.mdx Inline diagram, event names
contracts/factories.mdx TBD addresses, API consistency, naming
x402-integration/comparison.mdx Broken quickstart link
x402-integration/escrow-scheme.mdx Broken quickstart link

Test plan

  • Preview with npx mintlify dev and verify all 8 pages render
  • Verify mermaid diagrams render correctly (especially new architecture diagram)
  • Check internal links resolve (/sdk/client/quickstart, /contracts/*)
  • Verify code blocks have proper syntax highlighting

🤖 Generated with Claude Code

@vraspar
vraspar requested a review from A1igator February 5, 2026 04:23
…0 pages

Reviewed contracts and x402-integration docs against source of truth
(x402r-contracts repo and x402r-sdk config). Key fixes:

- Standardize on PaymentOperator (not ArbitrationOperator) everywhere
- Fix EscrowPeriodCondition → EscrowPeriod naming
- Rewrite ethers.js testing section to use viem
- Add missing uint256 amount param to ICondition.check() examples
- Convert pseudo-code new ClassName() to factory deployment patterns
- Fill in TBD factory/singleton addresses from SDK config
- Fix state diagram transitions (reclaim/refundPostEscrow from Released)
- Fix event names to match actual contract ABI
- Add inline architecture diagram to architecture.mdx
- Fix broken /quickstart links → /sdk/client/quickstart (all 3 pages)
- Fix Example 3 freeze caller to match RECEIVER_CONDITION config
- Fix Example 7 subscription diagram contradicting no-refund config
- Rename Introduction → "What is x402r?" for clearer nav
- Add icon to index.mdx landing page

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@vraspar
vraspar force-pushed the vraspar/fix-docs-review-issues branch from dcda87b to 2f52556 Compare February 5, 2026 04:29
@vraspar
vraspar merged commit 792897d into main Feb 5, 2026
1 check passed
@vraspar
vraspar deleted the vraspar/fix-docs-review-issues branch February 5, 2026 04:39
A1igator added a commit that referenced this pull request May 12, 2026
Two remaining review items that apply post-orphan-trim:

#6 (docs.json SDK group renames + create-client promotion):
- Promote sdk/create-client to second entry under "Getting Started"
  (was buried under "Reference"). Reference group now just CLI + Examples.
- sidebarTitle frontmatter added so nav labels disambiguate:
  - sdk/merchant/getting-started → "Express server setup"
  - sdk/merchant/quickstart → "Merchant client"
  - sdk/helpers/forward-to-arbiter → "forwardToArbiter helper"

#4 (typed Returns/Parameters per method, viem-style):
- sdk/merchant/quickstart.mdx: added Parameters + Returns sections
  under each of capture, voidPayment, charge, refund, getAmounts,
  getState, operator.getConfig, operator.getFeeAddresses,
  operator.calculateFees. Tables list every arg with type and
  description; Returns names the typed result + key fields.
- sdk/merchant/refund-handling.mdx: same pass across refund.has,
  refund.getStatus, refund.get, refund.getByKey,
  refund.getReceiverRequests, refund.getOperatorRequests, refund.deny,
  payment.voidPayment, freeze.isFrozen, freeze.unfreeze. Existing
  bottom-of-page summary table kept as quick reference.

Skipped #2 (split deploy-operator.mdx into marketplace + delivery
sibling pages): adding files contradicts the orphan-trim direction
we just landed.

Verified: npx mintlify@latest broken-links passes.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.

2 participants