Skip to content

docs: add DvP settlement page under Solutions Finance Workflows - #806

Open
web3buidlerz wants to merge 8 commits into
hashgraph:mainfrom
web3buidlerz:docs/solutions-dvp-settlement
Open

web3buidlerz wants to merge 8 commits into
hashgraph:mainfrom
web3buidlerz:docs/solutions-dvp-settlement

Conversation

@web3buidlerz

@web3buidlerz web3buidlerz commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

What this adds

The first page of a new Solutions → Finance Workflows section: one finance workflow per page, each paired with a scaffold-hbar template that runs on testnet.

Settle a trade delivery-versus-payment in one atomic transfer shows how a security leg and a stablecoin leg settle in a single native TransferTransaction, wrapped in a scheduled transaction so seller and buyer sign at different times. Both legs move together or neither does, KYC on the security is enforced by the network on both legs, and there is no escrow contract.

Section Covers
Overview What DvP is, why Hedera needs no escrow, actors, lifecycle diagram, stack
Set up the market A KYC-gated security, a stablecoin, association, KYC, funding, and the audit topic
Settle a trade Proposing the two-leg schedule with an admin key and a deadline, signing as buyer, verifying on HashScan and the mirror node
Settle at a set time waitForExpiry: both parties sign now, the network settles at the set time by itself
Cancel or let a trade expire ScheduleDelete by the seller; deadlines; why an unsigned set-time trade fails with INVALID_SIGNATURE and is shown as expired
What happens when a leg fails A buyer without KYC: the schedule executes, the network rejects it, nothing moves
The audit log Every trade event published to an HCS topic as a hash-chained entry
Trade with HashPack One wallet against a demo counterparty, or two wallets in two browsers with live updates
Going to production What changes for mainnet

The paired template installs with:

npx create-scaffold-hbar@latest --template web3buidlerz/hedera-finance-templates#templates/dvp-settlement

Notes for review

  • Draft: the template is in review. Code snippets come from it; the page was rewritten after the template gained set-time settlement, cancellation, expiry, two-wallet trading and the HCS audit log, all tested on testnet.
  • The settlement flow, the KYC rejection and repeat trades were run on testnet; the page states behaviour we observed, including the IDENTICAL_SCHEDULE_ALREADY_CREATED pitfall and the real cost of setting up a market.
  • The T+1 section (waitForExpiry) is described from the scheduled-transaction docs and is not part of the template.
  • "Finance Workflows" is a working name for the nav group; happy to rename or shelve it elsewhere under Solutions.

Validation

  • mint broken-links — no broken links
  • .github/scripts/check-mdx-compiles.js — page compiles
  • .github/scripts/check-terminology.sh — no retired terms
  • docs.json parses as valid JSON

@mintlify

mintlify Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Preview approval required

This pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit 944d56c.

Approve preview

@web3buidlerz
web3buidlerz marked this pull request as ready for review October 27, 2026 13:30
@web3buidlerz
web3buidlerz requested review from a team as code owners October 27, 2026 13:30
Signed-off-by: web3buidlerz <seba@buidlerlabs.com>
Signed-off-by: web3buidlerz <seba@buidlerlabs.com>
…ules

Signed-off-by: web3buidlerz <seba@buidlerlabs.com>
…nd the audit log on the DvP page

Signed-off-by: web3buidlerz <seba@buidlerlabs.com>
… intro

Signed-off-by: web3buidlerz <seba@buidlerlabs.com>
Signed-off-by: web3buidlerz <seba@buidlerlabs.com>
The repo was created as `hedera-fInance-templates` and has since been renamed.
GitHub resolves either spelling, so the install command worked, but the typo
should not be what the docs teach people to type.

Signed-off-by: web3buidlerz <seba@buidlerlabs.com>
…ons pages

Signed-off-by: web3buidlerz <seba@buidlerlabs.com>
@web3buidlerz
web3buidlerz force-pushed the docs/solutions-dvp-settlement branch 2 times, most recently from b5b95e7 to 944d56c Compare October 27, 2026 15:06

This branch has not been deployed

No deployments
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