mirror of
https://github.com/corda/corda.git
synced 2025-06-16 14:18:20 +00:00
Merged in clint-contractsrename (pull request #446)
Renamed contracts project to finance to better reflect the purpose of the project.
This commit is contained in:
@ -103,7 +103,7 @@ root directory of Corda
|
||||
|
||||
./gradlew install
|
||||
|
||||
This will publish corda-$version.jar, contracts-$version.jar, core-$version.jar and node-$version.jar to the
|
||||
This will publish corda-$version.jar, finance-$version.jar, core-$version.jar and node-$version.jar to the
|
||||
group com.r3corda. You can now depend on these as you normally would a Maven dependency.
|
||||
|
||||
Gradle Plugins for Cordapps
|
||||
@ -165,7 +165,7 @@ To build against Corda and the plugins that cordapps use, update your build.grad
|
||||
|
||||
dependencies {
|
||||
compile "com.r3corda:core:$corda_version"
|
||||
compile "com.r3corda:contracts:$corda_version"
|
||||
compile "com.r3corda:finance:$corda_version"
|
||||
compile "com.r3corda:node:$corda_version"
|
||||
compile "com.r3corda:corda:$corda_version"
|
||||
... other dependencies here ...
|
||||
|
@ -85,5 +85,5 @@ to initialise the ORM layer.
|
||||
Several examples of entities and mappings are provided in the codebase, including ``Cash.State`` and
|
||||
``CommercialPaper.State``. For example, here's the first version of the cash schema.
|
||||
|
||||
.. literalinclude:: ../../contracts/src/main/kotlin/com/r3corda/schemas/CashSchemaV1.kt
|
||||
.. literalinclude:: ../../finance/src/main/kotlin/com/r3corda/schemas/CashSchemaV1.kt
|
||||
:language: kotlin
|
@ -91,7 +91,7 @@ Our protocol has two parties (B and S for buyer and seller) and will proceed as
|
||||
it lacks a signature from S authorising movement of the asset.
|
||||
3. S signs it and hands the now finalised ``SignedTransaction`` back to B.
|
||||
|
||||
You can find the implementation of this protocol in the file ``contracts/src/main/kotlin/com/r3corda/protocols/TwoPartyTradeProtocol.kt``.
|
||||
You can find the implementation of this protocol in the file ``finance/src/main/kotlin/com/r3corda/protocols/TwoPartyTradeProtocol.kt``.
|
||||
|
||||
Assuming no malicious termination, they both end the protocol being in posession of a valid, signed transaction that
|
||||
represents an atomic asset swap.
|
||||
|
@ -36,7 +36,7 @@ The process of implementing a scenario looks like this:
|
||||
|
||||
1. First of all, design your states and transaction types. Read about the :doc:`data-model` if you aren't sure what that
|
||||
involves.
|
||||
2. Now, create a new file in the contracts/src/main directory. You can either any JVM language but we only provide examples
|
||||
2. Now, create a new file in the finance/src/main directory. You can either any JVM language but we only provide examples
|
||||
in Java and Kotlin. The file should define your state classes and your contract class, which will define the
|
||||
allowable state transitions. You can learn how these are constructed by reading the ":doc:`tutorial-contract`" tutorial.
|
||||
3. It isn't enough to just define static data and logic that controls what's allowed. You must also orchestrate the
|
||||
|
Reference in New Issue
Block a user