corda/samples
Shams Asari 830959c9f7
CORDA-2345: Simplified TestCordapp to make it inline with the recent CorDapp versioning changes (#4434)
TestCordapp has now two implementations to clearly separate the two use cases it has in the Corda repo:

* TestCordappImpl which implements the revised public API of TestCordapp; namely that a TestCordapp instance references a real CorDapp jar on the classpath. This is either an external dependency jar in which case it’s taken as is and given to the node, or it’s a local gradle project in which case it’s compiled using the gradle “jar” task to generate the CorDapp jar. This approach means the jar has all the original CorDapp versioning information, which is important that it’s correct when testing. To this end, TestCordapp only needs to expose the ability to specify the app’s config. All the remaining properties have moved to CustomCordapp.

* CustomCordapp for creating arbitrary custom CorDapps, including specifying the jar’s MANIFEST values. This is internal API and only used for testing the platform. Technically this shouldn’t implement TestCordapp but does so to reduce the complexity of the driver and mock network.
2018-12-20 09:49:58 +00:00
..
attachment-demo CORDA-2149 CorDapp Contract and Workflow version identifiers (#4363) 2018-12-14 09:39:23 +00:00
bank-of-corda-demo CORDA-2345: Simplified TestCordapp to make it inline with the recent CorDapp versioning changes (#4434) 2018-12-20 09:49:58 +00:00
cordapp-configuration CORDA-2149 CorDapp Contract and Workflow version identifiers (#4363) 2018-12-14 09:39:23 +00:00
irs-demo CORDA-2331 Split Workflow and contracts of Finance App into separate Cordapps (#4422) 2018-12-19 18:02:51 +00:00
network-verifier Add BelongsToContract for network verifier state (#4431) 2018-12-18 13:22:53 +00:00
notary-demo CORDA-2149 CorDapp Contract and Workflow version identifiers (#4363) 2018-12-14 09:39:23 +00:00
simm-valuation-demo CORDA-2331 Split Workflow and contracts of Finance App into separate Cordapps (#4422) 2018-12-19 18:02:51 +00:00
trader-demo CORDA-2331 Split Workflow and contracts of Finance App into separate Cordapps (#4422) 2018-12-19 18:02:51 +00:00
README.md fix typo 2017-08-29 11:16:08 +02:00

Sample applications

Please refer to README.md in the individual project folders. There are the following demos:

  • attachment-demo A simple demonstration of sending a transaction with an attachment from one node to another, and then accessing the attachment on the remote node.
  • irs-demo A demo showing two nodes agreeing to an interest rate swap and doing fixings using an oracle.
  • trader-demo A simple driver for exercising the two party trading flow. In this scenario, a buyer wants to purchase some commercial paper by swapping his cash for commercial paper. The seller learns that the buyer exists, and sends them a message to kick off the trade. The seller, having obtained his CP, then quits and the buyer goes back to waiting. The buyer will sell as much CP as he can! We recommend starting with this demo.
  • Network-visualiser A tool that uses a simulation to visualise the interaction and messages between nodes on the Corda network. Currently only works for the IRS demo.
  • simm-valuation-demo A demo showing two nodes reaching agreement on the valuation of a derivatives portfolio.
  • notary-demo A simple demonstration of a node getting multiple transactions notarised by a single or distributed (Raft or BFT SMaRt) notary.
  • bank-of-corda-demo A demo showing a node acting as an issuer of fungible assets (initially Cash)