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 extends AnyRef
  2. abstract class EncodeNid 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
  5. def EventIdEncoder(trId: LedgerString): EncodeNid
  6. val NidDecoder: DecodeNid
  7. val NidEncoder: EncodeNid
  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() @IntrinsicCandidate()
  10. 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

  11. def decodeNodeVersion(txVersion: TransactionVersion, protoNode: TransactionOuterClass.Node): Either[DecodeError, TransactionVersion]
  12. 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

  13. def decodeVersion(node: TransactionOuterClass.Node): Either[DecodeError, TransactionVersion]
  14. def decodeVersion(vs: String): Either[DecodeError, TransactionVersion]
  15. def decodeVersionedContractInstance(decodeCid: DecodeCid, protoCoinst: ContractInstance): Either[DecodeError, VersionedContractInstance]
  16. 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

  17. 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

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

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

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped