Skip to content

Commit

Permalink
Added readme
Browse files Browse the repository at this point in the history
  • Loading branch information
parisyup committed May 2, 2024
1 parent 7b78bb8 commit c572920
Show file tree
Hide file tree
Showing 129 changed files with 126 additions and 3,801 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public String call(@NotNull ClientRequestBody requestBody) {
UUID proposalID = request.getProposalID();

// Getting the old Proposal State as an input state
List<StateAndRef<Proposal>> proposalStatAndRef = utxoLedgerService.findUnconsumedStatesByExactType(Proposal.class ,100, Instant.now()).getResults();
List<StateAndRef<Proposal>> proposalStatAndRef = utxoLedgerService.findUnconsumedStatesByExactType (Proposal.class ,100, Instant.now()).getResults();
List<StateAndRef<Proposal>> proposalStatAndRefWithId = proposalStatAndRef.stream().
filter(it -> it.getState().getContractState().getProposalID().equals(proposalID)).collect(Collectors.toList());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public String call(@NotNull ClientRequestBody requestBody) {
UUID proposalID = request.getProposalID();

// Getting the old Proposal State as an input state
List<StateAndRef<Proposal>> proposalStatAndRef = utxoLedgerService.findUnconsumedStatesByExactType(Proposal.class,100, Instant.now()).getResults();
List<StateAndRef<Proposal>> proposalStatAndRef = utxoLedgerService.findUnconsumedStatesByExactType (Proposal.class,100, Instant.now()).getResults();
List<StateAndRef<Proposal>> proposalStatAndRefWithId = proposalStatAndRef.stream().
filter(it -> it.getState().getContractState().getProposalID().equals(proposalID)).collect(Collectors.toList());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class ListProposal implements ClientStartableFlow {
@Override
public String call(@NotNull ClientRequestBody requestBody) {
// Queries the VNode's vault for unconsumed states and converts the result to a serializable DTO.
List<StateAndRef<Proposal>> states = utxoLedgerService.findUnconsumedStatesByExactType(Proposal.class, 100, Instant.now()).getResults();
List<StateAndRef<Proposal>> states = utxoLedgerService.findUnconsumedStatesByExactType (Proposal.class, 100, Instant.now()).getResults();
List<ListProposalArgs> results = states.stream().map(stateAndRef ->
new ListProposalArgs(
stateAndRef.getState().getContractState().getProposalID(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class ListTrade implements ClientStartableFlow {
@Override
public String call(@NotNull ClientRequestBody requestBody) {
// Queries the VNode's vault for unconsumed states and converts the result to a serializable DTO.
List<StateAndRef<Trade>> states = utxoLedgerService.findUnconsumedStatesByExactType(Trade.class, 100, Instant.now()).getResults();
List<StateAndRef<Trade>> states = utxoLedgerService.findUnconsumedStatesByExactType (Trade.class, 100, Instant.now()).getResults();
List<ListTradeArgs> results = states.stream().map(stateAndRef ->
new ListTradeArgs(
stateAndRef.getState().getContractState().getProposalID(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public String call(ClientRequestBody requestBody) {
int amountSettle = Integer.parseInt(flowArgs.getAmountSettle());

//query the IOU input
List<StateAndRef<IOUState>> iouStateAndRefs = ledgerService.findUnconsumedStatesByExactType(IOUState.class,100, Instant.now()).getResults();
List<StateAndRef<IOUState>> iouStateAndRefs = ledgerService.findUnconsumedStatesByExactType (IOUState.class,100, Instant.now()).getResults();
List<StateAndRef<IOUState>> iouStateAndRefsWithId = iouStateAndRefs.stream()
.filter(sar -> sar.getState().getContractState().getLinearId().equals(iouID)).collect(toList());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public String call(ClientRequestBody requestBody) {
UUID iouID = flowArgs.getIouID();

//query the IOU input
List<StateAndRef<IOUState>> iouStateAndRefs = ledgerService.findUnconsumedStatesByExactType(IOUState.class,100, Instant.now()).getResults();
List<StateAndRef<IOUState>> iouStateAndRefs = ledgerService.findUnconsumedStatesByExactType (IOUState.class,100, Instant.now()).getResults();
List<StateAndRef<IOUState>> iouStateAndRefsWithId = iouStateAndRefs.stream()
.filter(sar -> sar.getState().getContractState().getLinearId().equals(iouID)).collect(toList());
if (iouStateAndRefsWithId.size() != 1) throw new CordaRuntimeException("Multiple or zero IOU states with id " + iouID + " found");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public String call(ClientRequestBody requestBody) {
log.info("ListIOUFlow.call() called");

// Queries the VNode's vault for unconsumed states and converts the result to a serializable DTO.
List<StateAndRef<IOUState>> states = utxoLedgerService.findUnconsumedStatesByExactType(IOUState.class,100, Instant.now()).getResults();
List<StateAndRef<IOUState>> states = utxoLedgerService.findUnconsumedStatesByExactType (IOUState.class,100, Instant.now()).getResults();
List<ListIOUFlowResults> results = states.stream().map(stateAndRef ->
new ListIOUFlowResults(
stateAndRef.getState().getContractState().getLinearId(),
Expand Down
14 changes: 0 additions & 14 deletions java-samples/customJSON/.github/workflows/check-pr-title.yaml

This file was deleted.

91 changes: 0 additions & 91 deletions java-samples/customJSON/.gitignore

This file was deleted.

14 changes: 0 additions & 14 deletions java-samples/customJSON/.snyk

This file was deleted.

123 changes: 0 additions & 123 deletions java-samples/customJSON/README.md

This file was deleted.

74 changes: 0 additions & 74 deletions java-samples/customJSON/build.gradle

This file was deleted.

Loading

0 comments on commit c572920

Please sign in to comment.