plutus-tx-1.36.0.0: Libraries for Plutus Tx and its prelude
Safe HaskellSafe-Inferred
LanguageHaskell2010

PlutusTx.Blueprint.Purpose

Synopsis

Documentation

data Purpose Source #

As per CIP-57, a validator arguments (redeemer, datum) and validator parameters all must specify a purpose that indicates in which context they are used.

Constructors

Spend 
Mint 
Withdraw 
Publish 

Instances

Instances details
ToJSON Purpose Source # 
Instance details

Defined in PlutusTx.Blueprint.Purpose

Methods

toJSON :: Purpose -> Value

toEncoding :: Purpose -> Encoding

toJSONList :: [Purpose] -> Value

toEncodingList :: [Purpose] -> Encoding

omitField :: Purpose -> Bool

Show Purpose Source # 
Instance details

Defined in PlutusTx.Blueprint.Purpose

Eq Purpose Source # 
Instance details

Defined in PlutusTx.Blueprint.Purpose

Ord Purpose Source # 
Instance details

Defined in PlutusTx.Blueprint.Purpose

Lift Purpose Source # 
Instance details

Defined in PlutusTx.Blueprint.Purpose

Methods

lift :: Quote m => Purpose -> m Exp Source #

liftTyped :: forall (m :: Type -> Type). Quote m => Purpose -> Code m Purpose Source #