@@ -6,7 +6,7 @@ Smart Contracts on Cardano allow us to incorporate expressive logics to determin
6
6
The official language to write Contracts is Plutus, which is why we will often refer to "Plutus Scripts" and "Plutus binarys".
7
7
However, many `many different languages <https://aiken-lang.org/ecosystem-overview#the-alternatives >`_ are emerging
8
8
that aim to make the development of contracts more accesible.
9
- In this tutorial, we will focus on `eopsin <https://github.com/ImperatorLang/eopsin >`_,
9
+ In this tutorial, we will focus on `opshin <https://github.com/OpShin/opshin >`_,
10
10
a Smart Contract language based on python.
11
11
In order to understand how Smart Contracts work on Cardanos eUTxO model we need to understand a couple of concepts.
12
12
@@ -74,7 +74,7 @@ Similarly, redeemer can be serialized like following::
74
74
Example - Gift Contract
75
75
-----------------------
76
76
77
- We demonstrate how these concepts come into play using a simple example from `eopsin <https://github.com/ImperatorLang/eopsin >`_.
77
+ We demonstrate how these concepts come into play using a simple example from `opshin <https://github.com/ImperatorLang/opshin >`_.
78
78
A user can lock funds together with a public key hash.
79
79
The contract will make sure that only the owner of the matching private key can redeem the gift.
80
80
84
84
85
85
Open a file called ``gift.py `` and fill it with the following code:::
86
86
87
- from eopsin .prelude import *
87
+ from opshin .prelude import *
88
88
89
89
@dataclass()
90
90
class CancelDatum(PlutusData):
@@ -101,14 +101,14 @@ Open a file called ``gift.py`` and fill it with the following code:::
101
101
102
102
Step 2
103
103
104
- Install the python package ``eopsin-lang ``. We can then build the contract.
104
+ Install the python package ``opshin ``. We can then build the contract.
105
105
106
106
.. code :: bash
107
107
108
108
$ python3.8 -m venv venv
109
109
$ source venv/bin/activate
110
- $ pip install eopsin-lang
111
- $ eopsin build gift.py
110
+ $ pip install opshin
111
+ $ opshin build gift.py
112
112
113
113
This is it! You will now find all relevant artifacts for proceeding in the folder ``gift/ ``.
114
114
0 commit comments