plutus-ledger-1.2.0.0: Wallet API
Safe HaskellNone
LanguageHaskell2010

Ledger.Orphans

Orphan instances

Data NetworkId Source # 
Instance details

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> NetworkId -> c NetworkId Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c NetworkId Source #

toConstr :: NetworkId -> Constr Source #

dataTypeOf :: NetworkId -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c NetworkId) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c NetworkId) Source #

gmapT :: (forall b. Data b => b -> b) -> NetworkId -> NetworkId Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> NetworkId -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> NetworkId -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> NetworkId -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> NetworkId -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> NetworkId -> m NetworkId Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> NetworkId -> m NetworkId Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> NetworkId -> m NetworkId Source #

Data NetworkMagic Source # 
Instance details

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> NetworkMagic -> c NetworkMagic Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c NetworkMagic Source #

toConstr :: NetworkMagic -> Constr Source #

dataTypeOf :: NetworkMagic -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c NetworkMagic) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c NetworkMagic) Source #

gmapT :: (forall b. Data b => b -> b) -> NetworkMagic -> NetworkMagic Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> NetworkMagic -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> NetworkMagic -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> NetworkMagic -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> NetworkMagic -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> NetworkMagic -> m NetworkMagic Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> NetworkMagic -> m NetworkMagic Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> NetworkMagic -> m NetworkMagic Source #

Generic NetworkId Source # 
Instance details

Associated Types

type Rep NetworkId :: Type -> Type Source #

Generic Lovelace Source # 
Instance details

Associated Types

type Rep Lovelace :: Type -> Type Source #

Generic PolicyId Source # 
Instance details

Associated Types

type Rep PolicyId :: Type -> Type Source #

Generic Quantity Source # 
Instance details

Associated Types

type Rep Quantity :: Type -> Type Source #

Methods

from :: Quantity -> Rep Quantity x Source #

to :: Rep Quantity x -> Quantity Source #

Serialise POSIXTime Source # 
Instance details

Methods

encode :: POSIXTime -> Encoding

decode :: Decoder s POSIXTime

encodeList :: [POSIXTime] -> Encoding

decodeList :: Decoder s [POSIXTime]

Hashable POSIXTime Source # 
Instance details

FromJSON POSIXTime Source #

Custom FromJSON instance which allows to parse a JSON number to a POSIXTime value. The parsed JSON value MUST be an Integer or else the parsing fails.

Instance details

Methods

parseJSON :: Value -> Parser POSIXTime

parseJSONList :: Value -> Parser [POSIXTime]

FromJSON ScriptError Source # 
Instance details

Methods

parseJSON :: Value -> Parser ScriptError

parseJSONList :: Value -> Parser [ScriptError]

ToJSON POSIXTime Source #

Custom ToJSON instance which allows to simply convert a POSIXTime value to a JSON number.

Instance details

Methods

toJSON :: POSIXTime -> Value

toEncoding :: POSIXTime -> Encoding

toJSONList :: [POSIXTime] -> Value

toEncodingList :: [POSIXTime] -> Encoding

ToJSON ScriptError Source # 
Instance details

Methods

toJSON :: ScriptError -> Value

toEncoding :: ScriptError -> Encoding

toJSONList :: [ScriptError] -> Value

toEncodingList :: [ScriptError] -> Encoding

ByteArrayAccess TxId Source #

ByteArrayAccess instance for signing support

Instance details

Methods

length :: TxId -> Int

withByteArray :: TxId -> (Ptr p -> IO a) -> IO a

copyByteArrayToPtr :: TxId -> Ptr p -> IO ()

FromHttpApiData LedgerBytes Source # 
Instance details

Methods

parseUrlPiece :: Text -> Either Text LedgerBytes

parseHeader :: ByteString -> Either Text LedgerBytes

parseQueryParam :: Text -> Either Text LedgerBytes

FromHttpApiData PrivateKey Source # 
Instance details

Methods

parseUrlPiece :: Text -> Either Text PrivateKey

parseHeader :: ByteString -> Either Text PrivateKey

parseQueryParam :: Text -> Either Text PrivateKey

ToHttpApiData LedgerBytes Source # 
Instance details

Methods

toUrlPiece :: LedgerBytes -> Text

toEncodedUrlPiece :: LedgerBytes -> Builder

toHeader :: LedgerBytes -> ByteString

toQueryParam :: LedgerBytes -> Text

ToHttpApiData PrivateKey Source # 
Instance details

Methods

toUrlPiece :: PrivateKey -> Text

toEncodedUrlPiece :: PrivateKey -> Builder

toHeader :: PrivateKey -> ByteString

toQueryParam :: PrivateKey -> Text

Serialise (AddressInEra BabbageEra) Source # 
Instance details

Methods

encode :: AddressInEra BabbageEra -> Encoding

decode :: Decoder s (AddressInEra BabbageEra)

encodeList :: [AddressInEra BabbageEra] -> Encoding

decodeList :: Decoder s [AddressInEra BabbageEra]