Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
A simplistic type of transactions useful for modelling purpose.
a Payment
is a simple transaction type that moves some amount of ADAs between
to CardanoSigningKey
.
Synopsis
- newtype CardanoSigningKey = CardanoSigningKey {
- signingKey :: SigningKey PaymentKey
- data Payment = Payment {
- from :: CardanoSigningKey
- to :: CardanoSigningKey
- value :: Value
- applyTx :: UTxOType Payment -> Payment -> UTxOType Payment
- genAdaValue :: Gen Value
Documentation
newtype CardanoSigningKey Source #
CardanoSigningKey | |
|
Instances
A single Ada-payment only transaction in our model.
Payment | |
|
Instances
genAdaValue :: Gen Value Source #