Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Language.Marlowe.Protocol.Query.Types
Documentation
type MarloweQuery = Query MarloweSyncRequest Source #
newtype WithdrawalFilter Source #
Constructors
WithdrawalFilter | |
Fields
|
Instances
data ContractFilter Source #
Constructors
ContractFilter | |
Fields
|
Instances
data PayoutFilter Source #
Constructors
PayoutFilter | |
Fields
|
Instances
data RuntimeStatus Source #
Constructors
RuntimeStatus | |
Fields
|
Instances
data MarloweSyncRequest a where Source #
Constructors
ReqStatus :: MarloweSyncRequest RuntimeStatus | |
ReqContractHeaders :: ContractFilter -> Range ContractId -> MarloweSyncRequest (Maybe (Page ContractId ContractHeader)) | |
ReqContractState :: ContractId -> MarloweSyncRequest (Maybe SomeContractState) | |
ReqTransaction :: TxId -> MarloweSyncRequest (Maybe SomeTransaction) | |
ReqTransactions :: ContractId -> MarloweSyncRequest (Maybe SomeTransactions) | |
ReqWithdrawal :: TxId -> MarloweSyncRequest (Maybe Withdrawal) | |
ReqWithdrawals :: WithdrawalFilter -> Range TxId -> MarloweSyncRequest (Maybe (Page TxId Withdrawal)) | |
ReqPayouts :: PayoutFilter -> Range TxOutRef -> MarloweSyncRequest (Maybe (Page TxOutRef PayoutHeader)) | |
ReqPayout :: TxOutRef -> MarloweSyncRequest (Maybe SomePayoutState) |
Instances
Constructors
Range | |
Fields
|
Instances
Instances
Bifunctor Page Source # | |
Foldable (Page a) Source # | |
Defined in Language.Marlowe.Protocol.Query.Types Methods fold :: Monoid m => Page a m -> m Source # foldMap :: Monoid m => (a0 -> m) -> Page a a0 -> m Source # foldMap' :: Monoid m => (a0 -> m) -> Page a a0 -> m Source # foldr :: (a0 -> b -> b) -> b -> Page a a0 -> b Source # foldr' :: (a0 -> b -> b) -> b -> Page a a0 -> b Source # foldl :: (b -> a0 -> b) -> b -> Page a a0 -> b Source # foldl' :: (b -> a0 -> b) -> b -> Page a a0 -> b Source # foldr1 :: (a0 -> a0 -> a0) -> Page a a0 -> a0 Source # foldl1 :: (a0 -> a0 -> a0) -> Page a a0 -> a0 Source # toList :: Page a a0 -> [a0] Source # null :: Page a a0 -> Bool Source # length :: Page a a0 -> Int Source # elem :: Eq a0 => a0 -> Page a a0 -> Bool Source # maximum :: Ord a0 => Page a a0 -> a0 Source # minimum :: Ord a0 => Page a a0 -> a0 Source # | |
Traversable (Page a) Source # | |
Defined in Language.Marlowe.Protocol.Query.Types | |
Functor (Page a) Source # | |
(ToJSON a, ToJSON b) => ToJSON (Page a b) Source # | |
Defined in Language.Marlowe.Protocol.Query.Types Methods toEncoding :: Page a b -> Encoding toJSONList :: [Page a b] -> Value toEncodingList :: [Page a b] -> Encoding | |
Generic (Page a b) Source # | |
(Read b, Read a) => Read (Page a b) Source # | |
(Show b, Show a) => Show (Page a b) Source # | |
(Binary b, Binary a) => Binary (Page a b) Source # | |
(Eq b, Eq a) => Eq (Page a b) Source # | |
(Ord b, Ord a) => Ord (Page a b) Source # | |
Defined in Language.Marlowe.Protocol.Query.Types | |
(Variations b, Variations a) => Variations (Page a b) Source # | |
Defined in Language.Marlowe.Protocol.Query.Types Methods variations :: NonEmpty (Page a b) | |
type Rep (Page a b) Source # | |
Defined in Language.Marlowe.Protocol.Query.Types type Rep (Page a b) = D1 ('MetaData "Page" "Language.Marlowe.Protocol.Query.Types" "marlowe-runtime-0.0.5-5pGkNfd81d6aGuKZAtvLW-sync-api" 'False) (C1 ('MetaCons "Page" 'PrefixI 'True) (S1 ('MetaSel ('Just "items") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [b]) :*: (S1 ('MetaSel ('Just "nextRange") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Range a))) :*: S1 ('MetaSel ('Just "totalCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))) |
data SomeContractState Source #
Constructors
forall v. SomeContractState (MarloweVersion v) (ContractState v) |
Instances
ToJSON SomeContractState Source # | |
Defined in Language.Marlowe.Protocol.Query.Types Methods toJSON :: SomeContractState -> Value toEncoding :: SomeContractState -> Encoding toJSONList :: [SomeContractState] -> Value toEncodingList :: [SomeContractState] -> Encoding | |
Show SomeContractState Source # | |
Defined in Language.Marlowe.Protocol.Query.Types | |
Binary SomeContractState Source # | |
Defined in Language.Marlowe.Protocol.Query.Types Methods put :: SomeContractState -> Put get :: Get SomeContractState putList :: [SomeContractState] -> Put | |
Eq SomeContractState Source # | |
Defined in Language.Marlowe.Protocol.Query.Types Methods (==) :: SomeContractState -> SomeContractState -> Bool Source # (/=) :: SomeContractState -> SomeContractState -> Bool Source # | |
Variations SomeContractState Source # | |
Defined in Language.Marlowe.Protocol.Query.Types Methods |
data SomePayoutState Source #
Constructors
forall v. SomePayoutState (MarloweVersion v) (PayoutState v) |
Instances
ToJSON SomePayoutState Source # | |
Defined in Language.Marlowe.Protocol.Query.Types Methods toJSON :: SomePayoutState -> Value toEncoding :: SomePayoutState -> Encoding toJSONList :: [SomePayoutState] -> Value toEncodingList :: [SomePayoutState] -> Encoding | |
Show SomePayoutState Source # | |
Defined in Language.Marlowe.Protocol.Query.Types | |
Binary SomePayoutState Source # | |
Defined in Language.Marlowe.Protocol.Query.Types | |
Eq SomePayoutState Source # | |
Defined in Language.Marlowe.Protocol.Query.Types Methods (==) :: SomePayoutState -> SomePayoutState -> Bool Source # (/=) :: SomePayoutState -> SomePayoutState -> Bool Source # | |
Variations SomePayoutState Source # | |
Defined in Language.Marlowe.Protocol.Query.Types Methods |
data SomeTransaction Source #
Constructors
forall v. SomeTransaction | |
Fields
|
Instances
ToJSON SomeTransaction Source # | |
Defined in Language.Marlowe.Protocol.Query.Types Methods toJSON :: SomeTransaction -> Value toEncoding :: SomeTransaction -> Encoding toJSONList :: [SomeTransaction] -> Value toEncodingList :: [SomeTransaction] -> Encoding | |
Show SomeTransaction Source # | |
Defined in Language.Marlowe.Protocol.Query.Types | |
Binary SomeTransaction Source # | |
Defined in Language.Marlowe.Protocol.Query.Types | |
Eq SomeTransaction Source # | |
Defined in Language.Marlowe.Protocol.Query.Types Methods (==) :: SomeTransaction -> SomeTransaction -> Bool Source # (/=) :: SomeTransaction -> SomeTransaction -> Bool Source # | |
Variations SomeTransaction Source # | |
Defined in Language.Marlowe.Protocol.Query.Types Methods |
data SomeTransactions Source #
Constructors
forall v. SomeTransactions (MarloweVersion v) [Transaction v] |
Instances
ToJSON SomeTransactions Source # | |
Defined in Language.Marlowe.Protocol.Query.Types Methods toJSON :: SomeTransactions -> Value toEncoding :: SomeTransactions -> Encoding toJSONList :: [SomeTransactions] -> Value toEncodingList :: [SomeTransactions] -> Encoding | |
Show SomeTransactions Source # | |
Defined in Language.Marlowe.Protocol.Query.Types | |
Binary SomeTransactions Source # | |
Defined in Language.Marlowe.Protocol.Query.Types Methods put :: SomeTransactions -> Put get :: Get SomeTransactions putList :: [SomeTransactions] -> Put | |
Eq SomeTransactions Source # | |
Defined in Language.Marlowe.Protocol.Query.Types Methods (==) :: SomeTransactions -> SomeTransactions -> Bool Source # (/=) :: SomeTransactions -> SomeTransactions -> Bool Source # | |
Variations SomeTransactions Source # | |
Defined in Language.Marlowe.Protocol.Query.Types Methods |
data ContractState v Source #
Constructors
ContractState | |
Fields
|
Instances
data PayoutHeader Source #
Constructors
PayoutHeader | |
Fields
|
Instances
data PayoutState v Source #
Constructors
PayoutState | |
Fields
|
Instances
data Withdrawal Source #
Constructors
Withdrawal | |
Fields
|
Instances
Constructors
Ascending | |
Descending |
Instances
ToJSON Order Source # | |
Defined in Language.Marlowe.Protocol.Query.Types Methods toEncoding :: Order -> Encoding toJSONList :: [Order] -> Value toEncodingList :: [Order] -> Encoding | |
Bounded Order Source # | |
Enum Order Source # | |
Defined in Language.Marlowe.Protocol.Query.Types Methods succ :: Order -> Order Source # pred :: Order -> Order Source # toEnum :: Int -> Order Source # fromEnum :: Order -> Int Source # enumFrom :: Order -> [Order] Source # enumFromThen :: Order -> Order -> [Order] Source # enumFromTo :: Order -> Order -> [Order] Source # enumFromThenTo :: Order -> Order -> Order -> [Order] Source # | |
Generic Order Source # | |
Read Order Source # | |
Show Order Source # | |
Binary Order Source # | |
Eq Order Source # | |
Ord Order Source # | |
Defined in Language.Marlowe.Protocol.Query.Types | |
Variations Order Source # | |
Defined in Language.Marlowe.Protocol.Query.Types Methods | |
type Rep Order Source # | |
Defined in Language.Marlowe.Protocol.Query.Types |