Copyright | (c) 2023 GYELD GMBH |
---|---|
License | Apache 2.0 |
Maintainer | [email protected] |
Stability | develop |
Safe Haskell | Safe-Inferred |
Language | GHC2021 |
Synopsis
- data GYCoreConfig = GYCoreConfig {}
- newtype Confidential a = Confidential a
- data GYCoreProviderInfo
- = GYNodeKupo { }
- | GYMaestro {
- cpiMaestroToken ∷ !(Confidential Text)
- cpiTurboSubmit ∷ !(Maybe Bool)
- | GYBlockfrost { }
- withCfgProviders ∷ GYCoreConfig → GYLogNamespace → (GYProviders → IO a) → IO a
- coreConfigIO ∷ FilePath → IO GYCoreConfig
- coreProviderIO ∷ FilePath → IO GYCoreProviderInfo
- findMaestroTokenAndNetId ∷ [GYCoreConfig] → IO (Text, GYNetworkId)
- isNodeKupo ∷ GYCoreProviderInfo → Bool
- isMaestro ∷ GYCoreProviderInfo → Bool
- isBlockfrost ∷ GYCoreProviderInfo → Bool
Documentation
data GYCoreConfig #
The config to initialize the GY framework with. Should include information on the providers to use, as well as the network id.
In JSON format, this essentially corresponds to:
{ coreProvider: GYCoreProviderInfo, networkId: NetworkId, logging: [GYLogScribeConfig], utxoCacheEnable: boolean }
GYCoreConfig | |
|
Instances
FromJSON GYCoreConfig # | |
Defined in GeniusYield.GYConfig | |
Show GYCoreConfig # | |
Defined in GeniusYield.GYConfig showsPrec ∷ Int → GYCoreConfig → ShowS # show ∷ GYCoreConfig → String # showList ∷ [GYCoreConfig] → ShowS # |
newtype Confidential a #
Newtype with a custom show instance that prevents showing the contained data.
Instances
data GYCoreProviderInfo #
The supported providers. The options are:
- Local node.socket and a maestro API key
- Cardano db sync alongside cardano submit api
- Maestro blockchain API, provided its API token.
In JSON format, this essentially corresponds to:
{ socketPath: FilePath, kupoUrl: string }
| { maestroToken: string, turboSubmit: boolean } | { blockfrostKey: string }
The constructor tags don't need to appear in the JSON.
GYNodeKupo | |
| |
GYMaestro | |
| |
GYBlockfrost | |
Instances
FromJSON GYCoreProviderInfo # | |
Defined in GeniusYield.GYConfig | |
Show GYCoreProviderInfo # | |
Defined in GeniusYield.GYConfig showsPrec ∷ Int → GYCoreProviderInfo → ShowS # show ∷ GYCoreProviderInfo → String # showList ∷ [GYCoreProviderInfo] → ShowS # |
withCfgProviders ∷ GYCoreConfig → GYLogNamespace → (GYProviders → IO a) → IO a #
findMaestroTokenAndNetId ∷ [GYCoreConfig] → IO (Text, GYNetworkId) #