mirror of
https://github.com/corda/corda.git
synced 2025-02-05 18:49:14 +00:00
Renamed contracts project to finance to better reflect the purpose of the project.
This commit is contained in:
parent
7d465999d6
commit
7e198e7cf3
2
.idea/modules.xml
generated
2
.idea/modules.xml
generated
@ -61,4 +61,4 @@
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/modules/tools/tools_test.iml" filepath="$PROJECT_DIR$/.idea/modules/tools/tools_test.iml" group="tools" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
</project>
|
||||
|
@ -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
|
||||
|
@ -26,7 +26,7 @@ compileTestKotlin {
|
||||
|
||||
dependencies {
|
||||
compile project(':core')
|
||||
compile project(':contracts')
|
||||
compile project(':finance')
|
||||
|
||||
testCompile 'junit:junit:4.12'
|
||||
compile project(':test-utils')
|
||||
|
@ -31,9 +31,9 @@ sourceSets {
|
||||
|
||||
publishing {
|
||||
publications {
|
||||
contracts(MavenPublication) {
|
||||
finance(MavenPublication) {
|
||||
from components.java
|
||||
artifactId 'contracts'
|
||||
artifactId 'finance'
|
||||
|
||||
artifact sourceJar
|
||||
artifact javadocJar
|
@ -43,7 +43,7 @@ sourceSets {
|
||||
// build/reports/project/dependencies/index.html for green highlighted parts of the tree.
|
||||
|
||||
dependencies {
|
||||
compile project(':contracts')
|
||||
compile project(':finance')
|
||||
testCompile project(':test-utils')
|
||||
|
||||
compile "com.google.code.findbugs:jsr305:3.0.1"
|
||||
|
@ -1,6 +1,6 @@
|
||||
rootProject.name = 'r3prototyping'
|
||||
include 'contracts'
|
||||
include 'contracts:isolated'
|
||||
include 'finance'
|
||||
include 'finance:isolated'
|
||||
include 'core'
|
||||
include 'node'
|
||||
include 'client'
|
||||
|
@ -22,7 +22,7 @@ configurations {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile project(':contracts')
|
||||
compile project(':finance')
|
||||
compile project(':core')
|
||||
compile project(':node')
|
||||
|
||||
|
@ -58,7 +58,7 @@ dependencies {
|
||||
compile project(':core')
|
||||
compile project(':client')
|
||||
compile project(':node')
|
||||
compile project(':contracts')
|
||||
compile project(':finance')
|
||||
|
||||
// FontAwesomeFX: The "FontAwesome" icon library.
|
||||
compile 'de.jensd:fontawesomefx-fontawesome:4.6.1-2'
|
||||
|
Loading…
x
Reference in New Issue
Block a user