Proposal: DPM Ledger Operations & Reproducible Testing Suite
Summary
This proposal delivers an open-source suite of DPM components for the post-deployment layer of the Canton developer workflow: inspecting live ledger state, submitting transactions, recording runs, estimating traffic costs, and running reproducible tests. Every command ships as a native dpm verb on a thin orchestration layer over the JSON Ledger API and PQS, with no new ledger functionality and no changes to Canton internals.
The suite is four components:
- Ledger querying and submission: one-shot
dpm querycommands (ACS, contracts, updates, transactions, offsets) with--jsonoutput that pipes into shell tooling and CI, a terminal live tail of ledger updates, schema utilities, anddpm exercisefor submission - External-party wallet: identity helpers plus allocate/sign/import flows wrapping Canton's external-signing topology sequence
- Fee and reward estimation: pre-flight
dpm estimatebuilt on the interactive-submission prepare endpoint's cost estimation, converted to CC and USD via live Scan rates, with CIP-0104 app-reward projection and CI cost gates - Run journal and table-driven testing: a flight recorder that captures every suite-driven submission (including failed ones that never reached the ledger) with exact replay from any entry, plus
dpm test --tablewith per-row reporting
This answers the Foundation's call for community-built DPM components, which named fee estimators, testing, debugging, and observability tooling as priority areas.
Status
Seeking a Tech & Ops Committee champion. Happy to answer questions from any SIG member or Foundation reviewer in the thread below.