Copyright | Aleksandr Krupenkin 2016-2021 |
---|---|
License | Apache-2.0 |
Maintainer | mail@akru.me |
Stability | experimental |
Portability | noportable |
Safe Haskell | None |
Language | Haskell2010 |
Solidity primitive data types.
Documentation
Ethereum account address
Instances
Eq Address Source # | |
Ord Address Source # | |
Show Address Source # | |
IsString Address Source # | |
Defined in Data.Solidity.Prim.Address fromString :: String -> Address # | |
Generic Address Source # | |
ToJSON Address Source # | |
Defined in Data.Solidity.Prim.Address | |
FromJSON Address Source # | |
Default Address Source # | |
Defined in Data.Solidity.Prim.Address | |
Generic Address Source # | |
AbiGet Address Source # | |
AbiPut Address Source # | |
AbiType Address Source # | |
type Rep Address Source # | |
Defined in Data.Solidity.Prim.Address | |
type Code Address Source # | |
Defined in Data.Solidity.Prim.Address |
Simplest Byte Array
Instances
Eq Bytes | |
Ord Bytes | |
Show Bytes | |
IsString Bytes Source # | |
Defined in Data.Solidity.Prim.Bytes fromString :: String -> Bytes # | |
Semigroup Bytes | |
Monoid Bytes | |
ToJSON Bytes Source # | |
Defined in Data.Solidity.Prim.Bytes | |
FromJSON Bytes Source # | |
NormalForm Bytes | |
Defined in Data.ByteArray.Bytes toNormalForm :: Bytes -> () # | |
NFData Bytes | |
Defined in Data.ByteArray.Bytes | |
ByteArray Bytes | |
ByteArrayAccess Bytes | |
AbiGet Bytes Source # | |
AbiPut Bytes Source # | |
AbiType Bytes Source # | |
(KnownNat n, n <= 32) => IsString (BytesN n) Source # | |
Defined in Data.Solidity.Prim.Bytes fromString :: String -> BytesN n # | |
(KnownNat n, n <= 32) => ToJSON (BytesN n) Source # | |
Defined in Data.Solidity.Prim.Bytes | |
(KnownNat n, n <= 32) => FromJSON (BytesN n) Source # | |
(KnownNat n, n <= 32) => AbiGet (BytesN n) Source # | |
(KnownNat n, n <= 32) => AbiPut (BytesN n) Source # | |
n <= 32 => AbiType (BytesN n) Source # | |
type BytesN n = SizedByteArray n Bytes Source #
Sized byte array with fixed length in bytes
Signed integer with fixed length in bits.
Instances
data UIntN (n :: Nat) Source #
Unsigned integer with fixed length in bits.
Instances
A Typed-level sized List equivalent to [a]
Instances
(NatWithinBound Int n, KnownNat n) => IsList (ListN n a) Source # | |
Eq a => Eq (ListN n a) | |
Ord a => Ord (ListN n a) | |
Defined in Basement.Sized.List | |
Show a => Show (ListN n a) | |
Generic (ListN n a) | |
NormalForm a => NormalForm (ListN n a) | |
Defined in Basement.Sized.List toNormalForm :: ListN n a -> () # | |
(NatWithinBound Int n, KnownNat n, AbiGet a) => AbiGet (ListN n a) Source # | |
AbiPut a => AbiPut (ListN n a) Source # | |
AbiType (ListN n a) Source # | |
type Rep (ListN n a) | |
Defined in Basement.Sized.List | |
type Item (ListN n a) Source # | |
Defined in Data.Solidity.Prim.List |