Developer Office Hour #57 - Intent-Based DApps with GCScript & UDC

:rocket: Intent-Based DApps with GCScript & UDC

Join Adriano Fiorenza, Founder & Developer of GameChanger Wallet, for a session on building intent-based DApps using GCScript DSL and the Universal Dapp Connector (UDC).

Discover how developers can create client-side, user-first Web3 apps integrating Cardano open protocols via links, QR codes, and NFC, with minimal dependencies and no installation required.

:date: Friday, 17 April

:eight_o_clock: 14:00 – 15:00 UTC

Perfect for developers looking to test and iterate faster when building on Cardano.

Stay updated with our events!

You can subscribe directly to the calendar here: AddEvent

Join the discussion below! We’ll update this thread with the recording link as soon as it’s live.

Summary: Building Intent-Based DApps: GCScript DSL & Universal Dapp Connector (UDC)

In this edition of the Developer Office Hours, host Darlisa Consoni from the Cardano Foundation speaks with Adriano Fiorenza (founder and developer of the GameChanger Wallet) and special guest Agustin Badi (co-founder and developer at Model P). The session provides a detailed demonstration of how developers can build user-first, intent-based DApps on Cardano.

The Problem: Complex Integrations and Middlemen
Traditional DApp connectors, such as the CIP-30 standard, often rely on procedural, step-by-step executions. The DApp must execute tasks sequentially on the user’s wallet, which requires constant communication and frequently leads to complex infrastructure dependencies or a heavy reliance on middlemen.

The Solution: GCScript DSL and the Universal Dapp Connector (UDC)
The GameChanger Wallet operates as a web application and requires no installations on the user’s device. It utilizes the Universal Dapp Connector (UDC), which is built on an intent-based model. Instead of executing commands procedurally, the DApp describes its complete intent upfront in the form of a script and passes it entirely to the wallet.

The core of this technology is the GCScript DSL. It is a JSON-based, non-Turing complete domain-specific language that is interpreted locally on the user’s device, requiring no centralized backend. This language is designed primarily for seamless Cardano integration rather than executing complex business logic.

Simplified Real-World Integrations (Links & QR Codes)
Because the code is formatted as a JSON payload, it can effortlessly be transmitted via standard web technologies like URL links, QR codes, or NFC tags. Adriano Fiorenza demonstrated this impressively using a hardware DApp (a physical tipping device built by a community member named Martin). The offline-capable device simply generates a QR code. The user scans it with their wallet, transparently reviews all permissions, and signs the transaction instantly—without the device needing an internet connection or a backend server.

GCFS: A Perpetual GitHub on the Blockchain
Another major feature is the GameChanger File System (GCFS), which allows files and code to be stored directly on-chain. This effectively turns the Cardano blockchain into a decentralized, perpetual version of GitHub. Developers can inspect existing protocols directly in their wallet, fork them, and redeploy them as a new application or QR code with just a few clicks.

Practical Application: P2P DeFi Swap Kernel
To demonstrate the practical applicability, Agustin Badi showcased a peer-to-peer DeFi kernel for limit orders. Using GCScript, he was able to develop this application in just one week. The standout feature is that the application operates entirely without Node package managers (npm) and compiles the smart contracts directly in the user’s browser. This allows the user to communicate directly with the contract, making external server infrastructure or intermediaries completely obsolete.


Top Five Q&A (FAQ) about Intent-Based DApps and UDC

Question 1: What is the main difference between the UDC and traditional wallet connectors?
Answer: Traditional connectors (like CIP-30) work procedurally, executing tasks in the wallet step by step. The Universal Dapp Connector (UDC), however, is intent-based. This means the application describes its exact intent upfront as a block of code and passes it to the wallet. This gives the user the opportunity to review the planned execution in detail, approve it, or even modify the code themselves before signing.

Question 2: What is the GCScript DSL?
Answer: GCScript is a Domain Specific Language (DSL) based on JSON, developed specifically for integrating Cardano functions. It is deliberately not Turing complete to remain highly deterministic. It runs purely on the client side (on the user’s device), meaning no separate backend server is required.

Question 3: How does this system facilitate real-world integrations?
Answer: Since the DApp’s intent is encoded as simple text (JSON), it can be embedded directly into URL links, QR codes, or NFC tags. For example, developers can build hardware devices that generate a QR code without needing their own internet connection. When a user scans this code, the wallet receives all the necessary instructions to trigger the transaction securely.

Question 4: What is the purpose of storing code on the Cardano blockchain?
Answer: Through the GameChanger File System (GCFS), developers can store code libraries directly on-chain, effectively turning Cardano into a decentralized GitHub. This allows users and developers to inspect the code of a DApp, fork it, and easily deploy a modified version (e.g., behind a new URL link) in a highly collaborative and transparent way.

Question 5: How did the guest Agustin Badi apply this technology in practice?
Answer: Agustin Badi developed a fully functional peer-to-peer DeFi protocol for limit orders based on GCScript in just one week. The application is unique because it compiles the smart contracts directly in the browser and interacts with the blockchain, completely eliminating the need for intermediate infrastructure or middlemen in the DeFi process.

2 Likes