canton-network-docs/Daml ScriptModules
Daml.Script.Internal
Daml.Script.Internal
Contains all Internal and Alpha functionality provided by Daml Script. Use these with care. No stability guarantees are given for them across SDK upgrades.Module Snapshot
Lifecycle
Stable.
Notices
Status:
active
Introduced in: 3.4.9
Removed in: -
Warnings: 0
Deprecations: 0
Deprecated since: -Data Types
data CommandName
Name of the Daml Script Command (or Question) that failed
Constructors:
CommandName
instance Eq CommandNameinstance Show CommandNameinstance GetField commandName FailedCmd CommandNameinstance GetField getCommandName CommandName Textinstance SetField commandName FailedCmd CommandNameinstance SetField getCommandName CommandName Text
data ErrorClassName
Scala class name of the exception thrown
Constructors:
ErrorClassName
instance Eq ErrorClassNameinstance Show ErrorClassNameinstance GetField errorClassName FailedCmd ErrorClassNameinstance GetField getErrorClassName ErrorClassName Textinstance SetField errorClassName FailedCmd ErrorClassNameinstance SetField getErrorClassName ErrorClassName Text
data ErrorMessage
Result of the getMessage method on the Scala exception
Constructors:
ErrorMessage
instance Eq ErrorMessageinstance Show ErrorMessageinstance GetField errorMessage FailedCmd ErrorMessageinstance GetField getErrorMessage ErrorMessage Textinstance SetField errorMessage FailedCmd ErrorMessageinstance SetField getErrorMessage ErrorMessage Text
data FailedCmd
Daml type representing a Scala exception thrown during script interpretation.
Used for internal testing of the Daml Script library.
Constructors:
FailedCmd
instance Eq FailedCmdinstance Show FailedCmdinstance GetField commandName FailedCmd CommandNameinstance GetField errorClassName FailedCmd ErrorClassNameinstance GetField errorMessage FailedCmd ErrorMessageinstance SetField commandName FailedCmd CommandNameinstance SetField errorClassName FailedCmd ErrorClassNameinstance SetField errorMessage FailedCmd ErrorMessage
data ContractNotFoundAdditionalInfo
Additional debugging information provided only by IDE Ledger
Instances:
instance Show ContractNotFoundAdditionalInfoinstance GetField actAs ContractNotFoundAdditionalInfo [Party]instance GetField additionalDebuggingInfo SubmitError (Optional ContractNotFoundAdditionalInfo)instance GetField additionalInfoCid ContractNotFoundAdditionalInfo AnyContractIdinstance GetField effectiveAt ContractNotFoundAdditionalInfo Textinstance GetField observers ContractNotFoundAdditionalInfo [Party]instance GetField readAs ContractNotFoundAdditionalInfo [Party]instance SetField actAs ContractNotFoundAdditionalInfo [Party]instance SetField additionalDebuggingInfo SubmitError (Optional ContractNotFoundAdditionalInfo)instance SetField additionalInfoCid ContractNotFoundAdditionalInfo AnyContractIdinstance SetField effectiveAt ContractNotFoundAdditionalInfo Textinstance SetField observers ContractNotFoundAdditionalInfo [Party]instance SetField readAs ContractNotFoundAdditionalInfo [Party]
data PackageName
Used for vetting and unvetting packages
Constructors:
PackageName
instance IsQuestion ListAllPackages [PackageName]instance IsQuestion ListVettedPackages [PackageName]instance Eq PackageNameinstance Ord PackageNameinstance Show PackageNameinstance GetField name PackageName Textinstance GetField packages UnvetPackages [PackageName]instance GetField packages VetPackages [PackageName]instance GetField version PackageName Textinstance SetField name PackageName Textinstance SetField packages UnvetPackages [PackageName]instance SetField packages VetPackages [PackageName]instance SetField version PackageName Text
Functions
tryCommands
liftFailedCommandToFailureStatus
isNotActive
vetPackages
--admin-port with the daml script CLI tool.
vetPackagesOnParticipant
--admin-port with the daml script CLI tool.
unvetPackages
--admin-port with the daml script CLI tool.
unvetPackagesOnParticipant
--admin-port with the daml script CLI tool.
listVettedPackages
--admin-port with the daml script CLI tool.
listAllPackages
--admin-port with the daml script CLI tool.
allocateReplicatedPartyOn
allocateReplicatedPartyWithHintOn
throwAnyException
AnyException, note that this function discards the stacktrace