o

com.daml.lf.transaction

TransactionCoder

object TransactionCoder

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TransactionCoder
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. abstract class DecodeNid[+Nid] extends AnyRef
  2. abstract class EncodeNid[-Nid] extends AnyRef

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def EventIdDecoder(trId: LedgerString): DecodeNid[NodeId]
  5. def EventIdEncoder(trId: LedgerString): EncodeNid[NodeId]
  6. val NidDecoder: DecodeNid[NodeId]
  7. val NidEncoder: EncodeNid[NodeId]
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  10. def decodeContractInstance[Cid](decodeCid: DecodeCid[Cid], protoCoinst: ContractInstance): Either[DecodeError, ContractInst[Value[Cid]]]

    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

  11. def decodeNodeVersion(txVersion: TransactionVersion, protoNode: Node): Either[DecodeError, TransactionVersion]
  12. def decodeTransaction[Nid, Cid](decodeNid: DecodeNid[Nid], decodeCid: DecodeCid[Cid], protoTx: Transaction): Either[DecodeError, VersionedTransaction[Nid, Cid]]

    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.

    Nid

    node id type

    Cid

    contract id type

    decodeNid

    node id decoding function

    decodeCid

    contract id decoding function

    protoTx

    protobuf encoded transaction

    returns

    decoded transaction

  13. def decodeVersion(node: Node): Either[DecodeError, TransactionVersion]
  14. def decodeVersion(vs: String): Either[DecodeError, TransactionVersion]
  15. def decodeVersionedContractInstance[Cid](decodeCid: DecodeCid[Cid], protoCoinst: ContractInstance): Either[DecodeError, ContractInst[VersionedValue[Cid]]]
  16. def encodeContractInstance[Cid](encodeCid: EncodeCid[Cid], coinst: ContractInst[VersionedValue[Cid]]): 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

  17. def encodeTransaction[Nid, Cid <: ContractId](encodeNid: EncodeNid[Nid], encodeCid: EncodeCid[Cid], tx: VersionedTransaction[Nid, Cid]): Either[EncodeError, Transaction]

    Encode a Cid] to protobuf using TransactionVersion provided by the libary.

    Encode a Cid] to protobuf using TransactionVersion provided by the libary.

    Nid

    node id type

    Cid

    contract id type

    encodeNid

    node id encoding function

    encodeCid

    contract id encoding function

    tx

    the transaction to be encoded

    returns

    protobuf encoded transaction

  18. def encodeVersionedValue[Cid](cidEncoder: EncodeCid[Cid], enclosingVersion: TransactionVersion, value: VersionedValue[Cid]): Either[EncodeError, VersionedValue]
  19. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  21. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  22. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. def nodeKey(nodeVersion: TransactionVersion, protoExercise: NodeExercise): Either[DecodeError, Option[GlobalKey]]
  27. def nodeKey(nodeVersion: TransactionVersion, protoCreate: NodeCreate): Either[DecodeError, Option[GlobalKey]]
  28. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  29. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  30. def protoActionNodeInfo(txVersion: TransactionVersion, protoNode: 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.

  31. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  32. def toPartySet(strList: ProtocolStringList): Either[DecodeError, Set[Party]]
  33. def toString(): String
    Definition Classes
    AnyRef → Any
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  36. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped