web3-0.7.0.0: Ethereum API for Haskell

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

Network.Ethereum.ABI.Class

Description

Ethereum ABI encoding base type classes.

Synopsis

Documentation

class ABIType a where Source #

A class for abi encoding datatype descriptions

Minimal complete definition

isDynamic

Methods

isDynamic :: Proxy a -> Bool Source #

Instances

ABIType Address Source # 
(<=) n 256 => ABIType (IntN n) Source # 

Methods

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

(<=) n 256 => ABIType (UIntN n) Source # 

Methods

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

ABIType a => ABIType (Singleton a) Source # 

class ABIType a => ABIPut a where Source #

A class for encoding datatypes to their abi encoding

If your compiler has support for the DeriveGeneric and DefaultSignatures language extensions (ghc >= 7.2.1), the abiPut method will have default generic implementations.

To use this option, simply add a deriving Generic clause to your datatype and declare a ABIPut instance for it without giving a definition for abiPut.

Methods

abiPut :: Putter a Source #

abiPut :: (Generic a, Rep a ~ rep, GenericABIPut rep) => Putter a Source #

Instances

ABIPut Address Source # 
(<=) n 256 => ABIPut (IntN n) Source # 

Methods

abiPut :: Putter (IntN n) Source #

(<=) n 256 => ABIPut (UIntN n) Source # 

Methods

abiPut :: Putter (UIntN n) Source #

ABIPut a => ABIPut (Singleton a) Source # 

class ABIType a => ABIGet a where Source #

A class for decoding datatypes from their abi encoding

If your compiler has support for the DeriveGeneric and DefaultSignatures language extensions (ghc >= 7.2.1), the abiGet method will have default generic implementations.

To use this option, simply add a deriving Generic clause to your datatype and declare a ABIGet instance for it without giving a definition for abiGet.

Methods

abiGet :: Get a Source #

abiGet :: (Generic a, Rep a ~ rep, GenericABIGet rep) => Get a Source #

Instances

ABIGet Address Source # 
(<=) n 256 => ABIGet (IntN n) Source # 

Methods

abiGet :: Get (IntN n) Source #

(<=) n 256 => ABIGet (UIntN n) Source # 

Methods

abiGet :: Get (UIntN n) Source #

ABIGet a => ABIGet (Singleton a) Source # 

Methods

abiGet :: Get (Singleton a) Source #

class GenericABIPut a where Source #

A class for encoding generically composed datatypes to their abi encoding

Minimal complete definition

gAbiPut

Methods

gAbiPut :: Putter a Source #

class GenericABIGet a where Source #

A class for decoding generically composed datatypes from their abi encoding

Minimal complete definition

gAbiGet

Methods

gAbiGet :: Get a Source #