atlas-cardano-0.6.2: Application backend for Plutus smart contracts on Cardano
Copyright(c) 2023 GYELD GMBH
LicenseApache 2.0
Maintainer[email protected]
Stabilitydevelop
Safe HaskellSafe-Inferred
LanguageGHC2021

GeniusYield.Types.NetworkId

Description

 

Documentation

data GYNetworkId #

Constructors

GYMainnet

cardano mainnet

GYTestnetPreprod

cardano preprod testnet

GYTestnetPreview

cardano preview testnet

GYTestnetLegacy

cardano legacy testnet

GYPrivnet !GYNetworkInfo

local private network

Instances

Instances details
FromJSON GYNetworkId #
>>> Aeson.eitherDecode @GYNetworkId <$> ["\"mainnet\"", "\"testnet-preprod\"", "\"preprod\"", "\"testnet-preview\"", "\"preview\"", "\"testnet\"", "\"no-such-net\""]
[Right GYMainnet,Right GYTestnetPreprod,Right GYTestnetPreprod,Right GYTestnetPreview,Right GYTestnetPreview,Right GYTestnetLegacy,Left "Error in $: Expected mainnet, testnet-preprod, preprod, testnet-preview, preview or testnet"]
Instance details

Defined in GeniusYield.Types.NetworkId

ToJSON GYNetworkId #
>>> mapM_ LBS8.putStrLn $ Aeson.encode <$> [GYMainnet, GYTestnetPreprod, GYTestnetPreview, GYTestnetLegacy]
"mainnet"
"testnet-preprod"
"testnet-preview"
"testnet"
Instance details

Defined in GeniusYield.Types.NetworkId

Read GYNetworkId # 
Instance details

Defined in GeniusYield.Types.NetworkId

Show GYNetworkId # 
Instance details

Defined in GeniusYield.Types.NetworkId

Eq GYNetworkId # 
Instance details

Defined in GeniusYield.Types.NetworkId

Ord GYNetworkId # 
Instance details

Defined in GeniusYield.Types.NetworkId

data GYNetworkInfo #

Instances

Instances details
FromJSON GYNetworkInfo # 
Instance details

Defined in GeniusYield.Types.NetworkId

ToJSON GYNetworkInfo # 
Instance details

Defined in GeniusYield.Types.NetworkId

Generic GYNetworkInfo # 
Instance details

Defined in GeniusYield.Types.NetworkId

Associated Types

type Rep GYNetworkInfoTypeType #

Read GYNetworkInfo # 
Instance details

Defined in GeniusYield.Types.NetworkId

Show GYNetworkInfo # 
Instance details

Defined in GeniusYield.Types.NetworkId

Eq GYNetworkInfo # 
Instance details

Defined in GeniusYield.Types.NetworkId

Ord GYNetworkInfo # 
Instance details

Defined in GeniusYield.Types.NetworkId

type Rep GYNetworkInfo # 
Instance details

Defined in GeniusYield.Types.NetworkId

type Rep GYNetworkInfo = D1 ('MetaData "GYNetworkInfo" "GeniusYield.Types.NetworkId" "atlas-cardano-0.6.2-inplace" 'False) (C1 ('MetaCons "GYNetworkInfo" 'PrefixI 'True) (S1 ('MetaSel ('Just "gyNetworkMagic") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "gyNetworkEpochSlots") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64)))