Safe Haskell | None |
---|---|
Language | Haskell2010 |
Pigy.Chain.Mint
Description
Minting image tokens.
Synopsis
- checkValue :: AssetId -> ScriptHash -> Value -> Bool
- pigFilter :: ScriptHash -> AssetId -> Bool
- findPigs :: ScriptHash -> Value -> [ByteString]
- mint :: MonadFail m => MonadIO m => Context -> [TxIn] -> MaryAddress -> Value -> [String] -> MantisM m ()
Documentation
Arguments
:: AssetId | The payment token. |
-> ScriptHash | The policy for the image tokens. |
-> Value | The value to be validated. |
-> Bool | Whether minting can proceed. |
Validate input value.
Arguments
:: ScriptHash | The policy for the image tokens. |
-> AssetId | The asset in question. |
-> Bool | Whether the asset is an image token. |
Test whether an asset is a token image.
Arguments
:: ScriptHash | The policy. |
-> Value | The value. |
-> [ByteString] | The image-token tickers. |
Find the tickers for the image tokens in a value.
Arguments
:: MonadFail m | |
=> MonadIO m | |
=> Context | The service context. |
-> [TxIn] | The UTxOs to be spent. |
-> MaryAddress | The destination. |
-> Value | The value to be spent. |
-> [String] | The message to be embedded in the transaction. |
-> MantisM m () | The action to mint or burn. |
Mint or burn an image token.