mirror of
https://github.com/corda/corda.git
synced 2025-05-31 22:50:53 +00:00
Cais r3 doc fixes (#4974)
* StatesAndContract.kt to TemplateContract.kt * Updating to reflect new template structure * Update tut-two-party-contract.rst
This commit is contained in:
parent
24f63b2e64
commit
f4d7bc9a18
@ -46,18 +46,18 @@ For this tutorial, we will only be modifying the following files:
|
|||||||
.. code-block:: java
|
.. code-block:: java
|
||||||
|
|
||||||
// 1. The state
|
// 1. The state
|
||||||
cordapp-contracts-states/src/main/java/com/template/TemplateState.java
|
contracts/src/main/java/com/template/states/TemplateState.java
|
||||||
|
|
||||||
// 2. The flow
|
// 2. The flow
|
||||||
cordapp/src/main/java/com/template/Initiator.java
|
workflows/src/main/java/com/template/flows/Initiator.java
|
||||||
|
|
||||||
.. code-block:: kotlin
|
.. code-block:: kotlin
|
||||||
|
|
||||||
// 1. The state
|
// 1. The state
|
||||||
cordapp-contracts-states/src/main/kotlin/com/template/StatesAndContracts.kt
|
contracts/src/main/kotlin/com/template/states/TemplateState.kt
|
||||||
|
|
||||||
// 2. The flow
|
// 2. The flow
|
||||||
cordapp/src/main/kotlin/com/template/Flows.kt
|
workflows/src/main/kotlin/com/template/flows/Flows.kt
|
||||||
|
|
||||||
Progress so far
|
Progress so far
|
||||||
---------------
|
---------------
|
||||||
|
@ -77,7 +77,7 @@ We can picture this transaction as follows:
|
|||||||
Defining IOUContract
|
Defining IOUContract
|
||||||
--------------------
|
--------------------
|
||||||
Let's write a contract that enforces these constraints. We'll do this by modifying either ``TemplateContract.java`` or
|
Let's write a contract that enforces these constraints. We'll do this by modifying either ``TemplateContract.java`` or
|
||||||
``StatesAndContracts.kt`` and updating ``TemplateContract`` to define an ``IOUContract``:
|
``TemplateContract.kt`` and updating to define an ``IOUContract``:
|
||||||
|
|
||||||
.. container:: codeset
|
.. container:: codeset
|
||||||
|
|
||||||
@ -194,4 +194,4 @@ We've now written an ``IOUContract`` constraining the evolution of each ``IOUSta
|
|||||||
must be different entities
|
must be different entities
|
||||||
|
|
||||||
Next, we'll update the ``IOUFlow`` so that it obeys these contract constraints when issuing an ``IOUState`` onto the
|
Next, we'll update the ``IOUFlow`` so that it obeys these contract constraints when issuing an ``IOUState`` onto the
|
||||||
ledger.
|
ledger.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user