Skip to content

Commit

Permalink
LF: deprecate remaining type alias in Transaction (#11554)
Browse files Browse the repository at this point in the history
CHANGELOG_BEGIN
CHANGELOG_END
  • Loading branch information
remyhaemmerle-da authored Nov 4, 2021
1 parent 7bc0f82 commit 692dac6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import com.daml.lf.ledger._
import com.daml.lf.data.Ref._
import com.daml.lf.scenario.ScenarioLedger.TransactionId
import com.daml.lf.scenario._
import com.daml.lf.transaction.{Node, NodeId, TransactionVersion => TxVersion, Transaction => Tx}
import com.daml.lf.transaction.{Node, NodeId, TransactionVersion => TxVersion}
import com.daml.lf.speedy.SError._
import com.daml.lf.speedy.SValue._
import com.daml.lf.speedy.SBuiltin._
Expand Down Expand Up @@ -193,7 +193,7 @@ private[lf] object Pretty {
// the maintainers are induced from the key -- so don't clutter
prettyValue(false)(key.key)

def prettyVersionedKeyWithMaintainers(key: Node.KeyWithMaintainers[Tx.Value]): Doc =
def prettyVersionedKeyWithMaintainers(key: Node.KeyWithMaintainers[VersionedValue]): Doc =
// the maintainers are induced from the key -- so don't clutter
prettyValue(false)(key.key.value)

Expand Down Expand Up @@ -307,7 +307,7 @@ private[lf] object Pretty {
def prettyIdentifier(id: Identifier): Doc =
text(id.qualifiedName.toString) + char('@') + prettyPackageId(id.packageId)

def prettyVersionedValue(verbose: Boolean)(v: Tx.Value): Doc =
def prettyVersionedValue(verbose: Boolean)(v: VersionedValue): Doc =
prettyValue(verbose)(v.value)

// Pretty print a value. If verbose then the top-level value is printed with type constructor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,7 @@ sealed abstract class HasTxNodes {

object GenTransaction {

@deprecated("use com.daml.transaction.GenTransaction directly", since = "1.18.0")
type WithTxValue = GenTransaction

private[this] val Empty = GenTransaction(HashMap.empty, ImmArray.Empty)
Expand Down Expand Up @@ -781,13 +782,15 @@ object GenTransaction {

object Transaction {

@deprecated("use com.daml.value.Value.VersionedValue directly", since = "1.18.0")
type Value = Value.VersionedValue

@deprecated("use com.daml.value.Value.VersionedContractInstance", since = "1.18.0")
type ContractInstance = Value.VersionedContractInstance

/** Transaction nodes */
@deprecated("use com.daml.transaction.Node.Action directly", since = "1.18.0")
type ActionNode = Node.Action
@deprecated("use com.daml.transaction.Node.LeafOnlyAction directly", since = "1.18.0")
type LeafNode = Node.LeafOnlyAction

@deprecated("use com.daml.transaction.VersionedTransaction", since = "1.18.0")
Expand Down

0 comments on commit 692dac6

Please sign in to comment.