web3-0.9.1.0: Web3 API for Haskell.

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

Data.Solidity.Abi.Codec

Contents

Description

Solidity contract ABI encoding functions.

Synopsis

AbiPut/AbiGet type class encoding

encode :: (AbiPut a, ByteArray ba) => a -> ba Source #

Encode datatype to Ethereum Abi-encoding

decode :: (ByteArrayAccess ba, AbiGet a) => ba -> Either String a Source #

Decode datatype from Ethereum Abi-encoding

Generic encoding

encode' :: (Generic a, Rep a ~ rep, GenericAbiPut rep, ByteArray ba) => a -> ba Source #

Generic driven version of encode

decode' :: (Generic a, Rep a ~ rep, GenericAbiGet rep, ByteArrayAccess ba) => ba -> Either String a Source #

Generic driven version of decode