object TransactionCoder
- Alphabetic
- By Inheritance
- TransactionCoder
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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 EventIdDecoder(trId: LedgerString): DecodeNid
- def EventIdEncoder(trId: LedgerString): EncodeNid
- val NidDecoder: DecodeNid
- val NidEncoder: EncodeNid
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def decodeContractInstance(decodeCid: DecodeCid, protoCoinst: ContractInstance): Either[DecodeError, ContractInstance]
Decode a contract instance from wire format
Decode a contract instance from wire format
- decodeCid
cid decoding function
- protoCoinst
protocol buffer encoded contract instance
- returns
contract instance value
- def decodeNodeVersion(txVersion: TransactionVersion, protoNode: TransactionOuterClass.Node): Either[DecodeError, TransactionVersion]
- def decodeTransaction(decodeNid: DecodeNid, decodeCid: DecodeCid, protoTx: TransactionOuterClass.Transaction): Either[DecodeError, VersionedTransaction]
Reads a VersionedTransaction from protobuf and checks if TransactionVersion passed in the protobuf is currently supported.
Reads a VersionedTransaction from protobuf and checks if TransactionVersion passed in the protobuf is currently supported.
Supported transaction versions configured in TransactionVersion.
- decodeNid
node id decoding function
- decodeCid
contract id decoding function
- protoTx
protobuf encoded transaction
- returns
decoded transaction
- def decodeVersion(node: TransactionOuterClass.Node): Either[DecodeError, TransactionVersion]
- def decodeVersion(vs: String): Either[DecodeError, TransactionVersion]
- def decodeVersionedContractInstance(decodeCid: DecodeCid, protoCoinst: ContractInstance): Either[DecodeError, VersionedContractInstance]
- def encodeContractInstance(encodeCid: EncodeCid, coinst: VersionedContractInstance): Either[EncodeError, ContractInstance]
Encodes a contract instance with the help of the contractId encoding function
Encodes a contract instance with the help of the contractId encoding function
- encodeCid
function to encode a cid to protobuf
- coinst
the contract instance to be encoded
- returns
protobuf wire format contract instance
- def encodeTransaction(encodeNid: EncodeNid, encodeCid: EncodeCid, tx: VersionedTransaction): Either[EncodeError, TransactionOuterClass.Transaction]
Encode a Transaction[Nid] to protobuf using TransactionVersion provided by the libary.
Encode a Transaction[Nid] to protobuf using TransactionVersion provided by the libary.
- encodeNid
node id encoding function
- encodeCid
contract id encoding function
- tx
the transaction to be encoded
- returns
protobuf encoded transaction
- def encodeVersionedValue(cidEncoder: EncodeCid, enclosingVersion: TransactionVersion, value: VersionedValue): Either[EncodeError, VersionedValue]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def nodeKey(nodeVersion: TransactionVersion, protoExercise: NodeExercise): Either[DecodeError, Option[GlobalKey]]
- def nodeKey(nodeVersion: TransactionVersion, protoCreate: NodeCreate): Either[DecodeError, Option[GlobalKey]]
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def protoActionNodeInfo(txVersion: TransactionVersion, protoNode: TransactionOuterClass.Node): Either[DecodeError, ActionNodeInfo]
Action node information for a serialized transaction node.
Action node information for a serialized transaction node. Used to compute informees when deserialization is too costly. This method is not supported for transaction version <5 (as NodeInfo does not support it). We're not using e.g. "implicit class" in order to keep the decoding errors explicit. NOTE(JM): Currently used only externally, but kept here to keep in sync with the implementation. Note that this can only be applied to action nodes and will return Left on rollback nodes.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toPartySet(strList: ProtocolStringList): Either[DecodeError, Set[Party]]
- 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])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated