corda/samples
Roger Willis 8207ac3222
CORDA-1332 Reference input states (#3525)
* * First commit for reference input states feature.

* Added docs.
* Added additional test.

* Fixed whitespace.

* Rebased to master.
* Updated Raft and persistent notary implementations.

* Updated changelog.

* Updated topo sort to handle reference states.
* Stubbed out with referenced states flow.

* Added WithReferencedStatesFlow.
* Added Tests for WithReferencedStatesFlow.
* Added ReferenceState type.
* Rebased to latest version of master.

* Added better comments.
* Updated unit test.

* Added comment to explain a little hack.
* Fixed broken contract upgrade RPC test.

* Added minimum platform version check.
* Updated mock network so that notary nodes inherit the platform version set by the network's minimum platform version.
* References states can now only be used when minimum platform version >= 4.

* Created a new file to hold async operations as "WaitForStatesToUpdate" is broadly reusable.
* Refactored WithReferenceStatesFlow

* Updated javadoc for WaitForStatesToUpdate aysnc operation.

* Added network parameters property to InternalMockNetwork.

* Added min platform version capability to mock services.

* Removed erroneous chars from file.

* Made async operation internal and now call it from FlowLogic.
* Moved some transaction checking code around.

* Removed serializable annotation from referenced state and ref.
* Added reference states design doc.
* Added missing KDocs.
* Updated with reference states flow to handle consecutive update races.
* Made platform version info an inheritable thread local.
* Fixed various typos.
* Updated docs.

* Fixed race.

* Removed min platform version checks as API needs more thought.

* Added deprecation to method and supressed warnings.

* Renamed WaitForStatesToUpdate to WaitForStateConsumption.
* Fixed race in WaitForStateConsumption.

* Addressed PR comments and updated comments / KDocs.

* Reverse vault bugfixes.

* * Vault bug fixes.

* * Fixed broken test.
* Moved WaitForStateConsumption to internal package.
2018-07-25 14:06:56 +01:00
..
attachment-demo CORDA-1743: Remove isDebug = true from Node driver to speed-up integration tests execution. (#3535) 2018-07-09 16:37:01 +01:00
bank-of-corda-demo Retired BankOfCordaRPCClientTest as it's mostly duplicated by BankOfCordaCordformTest (#3565) 2018-07-13 10:37:51 +01:00
cordapp-configuration Fixed the CorDapp configuration demo (#2967) 2018-04-16 17:23:11 +01:00
irs-demo CORDA-1743: Remove isDebug = true from Node driver to speed-up integration tests execution. (#3535) 2018-07-09 16:37:01 +01:00
network-verifier add simple network verification cordapp (#3412) 2018-07-04 11:33:21 +01:00
notary-demo CORDA-1332 Reference input states (#3525) 2018-07-25 14:06:56 +01:00
simm-valuation-demo CORDA-1800: Shrink the Simm Valuation Demo's contract states using ProGuard. (#3586) 2018-07-17 12:31:44 +01:00
trader-demo CORDA-1743: Remove isDebug = true from Node driver to speed-up integration tests execution. (#3535) 2018-07-09 16:37:01 +01: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)