You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This example implements the off-chain code of forty-two, a sample program in week2 of Plutus-Pioneer-Program.
4
-
The original Plutus script cound be found [here](https://github.com/input-output-hk/plutus-pioneer-program/blob/6be7484d4b8cffaef4faae30588c7fb826bcf5a3/code/week02/src/Week02/Typed.hs).
5
-
The compiled Plutus core cbor hex is stored in file [fortytwo.plutus](fortytwo.plutus) in this folder.
3
+
This example implements the off-chain code of forty-two v2 in Plutus.
6
4
7
5
FortyTwo is a simple smart contract that could be unlocked only by a redeemer of Integer value 42.
8
-
[forty_two.py](forty_two.py) contains the code of two transactions: 1) a giver sending 10 ADA to a script address,
9
-
and 2) a taker spend the ADA locked in that script address.
10
-
11
-
Below is the visualization of the lifecycle of UTxOs involved:
6
+
[forty_two.py](forty_two.py) contains the code of three transactions:
7
+
1) a giver creates an inline script and send it to herself, which cannot be spent by anybody else
8
+
2) the giver send some ADA to script address
9
+
3)the taker spend the script address with a redeemer of 42 and a reference to the inline script
12
10
11
+
Below is the visualization of the lifecycle of UTxOs involved. The entity enclosed in the parenthesis is the owner of the UTxO.
0 commit comments