Splice.GovernanceLock.Request
Data Types
Field
Type
Description
fullSpecification
Field
Type
Description
fullSpecification
unlockAmount
vestingStartTime
Nonefor provisional featured app locks, as they do not vest.
Field
Type
Description
specification
newOwner
transferAmount
Field
Type
Description
vestingSpecification
vestedUntilTime
Field
Type
Description
target
instance Show GovernanceLockRequest
instance GetField "fullSpecification" GovernanceLockRequest FullLockSpecification
instance GetField "newOwner" GovernanceLockRequest Party
instance GetField "specification" GovernanceLockRequest GovernanceLockSpecification
instance GetField "target" GovernanceLockRequest GovernanceLockKey
instance GetField "transferAmount" GovernanceLockRequest Decimal
instance GetField "unlockAmount" GovernanceLockRequest Decimal
instance GetField "vestedUntilTime" GovernanceLockRequest Time
instance GetField "vestingSpecification" GovernanceLockRequest VestingLockSpecification
instance GetField "vestingStartTime" GovernanceLockRequest (Optional Time)
instance SetField "fullSpecification" GovernanceLockRequest FullLockSpecification
instance SetField "newOwner" GovernanceLockRequest Party
instance SetField "specification" GovernanceLockRequest GovernanceLockSpecification
instance SetField "target" GovernanceLockRequest GovernanceLockKey
instance SetField "transferAmount" GovernanceLockRequest Decimal
instance SetField "unlockAmount" GovernanceLockRequest Decimal
instance SetField "vestedUntilTime" GovernanceLockRequest Time
instance SetField "vestingSpecification" GovernanceLockRequest VestingLockSpecification
instance SetField "vestingStartTime" GovernanceLockRequest (Optional Time)
data Parser i o
A parser of an input
iinto an outputo.Parsers form a monad ("action" in Daml parlance). Combining them with
<*>reports the errors of all of them, as forValidation, while>>=stops at the first error, as the second parser depends on the output of the first one.
doblocks of parsers need theApplicativeDoextension to report all errors. Without it, adoblock desugars into>>=and>>, and the Daml-LF conversion replacesx >> ywithx >>= \_ -> y, so evendo { p1; p2; p2}with independentp*stop at the first error. WithApplicativeDo, statements that do not depend on each other are combined with<*>instead even if it is ana <- pastatement.For all independent statements to be combined with
<*>including the last one, thedo-block must end with literallypure xorpure $ x: GHC recognises the final return only by its shape, and any other final statement is joined with a bind:For example, we want compiler to produce
(\a b c -> E) <$> pa <*> pb <*> pcfromdo { pa; pb; pc; pure E}. We want to avoidjoin ((\a b c -> pure . f $ E) <$> pa <*> pb <*> pc)coming fromdo { pa; pb; pc; pure . f $ E}wherefis itself pure.Parser (i -> Validation Text o)
instance Applicative (Parser i)
Functions
- governanceLock_transferFactoryV1_transferImpl
: Party -> [Party] -> TransferFactory_Transfer -> Update TransferInstructionResult
- runParser
: Parser i o -> i -> Validation Text o
- governanceLockTagParser
: Parser Metadata GovernanceLockTag
- governanceLockKindParser
: Parser Metadata GovernanceLockKind
- governanceLockMetadataParser
: Parser Metadata Metadata
- governanceLockRequestTSv1Parser
: Party -> Party -> Optional GovernanceLockConfig -> Parser Metadata GovernanceLockRequest
- parseGovernanceLockRequestTSv1
: CanAssert m => Party -> Party -> Optional GovernanceLockConfig -> Metadata -> m GovernanceLockRequest
Comments