This is the invoicing CorDapp solution built during the PSL hackathon
This was built using the Kotlin version of the CorDapp template.
See https://docs.corda.net/getting-set-up.html.
See https://docs.corda.net/tutorial-cordapp.html#running-the-example-cordapp.
You should extend this template as follows:
- Add your own state and contract definitions under
cordapp-contracts-states/src/main/kotlin/
- Add your own flow definitions under
cordapp/src/main/kotlin/
- Extend or replace the client and webserver under
clients/src/main/kotlin/
For a guided example of how to extend this template, see the Hello, World! tutorial here.
-
run vaultQuery contractStateType: com.template.InvoiceState
-
flow start InvoiceIssueFlow buyer: "Buyer", amount: 500, status: "CREATED"
-
run vaultQuery contractStateType: com.template.InvoiceState
-
flow start InvoiceSettlementFlow linearIdentifier: 3d02ddfc-4056-42bb-beee-7ff723497748
-
run vaultQuery contractStateType: com.template.InvoiceState
- Write tests for states, contracts, flows