Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Cooked.Attack.AddToken
Description
This module provides an automated attack to mint and give extra tokens to a certain wallet.
Synopsis
- addTokenAttack :: (MonadTweak m, OwnerConstraints o) => (Versioned MintingPolicy -> [(TokenName, Integer)]) -> o -> m Value
- data AddTokenLbl = AddTokenLbl
Documentation
Arguments
:: (MonadTweak m, OwnerConstraints o) | |
=> (Versioned MintingPolicy -> [(TokenName, Integer)]) | For each policy that occurs in some |
-> o | The wallet of the attacker where extra tokens will be paid to |
-> m Value |
This attack adds extra tokens, depending on the minting policy. It is
different from the dupTokenAttack
in that it does
not merely try to increase the amount of tokens minted: It tries to mint
tokens of asset classes that were not necessarily present on the unmodified
transaction.
This attack adds an AddTokenLbl
label.
data AddTokenLbl Source #
A label that is added to a TxSkel
that has successfully been modified by
addTokenAttack
Constructors
AddTokenLbl |
Instances
Show AddTokenLbl Source # | |
Defined in Cooked.Attack.AddToken Methods showsPrec :: Int -> AddTokenLbl -> ShowS # show :: AddTokenLbl -> String # showList :: [AddTokenLbl] -> ShowS # | |
PrettyCooked AddTokenLbl Source # | |
Defined in Cooked.Attack.AddToken Methods prettyCooked :: AddTokenLbl -> DocCooked Source # prettyCookedOpt :: PrettyCookedOpts -> AddTokenLbl -> DocCooked Source # | |
Eq AddTokenLbl Source # | |
Defined in Cooked.Attack.AddToken | |
Ord AddTokenLbl Source # | |
Defined in Cooked.Attack.AddToken Methods compare :: AddTokenLbl -> AddTokenLbl -> Ordering # (<) :: AddTokenLbl -> AddTokenLbl -> Bool # (<=) :: AddTokenLbl -> AddTokenLbl -> Bool # (>) :: AddTokenLbl -> AddTokenLbl -> Bool # (>=) :: AddTokenLbl -> AddTokenLbl -> Bool # max :: AddTokenLbl -> AddTokenLbl -> AddTokenLbl # min :: AddTokenLbl -> AddTokenLbl -> AddTokenLbl # |