| License | Apache-2.0 |
|---|---|
| Safe Haskell | None |
| Language | GHC2021 |
Conformance.Evidence.Asset
Description
Edge evidence reports what a keyed mint moved, and a movement is
identified by its policy and asset name — a quantity alone cannot say
which key a token belongs to. This module is the single owner of that
shape and its JSON encoding; Conformance.Receipt re-exports it, so the
public import path a caller already uses is unchanged.
Synopsis
- data AssetEntry = AssetEntry {
- aePolicy :: !Text
- aeName :: !Text
- aeQuantity :: !Integer
Documentation
data AssetEntry Source #
One asset movement, named by its policy and asset name.
The registry's token identity is (policy, key) and nothing else, so a
row about a keyed mint has to report both. A quantity alone cannot
distinguish "one token at this key" from "one token at some other key".
Constructors
| AssetEntry | |
Fields
| |
Instances
| FromJSON AssetEntry Source # | |
Defined in Conformance.Evidence.Asset Methods parseJSON :: Value -> Parser AssetEntry parseJSONList :: Value -> Parser [AssetEntry] omittedField :: Maybe AssetEntry | |
| ToJSON AssetEntry Source # | |
Defined in Conformance.Evidence.Asset Methods toJSON :: AssetEntry -> Value toEncoding :: AssetEntry -> Encoding toJSONList :: [AssetEntry] -> Value toEncodingList :: [AssetEntry] -> Encoding omitField :: AssetEntry -> Bool | |
| Show AssetEntry Source # | |
Defined in Conformance.Evidence.Asset Methods showsPrec :: Int -> AssetEntry -> ShowS Source # show :: AssetEntry -> String Source # showList :: [AssetEntry] -> ShowS Source # | |
| Eq AssetEntry Source # | |
Defined in Conformance.Evidence.Asset Methods (==) :: AssetEntry -> AssetEntry -> Bool Source # (/=) :: AssetEntry -> AssetEntry -> Bool Source # | |