web3-0.7.3.0: Ethereum API for Haskell

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

Network.Ethereum.ABI.Prim.Bytes

Contents

Description

Ethereum ABI bytes and bytesN types.

Synopsis

Documentation

data Bytes :: * #

Simplest Byte Array

Instances

Eq Bytes 

Methods

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

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

Ord 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 

Methods

showsPrec :: Int -> Bytes -> ShowS #

show :: Bytes -> String #

showList :: [Bytes] -> ShowS #

Semigroup Bytes 

Methods

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

sconcat :: NonEmpty Bytes -> Bytes #

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

Monoid Bytes 

Methods

mempty :: Bytes #

mappend :: Bytes -> Bytes -> Bytes #

mconcat :: [Bytes] -> Bytes #

NormalForm Bytes 

Methods

toNormalForm :: Bytes -> () #

NFData Bytes 

Methods

rnf :: Bytes -> () #

ByteArray Bytes 

Methods

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

ByteArrayAccess Bytes 

Methods

length :: Bytes -> Int #

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

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

Orphan instances

IsString Bytes Source # 

Methods

fromString :: String -> Bytes #

ToJSON Bytes Source # 
FromJSON Bytes Source # 
ABIGet ByteString Source # 
ABIGet Bytes Source # 

Methods

abiGet :: Get Bytes Source #

ABIPut ByteString Source # 
ABIPut Bytes Source # 
ABIType ByteString Source # 
ABIType Bytes Source # 
(KnownNat n, (<=) n 32) => IsString (BytesN n) Source # 

Methods

fromString :: String -> BytesN n #

(KnownNat n, (<=) n 32) => ToJSON (BytesN n) Source # 
(KnownNat n, (<=) n 32) => FromJSON (BytesN n) Source # 
(KnownNat n, (<=) n 32) => ABIGet (BytesN n) Source # 

Methods

abiGet :: Get (BytesN n) Source #

(KnownNat n, (<=) n 32) => ABIPut (BytesN n) Source # 

Methods

abiPut :: Putter (BytesN n) Source #

(<=) n 32 => ABIType (BytesN n) Source # 

Methods

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