Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data PABReq
- = AdjustUnbalancedTxReq UnbalancedTx
- | AwaitSlotReq Slot
- | AwaitTimeReq POSIXTime
- | AwaitUtxoSpentReq TxIn
- | AwaitUtxoProducedReq CardanoAddress
- | AwaitTxStatusChangeReq TxId
- | AwaitTxOutStatusChangeReq TxIn
- | CurrentNodeClientSlotReq
- | CurrentChainIndexSlotReq
- | CurrentTimeReq
- | CurrentNodeClientTimeRangeReq
- | GetParamsReq
- | OwnContractInstanceIdReq
- | OwnAddressesReq
- | ChainIndexQueryReq ChainIndexQuery
- | BalanceTxReq UnbalancedTx
- | WriteBalancedTxReq CardanoTx
- | ExposeEndpointReq ActiveEndpoint
- | PosixTimeRangeToContainedSlotRangeReq POSIXTimeRange
- | YieldUnbalancedTxReq UnbalancedTx
- _AdjustUnbalancedTxReq :: Prism' PABReq UnbalancedTx
- _AwaitSlotReq :: Prism' PABReq Slot
- _AwaitTimeReq :: Prism' PABReq POSIXTime
- _AwaitUtxoSpentReq :: Prism' PABReq TxIn
- _AwaitUtxoProducedReq :: Prism' PABReq CardanoAddress
- _CurrentNodeClientSlotReq :: Prism' PABReq ()
- _CurrentChainIndexSlotReq :: Prism' PABReq ()
- _CurrentTimeReq :: Prism' PABReq ()
- _CurrentNodeClientTimeRangeReq :: Prism' PABReq ()
- _AwaitTxStatusChangeReq :: Prism' PABReq TxId
- _AwaitTxOutStatusChangeReq :: Prism' PABReq TxIn
- _GetParamsReq :: Prism' PABReq ()
- _OwnContractInstanceIdReq :: Prism' PABReq ()
- _OwnAddressesReq :: Prism' PABReq ()
- _ChainIndexQueryReq :: Prism' PABReq ChainIndexQuery
- _BalanceTxReq :: Prism' PABReq UnbalancedTx
- _WriteBalancedTxReq :: Prism' PABReq CardanoTx
- _ExposeEndpointReq :: Prism' PABReq ActiveEndpoint
- _PosixTimeRangeToContainedSlotRangeReq :: Prism' PABReq POSIXTimeRange
- _YieldUnbalancedTxReq :: Prism' PABReq UnbalancedTx
- _DatumFromHash :: Prism' ChainIndexQuery DatumHash
- _ValidatorFromHash :: Prism' ChainIndexQuery ValidatorHash
- _MintingPolicyFromHash :: Prism' ChainIndexQuery MintingPolicyHash
- _RedeemerFromHash :: Prism' ChainIndexQuery RedeemerHash
- _TxOutFromRef :: Prism' ChainIndexQuery TxOutRef
- _TxFromTxId :: Prism' ChainIndexQuery TxId
- _UnspentTxOutFromRef :: Prism' ChainIndexQuery TxOutRef
- _UtxoSetMembership :: Prism' ChainIndexQuery TxOutRef
- _UtxoSetAtAddress :: Prism' ChainIndexQuery (PageQuery TxOutRef, CardanoAddress)
- _UtxoSetWithCurrency :: Prism' ChainIndexQuery (PageQuery TxOutRef, AssetClass)
- _TxsFromTxIds :: Prism' ChainIndexQuery [TxId]
- _TxoSetAtAddress :: Prism' ChainIndexQuery (PageQuery TxOutRef, CardanoAddress)
- _GetTip :: Prism' ChainIndexQuery ()
- data PABResp
- = AdjustUnbalancedTxResp UnbalancedTx
- | AwaitSlotResp Slot
- | AwaitTimeResp POSIXTime
- | AwaitUtxoSpentResp ChainIndexTx
- | AwaitUtxoProducedResp (NonEmpty ChainIndexTx)
- | AwaitTxStatusChangeResp TxId TxStatus
- | AwaitTxOutStatusChangeResp TxIn TxOutStatus
- | CurrentNodeClientSlotResp Slot
- | CurrentChainIndexSlotResp Slot
- | CurrentTimeResp POSIXTime
- | CurrentNodeClientTimeRangeResp (POSIXTime, POSIXTime)
- | GetParamsResp Params
- | OwnContractInstanceIdResp ContractInstanceId
- | OwnAddressesResp (NonEmpty CardanoAddress)
- | ChainIndexQueryResp ChainIndexResponse
- | BalanceTxResp BalanceTxResponse
- | WriteBalancedTxResp WriteBalancedTxResponse
- | ExposeEndpointResp EndpointDescription (EndpointValue Value)
- | PosixTimeRangeToContainedSlotRangeResp (Either SlotConversionError SlotRange)
- | YieldUnbalancedTxResp ()
- _AdjustUnbalancedTxResp :: Prism' PABResp UnbalancedTx
- _AwaitSlotResp :: Prism' PABResp Slot
- _AwaitTimeResp :: Prism' PABResp POSIXTime
- _AwaitUtxoSpentResp :: Prism' PABResp ChainIndexTx
- _AwaitUtxoProducedResp :: Prism' PABResp (NonEmpty ChainIndexTx)
- _CurrentNodeClientSlotResp :: Prism' PABResp Slot
- _CurrentChainIndexSlotResp :: Prism' PABResp Slot
- _CurrentTimeResp :: Prism' PABResp POSIXTime
- _CurrentNodeClientTimeRangeResp :: Prism' PABResp (POSIXTime, POSIXTime)
- _AwaitTxStatusChangeResp :: Prism' PABResp (TxId, TxStatus)
- _AwaitTxStatusChangeResp' :: TxId -> Prism' PABResp TxStatus
- _AwaitTxOutStatusChangeResp :: Prism' PABResp (TxIn, TxOutStatus)
- _GetParamsResp :: Prism' PABResp Params
- _OwnContractInstanceIdResp :: Prism' PABResp ContractInstanceId
- _OwnAddressesResp :: Prism' PABResp (NonEmpty CardanoAddress)
- _ChainIndexQueryResp :: Prism' PABResp ChainIndexResponse
- _BalanceTxResp :: Prism' PABResp BalanceTxResponse
- _WriteBalancedTxResp :: Prism' PABResp WriteBalancedTxResponse
- _ExposeEndpointResp :: Prism' PABResp (EndpointDescription, EndpointValue Value)
- _PosixTimeRangeToContainedSlotRangeResp :: Prism' PABResp (Either SlotConversionError SlotRange)
- _YieldUnbalancedTxResp :: Prism' PABResp ()
- _DatumHashResponse :: Prism' ChainIndexResponse (Maybe Datum)
- _ValidatorHashResponse :: Prism' ChainIndexResponse (Maybe (Versioned Validator))
- _MintingPolicyHashResponse :: Prism' ChainIndexResponse (Maybe (Versioned MintingPolicy))
- _RedeemerHashResponse :: Prism' ChainIndexResponse (Maybe Redeemer)
- _TxOutRefResponse :: Prism' ChainIndexResponse (Maybe DecoratedTxOut)
- _UnspentTxOutResponse :: Prism' ChainIndexResponse (Maybe DecoratedTxOut)
- _TxIdResponse :: Prism' ChainIndexResponse (Maybe ChainIndexTx)
- _UtxoSetMembershipResponse :: Prism' ChainIndexResponse IsUtxoResponse
- _UtxoSetAtResponse :: Prism' ChainIndexResponse UtxosResponse
- _UtxoSetWithCurrencyResponse :: Prism' ChainIndexResponse UtxosResponse
- _TxIdsResponse :: Prism' ChainIndexResponse [ChainIndexTx]
- _TxoSetAtResponse :: Prism' ChainIndexResponse TxosResponse
- _GetTipResponse :: Prism' ChainIndexResponse Tip
- matches :: PABReq -> PABResp -> Bool
- data ChainIndexQuery
- = DatumFromHash DatumHash
- | ValidatorFromHash ValidatorHash
- | MintingPolicyFromHash MintingPolicyHash
- | StakeValidatorFromHash StakeValidatorHash
- | RedeemerFromHash RedeemerHash
- | TxOutFromRef TxOutRef
- | UnspentTxOutFromRef TxOutRef
- | TxFromTxId TxId
- | UtxoSetMembership TxOutRef
- | UtxoSetAtAddress (PageQuery TxOutRef) CardanoAddress
- | UnspentTxOutSetAtAddress (PageQuery TxOutRef) CardanoAddress
- | DatumsAtAddress (PageQuery TxOutRef) CardanoAddress
- | UtxoSetWithCurrency (PageQuery TxOutRef) AssetClass
- | TxsFromTxIds [TxId]
- | TxoSetAtAddress (PageQuery TxOutRef) CardanoAddress
- | GetTip
- data ChainIndexResponse
- = DatumHashResponse (Maybe Datum)
- | ValidatorHashResponse (Maybe (Versioned Validator))
- | MintingPolicyHashResponse (Maybe (Versioned MintingPolicy))
- | StakeValidatorHashResponse (Maybe (Versioned StakeValidator))
- | TxOutRefResponse (Maybe DecoratedTxOut)
- | UnspentTxOutResponse (Maybe DecoratedTxOut)
- | RedeemerHashResponse (Maybe Redeemer)
- | TxIdResponse (Maybe ChainIndexTx)
- | UtxoSetMembershipResponse IsUtxoResponse
- | UtxoSetAtResponse UtxosResponse
- | UnspentTxOutsAtResponse (QueryResponse [(TxOutRef, DecoratedTxOut)])
- | DatumsAtResponse (QueryResponse [Datum])
- | UtxoSetWithCurrencyResponse UtxosResponse
- | TxIdsResponse [ChainIndexTx]
- | TxoSetAtResponse TxosResponse
- | GetTipResponse Tip
- data BalanceTxResponse
- = BalanceTxFailed WalletAPIError
- | BalanceTxSuccess CardanoTx
- balanceTxResponse :: Iso' BalanceTxResponse (Either WalletAPIError CardanoTx)
- data WriteBalancedTxResponse
- = WriteBalancedTxFailed WalletAPIError
- | WriteBalancedTxSuccess CardanoTx
- writeBalancedTxResponse :: Iso' WriteBalancedTxResponse (Either WalletAPIError CardanoTx)
- data ActiveEndpoint = ActiveEndpoint {
- aeDescription :: EndpointDescription
- aeMetadata :: Maybe Value
Plutus application backend request effect types
Requests that Contract
s can make
AdjustUnbalancedTxReq UnbalancedTx | |
AwaitSlotReq Slot | |
AwaitTimeReq POSIXTime | |
AwaitUtxoSpentReq TxIn | |
AwaitUtxoProducedReq CardanoAddress | |
AwaitTxStatusChangeReq TxId | |
AwaitTxOutStatusChangeReq TxIn | |
CurrentNodeClientSlotReq | |
CurrentChainIndexSlotReq | |
CurrentTimeReq | |
CurrentNodeClientTimeRangeReq | |
GetParamsReq | |
OwnContractInstanceIdReq | |
OwnAddressesReq | |
ChainIndexQueryReq ChainIndexQuery | |
BalanceTxReq UnbalancedTx | |
WriteBalancedTxReq CardanoTx | |
ExposeEndpointReq ActiveEndpoint | |
PosixTimeRangeToContainedSlotRangeReq POSIXTimeRange | |
YieldUnbalancedTxReq UnbalancedTx |
Instances
_AdjustUnbalancedTxReq :: Prism' PABReq UnbalancedTx Source #
_AwaitSlotReq :: Prism' PABReq Slot Source #
_AwaitTimeReq :: Prism' PABReq POSIXTime Source #
_AwaitUtxoSpentReq :: Prism' PABReq TxIn Source #
_AwaitUtxoProducedReq :: Prism' PABReq CardanoAddress Source #
_CurrentNodeClientSlotReq :: Prism' PABReq () Source #
_CurrentChainIndexSlotReq :: Prism' PABReq () Source #
_CurrentTimeReq :: Prism' PABReq () Source #
_CurrentNodeClientTimeRangeReq :: Prism' PABReq () Source #
_AwaitTxStatusChangeReq :: Prism' PABReq TxId Source #
_AwaitTxOutStatusChangeReq :: Prism' PABReq TxIn Source #
_GetParamsReq :: Prism' PABReq () Source #
_OwnContractInstanceIdReq :: Prism' PABReq () Source #
_OwnAddressesReq :: Prism' PABReq () Source #
_ChainIndexQueryReq :: Prism' PABReq ChainIndexQuery Source #
_BalanceTxReq :: Prism' PABReq UnbalancedTx Source #
_WriteBalancedTxReq :: Prism' PABReq CardanoTx Source #
_ExposeEndpointReq :: Prism' PABReq ActiveEndpoint Source #
_PosixTimeRangeToContainedSlotRangeReq :: Prism' PABReq POSIXTimeRange Source #
_YieldUnbalancedTxReq :: Prism' PABReq UnbalancedTx Source #
Chain index query effect types
_DatumFromHash :: Prism' ChainIndexQuery DatumHash Source #
_ValidatorFromHash :: Prism' ChainIndexQuery ValidatorHash Source #
_MintingPolicyFromHash :: Prism' ChainIndexQuery MintingPolicyHash Source #
_RedeemerFromHash :: Prism' ChainIndexQuery RedeemerHash Source #
_TxOutFromRef :: Prism' ChainIndexQuery TxOutRef Source #
_TxFromTxId :: Prism' ChainIndexQuery TxId Source #
_UnspentTxOutFromRef :: Prism' ChainIndexQuery TxOutRef Source #
_UtxoSetMembership :: Prism' ChainIndexQuery TxOutRef Source #
_UtxoSetAtAddress :: Prism' ChainIndexQuery (PageQuery TxOutRef, CardanoAddress) Source #
_UtxoSetWithCurrency :: Prism' ChainIndexQuery (PageQuery TxOutRef, AssetClass) Source #
_TxsFromTxIds :: Prism' ChainIndexQuery [TxId] Source #
_TxoSetAtAddress :: Prism' ChainIndexQuery (PageQuery TxOutRef, CardanoAddress) Source #
_GetTip :: Prism' ChainIndexQuery () Source #
Plutus application backend response effect types
Responses that Contract
s receive
AdjustUnbalancedTxResp UnbalancedTx | |
AwaitSlotResp Slot | |
AwaitTimeResp POSIXTime | |
AwaitUtxoSpentResp ChainIndexTx | |
AwaitUtxoProducedResp (NonEmpty ChainIndexTx) | |
AwaitTxStatusChangeResp TxId TxStatus | |
AwaitTxOutStatusChangeResp TxIn TxOutStatus | |
CurrentNodeClientSlotResp Slot | |
CurrentChainIndexSlotResp Slot | |
CurrentTimeResp POSIXTime | |
CurrentNodeClientTimeRangeResp (POSIXTime, POSIXTime) | |
GetParamsResp Params | |
OwnContractInstanceIdResp ContractInstanceId | |
OwnAddressesResp (NonEmpty CardanoAddress) | |
ChainIndexQueryResp ChainIndexResponse | |
BalanceTxResp BalanceTxResponse | |
WriteBalancedTxResp WriteBalancedTxResponse | |
ExposeEndpointResp EndpointDescription (EndpointValue Value) | |
PosixTimeRangeToContainedSlotRangeResp (Either SlotConversionError SlotRange) | |
YieldUnbalancedTxResp () |
Instances
_AdjustUnbalancedTxResp :: Prism' PABResp UnbalancedTx Source #
_AwaitSlotResp :: Prism' PABResp Slot Source #
_AwaitTimeResp :: Prism' PABResp POSIXTime Source #
_AwaitUtxoSpentResp :: Prism' PABResp ChainIndexTx Source #
_AwaitUtxoProducedResp :: Prism' PABResp (NonEmpty ChainIndexTx) Source #
_CurrentNodeClientSlotResp :: Prism' PABResp Slot Source #
_CurrentChainIndexSlotResp :: Prism' PABResp Slot Source #
_CurrentTimeResp :: Prism' PABResp POSIXTime Source #
_CurrentNodeClientTimeRangeResp :: Prism' PABResp (POSIXTime, POSIXTime) Source #
_AwaitTxStatusChangeResp :: Prism' PABResp (TxId, TxStatus) Source #
_AwaitTxStatusChangeResp' :: TxId -> Prism' PABResp TxStatus Source #
_AwaitTxOutStatusChangeResp :: Prism' PABResp (TxIn, TxOutStatus) Source #
_GetParamsResp :: Prism' PABResp Params Source #
_OwnAddressesResp :: Prism' PABResp (NonEmpty CardanoAddress) Source #
_ChainIndexQueryResp :: Prism' PABResp ChainIndexResponse Source #
_BalanceTxResp :: Prism' PABResp BalanceTxResponse Source #
_ExposeEndpointResp :: Prism' PABResp (EndpointDescription, EndpointValue Value) Source #
_PosixTimeRangeToContainedSlotRangeResp :: Prism' PABResp (Either SlotConversionError SlotRange) Source #
_YieldUnbalancedTxResp :: Prism' PABResp () Source #
Chain index response effect types
_DatumHashResponse :: Prism' ChainIndexResponse (Maybe Datum) Source #
_ValidatorHashResponse :: Prism' ChainIndexResponse (Maybe (Versioned Validator)) Source #
_MintingPolicyHashResponse :: Prism' ChainIndexResponse (Maybe (Versioned MintingPolicy)) Source #
_RedeemerHashResponse :: Prism' ChainIndexResponse (Maybe Redeemer) Source #
_TxOutRefResponse :: Prism' ChainIndexResponse (Maybe DecoratedTxOut) Source #
_UnspentTxOutResponse :: Prism' ChainIndexResponse (Maybe DecoratedTxOut) Source #
_TxIdResponse :: Prism' ChainIndexResponse (Maybe ChainIndexTx) Source #
_UtxoSetMembershipResponse :: Prism' ChainIndexResponse IsUtxoResponse Source #
_UtxoSetAtResponse :: Prism' ChainIndexResponse UtxosResponse Source #
_UtxoSetWithCurrencyResponse :: Prism' ChainIndexResponse UtxosResponse Source #
_TxIdsResponse :: Prism' ChainIndexResponse [ChainIndexTx] Source #
_TxoSetAtResponse :: Prism' ChainIndexResponse TxosResponse Source #
_GetTipResponse :: Prism' ChainIndexResponse Tip Source #
Etc.
data ChainIndexQuery Source #
Represents all possible chain index queries. Each constructor contains the
input(s) needed for the query. These possible queries correspond to the
constructors of the data type ChainIndexQueryEffect
.
DatumFromHash DatumHash | |
ValidatorFromHash ValidatorHash | |
MintingPolicyFromHash MintingPolicyHash | |
StakeValidatorFromHash StakeValidatorHash | |
RedeemerFromHash RedeemerHash | |
TxOutFromRef TxOutRef | |
UnspentTxOutFromRef TxOutRef | |
TxFromTxId TxId | |
UtxoSetMembership TxOutRef | |
UtxoSetAtAddress (PageQuery TxOutRef) CardanoAddress | |
UnspentTxOutSetAtAddress (PageQuery TxOutRef) CardanoAddress | |
DatumsAtAddress (PageQuery TxOutRef) CardanoAddress | |
UtxoSetWithCurrency (PageQuery TxOutRef) AssetClass | |
TxsFromTxIds [TxId] | |
TxoSetAtAddress (PageQuery TxOutRef) CardanoAddress | |
GetTip |
Instances
data ChainIndexResponse Source #
Represents all possible responses to chain index queries. Each constructor
contain the output resulting for the chain index query. These possible
responses come from the data type ChainIndexQueryEffect
.
DatumHashResponse (Maybe Datum) | |
ValidatorHashResponse (Maybe (Versioned Validator)) | |
MintingPolicyHashResponse (Maybe (Versioned MintingPolicy)) | |
StakeValidatorHashResponse (Maybe (Versioned StakeValidator)) | |
TxOutRefResponse (Maybe DecoratedTxOut) | |
UnspentTxOutResponse (Maybe DecoratedTxOut) | |
RedeemerHashResponse (Maybe Redeemer) | |
TxIdResponse (Maybe ChainIndexTx) | |
UtxoSetMembershipResponse IsUtxoResponse | |
UtxoSetAtResponse UtxosResponse | |
UnspentTxOutsAtResponse (QueryResponse [(TxOutRef, DecoratedTxOut)]) | |
DatumsAtResponse (QueryResponse [Datum]) | |
UtxoSetWithCurrencyResponse UtxosResponse | |
TxIdsResponse [ChainIndexTx] | |
TxoSetAtResponse TxosResponse | |
GetTipResponse Tip |
Instances
data BalanceTxResponse Source #
BalanceTxFailed WalletAPIError | |
BalanceTxSuccess CardanoTx |
Instances
balanceTxResponse :: Iso' BalanceTxResponse (Either WalletAPIError CardanoTx) Source #
data WriteBalancedTxResponse Source #
Instances
writeBalancedTxResponse :: Iso' WriteBalancedTxResponse (Either WalletAPIError CardanoTx) Source #
data ActiveEndpoint Source #
ActiveEndpoint | |
|