Let’s get you on a blockchain

September 01, 2020

Image for post

A photo of a Gordon wave model among blocks chained together with strings

Image for post

A yo CorDapp diagram

Here’s how we get this working

davidawad@boron ~/Desktop> git clone https://github.com/corda/samples-java/
Cloning into ‘samples-java’…
remote: Enumerating objects: 405, done.
remote: Counting objects: 100% (405/405), done.
remote: Compressing objects: 100% (211/211), done.
Receiving objects: 14% (527/3590), 4.06 MiB | 480.00 KiB/sdavidawad@boron ~/Desktop> cd Basic/yo-cordapp/

Image for post

                                              here’s my terminal so you can see where this is going

davidawad@boron ~/Desktop>
davidawad@boron ~/Desktop> ./gradlew deployNodes
davidawad@boron ~/D/s/B/yo-cordapp>master> ./build/nodes/runnodes

Image for post

The Corda shells running on my local machine
Tue Jul 21 16:07:56 EDT 2020>>> flow list
net.corda.core.flows.ContractUpgradeFlow$Authorise
net.corda.core.flows.ContractUpgradeFlow$Deauthorise
net.corda.core.flows.ContractUpgradeFlow$Initiate
net.corda.examples.yo.flows.YoFlow
Tue Jul 21 16:22:24 EDT 2020>>> flow start YoFlow target: PartyB✅   Starting
 ✅   Creating a new Yo!
 ✅   Signing the Yo!
 ✅   Verifying the Yo!
 ✅   Sending the Yo!
          Requesting signature by notary service
              Requesting signature by Notary service
              Validating response from Notary service
    ➡️   Broadcasting transaction to participants
    Done
Tue Jul 21 16:07:57 EDT 2020>>> run vaultQuery contractStateType: net.corda.examples.yo.states.YoState
states:
- state:
    data: !<net.corda.examples.yo.states.YoState>
      origin: "O=PartyA, L=London, C=GB"
      target: "O=PartyB, L=New York, C=US"
      yo: "Yo!"
    contract: "net.corda.examples.yo.contracts.YoContract"
    notary: "O=Notary, L=London, C=GB"
    encumbrance: null
    constraint: !  [ . . . ]  status: "UNCONSUMED"
  notary: "O=Notary, L=London, C=GB"
  lockId: null
  lockUpdateTime: null
  relevancyStatus: "RELEVANT"
  constraintInfo:
    constraint:
      key: "aSq9DsNNvGhYxYyqA9wd2eduEAZ5AXWgJTbTEw3G5d2maAq8vtLE4kZHgCs5jcB1N31cx1hpsLeqG2ngSysVHqcXhbNts6SkRWDaV7xNcr6MtcbufGUchxredBb6"
totalStatesAvailable: -1
stateTypes: "UNCONSUMED"
otherResults: []

Share: