This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.helloBlock.flows; | |
import co.paralleluniverse.fibers.Suspendable; | |
import net.corda.core.flows.*; | |
import net.corda.core.transactions.SignedTransaction; | |
@InitiatedBy(helloBlockFlow.class) | |
public class helloBlockFlowResponder extends FlowLogic<SignedTransaction> { | |
private FlowSession counterpartySession; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.helloBlock.flows; | |
import com.helloBlock.contracts.helloBlockContract; | |
import com.helloBlock.states.helloBlockState; | |
import co.paralleluniverse.fibers.Suspendable; | |
import com.google.common.collect.ImmutableList; | |
import com.google.common.collect.ImmutableSet; | |
import net.corda.core.contracts.Command; | |
import net.corda.core.contracts.StateAndContract; | |
import net.corda.core.flows.*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.helloBlock.states; | |
import com.helloBlock.contracts.helloBlockContract; | |
import com.google.common.collect.ImmutableList; | |
import net.corda.core.contracts.BelongsToContract; | |
import net.corda.core.contracts.ContractState; | |
import net.corda.core.identity.AbstractParty; | |
import net.corda.core.serialization.ConstructorForDeserialization; | |
import net.corda.core.serialization.CordaSerializable; | |
import java.util.List; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.helloBlock.contracts; | |
import net.corda.core.contracts.CommandData; | |
import net.corda.core.contracts.CommandWithParties; | |
import net.corda.core.contracts.Contract; | |
import net.corda.core.contracts.TypeOnlyCommandData; | |
import net.corda.core.transactions.LedgerTransaction; | |
import com.helloBlock.states.helloBlockState; | |
import org.jetbrains.annotations.NotNull; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.helloBlock.flows | |
import com.helloBlock.contracts.helloBlockContract | |
import com.helloBlock.states.helloBlockState | |
import co.paralleluniverse.fibers.Suspendable | |
import net.corda.core.contracts.Command | |
import net.corda.core.contracts.StateAndContract | |
import net.corda.core.flows.* | |
import net.corda.core.identity.Party | |
import net.corda.core.transactions.SignedTransaction |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.helloBlock.states | |
import com.helloBlock.contracts.helloBlockContract | |
import net.corda.core.contracts.BelongsToContract | |
import net.corda.core.contracts.ContractState | |
import net.corda.core.identity.Party | |
// ********* | |
// * State * | |
// ********* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.helloBlock.contracts | |
import net.corda.core.contracts.* | |
import net.corda.core.contracts.Requirements.using | |
import net.corda.core.transactions.LedgerTransaction | |
import com.helloBlock.states.helloBlockState | |
// ************ | |
// * Contract * | |
// ************ |