corda
Module Contents
alltypes
Module Contents
abstract class AbstractCashFlow<out T> : FlowLogic<T>
abstract class AbstractCashSelection
Module Contents
AbstractCashSelection(maxRetries: Int = 8, retrySleep: Int = 100, retryCap: Int = 2000)
protected abstract fun executeQuery(connection: Connection, amount: Amount<Currency>, lockId: UUID, notary: Party?, onlyFromIssuerParties: Set<AbstractParty>, withIssuerRefs: Set<OpaqueBytes>, withResultSet: (ResultSet) -> Boolean): Boolean
fun getInstance(metadata: () -> DatabaseMetaData): AbstractCashSelection
val instance: AtomicReference<AbstractCashSelection>
protected abstract fun isCompatible(metadata: DatabaseMetaData): Boolean
abstract fun toString(): String
@Suspendable fun unconsumedCashStatesForSpending(services: ServiceHub, amount: Amount<Currency>, onlyFromIssuerParties: Set<AbstractParty> = emptySet(), notary: Party? = null, lockId: UUID, withIssuerRefs: Set<OpaqueBytes> = emptySet()): List<StateAndRef<State>>
@DoNotImplement abstract class AbstractParty : Destination
abstract class AbstractStateReplacementFlow
enum class AccrualAdjustment
data class Actor
enum class AggregateFunctionType
interface AllPossibleRecipients : MessageRecipients
object AlwaysAcceptAttachmentConstraint : AttachmentConstraint
data class Amount<T : Any> : Comparable<Amount<T>>
class AmountTransfer<T : Any, P : Any>
Module Contents
AmountTransfer(quantityDelta: Long, token: T, source: P, destination: P)
fun apply(balances: List<SourceAndAmount<T, P>>, newRef: Any? = null): List<SourceAndAmount<T, P>>
val destination: P
fun equals(other: Any?): Boolean
@JvmStatic @JvmOverloads fun <T : Any, P : Any> fromDecimal(displayQuantityDelta: BigDecimal, token: T, source: P, destination: P, rounding: RoundingMode = RoundingMode.DOWN): AmountTransfer<T, P>
fun hashCode(): Int
fun novate(centralParty: P): List<AmountTransfer<T, P>>
operator fun plus(other: AmountTransfer<T, P>): AmountTransfer<T, P>
val quantityDelta: Long
val source: P
fun toDecimal(): BigDecimal
val token: T
@JvmStatic fun <T : Any, P : Any> zero(token: T, source: P, destination: P): AmountTransfer<T, P>
class AnonymousParty : Destination, AbstractParty
interface AppServiceHub : ServiceHub
@DoNotImplement interface Attachment : NamedByHash
@DoNotImplement interface AttachmentConstraint
typealias AttachmentFixup = Pair<Set<AttachmentId>, Set<AttachmentId>>
typealias AttachmentId = SecureHash
sealed class AttachmentQueryCriteria : GenericQueryCriteria<AttachmentQueryCriteria, AttachmentsQueryCriteriaParser>, ChainableQueryCriteria<AttachmentQueryCriteria, AttachmentsQueryCriteriaParser>
Module Contents
open fun and(criteria: AttachmentQueryCriteria): AttachmentQueryCriteria
class AndComposition : AttachmentQueryCriteria, AndVisitor<AttachmentQueryCriteria, AttachmentsQueryCriteriaParser, AttachmentSort>
data class AttachmentsQueryCriteria : AttachmentQueryCriteria
Module Contents
AttachmentsQueryCriteria(uploaderCondition: ColumnPredicate<String>? = null, filenameCondition: ColumnPredicate<String>? = null, uploadDateCondition: ColumnPredicate<Instant>? = null)
AttachmentsQueryCriteria(uploaderCondition: ColumnPredicate<String>?)
AttachmentsQueryCriteria(uploaderCondition: ColumnPredicate<String>?, filenameCondition: ColumnPredicate<String>?)
AttachmentsQueryCriteria(uploaderCondition: ColumnPredicate<String>? = null, filenameCondition: ColumnPredicate<String>? = null, uploadDateCondition: ColumnPredicate<Instant>? = null, contractClassNamesCondition: ColumnPredicate<List<ContractClassName>>? = null, signersCondition: ColumnPredicate<List<PublicKey>>? = null, isSignedCondition: ColumnPredicate<Boolean>? = null, versionCondition: ColumnPredicate<Int>? = null)
val contractClassNamesCondition: ColumnPredicate<List<ContractClassName>>?
fun copy(uploaderCondition: ColumnPredicate<String>? = this.uploaderCondition, filenameCondition: ColumnPredicate<String>? = this.filenameCondition, uploadDateCondition: ColumnPredicate<Instant>? = this.uploadDateCondition): AttachmentsQueryCriteria
val filenameCondition: ColumnPredicate<String>?
fun isSigned(isSignedPredicate: ColumnPredicate<Boolean>): AttachmentsQueryCriteria
val isSignedCondition: ColumnPredicate<Boolean>?
val signersCondition: ColumnPredicate<List<PublicKey>>?
val uploadDateCondition: ColumnPredicate<Instant>?
val uploaderCondition: ColumnPredicate<String>?
val versionCondition: ColumnPredicate<Int>?
fun visit(parser: AttachmentsQueryCriteriaParser): Collection<Predicate>
fun withContractClassNames(contractClassNamesPredicate: ColumnPredicate<List<ContractClassName>>): AttachmentsQueryCriteria
fun withFilename(filenamePredicate: ColumnPredicate<String>): AttachmentsQueryCriteria
fun withSigners(signersPredicate: ColumnPredicate<List<PublicKey>>): AttachmentsQueryCriteria
fun withUploadDate(uploadDatePredicate: ColumnPredicate<Instant>): AttachmentsQueryCriteria
fun withUploader(uploaderPredicate: ColumnPredicate<String>): AttachmentsQueryCriteria
fun withVersion(versionPredicate: ColumnPredicate<Int>): AttachmentsQueryCriteria
open fun or(criteria: AttachmentQueryCriteria): AttachmentQueryCriteria
class OrComposition : AttachmentQueryCriteria, OrVisitor<AttachmentQueryCriteria, AttachmentsQueryCriteriaParser, AttachmentSort>
class AttachmentResolutionException : FlowException
class AttachmentResolutionException : FlowException
data class AttachmentSort : BaseSort
interface AttachmentsQueryCriteriaParser : BaseQueryCriteriaParser<AttachmentQueryCriteria, AttachmentsQueryCriteriaParser, AttachmentSort>
@DoNotImplement interface AttachmentStorage
data class AuthServiceId
@Target([AnnotationTarget.PROPERTY]) annotation class AutoAcceptable
object AutomaticHashConstraint : AttachmentConstraint
object AutomaticPlaceholderConstraint : AttachmentConstraint
interface BaseQueryCriteriaParser<Q : GenericQueryCriteria<Q, P>, in P : BaseQueryCriteriaParser<Q, P, S>, in S : BaseSort>
abstract class BaseSort
@DoNotImplement abstract class BaseTransaction : NamedByHash
@Target([AnnotationTarget.CLASS]) annotation class BelongsToContract
data class BilateralNetState<P : Any> : NetState<P>
interface BilateralNettableState<N : BilateralNettableState<N>>
enum class BinaryComparisonOperator : Operator
enum class BinaryLogicalOperator : Operator
class BrokenAttachmentException : FlowException
object Builder
Module Contents
fun <O, R> KProperty1<O, R?>.avg(groupByColumns: List<KProperty1<O, R>>? = null, orderBy: Direction? = null): AggregateFunctionExpression<O, R>
@JvmStatic @JvmOverloads fun <R> Field.avg(groupByColumns: List<Field>? = null, orderBy: Direction? = null): AggregateFunctionExpression<Any, R>
@JvmStatic @JvmOverloads fun <R> FieldInfo.avg(groupByColumns: List<FieldInfo>? = null, orderBy: Direction? = null): AggregateFunctionExpression<Any, R>
fun <O, R : Comparable<R>> KProperty1<O, R?>.between(from: R, to: R): ColumnPredicateExpression<O, R>
@JvmStatic fun <R : Comparable<R>> Field.between(from: R, to: R): ColumnPredicateExpression<Any, R>
@JvmStatic fun <R : Comparable<R>> FieldInfo.between(from: R, to: R): ColumnPredicateExpression<Any, R>
fun <R : Comparable<R>> between(from: R, to: R): Between<R>
fun <R : Comparable<R>> compare(operator: BinaryComparisonOperator, value: R): BinaryComparison<R>
fun <O, R : Comparable<R>> KProperty1<O, R?>.comparePredicate(operator: BinaryComparisonOperator, value: R): ColumnPredicateExpression<O, R>
fun <R : Comparable<R>> Field.comparePredicate(operator: BinaryComparisonOperator, value: R): ColumnPredicateExpression<Any, R>
fun <R : Comparable<R>> FieldInfo.comparePredicate(operator: BinaryComparisonOperator, value: R): ColumnPredicateExpression<Any, R>
fun <O, R> KProperty1<O, R?>.count(): AggregateFunctionExpression<O, R>
@JvmStatic fun Field.count(): AggregateFunctionExpression<Any, Any>
@JvmStatic fun FieldInfo.count(): AggregateFunctionExpression<Any, Any>
@JvmOverloads fun <O, R> KProperty1<O, R?>.equal(value: R, exactMatch: Boolean = true): ColumnPredicateExpression<O, R>
@JvmStatic @JvmOverloads fun <R> Field.equal(value: R, exactMatch: Boolean = true): ColumnPredicateExpression<Any, R>
@JvmStatic @JvmOverloads fun <R> FieldInfo.equal(value: R, exactMatch: Boolean = true): ColumnPredicateExpression<Any, R>
@JvmOverloads fun <R> equal(value: R, exactMatch: Boolean = true): EqualityComparison<R>
fun <O, R> KProperty1<O, R?>.functionPredicate(predicate: ColumnPredicate<R>, groupByColumns: List<Column<O, R>>? = null, orderBy: Direction? = null): AggregateFunctionExpression<O, R>
fun <R> Field.functionPredicate(predicate: ColumnPredicate<R>, groupByColumns: List<Column<Any, R>>? = null, orderBy: Direction? = null): AggregateFunctionExpression<Any, R>
fun <R> FieldInfo.functionPredicate(predicate: ColumnPredicate<R>, groupByColumns: List<Column<Any, R>>? = null, orderBy: Direction? = null): AggregateFunctionExpression<Any, R>
fun <O, R : Comparable<R>> KProperty1<O, R?>.greaterThan(value: R): ColumnPredicateExpression<O, R>
@JvmStatic fun <R : Comparable<R>> Field.greaterThan(value: R): ColumnPredicateExpression<Any, R>
@JvmStatic fun <R : Comparable<R>> FieldInfo.greaterThan(value: R): ColumnPredicateExpression<Any, R>
fun <R : Comparable<R>> greaterThan(value: R): BinaryComparison<R>
fun <O, R : Comparable<R>> KProperty1<O, R?>.greaterThanOrEqual(value: R): ColumnPredicateExpression<O, R>
@JvmStatic fun <R : Comparable<R>> Field.greaterThanOrEqual(value: R): ColumnPredicateExpression<Any, R>
@JvmStatic fun <R : Comparable<R>> FieldInfo.greaterThanOrEqual(value: R): ColumnPredicateExpression<Any, R>
fun <R : Comparable<R>> greaterThanOrEqual(value: R): BinaryComparison<R>
@JvmOverloads fun <O, R : Comparable<R>> KProperty1<O, R?>.in(collection: Collection<R>, exactMatch: Boolean = true): ColumnPredicateExpression<O, R>
@JvmStatic @JvmOverloads fun <R : Comparable<R>> Field.in(collection: Collection<R>, exactMatch: Boolean = true): ColumnPredicateExpression<Any, R>
@JvmStatic @JvmOverloads fun <R : Comparable<R>> FieldInfo.in(collection: Collection<R>, exactMatch: Boolean = true): ColumnPredicateExpression<Any, R>
@JvmOverloads fun <R : Comparable<R>> in(collection: Collection<R>, exactMatch: Boolean = true): CollectionExpression<R>
fun <R> isNotNull(): NullExpression<R>
fun <R> isNull(): NullExpression<R>
fun <O, R> KProperty1<O, R?>.isNull(): ColumnPredicateExpression<O, R>
@JvmStatic fun Field.isNull(): ColumnPredicateExpression<Any, Any>
@JvmStatic fun FieldInfo.isNull(): ColumnPredicateExpression<Any, Any>
fun <O, R : Comparable<R>> KProperty1<O, R?>.lessThan(value: R): ColumnPredicateExpression<O, R>
@JvmStatic fun <R : Comparable<R>> Field.lessThan(value: R): ColumnPredicateExpression<Any, R>
@JvmStatic fun <R : Comparable<R>> FieldInfo.lessThan(value: R): ColumnPredicateExpression<Any, R>
fun <R : Comparable<R>> lessThan(value: R): BinaryComparison<R>
fun <O, R : Comparable<R>> KProperty1<O, R?>.lessThanOrEqual(value: R): ColumnPredicateExpression<O, R>
@JvmStatic fun <R : Comparable<R>> Field.lessThanOrEqual(value: R): ColumnPredicateExpression<Any, R>
@JvmStatic fun <R : Comparable<R>> FieldInfo.lessThanOrEqual(value: R): ColumnPredicateExpression<Any, R>
fun <R : Comparable<R>> lessThanOrEqual(value: R): BinaryComparison<R>
@JvmOverloads fun like(string: String, exactMatch: Boolean = true): Likeness
@JvmOverloads fun <O> KProperty1<O, String?>.like(string: String, exactMatch: Boolean = true): ColumnPredicateExpression<O, String>
@JvmStatic @JvmOverloads fun Field.like(string: String, exactMatch: Boolean = true): ColumnPredicateExpression<Any, String>
@JvmStatic @JvmOverloads fun FieldInfo.like(string: String, exactMatch: Boolean = true): ColumnPredicateExpression<Any, String>
fun <O, R> KProperty1<O, R?>.max(groupByColumns: List<KProperty1<O, R>>? = null, orderBy: Direction? = null): AggregateFunctionExpression<O, R>
@JvmStatic @JvmOverloads fun <R> Field.max(groupByColumns: List<Field>? = null, orderBy: Direction? = null): AggregateFunctionExpression<Any, R>
@JvmStatic @JvmOverloads fun <R> FieldInfo.max(groupByColumns: List<FieldInfo>? = null, orderBy: Direction? = null): AggregateFunctionExpression<Any, R>
fun <O, R> KProperty1<O, R?>.min(groupByColumns: List<KProperty1<O, R>>? = null, orderBy: Direction? = null): AggregateFunctionExpression<O, R>
@JvmStatic @JvmOverloads fun <R> Field.min(groupByColumns: List<Field>? = null, orderBy: Direction? = null): AggregateFunctionExpression<Any, R>
@JvmStatic @JvmOverloads fun <R> FieldInfo.min(groupByColumns: List<FieldInfo>? = null, orderBy: Direction? = null): AggregateFunctionExpression<Any, R>
@JvmOverloads fun <O, R> KProperty1<O, R?>.notEqual(value: R, exactMatch: Boolean = true): ColumnPredicateExpression<O, R>
@JvmStatic @JvmOverloads fun <R> Field.notEqual(value: R, exactMatch: Boolean = true): ColumnPredicateExpression<Any, R>
@JvmStatic @JvmOverloads fun <R> FieldInfo.notEqual(value: R, exactMatch: Boolean = true): ColumnPredicateExpression<Any, R>
@JvmOverloads fun <R> notEqual(value: R, exactMatch: Boolean = true): EqualityComparison<R>
@JvmOverloads fun <O, R : Comparable<R>> KProperty1<O, R?>.notIn(collection: Collection<R>, exactMatch: Boolean = true): ColumnPredicateExpression<O, R>
@JvmStatic @JvmOverloads fun <R : Comparable<R>> Field.notIn(collection: Collection<R>, exactMatch: Boolean = true): ColumnPredicateExpression<Any, R>
@JvmStatic @JvmOverloads fun <R : Comparable<R>> FieldInfo.notIn(collection: Collection<R>, exactMatch: Boolean = true): ColumnPredicateExpression<Any, R>
@JvmOverloads fun <R : Comparable<R>> notIn(collection: Collection<R>, exactMatch: Boolean = true): CollectionExpression<R>
@JvmOverloads fun notLike(string: String, exactMatch: Boolean = true): Likeness
@JvmOverloads fun <O> KProperty1<O, String?>.notLike(string: String, exactMatch: Boolean = true): ColumnPredicateExpression<O, String>
@JvmStatic @JvmOverloads fun Field.notLike(string: String, exactMatch: Boolean = true): ColumnPredicateExpression<Any, String>
@JvmStatic @JvmOverloads fun FieldInfo.notLike(string: String, exactMatch: Boolean = true): ColumnPredicateExpression<Any, String>
fun <O, R> KProperty1<O, R?>.notNull(): ColumnPredicateExpression<O, R>
@JvmStatic fun Field.notNull(): ColumnPredicateExpression<Any, Any>
@JvmStatic fun FieldInfo.notNull(): ColumnPredicateExpression<Any, Any>
fun <O, R> KProperty1<O, R?>.predicate(predicate: ColumnPredicate<R>): ColumnPredicateExpression<O, R>
fun <R> Field.predicate(predicate: ColumnPredicate<R>): ColumnPredicateExpression<Any, R>
fun <R> FieldInfo.predicate(predicate: ColumnPredicate<R>): ColumnPredicateExpression<Any, R>
fun <O, R> KProperty1<O, R?>.sum(groupByColumns: List<KProperty1<O, R>>? = null, orderBy: Direction? = null): AggregateFunctionExpression<O, R>
@JvmStatic @JvmOverloads fun <R> Field.sum(groupByColumns: List<Field>? = null, orderBy: Direction? = null): AggregateFunctionExpression<Any, R>
@JvmStatic @JvmOverloads fun <R> FieldInfo.sum(groupByColumns: List<FieldInfo>? = null, orderBy: Direction? = null): AggregateFunctionExpression<Any, R>
open class BusinessCalendar
Module Contents
BusinessCalendar(holidayDates: SortedSet<LocalDate>)
open fun applyRollConvention(testDate: LocalDate, dateRollConvention: DateRollConvention): LocalDate
@JvmStatic fun calculateDaysBetween(startDate: LocalDate, endDate: LocalDate, dcbYear: DayCountBasisYear, dcbDay: DayCountBasisDay): Int
@JvmStatic fun createGenericSchedule(startDate: LocalDate, period: Frequency, calendar: BusinessCalendar = EMPTY, dateRollConvention: DateRollConvention = DateRollConvention.Following, noOfAdditionalPeriods: Int = Integer.MAX_VALUE, endDate: LocalDate? = null, periodOffset: Int? = null): List<LocalDate>
val EMPTY: BusinessCalendar
open fun equals(other: Any?): Boolean
@JvmStatic fun getOffsetDate(startDate: LocalDate, period: Frequency, steps: Int = 1): LocalDate
open fun hashCode(): Int
val holidayDates: SortedSet<LocalDate>
open fun isWorkingDay(date: LocalDate): Boolean
fun moveBusinessDays(date: LocalDate, direction: DateRollDirection, i: Int): LocalDate
@JvmStatic fun parseDateFromString(it: String): LocalDate
operator fun plus(other: BusinessCalendar): BusinessCalendar
open fun toString(): String
sealed class ByteSequence : Comparable<ByteSequence>
class Cash : OnLedgerAsset<Currency, Commands, State>
Module Contents
Cash()
interface Commands : CommandData
fun deriveState(txState: TransactionState<State>, amount: Amount<Issued<Currency>>, owner: AbstractParty): TransactionState<State>
fun extractCommands(commands: Collection<CommandWithParties<CommandData>>): List<CommandWithParties<Commands>>
fun generateExitCommand(amount: Amount<Issued<Currency>>): Exit
fun generateIssue(tx: TransactionBuilder, tokenDef: Issued<Currency>, pennies: Long, owner: AbstractParty, notary: Party): Set<PublicKey>
fun generateIssue(tx: TransactionBuilder, amount: Amount<Issued<Currency>>, owner: AbstractParty, notary: Party): Set<PublicKey>
fun generateMoveCommand(): Move
const val PROGRAM_ID: ContractClassName
data class State : FungibleAsset<Currency>, QueryableState
fun verify(tx: LedgerTransaction): Unit
class CashException : FlowException
@InitiatingFlow @StartableByRPC class CashExitFlow : AbstractCashFlow<Result>
@InitiatedBy(NormalClass(value=net/corda/finance/flows/CashExitFlow)) class CashExitResponderFlow : FlowLogic<Unit>
@StartableByRPC class CashIssueAndPaymentFlow : AbstractCashFlow<Result>
@StartableByRPC class CashIssueFlow : AbstractCashFlow<Result>
@StartableByRPC @InitiatingFlow open class CashPaymentFlow : AbstractCashFlow<Result>
Module Contents
CashPaymentFlow(amount: Amount<Currency>, recipient: Party)
CashPaymentFlow(amount: Amount<Currency>, recipient: Party, anonymous: Boolean)
CashPaymentFlow(amount: Amount<Currency>, recipient: Party, anonymous: Boolean, notary: Party)
CashPaymentFlow(request: PaymentRequest)
CashPaymentFlow(amount: Amount<Currency>, recipient: Party, anonymous: Boolean, progressTracker: ProgressTracker, issuerConstraint: Set<Party> = emptySet(), notary: Party? = null)
val amount: Amount<Currency>
val anonymous: Boolean
@Suspendable open fun call(): Result
val issuerConstraint: Set<Party>
val notary: Party?
class PaymentRequest : AbstractRequest
val recipient: Party
@InitiatedBy(NormalClass(value=net/corda/finance/flows/CashPaymentFlow)) class CashPaymentReceiverFlow : FlowLogic<Unit>
object CashSchema
object CashSchema
object CashSchemaV1 : MappedSchema
class CashSelectionH2Impl : AbstractCashSelection
class CashSelectionPostgreSQLImpl : AbstractCashSelection
class CashSelectionSQLServerImpl : AbstractCashSelection
object CashUtils
Module Contents
@JvmStatic @Suspendable fun generateSpend(services: ServiceHub, tx: TransactionBuilder, amount: Amount<Currency>, to: AbstractParty, onlyFromParties: Set<AbstractParty> = emptySet()): Pair<TransactionBuilder, List<PublicKey>>
@JvmStatic @JvmOverloads @Suspendable fun generateSpend(services: ServiceHub, tx: TransactionBuilder, amount: Amount<Currency>, ourIdentity: PartyAndCertificate, to: AbstractParty, onlyFromParties: Set<AbstractParty> = emptySet(), anonymous: Boolean = true): Pair<TransactionBuilder, List<PublicKey>>
@JvmStatic @Suspendable fun generateSpend(services: ServiceHub, tx: TransactionBuilder, payments: List<PartyAndAmount<Currency>>, onlyFromParties: Set<AbstractParty> = emptySet()): Pair<TransactionBuilder, List<PublicKey>>
@JvmStatic @JvmOverloads @Suspendable fun generateSpend(services: ServiceHub, tx: TransactionBuilder, payments: List<PartyAndAmount<Currency>>, ourIdentity: PartyAndCertificate, onlyFromParties: Set<AbstractParty> = emptySet(), anonymous: Boolean = true): Pair<TransactionBuilder, List<PublicKey>>
interface CheckpointCustomSerializer<OBJ, PROXY>
interface ClassWhitelist
interface ClientRelevantError
data class ClientRpcSslOptions
@DoNotImplement abstract class ClusterSpec
enum class CollectionOperator : Operator
@Suspendable class CollectSignatureFlow : FlowLogic<List<TransactionSignature>>
class CollectSignaturesFlow : FlowLogic<SignedTransaction>
class Column<O, out C>
sealed class ColumnPredicate<C>
data class Command<T : CommandData>
data class CommandAndState
interface CommandData
data class CommandWithParties<out T : CommandData>
class CommercialPaper : Contract
object CommercialPaperSchema
object CommercialPaperSchemaV1 : MappedSchema
object CommercialPaperUtils
data class Commodity : TokenizableAssetInfo
object CommonSchema
object CommonSchemaV1 : MappedSchema
data class ComparableRecoveryTimeWindow
open class ComponentGroup
enum class ComponentGroupEnum
class ComponentVisibilityException : CordaException
class CompositeKey : PublicKey
class CompositeKeyFactory : KeyFactorySpi
class CompositeSignature : Signature
data class CompositeSignaturesWithKeys
open class ConnectionFailureException : RPCException
@Target([AnnotationTarget.CONSTRUCTOR]) annotation class ConstructorForDeserialization
enum class ContextPropertyKeys
interface Contract
class ContractAttachment : Attachment
typealias ContractClassName = String
interface ContractState
data class ContractUpgradeFilteredTransaction : CoreTransaction
Module Contents
ContractUpgradeFilteredTransaction(visibleComponents: Map<Int, FilteredComponent>, hiddenComponents: Map<Int, SecureHash>)
ContractUpgradeFilteredTransaction(visibleComponents: Map<Int, FilteredComponent>, hiddenComponents: Map<Int, SecureHash>, digestService: DigestService)
fun copy(visibleComponents: Map<Int, FilteredComponent>, hiddenComponents: Map<Int, SecureHash>): ContractUpgradeFilteredTransaction
val digestService: DigestService
class FilteredComponent
val hiddenComponents: Map<Int, SecureHash>
val id: SecureHash
val inputs: List<StateRef>
val networkParametersHash: SecureHash?
val notary: Party
val outputs: List<TransactionState<ContractState>>
val references: List<StateRef>
val visibleComponents: Map<Int, FilteredComponent>
object ContractUpgradeFlow
class ContractUpgradeLedgerTransaction : FullTransaction, TransactionWithSignatures
Module Contents
ContractUpgradeLedgerTransaction(inputs: List<StateAndRef<ContractState>>, notary: Party, legacyContractAttachment: Attachment, upgradedContractClassName: ContractClassName, upgradedContractAttachment: Attachment, id: SecureHash, privacySalt: PrivacySalt, sigs: List<TransactionSignature>, networkParameters: NetworkParameters)
operator fun component1(): List<StateAndRef<ContractState>>
operator fun component2(): Party
operator fun component3(): Attachment
operator fun component4(): ContractClassName
operator fun component5(): Attachment
operator fun component6(): SecureHash
operator fun component7(): PrivacySalt
operator fun component8(): List<TransactionSignature>
operator fun component9(): NetworkParameters
fun copy(inputs: List<StateAndRef<ContractState>> = this.inputs, notary: Party = this.notary, legacyContractAttachment: Attachment = this.legacyContractAttachment, upgradedContractClassName: ContractClassName = this.upgradedContract::class.java.name, upgradedContractAttachment: Attachment = this.upgradedContractAttachment, id: SecureHash = this.id, privacySalt: PrivacySalt = this.privacySalt, sigs: List<TransactionSignature> = this.sigs, networkParameters: NetworkParameters = this.networkParameters): ContractUpgradeLedgerTransaction
fun equals(other: Any?): Boolean
fun getKeyDescriptions(keys: Set<PublicKey>): List<String>
fun hashCode(): Int
val id: SecureHash
val inputs: List<StateAndRef<ContractState>>
val legacyContractAttachment: Attachment
val networkParameters: NetworkParameters
val notary: Party
val outputs: List<TransactionState<ContractState>>
val privacySalt: PrivacySalt
val references: List<StateAndRef<ContractState>>
val requiredSigningKeys: Set<PublicKey>
val sigs: List<TransactionSignature>
fun toString(): String
val upgradedContractAttachment: Attachment
val upgradedContractClassName: ContractClassName
@DoNotImplement interface ContractUpgradeService
data class ContractUpgradeWireTransaction : CoreTransaction
open class CordaException : Exception, CordaThrowable
interface CordaFuture<V> : Future<V>
@Target([AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.PROPERTY, AnnotationTarget.FUNCTION, AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.CLASS]) annotation class CordaInternal
object CordaObjectIdentifier
object CordaOID
@DoNotImplement interface Cordapp
@DoNotImplement interface CordappConfig
class CordappConfigException : Exception
class CordappContext
data class CordappInfo
@DoNotImplement interface CordappProvider
class CordaRPCClient
Module Contents
CordaRPCClient(hostAndPort: NetworkHostAndPort, configuration: CordaRPCClientConfiguration = CordaRPCClientConfiguration.DEFAULT)
CordaRPCClient(hostAndPort: NetworkHostAndPort, configuration: CordaRPCClientConfiguration = CordaRPCClientConfiguration.DEFAULT, classLoader: ClassLoader)
CordaRPCClient(hostAndPort: NetworkHostAndPort, sslConfiguration: ClientRpcSslOptions? = null, classLoader: ClassLoader? = null)
CordaRPCClient(hostAndPort: NetworkHostAndPort, configuration: CordaRPCClientConfiguration, sslConfiguration: ClientRpcSslOptions?, classLoader: ClassLoader? = null)
CordaRPCClient(haAddressPool: List<NetworkHostAndPort>, configuration: CordaRPCClientConfiguration = CordaRPCClientConfiguration.DEFAULT, sslConfiguration: ClientRpcSslOptions? = null, classLoader: ClassLoader? = null)
CordaRPCClient(hostAndPort: NetworkHostAndPort, configuration: CordaRPCClientConfiguration = CordaRPCClientConfiguration.DEFAULT, sslConfiguration: ClientRpcSslOptions? = null, classLoader: ClassLoader? = null, customSerializers: Set<SerializationCustomSerializer<*, *>>?)
CordaRPCClient(haAddressPool: List<NetworkHostAndPort>, configuration: CordaRPCClientConfiguration = CordaRPCClientConfiguration.DEFAULT, sslConfiguration: ClientRpcSslOptions? = null, classLoader: ClassLoader? = null, customSerializers: Set<SerializationCustomSerializer<*, *>>?)
@CordaInternal @VisibleForTesting fun getRegisteredCustomSerializers(): List<SerializationCustomSerializer<*, *>>
@JvmOverloads fun start(username: String, password: String, gracefulReconnect: GracefulReconnect? = null): CordaRPCConnection
@JvmOverloads fun start(username: String, password: String, targetLegalIdentity: CordaX500Name, gracefulReconnect: GracefulReconnect? = null): CordaRPCConnection
@JvmOverloads fun start(username: String, password: String, externalTrace: Trace?, impersonatedActor: Actor?, gracefulReconnect: GracefulReconnect? = null): CordaRPCConnection
@JvmOverloads fun start(username: String, password: String, externalTrace: Trace?, impersonatedActor: Actor?, targetLegalIdentity: CordaX500Name?, gracefulReconnect: GracefulReconnect? = null): CordaRPCConnection
inline fun <A> use(username: String, password: String, block: (CordaRPCConnection) -> A): A
open class CordaRPCClientConfiguration
Module Contents
CordaRPCClientConfiguration(connectionMaxRetryInterval: Duration = 3.minutes, minimumServerProtocolVersion: Int = PLATFORM_VERSION, trackRpcCallSites: Boolean = java.lang.Boolean.getBoolean("net.corda.client.rpc.trackRpcCallSites"), reapInterval: Duration = 1.seconds, observationExecutorPoolSize: Int = 4, connectionRetryInterval: Duration = 5.seconds, connectionRetryIntervalMultiplier: Double = 1.5, maxReconnectAttempts: Int = unlimitedReconnectAttempts, maxFileSize: Int = 10485760, deduplicationCacheExpiry: Duration = 1.days, openTelemetryEnabled: Boolean = true, simpleLogTelemetryEnabled: Boolean = false, spanStartEndEventsEnabled: Boolean = false, copyBaggageToTags: Boolean = false)
operator fun component1(): Duration
open val connectionMaxRetryInterval: Duration
open val connectionRetryInterval: Duration
open val connectionRetryIntervalMultiplier: Double
fun copy(connectionMaxRetryInterval: Duration = this.connectionMaxRetryInterval, minimumServerProtocolVersion: Int = this.minimumServerProtocolVersion, trackRpcCallSites: Boolean = this.trackRpcCallSites, reapInterval: Duration = this.reapInterval, observationExecutorPoolSize: Int = this.observationExecutorPoolSize, cacheConcurrencyLevel: Int = this.cacheConcurrencyLevel, connectionRetryInterval: Duration = this.connectionRetryInterval, connectionRetryIntervalMultiplier: Double = this.connectionRetryIntervalMultiplier, maxReconnectAttempts: Int = this.maxReconnectAttempts, maxFileSize: Int = this.maxFileSize, deduplicationCacheExpiry: Duration = this.deduplicationCacheExpiry, openTelemetryEnabled: Boolean = this.openTelemetryEnabled, simpleLogTelemetryEnabled: Boolean = this.simpleLogTelemetryEnabled, spanStartEndEventsEnabled: Boolean = this.spanStartEndEventsEnabled, copyBaggageToTags: Boolean = this.copyBaggageToTags): CordaRPCClientConfiguration
open val copyBaggageToTags: Boolean
open val deduplicationCacheExpiry: Duration
val DEFAULT: CordaRPCClientConfiguration
open fun equals(other: Any?): Boolean
open fun hashCode(): Int
open val maxFileSize: Int
open val maxReconnectAttempts: Int
open val minimumServerProtocolVersion: Int
open val observationExecutorPoolSize: Int
open val openTelemetryEnabled: Boolean
open val reapInterval: Duration
open val simpleLogTelemetryEnabled: Boolean
open val spanStartEndEventsEnabled: Boolean
open fun toString(): String
open val trackRpcCallSites: Boolean
class CordaRPCConnection : RPCConnection<CordaRPCOps>
interface CordaRPCOps : RPCOps
Module Contents
abstract fun acceptNewNetworkParameters(parametersHash: SecureHash): Unit
abstract fun addVaultTransactionNote(txnId: SecureHash, txnNote: String): Unit
abstract fun attachmentExists(id: SecureHash): Boolean
abstract fun clearNetworkMapCache(): Unit
abstract fun currentNodeTime(): Instant
abstract fun finishedFlowsWithClientIds(): Map<String, Boolean>
abstract fun finishedFlowsWithClientIdsAsAdmin(): Map<String, Boolean>
abstract fun getVaultTransactionNotes(txnId: SecureHash): Iterable<String>
abstract fun isFlowsDrainingModeEnabled(): Boolean
abstract fun isWaitingForShutdown(): Boolean
abstract fun killFlow(id: StateMachineRunId): Boolean
@RPCReturnsObservables abstract fun networkMapFeed(): DataFeed<List<NodeInfo>, MapChange>
abstract fun networkMapSnapshot(): List<NodeInfo>
abstract val networkParameters: NetworkParameters
@RPCReturnsObservables abstract fun networkParametersFeed(): DataFeed<ParametersUpdateInfo?, ParametersUpdateInfo>
abstract fun nodeDiagnosticInfo(): NodeDiagnosticInfo
abstract fun nodeInfo(): NodeInfo
abstract fun nodeInfoFromParty(party: AbstractParty): NodeInfo?
abstract fun notaryIdentities(): List<Party>
abstract fun notaryPartyFromX500Name(x500Name: CordaX500Name): Party?
abstract fun openAttachment(id: SecureHash): InputStream
abstract fun partiesFromName(query: String, exactMatch: Boolean): Set<Party>
abstract fun partyFromKey(key: PublicKey): Party?
abstract fun queryAttachments(query: AttachmentQueryCriteria, sorting: AttachmentSort?): List<AttachmentId>
@RPCReturnsObservables abstract fun <T> reattachFlowWithClientId(clientId: String): FlowHandleWithClientId<T>?
abstract fun refreshNetworkMapCache(): Unit
abstract fun registeredFlows(): List<String>
abstract fun removeClientId(clientId: String): Boolean
abstract fun removeClientIdAsAdmin(clientId: String): Boolean
abstract fun setFlowsDrainingModeEnabled(enabled: Boolean): Unit
abstract fun shutdown(): Unit
@RPCReturnsObservables abstract fun <T> startFlowDynamic(logicType: Class<out FlowLogic<T>>, vararg args: Any?): FlowHandle<T>
@RPCReturnsObservables abstract fun <T> startFlowDynamicWithClientId(clientId: String, logicType: Class<out FlowLogic<T>>, vararg args: Any?): FlowHandleWithClientId<T>
@RPCReturnsObservables abstract fun <T> startTrackedFlowDynamic(logicType: Class<out FlowLogic<T>>, vararg args: Any?): FlowProgressHandle<T>
@RPCReturnsObservables abstract fun stateMachineRecordedTransactionMappingFeed(): DataFeed<List<StateMachineTransactionMapping>, StateMachineTransactionMapping>
abstract fun stateMachineRecordedTransactionMappingSnapshot(): List<StateMachineTransactionMapping>
@RPCReturnsObservables abstract fun stateMachinesFeed(): DataFeed<List<StateMachineInfo>, StateMachineUpdate>
abstract fun stateMachinesSnapshot(): List<StateMachineInfo>
abstract fun terminate(drainPendingFlows: Boolean = false): Unit
abstract fun uploadAttachment(jar: InputStream): SecureHash
abstract fun uploadAttachmentWithMetadata(jar: InputStream, uploader: String, filename: String): SecureHash
abstract fun <T : ContractState> vaultQuery(contractStateType: Class<out T>): Page<T>
@RPCReturnsObservables abstract fun <T : ContractState> vaultQueryBy(criteria: QueryCriteria, paging: PageSpecification, sorting: Sort, contractStateType: Class<out T>): Page<T>
abstract fun <T : ContractState> vaultQueryByCriteria(criteria: QueryCriteria, contractStateType: Class<out T>): Page<T>
abstract fun <T : ContractState> vaultQueryByWithPagingSpec(contractStateType: Class<out T>, criteria: QueryCriteria, paging: PageSpecification): Page<T>
abstract fun <T : ContractState> vaultQueryByWithSorting(contractStateType: Class<out T>, criteria: QueryCriteria, sorting: Sort): Page<T>
abstract fun <T : ContractState> vaultTrack(contractStateType: Class<out T>): DataFeed<Page<T>, Update<T>>
@RPCReturnsObservables abstract fun <T : ContractState> vaultTrackBy(criteria: QueryCriteria, paging: PageSpecification, sorting: Sort, contractStateType: Class<out T>): DataFeed<Page<T>, Update<T>>
abstract fun <T : ContractState> vaultTrackByCriteria(contractStateType: Class<out T>, criteria: QueryCriteria): DataFeed<Page<T>, Update<T>>
abstract fun <T : ContractState> vaultTrackByWithPagingSpec(contractStateType: Class<out T>, criteria: QueryCriteria, paging: PageSpecification): DataFeed<Page<T>, Update<T>>
abstract fun <T : ContractState> vaultTrackByWithSorting(contractStateType: Class<out T>, criteria: QueryCriteria, sorting: Sort): DataFeed<Page<T>, Update<T>>
@RPCReturnsObservables abstract fun waitUntilNetworkReady(): CordaFuture<Void?>
abstract fun wellKnownPartyFromAnonymous(party: AbstractParty): Party?
abstract fun wellKnownPartyFromX500Name(x500Name: CordaX500Name): Party?
open class CordaRuntimeException : RuntimeException, CordaThrowable
class CordaSecurityProvider : Provider
@Target([AnnotationTarget.CLASS]) @Inherited annotation class CordaSerializable
@Target([AnnotationTarget.CLASS]) annotation class CordaSerializationTransformEnumDefault
@Target([AnnotationTarget.CLASS]) annotation class CordaSerializationTransformEnumDefaults
@Target([AnnotationTarget.CLASS]) annotation class CordaSerializationTransformRename
@Target([AnnotationTarget.CLASS]) annotation class CordaSerializationTransformRenames
@Target([AnnotationTarget.CLASS]) annotation class CordaService
class CordaServiceCriticalFailureException : Exception
interface CordaThrowable
@DoNotImplement interface CordaTransactionSupport
data class CordaX500Name
Module Contents
CordaX500Name(commonName: String, organisation: String, locality: String, country: String)
CordaX500Name(organisation: String, locality: String, country: String)
CordaX500Name(commonName: String?, organisationUnit: String?, organisation: String, locality: String, state: String?, country: String)
@JvmStatic fun build(principal: X500Principal): CordaX500Name
val commonName: String?
companion object Companion : Internable<CordaX500Name>
val country: String
@CordaInternal val interner: PrivateInterner<CordaX500Name>
const val LENGTH_COUNTRY: Int
val locality: String
const val MAX_LENGTH_COMMON_NAME: Int
const val MAX_LENGTH_LOCALITY: Int
const val MAX_LENGTH_ORGANISATION: Int
const val MAX_LENGTH_ORGANISATION_UNIT: Int
const val MAX_LENGTH_STATE: Int
val organisation: String
val organisationUnit: String?
@JvmStatic fun parse(name: String): CordaX500Name
val state: String?
fun toString(): String
val x500Principal: X500Principal
abstract class CoreTransaction : BaseTransaction
class CouldNotStartFlowException : RPCException
sealed class CriteriaExpression<O, out T>
object Crypto
Module Contents
val COMPOSITE_KEY: SignatureScheme
@JvmStatic fun decodePrivateKey(encodedKey: ByteArray): PrivateKey
@JvmStatic fun decodePrivateKey(schemeCodeName: String, encodedKey: ByteArray): PrivateKey
@JvmStatic fun decodePrivateKey(signatureScheme: SignatureScheme, encodedKey: ByteArray): PrivateKey
@JvmStatic fun decodePublicKey(encodedKey: ByteArray): PublicKey
@JvmStatic fun decodePublicKey(schemeCodeName: String, encodedKey: ByteArray): PublicKey
@JvmStatic fun decodePublicKey(signatureScheme: SignatureScheme, encodedKey: ByteArray): PublicKey
val DEFAULT_SIGNATURE_SCHEME: SignatureScheme
@JvmStatic fun deriveKeyPair(signatureScheme: SignatureScheme, privateKey: PrivateKey, seed: ByteArray): KeyPair
@JvmStatic fun deriveKeyPair(privateKey: PrivateKey, seed: ByteArray): KeyPair
@JvmStatic fun deriveKeyPairFromEntropy(signatureScheme: SignatureScheme, entropy: BigInteger): KeyPair
@JvmStatic fun deriveKeyPairFromEntropy(entropy: BigInteger): KeyPair
@JvmStatic fun doSign(privateKey: PrivateKey, clearData: ByteArray): ByteArray
@JvmStatic fun doSign(schemeCodeName: String, privateKey: PrivateKey, clearData: ByteArray): ByteArray
@JvmStatic fun doSign(signatureScheme: SignatureScheme, privateKey: PrivateKey, clearData: ByteArray): ByteArray
@JvmStatic fun doSign(keyPair: KeyPair, signableData: SignableData): TransactionSignature
@JvmStatic fun doVerify(schemeCodeName: String, publicKey: PublicKey, signatureData: ByteArray, clearData: ByteArray): Boolean
@JvmStatic fun doVerify(publicKey: PublicKey, signatureData: ByteArray, clearData: ByteArray): Boolean
@JvmStatic fun doVerify(signatureScheme: SignatureScheme, publicKey: PublicKey, signatureData: ByteArray, clearData: ByteArray): Boolean
@JvmStatic fun doVerify(txId: SecureHash, transactionSignature: TransactionSignature): Boolean
val ECDSA_SECP256K1_SHA256: SignatureScheme
val ECDSA_SECP256R1_SHA256: SignatureScheme
val EDDSA_ED25519_SHA512: SignatureScheme
@JvmStatic fun encodePublicKey(key: PublicKey): ByteArray
@JvmStatic fun findProvider(name: String): Provider
@JvmStatic fun findSignatureScheme(algorithm: AlgorithmIdentifier): SignatureScheme
@JvmStatic fun findSignatureScheme(: Int): SignatureScheme
@JvmStatic fun findSignatureScheme(schemeCodeName: String): SignatureScheme
@JvmStatic fun findSignatureScheme(key: PublicKey): SignatureScheme
@JvmStatic fun findSignatureScheme(key: PrivateKey): SignatureScheme
@JvmStatic fun generateKeyPair(schemeCodeName: String): KeyPair
@JvmOverloads @JvmStatic fun generateKeyPair(signatureScheme: SignatureScheme = DEFAULT_SIGNATURE_SCHEME): KeyPair
@JvmStatic fun isSupportedSignatureScheme(signatureScheme: SignatureScheme): Boolean
@JvmStatic fun isValid(txId: SecureHash, transactionSignature: TransactionSignature): Boolean
@JvmStatic fun isValid(publicKey: PublicKey, signatureData: ByteArray, clearData: ByteArray): Boolean
@JvmStatic fun isValid(signatureScheme: SignatureScheme, publicKey: PublicKey, signatureData: ByteArray, clearData: ByteArray): Boolean
@JvmStatic fun publicKeyOnCurve(signatureScheme: SignatureScheme, publicKey: PublicKey): Boolean
@JvmStatic fun registerProviders(): Unit
val RSA_SHA256: SignatureScheme
val SHA512_256: DLSequence
val SPHINCS256_SHA256: SignatureScheme
@JvmStatic fun supportedSignatureSchemes(): List<SignatureScheme>
@JvmStatic fun toSupportedPrivateKey(key: PrivateKey): PrivateKey
@JvmStatic fun toSupportedPublicKey(key: SubjectPublicKeyInfo): PublicKey
@JvmStatic fun toSupportedPublicKey(key: PublicKey): PublicKey
@JvmStatic fun validatePublicKey(key: PublicKey): Boolean
interface CustomSerializationScheme
object DatabaseSnapshot
data class DataFeed<out A, B>
open class DataVendingFlow : FlowLogic<Void?>
enum class DateRollConvention
enum class DateRollDirection
enum class DayCountBasisDay
enum class DayCountBasisYear
interface DealState : LinearState
@Target([AnnotationTarget.CONSTRUCTOR]) annotation class DeprecatedConstructorForDeserialization
@DoNotImplement interface Destination
@DoNotImplement interface DiagnosticsService
interface DigestAlgorithm
data class DigestService
open class DigitalSignature : OpaqueBytes
interface DirectStatePersistable : StatePersistable
@DoNotImplement sealed class DistributionList
@DoNotImplement abstract class DistributionRecord : NamedByHash
data class DistributionRecordKey
class DistributionRecords
enum class DistributionRecordType
@Target([AnnotationTarget.CLASS]) @Inherited annotation class DoNotImplement
class DoubleSpentInputs : FlowException
@DoNotImplement interface DriverDSL
Module Contents
abstract fun baseDirectory(nodeName: CordaX500Name): Path
open val defaultNotaryHandle: NotaryHandle
open val defaultNotaryIdentity: Party
open val defaultNotaryNode: CordaFuture<NodeHandle>
open fun nextPort(): Int
abstract val notaryHandles: List<NotaryHandle>
open fun startNode(): CordaFuture<NodeHandle>
abstract fun startNode(parameters: NodeParameters): CordaFuture<NodeHandle>
open fun startNode(defaultParameters: NodeParameters = NodeParameters(), providedName: CordaX500Name? = defaultParameters.providedName, rpcUsers: List<User> = defaultParameters.rpcUsers, verifierType: VerifierType = defaultParameters.verifierType, customOverrides: Map<String, Any?> = defaultParameters.customOverrides, startInSameProcess: Boolean? = defaultParameters.startInSameProcess, maximumHeapSize: String = defaultParameters.maximumHeapSize, logLevelOverride: String? = defaultParameters.logLevelOverride): CordaFuture<NodeHandle>
open fun startNode(defaultParameters: NodeParameters = NodeParameters(), providedName: CordaX500Name? = defaultParameters.providedName, rpcUsers: List<User> = defaultParameters.rpcUsers, verifierType: VerifierType = defaultParameters.verifierType, customOverrides: Map<String, Any?> = defaultParameters.customOverrides, startInSameProcess: Boolean? = defaultParameters.startInSameProcess, maximumHeapSize: String = defaultParameters.maximumHeapSize): CordaFuture<NodeHandle>
open fun startWebserver(handle: NodeHandle): CordaFuture<WebserverHandle>
abstract fun startWebserver(handle: NodeHandle, maximumHeapSize: String): CordaFuture<WebserverHandle>
data class DriverParameters
Module Contents
DriverParameters(cordappsForAllNodes: Collection<TestCordapp>)
DriverParameters(isDebug: Boolean = false, driverDirectory: Path = Paths.get("build") / "node-driver" / getTimestampAsDirectoryName(), portAllocation: PortAllocation = incrementalPortAllocation(), debugPortAllocation: PortAllocation = incrementalPortAllocation(), systemProperties: Map<String, String> = emptyMap(), useTestClock: Boolean = false, startNodesInProcess: Boolean = false, waitForAllNodesToFinish: Boolean = false, notarySpecs: List<NotarySpec> = listOf(NotarySpec(DUMMY_NOTARY_NAME)), : List<String> = emptyList(), jmxPolicy: JmxPolicy = JmxPolicy(), networkParameters: NetworkParameters = testNetworkParameters(notaries = emptyList()), notaryCustomOverrides: Map<String, Any?> = emptyMap(), inMemoryDB: Boolean = true, cordappsForAllNodes: Collection<TestCordapp>? = null)
DriverParameters(isDebug: Boolean = false, driverDirectory: Path = Paths.get("build") / "node-driver" / getTimestampAsDirectoryName(), portAllocation: PortAllocation = incrementalPortAllocation(), debugPortAllocation: PortAllocation = incrementalPortAllocation(), systemProperties: Map<String, String> = emptyMap(), useTestClock: Boolean = false, startNodesInProcess: Boolean = false, waitForAllNodesToFinish: Boolean = false, notarySpecs: List<NotarySpec> = listOf(NotarySpec(DUMMY_NOTARY_NAME)), : List<String> = emptyList(), jmxPolicy: JmxPolicy = JmxPolicy(), networkParameters: NetworkParameters = testNetworkParameters(notaries = emptyList()), notaryCustomOverrides: Map<String, Any?> = emptyMap(), inMemoryDB: Boolean = true)
DriverParameters(isDebug: Boolean, driverDirectory: Path, portAllocation: PortAllocation, debugPortAllocation: PortAllocation, systemProperties: Map<String, String>, useTestClock: Boolean, startNodesInProcess: Boolean, waitForAllNodesToFinish: Boolean, notarySpecs: List<NotarySpec>, : List<String>, jmxPolicy: JmxPolicy, networkParameters: NetworkParameters)
DriverParameters(isDebug: Boolean = false, driverDirectory: Path = Paths.get("build") / "node-driver" / getTimestampAsDirectoryName(), portAllocation: PortAllocation = incrementalPortAllocation(), debugPortAllocation: PortAllocation = incrementalPortAllocation(), systemProperties: Map<String, String> = emptyMap(), useTestClock: Boolean = false, startNodesInProcess: Boolean = false, waitForAllNodesToFinish: Boolean = false, notarySpecs: List<NotarySpec> = listOf(NotarySpec(DUMMY_NOTARY_NAME)), : List<String> = emptyList(), jmxPolicy: JmxPolicy = JmxPolicy(), networkParameters: NetworkParameters = testNetworkParameters(notaries = emptyList()), notaryCustomOverrides: Map<String, Any?> = emptyMap(), inMemoryDB: Boolean = false, cordappsForAllNodes: Collection<TestCordapp>? = null, environmentVariables: Map<String, String> = emptyMap(), allowHibernateToManageAppSchema: Boolean = true)
DriverParameters(isDebug: Boolean, driverDirectory: Path, portAllocation: PortAllocation, debugPortAllocation: PortAllocation, systemProperties: Map<String, String>, useTestClock: Boolean, startNodesInProcess: Boolean, waitForAllNodesToFinish: Boolean, notarySpecs: List<NotarySpec>, : List<String>, jmxPolicy: JmxPolicy, networkParameters: NetworkParameters, inMemoryDB: Boolean)
DriverParameters(isDebug: Boolean, driverDirectory: Path, portAllocation: PortAllocation, debugPortAllocation: PortAllocation, systemProperties: Map<String, String>, useTestClock: Boolean, startNodesInProcess: Boolean, waitForAllNodesToFinish: Boolean, notarySpecs: List<NotarySpec>, : List<String>, jmxPolicy: JmxPolicy, networkParameters: NetworkParameters, notaryCustomOverrides: Map<String, Any?>, inMemoryDB: Boolean, cordappsForAllNodes: Collection<TestCordapp>?, environmentVariables: Map<String, String>, allowHibernateToManageAppSchema: Boolean, premigrateH2Database: Boolean = true)
DriverParameters(isDebug: Boolean = false, driverDirectory: Path = Paths.get("build") / "node-driver" / getTimestampAsDirectoryName(), portAllocation: PortAllocation = incrementalPortAllocation(), debugPortAllocation: PortAllocation = incrementalPortAllocation(), systemProperties: Map<String, String> = emptyMap(), useTestClock: Boolean = false, startNodesInProcess: Boolean = false, waitForAllNodesToFinish: Boolean = false, notarySpecs: List<NotarySpec> = listOf(NotarySpec(DUMMY_NOTARY_NAME)), : List<String> = emptyList(), jmxPolicy: JmxPolicy = JmxPolicy(), networkParameters: NetworkParameters = testNetworkParameters(notaries = emptyList()), notaryCustomOverrides: Map<String, Any?> = emptyMap(), inMemoryDB: Boolean = false, cordappsForAllNodes: Collection<TestCordapp>? = null, environmentVariables: Map<String, String> = emptyMap(), allowHibernateToManageAppSchema: Boolean = true, premigrateH2Database: Boolean = true, notaryHandleTimeout: Duration = Duration.ofMinutes(1))
val allowHibernateToManageAppSchema: Boolean
fun copy(isDebug: Boolean, driverDirectory: Path, portAllocation: PortAllocation, debugPortAllocation: PortAllocation, systemProperties: Map<String, String>, useTestClock: Boolean, startNodesInProcess: Boolean, waitForAllNodesToFinish: Boolean, notarySpecs: List<NotarySpec>, : List<String>, jmxPolicy: JmxPolicy, networkParameters: NetworkParameters): DriverParameters
fun copy(isDebug: Boolean, driverDirectory: Path, portAllocation: PortAllocation, debugPortAllocation: PortAllocation, systemProperties: Map<String, String>, useTestClock: Boolean, startNodesInProcess: Boolean, waitForAllNodesToFinish: Boolean, notarySpecs: List<NotarySpec>, : List<String>, jmxPolicy: JmxPolicy, networkParameters: NetworkParameters, cordappsForAllNodes: Set<TestCordapp>?): DriverParameters
fun copy(isDebug: Boolean, driverDirectory: Path, portAllocation: PortAllocation, debugPortAllocation: PortAllocation, systemProperties: Map<String, String>, useTestClock: Boolean, startNodesInProcess: Boolean, waitForAllNodesToFinish: Boolean, notarySpecs: List<NotarySpec>, : List<String>, jmxPolicy: JmxPolicy, networkParameters: NetworkParameters, notaryCustomOverrides: Map<String, Any?>, inMemoryDB: Boolean, cordappsForAllNodes: Collection<TestCordapp>?): DriverParameters
fun copy(isDebug: Boolean, driverDirectory: Path, portAllocation: PortAllocation, debugPortAllocation: PortAllocation, systemProperties: Map<String, String>, useTestClock: Boolean, startNodesInProcess: Boolean, waitForAllNodesToFinish: Boolean, notarySpecs: List<NotarySpec>, : List<String>, jmxPolicy: JmxPolicy, networkParameters: NetworkParameters, notaryCustomOverrides: Map<String, Any?>, inMemoryDB: Boolean, cordappsForAllNodes: Collection<TestCordapp>?, environmentVariables: Map<String, String>, allowHibernateToManageAppSchema: Boolean): DriverParameters
fun copy(isDebug: Boolean, driverDirectory: Path, portAllocation: PortAllocation, debugPortAllocation: PortAllocation, systemProperties: Map<String, String>, useTestClock: Boolean, startNodesInProcess: Boolean, waitForAllNodesToFinish: Boolean, notarySpecs: List<NotarySpec>, : List<String>, jmxPolicy: JmxPolicy, networkParameters: NetworkParameters, notaryCustomOverrides: Map<String, Any?>, inMemoryDB: Boolean, cordappsForAllNodes: Collection<TestCordapp>?, environmentVariables: Map<String, String>, allowHibernateToManageAppSchema: Boolean, premigrateH2Database: Boolean): DriverParameters
val cordappsForAllNodes: Collection<TestCordapp>?
val debugPortAllocation: PortAllocation
val driverDirectory: Path
val environmentVariables: Map<String, String>
val extraCordappPackagesToScan: List<String>
val inMemoryDB: Boolean
val isDebug: Boolean
val jmxPolicy: JmxPolicy
val networkParameters: NetworkParameters
val notaryCustomOverrides: Map<String, Any?>
val notaryHandleTimeout: Duration
val notarySpecs: List<NotarySpec>
val portAllocation: PortAllocation
val premigrateH2Database: Boolean
val startNodesInProcess: Boolean
val systemProperties: Map<String, String>
val useTestClock: Boolean
val waitForAllNodesToFinish: Boolean
fun withAllowHibernateToManageAppSchema(value: Boolean): DriverParameters
fun withCordappsForAllNodes(cordappsForAllNodes: Collection<TestCordapp>?): DriverParameters
fun withDebugPortAllocation(debugPortAllocation: PortAllocation): DriverParameters
fun withDriverDirectory(driverDirectory: Path): DriverParameters
fun withEnvironmentVariables(variables: Map<String, String>): DriverParameters
fun withExtraCordappPackagesToScan(: List<String>): DriverParameters
fun withInMemoryDB(inMemoryDB: Boolean): DriverParameters
fun withIsDebug(isDebug: Boolean): DriverParameters
fun withJmxPolicy(jmxPolicy: JmxPolicy): DriverParameters
fun withNetworkParameters(networkParameters: NetworkParameters): DriverParameters
fun withNotaryCustomOverrides(notaryCustomOverrides: Map<String, Any?>): DriverParameters
fun withNotaryHandleTimeout(value: Duration): DriverParameters
fun withNotarySpecs(notarySpecs: List<NotarySpec>): DriverParameters
fun withPortAllocation(portAllocation: PortAllocation): DriverParameters
fun withStartNodesInProcess(startNodesInProcess: Boolean): DriverParameters
fun withSystemProperties(systemProperties: Map<String, String>): DriverParameters
fun withUseTestClock(useTestClock: Boolean): DriverParameters
fun withWaitForAllNodesToFinish(waitForAllNodesToFinish: Boolean): DriverParameters
object DummySecureRandom : SecureRandom
class DuplicateOutputLabel : FlowException
@DoNotImplement interface EncodingWhitelist
@DoNotImplement sealed class EnforceVerifyOrFail
enum class EqualityComparisonOperator : Operator
data class Expression
class FieldInfo
data class FilteredComponentGroup : ComponentGroup
class FilteredTransaction : TraversableTransaction
class FilteredTransactionVerificationException : CordaException
@InitiatingFlow class FinalityFlow : FlowLogic<SignedTransaction>
Module Contents
FinalityFlow(transaction: SignedTransaction, : Set<Party>, progressTracker: ProgressTracker)
FinalityFlow(transaction: SignedTransaction, : Set<Party>)
FinalityFlow(transaction: SignedTransaction)
FinalityFlow(transaction: SignedTransaction, progressTracker: ProgressTracker)
FinalityFlow(transaction: SignedTransaction, firstSession: FlowSession, vararg restSessions: FlowSession)
FinalityFlow(transaction: SignedTransaction, sessions: Collection<FlowSession>, progressTracker: ProgressTracker = tracker())
FinalityFlow(transaction: SignedTransaction, sessions: Collection<FlowSession>, statesToRecord: StatesToRecord, progressTracker: ProgressTracker = tracker())
FinalityFlow(transaction: SignedTransaction, sessions: Collection<FlowSession>, oldParticipants: Collection<Party>, progressTracker: ProgressTracker)
FinalityFlow(transaction: SignedTransaction, sessions: Collection<FlowSession>, observerSessions: Collection<FlowSession>)
object BROADCASTING : Step
object BROADCASTING_NOTARY_ERROR : Step
object BROADCASTING_POST_NOTARISATION : Step
object BROADCASTING_PRE_NOTARISATION : Step
@Suspendable fun call(): SignedTransaction
@CordaInternal data class ExtraConstructorArgs
object FINALISING_TRANSACTION : Step
@CordaInternal fun getExtraConstructorArgs(): ExtraConstructorArgs
object NOTARISING : Step
val progressTracker: ProgressTracker
object RECORD_UNNOTARISED : Step
@JvmStatic fun tracker(): ProgressTracker
val transaction: SignedTransaction
@StartableByRPC @InitiatingFlow class FinalityRecoveryFlow : FlowLogic<Map<FlowTransactionInfo, Boolean>>
Module Contents
FinalityRecoveryFlow(txId: SecureHash, forceRecover: Boolean = false)
FinalityRecoveryFlow(txIds: Collection<SecureHash>, forceRecover: Boolean = false, recoverAll: Boolean = false)
FinalityRecoveryFlow(flowId: StateMachineRunId, forceRecover: Boolean = false)
FinalityRecoveryFlow(flowIds: Collection<StateMachineRunId>, forceRecover: Boolean = false)
FinalityRecoveryFlow(recoverAll: Boolean, forceRecover: Boolean = false)
FinalityRecoveryFlow(matchingCriteria: FlowRecoveryQuery, forceRecover: Boolean = false)
FinalityRecoveryFlow(txIds: Collection<SecureHash> = emptySet(), flowIds: Collection<StateMachineRunId> = emptySet(), matchingCriteria: FlowRecoveryQuery? = null, forceRecover: Boolean = false, recoverAll: Boolean = false, forceRecoverFlowIds: Collection<StateMachineRunId> = emptySet(), progressTracker: ProgressTracker = ProgressTracker())
@Suspendable fun call(): Map<FlowTransactionInfo, Boolean>
@CordaInternal data class ExtraConstructorArgs
@CordaInternal fun getExtraConstructorArgs(): ExtraConstructorArgs
val progressTracker: ProgressTracker
data class Fix : CommandData
interface FixableDealState : DealState
data class FixOf
open class FlowException : CordaException, IdentifiableException
interface FlowExternalAsyncOperation<R : Any>
interface FlowExternalOperation<R : Any>
@DoNotImplement interface FlowHandle<A> : AutoCloseable
data class FlowHandleImpl<A> : FlowHandle<A>
interface FlowHandleWithClientId<A> : FlowHandle<A>
data class FlowHandleWithClientIdImpl<A> : FlowHandleWithClientId<A>
data class FlowInfo
typealias FlowInfo = StateMachineInfo
sealed class FlowInitiator : Principal
abstract class FlowLogic<out T>
Module Contents
FlowLogic()
@Suspendable fun <R : Any> await(operation: FlowExternalAsyncOperation<R>): R
@Suspendable fun <R : Any> await(operation: FlowExternalOperation<R>): R
@Suspendable abstract fun call(): T
fun checkFlowIsNotKilled(): Unit
fun checkFlowIsNotKilled(lazyMessage: () -> Any): Unit
fun checkFlowPermission(permissionName: String, : Map<String, String>): Unit
@Suspendable fun close(sessions: NonEmptySet<FlowSession>): Unit
@JvmStatic val currentTopLevel: FlowLogic<*>?
@Suspendable fun flowStackSnapshot(): FlowStackSnapshot?
@Suspendable fun getFlowInfo(otherParty: Party): FlowInfo
@Suspendable fun initiateFlow(destination: Destination): FlowSession
@Suspendable fun initiateFlow(party: Party): FlowSession
val isKilled: Boolean
val logger: Logger
val ourIdentity: Party
val ourIdentityAndCert: PartyAndCertificate
@Suspendable fun persistFlowStackSnapshot(): Unit
open val progressTracker: ProgressTracker?
fun <reified R : Any> receive(otherParty: Party): UntrustworthyData<R>
@Suspendable open fun <R : Any> receive(receiveType: Class<R>, otherParty: Party): UntrustworthyData<R>
@Suspendable @JvmOverloads open fun <R : Any> receiveAll(receiveType: Class<R>, sessions: List<FlowSession>, maySkipCheckpoint: Boolean = false): List<UntrustworthyData<R>>
@Suspendable @JvmOverloads open fun receiveAllMap(sessions: Map<FlowSession, Class<out Any>>, maySkipCheckpoint: Boolean = false): Map<FlowSession, UntrustworthyData<Any>>
fun recordAuditEvent(eventType: String, : String, : Map<String, String>): Unit
val runId: StateMachineRunId
@Suspendable open fun send(otherParty: Party, payload: Any): Unit
@Suspendable @JvmOverloads fun sendAll(payload: Any, sessions: Set<FlowSession>, maySkipCheckpoint: Boolean = false): Unit
@Suspendable @JvmOverloads fun sendAllMap(payloadsPerSession: Map<FlowSession, Any>, maySkipCheckpoint: Boolean = false): Unit
fun <reified R : Any> sendAndReceive(otherParty: Party, payload: Any): UntrustworthyData<R>
@Suspendable open fun <R : Any> sendAndReceive(receiveType: Class<R>, otherParty: Party, payload: Any): UntrustworthyData<R>
val serviceHub: ServiceHub
@Suspendable @JvmStatic @JvmOverloads fun sleep(duration: Duration, maySkipCheckpoint: Boolean = false): Unit
@Suspendable open fun <R> subFlow(subLogic: FlowLogic<R>): R
fun track(): DataFeed<String, String>?
fun trackStepsTree(): DataFeed<List<Pair<Int, String>>, List<Pair<Int, String>>>?
fun trackStepsTreeIndex(): DataFeed<Int, Int>?
@Suspendable @JvmOverloads fun waitForLedgerCommit(hash: SecureHash, maySkipCheckpoint: Boolean = false): SignedTransaction
@Suspendable fun waitForStateConsumption(stateRefs: Set<StateRef>): Unit
@DoNotImplement interface FlowLogicRef
@DoNotImplement interface FlowLogicRefFactory
interface FlowManagerRPCOps : RPCOps
interface FlowProgressHandle<A> : FlowHandle<A>
data class FlowProgressHandleImpl<A> : FlowProgressHandle<A>
Module Contents
FlowProgressHandleImpl(id: StateMachineRunId, returnValue: CordaFuture<A>, progress: Observable<String>, stepsTreeIndexFeed: DataFeed<Int, Int>? = null, stepsTreeFeed: DataFeed<List<Pair<Int, String>>, List<Pair<Int, String>>>? = null)
fun close(): Unit
fun copy(id: StateMachineRunId, returnValue: CordaFuture<A>, progress: Observable<String>): FlowProgressHandleImpl<A>
val id: StateMachineRunId
val progress: Observable<String>
val returnValue: CordaFuture<A>
val stepsTreeFeed: DataFeed<List<Pair<Int, String>>, List<Pair<Int, String>>>?
val stepsTreeIndexFeed: DataFeed<Int, Int>?
class FlowRecoveryException : FlowException
data class FlowRecoveryQuery
@DoNotImplement abstract class FlowSession
data class FlowStackSnapshot
data class FlowTimeWindow
data class FlowTransactionInfo
enum class Frequency
abstract class FullTransaction : BaseTransaction
interface FungibleAsset<T : Any> : FungibleState<Issued<T>>, OwnableState
interface FungibleState<T : Any> : ContractState
interface GenericQueryCriteria<Q : GenericQueryCriteria<Q, *>, in P : BaseQueryCriteriaParser<Q, *, *>>
Module Contents
interface ChainableQueryCriteria<Q : GenericQueryCriteria<Q, P>, in P : BaseQueryCriteriaParser<Q, P, *>>
Module Contents
abstract infix fun and(criteria: Q): Q
interface AndVisitor<Q : GenericQueryCriteria<Q, P>, in P : BaseQueryCriteriaParser<Q, P, S>, in S : BaseSort> : GenericQueryCriteria<Q, P>
abstract infix fun or(criteria: Q): Q
interface OrVisitor<Q : GenericQueryCriteria<Q, P>, in P : BaseQueryCriteriaParser<Q, P, S>, in S : BaseSort> : GenericQueryCriteria<Q, P>
abstract fun visit(parser: P): Collection<Predicate>
class GracefulReconnect
data class HashAttachmentConstraint : AttachmentConstraint
open class HospitalizeFlowException : CordaRuntimeException
class HttpApi
object HttpUtils
open class Id<out VALUE : Any>
@DoNotImplement interface IdentityService
class IllegalFlowLogicException : IllegalArgumentException
interface IndirectStatePersistable<T : DirectStatePersistable> : StatePersistable
@Target([AnnotationTarget.CLASS]) annotation class InitiatedBy
@Target([AnnotationTarget.CLASS]) @Inherited annotation class InitiatingFlow
@ThreadSafe class InMemoryMessagingNetwork : SingletonSerializeAsToken
@DoNotImplement interface InProcess : NodeHandle
class InsufficientBalanceException : FlowException
data class InvocationContext
Module Contents
InvocationContext(origin: InvocationOrigin, trace: Trace, actor: Actor?, externalTrace: Trace? = null, impersonatedActor: Actor? = null)
InvocationContext(origin: InvocationOrigin, trace: Trace, actor: Actor?, externalTrace: Trace? = null, impersonatedActor: Actor? = null, arguments: List<Any?>? = emptyList(), clientId: String? = null)
InvocationContext(origin: InvocationOrigin, trace: Trace, actor: Actor?, externalTrace: Trace? = null, impersonatedActor: Actor? = null, arguments: List<Any?>? = emptyList(), clientId: String? = null, serializedTelemetry: SerializedTelemetry? = null)
val actor: Actor?
val arguments: List<Any?>?
val clientId: String?
fun copy(origin: InvocationOrigin = this.origin, trace: Trace = this.trace, actor: Actor? = this.actor, externalTrace: Trace? = this.externalTrace, impersonatedActor: Actor? = this.impersonatedActor): InvocationContext
fun copy(origin: InvocationOrigin = this.origin, trace: Trace = this.trace, actor: Actor? = this.actor, externalTrace: Trace? = this.externalTrace, impersonatedActor: Actor? = this.impersonatedActor, arguments: List<Any?>? = this.arguments, clientId: String? = this.clientId): InvocationContext
val externalTrace: Trace?
val impersonatedActor: Actor?
@JvmStatic @JvmOverloads fun newInstance(origin: InvocationOrigin, trace: Trace = Trace.newInstance(), actor: Actor? = null, externalTrace: Trace? = null, impersonatedActor: Actor? = null, arguments: List<Any?> = emptyList(), clientId: String? = null, serializedTelemetry: SerializedTelemetry? = null): InvocationContext
val origin: InvocationOrigin
@JvmStatic fun peer(party: CordaX500Name, trace: Trace = Trace.newInstance(), externalTrace: Trace? = null, impersonatedActor: Actor? = null): InvocationContext
fun principal(): Principal
@JvmStatic @JvmOverloads fun rpc(actor: Actor, trace: Trace = Trace.newInstance(), externalTrace: Trace? = null, impersonatedActor: Actor? = null, arguments: List<Any?> = emptyList(), serializedTelemetry: SerializedTelemetry? = null): InvocationContext
@JvmStatic fun scheduled(scheduledState: ScheduledStateRef, trace: Trace = Trace.newInstance(), externalTrace: Trace? = null): InvocationContext
val serializedTelemetry: SerializedTelemetry?
@JvmStatic fun service(serviceClassName: String, owningLegalIdentity: CordaX500Name, trace: Trace = Trace.newInstance(), externalTrace: Trace? = null): InvocationContext
@JvmStatic fun shell(trace: Trace = Trace.newInstance(), externalTrace: Trace? = null): InvocationContext
val trace: Trace
sealed class InvocationOrigin
@DoNotImplement interface IQueryCriteriaParser : BaseQueryCriteriaParser<QueryCriteria, IQueryCriteriaParser, Sort>
data class Issued<out P : Any>
object JacksonSupport
Module Contents
object AmountDeserializer : JsonDeserializer<Amount<*>>
object AmountSerializer : JsonSerializer<Amount<*>>
object AnonymousPartyDeserializer : JsonDeserializer<AnonymousParty>
object AnonymousPartySerializer : JsonSerializer<AnonymousParty>
val cordaModule: Module
object CordaX500NameDeserializer : JsonDeserializer<CordaX500Name>
object CordaX500NameSerializer : JsonSerializer<CordaX500Name>
@JvmStatic @JvmOverloads fun createDefaultMapper(rpc: CordaRPCOps, factory: JsonFactory = JsonFactory(), fuzzyIdentityMatch: Boolean = false, fullParties: Boolean = false): ObjectMapper
@JvmStatic @JvmOverloads fun createInMemoryMapper(identityService: IdentityService, factory: JsonFactory = JsonFactory(), fuzzyIdentityMatch: Boolean = false, fullParties: Boolean = false): ObjectMapper
@JvmStatic @JvmOverloads fun createNonRpcMapper(factory: JsonFactory = JsonFactory(), fullParties: Boolean = false): ObjectMapper
class IdentityObjectMapper : PartyObjectMapper, ObjectMapper
object NodeInfoDeserializer : JsonDeserializer<NodeInfo>
object NodeInfoSerializer : JsonSerializer<NodeInfo>
class NoPartyObjectMapper : PartyObjectMapper, ObjectMapper
object OpaqueBytesDeserializer : JsonDeserializer<OpaqueBytes>
object OpaqueBytesSerializer : JsonSerializer<OpaqueBytes>
object PartyDeserializer : JsonDeserializer<Party>
@DoNotImplement interface PartyObjectMapper
object PartySerializer : JsonSerializer<Party>
object PublicKeyDeserializer : JsonDeserializer<PublicKey>
object PublicKeySerializer : JsonSerializer<PublicKey>
class RpcObjectMapper : PartyObjectMapper, ObjectMapper
class SecureHashDeserializer<T : SecureHash> : JsonDeserializer<T>
object SecureHashSerializer : JsonSerializer<SecureHash>
abstract class SignedTransactionMixin
object ToStringSerializer : JsonSerializer<Any>
abstract class WireTransactionMixin
java.lang.management.ThreadInfo
java.security.KeyPair
java.security.PrivateKey
java.security.PublicKey
java.security.PublicKey
java.sql.Blob
java.util.concurrent.Future
java.util.concurrent.Future
java.util.Currency
data class JmxPolicy
@DoNotImplement interface KeyManagementService
class KilledFlowException : CordaRuntimeException
kotlin.Any
Module Contents
fun Any.contextLogger(): Logger
kotlin.ByteArray
kotlin.ByteArray
kotlin.ByteArray
kotlin.collections.Collection
kotlin.collections.Collection
kotlin.collections.Iterable
kotlin.collections.Iterable
kotlin.collections.Iterable
kotlin.collections.Map
kotlin.Double
kotlin.Int
kotlin.Int
kotlin.Long
kotlin.Long
kotlin.reflect.KClass
kotlin.String
class LedgerDSL<out T : TransactionDSLInterpreter, out L : LedgerDSLInterpreter<T>> : LedgerDSLInterpreter<TransactionDSLInterpreter>
@DoNotImplement interface LedgerDSLInterpreter<out T : TransactionDSLInterpreter> : Verifies, OutputStateLookup
class LedgerRecoveryException : FlowException
@StartableByRPC class LedgerRecoveryFlow : FlowLogic<LedgerRecoveryResult>
Module Contents
LedgerRecoveryFlow(recoveryPeer: Party)
LedgerRecoveryFlow(recoveryPeers: Collection<Party>)
LedgerRecoveryFlow(useAllNetworkNodes: Boolean)
LedgerRecoveryFlow(recoveryPeer: Party, timeWindow: RecoveryTimeWindow)
LedgerRecoveryFlow(recoveryPeer: Party, timeWindow: RecoveryTimeWindow, dryRun: Boolean)
LedgerRecoveryFlow(recoveryPeer: Party, timeWindow: RecoveryTimeWindow, dryRun: Boolean, verboseLogging: Boolean)
LedgerRecoveryFlow(recoveryPeer: Party, timeWindow: RecoveryTimeWindow, dryRun: Boolean, verboseLogging: Boolean, alsoFinalize: Boolean)
LedgerRecoveryFlow(recoveryPeers: Collection<Party>, timeWindow: RecoveryTimeWindow)
LedgerRecoveryFlow(recoveryPeers: Collection<Party>, timeWindow: RecoveryTimeWindow, dryRun: Boolean)
LedgerRecoveryFlow(recoveryPeers: Collection<Party>, timeWindow: RecoveryTimeWindow, dryRun: Boolean, verboseLogging: Boolean)
LedgerRecoveryFlow(recoveryPeers: Collection<Party>, timeWindow: RecoveryTimeWindow, dryRun: Boolean, verboseLogging: Boolean, alsoFinalize: Boolean)
LedgerRecoveryFlow(useAllNetworkNodes: Boolean, timeWindow: RecoveryTimeWindow)
LedgerRecoveryFlow(useAllNetworkNodes: Boolean, timeWindow: RecoveryTimeWindow, dryRun: Boolean)
LedgerRecoveryFlow(useAllNetworkNodes: Boolean, timeWindow: RecoveryTimeWindow, dryRun: Boolean, verboseLogging: Boolean)
LedgerRecoveryFlow(useAllNetworkNodes: Boolean, timeWindow: RecoveryTimeWindow, dryRun: Boolean, verboseLogging: Boolean, recoveryBatchSize: Int, alsoFinalize: Boolean)
LedgerRecoveryFlow(useAllNetworkNodes: Boolean, timeWindow: RecoveryTimeWindow, dryRun: Boolean, verboseLogging: Boolean, recoveryBatchSize: Int)
LedgerRecoveryFlow(recoveryPeers: Collection<Party>, timeWindow: RecoveryTimeWindow, useAllNetworkNodes: Boolean, dryRun: Boolean, useTimeWindowNarrowing: Boolean, verboseLogging: Boolean, recoveryBatchSize: Int)
LedgerRecoveryFlow(parameters: LedgerRecoveryParameters, progressTracker: ProgressTracker = ProgressTracker())
@Suspendable fun call(): LedgerRecoveryResult
@CordaInternal data class ExtraConstructorArgs
@CordaInternal fun getExtraConstructorArgs(): ExtraConstructorArgs
val progressTracker: ProgressTracker
data class LedgerRecoveryParameters
data class LedgerRecoveryResult
class LedgerTransaction : FullTransaction
Module Contents
LedgerTransaction(inputs: List<StateAndRef<ContractState>>, outputs: List<TransactionState<ContractState>>, commands: List<CommandWithParties<CommandData>>, attachments: List<Attachment>, id: SecureHash, notary: Party?, timeWindow: TimeWindow?, privacySalt: PrivacySalt)
LedgerTransaction(inputs: List<StateAndRef<ContractState>>, outputs: List<TransactionState<ContractState>>, commands: List<CommandWithParties<CommandData>>, attachments: List<Attachment>, id: SecureHash, notary: Party?, timeWindow: TimeWindow?, privacySalt: PrivacySalt, networkParameters: NetworkParameters)
val attachments: List<Attachment>
val commands: List<CommandWithParties<CommandData>>
fun <T : CommandData> commandsOfType(clazz: Class<T>): List<Command<T>>
fun <reified T : CommandData> commandsOfType(): List<Command<T>>
operator fun component1(): List<StateAndRef<ContractState>>
operator fun component10(): List<StateAndRef<ContractState>>
operator fun component2(): List<TransactionState<ContractState>>
operator fun component3(): List<CommandWithParties<CommandData>>
operator fun component4(): List<Attachment>
operator fun component5(): SecureHash
operator fun component6(): Party?
operator fun component7(): TimeWindow?
operator fun component8(): PrivacySalt
operator fun component9(): NetworkParameters?
fun copy(inputs: List<StateAndRef<ContractState>>, outputs: List<TransactionState<ContractState>>, commands: List<CommandWithParties<CommandData>>, attachments: List<Attachment>, id: SecureHash, notary: Party?, timeWindow: TimeWindow?, privacySalt: PrivacySalt): LedgerTransaction
fun copy(inputs: List<StateAndRef<ContractState>> = this.inputs, outputs: List<TransactionState<ContractState>> = this.outputs, commands: List<CommandWithParties<CommandData>> = this.commands, attachments: List<Attachment> = this.attachments, id: SecureHash = this.id, notary: Party? = this.notary, timeWindow: TimeWindow? = this.timeWindow, privacySalt: PrivacySalt = this.privacySalt, networkParameters: NetworkParameters? = this.networkParameters): LedgerTransaction
@CordaInternal fun createForContractVerify(inputs: List<StateAndRef<ContractState>>, outputs: List<TransactionState<ContractState>>, commands: List<CommandWithParties<CommandData>>, attachments: List<Attachment>, id: SecureHash, notary: Party?, timeWindow: TimeWindow?, privacySalt: PrivacySalt, networkParameters: NetworkParameters?, references: List<StateAndRef<ContractState>>, digestService: DigestService): LedgerTransaction
val digestService: DigestService
fun equals(other: Any?): Boolean
fun <T : CommandData> filterCommands(clazz: Class<T>, predicate: Predicate<T>): List<Command<T>>
inline fun <reified T : CommandData> filterCommands(crossinline predicate: (T) -> Boolean): List<Command<T>>
fun <T : ContractState> filterInputs(clazz: Class<T>, predicate: Predicate<T>): List<T>
inline fun <reified T : ContractState> filterInputs(crossinline predicate: (T) -> Boolean): List<T>
fun <T : ContractState> filterInRefs(clazz: Class<T>, predicate: Predicate<T>): List<StateAndRef<T>>
inline fun <reified T : ContractState> filterInRefs(crossinline predicate: (T) -> Boolean): List<StateAndRef<T>>
fun <T : ContractState> filterReferenceInputRefs(clazz: Class<T>, predicate: Predicate<T>): List<StateAndRef<T>>
inline fun <reified T : ContractState> filterReferenceInputRefs(crossinline predicate: (T) -> Boolean): List<StateAndRef<T>>
fun <T : ContractState> filterReferenceInputs(clazz: Class<T>, predicate: Predicate<T>): List<T>
inline fun <reified T : ContractState> filterReferenceInputs(crossinline predicate: (T) -> Boolean): List<T>
fun <T : CommandData> findCommand(clazz: Class<T>, predicate: Predicate<T>): Command<T>
inline fun <reified T : CommandData> findCommand(crossinline predicate: (T) -> Boolean): Command<T>
fun <T : ContractState> findInput(clazz: Class<T>, predicate: Predicate<T>): T
inline fun <reified T : ContractState> findInput(crossinline predicate: (T) -> Boolean): T
fun <T : ContractState> findInRef(clazz: Class<T>, predicate: Predicate<T>): StateAndRef<T>
inline fun <reified T : ContractState> findInRef(crossinline predicate: (T) -> Boolean): StateAndRef<T>
fun <T : ContractState> findReference(clazz: Class<T>, predicate: Predicate<T>): T
inline fun <reified T : ContractState> findReference(crossinline predicate: (T) -> Boolean): T
fun <T : ContractState> findReferenceInputRef(clazz: Class<T>, predicate: Predicate<T>): StateAndRef<T>
inline fun <reified T : ContractState> findReferenceInputRef(crossinline predicate: (T) -> Boolean): StateAndRef<T>
fun getAttachment(index: Int): Attachment
fun getAttachment(id: SecureHash): Attachment
fun <T : CommandData> getCommand(index: Int): Command<T>
fun getInput(index: Int): ContractState
fun getReferenceInput(index: Int): ContractState
fun <T : ContractState, K : Any> groupStates(ofType: Class<T>, selector: (T) -> K): List<InOutGroup<T, K>>
inline fun <reified T : ContractState, K : Any> groupStates(noinline selector: (T) -> K): List<InOutGroup<T, K>>
fun hashCode(): Int
val id: SecureHash
data class InOutGroup<out T : ContractState, out K : Any>
val inputs: List<StateAndRef<ContractState>>
fun <T : ContractState> inputsOfType(clazz: Class<T>): List<T>
fun <reified T : ContractState> inputsOfType(): List<T>
val inputStates: List<ContractState>
fun <T : ContractState> inRef(index: Int): StateAndRef<T>
fun <T : ContractState> inRefsOfType(clazz: Class<T>): List<StateAndRef<T>>
fun <reified T : ContractState> inRefsOfType(): List<StateAndRef<T>>
val networkParameters: NetworkParameters?
val notary: Party?
val outputs: List<TransactionState<ContractState>>
val privacySalt: PrivacySalt
fun <T : ContractState> referenceInputRefsOfType(clazz: Class<T>): List<StateAndRef<T>>
fun <reified T : ContractState> referenceInputRefsOfType(): List<StateAndRef<T>>
fun <T : ContractState> referenceInputsOfType(clazz: Class<T>): List<T>
fun <reified T : ContractState> referenceInputsOfType(): List<T>
val references: List<StateAndRef<ContractState>>
val referenceStates: List<ContractState>
@CordaInternal fun specialise(alternateVerifier: (LedgerTransaction, SerializationContext) -> Verifier): LedgerTransaction
val timeWindow: TimeWindow?
fun toString(): String
@CordaInternal fun <T> transform(transformer: (List<ComponentGroup>, List<SerializedStateAndRef>, List<SerializedStateAndRef>) -> T): T
fun verify(): Unit
@Target([AnnotationTarget.CLASS]) annotation class LegalProseReference
enum class LikenessOperator : Operator
class LinearPointer<T : LinearState> : StatePointer<T>
interface LinearState : ContractState
open class MappedSchema
object MappedSchemaValidator
class MaxRpcRetryException : RPCException
class MaybeSerializedSignedTransaction : NamedByHash
sealed class MerkleTree
class MerkleTreeException : CordaException
interface MessageRecipientGroup : MessageRecipients
interface MessageRecipients
class MissingAttachmentsException : CordaException
class MissingAttachmentsRuntimeException : CordaRuntimeException
class MissingContractAttachments : FlowException
class MockAttachmentStorage : AttachmentStorage, SingletonSerializeAsToken
Module Contents
MockAttachmentStorage()
val files: Map<SecureHash, Pair<Attachment, ByteArray>>
fun getAttachmentIdAndBytes(jar: InputStream): Pair<AttachmentId, ByteArray>
fun getLatestContractAttachments(contractClassName: String, minContractVersion: Int): List<AttachmentId>
fun hasAttachment(attachmentId: AttachmentId): Boolean
fun importAttachment(jar: InputStream): AttachmentId
fun importAttachment(jar: InputStream, uploader: String, filename: String?): AttachmentId
@JvmOverloads fun importContractAttachment(contractClassNames: List<ContractClassName>, uploader: String, jar: InputStream, attachmentId: AttachmentId? = null, signers: List<PublicKey> = emptyList()): AttachmentId
fun importContractAttachment(attachmentId: AttachmentId, contractAttachment: ContractAttachment): Unit
fun importOrGetAttachment(jar: InputStream): AttachmentId
fun openAttachment(id: SecureHash): Attachment?
fun queryAttachments(criteria: AttachmentQueryCriteria, sorting: AttachmentSort?): List<AttachmentId>
class MockNetFlowTimeOut
class MockNetNotaryConfig
open class MockNetwork
Module Contents
MockNetwork(cordappPackages: List<String>, parameters: MockNetworkParameters = MockNetworkParameters())
MockNetwork(parameters: MockNetworkParameters)
MockNetwork(cordappPackages: List<String>, defaultParameters: MockNetworkParameters = MockNetworkParameters(), networkSendManuallyPumped: Boolean = defaultParameters.networkSendManuallyPumped, threadPerNode: Boolean = defaultParameters.threadPerNode, servicePeerAllocationStrategy: ServicePeerAllocationStrategy = defaultParameters.servicePeerAllocationStrategy, notarySpecs: List<MockNetworkNotarySpec> = defaultParameters.notarySpecs, networkParameters: NetworkParameters = defaultParameters.networkParameters)
fun baseDirectory(nodeId: Int): Path
val cordappPackages: List<String>
fun createNode(parameters: MockNodeParameters): StartedMockNode
@JvmOverloads fun createNode(legalName: CordaX500Name? = null, forcedID: Int? = null, entropyRoot: BigInteger = BigInteger.valueOf(random63BitValue()), configOverrides: MockNodeConfigOverrides? = null): StartedMockNode
fun createPartyNode(legalName: CordaX500Name? = null): StartedMockNode
fun createUnstartedNode(parameters: MockNodeParameters = MockNodeParameters()): UnstartedMockNode
@JvmOverloads fun createUnstartedNode(legalName: CordaX500Name? = null, forcedID: Int? = null, entropyRoot: BigInteger = BigInteger.valueOf(random63BitValue()), configOverrides: MockNodeConfigOverrides? = null): UnstartedMockNode
val defaultNotaryIdentity: Party
val defaultNotaryNode: StartedMockNode
val defaultParameters: MockNetworkParameters
val networkParameters: NetworkParameters
val networkSendManuallyPumped: Boolean
val nextNodeId: Int
val notaryNodes: List<StartedMockNode>
val notarySpecs: List<MockNetworkNotarySpec>
@JvmOverloads fun runNetwork(rounds: Int = -1): Unit
val servicePeerAllocationStrategy: ServicePeerAllocationStrategy
fun startNodes(): Unit
fun stopNodes(): Unit
val threadPerNode: Boolean
fun waitQuiescent(): Unit
data class MockNetworkNotarySpec
data class MockNetworkParameters
Module Contents
MockNetworkParameters(networkSendManuallyPumped: Boolean, threadPerNode: Boolean, servicePeerAllocationStrategy: ServicePeerAllocationStrategy, notarySpecs: List<MockNetworkNotarySpec>, networkParameters: NetworkParameters)
MockNetworkParameters(cordappsForAllNodes: Collection<TestCordapp>)
MockNetworkParameters(networkSendManuallyPumped: Boolean = false, threadPerNode: Boolean = false, servicePeerAllocationStrategy: ServicePeerAllocationStrategy = InMemoryMessagingNetwork.ServicePeerAllocationStrategy.Random(), notarySpecs: List<MockNetworkNotarySpec> = listOf(MockNetworkNotarySpec(DUMMY_NOTARY_NAME)), networkParameters: NetworkParameters = testNetworkParameters(), cordappsForAllNodes: Collection<TestCordapp> = emptyList())
fun copy(networkSendManuallyPumped: Boolean, threadPerNode: Boolean, servicePeerAllocationStrategy: ServicePeerAllocationStrategy, notarySpecs: List<MockNetworkNotarySpec>, networkParameters: NetworkParameters): MockNetworkParameters
val cordappsForAllNodes: Collection<TestCordapp>
val networkParameters: NetworkParameters
val networkSendManuallyPumped: Boolean
val notarySpecs: List<MockNetworkNotarySpec>
val servicePeerAllocationStrategy: ServicePeerAllocationStrategy
val threadPerNode: Boolean
fun withCordappsForAllNodes(cordappsForAllNodes: Collection<TestCordapp>): MockNetworkParameters
fun withNetworkParameters(networkParameters: NetworkParameters): MockNetworkParameters
fun withNetworkSendManuallyPumped(networkSendManuallyPumped: Boolean): MockNetworkParameters
fun withNotarySpecs(notarySpecs: List<MockNetworkNotarySpec>): MockNetworkParameters
fun withServicePeerAllocationStrategy(servicePeerAllocationStrategy: ServicePeerAllocationStrategy): MockNetworkParameters
fun withThreadPerNode(threadPerNode: Boolean): MockNetworkParameters
class MockNodeConfigOverrides
data class MockNodeParameters
Module Contents
MockNodeParameters(forcedID: Int? = null, legalName: CordaX500Name? = null, entropyRoot: BigInteger = BigInteger.valueOf(random63BitValue()), configOverrides: MockNodeConfigOverrides)
MockNodeParameters(forcedID: Int? = null, legalName: CordaX500Name? = null, entropyRoot: BigInteger = BigInteger.valueOf(random63BitValue()), configOverrides: MockNodeConfigOverrides? = null, additionalCordapps: Collection<TestCordapp> = emptyList())
val additionalCordapps: Collection<TestCordapp>
val configOverrides: MockNodeConfigOverrides?
fun copy(forcedID: Int?, legalName: CordaX500Name?, entropyRoot: BigInteger, configOverrides: MockNodeConfigOverrides): MockNodeParameters
val entropyRoot: BigInteger
val forcedID: Int?
val legalName: CordaX500Name?
fun withAdditionalCordapps(additionalCordapps: Collection<TestCordapp>): MockNodeParameters
fun withConfigOverrides(configOverrides: MockNodeConfigOverrides): MockNodeParameters
fun withEntropyRoot(entropyRoot: BigInteger): MockNodeParameters
fun withForcedID(forcedID: Int?): MockNodeParameters
fun withLegalName(legalName: CordaX500Name?): MockNodeParameters
open class MockServices : ServiceHub
Module Contents
MockServices(cordappPackages: Iterable<String>, initialIdentity: <ERROR CLASS>, identityService: IdentityService = makeTestIdentityService(), vararg moreKeys: KeyPair)
MockServices(cordappPackages: Iterable<String>, initialIdentity: <ERROR CLASS>, identityService: IdentityService, networkParameters: NetworkParameters, vararg moreKeys: KeyPair)
MockServices(cordappPackages: Iterable<String>, initialIdentity: <ERROR CLASS>, identityService: IdentityService, networkParameters: NetworkParameters, vararg moreKeys: KeyPair, keyManagementService: KeyManagementService)
MockServices(cordappPackages: Iterable<String>, initialIdentityName: CordaX500Name, identityService: IdentityService = makeTestIdentityService(), key: KeyPair, vararg moreKeys: KeyPair)
MockServices(cordappPackages: Iterable<String>, initialIdentityName: CordaX500Name, identityService: IdentityService = makeTestIdentityService())
MockServices(cordappPackages: Iterable<String>)
MockServices(initialIdentityName: CordaX500Name, identityService: IdentityService = makeTestIdentityService(), key: KeyPair, vararg moreKeys: KeyPair)
MockServices(initialIdentityName: CordaX500Name, identityService: IdentityService = makeTestIdentityService())
MockServices(cordappPackages: List<String>, initialIdentityName: CordaX500Name, identityService: IdentityService, networkParameters: NetworkParameters)
MockServices(cordappPackages: List<String>, initialIdentityName: CordaX500Name, identityService: IdentityService, networkParameters: NetworkParameters, key: KeyPair)
MockServices(firstIdentity: <ERROR CLASS>, vararg moreIdentities: <ERROR CLASS>)
MockServices(firstIdentity: <ERROR CLASS>, networkParameters: NetworkParameters, vararg moreIdentities: <ERROR CLASS>)
MockServices(cordappPackages: List<String>, firstIdentity: <ERROR CLASS>, vararg moreIdentities: <ERROR CLASS>)
MockServices(cordappPackages: List<String>, firstIdentity: <ERROR CLASS>, networkParameters: NetworkParameters, vararg moreIdentities: <ERROR CLASS>)
MockServices()
fun addMockCordapp(contractClassName: ContractClassName): Unit
val attachments: MockAttachmentStorage
open val clock: TestClock
open val contractUpgradeService: ContractUpgradeService
val cordappClassloader: ClassLoader
open val cordappProvider: CordappProvider
open fun <T : SerializeAsToken> cordaService(type: Class<T>): T
open fun <T : TelemetryComponent> cordaTelemetryComponent(type: Class<T>): T
open val diagnosticsService: DiagnosticsService
open val identityService: IdentityService
open fun jdbcSession(): Connection
open val keyManagementService: KeyManagementService
open fun loadContractAttachment(stateRef: StateRef): Attachment
open fun loadState(stateRef: StateRef): TransactionState<*>
open fun loadStates(stateRefs: Set<StateRef>): Set<StateAndRef<ContractState>>
@JvmStatic @JvmOverloads fun makeTestDatabaseAndMockServices(cordappPackages: List<String>, identityService: IdentityService, initialIdentity: <ERROR CLASS>, networkParameters: NetworkParameters = testNetworkParameters(modifiedTime = Instant.MIN), vararg moreKeys: KeyPair): Pair<CordaPersistence, MockServices>
@JvmStatic @JvmOverloads fun makeTestDatabaseAndPersistentServices(cordappPackages: List<String>, initialIdentity: <ERROR CLASS>, networkParameters: NetworkParameters = testNetworkParameters(modifiedTime = Instant.MIN), moreKeys: Set<KeyPair>, moreIdentities: Set<PartyAndCertificate>, cacheFactory: TestingNamedCacheFactory = TestingNamedCacheFactory()): Pair<CordaPersistence, MockServices>
@JvmStatic fun makeTestDataSourceProperties(nodeName: String = SecureHash.randomSHA256().toString()): Properties
open val myInfo: NodeInfo
open val networkMapCache: NetworkMapCache
open val networkParameters: NetworkParameters
open var networkParametersService: NetworkParametersService
open fun recordTransactions(statesToRecord: StatesToRecord, txs: Iterable<SignedTransaction>): Unit
@VisibleForTesting fun recordTransactions(txn: SignedTransaction, disableSignatureVerification: Boolean): Unit
@VisibleForTesting fun recordTransactions(txs: Iterable<SignedTransaction>, disableSignatureVerification: Boolean): Unit
open fun registerUnloadHandler(runOnStop: () -> Unit): Nothing
protected val servicesForResolution: ServicesForResolution
open val telemetryService: TelemetryServiceImpl
open val validatedTransactions: TransactionStorage
open val vaultService: VaultService
open fun <T> withEntityManager(block: EntityManager.() -> T): T
open fun withEntityManager(block: Consumer<EntityManager>): Unit
interface MoveCommand : CommandData
data class MultilateralNetState<P : Any> : NetState<P>
interface MultilateralNettableState<out T : Any>
class MultiRPCClient<I : RPCOps> : AutoCloseable
Module Contents
MultiRPCClient(hostAndPort: NetworkHostAndPort, rpcOpsClass: Class<I>, username: String, password: String, configuration: CordaRPCClientConfiguration = CordaRPCClientConfiguration.DEFAULT)
MultiRPCClient(hostAndPort: NetworkHostAndPort, rpcOpsClass: Class<I>, username: String, password: String, classLoader: ClassLoader, configuration: CordaRPCClientConfiguration = CordaRPCClientConfiguration.DEFAULT)
MultiRPCClient(hostAndPort: NetworkHostAndPort, rpcOpsClass: Class<I>, username: String, password: String, sslConfiguration: ClientRpcSslOptions? = null, classLoader: ClassLoader? = null)
MultiRPCClient(hostAndPort: NetworkHostAndPort, rpcOpsClass: Class<I>, username: String, password: String, configuration: CordaRPCClientConfiguration, sslConfiguration: ClientRpcSslOptions?, classLoader: ClassLoader? = null)
MultiRPCClient(haAddressPool: List<NetworkHostAndPort>, rpcOpsClass: Class<I>, username: String, password: String, configuration: CordaRPCClientConfiguration = CordaRPCClientConfiguration.DEFAULT, sslConfiguration: ClientRpcSslOptions? = null, classLoader: ClassLoader? = null)
MultiRPCClient(hostAndPort: NetworkHostAndPort, rpcOpsClass: Class<I>, username: String, password: String, customSerializers: Set<SerializationCustomSerializer<*, *>>?, configuration: CordaRPCClientConfiguration = CordaRPCClientConfiguration.DEFAULT, sslConfiguration: ClientRpcSslOptions? = null, classLoader: ClassLoader? = null, externalTrace: Trace? = null, impersonatedActor: Actor? = null, targetLegalIdentity: CordaX500Name? = null)
MultiRPCClient(haAddressPool: List<NetworkHostAndPort>, rpcOpsClass: Class<I>, username: String, password: String, customSerializers: Set<SerializationCustomSerializer<*, *>>?, configuration: CordaRPCClientConfiguration = CordaRPCClientConfiguration.DEFAULT, sslConfiguration: ClientRpcSslOptions? = null, classLoader: ClassLoader? = null, externalTrace: Trace? = null, impersonatedActor: Actor? = null, targetLegalIdentity: CordaX500Name? = null)
fun addConnectionListener(listener: RPCConnectionListener<I>): Boolean
fun close(): Unit
fun removeConnectionListener(listener: RPCConnectionListener<I>): Boolean
fun start(): CompletableFuture<RPCConnection<I>>
fun stop(): Unit
interface NamedByHash
net.corda.testing.node.internal.TestStartedNode
interface NetCommand : CommandData
interface NetState<P : Any>
interface NettableState<N : BilateralNettableState<N>, out T : Any> : BilateralNettableState<N>, MultilateralNettableState<T>
enum class NetType
data class NetworkHostAndPort
interface NetworkMapCache : NetworkMapCacheBase
@DoNotImplement interface NetworkMapCacheBase
data class NetworkParameters
Module Contents
NetworkParameters(minimumPlatformVersion: Int, notaries: List<NotaryInfo>, maxMessageSize: Int, maxTransactionSize: Int, modifiedTime: Instant, epoch: Int, whitelistedContractImplementations: Map<String, List<AttachmentId>>)
NetworkParameters(minimumPlatformVersion: Int, notaries: List<NotaryInfo>, maxMessageSize: Int, maxTransactionSize: Int, modifiedTime: Instant, epoch: Int, whitelistedContractImplementations: Map<String, List<AttachmentId>>, eventHorizon: Duration)
NetworkParameters(minimumPlatformVersion: Int, notaries: List<NotaryInfo>, maxMessageSize: Int, maxTransactionSize: Int, modifiedTime: Instant, epoch: Int, whitelistedContractImplementations: Map<String, List<AttachmentId>>, eventHorizon: Duration, packageOwnership: Map<String, PublicKey>)
NetworkParameters(minimumPlatformVersion: Int, notaries: List<NotaryInfo>, maxMessageSize: Int, maxTransactionSize: Int, modifiedTime: Instant, epoch: Int, whitelistedContractImplementations: Map<String, List<AttachmentId>>, eventHorizon: Duration, packageOwnership: Map<String, PublicKey>, recoveryMaximumBackupInterval: Duration? = null, confidentialIdentityMinimumBackupInterval: Duration? = null)
val confidentialIdentityMinimumBackupInterval: Duration?
fun copy(minimumPlatformVersion: Int = this.minimumPlatformVersion, notaries: List<NotaryInfo> = this.notaries, maxMessageSize: Int = this.maxMessageSize, maxTransactionSize: Int = this.maxTransactionSize, modifiedTime: Instant = this.modifiedTime, epoch: Int = this.epoch, whitelistedContractImplementations: Map<String, List<AttachmentId>> = this.whitelistedContractImplementations, eventHorizon: Duration = this.eventHorizon, packageOwnership: Map<String, PublicKey> = this.packageOwnership): NetworkParameters
fun copy(minimumPlatformVersion: Int = this.minimumPlatformVersion, notaries: List<NotaryInfo> = this.notaries, maxMessageSize: Int = this.maxMessageSize, maxTransactionSize: Int = this.maxTransactionSize, modifiedTime: Instant = this.modifiedTime, epoch: Int = this.epoch, whitelistedContractImplementations: Map<String, List<AttachmentId>> = this.whitelistedContractImplementations, eventHorizon: Duration = this.eventHorizon): NetworkParameters
fun copy(minimumPlatformVersion: Int = this.minimumPlatformVersion, notaries: List<NotaryInfo> = this.notaries, maxMessageSize: Int = this.maxMessageSize, maxTransactionSize: Int = this.maxTransactionSize, modifiedTime: Instant = this.modifiedTime, epoch: Int = this.epoch, whitelistedContractImplementations: Map<String, List<AttachmentId>> = this.whitelistedContractImplementations): NetworkParameters
val epoch: Int
val eventHorizon: Duration
val maxMessageSize: Int
val maxTransactionSize: Int
val minimumPlatformVersion: Int
val modifiedTime: Instant
val notaries: List<NotaryInfo>
val packageOwnership: Map<String, PublicKey>
val recoveryMaximumBackupInterval: Duration?
fun toImmutable(): NetworkParameters
fun toString(): String
val whitelistedContractImplementations: Map<String, List<AttachmentId>>
data class NetworkParametersHash
@DoNotImplement interface NetworkParametersService
@Target([AnnotationTarget.CLASS]) @Inherited annotation class NoConstraintPropagation
data class NodeDiagnosticInfo
@DoNotImplement interface NodeHandle : AutoCloseable
data class NodeInfo
data class NodeParameters
Module Contents
NodeParameters()
NodeParameters(providedName: CordaX500Name?, rpcUsers: List<User>, verifierType: VerifierType, customOverrides: Map<String, Any?>, startInSameProcess: Boolean?, maximumHeapSize: String)
NodeParameters(providedName: CordaX500Name?, rpcUsers: List<User>, verifierType: VerifierType, customOverrides: Map<String, Any?>, startInSameProcess: Boolean?, maximumHeapSize: String, additionalCordapps: Collection<TestCordapp> = emptySet(), flowOverrides: Map<out Class<out FlowLogic<*>>, Class<out FlowLogic<*>>>)
NodeParameters(providedName: CordaX500Name?, rpcUsers: List<User>, verifierType: VerifierType, customOverrides: Map<String, Any?>, startInSameProcess: Boolean?, maximumHeapSize: String, additionalCordapps: Collection<TestCordapp> = emptySet(), flowOverrides: Map<out Class<out FlowLogic<*>>, Class<out FlowLogic<*>>>, logLevelOverride: String? = null)
NodeParameters(providedName: CordaX500Name?, rpcUsers: List<User>, verifierType: VerifierType, customOverrides: Map<String, Any?>, startInSameProcess: Boolean?, maximumHeapSize: String, additionalCordapps: Collection<TestCordapp> = emptySet(), flowOverrides: Map<out Class<out FlowLogic<*>>, Class<out FlowLogic<*>>>, logLevelOverride: String? = null, rpcAddress: NetworkHostAndPort? = null)
NodeParameters(providedName: CordaX500Name? = null, rpcUsers: List<User> = emptyList(), verifierType: VerifierType = VerifierType.InMemory, customOverrides: Map<String, Any?> = emptyMap(), startInSameProcess: Boolean? = null, maximumHeapSize: String = System.getenv("DRIVER_NODE_MEMORY") ?: "512m", additionalCordapps: Collection<TestCordapp> = emptySet(), flowOverrides: Map<out Class<out FlowLogic<*>>, Class<out FlowLogic<*>>> = emptyMap(), logLevelOverride: String? = null, rpcAddress: NetworkHostAndPort? = null, systemProperties: Map<String, String> = emptyMap())
val additionalCordapps: Collection<TestCordapp>
fun copy(providedName: CordaX500Name?, rpcUsers: List<User>, verifierType: VerifierType, customOverrides: Map<String, Any?>, startInSameProcess: Boolean?, maximumHeapSize: String): NodeParameters
fun copy(providedName: CordaX500Name?, rpcUsers: List<User>, verifierType: VerifierType, customOverrides: Map<String, Any?>, startInSameProcess: Boolean?, maximumHeapSize: String, additionalCordapps: Collection<TestCordapp> = emptySet(), flowOverrides: Map<out Class<out FlowLogic<*>>, Class<out FlowLogic<*>>>): NodeParameters
fun copy(providedName: CordaX500Name?, rpcUsers: List<User>, verifierType: VerifierType, customOverrides: Map<String, Any?>, startInSameProcess: Boolean?, maximumHeapSize: String, additionalCordapps: Collection<TestCordapp> = emptySet(), flowOverrides: Map<out Class<out FlowLogic<*>>, Class<out FlowLogic<*>>>, logLevelOverride: String? = null): NodeParameters
fun copy(providedName: CordaX500Name?, rpcUsers: List<User>, verifierType: VerifierType, customOverrides: Map<String, Any?>, startInSameProcess: Boolean?, maximumHeapSize: String, additionalCordapps: Collection<TestCordapp> = emptySet(), flowOverrides: Map<out Class<out FlowLogic<*>>, Class<out FlowLogic<*>>>, logLevelOverride: String? = null, rpcAddress: NetworkHostAndPort? = null): NodeParameters
val customOverrides: Map<String, Any?>
val flowOverrides: Map<out Class<out FlowLogic<*>>, Class<out FlowLogic<*>>>
val logLevelOverride: String?
val maximumHeapSize: String
val providedName: CordaX500Name?
val rpcAddress: NetworkHostAndPort?
val rpcUsers: List<User>
val startInSameProcess: Boolean?
val systemProperties: Map<String, String>
val verifierType: VerifierType
fun withAdditionalCordapps(additionalCordapps: Set<TestCordapp>): NodeParameters
fun withCustomOverrides(customOverrides: Map<String, Any?>): NodeParameters
fun withFlowOverrides(flowOverrides: Map<Class<out FlowLogic<*>>, Class<out FlowLogic<*>>>): NodeParameters
fun withLogLevelOverride(logLevelOverride: String?): NodeParameters
fun withMaximumHeapSize(maximumHeapSize: String): NodeParameters
fun withProvidedName(providedName: CordaX500Name?): NodeParameters
fun withRpcUsers(rpcUsers: List<User>): NodeParameters
fun withStartInSameProcess(startInSameProcess: Boolean?): NodeParameters
fun withVerifierType(verifierType: VerifierType): NodeParameters
data class NodeVersionInfo
class NonEmptySet<T> : Set<T>
data class NotarisationPayload
class NotarisationRequest
data class NotarisationRequestSignature
data class NotarisationResponse
@InitiatingFlow class NotaryChangeFlow<out T : ContractState> : Instigator<T, T, Party>
class NotaryChangeLedgerTransaction : FullTransaction, TransactionWithSignatures
data class NotaryChangeWireTransaction : CoreTransaction
sealed class NotaryError
class NotaryException : FlowException
class NotaryFlow
data class NotaryHandle
data class NotaryInfo
object NotarySigCheck
data class NotarySpec
Module Contents
NotarySpec(name: CordaX500Name, validating: Boolean = true, rpcUsers: List<User> = emptyList(), verifierType: VerifierType = VerifierType.InMemory, cluster: ClusterSpec? = null)
NotarySpec(name: CordaX500Name, validating: Boolean = true, rpcUsers: List<User> = emptyList(), verifierType: VerifierType = VerifierType.InMemory, cluster: ClusterSpec? = null, maximumHeapSize: String)
NotarySpec(name: CordaX500Name, validating: Boolean = true, rpcUsers: List<User> = emptyList(), verifierType: VerifierType = VerifierType.InMemory, cluster: ClusterSpec? = null, maximumHeapSize: String = "512m", startInProcess: Boolean = true)
NotarySpec(name: CordaX500Name, validating: Boolean = true, rpcUsers: List<User> = emptyList(), verifierType: VerifierType = VerifierType.InMemory, cluster: ClusterSpec? = null, startInProcess: Boolean = true)
val cluster: ClusterSpec?
fun copy(name: CordaX500Name, validating: Boolean = true, rpcUsers: List<User> = emptyList(), verifierType: VerifierType = VerifierType.InMemory, cluster: ClusterSpec? = null): NotarySpec
var maximumHeapSize: String
val name: CordaX500Name
val rpcUsers: List<User>
val startInProcess: Boolean
val validating: Boolean
val verifierType: VerifierType
object NullKeys
enum class NullOperator : Operator
data class ObjectWithCompatibleContext<out T : Any>
class Obligation<P : Any> : Contract
object ObligationUtils
Module Contents
@JvmStatic fun generateCashIssue(tx: TransactionBuilder, obligor: AbstractParty, acceptableContract: SecureHash, amount: Amount<Issued<Currency>>, dueBefore: Instant, beneficiary: AbstractParty, notary: Party): Unit
@JvmStatic fun <P : Any> generateCloseOutNetting(tx: TransactionBuilder, signer: AbstractParty, vararg inputs: StateAndRef<State<P>>): Unit
@JvmStatic fun <P : Any> generateExit(tx: TransactionBuilder, amountIssued: Amount<Issued<Terms<P>>>, assetStates: List<StateAndRef<State<P>>>): Set<PublicKey>
fun <P : Any> generateIssue(tx: TransactionBuilder, obligor: AbstractParty, issuanceDef: Terms<P>, pennies: Long, beneficiary: AbstractParty, notary: Party): Set<PublicKey>
@JvmStatic fun <P : Any> generatePaymentNetting(tx: TransactionBuilder, issued: Issued<Terms<P>>, notary: Party, vararg inputs: StateAndRef<State<P>>): Unit
@JvmStatic fun <P : Any> generateSetLifecycle(tx: TransactionBuilder, statesAndRefs: List<StateAndRef<State<P>>>, lifecycle: Lifecycle, notary: Party): Unit
@JvmStatic fun <P : Any> generateSettle(tx: TransactionBuilder, statesAndRefs: Iterable<StateAndRef<State<P>>>, assetStatesAndRefs: Iterable<StateAndRef<FungibleAsset<P>>>, moveCommand: MoveCommand, notary: Party): Unit
abstract class OnLedgerAsset<T : Any, out C : CommandData, S : FungibleAsset<T>> : Contract
Module Contents
OnLedgerAsset()
abstract fun deriveState(txState: TransactionState<S>, amount: Amount<Issued<T>>, owner: AbstractParty): TransactionState<S>
abstract fun extractCommands(commands: Collection<CommandWithParties<CommandData>>): Collection<CommandWithParties<C>>
fun generateExit(tx: TransactionBuilder, amountIssued: Amount<Issued<T>>, assetStates: List<StateAndRef<S>>): Set<PublicKey>
fun generateExit(tx: TransactionBuilder, amountIssued: Amount<Issued<T>>, assetStates: List<StateAndRef<S>>, payChangeTo: AbstractParty): Set<PublicKey>
@JvmStatic fun <S : FungibleAsset<T>, T : Any> generateExit(tx: TransactionBuilder, amountIssued: Amount<Issued<T>>, assetStates: List<StateAndRef<S>>, deriveState: (TransactionState<S>, Amount<Issued<T>>, AbstractParty) -> TransactionState<S>, generateMoveCommand: () -> CommandData, generateExitCommand: (Amount<Issued<T>>) -> CommandData): Set<PublicKey>
@JvmStatic fun <S : FungibleAsset<T>, T : Any> generateExit(tx: TransactionBuilder, amountIssued: Amount<Issued<T>>, assetStates: List<StateAndRef<S>>, payChangeTo: AbstractParty, deriveState: (TransactionState<S>, Amount<Issued<T>>, AbstractParty) -> TransactionState<S>, generateMoveCommand: () -> CommandData, generateExitCommand: (Amount<Issued<T>>) -> CommandData): Set<PublicKey>
abstract fun generateExitCommand(amount: Amount<Issued<T>>): CommandData
@JvmStatic fun <S : FungibleAsset<T>, T : Any> generateIssue(tx: TransactionBuilder, transactionState: TransactionState<S>, issueCommand: CommandData): Set<PublicKey>
abstract fun generateMoveCommand(): MoveCommand
@JvmStatic fun <S : FungibleAsset<T>, T : Any> generateSpend(tx: TransactionBuilder, amount: Amount<T>, to: AbstractParty, acceptableStates: List<StateAndRef<S>>, payChangeTo: AbstractParty, deriveState: (TransactionState<S>, Amount<Issued<T>>, AbstractParty) -> TransactionState<S>, generateMoveCommand: () -> CommandData): Pair<TransactionBuilder, List<PublicKey>>
@JvmStatic fun <S : FungibleAsset<T>, T : Any> generateSpend(tx: TransactionBuilder, payments: List<PartyAndAmount<T>>, acceptableStates: List<StateAndRef<S>>, payChangeTo: AbstractParty, deriveState: (TransactionState<S>, Amount<Issued<T>>, AbstractParty) -> TransactionState<S>, generateMoveCommand: () -> CommandData): Pair<TransactionBuilder, List<PublicKey>>
open class OpaqueBytes : ByteSequence
class OpaqueBytesSubSequence : ByteSequence
@DoNotImplement interface Operator
org.slf4j.Logger
@DoNotImplement interface OutOfProcess : NodeHandle
@DoNotImplement interface OutputStateLookup
interface OwnableState : ContractState
data class PageSpecification
data class ParametersUpdateInfo
class PartialMerkleTree
class Party : Destination, AbstractParty
data class PartyAndAmount<T : Any>
class PartyAndCertificate
data class PartyAndReference
sealed class PartyInfo
enum class PaymentRule
class PermissionException : CordaRuntimeException, RpcSerializableError, ClientRelevantError
@MappedSuperclass class PersistentState : DirectStatePersistable
@Embeddable data class PersistentStateRef : Serializable
@DoNotImplement abstract class PortAllocation
class PrivacySalt : OpaqueBytes
class ProgressTracker
interface PropertyDelegate<out T>
interface QueryableState : ContractState
sealed class QueryCriteria : GenericQueryCriteria<QueryCriteria, IQueryCriteriaParser>, ChainableQueryCriteria<QueryCriteria, IQueryCriteriaParser>
Module Contents
open fun and(criteria: QueryCriteria): QueryCriteria
class AndComposition : QueryCriteria, AndVisitor<QueryCriteria, IQueryCriteriaParser, Sort>
abstract class CommonQueryCriteria : QueryCriteria
data class FungibleAssetQueryCriteria : CommonQueryCriteria
Module Contents
FungibleAssetQueryCriteria(participants: List<AbstractParty>? = null, owner: List<AbstractParty>? = null, quantity: ColumnPredicate<Long>? = null, issuer: List<AbstractParty>? = null, issuerRef: List<OpaqueBytes>? = null, status: StateStatus = Vault.StateStatus.UNCONSUMED, contractStateTypes: Set<Class<out ContractState>>? = null, relevancyStatus: RelevancyStatus)
FungibleAssetQueryCriteria(participants: List<AbstractParty>? = null, owner: List<AbstractParty>? = null, quantity: ColumnPredicate<Long>? = null, issuer: List<AbstractParty>? = null, issuerRef: List<OpaqueBytes>? = null, status: StateStatus = Vault.StateStatus.UNCONSUMED, contractStateTypes: Set<Class<out ContractState>>? = null)
FungibleAssetQueryCriteria(participants: List<AbstractParty>? = null, owner: List<AbstractParty>? = null, quantity: ColumnPredicate<Long>? = null, issuer: List<AbstractParty>? = null, issuerRef: List<OpaqueBytes>? = null, status: StateStatus = Vault.StateStatus.UNCONSUMED, contractStateTypes: Set<Class<out ContractState>>? = null, relevancyStatus: RelevancyStatus, exactParticipants: List<AbstractParty>? = null)
val contractStateTypes: Set<Class<out ContractState>>?
fun copy(participants: List<AbstractParty>? = this.participants, owner: List<AbstractParty>? = this.owner, quantity: ColumnPredicate<Long>? = this.quantity, issuer: List<AbstractParty>? = this.issuer, issuerRef: List<OpaqueBytes>? = this.issuerRef, status: StateStatus = this.status, contractStateTypes: Set<Class<out ContractState>>? = this.contractStateTypes, relevancyStatus: RelevancyStatus = this.relevancyStatus): FungibleAssetQueryCriteria
fun copy(participants: List<AbstractParty>? = this.participants, owner: List<AbstractParty>? = this.owner, quantity: ColumnPredicate<Long>? = this.quantity, issuer: List<AbstractParty>? = this.issuer, issuerRef: List<OpaqueBytes>? = this.issuerRef, status: StateStatus = this.status, contractStateTypes: Set<Class<out ContractState>>? = this.contractStateTypes): FungibleAssetQueryCriteria
val exactParticipants: List<AbstractParty>?
val issuer: List<AbstractParty>?
val issuerRef: List<OpaqueBytes>?
val owner: List<AbstractParty>?
val participants: List<AbstractParty>?
val quantity: ColumnPredicate<Long>?
val relevancyStatus: RelevancyStatus
val status: StateStatus
fun visit(parser: IQueryCriteriaParser): Collection<Predicate>
fun withContractStateTypes(contractStateTypes: Set<Class<out ContractState>>): FungibleAssetQueryCriteria
fun withExactParticipants(exactParticipants: List<AbstractParty>): FungibleAssetQueryCriteria
fun withIssuer(issuer: List<AbstractParty>): FungibleAssetQueryCriteria
fun withissuerRef(issuerRef: List<OpaqueBytes>): FungibleAssetQueryCriteria
fun withOwner(owner: List<AbstractParty>): FungibleAssetQueryCriteria
fun withParticipants(participants: List<AbstractParty>): FungibleAssetQueryCriteria
fun withQuantity(quantity: ColumnPredicate<Long>): FungibleAssetQueryCriteria
fun withRelevancyStatus(relevancyStatus: RelevancyStatus): FungibleAssetQueryCriteria
fun withStatus(status: StateStatus): FungibleAssetQueryCriteria
data class FungibleStateQueryCriteria : CommonQueryCriteria
data class LinearStateQueryCriteria : CommonQueryCriteria
Module Contents
LinearStateQueryCriteria(participants: List<AbstractParty>? = null, uuid: List<UUID>? = null, externalId: List<String>? = null, status: StateStatus = Vault.StateStatus.UNCONSUMED, contractStateTypes: Set<Class<out ContractState>>? = null, relevancyStatus: RelevancyStatus = Vault.RelevancyStatus.ALL)
LinearStateQueryCriteria(participants: List<AbstractParty>? = null, uuid: List<UUID>? = null, externalId: List<String>? = null, status: StateStatus = Vault.StateStatus.UNCONSUMED, contractStateTypes: Set<Class<out ContractState>>? = null)
LinearStateQueryCriteria(participants: List<AbstractParty>? = null, linearId: List<UniqueIdentifier>? = null, status: StateStatus = Vault.StateStatus.UNCONSUMED, contractStateTypes: Set<Class<out ContractState>>? = null, relevancyStatus: RelevancyStatus = Vault.RelevancyStatus.ALL)
LinearStateQueryCriteria(participants: List<AbstractParty>? = null, linearId: List<UniqueIdentifier>? = null, status: StateStatus = Vault.StateStatus.UNCONSUMED, contractStateTypes: Set<Class<out ContractState>>? = null)
LinearStateQueryCriteria(participants: List<AbstractParty>? = null, uuid: List<UUID>? = null, externalId: List<String>? = null, status: StateStatus = Vault.StateStatus.UNCONSUMED, contractStateTypes: Set<Class<out ContractState>>? = null, relevancyStatus: RelevancyStatus = Vault.RelevancyStatus.ALL, exactParticipants: List<AbstractParty>?)
val contractStateTypes: Set<Class<out ContractState>>?
fun copy(participants: List<AbstractParty>? = this.participants, uuid: List<UUID>? = this.uuid, externalId: List<String>? = this.externalId, status: StateStatus = this.status, contractStateTypes: Set<Class<out ContractState>>? = this.contractStateTypes): LinearStateQueryCriteria
fun copy(participants: List<AbstractParty>? = this.participants, uuid: List<UUID>? = this.uuid, externalId: List<String>? = this.externalId, status: StateStatus = this.status, contractStateTypes: Set<Class<out ContractState>>? = this.contractStateTypes, relevancyStatus: RelevancyStatus = this.relevancyStatus): LinearStateQueryCriteria
val exactParticipants: List<AbstractParty>?
val externalId: List<String>?
val participants: List<AbstractParty>?
val relevancyStatus: RelevancyStatus
val status: StateStatus
val uuid: List<UUID>?
fun visit(parser: IQueryCriteriaParser): Collection<Predicate>
fun withContractStateTypes(contractStateTypes: Set<Class<out ContractState>>): LinearStateQueryCriteria
fun withExactParticipants(exactParticipants: List<AbstractParty>): LinearStateQueryCriteria
fun withExternalId(externalId: List<String>): LinearStateQueryCriteria
fun withParticipants(participants: List<AbstractParty>): LinearStateQueryCriteria
fun withRelevancyStatus(relevancyStatus: RelevancyStatus): LinearStateQueryCriteria
fun withStatus(status: StateStatus): LinearStateQueryCriteria
fun withUuid(uuid: List<UUID>): LinearStateQueryCriteria
open fun or(criteria: QueryCriteria): QueryCriteria
class OrComposition : QueryCriteria, OrVisitor<QueryCriteria, IQueryCriteriaParser, Sort>
data class SoftLockingCondition
enum class SoftLockingType
data class TimeCondition
enum class TimeInstantType
data class VaultCustomQueryCriteria<L : StatePersistable> : CommonQueryCriteria
Module Contents
VaultCustomQueryCriteria(expression: CriteriaExpression<L, Boolean>, status: StateStatus = Vault.StateStatus.UNCONSUMED, contractStateTypes: Set<Class<out ContractState>>? = null)
VaultCustomQueryCriteria(expression: CriteriaExpression<L, Boolean>, status: StateStatus = Vault.StateStatus.UNCONSUMED, contractStateTypes: Set<Class<out ContractState>>? = null, relevancyStatus: RelevancyStatus = Vault.RelevancyStatus.ALL)
val contractStateTypes: Set<Class<out ContractState>>?
fun copy(expression: CriteriaExpression<L, Boolean> = this.expression, status: StateStatus = this.status, contractStateTypes: Set<Class<out ContractState>>? = this.contractStateTypes): VaultCustomQueryCriteria<L>
val expression: CriteriaExpression<L, Boolean>
val relevancyStatus: RelevancyStatus
val status: StateStatus
fun visit(parser: IQueryCriteriaParser): Collection<Predicate>
fun withContractStateTypes(contractStateTypes: Set<Class<out ContractState>>): VaultCustomQueryCriteria<L>
fun withExpression(expression: CriteriaExpression<L, Boolean>): VaultCustomQueryCriteria<L>
fun withRelevancyStatus(relevancyStatus: RelevancyStatus): VaultCustomQueryCriteria<L>
fun withStatus(status: StateStatus): VaultCustomQueryCriteria<L>
data class VaultQueryCriteria : CommonQueryCriteria
Module Contents
VaultQueryCriteria(status: StateStatus = Vault.StateStatus.UNCONSUMED, contractStateTypes: Set<Class<out ContractState>>? = null, stateRefs: List<StateRef>? = null, notary: List<AbstractParty>? = null, softLockingCondition: SoftLockingCondition? = null, timeCondition: TimeCondition? = null, relevancyStatus: RelevancyStatus = Vault.RelevancyStatus.ALL, constraintTypes: Set<Type> = emptySet(), constraints: Set<ConstraintInfo> = emptySet(), participants: List<AbstractParty>? = null, externalIds: List<UUID> = emptyList())
VaultQueryCriteria(status: StateStatus = Vault.StateStatus.UNCONSUMED, contractStateTypes: Set<Class<out ContractState>>? = null, stateRefs: List<StateRef>? = null, notary: List<AbstractParty>? = null, softLockingCondition: SoftLockingCondition? = null, timeCondition: TimeCondition? = null, relevancyStatus: RelevancyStatus = Vault.RelevancyStatus.ALL, constraintTypes: Set<Type> = emptySet(), constraints: Set<ConstraintInfo> = emptySet(), participants: List<AbstractParty>? = null)
VaultQueryCriteria(status: StateStatus = Vault.StateStatus.UNCONSUMED, contractStateTypes: Set<Class<out ContractState>>? = null, stateRefs: List<StateRef>? = null, notary: List<AbstractParty>? = null, softLockingCondition: SoftLockingCondition? = null, timeCondition: TimeCondition? = null)
VaultQueryCriteria(status: StateStatus)
VaultQueryCriteria(status: StateStatus, contractStateTypes: Set<Class<out ContractState>>?)
VaultQueryCriteria(status: StateStatus, contractStateTypes: Set<Class<out ContractState>>?, stateRefs: List<StateRef>?)
VaultQueryCriteria(status: StateStatus, contractStateTypes: Set<Class<out ContractState>>?, stateRefs: List<StateRef>?, notary: List<AbstractParty>?)
VaultQueryCriteria(status: StateStatus, contractStateTypes: Set<Class<out ContractState>>?, stateRefs: List<StateRef>?, notary: List<AbstractParty>?, softLockingCondition: SoftLockingCondition?)
VaultQueryCriteria(status: StateStatus = Vault.StateStatus.UNCONSUMED, contractStateTypes: Set<Class<out ContractState>>? = null, stateRefs: List<StateRef>? = null, notary: List<AbstractParty>? = null, softLockingCondition: SoftLockingCondition? = null, timeCondition: TimeCondition? = null, relevancyStatus: RelevancyStatus = Vault.RelevancyStatus.ALL, constraintTypes: Set<Type> = emptySet(), constraints: Set<ConstraintInfo> = emptySet(), participants: List<AbstractParty>? = null, externalIds: List<UUID> = emptyList(), exactParticipants: List<AbstractParty>? = null)
val constraints: Set<ConstraintInfo>
val constraintTypes: Set<Type>
val contractStateTypes: Set<Class<out ContractState>>?
fun copy(status: StateStatus = Vault.StateStatus.UNCONSUMED, contractStateTypes: Set<Class<out ContractState>>? = null, stateRefs: List<StateRef>? = null, notary: List<AbstractParty>? = null, softLockingCondition: SoftLockingCondition? = null, timeCondition: TimeCondition? = null, relevancyStatus: RelevancyStatus = Vault.RelevancyStatus.ALL, constraintTypes: Set<Type> = emptySet(), constraints: Set<ConstraintInfo> = emptySet(), participants: List<AbstractParty>? = null, externalIds: List<UUID> = emptyList()): VaultQueryCriteria
fun copy(status: StateStatus = Vault.StateStatus.UNCONSUMED, contractStateTypes: Set<Class<out ContractState>>? = null, stateRefs: List<StateRef>? = null, notary: List<AbstractParty>? = null, softLockingCondition: SoftLockingCondition? = null, timeCondition: TimeCondition? = null, relevancyStatus: RelevancyStatus = Vault.RelevancyStatus.ALL, constraintTypes: Set<Type> = emptySet(), constraints: Set<ConstraintInfo> = emptySet(), participants: List<AbstractParty>? = null): VaultQueryCriteria
fun copy(status: StateStatus = this.status, contractStateTypes: Set<Class<out ContractState>>? = this.contractStateTypes, stateRefs: List<StateRef>? = this.stateRefs, notary: List<AbstractParty>? = this.notary, softLockingCondition: SoftLockingCondition? = this.softLockingCondition, timeCondition: TimeCondition? = this.timeCondition): VaultQueryCriteria
val exactParticipants: List<AbstractParty>?
val externalIds: List<UUID>
val notary: List<AbstractParty>?
val participants: List<AbstractParty>?
val relevancyStatus: RelevancyStatus
val softLockingCondition: SoftLockingCondition?
val stateRefs: List<StateRef>?
val status: StateStatus
val timeCondition: TimeCondition?
fun visit(parser: IQueryCriteriaParser): Collection<Predicate>
fun withConstraints(constraints: Set<ConstraintInfo>): VaultQueryCriteria
fun withConstraintTypes(constraintTypes: Set<Type>): VaultQueryCriteria
fun withContractStateTypes(contractStateTypes: Set<Class<out ContractState>>): VaultQueryCriteria
fun withExactParticipants(exactParticipants: List<AbstractParty>): VaultQueryCriteria
fun withExternalIds(externalIds: List<UUID>): VaultQueryCriteria
fun withNotary(notary: List<AbstractParty>): VaultQueryCriteria
fun withParticipants(participants: List<AbstractParty>): VaultQueryCriteria
fun withRelevancyStatus(relevancyStatus: RelevancyStatus): VaultQueryCriteria
fun withSoftLockingCondition(softLockingCondition: SoftLockingCondition): VaultQueryCriteria
fun withStateRefs(stateRefs: List<StateRef>): VaultQueryCriteria
fun withStatus(status: StateStatus): VaultQueryCriteria
fun withTimeCondition(timeCondition: TimeCondition): VaultQueryCriteria
class ReceiveFinalityFlow : FlowLogic<SignedTransaction>
data class ReceiverDistributionRecord : DistributionRecord
class ReceiveStateAndRefFlow<out T : ContractState> : FlowLogic<@JvmSuppressWildcards List<StateAndRef<T>>>
open class ReceiveTransactionFlow : FlowLogic<SignedTransaction>
data class RecoveryTimeWindow
data class ReferencedStateAndRef<out T : ContractState>
data class ReferenceStateRef
object Requirements
class ResultSerializationException : CordaRuntimeException
@DoNotImplement interface RPCConnection<out I : RPCOps> : Closeable
interface RPCConnectionListener<I : RPCOps>
open class RPCException : CordaRuntimeException
@DoNotImplement interface RPCOps
@Target([AnnotationTarget.FUNCTION]) annotation class RPCReturnsObservables
@Target([AnnotationTarget.FUNCTION]) annotation class RPCSinceVersion
rx.Observable
rx.Observable
rx.Observable
object SampleCashSchemaV1 : MappedSchema
object SampleCashSchemaV2 : MappedSchema
object SampleCashSchemaV3 : MappedSchema
@Target([AnnotationTarget.CLASS]) @Inherited annotation class SchedulableFlow
interface SchedulableState : ContractState
interface Scheduled
data class ScheduledActivity : Scheduled
data class ScheduledStateRef : Scheduled
sealed class SecureHash : OpaqueBytes
data class SenderDistributionRecord : DistributionRecord
open class SendStateAndRefFlow : DataVendingFlow
open class SendTransactionFlow : DataVendingFlow
@Target([AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.FUNCTION]) annotation class SerializableCalculatedProperty
@DoNotImplement interface SerializationContext
interface SerializationCustomSerializer<OBJ, PROXY>
object SerializationDefaults
@DoNotImplement interface SerializationEncoding
abstract class SerializationFactory
typealias SerializationMagic = ByteSequence
@DoNotImplement interface SerializationSchemeContext
interface SerializationToken
interface SerializationWhitelist
interface SerializeAsToken
interface SerializeAsTokenContext
class SerializedBytes<T : Any> : OpaqueBytes
interface ServiceHub : ServicesForResolution
Module Contents
open fun addSignature(signedTransaction: SignedTransaction, publicKey: PublicKey): SignedTransaction
open fun addSignature(signedTransaction: SignedTransaction): SignedTransaction
abstract val clock: Clock
abstract val contractUpgradeService: ContractUpgradeService
abstract fun <T : SerializeAsToken> cordaService(type: Class<T>): T
abstract fun <T : TelemetryComponent> cordaTelemetryComponent(type: Class<T>): T
open fun createSignature(signedTransaction: SignedTransaction, publicKey: PublicKey): TransactionSignature
open fun createSignature(signedTransaction: SignedTransaction): TransactionSignature
open fun createSignature(filteredTransaction: FilteredTransaction, publicKey: PublicKey): TransactionSignature
open fun createSignature(filteredTransaction: FilteredTransaction): TransactionSignature
abstract val diagnosticsService: DiagnosticsService
open fun getAppContext(): CordappContext
abstract fun jdbcSession(): Connection
abstract val keyManagementService: KeyManagementService
abstract val myInfo: NodeInfo
abstract val networkMapCache: NetworkMapCache
open fun recordTransactions(notifyVault: Boolean, txs: Iterable<SignedTransaction>): Unit
open fun recordTransactions(notifyVault: Boolean, first: SignedTransaction, vararg remaining: SignedTransaction): Unit
abstract fun recordTransactions(statesToRecord: StatesToRecord, txs: Iterable<SignedTransaction>): Unit
open fun recordTransactions(first: SignedTransaction, vararg remaining: SignedTransaction): Unit
open fun recordTransactions(txs: Iterable<SignedTransaction>): Unit
abstract fun registerUnloadHandler(runOnStop: () -> Unit): Unit
open fun signInitialTransaction(builder: TransactionBuilder, publicKey: PublicKey): SignedTransaction
open fun signInitialTransaction(builder: TransactionBuilder): SignedTransaction
open fun signInitialTransaction(builder: TransactionBuilder, signingPubKeys: Iterable<PublicKey>): SignedTransaction
abstract val telemetryService: TelemetryService
open fun <T : ContractState> toStateAndRef(stateRef: StateRef): StateAndRef<T>
abstract val validatedTransactions: TransactionStorage
abstract val vaultService: VaultService
abstract fun <T> withEntityManager(block: EntityManager.() -> T): T
abstract fun withEntityManager(block: Consumer<EntityManager>): Unit
enum class ServiceLifecycleEvent
@FunctionalInterface interface ServiceLifecycleObserver
@DoNotImplement interface ServicesForResolution
@DoNotImplement interface SessionScope
object SgxSupport
data class SignableData
data class SignatureAttachmentConstraint : AttachmentConstraint
data class SignatureMetadata
data class SignatureScheme
open class SignedData<T : Any>
data class SignedTransaction : TransactionWithSignatures
data class SignedTransactionWithDistributionList
data class SignedTransactionWithStatus : NamedByHash
abstract class SignTransactionFlow : FlowLogic<SignedTransaction>
interface SingleMessageRecipient : MessageRecipients
class SingletonSerializationToken : SerializationToken
abstract class SingletonSerializeAsToken : SerializeAsToken
data class Sort : BaseSort
sealed class SortAttribute
data class SourceAndAmount<T : Any, out P : Any>
data class StackFrameDataToken
@Target([AnnotationTarget.CLASS]) annotation class StartableByRPC
@Target([AnnotationTarget.CLASS]) annotation class StartableByService
class StartedMockNode
data class StateAndContract
data class StateAndRef<out T : ContractState>
data class StateConsumptionDetails
data class StateMachineInfo
Module Contents
StateMachineInfo(id: StateMachineRunId, flowLogicClassName: String, initiator: FlowInitiator, progressTrackerStepAndUpdates: DataFeed<String, String>?, invocationContext: InvocationContext = initiator.invocationContext)
fun copy(id: StateMachineRunId = this.id, flowLogicClassName: String = this.flowLogicClassName, initiator: FlowInitiator = this.initiator, progressTrackerStepAndUpdates: DataFeed<String, String>? = this.progressTrackerStepAndUpdates): StateMachineInfo
val flowLogicClassName: String
val id: StateMachineRunId
val initiator: FlowInitiator
val invocationContext: InvocationContext
val progressTrackerStepAndUpdates: DataFeed<String, String>?
fun toString(): String
data class StateMachineRunId
data class StateMachineTransactionMapping
sealed class StateMachineUpdate
interface StatePersistable
@DoNotImplement sealed class StatePointer<T : ContractState>
data class StateRef
open class StateReplacementException : FlowException
class StatesNotAvailableException : FlowException
enum class StatesToRecord
class StaticPointer<T : ContractState> : StatePointer<T>
@ThreadSafe open class StringToMethodCallParser<in T : Any>
Module Contents
StringToMethodCallParser(targetType: KClass<out T>)
StringToMethodCallParser(targetType: Class<out T>, om: ObjectMapper = JacksonSupport.createNonRpcMapper(YAMLFactory()))
val availableCommands: Map<String, String>
protected val methodMap: Multimap<String, Method>
val methodParamNames: Map<String, List<String>>
open fun paramNamesFromConstructor(ctor: Constructor<*>): List<String>
open fun paramNamesFromMethod(method: Method): List<String>
fun parse(target: T?, command: String): ParsedMethodCall<T>
fun parseArguments(methodNameHint: String, parameters: List<Pair<String, Type>>, args: String): Array<Any?>
inner class ParsedMethodCall<in T : Any> : Callable<Any?>
open class UnparseableCallException : CordaException
fun validateIsMatchingCtor(methodNameHint: String, parameters: List<Pair<String, Type>>, args: String): Unit
@DoNotImplement interface TelemetryService
data class Tenor
@ThreadSafe class TestClock : MutableClock
@DoNotImplement abstract class TestCordapp
data class TestLedgerDSLInterpreter : LedgerDSLInterpreter<TestTransactionDSLInterpreter>
data class TestTransactionDSLInterpreter : TransactionDSLInterpreter, OutputStateLookup
Module Contents
TestTransactionDSLInterpreter(ledgerInterpreter: TestLedgerDSLInterpreter, transactionBuilder: TransactionBuilder)
fun _attachment(contractClassName: ContractClassName): Unit
fun _attachment(contractClassName: ContractClassName, attachmentId: AttachmentId, signers: List<PublicKey>): Unit
fun _attachment(contractClassName: ContractClassName, attachmentId: AttachmentId, signers: List<PublicKey>, jarManifestAttributes: Map<String, String>): Unit
fun _tweak(dsl: TransactionDSLInterpreter.() -> EnforceVerifyOrFail): EnforceVerifyOrFail
fun attachment(attachmentId: SecureHash): Unit
fun command(signers: List<PublicKey>, commandData: CommandData): Unit
fun input(stateRef: StateRef): Unit
val ledgerInterpreter: TestLedgerDSLInterpreter
fun output(contractClassName: ContractClassName, label: String?, notary: Party, encumbrance: Int?, attachmentConstraint: AttachmentConstraint, contractState: ContractState): Unit
fun reference(stateRef: StateRef): Unit
val services: ServicesForResolution
fun timeWindow(data: TimeWindow): Unit
val transactionBuilder: TransactionBuilder
fun verifies(): EnforceVerifyOrFail
abstract class TimeWindow
class TimeWindowChecker
interface TokenizableAssetInfo
data class Trace
open class TransactionBuilder
Module Contents
TransactionBuilder(notary: Party? = null, lockId: UUID = defaultLockId(), inputs: MutableList<StateRef> = arrayListOf(), attachments: MutableList<AttachmentId> = arrayListOf(), outputs: MutableList<TransactionState<ContractState>> = arrayListOf(), commands: MutableList<Command<*>> = arrayListOf(), window: TimeWindow? = null, privacySalt: PrivacySalt = PrivacySalt())
TransactionBuilder(notary: Party)
TransactionBuilder(notary: Party? = null, lockId: UUID = defaultLockId(), inputs: MutableList<StateRef> = arrayListOf(), attachments: MutableList<AttachmentId> = arrayListOf(), outputs: MutableList<TransactionState<ContractState>> = arrayListOf(), commands: MutableList<Command<*>> = arrayListOf(), window: TimeWindow? = null, privacySalt: PrivacySalt = PrivacySalt(), references: MutableList<StateRef> = arrayListOf(), serviceHub: ServiceHub? = (Strand.currentStrand() as? FlowStateMachine<*>)?.serviceHub)
fun addAttachment(attachmentId: AttachmentId): TransactionBuilder
fun addCommand(arg: Command<*>): TransactionBuilder
fun addCommand(data: CommandData, vararg keys: PublicKey): TransactionBuilder
fun addCommand(data: CommandData, keys: List<PublicKey>): TransactionBuilder
open fun addInputState(stateAndRef: StateAndRef<*>): TransactionBuilder
fun addOutputState(state: TransactionState<*>): TransactionBuilder
@JvmOverloads fun addOutputState(state: ContractState, contract: ContractClassName = requireNotNullContractClassName(state), notary: Party, encumbrance: Int? = null, constraint: AttachmentConstraint = AutomaticPlaceholderConstraint): TransactionBuilder
@JvmOverloads fun addOutputState(state: ContractState, contract: ContractClassName = requireNotNullContractClassName(state), constraint: AttachmentConstraint = AutomaticPlaceholderConstraint): TransactionBuilder
fun addOutputState(state: ContractState, constraint: AttachmentConstraint): TransactionBuilder
open fun addReferenceState(referencedStateAndRef: ReferencedStateAndRef<*>): TransactionBuilder
fun attachments(): List<AttachmentId>
protected val attachments: MutableList<AttachmentId>
fun commands(): List<Command<*>>
protected val commands: MutableList<Command<*>>
fun copy(): TransactionBuilder
protected val inputs: MutableList<StateRef>
fun inputStates(): List<StateRef>
var lockId: UUID
var notary: Party?
protected val outputs: MutableList<TransactionState<ContractState>>
fun outputStates(): List<TransactionState<*>>
protected var privacySalt: PrivacySalt
protected val references: MutableList<StateRef>
fun referenceStates(): List<StateRef>
protected val serviceHub: ServiceHub?
fun setPrivacySalt(privacySalt: PrivacySalt): TransactionBuilder
fun setTimeWindow(timeWindow: TimeWindow): TransactionBuilder
fun setTimeWindow(time: Instant, timeTolerance: Duration): TransactionBuilder
fun toLedgerTransaction(services: ServiceHub): LedgerTransaction
fun toSignedTransaction(keyManagementService: KeyManagementService, publicKey: PublicKey, signatureMetadata: SignatureMetadata, services: ServicesForResolution): SignedTransaction
fun toWireTransaction(services: ServicesForResolution): WireTransaction
fun toWireTransaction(services: ServicesForResolution, schemeId: Int): WireTransaction
fun toWireTransaction(services: ServicesForResolution, schemeId: Int, properties: Map<Any, Any>): WireTransaction
fun verify(services: ServiceHub): Unit
protected var window: TimeWindow?
fun withItems(vararg items: Any): TransactionBuilder
class TransactionDSL<out T : TransactionDSLInterpreter> : TransactionDSLInterpreter
Module Contents
TransactionDSL(interpreter: T, notary: Party)
fun attachment(contractClassName: ContractClassName): Unit
fun attachment(contractClassName: ContractClassName, attachmentId: AttachmentId, signers: List<PublicKey>, jarManifestAttributes: Map<String, String> = emptyMap()): Unit
fun attachment(contractClassName: ContractClassName, attachmentId: AttachmentId): Unit
fun attachments(vararg contractClassNames: ContractClassName): Unit
fun command(signer: PublicKey, commandData: CommandData): Unit
fun input(stateLabel: String): Unit
fun input(contractClassName: ContractClassName, stateLabel: String): Unit
fun input(contractClassName: ContractClassName, state: ContractState): Unit
fun output(contractClassName: ContractClassName, label: String, notary: Party, contractState: ContractState): Unit
fun output(contractClassName: ContractClassName, label: String, encumbrance: Int, contractState: ContractState): Unit
fun output(contractClassName: ContractClassName, label: String, contractState: ContractState): Unit
fun output(contractClassName: ContractClassName, notary: Party, contractState: ContractState): Unit
fun output(contractClassName: ContractClassName, encumbrance: Int, contractState: ContractState): Unit
fun output(contractClassName: ContractClassName, contractState: ContractState): Unit
fun reference(stateLabel: String): Unit
fun reference(contractClassName: ContractClassName, state: ContractState): Unit
@JvmOverloads fun timeWindow(time: Instant, tolerance: Duration = 30.seconds): Unit
fun tweak(dsl: TransactionDSL<TransactionDSLInterpreter>.() -> EnforceVerifyOrFail): EnforceVerifyOrFail
@DoNotImplement interface TransactionDSLInterpreter : Verifies, OutputStateLookup
Module Contents
abstract fun _attachment(contractClassName: ContractClassName): Unit
abstract fun _attachment(contractClassName: ContractClassName, attachmentId: AttachmentId, signers: List<PublicKey>): Unit
abstract fun _attachment(contractClassName: ContractClassName, attachmentId: AttachmentId, signers: List<PublicKey>, jarManifestAttributes: Map<String, String>): Unit
abstract fun _tweak(dsl: TransactionDSLInterpreter.() -> EnforceVerifyOrFail): EnforceVerifyOrFail
abstract fun attachment(attachmentId: SecureHash): Unit
abstract fun command(signers: List<PublicKey>, commandData: CommandData): Unit
abstract fun input(stateRef: StateRef): Unit
abstract val ledgerInterpreter: LedgerDSLInterpreter<TransactionDSLInterpreter>
abstract fun output(contractClassName: ContractClassName, label: String?, notary: Party, encumbrance: Int?, attachmentConstraint: AttachmentConstraint, contractState: ContractState): Unit
abstract fun reference(stateRef: StateRef): Unit
abstract fun timeWindow(data: TimeWindow): Unit
data class TransactionMetadata
open class TransactionResolutionException : FlowException
class TransactionSignature : DigitalSignature
data class TransactionState<out T : ContractState>
enum class TransactionStatus
@DoNotImplement interface TransactionStorage
abstract class TransactionVerificationException : FlowException
@DoNotImplement interface TransactionWithSignatures : NamedByHash
abstract class TraversableTransaction : CoreTransaction
sealed class Try<out A>
object TwoPartyDealFlow
object TwoPartyTradeFlow
abstract class TypeOnlyCommandData : CommandData
class UnexpectedFlowEndException : CordaRuntimeException, IdentifiableException
data class UniqueIdentifier : Comparable<UniqueIdentifier>
class UnknownAnonymousPartyException : CordaException
class UnknownCalendar : FlowException
open class UnrecoverableRPCException : RPCException
class UnstartedMockNode
class UntrustworthyData<out T>
interface UpgradedContract<in OldState : ContractState, out NewState : ContractState> : Contract
interface UpgradedContractWithLegacyConstraint<in OldState : ContractState, out NewState : ContractState> : UpgradedContract<OldState, NewState>
data class User
class UuidGenerator
interface VariablePropertyDelegate<T> : PropertyDelegate<T>
class Vault<out T : ContractState>
Module Contents
Vault(states: Iterable<StateAndRef<T>>)
data class ConstraintInfo
val NoNotaryUpdate: Update<ContractState>
val NoUpdate: Update<ContractState>
data class Page<T : ContractState>
enum class RelevancyStatus
data class StateMetadata
Module Contents
StateMetadata(ref: StateRef, contractStateClassName: String, recordedTime: Instant, consumedTime: Instant?, status: StateStatus, notary: AbstractParty?, lockId: String?, lockUpdateTime: Instant?, relevancyStatus: RelevancyStatus? = null, constraintInfo: ConstraintInfo? = null)
val constraintInfo: ConstraintInfo?
val consumedTime: Instant?
val contractStateClassName: String
fun copy(ref: StateRef = this.ref, contractStateClassName: String = this.contractStateClassName, recordedTime: Instant = this.recordedTime, consumedTime: Instant? = this.consumedTime, status: StateStatus = this.status, notary: AbstractParty? = this.notary, lockId: String? = this.lockId, lockUpdateTime: Instant? = this.lockUpdateTime): StateMetadata
fun copy(ref: StateRef = this.ref, contractStateClassName: String = this.contractStateClassName, recordedTime: Instant = this.recordedTime, consumedTime: Instant? = this.consumedTime, status: StateStatus = this.status, notary: AbstractParty? = this.notary, lockId: String? = this.lockId, lockUpdateTime: Instant? = this.lockUpdateTime, relevancyStatus: RelevancyStatus?): StateMetadata
val lockId: String?
val lockUpdateTime: Instant?
val notary: AbstractParty?
val recordedTime: Instant
val ref: StateRef
val relevancyStatus: RelevancyStatus?
val status: StateStatus
val states: Iterable<StateAndRef<T>>
enum class StateStatus
data class Update<U : ContractState>
Module Contents
Update(consumed: Set<StateAndRef<U>>, produced: Set<StateAndRef<U>>, flowId: UUID? = null, type: UpdateType = UpdateType.GENERAL, references: Set<StateAndRef<U>> = emptySet())
Update(consumed: Set<StateAndRef<U>>, produced: Set<StateAndRef<U>>, flowId: UUID? = null, type: UpdateType = UpdateType.GENERAL, references: Set<StateAndRef<U>> = emptySet(), consumingTxIds: Map<StateRef, SecureHash> = emptyMap())
val consumed: Set<StateAndRef<U>>
val consumingTxIds: Map<StateRef, SecureHash>
fun <reified T : ContractState> containsType(): Boolean
fun <T : ContractState> containsType(clazz: Class<T>, status: StateStatus): Boolean
fun copy(consumed: Set<StateAndRef<U>>, produced: Set<StateAndRef<U>>, flowId: UUID? = null, type: UpdateType = UpdateType.GENERAL): Update<U>
fun copy(consumed: Set<StateAndRef<U>>, produced: Set<StateAndRef<U>>, flowId: UUID? = null, type: UpdateType = UpdateType.GENERAL, references: Set<StateAndRef<U>> = emptySet()): Update<U>
val flowId: UUID?
fun isEmpty(): Boolean
operator fun plus(rhs: Update<U>): Update<U>
val produced: Set<StateAndRef<U>>
val references: Set<StateAndRef<U>>
fun toString(): String
val type: UpdateType
enum class UpdateType
class VaultQueryException : FlowException
@DoNotImplement interface VaultService
Module Contents
abstract fun <T : ContractState> _queryBy(criteria: QueryCriteria, paging: PageSpecification, sorting: Sort, contractStateType: Class<out T>): Page<T>
abstract fun <T : ContractState> _trackBy(criteria: QueryCriteria, paging: PageSpecification, sorting: Sort, contractStateType: Class<out T>): DataFeed<Page<T>, Update<T>>
abstract fun addNoteToTransaction(txnId: SecureHash, noteText: String): Unit
abstract fun getTransactionNotes(txnId: SecureHash): Iterable<String>
open fun <T : ContractState> queryBy(contractStateType: Class<out T>): Page<T>
open fun <T : ContractState> queryBy(contractStateType: Class<out T>, criteria: QueryCriteria): Page<T>
open fun <T : ContractState> queryBy(contractStateType: Class<out T>, paging: PageSpecification): Page<T>
open fun <T : ContractState> queryBy(contractStateType: Class<out T>, criteria: QueryCriteria, paging: PageSpecification): Page<T>
open fun <T : ContractState> queryBy(contractStateType: Class<out T>, criteria: QueryCriteria, sorting: Sort): Page<T>
open fun <T : ContractState> queryBy(contractStateType: Class<out T>, criteria: QueryCriteria, paging: PageSpecification, sorting: Sort): Page<T>
abstract val rawUpdates: Observable<Update<ContractState>>
abstract fun softLockRelease(lockId: UUID, stateRefs: NonEmptySet<StateRef>? = null): Unit
abstract fun softLockReserve(lockId: UUID, stateRefs: NonEmptySet<StateRef>): Unit
open fun <T : ContractState> trackBy(contractStateType: Class<out T>): DataFeed<Page<T>, Update<T>>
open fun <T : ContractState> trackBy(contractStateType: Class<out T>, criteria: QueryCriteria): DataFeed<Page<T>, Update<T>>
open fun <T : ContractState> trackBy(contractStateType: Class<out T>, paging: PageSpecification): DataFeed<Page<T>, Update<T>>
open fun <T : ContractState> trackBy(contractStateType: Class<out T>, criteria: QueryCriteria, paging: PageSpecification): DataFeed<Page<T>, Update<T>>
open fun <T : ContractState> trackBy(contractStateType: Class<out T>, criteria: QueryCriteria, sorting: Sort): DataFeed<Page<T>, Update<T>>
open fun <T : ContractState> trackBy(contractStateType: Class<out T>, criteria: QueryCriteria, paging: PageSpecification, sorting: Sort): DataFeed<Page<T>, Update<T>>
@Suspendable abstract fun <T : FungibleState<*>> tryLockFungibleStatesForSpending(lockId: UUID, eligibleStatesQuery: QueryCriteria, amount: Amount<*>, contractStateType: Class<out T>): List<StateAndRef<T>>
abstract val updates: Observable<Update<ContractState>>
open fun whenConsumed(ref: StateRef): CordaFuture<Update<ContractState>>
enum class VerifierType
@DoNotImplement interface Verifies
data class WaitTimeUpdate
data class WebserverHandle
object WhitelistedByZoneAttachmentConstraint : AttachmentConstraint
class WireTransaction : TraversableTransaction
Module Contents
WireTransaction(componentGroups: List<ComponentGroup>)
WireTransaction(componentGroups: List<ComponentGroup>, privacySalt: PrivacySalt = PrivacySalt())
WireTransaction(inputs: List<StateRef>, attachments: List<SecureHash>, outputs: List<TransactionState<ContractState>>, commands: List<Command<*>>, notary: Party?, timeWindow: TimeWindow?, privacySalt: PrivacySalt = PrivacySalt())
WireTransaction(componentGroups: List<ComponentGroup>, privacySalt: PrivacySalt, digestService: DigestService)
fun buildFilteredTransaction(filtering: Predicate<Any>): FilteredTransaction
fun checkSignature(sig: TransactionSignature): Unit
@CordaInternal fun createComponentGroups(inputs: List<StateRef>, outputs: List<TransactionState<ContractState>>, commands: List<Command<*>>, attachments: List<SecureHash>, notary: Party?, timeWindow: TimeWindow?): List<ComponentGroup>
fun equals(other: Any?): Boolean
fun hashCode(): Int
val id: SecureHash
val merkleTree: MerkleTree
val privacySalt: PrivacySalt
val requiredSigningKeys: Set<PublicKey>
@CordaInternal fun resolveStateRefBinaryComponent(stateRef: StateRef, services: ServicesForResolution): SerializedBytes<TransactionState<ContractState>>?
fun toLedgerTransaction(services: ServicesForResolution): LedgerTransaction
fun toLedgerTransaction(resolveIdentity: (PublicKey) -> Party?, resolveAttachment: (SecureHash) -> Attachment?, resolveStateRef: (StateRef) -> TransactionState<*>?, resolveContractAttachment: (TransactionState<ContractState>) -> AttachmentId?): LedgerTransaction
fun toString(): String
class WithReferencedStatesFlow<T : Any> : FlowLogic<T>
class ZoneVersionTooLowException : CordaRuntimeException
package net.corda.client.jackson
Module Contents
object JacksonSupport
Module Contents
object AmountDeserializer : JsonDeserializer<Amount<*>>
object AmountSerializer : JsonSerializer<Amount<*>>
object AnonymousPartyDeserializer : JsonDeserializer<AnonymousParty>
object AnonymousPartySerializer : JsonSerializer<AnonymousParty>
val cordaModule: Module
object CordaX500NameDeserializer : JsonDeserializer<CordaX500Name>
object CordaX500NameSerializer : JsonSerializer<CordaX500Name>
@JvmStatic @JvmOverloads fun createDefaultMapper(rpc: CordaRPCOps, factory: JsonFactory = JsonFactory(), fuzzyIdentityMatch: Boolean = false, fullParties: Boolean = false): ObjectMapper
@JvmStatic @JvmOverloads fun createInMemoryMapper(identityService: IdentityService, factory: JsonFactory = JsonFactory(), fuzzyIdentityMatch: Boolean = false, fullParties: Boolean = false): ObjectMapper
@JvmStatic @JvmOverloads fun createNonRpcMapper(factory: JsonFactory = JsonFactory(), fullParties: Boolean = false): ObjectMapper
class IdentityObjectMapper : PartyObjectMapper, ObjectMapper
object NodeInfoDeserializer : JsonDeserializer<NodeInfo>
object NodeInfoSerializer : JsonSerializer<NodeInfo>
class NoPartyObjectMapper : PartyObjectMapper, ObjectMapper
object OpaqueBytesDeserializer : JsonDeserializer<OpaqueBytes>
object OpaqueBytesSerializer : JsonSerializer<OpaqueBytes>
object PartyDeserializer : JsonDeserializer<Party>
@DoNotImplement interface PartyObjectMapper
object PartySerializer : JsonSerializer<Party>
object PublicKeyDeserializer : JsonDeserializer<PublicKey>
object PublicKeySerializer : JsonSerializer<PublicKey>
class RpcObjectMapper : PartyObjectMapper, ObjectMapper
class SecureHashDeserializer<T : SecureHash> : JsonDeserializer<T>
object SecureHashSerializer : JsonSerializer<SecureHash>
abstract class SignedTransactionMixin
object ToStringSerializer : JsonSerializer<Any>
abstract class WireTransactionMixin
@ThreadSafe open class StringToMethodCallParser<in T : Any>
Module Contents
StringToMethodCallParser(targetType: KClass<out T>)
StringToMethodCallParser(targetType: Class<out T>, om: ObjectMapper = JacksonSupport.createNonRpcMapper(YAMLFactory()))
val availableCommands: Map<String, String>
protected val methodMap: Multimap<String, Method>
val methodParamNames: Map<String, List<String>>
open fun paramNamesFromConstructor(ctor: Constructor<*>): List<String>
open fun paramNamesFromMethod(method: Method): List<String>
fun parse(target: T?, command: String): ParsedMethodCall<T>
fun parseArguments(methodNameHint: String, parameters: List<Pair<String, Type>>, args: String): Array<Any?>
inner class ParsedMethodCall<in T : Any> : Callable<Any?>
open class UnparseableCallException : CordaException
fun validateIsMatchingCtor(methodNameHint: String, parameters: List<Pair<String, Type>>, args: String): Unit
package net.corda.client.rpc
Module Contents
open class ConnectionFailureException : RPCException
class CordaRPCClient
Module Contents
CordaRPCClient(hostAndPort: NetworkHostAndPort, configuration: CordaRPCClientConfiguration = CordaRPCClientConfiguration.DEFAULT)
CordaRPCClient(hostAndPort: NetworkHostAndPort, configuration: CordaRPCClientConfiguration = CordaRPCClientConfiguration.DEFAULT, classLoader: ClassLoader)
CordaRPCClient(hostAndPort: NetworkHostAndPort, sslConfiguration: ClientRpcSslOptions? = null, classLoader: ClassLoader? = null)
CordaRPCClient(hostAndPort: NetworkHostAndPort, configuration: CordaRPCClientConfiguration, sslConfiguration: ClientRpcSslOptions?, classLoader: ClassLoader? = null)
CordaRPCClient(haAddressPool: List<NetworkHostAndPort>, configuration: CordaRPCClientConfiguration = CordaRPCClientConfiguration.DEFAULT, sslConfiguration: ClientRpcSslOptions? = null, classLoader: ClassLoader? = null)
CordaRPCClient(hostAndPort: NetworkHostAndPort, configuration: CordaRPCClientConfiguration = CordaRPCClientConfiguration.DEFAULT, sslConfiguration: ClientRpcSslOptions? = null, classLoader: ClassLoader? = null, customSerializers: Set<SerializationCustomSerializer<*, *>>?)
CordaRPCClient(haAddressPool: List<NetworkHostAndPort>, configuration: CordaRPCClientConfiguration = CordaRPCClientConfiguration.DEFAULT, sslConfiguration: ClientRpcSslOptions? = null, classLoader: ClassLoader? = null, customSerializers: Set<SerializationCustomSerializer<*, *>>?)
@CordaInternal @VisibleForTesting fun getRegisteredCustomSerializers(): List<SerializationCustomSerializer<*, *>>
@JvmOverloads fun start(username: String, password: String, gracefulReconnect: GracefulReconnect? = null): CordaRPCConnection
@JvmOverloads fun start(username: String, password: String, targetLegalIdentity: CordaX500Name, gracefulReconnect: GracefulReconnect? = null): CordaRPCConnection
@JvmOverloads fun start(username: String, password: String, externalTrace: Trace?, impersonatedActor: Actor?, gracefulReconnect: GracefulReconnect? = null): CordaRPCConnection
@JvmOverloads fun start(username: String, password: String, externalTrace: Trace?, impersonatedActor: Actor?, targetLegalIdentity: CordaX500Name?, gracefulReconnect: GracefulReconnect? = null): CordaRPCConnection
inline fun <A> use(username: String, password: String, block: (CordaRPCConnection) -> A): A
open class CordaRPCClientConfiguration
Module Contents
CordaRPCClientConfiguration(connectionMaxRetryInterval: Duration = 3.minutes, minimumServerProtocolVersion: Int = PLATFORM_VERSION, trackRpcCallSites: Boolean = java.lang.Boolean.getBoolean("net.corda.client.rpc.trackRpcCallSites"), reapInterval: Duration = 1.seconds, observationExecutorPoolSize: Int = 4, connectionRetryInterval: Duration = 5.seconds, connectionRetryIntervalMultiplier: Double = 1.5, maxReconnectAttempts: Int = unlimitedReconnectAttempts, maxFileSize: Int = 10485760, deduplicationCacheExpiry: Duration = 1.days, openTelemetryEnabled: Boolean = true, simpleLogTelemetryEnabled: Boolean = false, spanStartEndEventsEnabled: Boolean = false, copyBaggageToTags: Boolean = false)
operator fun component1(): Duration
open val connectionMaxRetryInterval: Duration
open val connectionRetryInterval: Duration
open val connectionRetryIntervalMultiplier: Double
fun copy(connectionMaxRetryInterval: Duration = this.connectionMaxRetryInterval, minimumServerProtocolVersion: Int = this.minimumServerProtocolVersion, trackRpcCallSites: Boolean = this.trackRpcCallSites, reapInterval: Duration = this.reapInterval, observationExecutorPoolSize: Int = this.observationExecutorPoolSize, cacheConcurrencyLevel: Int = this.cacheConcurrencyLevel, connectionRetryInterval: Duration = this.connectionRetryInterval, connectionRetryIntervalMultiplier: Double = this.connectionRetryIntervalMultiplier, maxReconnectAttempts: Int = this.maxReconnectAttempts, maxFileSize: Int = this.maxFileSize, deduplicationCacheExpiry: Duration = this.deduplicationCacheExpiry, openTelemetryEnabled: Boolean = this.openTelemetryEnabled, simpleLogTelemetryEnabled: Boolean = this.simpleLogTelemetryEnabled, spanStartEndEventsEnabled: Boolean = this.spanStartEndEventsEnabled, copyBaggageToTags: Boolean = this.copyBaggageToTags): CordaRPCClientConfiguration
open val copyBaggageToTags: Boolean
open val deduplicationCacheExpiry: Duration
val DEFAULT: CordaRPCClientConfiguration
open fun equals(other: Any?): Boolean
open fun hashCode(): Int
open val maxFileSize: Int
open val maxReconnectAttempts: Int
open val minimumServerProtocolVersion: Int
open val observationExecutorPoolSize: Int
open val openTelemetryEnabled: Boolean
open val reapInterval: Duration
open val simpleLogTelemetryEnabled: Boolean
open val spanStartEndEventsEnabled: Boolean
open fun toString(): String
open val trackRpcCallSites: Boolean
class CordaRPCConnection : RPCConnection<CordaRPCOps>
class GracefulReconnect
class MaxRpcRetryException : RPCException
class PermissionException : CordaRuntimeException, RpcSerializableError, ClientRelevantError
@DoNotImplement interface RPCConnection<out I : RPCOps> : Closeable
open class RPCException : CordaRuntimeException
@Target([AnnotationTarget.FUNCTION]) annotation class RPCSinceVersion
rx.Observable
open class UnrecoverableRPCException : RPCException
package net.corda.client.rpc.ext
Module Contents
class MultiRPCClient<I : RPCOps> : AutoCloseable
Module Contents
MultiRPCClient(hostAndPort: NetworkHostAndPort, rpcOpsClass: Class<I>, username: String, password: String, configuration: CordaRPCClientConfiguration = CordaRPCClientConfiguration.DEFAULT)
MultiRPCClient(hostAndPort: NetworkHostAndPort, rpcOpsClass: Class<I>, username: String, password: String, classLoader: ClassLoader, configuration: CordaRPCClientConfiguration = CordaRPCClientConfiguration.DEFAULT)
MultiRPCClient(hostAndPort: NetworkHostAndPort, rpcOpsClass: Class<I>, username: String, password: String, sslConfiguration: ClientRpcSslOptions? = null, classLoader: ClassLoader? = null)
MultiRPCClient(hostAndPort: NetworkHostAndPort, rpcOpsClass: Class<I>, username: String, password: String, configuration: CordaRPCClientConfiguration, sslConfiguration: ClientRpcSslOptions?, classLoader: ClassLoader? = null)
MultiRPCClient(haAddressPool: List<NetworkHostAndPort>, rpcOpsClass: Class<I>, username: String, password: String, configuration: CordaRPCClientConfiguration = CordaRPCClientConfiguration.DEFAULT, sslConfiguration: ClientRpcSslOptions? = null, classLoader: ClassLoader? = null)
MultiRPCClient(hostAndPort: NetworkHostAndPort, rpcOpsClass: Class<I>, username: String, password: String, customSerializers: Set<SerializationCustomSerializer<*, *>>?, configuration: CordaRPCClientConfiguration = CordaRPCClientConfiguration.DEFAULT, sslConfiguration: ClientRpcSslOptions? = null, classLoader: ClassLoader? = null, externalTrace: Trace? = null, impersonatedActor: Actor? = null, targetLegalIdentity: CordaX500Name? = null)
MultiRPCClient(haAddressPool: List<NetworkHostAndPort>, rpcOpsClass: Class<I>, username: String, password: String, customSerializers: Set<SerializationCustomSerializer<*, *>>?, configuration: CordaRPCClientConfiguration = CordaRPCClientConfiguration.DEFAULT, sslConfiguration: ClientRpcSslOptions? = null, classLoader: ClassLoader? = null, externalTrace: Trace? = null, impersonatedActor: Actor? = null, targetLegalIdentity: CordaX500Name? = null)
fun addConnectionListener(listener: RPCConnectionListener<I>): Boolean
fun close(): Unit
fun removeConnectionListener(listener: RPCConnectionListener<I>): Boolean
fun start(): CompletableFuture<RPCConnection<I>>
fun stop(): Unit
interface RPCConnectionListener<I : RPCOps>
package net.corda.client.rpc.reconnect
package net.corda.core
Module Contents
interface ClientRelevantError
open class CordaException : Exception, CordaThrowable
@Target([AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.PROPERTY, AnnotationTarget.FUNCTION, AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.CLASS]) annotation class CordaInternal
object CordaOID
open class CordaRuntimeException : RuntimeException, CordaThrowable
interface CordaThrowable
@Target([AnnotationTarget.CLASS]) @Inherited annotation class DoNotImplement
fun <SNAPSHOT, ELEMENT> DataFeed<SNAPSHOT, ELEMENT>.doOnError(action: (Throwable) -> Unit): DataFeed<SNAPSHOT, ELEMENT>
fun <SNAPSHOT, ELEMENT> DataFeed<SNAPSHOT, ELEMENT>.mapErrors(transform: (Throwable) -> Throwable): DataFeed<SNAPSHOT, ELEMENT>
rx.Observable
fun <A> CordaFuture<out A>.toObservable(): Observable<A>
package net.corda.core.concurrent
package net.corda.core.context
Module Contents
data class Actor
data class AuthServiceId
data class InvocationContext
Module Contents
InvocationContext(origin: InvocationOrigin, trace: Trace, actor: Actor?, externalTrace: Trace? = null, impersonatedActor: Actor? = null)
InvocationContext(origin: InvocationOrigin, trace: Trace, actor: Actor?, externalTrace: Trace? = null, impersonatedActor: Actor? = null, arguments: List<Any?>? = emptyList(), clientId: String? = null)
InvocationContext(origin: InvocationOrigin, trace: Trace, actor: Actor?, externalTrace: Trace? = null, impersonatedActor: Actor? = null, arguments: List<Any?>? = emptyList(), clientId: String? = null, serializedTelemetry: SerializedTelemetry? = null)
val actor: Actor?
val arguments: List<Any?>?
val clientId: String?
fun copy(origin: InvocationOrigin = this.origin, trace: Trace = this.trace, actor: Actor? = this.actor, externalTrace: Trace? = this.externalTrace, impersonatedActor: Actor? = this.impersonatedActor): InvocationContext
fun copy(origin: InvocationOrigin = this.origin, trace: Trace = this.trace, actor: Actor? = this.actor, externalTrace: Trace? = this.externalTrace, impersonatedActor: Actor? = this.impersonatedActor, arguments: List<Any?>? = this.arguments, clientId: String? = this.clientId): InvocationContext
val externalTrace: Trace?
val impersonatedActor: Actor?
@JvmStatic @JvmOverloads fun newInstance(origin: InvocationOrigin, trace: Trace = Trace.newInstance(), actor: Actor? = null, externalTrace: Trace? = null, impersonatedActor: Actor? = null, arguments: List<Any?> = emptyList(), clientId: String? = null, serializedTelemetry: SerializedTelemetry? = null): InvocationContext
val origin: InvocationOrigin
@JvmStatic fun peer(party: CordaX500Name, trace: Trace = Trace.newInstance(), externalTrace: Trace? = null, impersonatedActor: Actor? = null): InvocationContext
fun principal(): Principal
@JvmStatic @JvmOverloads fun rpc(actor: Actor, trace: Trace = Trace.newInstance(), externalTrace: Trace? = null, impersonatedActor: Actor? = null, arguments: List<Any?> = emptyList(), serializedTelemetry: SerializedTelemetry? = null): InvocationContext
@JvmStatic fun scheduled(scheduledState: ScheduledStateRef, trace: Trace = Trace.newInstance(), externalTrace: Trace? = null): InvocationContext
val serializedTelemetry: SerializedTelemetry?
@JvmStatic fun service(serviceClassName: String, owningLegalIdentity: CordaX500Name, trace: Trace = Trace.newInstance(), externalTrace: Trace? = null): InvocationContext
@JvmStatic fun shell(trace: Trace = Trace.newInstance(), externalTrace: Trace? = null): InvocationContext
val trace: Trace
sealed class InvocationOrigin
data class Trace
package net.corda.core.contracts
Module Contents
object AlwaysAcceptAttachmentConstraint : AttachmentConstraint
data class Amount<T : Any> : Comparable<Amount<T>>
class AmountTransfer<T : Any, P : Any>
Module Contents
AmountTransfer(quantityDelta: Long, token: T, source: P, destination: P)
fun apply(balances: List<SourceAndAmount<T, P>>, newRef: Any? = null): List<SourceAndAmount<T, P>>
val destination: P
fun equals(other: Any?): Boolean
@JvmStatic @JvmOverloads fun <T : Any, P : Any> fromDecimal(displayQuantityDelta: BigDecimal, token: T, source: P, destination: P, rounding: RoundingMode = RoundingMode.DOWN): AmountTransfer<T, P>
fun hashCode(): Int
fun novate(centralParty: P): List<AmountTransfer<T, P>>
operator fun plus(other: AmountTransfer<T, P>): AmountTransfer<T, P>
val quantityDelta: Long
val source: P
fun toDecimal(): BigDecimal
val token: T
@JvmStatic fun <T : Any, P : Any> zero(token: T, source: P, destination: P): AmountTransfer<T, P>
@DoNotImplement interface Attachment : NamedByHash
@DoNotImplement interface AttachmentConstraint
class AttachmentResolutionException : FlowException
object AutomaticHashConstraint : AttachmentConstraint
object AutomaticPlaceholderConstraint : AttachmentConstraint
@Target([AnnotationTarget.CLASS]) annotation class BelongsToContract
class BrokenAttachmentException : FlowException
data class Command<T : CommandData>
data class CommandAndState
interface CommandData
data class CommandWithParties<out T : CommandData>
enum class ComponentGroupEnum
interface Contract
class ContractAttachment : Attachment
typealias ContractClassName = String
interface ContractState
interface FungibleAsset<T : Any> : FungibleState<Issued<T>>, OwnableState
interface FungibleState<T : Any> : ContractState
fun ContractState.hash(): SecureHash
fun ContractState.hash(algorithm: String): SecureHash
data class HashAttachmentConstraint : AttachmentConstraint
class InsufficientBalanceException : FlowException
data class Issued<out P : Any>
kotlin.collections.Collection
kotlin.collections.Iterable
@Target([AnnotationTarget.CLASS]) annotation class LegalProseReference
class LinearPointer<T : LinearState> : StatePointer<T>
interface LinearState : ContractState
const val MAX_ISSUER_REF_SIZE: Int
interface MoveCommand : CommandData
interface NamedByHash
@Target([AnnotationTarget.CLASS]) @Inherited annotation class NoConstraintPropagation
interface OwnableState : ContractState
data class PartyAndReference
class PrivacySalt : OpaqueBytes
data class ReferencedStateAndRef<out T : ContractState>
object Requirements
inline fun <R> requireThat(body: Requirements.() -> R): R
interface SchedulableState : ContractState
interface Scheduled
data class ScheduledActivity : Scheduled
data class ScheduledStateRef : Scheduled
data class SignatureAttachmentConstraint : AttachmentConstraint
data class SourceAndAmount<T : Any, out P : Any>
data class StateAndContract
data class StateAndRef<out T : ContractState>
@DoNotImplement sealed class StatePointer<T : ContractState>
data class StateRef
class StaticPointer<T : ContractState> : StatePointer<T>
abstract class TimeWindow
interface TokenizableAssetInfo
open class TransactionResolutionException : FlowException
data class TransactionState<out T : ContractState>
abstract class TransactionVerificationException : FlowException
abstract class TypeOnlyCommandData : CommandData
data class UniqueIdentifier : Comparable<UniqueIdentifier>
interface UpgradedContract<in OldState : ContractState, out NewState : ContractState> : Contract
interface UpgradedContractWithLegacyConstraint<in OldState : ContractState, out NewState : ContractState> : UpgradedContract<OldState, NewState>
fun <reified T : MoveCommand> verifyMoveCommand(inputs: List<OwnableState>, commands: List<CommandWithParties<CommandData>>): MoveCommand
object WhitelistedByZoneAttachmentConstraint : AttachmentConstraint
fun <T : Any> Amount<Issued<T>>.withoutIssuer(): Amount<T>
package net.corda.core.cordapp
package net.corda.core.crypto
Module Contents
val SecureHash.algorithm: String
fun componentHash(opaqueBytes: OpaqueBytes, privacySalt: PrivacySalt, componentGroupIndex: Int, internalIndex: Int): SecureHash
fun componentHash(nonce: SecureHash, opaqueBytes: OpaqueBytes): SecureHash
class CompositeKey : PublicKey
class CompositeKeyFactory : KeyFactorySpi
class CompositeSignature : Signature
data class CompositeSignaturesWithKeys
fun computeNonce(privacySalt: PrivacySalt, groupIndex: Int, internalIndex: Int): SHA256
object CordaObjectIdentifier
class CordaSecurityProvider : Provider
object Crypto
Module Contents
val COMPOSITE_KEY: SignatureScheme
@JvmStatic fun decodePrivateKey(encodedKey: ByteArray): PrivateKey
@JvmStatic fun decodePrivateKey(schemeCodeName: String, encodedKey: ByteArray): PrivateKey
@JvmStatic fun decodePrivateKey(signatureScheme: SignatureScheme, encodedKey: ByteArray): PrivateKey
@JvmStatic fun decodePublicKey(encodedKey: ByteArray): PublicKey
@JvmStatic fun decodePublicKey(schemeCodeName: String, encodedKey: ByteArray): PublicKey
@JvmStatic fun decodePublicKey(signatureScheme: SignatureScheme, encodedKey: ByteArray): PublicKey
val DEFAULT_SIGNATURE_SCHEME: SignatureScheme
@JvmStatic fun deriveKeyPair(signatureScheme: SignatureScheme, privateKey: PrivateKey, seed: ByteArray): KeyPair
@JvmStatic fun deriveKeyPair(privateKey: PrivateKey, seed: ByteArray): KeyPair
@JvmStatic fun deriveKeyPairFromEntropy(signatureScheme: SignatureScheme, entropy: BigInteger): KeyPair
@JvmStatic fun deriveKeyPairFromEntropy(entropy: BigInteger): KeyPair
@JvmStatic fun doSign(privateKey: PrivateKey, clearData: ByteArray): ByteArray
@JvmStatic fun doSign(schemeCodeName: String, privateKey: PrivateKey, clearData: ByteArray): ByteArray
@JvmStatic fun doSign(signatureScheme: SignatureScheme, privateKey: PrivateKey, clearData: ByteArray): ByteArray
@JvmStatic fun doSign(keyPair: KeyPair, signableData: SignableData): TransactionSignature
@JvmStatic fun doVerify(schemeCodeName: String, publicKey: PublicKey, signatureData: ByteArray, clearData: ByteArray): Boolean
@JvmStatic fun doVerify(publicKey: PublicKey, signatureData: ByteArray, clearData: ByteArray): Boolean
@JvmStatic fun doVerify(signatureScheme: SignatureScheme, publicKey: PublicKey, signatureData: ByteArray, clearData: ByteArray): Boolean
@JvmStatic fun doVerify(txId: SecureHash, transactionSignature: TransactionSignature): Boolean
val ECDSA_SECP256K1_SHA256: SignatureScheme
val ECDSA_SECP256R1_SHA256: SignatureScheme
val EDDSA_ED25519_SHA512: SignatureScheme
@JvmStatic fun encodePublicKey(key: PublicKey): ByteArray
@JvmStatic fun findProvider(name: String): Provider
@JvmStatic fun findSignatureScheme(algorithm: AlgorithmIdentifier): SignatureScheme
@JvmStatic fun findSignatureScheme(: Int): SignatureScheme
@JvmStatic fun findSignatureScheme(schemeCodeName: String): SignatureScheme
@JvmStatic fun findSignatureScheme(key: PublicKey): SignatureScheme
@JvmStatic fun findSignatureScheme(key: PrivateKey): SignatureScheme
@JvmStatic fun generateKeyPair(schemeCodeName: String): KeyPair
@JvmOverloads @JvmStatic fun generateKeyPair(signatureScheme: SignatureScheme = DEFAULT_SIGNATURE_SCHEME): KeyPair
@JvmStatic fun isSupportedSignatureScheme(signatureScheme: SignatureScheme): Boolean
@JvmStatic fun isValid(txId: SecureHash, transactionSignature: TransactionSignature): Boolean
@JvmStatic fun isValid(publicKey: PublicKey, signatureData: ByteArray, clearData: ByteArray): Boolean
@JvmStatic fun isValid(signatureScheme: SignatureScheme, publicKey: PublicKey, signatureData: ByteArray, clearData: ByteArray): Boolean
@JvmStatic fun publicKeyOnCurve(signatureScheme: SignatureScheme, publicKey: PublicKey): Boolean
@JvmStatic fun registerProviders(): Unit
val RSA_SHA256: SignatureScheme
val SHA512_256: DLSequence
val SPHINCS256_SHA256: SignatureScheme
@JvmStatic fun supportedSignatureSchemes(): List<SignatureScheme>
@JvmStatic fun toSupportedPrivateKey(key: PrivateKey): PrivateKey
@JvmStatic fun toSupportedPublicKey(key: SubjectPublicKeyInfo): PublicKey
@JvmStatic fun toSupportedPublicKey(key: PublicKey): PublicKey
@JvmStatic fun validatePublicKey(key: PublicKey): Boolean
interface DigestAlgorithm
data class DigestService
open class DigitalSignature : OpaqueBytes
object DummySecureRandom : SecureRandom
fun entropyToKeyPair(entropy: BigInteger): KeyPair
fun generateKeyPair(): KeyPair
fun OpaqueBytes.hashAs(algorithm: String): SecureHash
val OpaqueBytes.isZero: Boolean
java.security.KeyPair
java.security.PrivateKey
java.security.PublicKey
kotlin.ByteArray
kotlin.collections.Iterable
sealed class MerkleTree
class MerkleTreeException : CordaException
fun newSecureRandom(): SecureRandom
object NullKeys
class PartialMerkleTree
fun random63BitValue(): Long
fun DigestService.randomHash(): SecureHash
sealed class SecureHash : OpaqueBytes
fun secureRandomBytes(numOfBytes: Int): ByteArray
fun <T : Any> serializedHash(x: T): SecureHash
fun OpaqueBytes.sha256(): SHA256
data class SignableData
data class SignatureMetadata
data class SignatureScheme
open class SignedData<T : Any>
class TransactionSignature : DigitalSignature
package net.corda.core.flows
Module Contents
abstract class AbstractStateReplacementFlow
@Suspendable class CollectSignatureFlow : FlowLogic<List<TransactionSignature>>
class CollectSignaturesFlow : FlowLogic<SignedTransaction>
data class ComparableRecoveryTimeWindow
object ContractUpgradeFlow
open class DataVendingFlow : FlowLogic<Void?>
@DoNotImplement interface Destination
@DoNotImplement sealed class DistributionList
@DoNotImplement abstract class DistributionRecord : NamedByHash
data class DistributionRecordKey
class DistributionRecords
enum class DistributionRecordType
@InitiatingFlow class FinalityFlow : FlowLogic<SignedTransaction>
Module Contents
FinalityFlow(transaction: SignedTransaction, : Set<Party>, progressTracker: ProgressTracker)
FinalityFlow(transaction: SignedTransaction, : Set<Party>)
FinalityFlow(transaction: SignedTransaction)
FinalityFlow(transaction: SignedTransaction, progressTracker: ProgressTracker)
FinalityFlow(transaction: SignedTransaction, firstSession: FlowSession, vararg restSessions: FlowSession)
FinalityFlow(transaction: SignedTransaction, sessions: Collection<FlowSession>, progressTracker: ProgressTracker = tracker())
FinalityFlow(transaction: SignedTransaction, sessions: Collection<FlowSession>, statesToRecord: StatesToRecord, progressTracker: ProgressTracker = tracker())
FinalityFlow(transaction: SignedTransaction, sessions: Collection<FlowSession>, oldParticipants: Collection<Party>, progressTracker: ProgressTracker)
FinalityFlow(transaction: SignedTransaction, sessions: Collection<FlowSession>, observerSessions: Collection<FlowSession>)
object BROADCASTING : Step
object BROADCASTING_NOTARY_ERROR : Step
object BROADCASTING_POST_NOTARISATION : Step
object BROADCASTING_PRE_NOTARISATION : Step
@Suspendable fun call(): SignedTransaction
@CordaInternal data class ExtraConstructorArgs
object FINALISING_TRANSACTION : Step
@CordaInternal fun getExtraConstructorArgs(): ExtraConstructorArgs
object NOTARISING : Step
val progressTracker: ProgressTracker
object RECORD_UNNOTARISED : Step
@JvmStatic fun tracker(): ProgressTracker
val transaction: SignedTransaction
@StartableByRPC @InitiatingFlow class FinalityRecoveryFlow : FlowLogic<Map<FlowTransactionInfo, Boolean>>
Module Contents
FinalityRecoveryFlow(txId: SecureHash, forceRecover: Boolean = false)
FinalityRecoveryFlow(txIds: Collection<SecureHash>, forceRecover: Boolean = false, recoverAll: Boolean = false)
FinalityRecoveryFlow(flowId: StateMachineRunId, forceRecover: Boolean = false)
FinalityRecoveryFlow(flowIds: Collection<StateMachineRunId>, forceRecover: Boolean = false)
FinalityRecoveryFlow(recoverAll: Boolean, forceRecover: Boolean = false)
FinalityRecoveryFlow(matchingCriteria: FlowRecoveryQuery, forceRecover: Boolean = false)
FinalityRecoveryFlow(txIds: Collection<SecureHash> = emptySet(), flowIds: Collection<StateMachineRunId> = emptySet(), matchingCriteria: FlowRecoveryQuery? = null, forceRecover: Boolean = false, recoverAll: Boolean = false, forceRecoverFlowIds: Collection<StateMachineRunId> = emptySet(), progressTracker: ProgressTracker = ProgressTracker())
@Suspendable fun call(): Map<FlowTransactionInfo, Boolean>
@CordaInternal data class ExtraConstructorArgs
@CordaInternal fun getExtraConstructorArgs(): ExtraConstructorArgs
val progressTracker: ProgressTracker
open class FlowException : CordaException, IdentifiableException
interface FlowExternalAsyncOperation<R : Any>
interface FlowExternalOperation<R : Any>
data class FlowInfo
sealed class FlowInitiator : Principal
abstract class FlowLogic<out T>
Module Contents
FlowLogic()
@Suspendable fun <R : Any> await(operation: FlowExternalAsyncOperation<R>): R
@Suspendable fun <R : Any> await(operation: FlowExternalOperation<R>): R
@Suspendable abstract fun call(): T
fun checkFlowIsNotKilled(): Unit
fun checkFlowIsNotKilled(lazyMessage: () -> Any): Unit
fun checkFlowPermission(permissionName: String, : Map<String, String>): Unit
@Suspendable fun close(sessions: NonEmptySet<FlowSession>): Unit
@JvmStatic val currentTopLevel: FlowLogic<*>?
@Suspendable fun flowStackSnapshot(): FlowStackSnapshot?
@Suspendable fun getFlowInfo(otherParty: Party): FlowInfo
@Suspendable fun initiateFlow(destination: Destination): FlowSession
@Suspendable fun initiateFlow(party: Party): FlowSession
val isKilled: Boolean
val logger: Logger
val ourIdentity: Party
val ourIdentityAndCert: PartyAndCertificate
@Suspendable fun persistFlowStackSnapshot(): Unit
open val progressTracker: ProgressTracker?
fun <reified R : Any> receive(otherParty: Party): UntrustworthyData<R>
@Suspendable open fun <R : Any> receive(receiveType: Class<R>, otherParty: Party): UntrustworthyData<R>
@Suspendable @JvmOverloads open fun <R : Any> receiveAll(receiveType: Class<R>, sessions: List<FlowSession>, maySkipCheckpoint: Boolean = false): List<UntrustworthyData<R>>
@Suspendable @JvmOverloads open fun receiveAllMap(sessions: Map<FlowSession, Class<out Any>>, maySkipCheckpoint: Boolean = false): Map<FlowSession, UntrustworthyData<Any>>
fun recordAuditEvent(eventType: String, : String, : Map<String, String>): Unit
val runId: StateMachineRunId
@Suspendable open fun send(otherParty: Party, payload: Any): Unit
@Suspendable @JvmOverloads fun sendAll(payload: Any, sessions: Set<FlowSession>, maySkipCheckpoint: Boolean = false): Unit
@Suspendable @JvmOverloads fun sendAllMap(payloadsPerSession: Map<FlowSession, Any>, maySkipCheckpoint: Boolean = false): Unit
fun <reified R : Any> sendAndReceive(otherParty: Party, payload: Any): UntrustworthyData<R>
@Suspendable open fun <R : Any> sendAndReceive(receiveType: Class<R>, otherParty: Party, payload: Any): UntrustworthyData<R>
val serviceHub: ServiceHub
@Suspendable @JvmStatic @JvmOverloads fun sleep(duration: Duration, maySkipCheckpoint: Boolean = false): Unit
@Suspendable open fun <R> subFlow(subLogic: FlowLogic<R>): R
fun track(): DataFeed<String, String>?
fun trackStepsTree(): DataFeed<List<Pair<Int, String>>, List<Pair<Int, String>>>?
fun trackStepsTreeIndex(): DataFeed<Int, Int>?
@Suspendable @JvmOverloads fun waitForLedgerCommit(hash: SecureHash, maySkipCheckpoint: Boolean = false): SignedTransaction
@Suspendable fun waitForStateConsumption(stateRefs: Set<StateRef>): Unit
@DoNotImplement interface FlowLogicRef
@DoNotImplement interface FlowLogicRefFactory
class FlowRecoveryException : FlowException
data class FlowRecoveryQuery
@DoNotImplement abstract class FlowSession
data class FlowStackSnapshot
data class FlowTimeWindow
data class FlowTransactionInfo
open class HospitalizeFlowException : CordaRuntimeException
class IllegalFlowLogicException : IllegalArgumentException
@Target([AnnotationTarget.CLASS]) annotation class InitiatedBy
@Target([AnnotationTarget.CLASS]) @Inherited annotation class InitiatingFlow
class KilledFlowException : CordaRuntimeException
class LedgerRecoveryException : FlowException
@StartableByRPC class LedgerRecoveryFlow : FlowLogic<LedgerRecoveryResult>
Module Contents
LedgerRecoveryFlow(recoveryPeer: Party)
LedgerRecoveryFlow(recoveryPeers: Collection<Party>)
LedgerRecoveryFlow(useAllNetworkNodes: Boolean)
LedgerRecoveryFlow(recoveryPeer: Party, timeWindow: RecoveryTimeWindow)
LedgerRecoveryFlow(recoveryPeer: Party, timeWindow: RecoveryTimeWindow, dryRun: Boolean)
LedgerRecoveryFlow(recoveryPeer: Party, timeWindow: RecoveryTimeWindow, dryRun: Boolean, verboseLogging: Boolean)
LedgerRecoveryFlow(recoveryPeer: Party, timeWindow: RecoveryTimeWindow, dryRun: Boolean, verboseLogging: Boolean, alsoFinalize: Boolean)
LedgerRecoveryFlow(recoveryPeers: Collection<Party>, timeWindow: RecoveryTimeWindow)
LedgerRecoveryFlow(recoveryPeers: Collection<Party>, timeWindow: RecoveryTimeWindow, dryRun: Boolean)
LedgerRecoveryFlow(recoveryPeers: Collection<Party>, timeWindow: RecoveryTimeWindow, dryRun: Boolean, verboseLogging: Boolean)
LedgerRecoveryFlow(recoveryPeers: Collection<Party>, timeWindow: RecoveryTimeWindow, dryRun: Boolean, verboseLogging: Boolean, alsoFinalize: Boolean)
LedgerRecoveryFlow(useAllNetworkNodes: Boolean, timeWindow: RecoveryTimeWindow)
LedgerRecoveryFlow(useAllNetworkNodes: Boolean, timeWindow: RecoveryTimeWindow, dryRun: Boolean)
LedgerRecoveryFlow(useAllNetworkNodes: Boolean, timeWindow: RecoveryTimeWindow, dryRun: Boolean, verboseLogging: Boolean)
LedgerRecoveryFlow(useAllNetworkNodes: Boolean, timeWindow: RecoveryTimeWindow, dryRun: Boolean, verboseLogging: Boolean, recoveryBatchSize: Int, alsoFinalize: Boolean)
LedgerRecoveryFlow(useAllNetworkNodes: Boolean, timeWindow: RecoveryTimeWindow, dryRun: Boolean, verboseLogging: Boolean, recoveryBatchSize: Int)
LedgerRecoveryFlow(recoveryPeers: Collection<Party>, timeWindow: RecoveryTimeWindow, useAllNetworkNodes: Boolean, dryRun: Boolean, useTimeWindowNarrowing: Boolean, verboseLogging: Boolean, recoveryBatchSize: Int)
LedgerRecoveryFlow(parameters: LedgerRecoveryParameters, progressTracker: ProgressTracker = ProgressTracker())
@Suspendable fun call(): LedgerRecoveryResult
@CordaInternal data class ExtraConstructorArgs
@CordaInternal fun getExtraConstructorArgs(): ExtraConstructorArgs
val progressTracker: ProgressTracker
data class LedgerRecoveryParameters
data class LedgerRecoveryResult
class MaybeSerializedSignedTransaction : NamedByHash
data class NotarisationPayload
class NotarisationRequest
data class NotarisationRequestSignature
data class NotarisationResponse
@InitiatingFlow class NotaryChangeFlow<out T : ContractState> : Instigator<T, T, Party>
sealed class NotaryError
class NotaryException : FlowException
class NotaryFlow
object NotarySigCheck
class ReceiveFinalityFlow : FlowLogic<SignedTransaction>
data class ReceiverDistributionRecord : DistributionRecord
class ReceiveStateAndRefFlow<out T : ContractState> : FlowLogic<@JvmSuppressWildcards List<StateAndRef<T>>>
open class ReceiveTransactionFlow : FlowLogic<SignedTransaction>
data class RecoveryTimeWindow
class ResultSerializationException : CordaRuntimeException
@Target([AnnotationTarget.CLASS]) @Inherited annotation class SchedulableFlow
data class SenderDistributionRecord : DistributionRecord
open class SendStateAndRefFlow : DataVendingFlow
open class SendTransactionFlow : DataVendingFlow
data class SignedTransactionWithDistributionList
abstract class SignTransactionFlow : FlowLogic<SignedTransaction>
data class StackFrameDataToken
@Target([AnnotationTarget.CLASS]) annotation class StartableByRPC
@Target([AnnotationTarget.CLASS]) annotation class StartableByService
data class StateConsumptionDetails
data class StateMachineRunId
open class StateReplacementException : FlowException
data class TransactionMetadata
class UnexpectedFlowEndException : CordaRuntimeException, IdentifiableException
data class WaitTimeUpdate
class WithReferencedStatesFlow<T : Any> : FlowLogic<T>
package net.corda.core.identity
Module Contents
@DoNotImplement abstract class AbstractParty : Destination
class AnonymousParty : Destination, AbstractParty
data class CordaX500Name
Module Contents
CordaX500Name(commonName: String, organisation: String, locality: String, country: String)
CordaX500Name(organisation: String, locality: String, country: String)
CordaX500Name(commonName: String?, organisationUnit: String?, organisation: String, locality: String, state: String?, country: String)
@JvmStatic fun build(principal: X500Principal): CordaX500Name
val commonName: String?
companion object Companion : Internable<CordaX500Name>
val country: String
@CordaInternal val interner: PrivateInterner<CordaX500Name>
const val LENGTH_COUNTRY: Int
val locality: String
const val MAX_LENGTH_COMMON_NAME: Int
const val MAX_LENGTH_LOCALITY: Int
const val MAX_LENGTH_ORGANISATION: Int
const val MAX_LENGTH_ORGANISATION_UNIT: Int
const val MAX_LENGTH_STATE: Int
val organisation: String
val organisationUnit: String?
@JvmStatic fun parse(name: String): CordaX500Name
val state: String?
fun toString(): String
val x500Principal: X500Principal
fun <T> excludeHostNode(serviceHub: ServiceHub, map: Map<Party, T>): Map<Party, T>
fun <T> excludeNotary(map: Map<Party, T>, stx: SignedTransaction): Map<Party, T>
fun groupAbstractPartyByWellKnownParty(serviceHub: ServiceHub, parties: Collection<AbstractParty>, ignoreUnrecognisedParties: Boolean): Map<Party, List<AbstractParty>>
fun groupAbstractPartyByWellKnownParty(serviceHub: ServiceHub, parties: Collection<AbstractParty>): Map<Party, List<AbstractParty>>
fun groupPublicKeysByWellKnownParty(serviceHub: ServiceHub, publicKeys: Collection<PublicKey>, ignoreUnrecognisedParties: Boolean): Map<Party, List<PublicKey>>
fun groupPublicKeysByWellKnownParty(serviceHub: ServiceHub, publicKeys: Collection<PublicKey>): Map<Party, List<PublicKey>>
class Party : Destination, AbstractParty
class PartyAndCertificate
fun x500Matches(query: String, exactMatch: Boolean, x500name: CordaX500Name): Boolean
package net.corda.core.messaging
Module Contents
interface AllPossibleRecipients : MessageRecipients
data class ClientRpcSslOptions
interface CordaRPCOps : RPCOps
Module Contents
abstract fun acceptNewNetworkParameters(parametersHash: SecureHash): Unit
abstract fun addVaultTransactionNote(txnId: SecureHash, txnNote: String): Unit
abstract fun attachmentExists(id: SecureHash): Boolean
abstract fun clearNetworkMapCache(): Unit
abstract fun currentNodeTime(): Instant
abstract fun finishedFlowsWithClientIds(): Map<String, Boolean>
abstract fun finishedFlowsWithClientIdsAsAdmin(): Map<String, Boolean>
abstract fun getVaultTransactionNotes(txnId: SecureHash): Iterable<String>
abstract fun isFlowsDrainingModeEnabled(): Boolean
abstract fun isWaitingForShutdown(): Boolean
abstract fun killFlow(id: StateMachineRunId): Boolean
@RPCReturnsObservables abstract fun networkMapFeed(): DataFeed<List<NodeInfo>, MapChange>
abstract fun networkMapSnapshot(): List<NodeInfo>
abstract val networkParameters: NetworkParameters
@RPCReturnsObservables abstract fun networkParametersFeed(): DataFeed<ParametersUpdateInfo?, ParametersUpdateInfo>
abstract fun nodeDiagnosticInfo(): NodeDiagnosticInfo
abstract fun nodeInfo(): NodeInfo
abstract fun nodeInfoFromParty(party: AbstractParty): NodeInfo?
abstract fun notaryIdentities(): List<Party>
abstract fun notaryPartyFromX500Name(x500Name: CordaX500Name): Party?
abstract fun openAttachment(id: SecureHash): InputStream
abstract fun partiesFromName(query: String, exactMatch: Boolean): Set<Party>
abstract fun partyFromKey(key: PublicKey): Party?
abstract fun queryAttachments(query: AttachmentQueryCriteria, sorting: AttachmentSort?): List<AttachmentId>
@RPCReturnsObservables abstract fun <T> reattachFlowWithClientId(clientId: String): FlowHandleWithClientId<T>?
abstract fun refreshNetworkMapCache(): Unit
abstract fun registeredFlows(): List<String>
abstract fun removeClientId(clientId: String): Boolean
abstract fun removeClientIdAsAdmin(clientId: String): Boolean
abstract fun setFlowsDrainingModeEnabled(enabled: Boolean): Unit
abstract fun shutdown(): Unit
@RPCReturnsObservables abstract fun <T> startFlowDynamic(logicType: Class<out FlowLogic<T>>, vararg args: Any?): FlowHandle<T>
@RPCReturnsObservables abstract fun <T> startFlowDynamicWithClientId(clientId: String, logicType: Class<out FlowLogic<T>>, vararg args: Any?): FlowHandleWithClientId<T>
@RPCReturnsObservables abstract fun <T> startTrackedFlowDynamic(logicType: Class<out FlowLogic<T>>, vararg args: Any?): FlowProgressHandle<T>
@RPCReturnsObservables abstract fun stateMachineRecordedTransactionMappingFeed(): DataFeed<List<StateMachineTransactionMapping>, StateMachineTransactionMapping>
abstract fun stateMachineRecordedTransactionMappingSnapshot(): List<StateMachineTransactionMapping>
@RPCReturnsObservables abstract fun stateMachinesFeed(): DataFeed<List<StateMachineInfo>, StateMachineUpdate>
abstract fun stateMachinesSnapshot(): List<StateMachineInfo>
abstract fun terminate(drainPendingFlows: Boolean = false): Unit
abstract fun uploadAttachment(jar: InputStream): SecureHash
abstract fun uploadAttachmentWithMetadata(jar: InputStream, uploader: String, filename: String): SecureHash
abstract fun <T : ContractState> vaultQuery(contractStateType: Class<out T>): Page<T>
@RPCReturnsObservables abstract fun <T : ContractState> vaultQueryBy(criteria: QueryCriteria, paging: PageSpecification, sorting: Sort, contractStateType: Class<out T>): Page<T>
abstract fun <T : ContractState> vaultQueryByCriteria(criteria: QueryCriteria, contractStateType: Class<out T>): Page<T>
abstract fun <T : ContractState> vaultQueryByWithPagingSpec(contractStateType: Class<out T>, criteria: QueryCriteria, paging: PageSpecification): Page<T>
abstract fun <T : ContractState> vaultQueryByWithSorting(contractStateType: Class<out T>, criteria: QueryCriteria, sorting: Sort): Page<T>
abstract fun <T : ContractState> vaultTrack(contractStateType: Class<out T>): DataFeed<Page<T>, Update<T>>
@RPCReturnsObservables abstract fun <T : ContractState> vaultTrackBy(criteria: QueryCriteria, paging: PageSpecification, sorting: Sort, contractStateType: Class<out T>): DataFeed<Page<T>, Update<T>>
abstract fun <T : ContractState> vaultTrackByCriteria(contractStateType: Class<out T>, criteria: QueryCriteria): DataFeed<Page<T>, Update<T>>
abstract fun <T : ContractState> vaultTrackByWithPagingSpec(contractStateType: Class<out T>, criteria: QueryCriteria, paging: PageSpecification): DataFeed<Page<T>, Update<T>>
abstract fun <T : ContractState> vaultTrackByWithSorting(contractStateType: Class<out T>, criteria: QueryCriteria, sorting: Sort): DataFeed<Page<T>, Update<T>>
@RPCReturnsObservables abstract fun waitUntilNetworkReady(): CordaFuture<Void?>
abstract fun wellKnownPartyFromAnonymous(party: AbstractParty): Party?
abstract fun wellKnownPartyFromX500Name(x500Name: CordaX500Name): Party?
data class DataFeed<out A, B>
@DoNotImplement interface FlowHandle<A> : AutoCloseable
data class FlowHandleImpl<A> : FlowHandle<A>
interface FlowHandleWithClientId<A> : FlowHandle<A>
data class FlowHandleWithClientIdImpl<A> : FlowHandleWithClientId<A>
typealias FlowInfo = StateMachineInfo
interface FlowProgressHandle<A> : FlowHandle<A>
data class FlowProgressHandleImpl<A> : FlowProgressHandle<A>
Module Contents
FlowProgressHandleImpl(id: StateMachineRunId, returnValue: CordaFuture<A>, progress: Observable<String>, stepsTreeIndexFeed: DataFeed<Int, Int>? = null, stepsTreeFeed: DataFeed<List<Pair<Int, String>>, List<Pair<Int, String>>>? = null)
fun close(): Unit
fun copy(id: StateMachineRunId, returnValue: CordaFuture<A>, progress: Observable<String>): FlowProgressHandleImpl<A>
val id: StateMachineRunId
val progress: Observable<String>
val returnValue: CordaFuture<A>
val stepsTreeFeed: DataFeed<List<Pair<Int, String>>, List<Pair<Int, String>>>?
val stepsTreeIndexFeed: DataFeed<Int, Int>?
interface MessageRecipientGroup : MessageRecipients
interface MessageRecipients
data class ParametersUpdateInfo
fun CordaRPCOps.pendingFlowsCount(): DataFeed<Int, Pair<Int, Int>>
@DoNotImplement interface RPCOps
@Target([AnnotationTarget.FUNCTION]) annotation class RPCReturnsObservables
interface SingleMessageRecipient : MessageRecipients
inline fun <T, reified R : FlowLogic<T>> CordaRPCOps.startFlow(flowConstructor: () -> R): FlowHandle<T>
inline fun <T, A, reified R : FlowLogic<T>> CordaRPCOps.startFlow(flowConstructor: (A) -> R, arg0: A): FlowHandle<T>
inline fun <T, A, B, reified R : FlowLogic<T>> CordaRPCOps.startFlow(flowConstructor: (A, B) -> R, arg0: A, arg1: B): FlowHandle<T>
inline fun <T, A, B, C, reified R : FlowLogic<T>> CordaRPCOps.startFlow(flowConstructor: (A, B, C) -> R, arg0: A, arg1: B, arg2: C): FlowHandle<T>
inline fun <T, A, B, C, D, reified R : FlowLogic<T>> CordaRPCOps.startFlow(flowConstructor: (A, B, C, D) -> R, arg0: A, arg1: B, arg2: C, arg3: D): FlowHandle<T>
inline fun <T, A, B, C, D, E, reified R : FlowLogic<T>> CordaRPCOps.startFlow(flowConstructor: (A, B, C, D, E) -> R, arg0: A, arg1: B, arg2: C, arg3: D, arg4: E): FlowHandle<T>
inline fun <T, A, B, C, D, E, F, reified R : FlowLogic<T>> CordaRPCOps.startFlow(flowConstructor: (A, B, C, D, E, F) -> R, arg0: A, arg1: B, arg2: C, arg3: D, arg4: E, arg5: F): FlowHandle<T>
inline fun <T, reified R : FlowLogic<T>> CordaRPCOps.startFlowWithClientId(clientId: String, flowConstructor: () -> R): FlowHandleWithClientId<T>
inline fun <T, A, reified R : FlowLogic<T>> CordaRPCOps.startFlowWithClientId(clientId: String, flowConstructor: (A) -> R, arg0: A): FlowHandleWithClientId<T>
inline fun <T, A, B, reified R : FlowLogic<T>> CordaRPCOps.startFlowWithClientId(clientId: String, flowConstructor: (A, B) -> R, arg0: A, arg1: B): FlowHandleWithClientId<T>
inline fun <T, A, B, C, reified R : FlowLogic<T>> CordaRPCOps.startFlowWithClientId(clientId: String, flowConstructor: (A, B, C) -> R, arg0: A, arg1: B, arg2: C): FlowHandleWithClientId<T>
inline fun <T, A, B, C, D, reified R : FlowLogic<T>> CordaRPCOps.startFlowWithClientId(clientId: String, flowConstructor: (A, B, C, D) -> R, arg0: A, arg1: B, arg2: C, arg3: D): FlowHandleWithClientId<T>
inline fun <T, A, B, C, D, E, reified R : FlowLogic<T>> CordaRPCOps.startFlowWithClientId(clientId: String, flowConstructor: (A, B, C, D, E) -> R, arg0: A, arg1: B, arg2: C, arg3: D, arg4: E): FlowHandleWithClientId<T>
inline fun <T, A, B, C, D, E, F, reified R : FlowLogic<T>> CordaRPCOps.startFlowWithClientId(clientId: String, flowConstructor: (A, B, C, D, E, F) -> R, arg0: A, arg1: B, arg2: C, arg3: D, arg4: E, arg5: F): FlowHandleWithClientId<T>
inline fun <T, reified R : FlowLogic<T>> CordaRPCOps.startTrackedFlow(flowConstructor: () -> R): FlowProgressHandle<T>
inline fun <T, A, reified R : FlowLogic<T>> CordaRPCOps.startTrackedFlow(flowConstructor: (A) -> R, arg0: A): FlowProgressHandle<T>
inline fun <T, A, B, reified R : FlowLogic<T>> CordaRPCOps.startTrackedFlow(flowConstructor: (A, B) -> R, arg0: A, arg1: B): FlowProgressHandle<T>
inline fun <T, A, B, C, reified R : FlowLogic<T>> CordaRPCOps.startTrackedFlow(flowConstructor: (A, B, C) -> R, arg0: A, arg1: B, arg2: C): FlowProgressHandle<T>
inline fun <T, A, B, C, D, reified R : FlowLogic<T>> CordaRPCOps.startTrackedFlow(flowConstructor: (A, B, C, D) -> R, arg0: A, arg1: B, arg2: C, arg3: D): FlowProgressHandle<T>
inline fun <T, A, B, C, D, E, reified R : FlowLogic<T>> CordaRPCOps.startTrackedFlow(flowConstructor: (A, B, C, D, E) -> R, arg0: A, arg1: B, arg2: C, arg3: D, arg4: E): FlowProgressHandle<T>
inline fun <T, A, B, C, D, E, F, reified R : FlowLogic<T>> CordaRPCOps.startTrackedFlow(flowConstructor: (A, B, C, D, E, F) -> R, arg0: A, arg1: B, arg2: C, arg3: D, arg4: E, arg5: F): FlowProgressHandle<T>
data class StateMachineInfo
Module Contents
StateMachineInfo(id: StateMachineRunId, flowLogicClassName: String, initiator: FlowInitiator, progressTrackerStepAndUpdates: DataFeed<String, String>?, invocationContext: InvocationContext = initiator.invocationContext)
fun copy(id: StateMachineRunId = this.id, flowLogicClassName: String = this.flowLogicClassName, initiator: FlowInitiator = this.initiator, progressTrackerStepAndUpdates: DataFeed<String, String>? = this.progressTrackerStepAndUpdates): StateMachineInfo
val flowLogicClassName: String
val id: StateMachineRunId
val initiator: FlowInitiator
val invocationContext: InvocationContext
val progressTrackerStepAndUpdates: DataFeed<String, String>?
fun toString(): String
data class StateMachineTransactionMapping
sealed class StateMachineUpdate
fun <reified T : ContractState> CordaRPCOps.vaultQueryBy(criteria: QueryCriteria = QueryCriteria.VaultQueryCriteria(), paging: PageSpecification = PageSpecification(), sorting: Sort = Sort(emptySet())): Page<T>
fun <reified T : ContractState> CordaRPCOps.vaultTrackBy(criteria: QueryCriteria = QueryCriteria.VaultQueryCriteria(), paging: PageSpecification = PageSpecification(), sorting: Sort = Sort(emptySet())): DataFeed<Page<T>, Update<T>>
package net.corda.core.messaging.flows
package net.corda.core.node
Module Contents
interface AppServiceHub : ServiceHub
@Target([AnnotationTarget.PROPERTY]) annotation class AutoAcceptable
data class NetworkParameters
Module Contents
NetworkParameters(minimumPlatformVersion: Int, notaries: List<NotaryInfo>, maxMessageSize: Int, maxTransactionSize: Int, modifiedTime: Instant, epoch: Int, whitelistedContractImplementations: Map<String, List<AttachmentId>>)
NetworkParameters(minimumPlatformVersion: Int, notaries: List<NotaryInfo>, maxMessageSize: Int, maxTransactionSize: Int, modifiedTime: Instant, epoch: Int, whitelistedContractImplementations: Map<String, List<AttachmentId>>, eventHorizon: Duration)
NetworkParameters(minimumPlatformVersion: Int, notaries: List<NotaryInfo>, maxMessageSize: Int, maxTransactionSize: Int, modifiedTime: Instant, epoch: Int, whitelistedContractImplementations: Map<String, List<AttachmentId>>, eventHorizon: Duration, packageOwnership: Map<String, PublicKey>)
NetworkParameters(minimumPlatformVersion: Int, notaries: List<NotaryInfo>, maxMessageSize: Int, maxTransactionSize: Int, modifiedTime: Instant, epoch: Int, whitelistedContractImplementations: Map<String, List<AttachmentId>>, eventHorizon: Duration, packageOwnership: Map<String, PublicKey>, recoveryMaximumBackupInterval: Duration? = null, confidentialIdentityMinimumBackupInterval: Duration? = null)
val confidentialIdentityMinimumBackupInterval: Duration?
fun copy(minimumPlatformVersion: Int = this.minimumPlatformVersion, notaries: List<NotaryInfo> = this.notaries, maxMessageSize: Int = this.maxMessageSize, maxTransactionSize: Int = this.maxTransactionSize, modifiedTime: Instant = this.modifiedTime, epoch: Int = this.epoch, whitelistedContractImplementations: Map<String, List<AttachmentId>> = this.whitelistedContractImplementations, eventHorizon: Duration = this.eventHorizon, packageOwnership: Map<String, PublicKey> = this.packageOwnership): NetworkParameters
fun copy(minimumPlatformVersion: Int = this.minimumPlatformVersion, notaries: List<NotaryInfo> = this.notaries, maxMessageSize: Int = this.maxMessageSize, maxTransactionSize: Int = this.maxTransactionSize, modifiedTime: Instant = this.modifiedTime, epoch: Int = this.epoch, whitelistedContractImplementations: Map<String, List<AttachmentId>> = this.whitelistedContractImplementations, eventHorizon: Duration = this.eventHorizon): NetworkParameters
fun copy(minimumPlatformVersion: Int = this.minimumPlatformVersion, notaries: List<NotaryInfo> = this.notaries, maxMessageSize: Int = this.maxMessageSize, maxTransactionSize: Int = this.maxTransactionSize, modifiedTime: Instant = this.modifiedTime, epoch: Int = this.epoch, whitelistedContractImplementations: Map<String, List<AttachmentId>> = this.whitelistedContractImplementations): NetworkParameters
val epoch: Int
val eventHorizon: Duration
val maxMessageSize: Int
val maxTransactionSize: Int
val minimumPlatformVersion: Int
val modifiedTime: Instant
val notaries: List<NotaryInfo>
val packageOwnership: Map<String, PublicKey>
val recoveryMaximumBackupInterval: Duration?
fun toImmutable(): NetworkParameters
fun toString(): String
val whitelistedContractImplementations: Map<String, List<AttachmentId>>
data class NodeDiagnosticInfo
data class NodeInfo
data class NotaryInfo
interface ServiceHub : ServicesForResolution
Module Contents
open fun addSignature(signedTransaction: SignedTransaction, publicKey: PublicKey): SignedTransaction
open fun addSignature(signedTransaction: SignedTransaction): SignedTransaction
abstract val clock: Clock
abstract val contractUpgradeService: ContractUpgradeService
abstract fun <T : SerializeAsToken> cordaService(type: Class<T>): T
abstract fun <T : TelemetryComponent> cordaTelemetryComponent(type: Class<T>): T
open fun createSignature(signedTransaction: SignedTransaction, publicKey: PublicKey): TransactionSignature
open fun createSignature(signedTransaction: SignedTransaction): TransactionSignature
open fun createSignature(filteredTransaction: FilteredTransaction, publicKey: PublicKey): TransactionSignature
open fun createSignature(filteredTransaction: FilteredTransaction): TransactionSignature
abstract val diagnosticsService: DiagnosticsService
open fun getAppContext(): CordappContext
abstract fun jdbcSession(): Connection
abstract val keyManagementService: KeyManagementService
abstract val myInfo: NodeInfo
abstract val networkMapCache: NetworkMapCache
open fun recordTransactions(notifyVault: Boolean, txs: Iterable<SignedTransaction>): Unit
open fun recordTransactions(notifyVault: Boolean, first: SignedTransaction, vararg remaining: SignedTransaction): Unit
abstract fun recordTransactions(statesToRecord: StatesToRecord, txs: Iterable<SignedTransaction>): Unit
open fun recordTransactions(first: SignedTransaction, vararg remaining: SignedTransaction): Unit
open fun recordTransactions(txs: Iterable<SignedTransaction>): Unit
abstract fun registerUnloadHandler(runOnStop: () -> Unit): Unit
open fun signInitialTransaction(builder: TransactionBuilder, publicKey: PublicKey): SignedTransaction
open fun signInitialTransaction(builder: TransactionBuilder): SignedTransaction
open fun signInitialTransaction(builder: TransactionBuilder, signingPubKeys: Iterable<PublicKey>): SignedTransaction
abstract val telemetryService: TelemetryService
open fun <T : ContractState> toStateAndRef(stateRef: StateRef): StateAndRef<T>
abstract val validatedTransactions: TransactionStorage
abstract val vaultService: VaultService
abstract fun <T> withEntityManager(block: EntityManager.() -> T): T
abstract fun withEntityManager(block: Consumer<EntityManager>): Unit
@DoNotImplement interface ServicesForResolution
enum class StatesToRecord
class ZoneVersionTooLowException : CordaRuntimeException
package net.corda.core.node.services
Module Contents
typealias AttachmentFixup = Pair<Set<AttachmentId>, Set<AttachmentId>>
typealias AttachmentId = SecureHash
@DoNotImplement interface AttachmentStorage
@DoNotImplement interface ContractUpgradeService
@Target([AnnotationTarget.CLASS]) annotation class CordaService
class CordaServiceCriticalFailureException : Exception
@DoNotImplement interface IdentityService
@DoNotImplement interface KeyManagementService
const val MAX_CONSTRAINT_DATA_SIZE: Int
interface NetworkMapCache : NetworkMapCacheBase
@DoNotImplement interface NetworkMapCacheBase
@DoNotImplement interface NetworkParametersService
sealed class PartyInfo
fun <reified T : ContractState> VaultService.queryBy(): Page<T>
fun <reified T : ContractState> VaultService.queryBy(criteria: QueryCriteria): Page<T>
fun <reified T : ContractState> VaultService.queryBy(paging: PageSpecification): Page<T>
fun <reified T : ContractState> VaultService.queryBy(criteria: QueryCriteria, paging: PageSpecification): Page<T>
fun <reified T : ContractState> VaultService.queryBy(criteria: QueryCriteria, sorting: Sort): Page<T>
fun <reified T : ContractState> VaultService.queryBy(criteria: QueryCriteria, paging: PageSpecification, sorting: Sort): Page<T>
enum class ServiceLifecycleEvent
@FunctionalInterface interface ServiceLifecycleObserver
data class SignedTransactionWithStatus : NamedByHash
class StatesNotAvailableException : FlowException
@DoNotImplement interface TelemetryService
class TimeWindowChecker
fun <reified T : ContractState> VaultService.trackBy(): DataFeed<Page<T>, Update<T>>
fun <reified T : ContractState> VaultService.trackBy(paging: PageSpecification): DataFeed<Page<T>, Update<T>>
fun <reified T : ContractState> VaultService.trackBy(criteria: QueryCriteria): DataFeed<Page<T>, Update<T>>
fun <reified T : ContractState> VaultService.trackBy(criteria: QueryCriteria, paging: PageSpecification): DataFeed<Page<T>, Update<T>>
fun <reified T : ContractState> VaultService.trackBy(criteria: QueryCriteria, sorting: Sort): DataFeed<Page<T>, Update<T>>
fun <reified T : ContractState> VaultService.trackBy(criteria: QueryCriteria, paging: PageSpecification, sorting: Sort): DataFeed<Page<T>, Update<T>>
enum class TransactionStatus
@DoNotImplement interface TransactionStorage
class UnknownAnonymousPartyException : CordaException
class Vault<out T : ContractState>
Module Contents
Vault(states: Iterable<StateAndRef<T>>)
data class ConstraintInfo
val NoNotaryUpdate: Update<ContractState>
val NoUpdate: Update<ContractState>
data class Page<T : ContractState>
enum class RelevancyStatus
data class StateMetadata
Module Contents
StateMetadata(ref: StateRef, contractStateClassName: String, recordedTime: Instant, consumedTime: Instant?, status: StateStatus, notary: AbstractParty?, lockId: String?, lockUpdateTime: Instant?, relevancyStatus: RelevancyStatus? = null, constraintInfo: ConstraintInfo? = null)
val constraintInfo: ConstraintInfo?
val consumedTime: Instant?
val contractStateClassName: String
fun copy(ref: StateRef = this.ref, contractStateClassName: String = this.contractStateClassName, recordedTime: Instant = this.recordedTime, consumedTime: Instant? = this.consumedTime, status: StateStatus = this.status, notary: AbstractParty? = this.notary, lockId: String? = this.lockId, lockUpdateTime: Instant? = this.lockUpdateTime): StateMetadata
fun copy(ref: StateRef = this.ref, contractStateClassName: String = this.contractStateClassName, recordedTime: Instant = this.recordedTime, consumedTime: Instant? = this.consumedTime, status: StateStatus = this.status, notary: AbstractParty? = this.notary, lockId: String? = this.lockId, lockUpdateTime: Instant? = this.lockUpdateTime, relevancyStatus: RelevancyStatus?): StateMetadata
val lockId: String?
val lockUpdateTime: Instant?
val notary: AbstractParty?
val recordedTime: Instant
val ref: StateRef
val relevancyStatus: RelevancyStatus?
val status: StateStatus
val states: Iterable<StateAndRef<T>>
enum class StateStatus
data class Update<U : ContractState>
Module Contents
Update(consumed: Set<StateAndRef<U>>, produced: Set<StateAndRef<U>>, flowId: UUID? = null, type: UpdateType = UpdateType.GENERAL, references: Set<StateAndRef<U>> = emptySet())
Update(consumed: Set<StateAndRef<U>>, produced: Set<StateAndRef<U>>, flowId: UUID? = null, type: UpdateType = UpdateType.GENERAL, references: Set<StateAndRef<U>> = emptySet(), consumingTxIds: Map<StateRef, SecureHash> = emptyMap())
val consumed: Set<StateAndRef<U>>
val consumingTxIds: Map<StateRef, SecureHash>
fun <reified T : ContractState> containsType(): Boolean
fun <T : ContractState> containsType(clazz: Class<T>, status: StateStatus): Boolean
fun copy(consumed: Set<StateAndRef<U>>, produced: Set<StateAndRef<U>>, flowId: UUID? = null, type: UpdateType = UpdateType.GENERAL): Update<U>
fun copy(consumed: Set<StateAndRef<U>>, produced: Set<StateAndRef<U>>, flowId: UUID? = null, type: UpdateType = UpdateType.GENERAL, references: Set<StateAndRef<U>> = emptySet()): Update<U>
val flowId: UUID?
fun isEmpty(): Boolean
operator fun plus(rhs: Update<U>): Update<U>
val produced: Set<StateAndRef<U>>
val references: Set<StateAndRef<U>>
fun toString(): String
val type: UpdateType
enum class UpdateType
class VaultQueryException : FlowException
@DoNotImplement interface VaultService
Module Contents
abstract fun <T : ContractState> _queryBy(criteria: QueryCriteria, paging: PageSpecification, sorting: Sort, contractStateType: Class<out T>): Page<T>
abstract fun <T : ContractState> _trackBy(criteria: QueryCriteria, paging: PageSpecification, sorting: Sort, contractStateType: Class<out T>): DataFeed<Page<T>, Update<T>>
abstract fun addNoteToTransaction(txnId: SecureHash, noteText: String): Unit
abstract fun getTransactionNotes(txnId: SecureHash): Iterable<String>
open fun <T : ContractState> queryBy(contractStateType: Class<out T>): Page<T>
open fun <T : ContractState> queryBy(contractStateType: Class<out T>, criteria: QueryCriteria): Page<T>
open fun <T : ContractState> queryBy(contractStateType: Class<out T>, paging: PageSpecification): Page<T>
open fun <T : ContractState> queryBy(contractStateType: Class<out T>, criteria: QueryCriteria, paging: PageSpecification): Page<T>
open fun <T : ContractState> queryBy(contractStateType: Class<out T>, criteria: QueryCriteria, sorting: Sort): Page<T>
open fun <T : ContractState> queryBy(contractStateType: Class<out T>, criteria: QueryCriteria, paging: PageSpecification, sorting: Sort): Page<T>
abstract val rawUpdates: Observable<Update<ContractState>>
abstract fun softLockRelease(lockId: UUID, stateRefs: NonEmptySet<StateRef>? = null): Unit
abstract fun softLockReserve(lockId: UUID, stateRefs: NonEmptySet<StateRef>): Unit
open fun <T : ContractState> trackBy(contractStateType: Class<out T>): DataFeed<Page<T>, Update<T>>
open fun <T : ContractState> trackBy(contractStateType: Class<out T>, criteria: QueryCriteria): DataFeed<Page<T>, Update<T>>
open fun <T : ContractState> trackBy(contractStateType: Class<out T>, paging: PageSpecification): DataFeed<Page<T>, Update<T>>
open fun <T : ContractState> trackBy(contractStateType: Class<out T>, criteria: QueryCriteria, paging: PageSpecification): DataFeed<Page<T>, Update<T>>
open fun <T : ContractState> trackBy(contractStateType: Class<out T>, criteria: QueryCriteria, sorting: Sort): DataFeed<Page<T>, Update<T>>
open fun <T : ContractState> trackBy(contractStateType: Class<out T>, criteria: QueryCriteria, paging: PageSpecification, sorting: Sort): DataFeed<Page<T>, Update<T>>
@Suspendable abstract fun <T : FungibleState<*>> tryLockFungibleStatesForSpending(lockId: UUID, eligibleStatesQuery: QueryCriteria, amount: Amount<*>, contractStateType: Class<out T>): List<StateAndRef<T>>
abstract val updates: Observable<Update<ContractState>>
open fun whenConsumed(ref: StateRef): CordaFuture<Update<ContractState>>
package net.corda.core.node.services.diagnostics
package net.corda.core.node.services.vault
Module Contents
enum class AggregateFunctionType
sealed class AttachmentQueryCriteria : GenericQueryCriteria<AttachmentQueryCriteria, AttachmentsQueryCriteriaParser>, ChainableQueryCriteria<AttachmentQueryCriteria, AttachmentsQueryCriteriaParser>
Module Contents
open fun and(criteria: AttachmentQueryCriteria): AttachmentQueryCriteria
class AndComposition : AttachmentQueryCriteria, AndVisitor<AttachmentQueryCriteria, AttachmentsQueryCriteriaParser, AttachmentSort>
data class AttachmentsQueryCriteria : AttachmentQueryCriteria
Module Contents
AttachmentsQueryCriteria(uploaderCondition: ColumnPredicate<String>? = null, filenameCondition: ColumnPredicate<String>? = null, uploadDateCondition: ColumnPredicate<Instant>? = null)
AttachmentsQueryCriteria(uploaderCondition: ColumnPredicate<String>?)
AttachmentsQueryCriteria(uploaderCondition: ColumnPredicate<String>?, filenameCondition: ColumnPredicate<String>?)
AttachmentsQueryCriteria(uploaderCondition: ColumnPredicate<String>? = null, filenameCondition: ColumnPredicate<String>? = null, uploadDateCondition: ColumnPredicate<Instant>? = null, contractClassNamesCondition: ColumnPredicate<List<ContractClassName>>? = null, signersCondition: ColumnPredicate<List<PublicKey>>? = null, isSignedCondition: ColumnPredicate<Boolean>? = null, versionCondition: ColumnPredicate<Int>? = null)
val contractClassNamesCondition: ColumnPredicate<List<ContractClassName>>?
fun copy(uploaderCondition: ColumnPredicate<String>? = this.uploaderCondition, filenameCondition: ColumnPredicate<String>? = this.filenameCondition, uploadDateCondition: ColumnPredicate<Instant>? = this.uploadDateCondition): AttachmentsQueryCriteria
val filenameCondition: ColumnPredicate<String>?
fun isSigned(isSignedPredicate: ColumnPredicate<Boolean>): AttachmentsQueryCriteria
val isSignedCondition: ColumnPredicate<Boolean>?
val signersCondition: ColumnPredicate<List<PublicKey>>?
val uploadDateCondition: ColumnPredicate<Instant>?
val uploaderCondition: ColumnPredicate<String>?
val versionCondition: ColumnPredicate<Int>?
fun visit(parser: AttachmentsQueryCriteriaParser): Collection<Predicate>
fun withContractClassNames(contractClassNamesPredicate: ColumnPredicate<List<ContractClassName>>): AttachmentsQueryCriteria
fun withFilename(filenamePredicate: ColumnPredicate<String>): AttachmentsQueryCriteria
fun withSigners(signersPredicate: ColumnPredicate<List<PublicKey>>): AttachmentsQueryCriteria
fun withUploadDate(uploadDatePredicate: ColumnPredicate<Instant>): AttachmentsQueryCriteria
fun withUploader(uploaderPredicate: ColumnPredicate<String>): AttachmentsQueryCriteria
fun withVersion(versionPredicate: ColumnPredicate<Int>): AttachmentsQueryCriteria
open fun or(criteria: AttachmentQueryCriteria): AttachmentQueryCriteria
class OrComposition : AttachmentQueryCriteria, OrVisitor<AttachmentQueryCriteria, AttachmentsQueryCriteriaParser, AttachmentSort>
data class AttachmentSort : BaseSort
interface AttachmentsQueryCriteriaParser : BaseQueryCriteriaParser<AttachmentQueryCriteria, AttachmentsQueryCriteriaParser, AttachmentSort>
interface BaseQueryCriteriaParser<Q : GenericQueryCriteria<Q, P>, in P : BaseQueryCriteriaParser<Q, P, S>, in S : BaseSort>
abstract class BaseSort
enum class BinaryComparisonOperator : Operator
enum class BinaryLogicalOperator : Operator
object Builder
Module Contents
fun <O, R> KProperty1<O, R?>.avg(groupByColumns: List<KProperty1<O, R>>? = null, orderBy: Direction? = null): AggregateFunctionExpression<O, R>
@JvmStatic @JvmOverloads fun <R> Field.avg(groupByColumns: List<Field>? = null, orderBy: Direction? = null): AggregateFunctionExpression<Any, R>
@JvmStatic @JvmOverloads fun <R> FieldInfo.avg(groupByColumns: List<FieldInfo>? = null, orderBy: Direction? = null): AggregateFunctionExpression<Any, R>
fun <O, R : Comparable<R>> KProperty1<O, R?>.between(from: R, to: R): ColumnPredicateExpression<O, R>
@JvmStatic fun <R : Comparable<R>> Field.between(from: R, to: R): ColumnPredicateExpression<Any, R>
@JvmStatic fun <R : Comparable<R>> FieldInfo.between(from: R, to: R): ColumnPredicateExpression<Any, R>
fun <R : Comparable<R>> between(from: R, to: R): Between<R>
fun <R : Comparable<R>> compare(operator: BinaryComparisonOperator, value: R): BinaryComparison<R>
fun <O, R : Comparable<R>> KProperty1<O, R?>.comparePredicate(operator: BinaryComparisonOperator, value: R): ColumnPredicateExpression<O, R>
fun <R : Comparable<R>> Field.comparePredicate(operator: BinaryComparisonOperator, value: R): ColumnPredicateExpression<Any, R>
fun <R : Comparable<R>> FieldInfo.comparePredicate(operator: BinaryComparisonOperator, value: R): ColumnPredicateExpression<Any, R>
fun <O, R> KProperty1<O, R?>.count(): AggregateFunctionExpression<O, R>
@JvmStatic fun Field.count(): AggregateFunctionExpression<Any, Any>
@JvmStatic fun FieldInfo.count(): AggregateFunctionExpression<Any, Any>
@JvmOverloads fun <O, R> KProperty1<O, R?>.equal(value: R, exactMatch: Boolean = true): ColumnPredicateExpression<O, R>
@JvmStatic @JvmOverloads fun <R> Field.equal(value: R, exactMatch: Boolean = true): ColumnPredicateExpression<Any, R>
@JvmStatic @JvmOverloads fun <R> FieldInfo.equal(value: R, exactMatch: Boolean = true): ColumnPredicateExpression<Any, R>
@JvmOverloads fun <R> equal(value: R, exactMatch: Boolean = true): EqualityComparison<R>
fun <O, R> KProperty1<O, R?>.functionPredicate(predicate: ColumnPredicate<R>, groupByColumns: List<Column<O, R>>? = null, orderBy: Direction? = null): AggregateFunctionExpression<O, R>
fun <R> Field.functionPredicate(predicate: ColumnPredicate<R>, groupByColumns: List<Column<Any, R>>? = null, orderBy: Direction? = null): AggregateFunctionExpression<Any, R>
fun <R> FieldInfo.functionPredicate(predicate: ColumnPredicate<R>, groupByColumns: List<Column<Any, R>>? = null, orderBy: Direction? = null): AggregateFunctionExpression<Any, R>
fun <O, R : Comparable<R>> KProperty1<O, R?>.greaterThan(value: R): ColumnPredicateExpression<O, R>
@JvmStatic fun <R : Comparable<R>> Field.greaterThan(value: R): ColumnPredicateExpression<Any, R>
@JvmStatic fun <R : Comparable<R>> FieldInfo.greaterThan(value: R): ColumnPredicateExpression<Any, R>
fun <R : Comparable<R>> greaterThan(value: R): BinaryComparison<R>
fun <O, R : Comparable<R>> KProperty1<O, R?>.greaterThanOrEqual(value: R): ColumnPredicateExpression<O, R>
@JvmStatic fun <R : Comparable<R>> Field.greaterThanOrEqual(value: R): ColumnPredicateExpression<Any, R>
@JvmStatic fun <R : Comparable<R>> FieldInfo.greaterThanOrEqual(value: R): ColumnPredicateExpression<Any, R>
fun <R : Comparable<R>> greaterThanOrEqual(value: R): BinaryComparison<R>
@JvmOverloads fun <O, R : Comparable<R>> KProperty1<O, R?>.in(collection: Collection<R>, exactMatch: Boolean = true): ColumnPredicateExpression<O, R>
@JvmStatic @JvmOverloads fun <R : Comparable<R>> Field.in(collection: Collection<R>, exactMatch: Boolean = true): ColumnPredicateExpression<Any, R>
@JvmStatic @JvmOverloads fun <R : Comparable<R>> FieldInfo.in(collection: Collection<R>, exactMatch: Boolean = true): ColumnPredicateExpression<Any, R>
@JvmOverloads fun <R : Comparable<R>> in(collection: Collection<R>, exactMatch: Boolean = true): CollectionExpression<R>
fun <R> isNotNull(): NullExpression<R>
fun <R> isNull(): NullExpression<R>
fun <O, R> KProperty1<O, R?>.isNull(): ColumnPredicateExpression<O, R>
@JvmStatic fun Field.isNull(): ColumnPredicateExpression<Any, Any>
@JvmStatic fun FieldInfo.isNull(): ColumnPredicateExpression<Any, Any>
fun <O, R : Comparable<R>> KProperty1<O, R?>.lessThan(value: R): ColumnPredicateExpression<O, R>
@JvmStatic fun <R : Comparable<R>> Field.lessThan(value: R): ColumnPredicateExpression<Any, R>
@JvmStatic fun <R : Comparable<R>> FieldInfo.lessThan(value: R): ColumnPredicateExpression<Any, R>
fun <R : Comparable<R>> lessThan(value: R): BinaryComparison<R>
fun <O, R : Comparable<R>> KProperty1<O, R?>.lessThanOrEqual(value: R): ColumnPredicateExpression<O, R>
@JvmStatic fun <R : Comparable<R>> Field.lessThanOrEqual(value: R): ColumnPredicateExpression<Any, R>
@JvmStatic fun <R : Comparable<R>> FieldInfo.lessThanOrEqual(value: R): ColumnPredicateExpression<Any, R>
fun <R : Comparable<R>> lessThanOrEqual(value: R): BinaryComparison<R>
@JvmOverloads fun like(string: String, exactMatch: Boolean = true): Likeness
@JvmOverloads fun <O> KProperty1<O, String?>.like(string: String, exactMatch: Boolean = true): ColumnPredicateExpression<O, String>
@JvmStatic @JvmOverloads fun Field.like(string: String, exactMatch: Boolean = true): ColumnPredicateExpression<Any, String>
@JvmStatic @JvmOverloads fun FieldInfo.like(string: String, exactMatch: Boolean = true): ColumnPredicateExpression<Any, String>
fun <O, R> KProperty1<O, R?>.max(groupByColumns: List<KProperty1<O, R>>? = null, orderBy: Direction? = null): AggregateFunctionExpression<O, R>
@JvmStatic @JvmOverloads fun <R> Field.max(groupByColumns: List<Field>? = null, orderBy: Direction? = null): AggregateFunctionExpression<Any, R>
@JvmStatic @JvmOverloads fun <R> FieldInfo.max(groupByColumns: List<FieldInfo>? = null, orderBy: Direction? = null): AggregateFunctionExpression<Any, R>
fun <O, R> KProperty1<O, R?>.min(groupByColumns: List<KProperty1<O, R>>? = null, orderBy: Direction? = null): AggregateFunctionExpression<O, R>
@JvmStatic @JvmOverloads fun <R> Field.min(groupByColumns: List<Field>? = null, orderBy: Direction? = null): AggregateFunctionExpression<Any, R>
@JvmStatic @JvmOverloads fun <R> FieldInfo.min(groupByColumns: List<FieldInfo>? = null, orderBy: Direction? = null): AggregateFunctionExpression<Any, R>
@JvmOverloads fun <O, R> KProperty1<O, R?>.notEqual(value: R, exactMatch: Boolean = true): ColumnPredicateExpression<O, R>
@JvmStatic @JvmOverloads fun <R> Field.notEqual(value: R, exactMatch: Boolean = true): ColumnPredicateExpression<Any, R>
@JvmStatic @JvmOverloads fun <R> FieldInfo.notEqual(value: R, exactMatch: Boolean = true): ColumnPredicateExpression<Any, R>
@JvmOverloads fun <R> notEqual(value: R, exactMatch: Boolean = true): EqualityComparison<R>
@JvmOverloads fun <O, R : Comparable<R>> KProperty1<O, R?>.notIn(collection: Collection<R>, exactMatch: Boolean = true): ColumnPredicateExpression<O, R>
@JvmStatic @JvmOverloads fun <R : Comparable<R>> Field.notIn(collection: Collection<R>, exactMatch: Boolean = true): ColumnPredicateExpression<Any, R>
@JvmStatic @JvmOverloads fun <R : Comparable<R>> FieldInfo.notIn(collection: Collection<R>, exactMatch: Boolean = true): ColumnPredicateExpression<Any, R>
@JvmOverloads fun <R : Comparable<R>> notIn(collection: Collection<R>, exactMatch: Boolean = true): CollectionExpression<R>
@JvmOverloads fun notLike(string: String, exactMatch: Boolean = true): Likeness
@JvmOverloads fun <O> KProperty1<O, String?>.notLike(string: String, exactMatch: Boolean = true): ColumnPredicateExpression<O, String>
@JvmStatic @JvmOverloads fun Field.notLike(string: String, exactMatch: Boolean = true): ColumnPredicateExpression<Any, String>
@JvmStatic @JvmOverloads fun FieldInfo.notLike(string: String, exactMatch: Boolean = true): ColumnPredicateExpression<Any, String>
fun <O, R> KProperty1<O, R?>.notNull(): ColumnPredicateExpression<O, R>
@JvmStatic fun Field.notNull(): ColumnPredicateExpression<Any, Any>
@JvmStatic fun FieldInfo.notNull(): ColumnPredicateExpression<Any, Any>
fun <O, R> KProperty1<O, R?>.predicate(predicate: ColumnPredicate<R>): ColumnPredicateExpression<O, R>
fun <R> Field.predicate(predicate: ColumnPredicate<R>): ColumnPredicateExpression<Any, R>
fun <R> FieldInfo.predicate(predicate: ColumnPredicate<R>): ColumnPredicateExpression<Any, R>
fun <O, R> KProperty1<O, R?>.sum(groupByColumns: List<KProperty1<O, R>>? = null, orderBy: Direction? = null): AggregateFunctionExpression<O, R>
@JvmStatic @JvmOverloads fun <R> Field.sum(groupByColumns: List<Field>? = null, orderBy: Direction? = null): AggregateFunctionExpression<Any, R>
@JvmStatic @JvmOverloads fun <R> FieldInfo.sum(groupByColumns: List<FieldInfo>? = null, orderBy: Direction? = null): AggregateFunctionExpression<Any, R>
inline fun <A> builder(block: Builder.() -> A): A
enum class CollectionOperator : Operator
class Column<O, out C>
sealed class ColumnPredicate<C>
@DoNotImplement interface CordaTransactionSupport
sealed class CriteriaExpression<O, out T>
const val DEFAULT_PAGE_NUM: Int
const val DEFAULT_PAGE_SIZE: Int
enum class EqualityComparisonOperator : Operator
class FieldInfo
interface GenericQueryCriteria<Q : GenericQueryCriteria<Q, *>, in P : BaseQueryCriteriaParser<Q, *, *>>
Module Contents
interface ChainableQueryCriteria<Q : GenericQueryCriteria<Q, P>, in P : BaseQueryCriteriaParser<Q, P, *>>
Module Contents
abstract infix fun and(criteria: Q): Q
interface AndVisitor<Q : GenericQueryCriteria<Q, P>, in P : BaseQueryCriteriaParser<Q, P, S>, in S : BaseSort> : GenericQueryCriteria<Q, P>
abstract infix fun or(criteria: Q): Q
interface OrVisitor<Q : GenericQueryCriteria<Q, P>, in P : BaseQueryCriteriaParser<Q, P, S>, in S : BaseSort> : GenericQueryCriteria<Q, P>
abstract fun visit(parser: P): Collection<Predicate>
fun <O, C> getColumnName(column: Column<O, C>): String
fun getField(fieldName: String, entityClass: Class<*>): FieldInfo
@DoNotImplement interface IQueryCriteriaParser : BaseQueryCriteriaParser<QueryCriteria, IQueryCriteriaParser, Sort>
enum class LikenessOperator : Operator
const val MAX_PAGE_SIZE: Int
enum class NullOperator : Operator
@DoNotImplement interface Operator
data class PageSpecification
sealed class QueryCriteria : GenericQueryCriteria<QueryCriteria, IQueryCriteriaParser>, ChainableQueryCriteria<QueryCriteria, IQueryCriteriaParser>
Module Contents
open fun and(criteria: QueryCriteria): QueryCriteria
class AndComposition : QueryCriteria, AndVisitor<QueryCriteria, IQueryCriteriaParser, Sort>
abstract class CommonQueryCriteria : QueryCriteria
data class FungibleAssetQueryCriteria : CommonQueryCriteria
Module Contents
FungibleAssetQueryCriteria(participants: List<AbstractParty>? = null, owner: List<AbstractParty>? = null, quantity: ColumnPredicate<Long>? = null, issuer: List<AbstractParty>? = null, issuerRef: List<OpaqueBytes>? = null, status: StateStatus = Vault.StateStatus.UNCONSUMED, contractStateTypes: Set<Class<out ContractState>>? = null, relevancyStatus: RelevancyStatus)
FungibleAssetQueryCriteria(participants: List<AbstractParty>? = null, owner: List<AbstractParty>? = null, quantity: ColumnPredicate<Long>? = null, issuer: List<AbstractParty>? = null, issuerRef: List<OpaqueBytes>? = null, status: StateStatus = Vault.StateStatus.UNCONSUMED, contractStateTypes: Set<Class<out ContractState>>? = null)
FungibleAssetQueryCriteria(participants: List<AbstractParty>? = null, owner: List<AbstractParty>? = null, quantity: ColumnPredicate<Long>? = null, issuer: List<AbstractParty>? = null, issuerRef: List<OpaqueBytes>? = null, status: StateStatus = Vault.StateStatus.UNCONSUMED, contractStateTypes: Set<Class<out ContractState>>? = null, relevancyStatus: RelevancyStatus, exactParticipants: List<AbstractParty>? = null)
val contractStateTypes: Set<Class<out ContractState>>?
fun copy(participants: List<AbstractParty>? = this.participants, owner: List<AbstractParty>? = this.owner, quantity: ColumnPredicate<Long>? = this.quantity, issuer: List<AbstractParty>? = this.issuer, issuerRef: List<OpaqueBytes>? = this.issuerRef, status: StateStatus = this.status, contractStateTypes: Set<Class<out ContractState>>? = this.contractStateTypes, relevancyStatus: RelevancyStatus = this.relevancyStatus): FungibleAssetQueryCriteria
fun copy(participants: List<AbstractParty>? = this.participants, owner: List<AbstractParty>? = this.owner, quantity: ColumnPredicate<Long>? = this.quantity, issuer: List<AbstractParty>? = this.issuer, issuerRef: List<OpaqueBytes>? = this.issuerRef, status: StateStatus = this.status, contractStateTypes: Set<Class<out ContractState>>? = this.contractStateTypes): FungibleAssetQueryCriteria
val exactParticipants: List<AbstractParty>?
val issuer: List<AbstractParty>?
val issuerRef: List<OpaqueBytes>?
val owner: List<AbstractParty>?
val participants: List<AbstractParty>?
val quantity: ColumnPredicate<Long>?
val relevancyStatus: RelevancyStatus
val status: StateStatus
fun visit(parser: IQueryCriteriaParser): Collection<Predicate>
fun withContractStateTypes(contractStateTypes: Set<Class<out ContractState>>): FungibleAssetQueryCriteria
fun withExactParticipants(exactParticipants: List<AbstractParty>): FungibleAssetQueryCriteria
fun withIssuer(issuer: List<AbstractParty>): FungibleAssetQueryCriteria
fun withissuerRef(issuerRef: List<OpaqueBytes>): FungibleAssetQueryCriteria
fun withOwner(owner: List<AbstractParty>): FungibleAssetQueryCriteria
fun withParticipants(participants: List<AbstractParty>): FungibleAssetQueryCriteria
fun withQuantity(quantity: ColumnPredicate<Long>): FungibleAssetQueryCriteria
fun withRelevancyStatus(relevancyStatus: RelevancyStatus): FungibleAssetQueryCriteria
fun withStatus(status: StateStatus): FungibleAssetQueryCriteria
data class FungibleStateQueryCriteria : CommonQueryCriteria
data class LinearStateQueryCriteria : CommonQueryCriteria
Module Contents
LinearStateQueryCriteria(participants: List<AbstractParty>? = null, uuid: List<UUID>? = null, externalId: List<String>? = null, status: StateStatus = Vault.StateStatus.UNCONSUMED, contractStateTypes: Set<Class<out ContractState>>? = null, relevancyStatus: RelevancyStatus = Vault.RelevancyStatus.ALL)
LinearStateQueryCriteria(participants: List<AbstractParty>? = null, uuid: List<UUID>? = null, externalId: List<String>? = null, status: StateStatus = Vault.StateStatus.UNCONSUMED, contractStateTypes: Set<Class<out ContractState>>? = null)
LinearStateQueryCriteria(participants: List<AbstractParty>? = null, linearId: List<UniqueIdentifier>? = null, status: StateStatus = Vault.StateStatus.UNCONSUMED, contractStateTypes: Set<Class<out ContractState>>? = null, relevancyStatus: RelevancyStatus = Vault.RelevancyStatus.ALL)
LinearStateQueryCriteria(participants: List<AbstractParty>? = null, linearId: List<UniqueIdentifier>? = null, status: StateStatus = Vault.StateStatus.UNCONSUMED, contractStateTypes: Set<Class<out ContractState>>? = null)
LinearStateQueryCriteria(participants: List<AbstractParty>? = null, uuid: List<UUID>? = null, externalId: List<String>? = null, status: StateStatus = Vault.StateStatus.UNCONSUMED, contractStateTypes: Set<Class<out ContractState>>? = null, relevancyStatus: RelevancyStatus = Vault.RelevancyStatus.ALL, exactParticipants: List<AbstractParty>?)
val contractStateTypes: Set<Class<out ContractState>>?
fun copy(participants: List<AbstractParty>? = this.participants, uuid: List<UUID>? = this.uuid, externalId: List<String>? = this.externalId, status: StateStatus = this.status, contractStateTypes: Set<Class<out ContractState>>? = this.contractStateTypes): LinearStateQueryCriteria
fun copy(participants: List<AbstractParty>? = this.participants, uuid: List<UUID>? = this.uuid, externalId: List<String>? = this.externalId, status: StateStatus = this.status, contractStateTypes: Set<Class<out ContractState>>? = this.contractStateTypes, relevancyStatus: RelevancyStatus = this.relevancyStatus): LinearStateQueryCriteria
val exactParticipants: List<AbstractParty>?
val externalId: List<String>?
val participants: List<AbstractParty>?
val relevancyStatus: RelevancyStatus
val status: StateStatus
val uuid: List<UUID>?
fun visit(parser: IQueryCriteriaParser): Collection<Predicate>
fun withContractStateTypes(contractStateTypes: Set<Class<out ContractState>>): LinearStateQueryCriteria
fun withExactParticipants(exactParticipants: List<AbstractParty>): LinearStateQueryCriteria
fun withExternalId(externalId: List<String>): LinearStateQueryCriteria
fun withParticipants(participants: List<AbstractParty>): LinearStateQueryCriteria
fun withRelevancyStatus(relevancyStatus: RelevancyStatus): LinearStateQueryCriteria
fun withStatus(status: StateStatus): LinearStateQueryCriteria
fun withUuid(uuid: List<UUID>): LinearStateQueryCriteria
open fun or(criteria: QueryCriteria): QueryCriteria
class OrComposition : QueryCriteria, OrVisitor<QueryCriteria, IQueryCriteriaParser, Sort>
data class SoftLockingCondition
enum class SoftLockingType
data class TimeCondition
enum class TimeInstantType
data class VaultCustomQueryCriteria<L : StatePersistable> : CommonQueryCriteria
Module Contents
VaultCustomQueryCriteria(expression: CriteriaExpression<L, Boolean>, status: StateStatus = Vault.StateStatus.UNCONSUMED, contractStateTypes: Set<Class<out ContractState>>? = null)
VaultCustomQueryCriteria(expression: CriteriaExpression<L, Boolean>, status: StateStatus = Vault.StateStatus.UNCONSUMED, contractStateTypes: Set<Class<out ContractState>>? = null, relevancyStatus: RelevancyStatus = Vault.RelevancyStatus.ALL)
val contractStateTypes: Set<Class<out ContractState>>?
fun copy(expression: CriteriaExpression<L, Boolean> = this.expression, status: StateStatus = this.status, contractStateTypes: Set<Class<out ContractState>>? = this.contractStateTypes): VaultCustomQueryCriteria<L>
val expression: CriteriaExpression<L, Boolean>
val relevancyStatus: RelevancyStatus
val status: StateStatus
fun visit(parser: IQueryCriteriaParser): Collection<Predicate>
fun withContractStateTypes(contractStateTypes: Set<Class<out ContractState>>): VaultCustomQueryCriteria<L>
fun withExpression(expression: CriteriaExpression<L, Boolean>): VaultCustomQueryCriteria<L>
fun withRelevancyStatus(relevancyStatus: RelevancyStatus): VaultCustomQueryCriteria<L>
fun withStatus(status: StateStatus): VaultCustomQueryCriteria<L>
data class VaultQueryCriteria : CommonQueryCriteria
Module Contents
VaultQueryCriteria(status: StateStatus = Vault.StateStatus.UNCONSUMED, contractStateTypes: Set<Class<out ContractState>>? = null, stateRefs: List<StateRef>? = null, notary: List<AbstractParty>? = null, softLockingCondition: SoftLockingCondition? = null, timeCondition: TimeCondition? = null, relevancyStatus: RelevancyStatus = Vault.RelevancyStatus.ALL, constraintTypes: Set<Type> = emptySet(), constraints: Set<ConstraintInfo> = emptySet(), participants: List<AbstractParty>? = null, externalIds: List<UUID> = emptyList())
VaultQueryCriteria(status: StateStatus = Vault.StateStatus.UNCONSUMED, contractStateTypes: Set<Class<out ContractState>>? = null, stateRefs: List<StateRef>? = null, notary: List<AbstractParty>? = null, softLockingCondition: SoftLockingCondition? = null, timeCondition: TimeCondition? = null, relevancyStatus: RelevancyStatus = Vault.RelevancyStatus.ALL, constraintTypes: Set<Type> = emptySet(), constraints: Set<ConstraintInfo> = emptySet(), participants: List<AbstractParty>? = null)
VaultQueryCriteria(status: StateStatus = Vault.StateStatus.UNCONSUMED, contractStateTypes: Set<Class<out ContractState>>? = null, stateRefs: List<StateRef>? = null, notary: List<AbstractParty>? = null, softLockingCondition: SoftLockingCondition? = null, timeCondition: TimeCondition? = null)
VaultQueryCriteria(status: StateStatus)
VaultQueryCriteria(status: StateStatus, contractStateTypes: Set<Class<out ContractState>>?)
VaultQueryCriteria(status: StateStatus, contractStateTypes: Set<Class<out ContractState>>?, stateRefs: List<StateRef>?)
VaultQueryCriteria(status: StateStatus, contractStateTypes: Set<Class<out ContractState>>?, stateRefs: List<StateRef>?, notary: List<AbstractParty>?)
VaultQueryCriteria(status: StateStatus, contractStateTypes: Set<Class<out ContractState>>?, stateRefs: List<StateRef>?, notary: List<AbstractParty>?, softLockingCondition: SoftLockingCondition?)
VaultQueryCriteria(status: StateStatus = Vault.StateStatus.UNCONSUMED, contractStateTypes: Set<Class<out ContractState>>? = null, stateRefs: List<StateRef>? = null, notary: List<AbstractParty>? = null, softLockingCondition: SoftLockingCondition? = null, timeCondition: TimeCondition? = null, relevancyStatus: RelevancyStatus = Vault.RelevancyStatus.ALL, constraintTypes: Set<Type> = emptySet(), constraints: Set<ConstraintInfo> = emptySet(), participants: List<AbstractParty>? = null, externalIds: List<UUID> = emptyList(), exactParticipants: List<AbstractParty>? = null)
val constraints: Set<ConstraintInfo>
val constraintTypes: Set<Type>
val contractStateTypes: Set<Class<out ContractState>>?
fun copy(status: StateStatus = Vault.StateStatus.UNCONSUMED, contractStateTypes: Set<Class<out ContractState>>? = null, stateRefs: List<StateRef>? = null, notary: List<AbstractParty>? = null, softLockingCondition: SoftLockingCondition? = null, timeCondition: TimeCondition? = null, relevancyStatus: RelevancyStatus = Vault.RelevancyStatus.ALL, constraintTypes: Set<Type> = emptySet(), constraints: Set<ConstraintInfo> = emptySet(), participants: List<AbstractParty>? = null, externalIds: List<UUID> = emptyList()): VaultQueryCriteria
fun copy(status: StateStatus = Vault.StateStatus.UNCONSUMED, contractStateTypes: Set<Class<out ContractState>>? = null, stateRefs: List<StateRef>? = null, notary: List<AbstractParty>? = null, softLockingCondition: SoftLockingCondition? = null, timeCondition: TimeCondition? = null, relevancyStatus: RelevancyStatus = Vault.RelevancyStatus.ALL, constraintTypes: Set<Type> = emptySet(), constraints: Set<ConstraintInfo> = emptySet(), participants: List<AbstractParty>? = null): VaultQueryCriteria
fun copy(status: StateStatus = this.status, contractStateTypes: Set<Class<out ContractState>>? = this.contractStateTypes, stateRefs: List<StateRef>? = this.stateRefs, notary: List<AbstractParty>? = this.notary, softLockingCondition: SoftLockingCondition? = this.softLockingCondition, timeCondition: TimeCondition? = this.timeCondition): VaultQueryCriteria
val exactParticipants: List<AbstractParty>?
val externalIds: List<UUID>
val notary: List<AbstractParty>?
val participants: List<AbstractParty>?
val relevancyStatus: RelevancyStatus
val softLockingCondition: SoftLockingCondition?
val stateRefs: List<StateRef>?
val status: StateStatus
val timeCondition: TimeCondition?
fun visit(parser: IQueryCriteriaParser): Collection<Predicate>
fun withConstraints(constraints: Set<ConstraintInfo>): VaultQueryCriteria
fun withConstraintTypes(constraintTypes: Set<Type>): VaultQueryCriteria
fun withContractStateTypes(contractStateTypes: Set<Class<out ContractState>>): VaultQueryCriteria
fun withExactParticipants(exactParticipants: List<AbstractParty>): VaultQueryCriteria
fun withExternalIds(externalIds: List<UUID>): VaultQueryCriteria
fun withNotary(notary: List<AbstractParty>): VaultQueryCriteria
fun withParticipants(participants: List<AbstractParty>): VaultQueryCriteria
fun withRelevancyStatus(relevancyStatus: RelevancyStatus): VaultQueryCriteria
fun withSoftLockingCondition(softLockingCondition: SoftLockingCondition): VaultQueryCriteria
fun withStateRefs(stateRefs: List<StateRef>): VaultQueryCriteria
fun withStatus(status: StateStatus): VaultQueryCriteria
fun withTimeCondition(timeCondition: TimeCondition): VaultQueryCriteria
fun <O, C> resolveEnclosingObjectFromColumn(column: Column<O, C>): Class<O>
fun <O, R> resolveEnclosingObjectFromExpression(expression: CriteriaExpression<O, R>): Class<O>
@DoNotImplement interface SessionScope
data class Sort : BaseSort
sealed class SortAttribute
package net.corda.core.observable
package net.corda.core.schemas
package net.corda.core.serialization
package net.corda.core.transactions
Module Contents
@DoNotImplement abstract class BaseTransaction : NamedByHash
open class ComponentGroup
class ComponentVisibilityException : CordaException
data class ContractUpgradeFilteredTransaction : CoreTransaction
Module Contents
ContractUpgradeFilteredTransaction(visibleComponents: Map<Int, FilteredComponent>, hiddenComponents: Map<Int, SecureHash>)
ContractUpgradeFilteredTransaction(visibleComponents: Map<Int, FilteredComponent>, hiddenComponents: Map<Int, SecureHash>, digestService: DigestService)
fun copy(visibleComponents: Map<Int, FilteredComponent>, hiddenComponents: Map<Int, SecureHash>): ContractUpgradeFilteredTransaction
val digestService: DigestService
class FilteredComponent
val hiddenComponents: Map<Int, SecureHash>
val id: SecureHash
val inputs: List<StateRef>
val networkParametersHash: SecureHash?
val notary: Party
val outputs: List<TransactionState<ContractState>>
val references: List<StateRef>
val visibleComponents: Map<Int, FilteredComponent>
class ContractUpgradeLedgerTransaction : FullTransaction, TransactionWithSignatures
Module Contents
ContractUpgradeLedgerTransaction(inputs: List<StateAndRef<ContractState>>, notary: Party, legacyContractAttachment: Attachment, upgradedContractClassName: ContractClassName, upgradedContractAttachment: Attachment, id: SecureHash, privacySalt: PrivacySalt, sigs: List<TransactionSignature>, networkParameters: NetworkParameters)
operator fun component1(): List<StateAndRef<ContractState>>
operator fun component2(): Party
operator fun component3(): Attachment
operator fun component4(): ContractClassName
operator fun component5(): Attachment
operator fun component6(): SecureHash
operator fun component7(): PrivacySalt
operator fun component8(): List<TransactionSignature>
operator fun component9(): NetworkParameters
fun copy(inputs: List<StateAndRef<ContractState>> = this.inputs, notary: Party = this.notary, legacyContractAttachment: Attachment = this.legacyContractAttachment, upgradedContractClassName: ContractClassName = this.upgradedContract::class.java.name, upgradedContractAttachment: Attachment = this.upgradedContractAttachment, id: SecureHash = this.id, privacySalt: PrivacySalt = this.privacySalt, sigs: List<TransactionSignature> = this.sigs, networkParameters: NetworkParameters = this.networkParameters): ContractUpgradeLedgerTransaction
fun equals(other: Any?): Boolean
fun getKeyDescriptions(keys: Set<PublicKey>): List<String>
fun hashCode(): Int
val id: SecureHash
val inputs: List<StateAndRef<ContractState>>
val legacyContractAttachment: Attachment
val networkParameters: NetworkParameters
val notary: Party
val outputs: List<TransactionState<ContractState>>
val privacySalt: PrivacySalt
val references: List<StateAndRef<ContractState>>
val requiredSigningKeys: Set<PublicKey>
val sigs: List<TransactionSignature>
fun toString(): String
val upgradedContractAttachment: Attachment
val upgradedContractClassName: ContractClassName
data class ContractUpgradeWireTransaction : CoreTransaction
abstract class CoreTransaction : BaseTransaction
data class FilteredComponentGroup : ComponentGroup
class FilteredTransaction : TraversableTransaction
class FilteredTransactionVerificationException : CordaException
abstract class FullTransaction : BaseTransaction
class LedgerTransaction : FullTransaction
Module Contents
LedgerTransaction(inputs: List<StateAndRef<ContractState>>, outputs: List<TransactionState<ContractState>>, commands: List<CommandWithParties<CommandData>>, attachments: List<Attachment>, id: SecureHash, notary: Party?, timeWindow: TimeWindow?, privacySalt: PrivacySalt)
LedgerTransaction(inputs: List<StateAndRef<ContractState>>, outputs: List<TransactionState<ContractState>>, commands: List<CommandWithParties<CommandData>>, attachments: List<Attachment>, id: SecureHash, notary: Party?, timeWindow: TimeWindow?, privacySalt: PrivacySalt, networkParameters: NetworkParameters)
val attachments: List<Attachment>
val commands: List<CommandWithParties<CommandData>>
fun <T : CommandData> commandsOfType(clazz: Class<T>): List<Command<T>>
fun <reified T : CommandData> commandsOfType(): List<Command<T>>
operator fun component1(): List<StateAndRef<ContractState>>
operator fun component10(): List<StateAndRef<ContractState>>
operator fun component2(): List<TransactionState<ContractState>>
operator fun component3(): List<CommandWithParties<CommandData>>
operator fun component4(): List<Attachment>
operator fun component5(): SecureHash
operator fun component6(): Party?
operator fun component7(): TimeWindow?
operator fun component8(): PrivacySalt
operator fun component9(): NetworkParameters?
fun copy(inputs: List<StateAndRef<ContractState>>, outputs: List<TransactionState<ContractState>>, commands: List<CommandWithParties<CommandData>>, attachments: List<Attachment>, id: SecureHash, notary: Party?, timeWindow: TimeWindow?, privacySalt: PrivacySalt): LedgerTransaction
fun copy(inputs: List<StateAndRef<ContractState>> = this.inputs, outputs: List<TransactionState<ContractState>> = this.outputs, commands: List<CommandWithParties<CommandData>> = this.commands, attachments: List<Attachment> = this.attachments, id: SecureHash = this.id, notary: Party? = this.notary, timeWindow: TimeWindow? = this.timeWindow, privacySalt: PrivacySalt = this.privacySalt, networkParameters: NetworkParameters? = this.networkParameters): LedgerTransaction
@CordaInternal fun createForContractVerify(inputs: List<StateAndRef<ContractState>>, outputs: List<TransactionState<ContractState>>, commands: List<CommandWithParties<CommandData>>, attachments: List<Attachment>, id: SecureHash, notary: Party?, timeWindow: TimeWindow?, privacySalt: PrivacySalt, networkParameters: NetworkParameters?, references: List<StateAndRef<ContractState>>, digestService: DigestService): LedgerTransaction
val digestService: DigestService
fun equals(other: Any?): Boolean
fun <T : CommandData> filterCommands(clazz: Class<T>, predicate: Predicate<T>): List<Command<T>>
inline fun <reified T : CommandData> filterCommands(crossinline predicate: (T) -> Boolean): List<Command<T>>
fun <T : ContractState> filterInputs(clazz: Class<T>, predicate: Predicate<T>): List<T>
inline fun <reified T : ContractState> filterInputs(crossinline predicate: (T) -> Boolean): List<T>
fun <T : ContractState> filterInRefs(clazz: Class<T>, predicate: Predicate<T>): List<StateAndRef<T>>
inline fun <reified T : ContractState> filterInRefs(crossinline predicate: (T) -> Boolean): List<StateAndRef<T>>
fun <T : ContractState> filterReferenceInputRefs(clazz: Class<T>, predicate: Predicate<T>): List<StateAndRef<T>>
inline fun <reified T : ContractState> filterReferenceInputRefs(crossinline predicate: (T) -> Boolean): List<StateAndRef<T>>
fun <T : ContractState> filterReferenceInputs(clazz: Class<T>, predicate: Predicate<T>): List<T>
inline fun <reified T : ContractState> filterReferenceInputs(crossinline predicate: (T) -> Boolean): List<T>
fun <T : CommandData> findCommand(clazz: Class<T>, predicate: Predicate<T>): Command<T>
inline fun <reified T : CommandData> findCommand(crossinline predicate: (T) -> Boolean): Command<T>
fun <T : ContractState> findInput(clazz: Class<T>, predicate: Predicate<T>): T
inline fun <reified T : ContractState> findInput(crossinline predicate: (T) -> Boolean): T
fun <T : ContractState> findInRef(clazz: Class<T>, predicate: Predicate<T>): StateAndRef<T>
inline fun <reified T : ContractState> findInRef(crossinline predicate: (T) -> Boolean): StateAndRef<T>
fun <T : ContractState> findReference(clazz: Class<T>, predicate: Predicate<T>): T
inline fun <reified T : ContractState> findReference(crossinline predicate: (T) -> Boolean): T
fun <T : ContractState> findReferenceInputRef(clazz: Class<T>, predicate: Predicate<T>): StateAndRef<T>
inline fun <reified T : ContractState> findReferenceInputRef(crossinline predicate: (T) -> Boolean): StateAndRef<T>
fun getAttachment(index: Int): Attachment
fun getAttachment(id: SecureHash): Attachment
fun <T : CommandData> getCommand(index: Int): Command<T>
fun getInput(index: Int): ContractState
fun getReferenceInput(index: Int): ContractState
fun <T : ContractState, K : Any> groupStates(ofType: Class<T>, selector: (T) -> K): List<InOutGroup<T, K>>
inline fun <reified T : ContractState, K : Any> groupStates(noinline selector: (T) -> K): List<InOutGroup<T, K>>
fun hashCode(): Int
val id: SecureHash
data class InOutGroup<out T : ContractState, out K : Any>
val inputs: List<StateAndRef<ContractState>>
fun <T : ContractState> inputsOfType(clazz: Class<T>): List<T>
fun <reified T : ContractState> inputsOfType(): List<T>
val inputStates: List<ContractState>
fun <T : ContractState> inRef(index: Int): StateAndRef<T>
fun <T : ContractState> inRefsOfType(clazz: Class<T>): List<StateAndRef<T>>
fun <reified T : ContractState> inRefsOfType(): List<StateAndRef<T>>
val networkParameters: NetworkParameters?
val notary: Party?
val outputs: List<TransactionState<ContractState>>
val privacySalt: PrivacySalt
fun <T : ContractState> referenceInputRefsOfType(clazz: Class<T>): List<StateAndRef<T>>
fun <reified T : ContractState> referenceInputRefsOfType(): List<StateAndRef<T>>
fun <T : ContractState> referenceInputsOfType(clazz: Class<T>): List<T>
fun <reified T : ContractState> referenceInputsOfType(): List<T>
val references: List<StateAndRef<ContractState>>
val referenceStates: List<ContractState>
@CordaInternal fun specialise(alternateVerifier: (LedgerTransaction, SerializationContext) -> Verifier): LedgerTransaction
val timeWindow: TimeWindow?
fun toString(): String
@CordaInternal fun <T> transform(transformer: (List<ComponentGroup>, List<SerializedStateAndRef>, List<SerializedStateAndRef>) -> T): T
fun verify(): Unit
class MissingContractAttachments : FlowException
data class NetworkParametersHash
class NotaryChangeLedgerTransaction : FullTransaction, TransactionWithSignatures
data class NotaryChangeWireTransaction : CoreTransaction
data class ReferenceStateRef
data class SignedTransaction : TransactionWithSignatures
open class TransactionBuilder
Module Contents
TransactionBuilder(notary: Party? = null, lockId: UUID = defaultLockId(), inputs: MutableList<StateRef> = arrayListOf(), attachments: MutableList<AttachmentId> = arrayListOf(), outputs: MutableList<TransactionState<ContractState>> = arrayListOf(), commands: MutableList<Command<*>> = arrayListOf(), window: TimeWindow? = null, privacySalt: PrivacySalt = PrivacySalt())
TransactionBuilder(notary: Party)
TransactionBuilder(notary: Party? = null, lockId: UUID = defaultLockId(), inputs: MutableList<StateRef> = arrayListOf(), attachments: MutableList<AttachmentId> = arrayListOf(), outputs: MutableList<TransactionState<ContractState>> = arrayListOf(), commands: MutableList<Command<*>> = arrayListOf(), window: TimeWindow? = null, privacySalt: PrivacySalt = PrivacySalt(), references: MutableList<StateRef> = arrayListOf(), serviceHub: ServiceHub? = (Strand.currentStrand() as? FlowStateMachine<*>)?.serviceHub)
fun addAttachment(attachmentId: AttachmentId): TransactionBuilder
fun addCommand(arg: Command<*>): TransactionBuilder
fun addCommand(data: CommandData, vararg keys: PublicKey): TransactionBuilder
fun addCommand(data: CommandData, keys: List<PublicKey>): TransactionBuilder
open fun addInputState(stateAndRef: StateAndRef<*>): TransactionBuilder
fun addOutputState(state: TransactionState<*>): TransactionBuilder
@JvmOverloads fun addOutputState(state: ContractState, contract: ContractClassName = requireNotNullContractClassName(state), notary: Party, encumbrance: Int? = null, constraint: AttachmentConstraint = AutomaticPlaceholderConstraint): TransactionBuilder
@JvmOverloads fun addOutputState(state: ContractState, contract: ContractClassName = requireNotNullContractClassName(state), constraint: AttachmentConstraint = AutomaticPlaceholderConstraint): TransactionBuilder
fun addOutputState(state: ContractState, constraint: AttachmentConstraint): TransactionBuilder
open fun addReferenceState(referencedStateAndRef: ReferencedStateAndRef<*>): TransactionBuilder
fun attachments(): List<AttachmentId>
protected val attachments: MutableList<AttachmentId>
fun commands(): List<Command<*>>
protected val commands: MutableList<Command<*>>
fun copy(): TransactionBuilder
protected val inputs: MutableList<StateRef>
fun inputStates(): List<StateRef>
var lockId: UUID
var notary: Party?
protected val outputs: MutableList<TransactionState<ContractState>>
fun outputStates(): List<TransactionState<*>>
protected var privacySalt: PrivacySalt
protected val references: MutableList<StateRef>
fun referenceStates(): List<StateRef>
protected val serviceHub: ServiceHub?
fun setPrivacySalt(privacySalt: PrivacySalt): TransactionBuilder
fun setTimeWindow(timeWindow: TimeWindow): TransactionBuilder
fun setTimeWindow(time: Instant, timeTolerance: Duration): TransactionBuilder
fun toLedgerTransaction(services: ServiceHub): LedgerTransaction
fun toSignedTransaction(keyManagementService: KeyManagementService, publicKey: PublicKey, signatureMetadata: SignatureMetadata, services: ServicesForResolution): SignedTransaction
fun toWireTransaction(services: ServicesForResolution): WireTransaction
fun toWireTransaction(services: ServicesForResolution, schemeId: Int): WireTransaction
fun toWireTransaction(services: ServicesForResolution, schemeId: Int, properties: Map<Any, Any>): WireTransaction
fun verify(services: ServiceHub): Unit
protected var window: TimeWindow?
fun withItems(vararg items: Any): TransactionBuilder
@DoNotImplement interface TransactionWithSignatures : NamedByHash
abstract class TraversableTransaction : CoreTransaction
class WireTransaction : TraversableTransaction
Module Contents
WireTransaction(componentGroups: List<ComponentGroup>)
WireTransaction(componentGroups: List<ComponentGroup>, privacySalt: PrivacySalt = PrivacySalt())
WireTransaction(inputs: List<StateRef>, attachments: List<SecureHash>, outputs: List<TransactionState<ContractState>>, commands: List<Command<*>>, notary: Party?, timeWindow: TimeWindow?, privacySalt: PrivacySalt = PrivacySalt())
WireTransaction(componentGroups: List<ComponentGroup>, privacySalt: PrivacySalt, digestService: DigestService)
fun buildFilteredTransaction(filtering: Predicate<Any>): FilteredTransaction
fun checkSignature(sig: TransactionSignature): Unit
@CordaInternal fun createComponentGroups(inputs: List<StateRef>, outputs: List<TransactionState<ContractState>>, commands: List<Command<*>>, attachments: List<SecureHash>, notary: Party?, timeWindow: TimeWindow?): List<ComponentGroup>
fun equals(other: Any?): Boolean
fun hashCode(): Int
val id: SecureHash
val merkleTree: MerkleTree
val privacySalt: PrivacySalt
val requiredSigningKeys: Set<PublicKey>
@CordaInternal fun resolveStateRefBinaryComponent(stateRef: StateRef, services: ServicesForResolution): SerializedBytes<TransactionState<ContractState>>?
fun toLedgerTransaction(services: ServicesForResolution): LedgerTransaction
fun toLedgerTransaction(resolveIdentity: (PublicKey) -> Party?, resolveAttachment: (SecureHash) -> Attachment?, resolveStateRef: (StateRef) -> TransactionState<*>?, resolveContractAttachment: (TransactionState<ContractState>) -> AttachmentId?): LedgerTransaction
fun toString(): String
package net.corda.core.utilities
package net.corda.finance
package net.corda.finance.contracts
Module Contents
enum class AccrualAdjustment
interface BilateralNettableState<N : BilateralNettableState<N>>
open class BusinessCalendar
Module Contents
BusinessCalendar(holidayDates: SortedSet<LocalDate>)
open fun applyRollConvention(testDate: LocalDate, dateRollConvention: DateRollConvention): LocalDate
@JvmStatic fun calculateDaysBetween(startDate: LocalDate, endDate: LocalDate, dcbYear: DayCountBasisYear, dcbDay: DayCountBasisDay): Int
@JvmStatic fun createGenericSchedule(startDate: LocalDate, period: Frequency, calendar: BusinessCalendar = EMPTY, dateRollConvention: DateRollConvention = DateRollConvention.Following, noOfAdditionalPeriods: Int = Integer.MAX_VALUE, endDate: LocalDate? = null, periodOffset: Int? = null): List<LocalDate>
val EMPTY: BusinessCalendar
open fun equals(other: Any?): Boolean
@JvmStatic fun getOffsetDate(startDate: LocalDate, period: Frequency, steps: Int = 1): LocalDate
open fun hashCode(): Int
val holidayDates: SortedSet<LocalDate>
open fun isWorkingDay(date: LocalDate): Boolean
fun moveBusinessDays(date: LocalDate, direction: DateRollDirection, i: Int): LocalDate
@JvmStatic fun parseDateFromString(it: String): LocalDate
operator fun plus(other: BusinessCalendar): BusinessCalendar
open fun toString(): String
class CommercialPaper : Contract
data class Commodity : TokenizableAssetInfo
const val CP_PROGRAM_ID: String
enum class DateRollConvention
enum class DateRollDirection
enum class DayCountBasisDay
enum class DayCountBasisYear
interface DealState : LinearState
data class Expression
data class Fix : CommandData
interface FixableDealState : DealState
data class FixOf
enum class Frequency
interface MultilateralNettableState<out T : Any>
interface NetCommand : CommandData
interface NettableState<N : BilateralNettableState<N>, out T : Any> : BilateralNettableState<N>, MultilateralNettableState<T>
enum class NetType
enum class PaymentRule
data class Tenor
package net.corda.finance.contracts.asset
Module Contents
infix fun <T : Any> State<T>.at(dueBefore: Instant): State<T>
infix fun <T : Any> State<T>.between(parties: Pair<AbstractParty, AbstractParty>): State<T>
data class BilateralNetState<P : Any> : NetState<P>
class Cash : OnLedgerAsset<Currency, Commands, State>
Module Contents
Cash()
interface Commands : CommandData
fun deriveState(txState: TransactionState<State>, amount: Amount<Issued<Currency>>, owner: AbstractParty): TransactionState<State>
fun extractCommands(commands: Collection<CommandWithParties<CommandData>>): List<CommandWithParties<Commands>>
fun generateExitCommand(amount: Amount<Issued<Currency>>): Exit
fun generateIssue(tx: TransactionBuilder, tokenDef: Issued<Currency>, pennies: Long, owner: AbstractParty, notary: Party): Set<PublicKey>
fun generateIssue(tx: TransactionBuilder, amount: Amount<Issued<Currency>>, owner: AbstractParty, notary: Party): Set<PublicKey>
fun generateMoveCommand(): Move
const val PROGRAM_ID: ContractClassName
data class State : FungibleAsset<Currency>, QueryableState
fun verify(tx: LedgerTransaction): Unit
val Amount<Currency>.CASH: State
fun <P : Any> extractAmountsDue(: Terms<P>, : Iterable<State<P>>): Map<Pair<AbstractParty, AbstractParty>, Amount<Terms<P>>>
infix fun <T : Any> State<T>.issued by(party: AbstractParty): State<T>
fun <T : Any> State<T>.issuedBy(party: AnonymousParty): State<T>
data class MultilateralNetState<P : Any> : NetState<P>
fun <P : AbstractParty, T : Any> netAmountsDue(balances: Map<Pair<P, P>, Amount<T>>): Map<Pair<P, P>, Amount<T>>
interface NetState<P : Any>
class Obligation<P : Any> : Contract
abstract class OnLedgerAsset<T : Any, out C : CommandData, S : FungibleAsset<T>> : Contract
Module Contents
OnLedgerAsset()
abstract fun deriveState(txState: TransactionState<S>, amount: Amount<Issued<T>>, owner: AbstractParty): TransactionState<S>
abstract fun extractCommands(commands: Collection<CommandWithParties<CommandData>>): Collection<CommandWithParties<C>>
fun generateExit(tx: TransactionBuilder, amountIssued: Amount<Issued<T>>, assetStates: List<StateAndRef<S>>): Set<PublicKey>
fun generateExit(tx: TransactionBuilder, amountIssued: Amount<Issued<T>>, assetStates: List<StateAndRef<S>>, payChangeTo: AbstractParty): Set<PublicKey>
@JvmStatic fun <S : FungibleAsset<T>, T : Any> generateExit(tx: TransactionBuilder, amountIssued: Amount<Issued<T>>, assetStates: List<StateAndRef<S>>, deriveState: (TransactionState<S>, Amount<Issued<T>>, AbstractParty) -> TransactionState<S>, generateMoveCommand: () -> CommandData, generateExitCommand: (Amount<Issued<T>>) -> CommandData): Set<PublicKey>
@JvmStatic fun <S : FungibleAsset<T>, T : Any> generateExit(tx: TransactionBuilder, amountIssued: Amount<Issued<T>>, assetStates: List<StateAndRef<S>>, payChangeTo: AbstractParty, deriveState: (TransactionState<S>, Amount<Issued<T>>, AbstractParty) -> TransactionState<S>, generateMoveCommand: () -> CommandData, generateExitCommand: (Amount<Issued<T>>) -> CommandData): Set<PublicKey>
abstract fun generateExitCommand(amount: Amount<Issued<T>>): CommandData
@JvmStatic fun <S : FungibleAsset<T>, T : Any> generateIssue(tx: TransactionBuilder, transactionState: TransactionState<S>, issueCommand: CommandData): Set<PublicKey>
abstract fun generateMoveCommand(): MoveCommand
@JvmStatic fun <S : FungibleAsset<T>, T : Any> generateSpend(tx: TransactionBuilder, amount: Amount<T>, to: AbstractParty, acceptableStates: List<StateAndRef<S>>, payChangeTo: AbstractParty, deriveState: (TransactionState<S>, Amount<Issued<T>>, AbstractParty) -> TransactionState<S>, generateMoveCommand: () -> CommandData): Pair<TransactionBuilder, List<PublicKey>>
@JvmStatic fun <S : FungibleAsset<T>, T : Any> generateSpend(tx: TransactionBuilder, payments: List<PartyAndAmount<T>>, acceptableStates: List<StateAndRef<S>>, payChangeTo: AbstractParty, deriveState: (TransactionState<S>, Amount<Issued<T>>, AbstractParty) -> TransactionState<S>, generateMoveCommand: () -> CommandData): Pair<TransactionBuilder, List<PublicKey>>
infix fun <T : Any> State<T>.owned by(owner: AbstractParty): State<T>
fun <T : Any> State<T>.ownedBy(owner: AbstractParty): State<T>
data class PartyAndAmount<T : Any>
val Amount<Issued<Currency>>.STATE: State
fun <P : AbstractParty, T : Any> sumAmountsDue(balances: Map<Pair<P, P>, Amount<T>>): Map<P, Long>
package net.corda.finance.contracts.utils
package net.corda.finance.flows
Module Contents
abstract class AbstractCashFlow<out T> : FlowLogic<T>
class CashException : FlowException
@InitiatingFlow @StartableByRPC class CashExitFlow : AbstractCashFlow<Result>
@InitiatedBy(NormalClass(value=net/corda/finance/flows/CashExitFlow)) class CashExitResponderFlow : FlowLogic<Unit>
@StartableByRPC class CashIssueAndPaymentFlow : AbstractCashFlow<Result>
@StartableByRPC class CashIssueFlow : AbstractCashFlow<Result>
@StartableByRPC @InitiatingFlow open class CashPaymentFlow : AbstractCashFlow<Result>
Module Contents
CashPaymentFlow(amount: Amount<Currency>, recipient: Party)
CashPaymentFlow(amount: Amount<Currency>, recipient: Party, anonymous: Boolean)
CashPaymentFlow(amount: Amount<Currency>, recipient: Party, anonymous: Boolean, notary: Party)
CashPaymentFlow(request: PaymentRequest)
CashPaymentFlow(amount: Amount<Currency>, recipient: Party, anonymous: Boolean, progressTracker: ProgressTracker, issuerConstraint: Set<Party> = emptySet(), notary: Party? = null)
val amount: Amount<Currency>
val anonymous: Boolean
@Suspendable open fun call(): Result
val issuerConstraint: Set<Party>
val notary: Party?
class PaymentRequest : AbstractRequest
val recipient: Party
@InitiatedBy(NormalClass(value=net/corda/finance/flows/CashPaymentFlow)) class CashPaymentReceiverFlow : FlowLogic<Unit>
object TwoPartyDealFlow
object TwoPartyTradeFlow
package net.corda.finance.schemas
package net.corda.finance.test
package net.corda.finance.workflows
package net.corda.finance.workflows.asset
Module Contents
object CashUtils
Module Contents
@JvmStatic @Suspendable fun generateSpend(services: ServiceHub, tx: TransactionBuilder, amount: Amount<Currency>, to: AbstractParty, onlyFromParties: Set<AbstractParty> = emptySet()): Pair<TransactionBuilder, List<PublicKey>>
@JvmStatic @JvmOverloads @Suspendable fun generateSpend(services: ServiceHub, tx: TransactionBuilder, amount: Amount<Currency>, ourIdentity: PartyAndCertificate, to: AbstractParty, onlyFromParties: Set<AbstractParty> = emptySet(), anonymous: Boolean = true): Pair<TransactionBuilder, List<PublicKey>>
@JvmStatic @Suspendable fun generateSpend(services: ServiceHub, tx: TransactionBuilder, payments: List<PartyAndAmount<Currency>>, onlyFromParties: Set<AbstractParty> = emptySet()): Pair<TransactionBuilder, List<PublicKey>>
@JvmStatic @JvmOverloads @Suspendable fun generateSpend(services: ServiceHub, tx: TransactionBuilder, payments: List<PartyAndAmount<Currency>>, ourIdentity: PartyAndCertificate, onlyFromParties: Set<AbstractParty> = emptySet(), anonymous: Boolean = true): Pair<TransactionBuilder, List<PublicKey>>
object ObligationUtils
Module Contents
@JvmStatic fun generateCashIssue(tx: TransactionBuilder, obligor: AbstractParty, acceptableContract: SecureHash, amount: Amount<Issued<Currency>>, dueBefore: Instant, beneficiary: AbstractParty, notary: Party): Unit
@JvmStatic fun <P : Any> generateCloseOutNetting(tx: TransactionBuilder, signer: AbstractParty, vararg inputs: StateAndRef<State<P>>): Unit
@JvmStatic fun <P : Any> generateExit(tx: TransactionBuilder, amountIssued: Amount<Issued<Terms<P>>>, assetStates: List<StateAndRef<State<P>>>): Set<PublicKey>
fun <P : Any> generateIssue(tx: TransactionBuilder, obligor: AbstractParty, issuanceDef: Terms<P>, pennies: Long, beneficiary: AbstractParty, notary: Party): Set<PublicKey>
@JvmStatic fun <P : Any> generatePaymentNetting(tx: TransactionBuilder, issued: Issued<Terms<P>>, notary: Party, vararg inputs: StateAndRef<State<P>>): Unit
@JvmStatic fun <P : Any> generateSetLifecycle(tx: TransactionBuilder, statesAndRefs: List<StateAndRef<State<P>>>, lifecycle: Lifecycle, notary: Party): Unit
@JvmStatic fun <P : Any> generateSettle(tx: TransactionBuilder, statesAndRefs: Iterable<StateAndRef<State<P>>>, assetStatesAndRefs: Iterable<StateAndRef<FungibleAsset<P>>>, moveCommand: MoveCommand, notary: Party): Unit
package net.corda.finance.workflows.asset.selection
Module Contents
abstract class AbstractCashSelection
Module Contents
AbstractCashSelection(maxRetries: Int = 8, retrySleep: Int = 100, retryCap: Int = 2000)
protected abstract fun executeQuery(connection: Connection, amount: Amount<Currency>, lockId: UUID, notary: Party?, onlyFromIssuerParties: Set<AbstractParty>, withIssuerRefs: Set<OpaqueBytes>, withResultSet: (ResultSet) -> Boolean): Boolean
fun getInstance(metadata: () -> DatabaseMetaData): AbstractCashSelection
val instance: AtomicReference<AbstractCashSelection>
protected abstract fun isCompatible(metadata: DatabaseMetaData): Boolean
abstract fun toString(): String
@Suspendable fun unconsumedCashStatesForSpending(services: ServiceHub, amount: Amount<Currency>, onlyFromIssuerParties: Set<AbstractParty> = emptySet(), notary: Party? = null, lockId: UUID, withIssuerRefs: Set<OpaqueBytes> = emptySet()): List<StateAndRef<State>>
class CashSelectionH2Impl : AbstractCashSelection
class CashSelectionPostgreSQLImpl : AbstractCashSelection
class CashSelectionSQLServerImpl : AbstractCashSelection
package net.corda.finance.workflows.utils
package net.corda.testing.driver
Module Contents
fun <A> driver(defaultParameters: DriverParameters = DriverParameters(), dsl: DriverDSL.() -> A): A
@DoNotImplement interface DriverDSL
Module Contents
abstract fun baseDirectory(nodeName: CordaX500Name): Path
open val defaultNotaryHandle: NotaryHandle
open val defaultNotaryIdentity: Party
open val defaultNotaryNode: CordaFuture<NodeHandle>
open fun nextPort(): Int
abstract val notaryHandles: List<NotaryHandle>
open fun startNode(): CordaFuture<NodeHandle>
abstract fun startNode(parameters: NodeParameters): CordaFuture<NodeHandle>
open fun startNode(defaultParameters: NodeParameters = NodeParameters(), providedName: CordaX500Name? = defaultParameters.providedName, rpcUsers: List<User> = defaultParameters.rpcUsers, verifierType: VerifierType = defaultParameters.verifierType, customOverrides: Map<String, Any?> = defaultParameters.customOverrides, startInSameProcess: Boolean? = defaultParameters.startInSameProcess, maximumHeapSize: String = defaultParameters.maximumHeapSize, logLevelOverride: String? = defaultParameters.logLevelOverride): CordaFuture<NodeHandle>
open fun startNode(defaultParameters: NodeParameters = NodeParameters(), providedName: CordaX500Name? = defaultParameters.providedName, rpcUsers: List<User> = defaultParameters.rpcUsers, verifierType: VerifierType = defaultParameters.verifierType, customOverrides: Map<String, Any?> = defaultParameters.customOverrides, startInSameProcess: Boolean? = defaultParameters.startInSameProcess, maximumHeapSize: String = defaultParameters.maximumHeapSize): CordaFuture<NodeHandle>
open fun startWebserver(handle: NodeHandle): CordaFuture<WebserverHandle>
abstract fun startWebserver(handle: NodeHandle, maximumHeapSize: String): CordaFuture<WebserverHandle>
data class DriverParameters
Module Contents
DriverParameters(cordappsForAllNodes: Collection<TestCordapp>)
DriverParameters(isDebug: Boolean = false, driverDirectory: Path = Paths.get("build") / "node-driver" / getTimestampAsDirectoryName(), portAllocation: PortAllocation = incrementalPortAllocation(), debugPortAllocation: PortAllocation = incrementalPortAllocation(), systemProperties: Map<String, String> = emptyMap(), useTestClock: Boolean = false, startNodesInProcess: Boolean = false, waitForAllNodesToFinish: Boolean = false, notarySpecs: List<NotarySpec> = listOf(NotarySpec(DUMMY_NOTARY_NAME)), : List<String> = emptyList(), jmxPolicy: JmxPolicy = JmxPolicy(), networkParameters: NetworkParameters = testNetworkParameters(notaries = emptyList()), notaryCustomOverrides: Map<String, Any?> = emptyMap(), inMemoryDB: Boolean = true, cordappsForAllNodes: Collection<TestCordapp>? = null)
DriverParameters(isDebug: Boolean = false, driverDirectory: Path = Paths.get("build") / "node-driver" / getTimestampAsDirectoryName(), portAllocation: PortAllocation = incrementalPortAllocation(), debugPortAllocation: PortAllocation = incrementalPortAllocation(), systemProperties: Map<String, String> = emptyMap(), useTestClock: Boolean = false, startNodesInProcess: Boolean = false, waitForAllNodesToFinish: Boolean = false, notarySpecs: List<NotarySpec> = listOf(NotarySpec(DUMMY_NOTARY_NAME)), : List<String> = emptyList(), jmxPolicy: JmxPolicy = JmxPolicy(), networkParameters: NetworkParameters = testNetworkParameters(notaries = emptyList()), notaryCustomOverrides: Map<String, Any?> = emptyMap(), inMemoryDB: Boolean = true)
DriverParameters(isDebug: Boolean, driverDirectory: Path, portAllocation: PortAllocation, debugPortAllocation: PortAllocation, systemProperties: Map<String, String>, useTestClock: Boolean, startNodesInProcess: Boolean, waitForAllNodesToFinish: Boolean, notarySpecs: List<NotarySpec>, : List<String>, jmxPolicy: JmxPolicy, networkParameters: NetworkParameters)
DriverParameters(isDebug: Boolean = false, driverDirectory: Path = Paths.get("build") / "node-driver" / getTimestampAsDirectoryName(), portAllocation: PortAllocation = incrementalPortAllocation(), debugPortAllocation: PortAllocation = incrementalPortAllocation(), systemProperties: Map<String, String> = emptyMap(), useTestClock: Boolean = false, startNodesInProcess: Boolean = false, waitForAllNodesToFinish: Boolean = false, notarySpecs: List<NotarySpec> = listOf(NotarySpec(DUMMY_NOTARY_NAME)), : List<String> = emptyList(), jmxPolicy: JmxPolicy = JmxPolicy(), networkParameters: NetworkParameters = testNetworkParameters(notaries = emptyList()), notaryCustomOverrides: Map<String, Any?> = emptyMap(), inMemoryDB: Boolean = false, cordappsForAllNodes: Collection<TestCordapp>? = null, environmentVariables: Map<String, String> = emptyMap(), allowHibernateToManageAppSchema: Boolean = true)
DriverParameters(isDebug: Boolean, driverDirectory: Path, portAllocation: PortAllocation, debugPortAllocation: PortAllocation, systemProperties: Map<String, String>, useTestClock: Boolean, startNodesInProcess: Boolean, waitForAllNodesToFinish: Boolean, notarySpecs: List<NotarySpec>, : List<String>, jmxPolicy: JmxPolicy, networkParameters: NetworkParameters, inMemoryDB: Boolean)
DriverParameters(isDebug: Boolean, driverDirectory: Path, portAllocation: PortAllocation, debugPortAllocation: PortAllocation, systemProperties: Map<String, String>, useTestClock: Boolean, startNodesInProcess: Boolean, waitForAllNodesToFinish: Boolean, notarySpecs: List<NotarySpec>, : List<String>, jmxPolicy: JmxPolicy, networkParameters: NetworkParameters, notaryCustomOverrides: Map<String, Any?>, inMemoryDB: Boolean, cordappsForAllNodes: Collection<TestCordapp>?, environmentVariables: Map<String, String>, allowHibernateToManageAppSchema: Boolean, premigrateH2Database: Boolean = true)
DriverParameters(isDebug: Boolean = false, driverDirectory: Path = Paths.get("build") / "node-driver" / getTimestampAsDirectoryName(), portAllocation: PortAllocation = incrementalPortAllocation(), debugPortAllocation: PortAllocation = incrementalPortAllocation(), systemProperties: Map<String, String> = emptyMap(), useTestClock: Boolean = false, startNodesInProcess: Boolean = false, waitForAllNodesToFinish: Boolean = false, notarySpecs: List<NotarySpec> = listOf(NotarySpec(DUMMY_NOTARY_NAME)), : List<String> = emptyList(), jmxPolicy: JmxPolicy = JmxPolicy(), networkParameters: NetworkParameters = testNetworkParameters(notaries = emptyList()), notaryCustomOverrides: Map<String, Any?> = emptyMap(), inMemoryDB: Boolean = false, cordappsForAllNodes: Collection<TestCordapp>? = null, environmentVariables: Map<String, String> = emptyMap(), allowHibernateToManageAppSchema: Boolean = true, premigrateH2Database: Boolean = true, notaryHandleTimeout: Duration = Duration.ofMinutes(1))
val allowHibernateToManageAppSchema: Boolean
fun copy(isDebug: Boolean, driverDirectory: Path, portAllocation: PortAllocation, debugPortAllocation: PortAllocation, systemProperties: Map<String, String>, useTestClock: Boolean, startNodesInProcess: Boolean, waitForAllNodesToFinish: Boolean, notarySpecs: List<NotarySpec>, : List<String>, jmxPolicy: JmxPolicy, networkParameters: NetworkParameters): DriverParameters
fun copy(isDebug: Boolean, driverDirectory: Path, portAllocation: PortAllocation, debugPortAllocation: PortAllocation, systemProperties: Map<String, String>, useTestClock: Boolean, startNodesInProcess: Boolean, waitForAllNodesToFinish: Boolean, notarySpecs: List<NotarySpec>, : List<String>, jmxPolicy: JmxPolicy, networkParameters: NetworkParameters, cordappsForAllNodes: Set<TestCordapp>?): DriverParameters
fun copy(isDebug: Boolean, driverDirectory: Path, portAllocation: PortAllocation, debugPortAllocation: PortAllocation, systemProperties: Map<String, String>, useTestClock: Boolean, startNodesInProcess: Boolean, waitForAllNodesToFinish: Boolean, notarySpecs: List<NotarySpec>, : List<String>, jmxPolicy: JmxPolicy, networkParameters: NetworkParameters, notaryCustomOverrides: Map<String, Any?>, inMemoryDB: Boolean, cordappsForAllNodes: Collection<TestCordapp>?): DriverParameters
fun copy(isDebug: Boolean, driverDirectory: Path, portAllocation: PortAllocation, debugPortAllocation: PortAllocation, systemProperties: Map<String, String>, useTestClock: Boolean, startNodesInProcess: Boolean, waitForAllNodesToFinish: Boolean, notarySpecs: List<NotarySpec>, : List<String>, jmxPolicy: JmxPolicy, networkParameters: NetworkParameters, notaryCustomOverrides: Map<String, Any?>, inMemoryDB: Boolean, cordappsForAllNodes: Collection<TestCordapp>?, environmentVariables: Map<String, String>, allowHibernateToManageAppSchema: Boolean): DriverParameters
fun copy(isDebug: Boolean, driverDirectory: Path, portAllocation: PortAllocation, debugPortAllocation: PortAllocation, systemProperties: Map<String, String>, useTestClock: Boolean, startNodesInProcess: Boolean, waitForAllNodesToFinish: Boolean, notarySpecs: List<NotarySpec>, : List<String>, jmxPolicy: JmxPolicy, networkParameters: NetworkParameters, notaryCustomOverrides: Map<String, Any?>, inMemoryDB: Boolean, cordappsForAllNodes: Collection<TestCordapp>?, environmentVariables: Map<String, String>, allowHibernateToManageAppSchema: Boolean, premigrateH2Database: Boolean): DriverParameters
val cordappsForAllNodes: Collection<TestCordapp>?
val debugPortAllocation: PortAllocation
val driverDirectory: Path
val environmentVariables: Map<String, String>
val extraCordappPackagesToScan: List<String>
val inMemoryDB: Boolean
val isDebug: Boolean
val jmxPolicy: JmxPolicy
val networkParameters: NetworkParameters
val notaryCustomOverrides: Map<String, Any?>
val notaryHandleTimeout: Duration
val notarySpecs: List<NotarySpec>
val portAllocation: PortAllocation
val premigrateH2Database: Boolean
val startNodesInProcess: Boolean
val systemProperties: Map<String, String>
val useTestClock: Boolean
val waitForAllNodesToFinish: Boolean
fun withAllowHibernateToManageAppSchema(value: Boolean): DriverParameters
fun withCordappsForAllNodes(cordappsForAllNodes: Collection<TestCordapp>?): DriverParameters
fun withDebugPortAllocation(debugPortAllocation: PortAllocation): DriverParameters
fun withDriverDirectory(driverDirectory: Path): DriverParameters
fun withEnvironmentVariables(variables: Map<String, String>): DriverParameters
fun withExtraCordappPackagesToScan(: List<String>): DriverParameters
fun withInMemoryDB(inMemoryDB: Boolean): DriverParameters
fun withIsDebug(isDebug: Boolean): DriverParameters
fun withJmxPolicy(jmxPolicy: JmxPolicy): DriverParameters
fun withNetworkParameters(networkParameters: NetworkParameters): DriverParameters
fun withNotaryCustomOverrides(notaryCustomOverrides: Map<String, Any?>): DriverParameters
fun withNotaryHandleTimeout(value: Duration): DriverParameters
fun withNotarySpecs(notarySpecs: List<NotarySpec>): DriverParameters
fun withPortAllocation(portAllocation: PortAllocation): DriverParameters
fun withStartNodesInProcess(startNodesInProcess: Boolean): DriverParameters
fun withSystemProperties(systemProperties: Map<String, String>): DriverParameters
fun withUseTestClock(useTestClock: Boolean): DriverParameters
fun withWaitForAllNodesToFinish(waitForAllNodesToFinish: Boolean): DriverParameters
@DoNotImplement interface InProcess : NodeHandle
data class JmxPolicy
fun NodeHandle.logFile(): File
@DoNotImplement interface NodeHandle : AutoCloseable
data class NodeParameters
Module Contents
NodeParameters()
NodeParameters(providedName: CordaX500Name?, rpcUsers: List<User>, verifierType: VerifierType, customOverrides: Map<String, Any?>, startInSameProcess: Boolean?, maximumHeapSize: String)
NodeParameters(providedName: CordaX500Name?, rpcUsers: List<User>, verifierType: VerifierType, customOverrides: Map<String, Any?>, startInSameProcess: Boolean?, maximumHeapSize: String, additionalCordapps: Collection<TestCordapp> = emptySet(), flowOverrides: Map<out Class<out FlowLogic<*>>, Class<out FlowLogic<*>>>)
NodeParameters(providedName: CordaX500Name?, rpcUsers: List<User>, verifierType: VerifierType, customOverrides: Map<String, Any?>, startInSameProcess: Boolean?, maximumHeapSize: String, additionalCordapps: Collection<TestCordapp> = emptySet(), flowOverrides: Map<out Class<out FlowLogic<*>>, Class<out FlowLogic<*>>>, logLevelOverride: String? = null)
NodeParameters(providedName: CordaX500Name?, rpcUsers: List<User>, verifierType: VerifierType, customOverrides: Map<String, Any?>, startInSameProcess: Boolean?, maximumHeapSize: String, additionalCordapps: Collection<TestCordapp> = emptySet(), flowOverrides: Map<out Class<out FlowLogic<*>>, Class<out FlowLogic<*>>>, logLevelOverride: String? = null, rpcAddress: NetworkHostAndPort? = null)
NodeParameters(providedName: CordaX500Name? = null, rpcUsers: List<User> = emptyList(), verifierType: VerifierType = VerifierType.InMemory, customOverrides: Map<String, Any?> = emptyMap(), startInSameProcess: Boolean? = null, maximumHeapSize: String = System.getenv("DRIVER_NODE_MEMORY") ?: "512m", additionalCordapps: Collection<TestCordapp> = emptySet(), flowOverrides: Map<out Class<out FlowLogic<*>>, Class<out FlowLogic<*>>> = emptyMap(), logLevelOverride: String? = null, rpcAddress: NetworkHostAndPort? = null, systemProperties: Map<String, String> = emptyMap())
val additionalCordapps: Collection<TestCordapp>
fun copy(providedName: CordaX500Name?, rpcUsers: List<User>, verifierType: VerifierType, customOverrides: Map<String, Any?>, startInSameProcess: Boolean?, maximumHeapSize: String): NodeParameters
fun copy(providedName: CordaX500Name?, rpcUsers: List<User>, verifierType: VerifierType, customOverrides: Map<String, Any?>, startInSameProcess: Boolean?, maximumHeapSize: String, additionalCordapps: Collection<TestCordapp> = emptySet(), flowOverrides: Map<out Class<out FlowLogic<*>>, Class<out FlowLogic<*>>>): NodeParameters
fun copy(providedName: CordaX500Name?, rpcUsers: List<User>, verifierType: VerifierType, customOverrides: Map<String, Any?>, startInSameProcess: Boolean?, maximumHeapSize: String, additionalCordapps: Collection<TestCordapp> = emptySet(), flowOverrides: Map<out Class<out FlowLogic<*>>, Class<out FlowLogic<*>>>, logLevelOverride: String? = null): NodeParameters
fun copy(providedName: CordaX500Name?, rpcUsers: List<User>, verifierType: VerifierType, customOverrides: Map<String, Any?>, startInSameProcess: Boolean?, maximumHeapSize: String, additionalCordapps: Collection<TestCordapp> = emptySet(), flowOverrides: Map<out Class<out FlowLogic<*>>, Class<out FlowLogic<*>>>, logLevelOverride: String? = null, rpcAddress: NetworkHostAndPort? = null): NodeParameters
val customOverrides: Map<String, Any?>
val flowOverrides: Map<out Class<out FlowLogic<*>>, Class<out FlowLogic<*>>>
val logLevelOverride: String?
val maximumHeapSize: String
val providedName: CordaX500Name?
val rpcAddress: NetworkHostAndPort?
val rpcUsers: List<User>
val startInSameProcess: Boolean?
val systemProperties: Map<String, String>
val verifierType: VerifierType
fun withAdditionalCordapps(additionalCordapps: Set<TestCordapp>): NodeParameters
fun withCustomOverrides(customOverrides: Map<String, Any?>): NodeParameters
fun withFlowOverrides(flowOverrides: Map<Class<out FlowLogic<*>>, Class<out FlowLogic<*>>>): NodeParameters
fun withLogLevelOverride(logLevelOverride: String?): NodeParameters
fun withMaximumHeapSize(maximumHeapSize: String): NodeParameters
fun withProvidedName(providedName: CordaX500Name?): NodeParameters
fun withRpcUsers(rpcUsers: List<User>): NodeParameters
fun withStartInSameProcess(startInSameProcess: Boolean?): NodeParameters
fun withVerifierType(verifierType: VerifierType): NodeParameters
data class NotaryHandle
@DoNotImplement interface OutOfProcess : NodeHandle
@DoNotImplement abstract class PortAllocation
enum class VerifierType
data class WebserverHandle
package net.corda.testing.dsl
Module Contents
class AttachmentResolutionException : FlowException
class DoubleSpentInputs : FlowException
class DuplicateOutputLabel : FlowException
@DoNotImplement sealed class EnforceVerifyOrFail
class LedgerDSL<out T : TransactionDSLInterpreter, out L : LedgerDSLInterpreter<T>> : LedgerDSLInterpreter<TransactionDSLInterpreter>
@DoNotImplement interface LedgerDSLInterpreter<out T : TransactionDSLInterpreter> : Verifies, OutputStateLookup
@DoNotImplement interface OutputStateLookup
data class TestLedgerDSLInterpreter : LedgerDSLInterpreter<TestTransactionDSLInterpreter>
data class TestTransactionDSLInterpreter : TransactionDSLInterpreter, OutputStateLookup
Module Contents
TestTransactionDSLInterpreter(ledgerInterpreter: TestLedgerDSLInterpreter, transactionBuilder: TransactionBuilder)
fun _attachment(contractClassName: ContractClassName): Unit
fun _attachment(contractClassName: ContractClassName, attachmentId: AttachmentId, signers: List<PublicKey>): Unit
fun _attachment(contractClassName: ContractClassName, attachmentId: AttachmentId, signers: List<PublicKey>, jarManifestAttributes: Map<String, String>): Unit
fun _tweak(dsl: TransactionDSLInterpreter.() -> EnforceVerifyOrFail): EnforceVerifyOrFail
fun attachment(attachmentId: SecureHash): Unit
fun command(signers: List<PublicKey>, commandData: CommandData): Unit
fun input(stateRef: StateRef): Unit
val ledgerInterpreter: TestLedgerDSLInterpreter
fun output(contractClassName: ContractClassName, label: String?, notary: Party, encumbrance: Int?, attachmentConstraint: AttachmentConstraint, contractState: ContractState): Unit
fun reference(stateRef: StateRef): Unit
val services: ServicesForResolution
fun timeWindow(data: TimeWindow): Unit
val transactionBuilder: TransactionBuilder
fun verifies(): EnforceVerifyOrFail
class TransactionDSL<out T : TransactionDSLInterpreter> : TransactionDSLInterpreter
Module Contents
TransactionDSL(interpreter: T, notary: Party)
fun attachment(contractClassName: ContractClassName): Unit
fun attachment(contractClassName: ContractClassName, attachmentId: AttachmentId, signers: List<PublicKey>, jarManifestAttributes: Map<String, String> = emptyMap()): Unit
fun attachment(contractClassName: ContractClassName, attachmentId: AttachmentId): Unit
fun attachments(vararg contractClassNames: ContractClassName): Unit
fun command(signer: PublicKey, commandData: CommandData): Unit
fun input(stateLabel: String): Unit
fun input(contractClassName: ContractClassName, stateLabel: String): Unit
fun input(contractClassName: ContractClassName, state: ContractState): Unit
fun output(contractClassName: ContractClassName, label: String, notary: Party, contractState: ContractState): Unit
fun output(contractClassName: ContractClassName, label: String, encumbrance: Int, contractState: ContractState): Unit
fun output(contractClassName: ContractClassName, label: String, contractState: ContractState): Unit
fun output(contractClassName: ContractClassName, notary: Party, contractState: ContractState): Unit
fun output(contractClassName: ContractClassName, encumbrance: Int, contractState: ContractState): Unit
fun output(contractClassName: ContractClassName, contractState: ContractState): Unit
fun reference(stateLabel: String): Unit
fun reference(contractClassName: ContractClassName, state: ContractState): Unit
@JvmOverloads fun timeWindow(time: Instant, tolerance: Duration = 30.seconds): Unit
fun tweak(dsl: TransactionDSL<TransactionDSLInterpreter>.() -> EnforceVerifyOrFail): EnforceVerifyOrFail
@DoNotImplement interface TransactionDSLInterpreter : Verifies, OutputStateLookup
Module Contents
abstract fun _attachment(contractClassName: ContractClassName): Unit
abstract fun _attachment(contractClassName: ContractClassName, attachmentId: AttachmentId, signers: List<PublicKey>): Unit
abstract fun _attachment(contractClassName: ContractClassName, attachmentId: AttachmentId, signers: List<PublicKey>, jarManifestAttributes: Map<String, String>): Unit
abstract fun _tweak(dsl: TransactionDSLInterpreter.() -> EnforceVerifyOrFail): EnforceVerifyOrFail
abstract fun attachment(attachmentId: SecureHash): Unit
abstract fun command(signers: List<PublicKey>, commandData: CommandData): Unit
abstract fun input(stateRef: StateRef): Unit
abstract val ledgerInterpreter: LedgerDSLInterpreter<TransactionDSLInterpreter>
abstract fun output(contractClassName: ContractClassName, label: String?, notary: Party, encumbrance: Int?, attachmentConstraint: AttachmentConstraint, contractState: ContractState): Unit
abstract fun reference(stateRef: StateRef): Unit
abstract fun timeWindow(data: TimeWindow): Unit
@DoNotImplement interface Verifies
package net.corda.testing.flows
Module Contents
infix fun <T : Class<out Any>> T.from(session: FlowSession): Pair<FlowSession, T>
kotlin.collections.Map
kotlin.reflect.KClass
net.corda.testing.node.internal.TestStartedNode
@Suspendable fun FlowLogic<*>.receiveAll(session: Pair<FlowSession, Class<out Any>>, vararg sessions: Pair<FlowSession, Class<out Any>>): Map<FlowSession, UntrustworthyData<Any>>
@Suspendable fun <R : Any> FlowLogic<*>.receiveAll(receiveType: Class<R>, session: FlowSession, vararg sessions: FlowSession): List<UntrustworthyData<R>>
@Suspendable fun <reified R : Any> FlowLogic<*>.receiveAll(session: FlowSession, vararg sessions: FlowSession): List<UntrustworthyData<R>>
fun waitForAllFlowsToComplete(nodeHandle: NodeHandle, maxIterations: Int = 60, iterationDelay: Long = 500): Unit
package net.corda.testing.http
package net.corda.testing.node
Module Contents
@DoNotImplement abstract class ClusterSpec
fun <T : SerializeAsToken> createMockCordaService(serviceHub: MockServices, serviceConstructor: (AppServiceHub) -> T): T
object DatabaseSnapshot
@ThreadSafe class InMemoryMessagingNetwork : SingletonSerializeAsToken
@JvmOverloads fun ServiceHub.ledger(notary: Party = TestIdentity.fresh("ledger notary").party, script: LedgerDSL<TestTransactionDSLInterpreter, TestLedgerDSLInterpreter>.() -> Unit): LedgerDSL<TestTransactionDSLInterpreter, TestLedgerDSLInterpreter>
fun makeTestIdentityService(vararg identities: PartyAndCertificate): IdentityService
class MockNetFlowTimeOut
class MockNetNotaryConfig
open class MockNetwork
Module Contents
MockNetwork(cordappPackages: List<String>, parameters: MockNetworkParameters = MockNetworkParameters())
MockNetwork(parameters: MockNetworkParameters)
MockNetwork(cordappPackages: List<String>, defaultParameters: MockNetworkParameters = MockNetworkParameters(), networkSendManuallyPumped: Boolean = defaultParameters.networkSendManuallyPumped, threadPerNode: Boolean = defaultParameters.threadPerNode, servicePeerAllocationStrategy: ServicePeerAllocationStrategy = defaultParameters.servicePeerAllocationStrategy, notarySpecs: List<MockNetworkNotarySpec> = defaultParameters.notarySpecs, networkParameters: NetworkParameters = defaultParameters.networkParameters)
fun baseDirectory(nodeId: Int): Path
val cordappPackages: List<String>
fun createNode(parameters: MockNodeParameters): StartedMockNode
@JvmOverloads fun createNode(legalName: CordaX500Name? = null, forcedID: Int? = null, entropyRoot: BigInteger = BigInteger.valueOf(random63BitValue()), configOverrides: MockNodeConfigOverrides? = null): StartedMockNode
fun createPartyNode(legalName: CordaX500Name? = null): StartedMockNode
fun createUnstartedNode(parameters: MockNodeParameters = MockNodeParameters()): UnstartedMockNode
@JvmOverloads fun createUnstartedNode(legalName: CordaX500Name? = null, forcedID: Int? = null, entropyRoot: BigInteger = BigInteger.valueOf(random63BitValue()), configOverrides: MockNodeConfigOverrides? = null): UnstartedMockNode
val defaultNotaryIdentity: Party
val defaultNotaryNode: StartedMockNode
val defaultParameters: MockNetworkParameters
val networkParameters: NetworkParameters
val networkSendManuallyPumped: Boolean
val nextNodeId: Int
val notaryNodes: List<StartedMockNode>
val notarySpecs: List<MockNetworkNotarySpec>
@JvmOverloads fun runNetwork(rounds: Int = -1): Unit
val servicePeerAllocationStrategy: ServicePeerAllocationStrategy
fun startNodes(): Unit
fun stopNodes(): Unit
val threadPerNode: Boolean
fun waitQuiescent(): Unit
data class MockNetworkNotarySpec
data class MockNetworkParameters
Module Contents
MockNetworkParameters(networkSendManuallyPumped: Boolean, threadPerNode: Boolean, servicePeerAllocationStrategy: ServicePeerAllocationStrategy, notarySpecs: List<MockNetworkNotarySpec>, networkParameters: NetworkParameters)
MockNetworkParameters(cordappsForAllNodes: Collection<TestCordapp>)
MockNetworkParameters(networkSendManuallyPumped: Boolean = false, threadPerNode: Boolean = false, servicePeerAllocationStrategy: ServicePeerAllocationStrategy = InMemoryMessagingNetwork.ServicePeerAllocationStrategy.Random(), notarySpecs: List<MockNetworkNotarySpec> = listOf(MockNetworkNotarySpec(DUMMY_NOTARY_NAME)), networkParameters: NetworkParameters = testNetworkParameters(), cordappsForAllNodes: Collection<TestCordapp> = emptyList())
fun copy(networkSendManuallyPumped: Boolean, threadPerNode: Boolean, servicePeerAllocationStrategy: ServicePeerAllocationStrategy, notarySpecs: List<MockNetworkNotarySpec>, networkParameters: NetworkParameters): MockNetworkParameters
val cordappsForAllNodes: Collection<TestCordapp>
val networkParameters: NetworkParameters
val networkSendManuallyPumped: Boolean
val notarySpecs: List<MockNetworkNotarySpec>
val servicePeerAllocationStrategy: ServicePeerAllocationStrategy
val threadPerNode: Boolean
fun withCordappsForAllNodes(cordappsForAllNodes: Collection<TestCordapp>): MockNetworkParameters
fun withNetworkParameters(networkParameters: NetworkParameters): MockNetworkParameters
fun withNetworkSendManuallyPumped(networkSendManuallyPumped: Boolean): MockNetworkParameters
fun withNotarySpecs(notarySpecs: List<MockNetworkNotarySpec>): MockNetworkParameters
fun withServicePeerAllocationStrategy(servicePeerAllocationStrategy: ServicePeerAllocationStrategy): MockNetworkParameters
fun withThreadPerNode(threadPerNode: Boolean): MockNetworkParameters
class MockNodeConfigOverrides
data class MockNodeParameters
Module Contents
MockNodeParameters(forcedID: Int? = null, legalName: CordaX500Name? = null, entropyRoot: BigInteger = BigInteger.valueOf(random63BitValue()), configOverrides: MockNodeConfigOverrides)
MockNodeParameters(forcedID: Int? = null, legalName: CordaX500Name? = null, entropyRoot: BigInteger = BigInteger.valueOf(random63BitValue()), configOverrides: MockNodeConfigOverrides? = null, additionalCordapps: Collection<TestCordapp> = emptyList())
val additionalCordapps: Collection<TestCordapp>
val configOverrides: MockNodeConfigOverrides?
fun copy(forcedID: Int?, legalName: CordaX500Name?, entropyRoot: BigInteger, configOverrides: MockNodeConfigOverrides): MockNodeParameters
val entropyRoot: BigInteger
val forcedID: Int?
val legalName: CordaX500Name?
fun withAdditionalCordapps(additionalCordapps: Collection<TestCordapp>): MockNodeParameters
fun withConfigOverrides(configOverrides: MockNodeConfigOverrides): MockNodeParameters
fun withEntropyRoot(entropyRoot: BigInteger): MockNodeParameters
fun withForcedID(forcedID: Int?): MockNodeParameters
fun withLegalName(legalName: CordaX500Name?): MockNodeParameters
open class MockServices : ServiceHub
Module Contents
MockServices(cordappPackages: Iterable<String>, initialIdentity: <ERROR CLASS>, identityService: IdentityService = makeTestIdentityService(), vararg moreKeys: KeyPair)
MockServices(cordappPackages: Iterable<String>, initialIdentity: <ERROR CLASS>, identityService: IdentityService, networkParameters: NetworkParameters, vararg moreKeys: KeyPair)
MockServices(cordappPackages: Iterable<String>, initialIdentity: <ERROR CLASS>, identityService: IdentityService, networkParameters: NetworkParameters, vararg moreKeys: KeyPair, keyManagementService: KeyManagementService)
MockServices(cordappPackages: Iterable<String>, initialIdentityName: CordaX500Name, identityService: IdentityService = makeTestIdentityService(), key: KeyPair, vararg moreKeys: KeyPair)
MockServices(cordappPackages: Iterable<String>, initialIdentityName: CordaX500Name, identityService: IdentityService = makeTestIdentityService())
MockServices(cordappPackages: Iterable<String>)
MockServices(initialIdentityName: CordaX500Name, identityService: IdentityService = makeTestIdentityService(), key: KeyPair, vararg moreKeys: KeyPair)
MockServices(initialIdentityName: CordaX500Name, identityService: IdentityService = makeTestIdentityService())
MockServices(cordappPackages: List<String>, initialIdentityName: CordaX500Name, identityService: IdentityService, networkParameters: NetworkParameters)
MockServices(cordappPackages: List<String>, initialIdentityName: CordaX500Name, identityService: IdentityService, networkParameters: NetworkParameters, key: KeyPair)
MockServices(firstIdentity: <ERROR CLASS>, vararg moreIdentities: <ERROR CLASS>)
MockServices(firstIdentity: <ERROR CLASS>, networkParameters: NetworkParameters, vararg moreIdentities: <ERROR CLASS>)
MockServices(cordappPackages: List<String>, firstIdentity: <ERROR CLASS>, vararg moreIdentities: <ERROR CLASS>)
MockServices(cordappPackages: List<String>, firstIdentity: <ERROR CLASS>, networkParameters: NetworkParameters, vararg moreIdentities: <ERROR CLASS>)
MockServices()
fun addMockCordapp(contractClassName: ContractClassName): Unit
val attachments: MockAttachmentStorage
open val clock: TestClock
open val contractUpgradeService: ContractUpgradeService
val cordappClassloader: ClassLoader
open val cordappProvider: CordappProvider
open fun <T : SerializeAsToken> cordaService(type: Class<T>): T
open fun <T : TelemetryComponent> cordaTelemetryComponent(type: Class<T>): T
open val diagnosticsService: DiagnosticsService
open val identityService: IdentityService
open fun jdbcSession(): Connection
open val keyManagementService: KeyManagementService
open fun loadContractAttachment(stateRef: StateRef): Attachment
open fun loadState(stateRef: StateRef): TransactionState<*>
open fun loadStates(stateRefs: Set<StateRef>): Set<StateAndRef<ContractState>>
@JvmStatic @JvmOverloads fun makeTestDatabaseAndMockServices(cordappPackages: List<String>, identityService: IdentityService, initialIdentity: <ERROR CLASS>, networkParameters: NetworkParameters = testNetworkParameters(modifiedTime = Instant.MIN), vararg moreKeys: KeyPair): Pair<CordaPersistence, MockServices>
@JvmStatic @JvmOverloads fun makeTestDatabaseAndPersistentServices(cordappPackages: List<String>, initialIdentity: <ERROR CLASS>, networkParameters: NetworkParameters = testNetworkParameters(modifiedTime = Instant.MIN), moreKeys: Set<KeyPair>, moreIdentities: Set<PartyAndCertificate>, cacheFactory: TestingNamedCacheFactory = TestingNamedCacheFactory()): Pair<CordaPersistence, MockServices>
@JvmStatic fun makeTestDataSourceProperties(nodeName: String = SecureHash.randomSHA256().toString()): Properties
open val myInfo: NodeInfo
open val networkMapCache: NetworkMapCache
open val networkParameters: NetworkParameters
open var networkParametersService: NetworkParametersService
open fun recordTransactions(statesToRecord: StatesToRecord, txs: Iterable<SignedTransaction>): Unit
@VisibleForTesting fun recordTransactions(txn: SignedTransaction, disableSignatureVerification: Boolean): Unit
@VisibleForTesting fun recordTransactions(txs: Iterable<SignedTransaction>, disableSignatureVerification: Boolean): Unit
open fun registerUnloadHandler(runOnStop: () -> Unit): Nothing
protected val servicesForResolution: ServicesForResolution
open val telemetryService: TelemetryServiceImpl
open val validatedTransactions: TransactionStorage
open val vaultService: VaultService
open fun <T> withEntityManager(block: EntityManager.() -> T): T
open fun withEntityManager(block: Consumer<EntityManager>): Unit
data class NotarySpec
Module Contents
NotarySpec(name: CordaX500Name, validating: Boolean = true, rpcUsers: List<User> = emptyList(), verifierType: VerifierType = VerifierType.InMemory, cluster: ClusterSpec? = null)
NotarySpec(name: CordaX500Name, validating: Boolean = true, rpcUsers: List<User> = emptyList(), verifierType: VerifierType = VerifierType.InMemory, cluster: ClusterSpec? = null, maximumHeapSize: String)
NotarySpec(name: CordaX500Name, validating: Boolean = true, rpcUsers: List<User> = emptyList(), verifierType: VerifierType = VerifierType.InMemory, cluster: ClusterSpec? = null, maximumHeapSize: String = "512m", startInProcess: Boolean = true)
NotarySpec(name: CordaX500Name, validating: Boolean = true, rpcUsers: List<User> = emptyList(), verifierType: VerifierType = VerifierType.InMemory, cluster: ClusterSpec? = null, startInProcess: Boolean = true)
val cluster: ClusterSpec?
fun copy(name: CordaX500Name, validating: Boolean = true, rpcUsers: List<User> = emptyList(), verifierType: VerifierType = VerifierType.InMemory, cluster: ClusterSpec? = null): NotarySpec
var maximumHeapSize: String
val name: CordaX500Name
val rpcUsers: List<User>
val startInProcess: Boolean
val validating: Boolean
val verifierType: VerifierType
class StartedMockNode
fun testActor(owningLegalIdentity: CordaX500Name = CordaX500Name("Test Company Inc.", "London", "GB")): Actor
@ThreadSafe class TestClock : MutableClock
fun testContext(owningLegalIdentity: CordaX500Name = CordaX500Name("Test Company Inc.", "London", "GB")): InvocationContext
@DoNotImplement abstract class TestCordapp
@JvmOverloads fun ServiceHub.transaction(notary: Party = TestIdentity.fresh("transaction notary").party, script: TransactionDSL<TransactionDSLInterpreter>.() -> EnforceVerifyOrFail): LedgerDSL<TestTransactionDSLInterpreter, TestLedgerDSLInterpreter>
class UnstartedMockNode
data class User
package net.corda.testing.services
Module Contents
class MockAttachmentStorage : AttachmentStorage, SingletonSerializeAsToken
Module Contents
MockAttachmentStorage()
val files: Map<SecureHash, Pair<Attachment, ByteArray>>
fun getAttachmentIdAndBytes(jar: InputStream): Pair<AttachmentId, ByteArray>
fun getLatestContractAttachments(contractClassName: String, minContractVersion: Int): List<AttachmentId>
fun hasAttachment(attachmentId: AttachmentId): Boolean
fun importAttachment(jar: InputStream): AttachmentId
fun importAttachment(jar: InputStream, uploader: String, filename: String?): AttachmentId
@JvmOverloads fun importContractAttachment(contractClassNames: List<ContractClassName>, uploader: String, jar: InputStream, attachmentId: AttachmentId? = null, signers: List<PublicKey> = emptyList()): AttachmentId
fun importContractAttachment(attachmentId: AttachmentId, contractAttachment: ContractAttachment): Unit
fun importOrGetAttachment(jar: InputStream): AttachmentId
fun openAttachment(id: SecureHash): Attachment?
fun queryAttachments(criteria: AttachmentQueryCriteria, sorting: AttachmentSort?): List<AttachmentId>