You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This CorDapp allows nodes to reach agreement over arbitrary strings of text, but only with parties that are not included in the blacklist uploaded to the nodes as an [attachment](https://training.corda.net/corda-details/attachments/).
This CorDapp is a simple showcase of [confidential identities](https://docs.corda.net/docs/corda-os/api-identity.html#confidential-identities) (i.e. anonymous public keys).
This Cordapp shows how to trigger a flow with vault update(completion of prior flows) using [CordaService](https://training.corda.net/corda-details/automation/#services) & [trackby](https://training.corda.net/corda-details/automation-solution/#track-and-notify).
This CorDapp shows how Corda's [observable states](https://docs.corda.net/docs/corda-os/4.4/tutorial-observer-nodes.html#observer-nodes) feature works. Observable states is the ability for nodes who are not participants in a transaction to still store them if the transactions are sent to them.
This CorDapp demonstrates [QueryableState](https://docs.corda.net/docs/corda-os/api-persistence.html) works in Corda. Corda allows developers to have the ability to expose some or all parts of their states to a custom database table using an ORM tools. To support this feature the state must implement `QueryableState`.
This CorDapp demonstrates the use of [reference states](https://training.corda.net/corda-details/reference-states/) in a transaction and in the verification method of a contract.
39
38
40
39
This CorDapp allows two nodes to enter into an IOU agreement, but enforces that both parties belong to a list of sanctioned entities. This list of sanctioned entities is taken from a referenced SanctionedEntities state.
This CorDapp is a simple showcase of [scheduled activities](https://docs.corda.net/docs/corda-os/event-scheduling.html#how-to-implement-scheduled-events) (i.e. activities started by a node at a specific time without direct input from the node owner).
This CorDapp allows nodes to reach agreement over arbitrary strings of text, but only with parties that are not included in the blacklist uploaded to the nodes as an [attachment](https://training.corda.net/corda-details/attachments/).
4
4
@@ -15,22 +15,15 @@ parties as being banned from entering into agreements:
15
15
* Tifton Banking Company
16
16
17
17
The blacklist jar is uploaded as an attachment when building a transaction, and used in the `AgreementContract` to
18
-
check that the parties to the `AgreementState` are not blacklisted.
19
-
20
-
### Flows
21
-
22
-
There aren't many flows here, so it's quick to cover.
23
-
24
-
There's a [proposal](./workflows/src/main/java/net/corda/examples/attachments/ProposeFlow.java) and [acceptance](./workflows/src/main/java/net/corda/examples/attachments/AgreeFlow.java) flow, and the blacklist is added as an attachment [here](./workflows/src/main/java/net/corda/examples/attachments/ProposeFlow.java#L47-L50).
18
+
check that the parties to the `AgreementState` are not blacklisted. There aren't many flows here, so it's quick to cover. There's a proposal and acceptance flow, and the blacklist is added as an attachment.
25
19
26
20
27
21
28
22
## Usage
29
23
24
+
## Pre-Requisites
30
25
31
-
### Pre-requisites:
32
-
33
-
See https://docs.corda.net/getting-set-up.html.
26
+
For development environment setup, please refer to: [Setup Guide](https://docs.corda.net/getting-set-up.html).
34
27
35
28
36
29
### Running the CorDapp
@@ -54,8 +47,8 @@ be able to *initiate* an agreement. The blacklist can be uploaded via [RPC](http
Or by running the `Upload blacklist` run configuration from IntelliJ.
61
54
@@ -71,7 +64,7 @@ the shell of Monogram Bank:
71
64
72
65
start ProposeFlow agreementTxt: "A and B agree Y", counterparty: "Hiseville Deposit Bank", untrustedPartiesAttachment: "4CEC607599723D7E0393EB5F05F24562732CD1B217DEAEDEABD4C25AFE5B333A"
73
66
74
-
If you now run `run vaultQuery contractStateType: net.corda.examples.attachments.states.AgreementState` on either the
67
+
If you now run `run vaultQuery contractStateType: net.corda.samples.blacklist.states.AgreementState` on either the
75
68
Monogram Bank or Hiseville Deposit Bank node, you should see the agreement stored:
Copy file name to clipboardExpand all lines: Features/attachment-blacklist/contracts/src/main/java/net/corda/samples/blacklist/contracts/AgreementContract.java
0 commit comments