cardano-wallet-core-2022.7.1: The Wallet Backend for a Cardano node.
Copyright © 2018-2022 IOHK
License Apache-2.0
Safe Haskell None
Language Haskell2010

Cardano.Wallet.Primitive.Types.ProtocolMagic

Description

Provides the ProtocolMagic type and related constants.

Synopsis

Documentation

newtype ProtocolMagic Source #

Magic constant associated with a given network.

Instances

Instances details
Eq ProtocolMagic Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types.ProtocolMagic

Show ProtocolMagic Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types.ProtocolMagic

Generic ProtocolMagic Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types.ProtocolMagic

NFData ProtocolMagic Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types.ProtocolMagic

ToJSON ProtocolMagic Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types.ProtocolMagic

FromJSON ProtocolMagic Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types.ProtocolMagic

ToText ProtocolMagic Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types.ProtocolMagic

FromText ProtocolMagic Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types.ProtocolMagic

type Rep ProtocolMagic Source #
Instance details

Defined in Cardano.Wallet.Primitive.Types.ProtocolMagic

type Rep ProtocolMagic = D1 (' MetaData "ProtocolMagic" "Cardano.Wallet.Primitive.Types.ProtocolMagic" "cardano-wallet-core-2022.7.1-AGKhlyz9liLKN3QqZD1gj" ' True ) ( C1 (' MetaCons "ProtocolMagic" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "getProtocolMagic") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 Int32 )))

mainnetMagic :: ProtocolMagic Source #

Hard-coded protocol magic for the Byron MainNet

testnetMagic :: forall pm. KnownNat pm => ProtocolMagic Source #

Derive testnet magic from a type-level Nat