object ViewParticipantData extends HasMemoizedProtocolVersionedWithContextCompanion[ViewParticipantData, HashOps] with Serializable
- Alphabetic
- By Inheritance
- ViewParticipantData
- Serializable
- HasMemoizedProtocolVersionedWithContextCompanion
- HasProtocolVersionedWrapperCompanion
- HasSupportedProtoVersions
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- type DataByteString = ByteString
- Definition Classes
- HasProtocolVersionedWrapperCompanion
- type Deserializer = (HashOps, OriginalByteString, DataByteString) => ParsingResult[ViewParticipantData]
- case class InvalidViewParticipantData(message: String) extends RuntimeException with Product with Serializable
Indicates an attempt to create an invalid ViewParticipantData.
- type OriginalByteString = ByteString
- Definition Classes
- HasProtocolVersionedWrapperCompanion
- case class RootAction(command: LfCommand, authorizers: Set[LfPartyId], failed: Boolean) extends Product with Serializable
- type Serializer = (ViewParticipantData) => ByteString
- Definition Classes
- HasSupportedProtoVersions
- case class LegacyProtoConverter(fromInclusive: RepresentativeProtocolVersion[ValueClass], deserializer: Deserializer, serializer: Serializer) extends ProtoCodec with Product with Serializable
Used to (de)serialize classes which for legacy reasons where not wrapped in VersionedMessage Chances are this is NOT the class you want to use, use VersionedProtoConverter instead when adding serialization to a new class
Used to (de)serialize classes which for legacy reasons where not wrapped in VersionedMessage Chances are this is NOT the class you want to use, use VersionedProtoConverter instead when adding serialization to a new class
- Definition Classes
- HasSupportedProtoVersions
- sealed trait ProtoCodec extends AnyRef
Base class for (de)serializating from/to protobuf of ValueClass from a specific PV
Base class for (de)serializating from/to protobuf of ValueClass from a specific PV
- Definition Classes
- HasSupportedProtoVersions
- case class SupportedProtoVersions extends Product with Serializable
- Definition Classes
- HasSupportedProtoVersions
- case class VersionedProtoConverter(fromInclusive: RepresentativeProtocolVersion[ValueClass], deserializer: Deserializer, serializer: Serializer) extends ProtoCodec with Product with Serializable
Supported Proto version
Supported Proto version
- fromInclusive
The protocol version when this Proto version was introduced
- deserializer
Deserialization method
- serializer
Serialization method
- Definition Classes
- HasSupportedProtoVersions
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply(hashOps: HashOps)(coreInputs: Map[LfContractId, InputContract], createdCore: Seq[CreatedContract], createdInSubviewArchivedInCore: Set[LfContractId], resolvedKeys: Map[LfGlobalKey, SerializableKeyResolution], actionDescription: ActionDescription, rollbackContext: RollbackContext, salt: Salt, protocolVersion: ProtocolVersion): ViewParticipantData
Creates a view participant data.
Creates a view participant data.
- Annotations
- @throws(scala.this.throws.<init>$default$1[com.digitalasset.canton.serialization.SerializationCheckFailed[com.daml.lf.value.ValueCoder.EncodeError]])
- Exceptions thrown
InvalidViewParticipantData
if ViewParticipantData.createdCore contains two elements with the same contract id, if ViewParticipantData.coreInputs(id).contractId != id
if ViewParticipantData.createdInSubviewArchivedInCore overlaps with ViewParticipantData.createdCore's ids or ViewParticipantData.coreInputs if ViewParticipantData.coreInputs does not contain the resolved contract ids in ViewParticipantData.resolvedKeys if ViewParticipantData.createdCore creates a contract with a key that is not in ViewParticipantData.resolvedKeys if the ViewParticipantData.actionDescription is a com.digitalasset.canton.data.ActionDescription.CreateActionDescription and the created id is not the first contract ID in ViewParticipantData.createdCore if the ViewParticipantData.actionDescription is a com.digitalasset.canton.data.ActionDescription.ExerciseActionDescription or com.digitalasset.canton.data.ActionDescription.FetchActionDescription and the input contract is not in ViewParticipantData.coreInputs if the ViewParticipantData.actionDescription is a com.digitalasset.canton.data.ActionDescription.LookupByKeyActionDescription and the key is not in ViewParticipantData.resolvedKeys.com.digitalasset.canton.serialization.SerializationCheckFailed
if this instance cannot be serialized
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def create(hashOps: HashOps)(coreInputs: Map[LfContractId, InputContract], createdCore: Seq[CreatedContract], createdInSubviewArchivedInCore: Set[LfContractId], resolvedKeys: Map[LfGlobalKey, SerializableKeyResolution], actionDescription: ActionDescription, rollbackContext: RollbackContext, salt: Salt, protocolVersion: ProtocolVersion): Either[String, ViewParticipantData]
Creates a view participant data.
Creates a view participant data.
Yields
Left(...)
if ViewParticipantData.createdCore contains two elements with the same contract id, if ViewParticipantData.coreInputs(id).contractId != id
if ViewParticipantData.createdInSubviewArchivedInCore overlaps with ViewParticipantData.createdCore's ids or ViewParticipantData.coreInputs if ViewParticipantData.coreInputs does not contain the resolved contract ids in ViewParticipantData.resolvedKeys if ViewParticipantData.createdCore creates a contract with a key that is not in ViewParticipantData.resolvedKeys if the ViewParticipantData.actionDescription is a com.digitalasset.canton.data.ActionDescription.CreateActionDescription and the created id is not the first contract ID in ViewParticipantData.createdCore if the ViewParticipantData.actionDescription is a com.digitalasset.canton.data.ActionDescription.ExerciseActionDescription or com.digitalasset.canton.data.ActionDescription.FetchActionDescription and the input contract is not in ViewParticipantData.coreInputs if the ViewParticipantData.actionDescription is a com.digitalasset.canton.data.ActionDescription.LookupByKeyActionDescription and the key is not in ViewParticipantData.resolvedKeys. if this instance cannot be serialized. - def deserializeForVersion(rpv: RepresentativeProtocolVersion[ViewParticipantData], deserializeLegacyProto: (Deserializer) => ParsingResult[ViewParticipantData], deserializeVersionedProto: => ParsingResult[ViewParticipantData]): ParsingResult[ViewParticipantData]
- Attributes
- protected
- Definition Classes
- HasProtocolVersionedWrapperCompanion
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fromByteArray(context: HashOps)(bytes: Array[Byte]): ParsingResult[ViewParticipantData]
- Definition Classes
- HasMemoizedProtocolVersionedWithContextCompanion
- def fromByteString(context: HashOps)(bytes: OriginalByteString): ParsingResult[ViewParticipantData]
- Definition Classes
- HasMemoizedProtocolVersionedWithContextCompanion
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val name: String
The name of the class as used for pretty-printing and error reporting
The name of the class as used for pretty-printing and error reporting
- Definition Classes
- ViewParticipantData → HasProtocolVersionedWrapperCompanion → HasSupportedProtoVersions
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def protoVersionFor(protocolVersion: ProtocolVersion): ProtoVersion
Return the Proto version corresponding to the protocol version
Return the Proto version corresponding to the protocol version
- Definition Classes
- HasSupportedProtoVersions
- def protoVersionFor(protocolVersion: RepresentativeProtocolVersion[ViewParticipantData]): ProtoVersion
Return the Proto version corresponding to the representative protocol version
Return the Proto version corresponding to the representative protocol version
- Definition Classes
- HasSupportedProtoVersions
- def protocolVersionRepresentativeFor(protoVersion: ProtoVersion): RepresentativeProtocolVersion[ViewParticipantData]
- Definition Classes
- HasSupportedProtoVersions
- def protocolVersionRepresentativeFor(protocolVersion: ProtocolVersion): RepresentativeProtocolVersion[ViewParticipantData]
- Definition Classes
- HasSupportedProtoVersions
- def supportedProtoVersionMemoized[Proto <: GeneratedMessage](p: GeneratedMessageCompanion[Proto])(fromProto: (HashOps, Proto) => (OriginalByteString) => ParsingResult[ViewParticipantData]): Deserializer
- Attributes
- protected
- Definition Classes
- HasMemoizedProtocolVersionedWithContextCompanion
- val supportedProtoVersions: SupportedProtoVersions
Proto versions that are supported by
fromProtoVersioned
andfromByteString
See the helpersupportedProtoVersion
below to define aParser
.Proto versions that are supported by
fromProtoVersioned
andfromByteString
See the helpersupportedProtoVersion
below to define aParser
.- Definition Classes
- ViewParticipantData → HasSupportedProtoVersions
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- object LegacyProtoConverter extends Serializable
- Definition Classes
- HasSupportedProtoVersions
- object SupportedProtoVersions extends Serializable
- Definition Classes
- HasSupportedProtoVersions
- object VersionedProtoConverter extends Serializable
- Definition Classes
- HasSupportedProtoVersions