cleveland-0.3.1: Testing framework for Morley.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Cleveland.Internal.Actions.TransferTicket

Description

Machinery for transferring tickets from implicit accounts.

Synopsis

Documentation

type family ImplicitAddressParameterHelper addr cp arg :: Constraint where ... Source #

Implicit address may only have the root entrypoint, so full parameter type is exactly the argument parameter type. This is used to improve type inference when using transferTicket with implicit addresses.

transferTicket :: forall cp vd arg m addr ticketerAddr mname. (MonadOpsInternal m, NiceParameter arg, NiceComparable arg, ImplicitAddressParameterHelper addr cp (Ticket arg), ToL1TAddress cp vd addr, ToAddress ticketerAddr, HasEntrypointArg cp (EntrypointRef mname) (Ticket arg), HasCallStack) => addr -> EntrypointRef mname -> ticketerAddr -> arg -> Natural -> m [ContractEvent] Source #

Transfer tickets.

unsafeTransferTicket :: forall arg m addr ticketerAddr. (MonadOpsInternal m, NiceParameter arg, NiceComparable arg, ToL1Address addr, ToAddress ticketerAddr, HasCallStack) => addr -> EpName -> ticketerAddr -> arg -> Natural -> m [ContractEvent] Source #

Transfer tickets without checking the recipient can accept them.