plutus-use-cases-1.2.0.0: Collection of smart contracts to develop the plutus/wallet interface
Safe HaskellNone
LanguageHaskell2010

Plutus.Contracts.Prism.Credential

Description

Minting policy script for credential tokens.

Synopsis

Documentation

newtype CredentialAuthority Source #

Entity that is authorised to mint credential tokens

Constructors

CredentialAuthority 

Fields

Instances

Instances details
Eq CredentialAuthority Source # 
Instance details

Defined in Plutus.Contracts.Prism.Credential

Ord CredentialAuthority Source # 
Instance details

Defined in Plutus.Contracts.Prism.Credential

Show CredentialAuthority Source # 
Instance details

Defined in Plutus.Contracts.Prism.Credential

Generic CredentialAuthority Source # 
Instance details

Defined in Plutus.Contracts.Prism.Credential

Associated Types

type Rep CredentialAuthority :: Type -> Type Source #

FromJSON CredentialAuthority Source # 
Instance details

Defined in Plutus.Contracts.Prism.Credential

Methods

parseJSON :: Value -> Parser CredentialAuthority

parseJSONList :: Value -> Parser [CredentialAuthority]

ToJSON CredentialAuthority Source # 
Instance details

Defined in Plutus.Contracts.Prism.Credential

ToData CredentialAuthority Source # 
Instance details

Defined in Plutus.Contracts.Prism.Credential

Methods

toBuiltinData :: CredentialAuthority -> BuiltinData

FromData CredentialAuthority Source # 
Instance details

Defined in Plutus.Contracts.Prism.Credential

Methods

fromBuiltinData :: BuiltinData -> Maybe CredentialAuthority

UnsafeFromData CredentialAuthority Source # 
Instance details

Defined in Plutus.Contracts.Prism.Credential

Hashable CredentialAuthority Source # 
Instance details

Defined in Plutus.Contracts.Prism.Credential

Lift DefaultUni CredentialAuthority Source # 
Instance details

Defined in Plutus.Contracts.Prism.Credential

Methods

lift :: CredentialAuthority -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni CredentialAuthority Source # 
Instance details

Defined in Plutus.Contracts.Prism.Credential

Methods

typeRep :: Proxy CredentialAuthority -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep CredentialAuthority Source # 
Instance details

Defined in Plutus.Contracts.Prism.Credential

type Rep CredentialAuthority = D1 ('MetaData "CredentialAuthority" "Plutus.Contracts.Prism.Credential" "plutus-use-cases-1.2.0.0-BuYOLXrynPcLosE012cowc" 'True) (C1 ('MetaCons "CredentialAuthority" 'PrefixI 'True) (S1 ('MetaSel ('Just "unCredentialAuthority") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PaymentPubKeyHash)))

data Credential Source #

Named credential issued by a credential authority

Constructors

Credential 

Fields

Instances

Instances details
Eq Credential Source # 
Instance details

Defined in Plutus.Contracts.Prism.Credential

Ord Credential Source # 
Instance details

Defined in Plutus.Contracts.Prism.Credential

Show Credential Source # 
Instance details

Defined in Plutus.Contracts.Prism.Credential

Generic Credential Source # 
Instance details

Defined in Plutus.Contracts.Prism.Credential

Associated Types

type Rep Credential :: Type -> Type Source #

FromJSON Credential Source # 
Instance details

Defined in Plutus.Contracts.Prism.Credential

Methods

parseJSON :: Value -> Parser Credential

parseJSONList :: Value -> Parser [Credential]

ToJSON Credential Source # 
Instance details

Defined in Plutus.Contracts.Prism.Credential

Methods

toJSON :: Credential -> Value

toEncoding :: Credential -> Encoding

toJSONList :: [Credential] -> Value

toEncodingList :: [Credential] -> Encoding

ToData Credential Source # 
Instance details

Defined in Plutus.Contracts.Prism.Credential

Methods

toBuiltinData :: Credential -> BuiltinData

FromData Credential Source # 
Instance details

Defined in Plutus.Contracts.Prism.Credential

Methods

fromBuiltinData :: BuiltinData -> Maybe Credential

UnsafeFromData Credential Source # 
Instance details

Defined in Plutus.Contracts.Prism.Credential

Methods

unsafeFromBuiltinData :: BuiltinData -> Credential

Hashable Credential Source # 
Instance details

Defined in Plutus.Contracts.Prism.Credential

Lift DefaultUni Credential Source # 
Instance details

Defined in Plutus.Contracts.Prism.Credential

Methods

lift :: Credential -> RTCompile DefaultUni fun (Term TyName Name DefaultUni fun ())

Typeable DefaultUni Credential Source # 
Instance details

Defined in Plutus.Contracts.Prism.Credential

Methods

typeRep :: Proxy Credential -> RTCompile DefaultUni fun (Type TyName DefaultUni ())

type Rep Credential Source # 
Instance details

Defined in Plutus.Contracts.Prism.Credential

type Rep Credential = D1 ('MetaData "Credential" "Plutus.Contracts.Prism.Credential" "plutus-use-cases-1.2.0.0-BuYOLXrynPcLosE012cowc" 'False) (C1 ('MetaCons "Credential" 'PrefixI 'True) (S1 ('MetaSel ('Just "credAuthority") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CredentialAuthority) :*: S1 ('MetaSel ('Just "credName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TokenName)))

policy :: CredentialAuthority -> MintingPolicy Source #

token :: Credential -> Value Source #

A single credential of the given name

tokens :: Credential -> Integer -> Value Source #

A number of credentials of the given name

tokenAccount :: Credential -> Account Source #

The Account that can be spent by presenting the credential