web3-0.9.0.0: Web3 API for Haskell.

CopyrightAlexander Krupenkin 2018
LicenseBSD3
Maintainermail@akru.me
Stabilityexperimental
Portabilitynoportable
Safe HaskellNone
LanguageHaskell2010

Data.Solidity.Prim.Bytes

Contents

Description

Bytes and BytesN primitive types.

Synopsis

The dynamic length Bytes type

data Bytes #

Simplest Byte Array

Instances
Eq Bytes 
Instance details

Defined in Data.ByteArray.Bytes

Methods

(==) :: Bytes -> Bytes -> Bool #

(/=) :: Bytes -> Bytes -> Bool #

Ord Bytes 
Instance details

Defined in Data.ByteArray.Bytes

Methods

compare :: Bytes -> Bytes -> Ordering #

(<) :: Bytes -> Bytes -> Bool #

(<=) :: Bytes -> Bytes -> Bool #

(>) :: Bytes -> Bytes -> Bool #

(>=) :: Bytes -> Bytes -> Bool #

max :: Bytes -> Bytes -> Bytes #

min :: Bytes -> Bytes -> Bytes #

Show Bytes 
Instance details

Defined in Data.ByteArray.Bytes

Methods

showsPrec :: Int -> Bytes -> ShowS #

show :: Bytes -> String #

showList :: [Bytes] -> ShowS #

IsString Bytes Source # 
Instance details

Defined in Data.Solidity.Prim.Bytes

Methods

fromString :: String -> Bytes #

Semigroup Bytes 
Instance details

Defined in Data.ByteArray.Bytes

Methods

(<>) :: Bytes -> Bytes -> Bytes #

sconcat :: NonEmpty Bytes -> Bytes #

stimes :: Integral b => b -> Bytes -> Bytes #

Monoid Bytes 
Instance details

Defined in Data.ByteArray.Bytes

Methods

mempty :: Bytes #

mappend :: Bytes -> Bytes -> Bytes #

mconcat :: [Bytes] -> Bytes #

ToJSON Bytes Source # 
Instance details

Defined in Data.Solidity.Prim.Bytes

FromJSON Bytes Source # 
Instance details

Defined in Data.Solidity.Prim.Bytes

NormalForm Bytes 
Instance details

Defined in Data.ByteArray.Bytes

Methods

toNormalForm :: Bytes -> () #

NFData Bytes 
Instance details

Defined in Data.ByteArray.Bytes

Methods

rnf :: Bytes -> () #

ByteArray Bytes 
Instance details

Defined in Data.ByteArray.Bytes

Methods

allocRet :: Int -> (Ptr p -> IO a) -> IO (a, Bytes) #

ByteArrayAccess Bytes 
Instance details

Defined in Data.ByteArray.Bytes

Methods

length :: Bytes -> Int #

withByteArray :: Bytes -> (Ptr p -> IO a) -> IO a #

copyByteArrayToPtr :: Bytes -> Ptr p -> IO () #

AbiGet Bytes Source # 
Instance details

Defined in Data.Solidity.Prim.Bytes

Methods

abiGet :: Get Bytes Source #

AbiPut Bytes Source # 
Instance details

Defined in Data.Solidity.Prim.Bytes

AbiType Bytes Source # 
Instance details

Defined in Data.Solidity.Prim.Bytes

(KnownNat n, n <= 32) => IsString (BytesN n) Source # 
Instance details

Defined in Data.Solidity.Prim.Bytes

Methods

fromString :: String -> BytesN n #

(KnownNat n, n <= 32) => ToJSON (BytesN n) Source # 
Instance details

Defined in Data.Solidity.Prim.Bytes

(KnownNat n, n <= 32) => FromJSON (BytesN n) Source # 
Instance details

Defined in Data.Solidity.Prim.Bytes

(KnownNat n, n <= 32) => AbiGet (BytesN n) Source # 
Instance details

Defined in Data.Solidity.Prim.Bytes

Methods

abiGet :: Get (BytesN n) Source #

(KnownNat n, n <= 32) => AbiPut (BytesN n) Source # 
Instance details

Defined in Data.Solidity.Prim.Bytes

Methods

abiPut :: Putter (BytesN n) Source #

n <= 32 => AbiType (BytesN n) Source # 
Instance details

Defined in Data.Solidity.Prim.Bytes

Methods

isDynamic :: Proxy (BytesN n) -> Bool Source #

The fixed length BytesN type

type BytesN n = SizedByteArray n Bytes Source #

Sized byte array with fixed length in bytes

Orphan instances

IsString Bytes Source # 
Instance details

Methods

fromString :: String -> Bytes #

ToJSON Bytes Source # 
Instance details

FromJSON Bytes Source # 
Instance details

AbiGet ByteString Source # 
Instance details

AbiGet Bytes Source # 
Instance details

Methods

abiGet :: Get Bytes Source #

AbiPut ByteString Source # 
Instance details

AbiPut Bytes Source # 
Instance details

AbiType ByteString Source # 
Instance details

AbiType Bytes Source # 
Instance details

(KnownNat n, n <= 32) => IsString (BytesN n) Source # 
Instance details

Methods

fromString :: String -> BytesN n #

(KnownNat n, n <= 32) => ToJSON (BytesN n) Source # 
Instance details

(KnownNat n, n <= 32) => FromJSON (BytesN n) Source # 
Instance details

(KnownNat n, n <= 32) => AbiGet (BytesN n) Source # 
Instance details

Methods

abiGet :: Get (BytesN n) Source #

(KnownNat n, n <= 32) => AbiPut (BytesN n) Source # 
Instance details

Methods

abiPut :: Putter (BytesN n) Source #

n <= 32 => AbiType (BytesN n) Source # 
Instance details

Methods

isDynamic :: Proxy (BytesN n) -> Bool Source #