| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Cardano.Ledger.Shelley.TxBody
Contents
Synopsis
- data family TxBody (l ∷ TxLevel) era
- class (ShelleyEraTxCert era, EraTxBody era, AtMostEra "Babbage" era) ⇒ ShelleyEraTxBody era where
- ttlTxBodyL ∷ Lens' (TxBody 'TopTx era) SlotNo
- updateTxBodyL ∷ Lens' (TxBody 'TopTx era) (StrictMaybe (Update era))
- data ShelleyTxBodyRaw (l ∷ TxLevel) era where
- ShelleyTxBodyRaw ∷ ∀ era. {..} → ShelleyTxBodyRaw 'TopTx era
- data EraIndependentTxBody
- data RewardAccount = RewardAccount {
- raNetwork ∷ !Network
- raCredential ∷ !(Credential 'Staking)
- newtype Withdrawals = Withdrawals {}
- getShelleyGenesisKeyHashCountTxBody ∷ ShelleyEraTxBody era ⇒ TxBody 'TopTx era → Int
Documentation
data family TxBody (l ∷ TxLevel) era Source #
The body of a transaction.
Instances
class (ShelleyEraTxCert era, EraTxBody era, AtMostEra "Babbage" era) ⇒ ShelleyEraTxBody era where Source #
Methods
ttlTxBodyL ∷ Lens' (TxBody 'TopTx era) SlotNo Source #
updateTxBodyL ∷ Lens' (TxBody 'TopTx era) (StrictMaybe (Update era)) Source #
Instances
| ShelleyEraTxBody ShelleyEra Source # | |
Defined in Cardano.Ledger.Shelley.TxBody Methods ttlTxBodyL ∷ Lens' (TxBody 'TopTx ShelleyEra) SlotNo Source # updateTxBodyL ∷ Lens' (TxBody 'TopTx ShelleyEra) (StrictMaybe (Update ShelleyEra)) Source # | |
data ShelleyTxBodyRaw (l ∷ TxLevel) era where Source #
Constructors
| ShelleyTxBodyRaw | |
Fields
| |
Instances
| HasEraTxLevel ShelleyTxBodyRaw ShelleyEra Source # | |
Defined in Cardano.Ledger.Shelley.TxBody Methods toSTxLevel ∷ ∀ (l ∷ TxLevel). ShelleyTxBodyRaw l ShelleyEra → STxLevel l ShelleyEra Source # | |
| Typeable l ⇒ DecCBOR (Annotator (ShelleyTxBodyRaw l ShelleyEra)) Source # | |
Defined in Cardano.Ledger.Shelley.TxBody Methods decCBOR ∷ Decoder s (Annotator (ShelleyTxBodyRaw l ShelleyEra)) Source # dropCBOR ∷ Proxy (Annotator (ShelleyTxBodyRaw l ShelleyEra)) → Decoder s () Source # label ∷ Proxy (Annotator (ShelleyTxBodyRaw l ShelleyEra)) → Text Source # | |
| Typeable l ⇒ DecCBOR (ShelleyTxBodyRaw l ShelleyEra) Source # | |
Defined in Cardano.Ledger.Shelley.TxBody Methods decCBOR ∷ Decoder s (ShelleyTxBodyRaw l ShelleyEra) Source # dropCBOR ∷ Proxy (ShelleyTxBodyRaw l ShelleyEra) → Decoder s () Source # label ∷ Proxy (ShelleyTxBodyRaw l ShelleyEra) → Text Source # | |
| EraTxBody era ⇒ EncCBOR (ShelleyTxBodyRaw l era) Source # | |
Defined in Cardano.Ledger.Shelley.TxBody Methods encCBOR ∷ ShelleyTxBodyRaw l era → Encoding Source # | |
| EraTxBody era ⇒ NFData (ShelleyTxBodyRaw t era) Source # | |
Defined in Cardano.Ledger.Shelley.TxBody Methods rnf ∷ ShelleyTxBodyRaw t era → () # | |
| EraTxBody era ⇒ Show (ShelleyTxBodyRaw l era) Source # | |
Defined in Cardano.Ledger.Shelley.TxBody Methods showsPrec ∷ Int → ShelleyTxBodyRaw l era → ShowS # show ∷ ShelleyTxBodyRaw l era → String # showList ∷ [ShelleyTxBodyRaw l era] → ShowS # | |
| EraTxBody era ⇒ Eq (ShelleyTxBodyRaw l era) Source # | |
Defined in Cardano.Ledger.Shelley.TxBody Methods (==) ∷ ShelleyTxBodyRaw l era → ShelleyTxBodyRaw l era → Bool # (/=) ∷ ShelleyTxBodyRaw l era → ShelleyTxBodyRaw l era → Bool # | |
| (Typeable era, Typeable l) ⇒ NoThunks (ShelleyTxBodyRaw l era) Source # | |
Defined in Cardano.Ledger.Shelley.TxBody | |
| type MemoHashIndex (ShelleyTxBodyRaw t era) Source # | |
Defined in Cardano.Ledger.Shelley.TxBody | |
data EraIndependentTxBody Source #
Instances
| HashAnnotated (TxBody l ShelleyEra) EraIndependentTxBody Source # | |
Defined in Cardano.Ledger.Shelley.TxBody Methods hashAnnotated ∷ TxBody l ShelleyEra → SafeHash EraIndependentTxBody Source # | |
data RewardAccount Source #
An account based address for rewards
Constructors
| RewardAccount | |
Fields
| |
Instances
| FromJSON RewardAccount | |||||
Defined in Cardano.Ledger.Address Methods parseJSON ∷ Value → Parser RewardAccount Source # parseJSONList ∷ Value → Parser [RewardAccount] Source # | |||||
| FromJSONKey RewardAccount | |||||
Defined in Cardano.Ledger.Address | |||||
| ToJSON RewardAccount | |||||
Defined in Cardano.Ledger.Address Methods toJSON ∷ RewardAccount → Value Source # toEncoding ∷ RewardAccount → Encoding Source # toJSONList ∷ [RewardAccount] → Value Source # | |||||
| ToJSONKey RewardAccount | |||||
Defined in Cardano.Ledger.Address | |||||
| DecCBOR RewardAccount | |||||
Defined in Cardano.Ledger.Address | |||||
| EncCBOR RewardAccount | |||||
Defined in Cardano.Ledger.Address Methods | |||||
| Default RewardAccount | |||||
Defined in Cardano.Ledger.Address Methods | |||||
| NFData RewardAccount | |||||
Defined in Cardano.Ledger.Address Methods rnf ∷ RewardAccount → () # | |||||
| Generic RewardAccount | |||||
Defined in Cardano.Ledger.Address Associated Types
| |||||
| Show RewardAccount | |||||
Defined in Cardano.Ledger.Address Methods showsPrec ∷ Int → RewardAccount → ShowS # show ∷ RewardAccount → String # showList ∷ [RewardAccount] → ShowS # | |||||
| Eq RewardAccount | |||||
Defined in Cardano.Ledger.Address | |||||
| Ord RewardAccount | |||||
Defined in Cardano.Ledger.Address Methods compare ∷ RewardAccount → RewardAccount → Ordering # (<) ∷ RewardAccount → RewardAccount → Bool # (<=) ∷ RewardAccount → RewardAccount → Bool # (>) ∷ RewardAccount → RewardAccount → Bool # (>=) ∷ RewardAccount → RewardAccount → Bool # | |||||
| NoThunks RewardAccount | |||||
Defined in Cardano.Ledger.Address | |||||
| type Rep RewardAccount | |||||
Defined in Cardano.Ledger.Address type Rep RewardAccount = D1 ('MetaData "RewardAccount" "Cardano.Ledger.Address" "cardano-ledger-core-1.19.0.0-inplace" 'False) (C1 ('MetaCons "RewardAccount" 'PrefixI 'True) (S1 ('MetaSel ('Just "raNetwork") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Network) :*: S1 ('MetaSel ('Just "raCredential") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Credential 'Staking)))) | |||||
newtype Withdrawals Source #
This is called wdrl in the spec.
Constructors
| Withdrawals | |
Fields | |
Instances
| DecCBOR Withdrawals | |||||
Defined in Cardano.Ledger.Address | |||||
| EncCBOR Withdrawals | |||||
Defined in Cardano.Ledger.Address Methods | |||||
| NFData Withdrawals | |||||
Defined in Cardano.Ledger.Address Methods rnf ∷ Withdrawals → () # | |||||
| Generic Withdrawals | |||||
Defined in Cardano.Ledger.Address Associated Types
| |||||
| Show Withdrawals | |||||
Defined in Cardano.Ledger.Address Methods showsPrec ∷ Int → Withdrawals → ShowS # show ∷ Withdrawals → String # showList ∷ [Withdrawals] → ShowS # | |||||
| Eq Withdrawals | |||||
Defined in Cardano.Ledger.Address | |||||
| NoThunks Withdrawals | |||||
Defined in Cardano.Ledger.Address | |||||
| type Rep Withdrawals | |||||
Defined in Cardano.Ledger.Address type Rep Withdrawals = D1 ('MetaData "Withdrawals" "Cardano.Ledger.Address" "cardano-ledger-core-1.19.0.0-inplace" 'True) (C1 ('MetaCons "Withdrawals" 'PrefixI 'True) (S1 ('MetaSel ('Just "unWithdrawals") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map RewardAccount Coin)))) | |||||
getShelleyGenesisKeyHashCountTxBody ∷ ShelleyEraTxBody era ⇒ TxBody 'TopTx era → Int Source #
Count number of Genesis keys supplied in the updateTxBodyL field.
Orphan instances
| EraTxBody ShelleyEra Source # | |||||
Associated Types
Methods mkBasicTxBody ∷ ∀ (l ∷ TxLevel). Typeable l ⇒ TxBody l ShelleyEra Source # inputsTxBodyL ∷ ∀ (l ∷ TxLevel). Lens' (TxBody l ShelleyEra) (Set TxIn) Source # outputsTxBodyL ∷ ∀ (l ∷ TxLevel). Lens' (TxBody l ShelleyEra) (StrictSeq (TxOut ShelleyEra)) Source # feeTxBodyL ∷ Lens' (TxBody 'TopTx ShelleyEra) Coin Source # withdrawalsTxBodyL ∷ ∀ (l ∷ TxLevel). Lens' (TxBody l ShelleyEra) Withdrawals Source # auxDataHashTxBodyL ∷ ∀ (l ∷ TxLevel). Lens' (TxBody l ShelleyEra) (StrictMaybe TxAuxDataHash) Source # spendableInputsTxBodyF ∷ ∀ (l ∷ TxLevel). SimpleGetter (TxBody l ShelleyEra) (Set TxIn) Source # allInputsTxBodyF ∷ SimpleGetter (TxBody 'TopTx ShelleyEra) (Set TxIn) Source # certsTxBodyL ∷ ∀ (l ∷ TxLevel). Lens' (TxBody l ShelleyEra) (StrictSeq (TxCert ShelleyEra)) Source # getTotalDepositsTxBody ∷ ∀ (l ∷ TxLevel). PParams ShelleyEra → (KeyHash 'StakePool → Bool) → TxBody l ShelleyEra → Coin Source # getTotalRefundsTxBody ∷ ∀ (l ∷ TxLevel). PParams ShelleyEra → (Credential 'Staking → Maybe Coin) → (Credential 'DRepRole → Maybe Coin) → TxBody l ShelleyEra → Coin Source # getGenesisKeyHashCountTxBody ∷ TxBody 'TopTx ShelleyEra → Int Source # | |||||
| HasEraTxLevel TxBody ShelleyEra Source # | |||||
Methods toSTxLevel ∷ ∀ (l ∷ TxLevel). TxBody l ShelleyEra → STxLevel l ShelleyEra Source # | |||||
| Typeable l ⇒ DecCBOR (Annotator (TxBody l ShelleyEra)) Source # | |||||
| Typeable l ⇒ ToCBOR (TxBody l ShelleyEra) Source # | |||||
| EncCBOR (TxBody l ShelleyEra) Source # | |||||
| SafeToHash (TxBody l ShelleyEra) Source # | |||||
Methods originalBytes ∷ TxBody l ShelleyEra → ByteString Source # originalBytesSize ∷ TxBody l ShelleyEra → Int Source # makeHashWithExplicitProxys ∷ Proxy i → TxBody l ShelleyEra → SafeHash i Source # | |||||
| EqRaw (TxBody l ShelleyEra) Source # | |||||
Methods eqRaw ∷ TxBody l ShelleyEra → TxBody l ShelleyEra → Bool Source # | |||||
| Memoized (TxBody l ShelleyEra) Source # | |||||
Associated Types
Methods getMemoBytes ∷ TxBody l ShelleyEra → MemoBytes (RawType (TxBody l ShelleyEra)) wrapMemoBytes ∷ MemoBytes (RawType (TxBody l ShelleyEra)) → TxBody l ShelleyEra | |||||
| NFData (TxBody l ShelleyEra) Source # | |||||
Methods rnf ∷ TxBody l ShelleyEra → () # | |||||
| Generic (TxBody l ShelleyEra) Source # | |||||
Associated Types
Methods from ∷ TxBody l ShelleyEra → Rep (TxBody l ShelleyEra) x # to ∷ Rep (TxBody l ShelleyEra) x → TxBody l ShelleyEra # | |||||
| Show (TxBody l ShelleyEra) Source # | |||||
| Eq (TxBody l ShelleyEra) Source # | |||||
Methods (==) ∷ TxBody l ShelleyEra → TxBody l ShelleyEra → Bool # (/=) ∷ TxBody l ShelleyEra → TxBody l ShelleyEra → Bool # | |||||
| Typeable l ⇒ NoThunks (TxBody l ShelleyEra) Source # | |||||
| HashAnnotated (TxBody l ShelleyEra) EraIndependentTxBody Source # | |||||
Methods hashAnnotated ∷ TxBody l ShelleyEra → SafeHash EraIndependentTxBody Source # | |||||