Wide sweep across the codebase to remove leftover artifacts of internal
development sessions, internal entity naming, and audit-code references
that point at non-public docs. The technical reasoning for each piece
of code stays; the "Caught 2026-05-XX while debugging XYZ at preprod"
narrative goes.
Categories scrubbed:
- Dated session-log comments ("Caught/Surfaced/Discovered 2026-05-XX")
→ rewritten as neutral technical reasoning.
- Internal audit codes (AUDIT-H2, AUDIT-C2, AUDIT-M2, AUDIT-H5, etc.)
referencing a non-public audit doc → labels stripped, fix reasoning
kept.
- Internal-entity names in code comments (Sulkta-specific, Sulkta runs
X, Terrapin/TRP as gov-token names) → generic phrasing.
- Test fixture helper `sulkta_cfg` → `test_dao_cfg`; test DAO name
string `"sulkta"` → `"test-dao"`. On-chain addresses in test fixtures
kept (they're real-world wire-byte test data on public chain).
- Cross-references to memory files / non-public audit docs
(`internal notes`, `aiken-escrow/README.md`)
→ reasoning inlined or removed.
- Test names renamed: `decodes_sulkta_live_governor_datum` →
`decodes_live_governor_datum`, `decodes_sulkta_live_proposal_zero` →
`decodes_live_finished_proposal`, etc.
Kept (legitimate):
- Cross-references to in-repo audit docs (aiken-escrow/README.md, aiken-escrow/README.md) — they ARE the
public artifacts being referenced.
- HIGH-1/HIGH-2/MED-2/LOW labels on escrow fixes — these correspond to
findings in the in-repo audit doc.
- TODO markers — legitimate work-still-to-do.
31 lines
1.3 KiB
Rust
31 lines
1.3 KiB
Rust
//! Plutus tx builders for DAO operations.
|
|
//!
|
|
//! Each operation lives in its own submodule so signing paths are
|
|
//! auditable in isolation. Naming convention matches the MCP tool
|
|
//! surface: `stake_create`, `proposal_vote`, etc.
|
|
//!
|
|
//! Phase scope (mirrors [`crate`] phase plan):
|
|
//!
|
|
//! | Phase | Module | What it ships |
|
|
//! |-------|-----------------------|---------------|
|
|
//! | 4a | `proposal_create` | Spend governor (CreateProposal), mint ProposalST |
|
|
//! | 4b | `proposal_cosign` | Add additional cosigner to a Draft proposal |
|
|
//! | 3 | `proposal_vote` | Spend stake (PermitVote) + proposal (Vote tag) |
|
|
//! | 4c | `proposal_advance` | State-machine transition redeemer |
|
|
//! | 4d | `stake_destroy` | Spend stake (Destroy), return gov-tokens to wallet |
|
|
//! | 4e | `treasury_execute` | Burn GAT + spend treasury per effect datum |
|
|
//! | def. | `stake_create` | Lock gov-tokens at stakes script (deferred — both |
|
|
//! | | | live wallets already have stakes) |
|
|
|
|
pub mod escrow_agree;
|
|
pub mod escrow_deposit;
|
|
pub mod escrow_open;
|
|
pub mod escrow_refund_timeout;
|
|
pub mod escrow_settle;
|
|
pub mod escrow_veto;
|
|
pub mod proposal_advance;
|
|
pub mod proposal_cosign;
|
|
pub mod proposal_create;
|
|
pub mod proposal_retract_votes;
|
|
pub mod proposal_vote;
|
|
pub mod stake_destroy;
|