Last updated 5 months ago
Cardano developers write validators and transaction builders separately. This duplicates effort and requires manual, time-consuming synchronization that is error-prone, with bugs surfacing at runtime.
Define your application specification once using Modsefa's type-safe DSL. The framework auto-generates both on-chain validators and off-chain transaction builders, eliminating manual synchronization.
Please provide your proposal title
Modsefa: Generate Validators & Tx Builders from One Spec
Enter the amount of funding you are requesting in ADA
157950
Please specify how many months you expect your project to last
6
Please indicate if your proposal has been auto-translated
No
Original Language
en
What is the problem you want to solve?
Cardano developers write validators and transaction builders separately. This duplicates effort and requires manual, time-consuming synchronization that is error-prone, with bugs surfacing at runtime.
Supporting links
Does your project have any dependencies on other organizations, technical or otherwise?
No
Describe any dependencies or write 'No dependencies'
No dependencies
Will your project's outputs be fully open source?
Yes
Please provide details on the intellectual property (IP) status of your project outputs, including whether they will be released as open source or retained under another licence.
The project is already open-source under Apache License 2.0
Please choose the most relevant theme and tag related to the outcomes of your proposal
Developer Tools
Describe what makes your idea innovative compared to what has been previously launched in the market (whether by you or others).
Modsefa introduces a fundamentally different approach to Cardano development by treating the application specification as the single source of truth for both on-chain and off-chain code.
Current State of Cardano Development:
Existing frameworks require developers to write validators and transaction builders as separate codebases. Developers must manually ensure these stay synchronized and there are no compile-time guarantees that a transaction builder will construct transactions matching the validator's expectations. This creates a persistent maintenance burden and risk surface.
Modsefa's Innovation:
Modsefa uses Haskell's advanced type system to create a declarative domain-specific language (DSL) where developers specify their application once at the type level. The framework then automatically derives both Plutus validator scripts and type-safe transaction builders from this single specification. Structural consistency between on-chain and off-chain code is verified by the type system at compile-time.
Technical Differentiation:
Ecosystem Impact:
This is the first Cardano framework to provide assurances regarding validator/transaction builder consistency through the type system. Rather than providing better tools for writing separate codebases, Modsefa eliminates the dual-codebase problem entirely.
Release Scope:
This 6-month project delivers a feature-rich Release Candidate suitable for community evaluation, testing, and application development on testnets. The release will provide the feature completeness, type-safety guarantees, and code quality necessary for teams to begin building and testing applications. Mainnet deployment readiness will require additional security auditing and hardening work beyond this proposal's scope.
Describe what your prototype or MVP will demonstrate, and where it can be accessed.
The Modsefa framework is a functional prototype at https://github.com/modsefa/modsefa demonstrating the complete workflow: define specifications, compile to Plutus validators, use generated transaction builders, and deploy to testnets.
Working Examples:
Both include complete source code and can be deployed to the Cardano testnet.
Documentation:
Comprehensive guides, tutorials, API references, and technical design philosophy documents are at https://modsefa.com.
Project Scope:
This proposal evolves the prototype into a feature-rich release suitable for community evaluation and testnet application development:
The release demonstrates Modsefa can handle real-world complexity with the code quality necessary for testnet development. Mainnet deployment requires additional security work beyond this proposal.
Describe realistic measures of success, ideally with on-chain metrics.
Success for this project is measured through deliverable completion, technical quality, and demonstrated functionality. These are appropriate metrics for advancing an advanced prototype to a release suitable for testnet development and community evaluation.
Primary Success Metrics (Deliverables):
Type-Level Validation Metrics:
The framework's expanded type-level validation will be verified through the test suite:
Performance Metrics (On-Chain Efficiency):
The project includes dedicated optimization work to minimize compiled Plutus script size and execution costs:
On-Chain Correctness Validation:
Community Readiness Metrics:
Success Validation:
All metrics are objectively verifiable through:
These metrics demonstrate that Modsefa is a mature, well-documented, tested framework with the feature completeness and stability necessary for testnet application development and community evaluation.
Please describe your proposed solution and how it addresses the problem
The Core Solution: Specification-First Development
Modsefa eliminates the dual-codebase problem by treating the application specification as the single source of truth.
Traditional Approach: Developers write validators and transaction builders separately, requiring manual synchronization and duplicated development effort. Inconsistencies manifest as runtime failures.
Modsefa's Approach:
Multi-Validator Capabilities:
The framework excels at complex applications where manual coordination is error-prone:
Project Deliverables:
This 6-month proposal matures the working prototype (https://github.com/modsefa/modsefa)) into a release suitable for community evaluation and testnet development through:
Impact:
Modsefa reduces complexity and development time by providing an intent-focused DSL where developers specify what their application should do rather than how to implement it. This eliminates manual synchronization, lowers the barrier to building sophisticated applications, and lets developers focus on business logic rather than implementation details.
Please define the positive impact your project will have on the wider Cardano community
Modsefa provides immediate and long-term value to the Cardano developer ecosystem as open-source infrastructure that reduces development complexity, prevents bugs, and lowers barriers to building sophisticated applications.
Developer Benefits:
Ecosystem Impact:
What is your capability to deliver your project with high levels of trust and accountability? How do you intend to validate if your approach is feasible?
Capability to Deliver:
I am the original architect and sole developer of Modsefa with demonstrated expertise in the required domains:
Evidence of Feasibility:
Significant technical risks already addressed:
Risk Mitigation & Contingency Planning:
Primary risks are scope management and technical complexity, not fundamental feasibility.
Mitigation Strategies:
Technical Contingencies:
Minimum Viable Deliverable:
Worst-case commits to:
Even this worst-case scenario represents substantial advancement that provides clear ecosystem value.
Milestone Title
Onboarding Kit, Core Feature Expansion, & Final Scope Definition
Milestone Outputs
modsefa-starter-kit Repository: Template repository enabling single-command project scaffolding with:
Release Feature Specification: Document at modsefa.com detailing all constraints, validation rules, and capabilities to be delivered, including time-based constraints. Serves as development roadmap and framework evaluation reference.
Enhanced Constraint Library: Implementation of time-based constraints plus additional constraint types determined during M1 based on technical feasibility and framework requirements.
Acceptance Criteria
Evidence of Completion
Delivery Month
1
Cost
20000
Progress
10 %
Milestone Title
Complete Type-Level Validation & Enhanced Constraint Implementation
Milestone Outputs
Complete Type-Level Specification Validation: Comprehensive expansion of the compile-time validation system verifying application specifications are well-formed, consistent, and complete before code generation. Major validation categories include:
Additional Constraint Implementation: Constraint types defined in Release Feature Specification from M1, with minimum 4 distinct constraint types by end of M2 (including M1 deliverables). All constraints integrated with expanded validation system.
Validation Test Suite: Invalid specification examples demonstrating compile-time error detection across validation categories.
Acceptance Criteria
Evidence of Completion
Delivery Month
3
Cost
60000
Progress
50 %
Milestone Title
On-Chain Validation & Script Optimization
Milestone Outputs
Complete On-Chain Validation Implementation: Full on-chain validation logic for all constraint types including:
Optimized Plutus Script Generation: Targeted optimization reducing compiled script size and execution costs through expression simplification, dead code elimination, and efficient redeemer dispatch.
Enhanced On-Chain Error Messages: Improved error reporting providing actionable debugging information with clear indication of failed constraints and context.
Performance Benchmark Report: Documentation comparing script sizes and execution costs before/after optimization using both example applications.
Acceptance Criteria
Evidence of Completion
Optimization Report: Link to published benchmark report (PDF or Markdown on modsefa.com) showing:
Implementation Commits: Published release notes or technical summary documenting implementation of on-chain validation
Counting Constraint Documentation: Published documentation clearly explaining when and how counting constraints are enforced on-chain
Error Message Documentation: Test suite results or video demonstration showing improved error messages for common validation failure scenarios
CI Test Results: Link to public CI test results showing all on-chain validation tests passing, including new constraint enforcement tests
Delivery Month
5
Cost
40000
Progress
80 %
Milestone Title
Documentation Completion & Advanced Example Applications
Milestone Outputs
Complete API Reference Documentation: Updated documentation at modsefa.com including:
Advanced Example Applications:
Enhanced Test Utilities Documentation: Testing framework documentation including mutation testing for new constraint types, testing pattern examples, and best practices for multi-validator scenarios.
Acceptance Criteria
API documentation at modsefa.com updated to reflect complete framework capabilities including all constraint types, validation rules, and M1-M3 features. Existing documentation reviewed for accuracy.
Example Application Quality:
Test Utilities Documentation: Clear guidance on mutation testing usage, API documentation, 2-3 complete examples, and best practices for different patterns.
Test Coverage: Public test suite achieves over 80% code coverage across framework, verified through CI, including all M1-M3 features.
Documentation Consistency: Documentation accurately reflects implementation with no API discrepancies.
Evidence of Completion
Links to updated API documentation at modsefa.com organized by section (State Spec, Validator Spec, Action Spec, Constraints, Tutorials)
Example Application Links:
Link to testing framework documentation at modsefa.com
Link to public CI coverage report showing over 80% framework coverage
Optional: Video walkthrough of new example showing specification-to-deployment workflow
Delivery Month
6
Cost
18000
Progress
90 %
Milestone Title
Release Launch & Community Engagement
Milestone Outputs
Official Release: Tagged GitHub release with comprehensive release notes, complete documentation, and all example applications.
Comprehensive Community Engagement Program:
Community Infrastructure:
Project Close-Out Documentation:
Acceptance Criteria
Release Quality: Stable release suitable for community evaluation and testnet development:
Community Engagement Execution:
Engagement Quality:
Close-Out Report:
Evidence of Completion
Link to tagged GitHub release with complete release notes and functional examples
Community Engagement Evidence:
Community Infrastructure:
Close-Out Report with technical deliverables, quantitative metrics (views, GitHub stats, attendance, responses), qualitative feedback, and future recommendations
Link to final video demonstration
Delivery Month
6
Cost
19950
Progress
100 %
Please provide a cost breakdown of the proposed work and resources
Total Requested: 157,950 ADA
Milestone Breakdown:
Milestone 1 - Onboarding Kit & Scope Definition (Month 1): 20,000 ADA
Foundation work including starter-kit, feature specification, and initial constraint implementation.
Milestone 2 - Complete Type-Level Validation (Months 1-3): 60,000 ADA
Comprehensive compile-time validation system expansion and additional constraint implementation. Most technically complex milestone, beginning in Month 1 alongside M1.
Milestone 3 - On-Chain Validation & Optimization (Months 2-5): 40,000 ADA
Complete on-chain validation logic, constraint enforcement, and Plutus script optimization with benchmarks. Begins as type-level patterns from M2 stabilize.
Milestone 4 - Documentation & Examples (Months 5-6): 18,000 ADA
API reference completion, advanced example applications, and test utilities documentation.
Milestone 5 - Release & Community Engagement (Month 6): 19,950 ADA
Official release, community launch campaign with tutorial content, and close-out report documenting technical outcomes and initial community engagement.
Total: 157,950 ADA over 6 months
Rate Justification:
The requested funding reflects specialized expertise in multiple technical domains rarely combined in a single developer:
This multi-domain specialization is rare in the market. The solo development structure ensures 100% of funding delivers direct technical value with no team coordination overhead, management layers, or administrative costs.
All work product is released as open-source under Apache 2.0 license, and all deliverables are publicly verifiable through GitHub commits, CI results, and published documentation, providing complete transparency for fund usage.
How does the cost of the project represent value for the Cardano ecosystem?
This represents focused investment in foundational tooling that will benefit the entire Cardano developer ecosystem.
What the Ecosystem Receives:
Cost Context:
This investment is comparable in cost to developing a single complex Cardano application, but produces reusable infrastructure that benefits every future application built with it. The specialized expertise required (including advanced Haskell type theory, metaprogramming, and Plutus development) commands premium rates in the market, making this proposal cost-competitive for the value delivered.
Value Proposition:
Developer tooling investments have multiplicative effects. As open-source infrastructure under Apache 2.0 license, Modsefa provides perpetual value: no licensing fees, community-driven improvements, and benefits that compound with each adopter. The framework's type-safety approach can prevent costly bugs and security issues that might otherwise only be discovered during audits or after deployment.
This proposal invests in reusable infrastructure rather than a single application. Every team that adopts Modsefa benefits from this work, and the open-source nature means improvements from any contributor benefit the entire ecosystem.
I confirm that evidence of prior research, whitepaper, design, or proof-of-concept is provided.
Yes
I confirm that the proposal includes ecosystem research and uses the findings to either (a) justify its uniqueness over existing solutions or (b) demonstrate the value of its novel approach.
Yes
I confirm that the proposal demonstrates technical capability via verifiable in-house talent or a confirmed development partner (GitHub, LinkedIn, portfolio, etc.)
Yes
I confirm that the proposer and all team members are in good standing with prior Catalyst projects.
Yes
I confirm that the proposal clearly defines the problem and the value of the on-chain utility.
Yes
I confirm that the primary goal of the proposal is a working prototype deployed on at least a Cardano testnet.
Yes
I confirm that the proposal outlines a credible and clear technical plan and architecture.
Yes
I confirm that the budget and timeline (≤ 12 months) are realistic for the proposed work.
Yes
I confirm that the proposal includes a community engagement and feedback plan to amplify prototype adoption with the Cardano ecosystem.
Yes
I confirm that the budget is for future development only; excludes retroactive funding, incentives, giveaways, re-granting, or sub-treasuries.
Yes
I Agree
Yes
I am the original architect and creator of the Modsefa framework, executing this project as a solo developer.
Relevant Expertise:
Solo development is appropriate for this project because it eliminates coordination overhead, maintains clear accountability, and reduces costs while delivering focused technical work on an existing codebase.