object LightTransactionViewTree extends HasVersionedMessageWithContextCompanion[LightTransactionViewTree, HashOps]
- Alphabetic
- By Inheritance
- LightTransactionViewTree
- HasVersionedMessageWithContextCompanion
- HasVersionedMessageCompanionCommon
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- type Deserializer = (HashOps, ByteString) => ParsingResult[LightTransactionViewTree]
- Definition Classes
- HasVersionedMessageWithContextCompanion → HasVersionedMessageCompanionCommon
- final case class InvalidLightTransactionViewTree(message: String) extends RuntimeException with Product with Serializable
- final case class InvalidLightTransactionViewTreeSequence(message: String) extends RuntimeException with Product with Serializable
- type Serializer = (LightTransactionViewTree) => ByteString
- Definition Classes
- HasVersionedMessageCompanionCommon
- case class ProtoCodec(fromInclusive: ProtocolVersion, deserializer: Deserializer, serializer: Serializer) extends Product with Serializable
- Definition Classes
- HasVersionedMessageCompanionCommon
- case class SupportedProtoVersions extends Product with Serializable
- Definition Classes
- HasVersionedMessageCompanionCommon
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
- 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(tree: GenTransactionTree, subviewHashes: Seq[ViewHash], protocolVersion: ProtocolVersion): Either[String, LightTransactionViewTree]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fromByteString(ctx: HashOps)(bytes: ByteString): ParsingResult[LightTransactionViewTree]
- Definition Classes
- HasVersionedMessageWithContextCompanion
- def fromProtoVersioned(ctx: HashOps)(proto: VersionedMessage[LightTransactionViewTree]): ParsingResult[LightTransactionViewTree]
- Definition Classes
- HasVersionedMessageWithContextCompanion
- def fromTransactionViewTree(tvt: TransactionViewTree, protocolVersion: ProtocolVersion): LightTransactionViewTree
Turns a full transaction view tree into a lightweight one.
Turns a full transaction view tree into a lightweight one. Not stack-safe.
- 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
- LightTransactionViewTree → HasVersionedMessageCompanionCommon
- 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 supportedProtoVersion[Proto <: GeneratedMessage](p: GeneratedMessageCompanion[Proto])(fromProto: (HashOps, Proto) => ParsingResult[LightTransactionViewTree]): (HashOps, ByteString) => ParsingResult[LightTransactionViewTree]
- Attributes
- protected
- Definition Classes
- HasVersionedMessageWithContextCompanion
- val supportedProtoVersions: SupportedProtoVersions
Proto versions that are supported by
fromProtoVersioned
,fromByteString
,toProtoVersioned
andtoByteString
.Proto versions that are supported by
fromProtoVersioned
,fromByteString
,toProtoVersioned
andtoByteString
. See the helperssupportedProtoVersion
andsupportedProtoVersionMemoized
below to define aProtoCodec
.- Definition Classes
- LightTransactionViewTree → HasVersionedMessageCompanionCommon
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toFullViewTrees[A, B](lens: PLens[A, B, LightTransactionViewTree, TransactionViewTree], protocolVersion: ProtocolVersion, hashOps: HashOps, topLevelOnly: Boolean)(lightViewTrees: Seq[A]): (Seq[B], Seq[A], Seq[A])
Converts a sequence of light transaction view trees to the corresponding full view trees.
Converts a sequence of light transaction view trees to the corresponding full view trees. A light transaction view tree can be converted to its corresponding full view tree if and only if all descendants can be converted.
To make the method more generic, light view trees are represented as
A
and full view trees asB
and thelens
parameter is used to convert between these types, as needed.- topLevelOnly
whether to return only top-level full view trees
- lightViewTrees
the light transaction view trees to convert
- returns
A triple consisting of (1) the full view trees that could be converted, (2) the light view trees that could not be converted due to missing descendants, and (3) duplicate light view trees in the input. The view trees in the output are sorted by view position, i.e., in pre-order. If the input contains the same view several times, then the output (1) contains one occurrence and the output (3) every other occurrence of the view.
- def toString(): String
- Definition Classes
- AnyRef → Any
- def tryCreate(tree: GenTransactionTree, subviewHashes: Seq[ViewHash], protocolVersion: ProtocolVersion): LightTransactionViewTree
- Exceptions thrown
InvalidLightTransactionViewTree
if the tree is not a legal lightweight transaction view tree
- 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 SupportedProtoVersions extends Serializable
- Definition Classes
- HasVersionedMessageCompanionCommon