atlas-0.1.0.0: Application backend for Plutus smart contracts on Cardano
Copyright(c) 2023 GYELD GMBH
LicenseApache 2.0
Maintainersupport@geniusyield.co
Stabilitydevelop
Safe HaskellNone
LanguageHaskell2010

GeniusYield.Types.Providers

Description

 
Synopsis

Lookup Datum

type GYLookupDatum = GYDatumHashIO (Maybe GYDatum) #

How to query a datum by its hash?

Submit Tx

type GYSubmitTx = GYTxIO GYTxId #

How to submit a transaction?

Get current slot

data GYSlotActions #

How to get current slot?

gyWaitForNextBlock_GYProvidersIO () #

gyWaitForNextBlock variant which doesn't return current slot.

gyWaitForNextBlockDefaultIO GYSlotIO GYSlot #

Wait for the next block

threadDelay until current slot getter returns another value.

gyWaitUntilSlotDefaultIO GYSlotGYSlotIO GYSlot #

Wait until slot.

Returns the new current slot, which might be larger.

makeSlotActions #

Arguments

NominalDiffTime

The time to cache current slots for.

IO GYSlot

Getting current slot directly from the provider

IO GYSlotActions 

Construct efficient GYSlotActions methods by ensuring the supplied getCurrentSlot is only made after a given duration of time has passed.

This uses IO to set up some mutable references used for caching.

Get network parameters

data GYGetParameters #

How to get protocol parameters? ... and other data to do balancing.

Constructors

GYGetParameters 

Fields

gyGetProtocolParametersGYProvidersIO ProtocolParameters #

gyGetSystemStartGYProvidersIO SystemStart #

gyGetEraHistoryGYProvidersIO (EraHistory CardanoMode) #

makeGetParameters #

Arguments

IO GYSlot

Getting current slot

IO ProtocolParameters

Getting protocol parameters

IO SystemStart

Getting system start

IO (EraHistory CardanoMode)

Getting era history

IO (Set PoolId)

Getting stake pools

IO GYGetParameters 

Construct efficient GYGetParameters methods by ensuring the supplied IO queries are only made when necessary.

This uses IO to set up some mutable references used for caching.

Query UTxO

gyQueryUtxoRefsAtAddressDefault ∷ (GYAddressIO GYUTxOs) → GYAddressIO [GYTxOutRef] #

Query Utxo Refs at address (default implementation)

gyQueryUtxoAtAddressesDefault ∷ (GYAddressIO GYUTxOs) → [GYAddress] → IO GYUTxOs #

Query Utxo for address (default implementation)

Logging

data GYLog #

Constructors

GYLog 

Fields

simpleConsoleLogging #

Arguments

∷ (StringIO ())

putStrLn variant

GYLog 

Providers