Module

Cardano.Provider

Re-exports from Cardano.Provider.Error

#ClientError

data ClientError

Constructors

Instances

#pprintServiceError

#pprintClientError

Re-exports from Cardano.Provider.TxEvaluation

#RedeemerPointer

type RedeemerPointer = { redeemerIndex :: UInt, redeemerTag :: RedeemerTag }

#OgmiosTxOutRef

type OgmiosTxOutRef = { index :: UInt, txId :: String }

#OgmiosTxOut

type OgmiosTxOut = { address :: OgmiosAddress, datum :: Maybe String, datumHash :: Maybe String, script :: Maybe ScriptRef, value :: Value }

#OgmiosTxIn

type OgmiosTxIn = { index :: Int, txId :: OgmiosTxId }

#OgmiosTxId

#OgmiosScript

#OgmiosDatum

#OgmiosAddress

#ExecutionUnits

type ExecutionUnits = { memory :: BigNum, steps :: BigNum }

#showRedeemerPointer

Re-exports from Cardano.Provider.Type

#Provider

type Provider = { doesTxExist :: TransactionHash -> AffE Boolean, evaluateTx :: Transaction -> Map OgmiosTxOutRef OgmiosTxOut -> Aff TxEvaluationR, getChainTip :: AffE Tip, getCurrentEpoch :: Aff BigNum, getDatumByHash :: DataHash -> AffE (Maybe PlutusData), getEraSummaries :: AffE EraSummaries, getOutputAddressesByTxHash :: TransactionHash -> AffE (Array Address), getPoolIds :: AffE (Array PoolPubKeyHash), getPubKeyHashDelegationsAndRewards :: NetworkId -> StakePubKeyHash -> AffE (Maybe DelegationsAndRewards), getScriptByHash :: ScriptHash -> AffE (Maybe ScriptRef), getTxAuxiliaryData :: TransactionHash -> Aff (Either GetTxMetadataError AuxiliaryData), getUtxoByOref :: TransactionInput -> AffE (Maybe TransactionOutput), getValidatorHashDelegationsAndRewards :: NetworkId -> ScriptHash -> AffE (Maybe DelegationsAndRewards), submitTx :: Transaction -> AffE TransactionHash, utxosAt :: Address -> AffE UtxoMap }

#AffE

type AffE (a :: Type) = Aff (Either ClientError a)

Modules