Skip to content

Commit 63ea4c1

Browse files
committed
Add stateful dApp use case
1 parent 405f1a7 commit 63ea4c1

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

CIP-0172/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,20 @@ to reference their own outputs for validation purposes.
4545

4646
### Use cases
4747

48+
#### Stateful dApps
49+
50+
Even for simple dApps consisting of a single script, currently deploying these
51+
dApps on Cardano requires multiple transactions. The minimal workflow for such
52+
a stateful dApp requires (1) deploying the dApp's script in the UTxO and (2)
53+
referencing this script (via reference inputs) to mint the relevant state
54+
tokens.
55+
56+
With the proposed changes, such applications could be deployed in a single
57+
transaction, which simultaneously produces the reference script UTxO's and
58+
mints the state token. This eliminates the need for submitting multiple
59+
transactions, thereby reducing costs, while at the same time improving the
60+
developer's experience.
61+
4862
#### Nested transactions: order-agnostic script sharing across a batch
4963

5064
The nested transactions CIP specifies that scripts are to be shared among all

0 commit comments

Comments
 (0)