Skip to content

Instantly share code, notes, and snippets.

View akegaviar's full-sized avatar
💭
Chainstacking

Ake akegaviar

💭
Chainstacking
View GitHub Profile
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;
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.*;
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;
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;
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
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 *
// *********
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 *
// ************