Overview
With #![warn(missing_docs)] not enabled anywhere in this workspace (tracked separately in the companion issue filed in this batch), nothing currently catches undocumented pub fns. A direct scan of contracts/escrow/src/lib.rs for pub fn declarations with no preceding /// doc comment finds six: get_admin (line 652), get_oracle (659), get_treasury (666), get_fee_bps (673), get_version (680), get_max_sponsors (684). Every other public function in this file (initialize, fund, contribute, release, refund, extend_deadline, keep_alive, pause, set_admin, set_fee_bps, etc.) has a substantial doc comment — these six view functions are the only ones with none at all, an inconsistency within the same file.
Requirements
Add a one-to-few-line /// doc comment to each of the six functions listed above, describing what it returns and, where relevant (e.g. get_version), any non-obvious default behavior.
Acceptance Criteria
Additional Notes
Verified by scanning contracts/escrow/src/lib.rs for pub fn lines with no immediately-preceding /// line.
Overview
With
#![warn(missing_docs)]not enabled anywhere in this workspace (tracked separately in the companion issue filed in this batch), nothing currently catches undocumentedpub fns. A direct scan ofcontracts/escrow/src/lib.rsforpub fndeclarations with no preceding///doc comment finds six:get_admin(line 652),get_oracle(659),get_treasury(666),get_fee_bps(673),get_version(680),get_max_sponsors(684). Every other public function in this file (initialize,fund,contribute,release,refund,extend_deadline,keep_alive,pause,set_admin,set_fee_bps, etc.) has a substantial doc comment — these six view functions are the only ones with none at all, an inconsistency within the same file.Requirements
Add a one-to-few-line
///doc comment to each of the six functions listed above, describing what it returns and, where relevant (e.g.get_version), any non-obvious default behavior.Acceptance Criteria
cargo doc --workspace --no-deps --document-private-itemsstill passesAdditional Notes
Verified by scanning
contracts/escrow/src/lib.rsforpub fnlines with no immediately-preceding///line.