Class DisclosedContract

java.lang.Object
com.daml.ledger.javaapi.data.DisclosedContract

public final class DisclosedContract extends Object
  • Field Details

    • templateId

      public final Optional<Identifier> templateId
    • contractId

      public final Optional<String> contractId
    • createdEventBlob

      public final com.google.protobuf.ByteString createdEventBlob
    • synchronizerId

      public final Optional<String> synchronizerId
  • Constructor Details

    • DisclosedContract

      @Deprecated public DisclosedContract(Identifier templateId, String contractId, com.google.protobuf.ByteString createdEventBlob)
      Deprecated.
      since 3.2.0. It will be removed in a future release
      Constructor that does not require providing the synchronizer id
    • DisclosedContract

      @Deprecated public DisclosedContract(Identifier templateId, String contractId, com.google.protobuf.ByteString createdEventBlob, String synchronizerId)
      Deprecated.
      since 3.4.0. It will be removed in a future release
      Constructor that requires the contract-id and template-id.
    • DisclosedContract

      public DisclosedContract(com.google.protobuf.ByteString createdEventBlob, String synchronizerId, Optional<Identifier> templateId, Optional<String> contractId)
  • Method Details

    • toProto

      public com.daml.ledger.api.v2.CommandsOuterClass.DisclosedContract toProto()
    • fromProto

      public static DisclosedContract fromProto(com.daml.ledger.api.v2.CommandsOuterClass.DisclosedContract disclosedContract)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object