| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Plutus.Contracts.Prism.StateMachine
Description
State machine that manages credential tokens
Synopsis
- data IDState
- data IDAction
- data UserCredential = UserCredential {}
- typedValidator :: UserCredential -> TypedValidator (StateMachine IDState IDAction)
- machineClient :: TypedValidator (StateMachine IDState IDAction) -> UserCredential -> StateMachineClient IDState IDAction
- mkMachineClient :: CredentialAuthority -> PaymentPubKeyHash -> TokenName -> StateMachineClient IDState IDAction
Documentation
Constructors
| Active | The credential is active and can be used in transactions |
| Revoked | The credential has been revoked and can't be used anymore. |
Instances
| Eq IDState Source # | |
| Show IDState Source # | |
| Generic IDState Source # | |
| ToJSON IDState Source # | |
| FromJSON IDState Source # | |
| UnsafeFromData IDState Source # | |
Defined in Plutus.Contracts.Prism.StateMachine Methods | |
| FromData IDState Source # | |
Defined in Plutus.Contracts.Prism.StateMachine Methods | |
| ToData IDState Source # | |
Defined in Plutus.Contracts.Prism.StateMachine Methods toBuiltinData :: IDState -> BuiltinData Source # | |
| Lift DefaultUni IDState Source # | |
Defined in Plutus.Contracts.Prism.StateMachine Methods lift :: IDState -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ()) Source # | |
| Typeable DefaultUni IDState Source # | |
Defined in Plutus.Contracts.Prism.StateMachine Methods typeRep :: Proxy IDState -> RTCompile DefaultUni fun (Type TyName DefaultUni ()) Source # | |
| type Rep IDState Source # | |
Defined in Plutus.Contracts.Prism.StateMachine | |
Constructors
| PresentCredential | Present the credential in a transaction |
| RevokeCredential | Revoke the credential |
Instances
| Eq IDAction Source # | |
| Show IDAction Source # | |
| Generic IDAction Source # | |
| ToJSON IDAction Source # | |
| FromJSON IDAction Source # | |
| UnsafeFromData IDAction Source # | |
Defined in Plutus.Contracts.Prism.StateMachine Methods | |
| FromData IDAction Source # | |
Defined in Plutus.Contracts.Prism.StateMachine Methods | |
| ToData IDAction Source # | |
Defined in Plutus.Contracts.Prism.StateMachine Methods toBuiltinData :: IDAction -> BuiltinData Source # | |
| Lift DefaultUni IDAction Source # | |
Defined in Plutus.Contracts.Prism.StateMachine Methods lift :: IDAction -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ()) Source # | |
| Typeable DefaultUni IDAction Source # | |
Defined in Plutus.Contracts.Prism.StateMachine Methods typeRep :: Proxy IDAction -> RTCompile DefaultUni fun (Type TyName DefaultUni ()) Source # | |
| type Rep IDAction Source # | |
Defined in Plutus.Contracts.Prism.StateMachine | |
data UserCredential Source #
A Credential issued to a user (public key address)
Constructors
| UserCredential | |
Fields
| |