| Copyright | Aleksandr Krupenkin 2016-2024 |
|---|---|
| License | Apache-2.0 |
| Maintainer | mail@akru.me |
| Stability | experimental |
| Portability | noportable |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Data.Solidity.Prim.Bytes
Description
Bytes and BytesN primitive types.
Synopsis
- data Bytes
- type BytesN n = SizedByteArray n Bytes
The dynamic length Bytes type
Simplest Byte Array
Instances
| FromJSON Bytes Source # | |
| ToJSON Bytes Source # | |
Defined in Data.Solidity.Prim.Bytes | |
| IsString Bytes Source # | |
Defined in Data.Solidity.Prim.Bytes Methods fromString :: String -> Bytes # | |
| Monoid Bytes | |
| Semigroup Bytes | |
| Show Bytes | |
| NormalForm Bytes | |
Defined in Data.ByteArray.Bytes Methods toNormalForm :: Bytes -> () # | |
| NFData Bytes | |
Defined in Data.ByteArray.Bytes | |
| Eq Bytes | |
| Ord Bytes | |
| ByteArray Bytes | |
| ByteArrayAccess Bytes | |
| AbiGet Bytes Source # | |
| AbiPut Bytes Source # | |
| AbiType Bytes Source # | |
| KnownNat n => FromJSON (BytesN n) Source # | |
| KnownNat n => ToJSON (BytesN n) Source # | |
Defined in Data.Solidity.Prim.Bytes | |
| KnownNat n => IsString (BytesN n) Source # | |
Defined in Data.Solidity.Prim.Bytes Methods fromString :: String -> BytesN n # | |
| (KnownNat n, n <= 32) => AbiGet (BytesN n) Source # | |
| KnownNat n => AbiPut (BytesN n) Source # | |
| KnownNat n => AbiType (BytesN n) Source # | |
The fixed length BytesN type
type BytesN n = SizedByteArray n Bytes Source #
Sized byte array with fixed length in bytes
Orphan instances
| FromJSON Bytes Source # | |
| ToJSON Bytes Source # | |
| IsString Bytes Source # | |
Methods fromString :: String -> Bytes # | |
| AbiGet ByteString Source # | |
Methods abiGet :: Get ByteString Source # | |
| AbiGet Bytes Source # | |
| AbiPut ByteString Source # | |
Methods | |
| AbiPut Bytes Source # | |
| AbiType ByteString Source # | |
| AbiType Bytes Source # | |
| KnownNat n => FromJSON (BytesN n) Source # | |
| KnownNat n => ToJSON (BytesN n) Source # | |
| KnownNat n => IsString (BytesN n) Source # | |
Methods fromString :: String -> BytesN n # | |
| (KnownNat n, n <= 32) => AbiGet (BytesN n) Source # | |
| KnownNat n => AbiPut (BytesN n) Source # | |
| KnownNat n => AbiType (BytesN n) Source # | |