Please describe your proposed solution
For a Marlowe smart contract to make decisions based on external data, the execution of a choice input is required. In Fund 11, we developed a prototype system that allows users to request external data and delivers this information to the appropriate choice within the Marlowe smart contract.
Our system consists of two core components: 1) the Oracle Contract and 2) the Oracle Harvester.
- Oracle Contract: Acts as a request interface between users and the oracle system. It secures the requested information and payment on the blockchain, ensuring full transparency. Payments are only processed if the contract conditions are met, providing an additional layer of trust and security.
- Oracle Harvester: Manages incoming data requests and delivers the requested information to the Oracle Contract.
The goal of this project is to take the Wolfram Marlowe Smart Contract Execution prototype to mainnet readiness, making it available for the Cardano community as a fully functional, secure, and scalable system.
<u>Key Steps to Solve the Problem</u>:
1.Marlowe Transaction Builder SDK
- Upgrades to Marlowe Runtime Server and Marlowe SDK
- Completed by Marlowe 2025 team or other external team.
2.Implement Audits for Mainnet Deployment & Integration Testing:
- This includes validating the smart contract’s logic, checking for vulnerabilities, and ensuring update/compliance with mainnet standards.
- Integration testing: Ensure every part of the oracle interacts with the other mechanisms in the correct way.
- Marlowe runtime server up and ready (external team)
3.Cost Structures for Contracts:
- Research and establish a pricing model for price data feeds and smart contract execution. Determine the costs associated with autonomous execution, ensuring that users are fully informed of the fees required for deploying and running contracts.
4.Utilities to Execute Functionality:
- Application to enter/explore relevant data to facilitate the full (on-chain/off-chain) service.
- Includes:
- Contract explorer (verification)
- Datum constructor (form)
- Transaction builder (deployment)
- Connection with runtime server (operation)
- Notification system (error handling)
5.Provenance Tracking for Price Feed Data:
- Implementing a provenance mechanism that will track the source and authenticity of price feed data.
6.Production Readiness
- Testing, deployment, documentation
- Plutus V3 review: changes and impact, with potential implementation to Wolfram Language.
- Review of Chang Hardfork and impact on Oracle Harvester Service
By addressing these critical areas, we aim to offer the a fully automated Marlowe smart contract execution system on Cardano, equipped with price feeds for DeFi application. We will research Plutus V3/Chang Hardfork upgrades, and share a methodology for tracking price provenance. This solution will empower users to deploy financial contracts, unlocking a fuller potential of Cardano’s DeFi ecosystem.