plutus-use-cases-0.1.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

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 #

Hashable CredentialAuthority Source # 
Instance details

Defined in Plutus.Contracts.Prism.Credential

ToJSON CredentialAuthority Source # 
Instance details

Defined in Plutus.Contracts.Prism.Credential

FromJSON CredentialAuthority Source # 
Instance details

Defined in Plutus.Contracts.Prism.Credential

ToSchema CredentialAuthority Source # 
Instance details

Defined in Plutus.Contracts.Prism.Credential

UnsafeFromData CredentialAuthority Source # 
Instance details

Defined in Plutus.Contracts.Prism.Credential

FromData CredentialAuthority Source # 
Instance details

Defined in Plutus.Contracts.Prism.Credential

ToData CredentialAuthority Source # 
Instance details

Defined in Plutus.Contracts.Prism.Credential

Lift DefaultUni CredentialAuthority Source # 
Instance details

Defined in Plutus.Contracts.Prism.Credential

Typeable DefaultUni CredentialAuthority Source # 
Instance details

Defined in Plutus.Contracts.Prism.Credential

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-0.1.0.0-sCb7ThsvWbFT6VPXrOzPF" '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

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 #

Hashable Credential Source # 
Instance details

Defined in Plutus.Contracts.Prism.Credential

ToJSON Credential Source # 
Instance details

Defined in Plutus.Contracts.Prism.Credential

FromJSON Credential Source # 
Instance details

Defined in Plutus.Contracts.Prism.Credential

ToSchema Credential Source # 
Instance details

Defined in Plutus.Contracts.Prism.Credential

UnsafeFromData Credential Source # 
Instance details

Defined in Plutus.Contracts.Prism.Credential

FromData Credential Source # 
Instance details

Defined in Plutus.Contracts.Prism.Credential

ToData Credential Source # 
Instance details

Defined in Plutus.Contracts.Prism.Credential

Lift DefaultUni Credential Source # 
Instance details

Defined in Plutus.Contracts.Prism.Credential

Typeable DefaultUni Credential Source # 
Instance details

Defined in Plutus.Contracts.Prism.Credential

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-0.1.0.0-sCb7ThsvWbFT6VPXrOzPF" 'False) (C1 ('MetaCons "Credential" 'PrefixI 'True) (S1 ('MetaSel ('Just "credAuthority") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CredentialAuthority) :*: S1 ('MetaSel ('Just "credName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TokenName)))

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