Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- class HasCodec a where
- encode :: a -> ByteString
- decode :: ByteString -> Either Text a
- defaultSDKAesonOptions :: String -> Options
Documentation
class HasCodec a where Source #
This class is used as a codec for all items stored in | the database as well as incoming transaction messages.
encode :: a -> ByteString Source #
decode :: ByteString -> Either Text a Source #
Instances
HasCodec () Source # | |
Defined in Tendermint.SDK.Codec encode :: () -> ByteString Source # decode :: ByteString -> Either Text () Source # | |
HasCodec TypedMessage Source # | |
Defined in Tendermint.SDK.Types.Message encode :: TypedMessage -> ByteString Source # decode :: ByteString -> Either Text TypedMessage Source # | |
HasCodec RawTransaction Source # | |
Defined in Tendermint.SDK.Types.Transaction encode :: RawTransaction -> ByteString Source # decode :: ByteString -> Either Text RawTransaction Source # | |
HasCodec Account Source # | |
Defined in Tendermint.SDK.Modules.Auth.Types |
defaultSDKAesonOptions :: String -> Options Source #