plutus-ledger-api
Safe HaskellNone
LanguageHaskell2010

PlutusLedgerApi.V3.MintValue

Synopsis

Documentation

newtype MintValue Source #

A MintValue represents assets that are minted and burned in a transaction.

Instances

Instances details
Data MintValue Source # 
Instance details

Defined in PlutusLedgerApi.V3.MintValue

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> MintValue -> c MintValue Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c MintValue Source #

toConstr :: MintValue -> Constr Source #

dataTypeOf :: MintValue -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c MintValue) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c MintValue) Source #

gmapT :: (forall b. Data b => b -> b) -> MintValue -> MintValue Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> MintValue -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> MintValue -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> MintValue -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> MintValue -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> MintValue -> m MintValue Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> MintValue -> m MintValue Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> MintValue -> m MintValue Source #

Generic MintValue Source # 
Instance details

Defined in PlutusLedgerApi.V3.MintValue

Associated Types

type Rep MintValue 
Instance details

Defined in PlutusLedgerApi.V3.MintValue

type Rep MintValue = D1 ('MetaData "MintValue" "PlutusLedgerApi.V3.MintValue" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" 'True) (C1 ('MetaCons "UnsafeMintValue" 'PrefixI 'True) (S1 ('MetaSel ('Just "unMintValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map CurrencySymbol (Map TokenName Integer)))))
Show MintValue Source # 
Instance details

Defined in PlutusLedgerApi.V3.MintValue

NFData MintValue Source # 
Instance details

Defined in PlutusLedgerApi.V3.MintValue

Methods

rnf :: MintValue -> () Source #

Eq MintValue Source # 
Instance details

Defined in PlutusLedgerApi.V3.MintValue

HasBlueprintDefinition MintValue Source # 
Instance details

Defined in PlutusLedgerApi.V3.MintValue

Associated Types

type Unroll MintValue 
Instance details

Defined in PlutusLedgerApi.V3.MintValue

Methods

definitionId :: DefinitionId

Eq MintValue Source #

Manual Eq instance: two MintValues are equal if they mint and burn the same assets, regardless of internal Map representation. Cannot use deriveEq for semantic equality.

Instance details

Defined in PlutusLedgerApi.V3.MintValue

Methods

(==) :: MintValue -> MintValue -> Bool

FromData MintValue Source # 
Instance details

Defined in PlutusLedgerApi.V3.MintValue

ToData MintValue Source # 
Instance details

Defined in PlutusLedgerApi.V3.MintValue

UnsafeFromData MintValue Source # 
Instance details

Defined in PlutusLedgerApi.V3.MintValue

Pretty MintValue Source # 
Instance details

Defined in PlutusLedgerApi.V3.MintValue

Methods

pretty :: MintValue -> Doc ann

prettyList :: [MintValue] -> Doc ann

HasBlueprintSchema MintValue referencedTypes Source # 
Instance details

Defined in PlutusLedgerApi.V3.MintValue

Methods

schema :: Schema referencedTypes

Lift DefaultUni MintValue Source # 
Instance details

Defined in PlutusLedgerApi.V3.MintValue

Methods

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

Typeable DefaultUni MintValue Source # 
Instance details

Defined in PlutusLedgerApi.V3.MintValue

Methods

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

type Rep MintValue Source # 
Instance details

Defined in PlutusLedgerApi.V3.MintValue

type Rep MintValue = D1 ('MetaData "MintValue" "PlutusLedgerApi.V3.MintValue" "plutus-ledger-api-1.60.0.0-G1HmqwHNllaA7AnJNjAfhP" 'True) (C1 ('MetaCons "UnsafeMintValue" 'PrefixI 'True) (S1 ('MetaSel ('Just "unMintValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map CurrencySymbol (Map TokenName Integer)))))
type Unroll MintValue Source # 
Instance details

Defined in PlutusLedgerApi.V3.MintValue

mintValueMinted :: MintValue -> Value Source #

Get the Value minted by the MintValue.

mintValueBurned :: MintValue -> Value Source #

Get the Value burned by the MintValue. All the negative quantities in the MintValue become positive in the resulting Value.