Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- addTokenAttack :: MonadTweak m => (Versioned MintingPolicy -> [(TokenName, Integer)]) -> Wallet -> m Value
- newtype AddTokenLbl = AddTokenLbl TokenName
Documentation
:: MonadTweak m | |||||||||||||
=> (Versioned MintingPolicy -> [(TokenName, Integer)]) | For each policy that occurs in some
Synopsis
Documentation
This attack adds extra tokens, depending on the minting policy. It is + there'll be n*m*o modified transactions.) The redeemer will be the one that's already being used on the transaction. | ||||||||||||
-> Wallet | The wallet of the attacker. Any extra tokens will be paid to this wallet. | ||||||||||||
-> 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
with the token name of the additional
- minted token(s). It returns additional value minted.
newtype AddTokenLbl Source #
AddTokenLbl TokenName |
Instances
Eq AddTokenLbl Source # | |
Defined in Cooked.Attack.AddToken (==) :: AddTokenLbl -> AddTokenLbl -> Bool # (/=) :: AddTokenLbl -> AddTokenLbl -> Bool # | |
Show AddTokenLbl Source # | |
Defined in Cooked.Attack.AddToken showsPrec :: Int -> AddTokenLbl -> ShowS # show :: AddTokenLbl -> String # showList :: [AddTokenLbl] -> ShowS # |