cardano-api-1.36.0
Safe HaskellNone
LanguageHaskell2010

Cardano.Api.Orphans

Orphan instances

FromJSON SystemStart Source # 
Instance details

Methods

parseJSON ∷ Value → Parser SystemStart #

parseJSONList ∷ Value → Parser [SystemStart] #

ToJSON CertIx Source # 
Instance details

Methods

toJSON ∷ CertIx → Value #

toEncoding ∷ CertIx → Encoding #

toJSONList ∷ [CertIx] → Value #

toEncodingList ∷ [CertIx] → Encoding #

ToJSON TxIx Source # 
Instance details

Methods

toJSON ∷ TxIx → Value #

toEncoding ∷ TxIx → Encoding #

toJSONList ∷ [TxIx] → Value #

toEncodingList ∷ [TxIx] → Encoding #

ToJSON SystemStart Source # 
Instance details

Methods

toJSONSystemStart → Value #

toEncodingSystemStart → Encoding #

toJSONList ∷ [SystemStart] → Value #

toEncodingList ∷ [SystemStart] → Encoding #

ToJSON AssetName Source # 
Instance details

Methods

toJSON ∷ AssetName → Value #

toEncoding ∷ AssetName → Encoding #

toJSONList ∷ [AssetName] → Value #

toEncodingList ∷ [AssetName] → Encoding #

ToJSON Likelihood Source # 
Instance details

Methods

toJSON ∷ Likelihood → Value #

toEncoding ∷ Likelihood → Encoding #

toJSONList ∷ [Likelihood] → Value #

toEncodingList ∷ [Likelihood] → Encoding #

ToJSON Ptr Source # 
Instance details

Methods

toJSON ∷ Ptr → Value #

toEncoding ∷ Ptr → Encoding #

toJSONList ∷ [Ptr] → Value #

toEncodingList ∷ [Ptr] → Encoding #

ToJSON DeltaCoin Source # 
Instance details

Methods

toJSON ∷ DeltaCoin → Value #

toEncoding ∷ DeltaCoin → Encoding #

toJSONList ∷ [DeltaCoin] → Value #

toEncodingList ∷ [DeltaCoin] → Encoding #

ToJSON AccountState Source # 
Instance details

Methods

toJSON ∷ AccountState → Value #

toEncoding ∷ AccountState → Encoding #

toJSONList ∷ [AccountState] → Value #

toEncodingList ∷ [AccountState] → Encoding #

ToJSON RewardType Source # 
Instance details

Methods

toJSON ∷ RewardType → Value #

toEncoding ∷ RewardType → Encoding #

toJSONList ∷ [RewardType] → Value #

toEncodingList ∷ [RewardType] → Encoding #

ToJSONKey AssetName Source # 
Instance details

Methods

toJSONKey ∷ ToJSONKeyFunction AssetName

toJSONKeyList ∷ ToJSONKeyFunction [AssetName]

ToJSONKey Ptr Source # 
Instance details

Methods

toJSONKey ∷ ToJSONKeyFunction Ptr

toJSONKeyList ∷ ToJSONKeyFunction [Ptr]

(ToJSON (PParamsDelta era), UsesPParams era) ⇒ ToJSON (PPUPState era) Source # 
Instance details

Methods

toJSON ∷ PPUPState era → Value #

toEncoding ∷ PPUPState era → Encoding #

toJSONList ∷ [PPUPState era] → Value #

toEncodingList ∷ [PPUPState era] → Encoding #

ToJSON (PParamsUpdate era) Source # 
Instance details

Methods

toJSON ∷ PParamsUpdate era → Value #

toEncoding ∷ PParamsUpdate era → Encoding #

toJSONList ∷ [PParamsUpdate era] → Value #

toEncodingList ∷ [PParamsUpdate era] → Encoding #

(ToJSON (PParamsDelta era), UsesPParams era) ⇒ ToJSON (ProposedPPUpdates era) Source # 
Instance details

Methods

toJSON ∷ ProposedPPUpdates era → Value #

toEncoding ∷ ProposedPPUpdates era → Encoding #

toJSONList ∷ [ProposedPPUpdates era] → Value #

toEncodingList ∷ [ProposedPPUpdates era] → Encoding #

Crypto crypto ⇒ ToJSON (GenDelegs crypto) Source # 
Instance details

Methods

toJSON ∷ GenDelegs crypto → Value #

toEncoding ∷ GenDelegs crypto → Encoding #

toJSONList ∷ [GenDelegs crypto] → Value #

toEncodingList ∷ [GenDelegs crypto] → Encoding #

Crypto crypto ⇒ ToJSON (PState crypto) Source # 
Instance details

Methods

toJSON ∷ PState crypto → Value #

toEncoding ∷ PState crypto → Encoding #

toJSONList ∷ [PState crypto] → Value #

toEncodingList ∷ [PState crypto] → Encoding #

Crypto crypto ⇒ ToJSON (IndividualPoolStake crypto) Source # 
Instance details

Methods

toJSON ∷ IndividualPoolStake crypto → Value #

toEncoding ∷ IndividualPoolStake crypto → Encoding #

toJSONList ∷ [IndividualPoolStake crypto] → Value #

toEncodingList ∷ [IndividualPoolStake crypto] → Encoding #

Crypto crypto ⇒ ToJSON (PoolDistr crypto) Source # 
Instance details

Methods

toJSON ∷ PoolDistr crypto → Value #

toEncoding ∷ PoolDistr crypto → Encoding #

toJSONList ∷ [PoolDistr crypto] → Value #

toEncodingList ∷ [PoolDistr crypto] → Encoding #

(ShelleyBasedEra era, ToJSON (TxOut era)) ⇒ ToJSON (UTxO era) Source # 
Instance details

Methods

toJSON ∷ UTxO era → Value #

toEncoding ∷ UTxO era → Encoding #

toJSONList ∷ [UTxO era] → Value #

toEncodingList ∷ [UTxO era] → Encoding #

Crypto crypto ⇒ ToJSON (TxIn crypto) Source # 
Instance details

Methods

toJSON ∷ TxIn crypto → Value #

toEncoding ∷ TxIn crypto → Encoding #

toJSONList ∷ [TxIn crypto] → Value #

toEncodingList ∷ [TxIn crypto] → Encoding #

(ShelleyBasedEra era, ToJSON (TxOut era), ToJSON (PParams era), ToJSON (PParamsDelta era)) ⇒ ToJSON (EpochState era) Source # 
Instance details

Methods

toJSON ∷ EpochState era → Value #

toEncoding ∷ EpochState era → Encoding #

toJSONList ∷ [EpochState era] → Value #

toEncodingList ∷ [EpochState era] → Encoding #

(ShelleyBasedEra era, ToJSON (TxOut era), ToJSON (PParamsDelta era)) ⇒ ToJSON (LedgerState era) Source # 
Instance details

Methods

toJSON ∷ LedgerState era → Value #

toEncoding ∷ LedgerState era → Encoding #

toJSONList ∷ [LedgerState era] → Value #

toEncodingList ∷ [LedgerState era] → Encoding #

(ShelleyBasedEra era, ToJSON (TxOut era), ToJSON (PParamsDelta era)) ⇒ ToJSON (UTxOState era) Source # 
Instance details

Methods

toJSON ∷ UTxOState era → Value #

toEncoding ∷ UTxOState era → Encoding #

toJSONList ∷ [UTxOState era] → Value #

toEncodingList ∷ [UTxOState era] → Encoding #

Crypto crypto ⇒ ToJSON (DPState crypto) Source # 
Instance details

Methods

toJSON ∷ DPState crypto → Value #

toEncoding ∷ DPState crypto → Encoding #

toJSONList ∷ [DPState crypto] → Value #

toEncodingList ∷ [DPState crypto] → Encoding #

Crypto crypto ⇒ ToJSON (SnapShots crypto) Source # 
Instance details

Methods

toJSON ∷ SnapShots crypto → Value #

toEncoding ∷ SnapShots crypto → Encoding #

toJSONList ∷ [SnapShots crypto] → Value #

toEncodingList ∷ [SnapShots crypto] → Encoding #

Crypto crypto ⇒ ToJSON (NonMyopic crypto) Source # 
Instance details

Methods

toJSON ∷ NonMyopic crypto → Value #

toEncoding ∷ NonMyopic crypto → Encoding #

toJSONList ∷ [NonMyopic crypto] → Value #

toEncodingList ∷ [NonMyopic crypto] → Encoding #

Crypto crypto ⇒ ToJSON (PulsingRewUpdate crypto) Source # 
Instance details

Methods

toJSON ∷ PulsingRewUpdate crypto → Value #

toEncoding ∷ PulsingRewUpdate crypto → Encoding #

toJSONList ∷ [PulsingRewUpdate crypto] → Value #

toEncodingList ∷ [PulsingRewUpdate crypto] → Encoding #

(ShelleyBasedEra era, ToJSON (Value era)) ⇒ ToJSON (TxOut era) Source # 
Instance details

Methods

toJSON ∷ TxOut era → Value #

toEncoding ∷ TxOut era → Encoding #

toJSONList ∷ [TxOut era] → Value #

toEncodingList ∷ [TxOut era] → Encoding #

Crypto crypto ⇒ ToJSON (IncrementalStake crypto) Source # 
Instance details

Methods

toJSON ∷ IncrementalStake crypto → Value #

toEncoding ∷ IncrementalStake crypto → Encoding #

toJSONList ∷ [IncrementalStake crypto] → Value #

toEncodingList ∷ [IncrementalStake crypto] → Encoding #

(Era era, ToJSON (Value era), ToJSON (Datum era), ToJSON (Script era), Crypto era ~ StandardCrypto) ⇒ ToJSON (TxOut era) Source # 
Instance details

Methods

toJSON ∷ TxOut era → Value #

toEncoding ∷ TxOut era → Encoding #

toJSONList ∷ [TxOut era] → Value #

toEncodingList ∷ [TxOut era] → Encoding #

ToJSON (Script (BabbageEra StandardCrypto)) Source # 
Instance details

Methods

toJSON ∷ Script (BabbageEra StandardCrypto) → Value #

toEncoding ∷ Script (BabbageEra StandardCrypto) → Encoding #

toJSONList ∷ [Script (BabbageEra StandardCrypto)] → Value #

toEncodingList ∷ [Script (BabbageEra StandardCrypto)] → Encoding #

ToJSON (Value era) Source # 
Instance details

Methods

toJSON ∷ Value era → Value0 #

toEncoding ∷ Value era → Encoding #

toJSONList ∷ [Value era] → Value0 #

toEncodingList ∷ [Value era] → Encoding #

ToJSON (PolicyID era) Source # 
Instance details

Methods

toJSON ∷ PolicyID era → Value #

toEncoding ∷ PolicyID era → Encoding #

toJSONList ∷ [PolicyID era] → Value #

toEncodingList ∷ [PolicyID era] → Encoding #

Crypto crypto ⇒ ToJSON (InstantaneousRewards crypto) Source # 
Instance details

Methods

toJSON ∷ InstantaneousRewards crypto → Value #

toEncoding ∷ InstantaneousRewards crypto → Encoding #

toJSONList ∷ [InstantaneousRewards crypto] → Value #

toEncodingList ∷ [InstantaneousRewards crypto] → Encoding #

Crypto crypto ⇒ ToJSON (SnapShot crypto) Source # 
Instance details

Methods

toJSON ∷ SnapShot crypto → Value #

toEncoding ∷ SnapShot crypto → Encoding #

toJSONList ∷ [SnapShot crypto] → Value #

toEncodingList ∷ [SnapShot crypto] → Encoding #

Crypto crypto ⇒ ToJSON (FutureGenDeleg crypto) Source # 
Instance details

Methods

toJSON ∷ FutureGenDeleg crypto → Value #

toEncoding ∷ FutureGenDeleg crypto → Encoding #

toJSONList ∷ [FutureGenDeleg crypto] → Value #

toEncodingList ∷ [FutureGenDeleg crypto] → Encoding #

Crypto crypto ⇒ ToJSON (DState crypto) Source # 
Instance details

Methods

toJSON ∷ DState crypto → Value #

toEncoding ∷ DState crypto → Encoding #

toJSONList ∷ [DState crypto] → Value #

toEncodingList ∷ [DState crypto] → Encoding #

(Era era, Crypto era ~ StandardCrypto) ⇒ ToJSON (Datum era) Source # 
Instance details

Methods

toJSON ∷ Datum era → Value #

toEncoding ∷ Datum era → Encoding #

toJSONList ∷ [Datum era] → Value #

toEncodingList ∷ [Datum era] → Encoding #

Crypto crypto ⇒ ToJSON (UnifiedMap crypto) Source # 
Instance details

Methods

toJSON ∷ UnifiedMap crypto → Value #

toEncoding ∷ UnifiedMap crypto → Encoding #

toJSONList ∷ [UnifiedMap crypto] → Value #

toEncodingList ∷ [UnifiedMap crypto] → Encoding #

ToJSON (PParamsUpdate era) Source # 
Instance details

Methods

toJSON ∷ PParamsUpdate era → Value #

toEncoding ∷ PParamsUpdate era → Encoding #

toJSONList ∷ [PParamsUpdate era] → Value #

toEncodingList ∷ [PParamsUpdate era] → Encoding #

ToJSON (PParams (BabbageEra StandardCrypto)) Source # 
Instance details

Methods

toJSON ∷ PParams (BabbageEra StandardCrypto) → Value #

toEncoding ∷ PParams (BabbageEra StandardCrypto) → Encoding #

toJSONList ∷ [PParams (BabbageEra StandardCrypto)] → Value #

toEncodingList ∷ [PParams (BabbageEra StandardCrypto)] → Encoding #

Crypto crypto ⇒ ToJSON (RewardUpdate crypto) Source # 
Instance details

Methods

toJSON ∷ RewardUpdate crypto → Value #

toEncoding ∷ RewardUpdate crypto → Encoding #

toJSONList ∷ [RewardUpdate crypto] → Value #

toEncodingList ∷ [RewardUpdate crypto] → Encoding #

Crypto crypto ⇒ ToJSON (Stake crypto) Source # 
Instance details

Methods

toJSON ∷ Stake crypto → Value #

toEncoding ∷ Stake crypto → Encoding #

toJSONList ∷ [Stake crypto] → Value #

toEncodingList ∷ [Stake crypto] → Encoding #

Crypto crypto ⇒ ToJSON (Reward crypto) Source # 
Instance details

Methods

toJSON ∷ Reward crypto → Value #

toEncoding ∷ Reward crypto → Encoding #

toJSONList ∷ [Reward crypto] → Value #

toEncodingList ∷ [Reward crypto] → Encoding #

Crypto crypto ⇒ ToJSONKey (TxIn crypto) Source # 
Instance details

Methods

toJSONKey ∷ ToJSONKeyFunction (TxIn crypto)

toJSONKeyList ∷ ToJSONKeyFunction [TxIn crypto]

ToJSONKey (PolicyID era) Source # 
Instance details

Methods

toJSONKey ∷ ToJSONKeyFunction (PolicyID era)

toJSONKeyList ∷ ToJSONKeyFunction [PolicyID era]

Crypto c ⇒ ToJSON (SafeHash c a) Source # 
Instance details

Methods

toJSON ∷ SafeHash c a → Value #

toEncoding ∷ SafeHash c a → Encoding #

toJSONList ∷ [SafeHash c a] → Value #

toEncodingList ∷ [SafeHash c a] → Encoding #

Crypto crypto ⇒ ToJSON (Bimap Ptr (Credential 'Staking crypto)) Source # 
Instance details

Methods

toJSON ∷ Bimap Ptr (Credential 'Staking crypto) → Value #

toEncoding ∷ Bimap Ptr (Credential 'Staking crypto) → Encoding #

toJSONList ∷ [Bimap Ptr (Credential 'Staking crypto)] → Value #

toEncodingList ∷ [Bimap Ptr (Credential 'Staking crypto)] → Encoding #

(ToJSON coin, ToJSON ptr, ToJSON pool) ⇒ ToJSON (Trip coin ptr pool) Source # 
Instance details

Methods

toJSON ∷ Trip coin ptr pool → Value #

toEncoding ∷ Trip coin ptr pool → Encoding #

toJSONList ∷ [Trip coin ptr pool] → Value #

toEncodingList ∷ [Trip coin ptr pool] → Encoding #

Crypto crypto ⇒ ToJSON (VMap VB VB (KeyHash 'StakePool crypto) (PoolParams crypto)) Source # 
Instance details

Methods

toJSON ∷ VMap VB VB (KeyHash 'StakePool crypto) (PoolParams crypto) → Value #

toEncoding ∷ VMap VB VB (KeyHash 'StakePool crypto) (PoolParams crypto) → Encoding #

toJSONList ∷ [VMap VB VB (KeyHash 'StakePool crypto) (PoolParams crypto)] → Value #

toEncodingList ∷ [VMap VB VB (KeyHash 'StakePool crypto) (PoolParams crypto)] → Encoding #

Crypto crypto ⇒ ToJSON (VMap VB VB (Credential 'Staking crypto) (KeyHash 'StakePool crypto)) Source # 
Instance details

Methods

toJSON ∷ VMap VB VB (Credential 'Staking crypto) (KeyHash 'StakePool crypto) → Value #

toEncoding ∷ VMap VB VB (Credential 'Staking crypto) (KeyHash 'StakePool crypto) → Encoding #

toJSONList ∷ [VMap VB VB (Credential 'Staking crypto) (KeyHash 'StakePool crypto)] → Value #

toEncodingList ∷ [VMap VB VB (Credential 'Staking crypto) (KeyHash 'StakePool crypto)] → Encoding #

Crypto crypto ⇒ ToJSON (VMap VB VP (Credential 'Staking crypto) (CompactForm Coin)) Source # 
Instance details

Methods

toJSON ∷ VMap VB VP (Credential 'Staking crypto) (CompactForm Coin) → Value #

toEncoding ∷ VMap VB VP (Credential 'Staking crypto) (CompactForm Coin) → Encoding #

toJSONList ∷ [VMap VB VP (Credential 'Staking crypto) (CompactForm Coin)] → Value #

toEncodingList ∷ [VMap VB VP (Credential 'Staking crypto) (CompactForm Coin)] → Encoding #