atlas-cardano-0.5.0: 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

local private network

Instances

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

Defined in GeniusYield.Types.NetworkId

ToJSON GYNetworkId #
>>> mapM_ LBS8.putStrLn $ Aeson.encode <$> [GYMainnet, GYTestnetPreprod, GYTestnetPreview, GYTestnetLegacy, GYPrivnet]
"mainnet"
"testnet-preprod"
"testnet-preview"
"testnet"
"privnet"
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