Module

Network.Ethereum.Web3.Types.Types

Package
purescript-web3
Repository
f-o-a-m/purescript-web3

#Sign Source

data Sign

Constructors

Instances

#Signed Source

data Signed a

Represents values that can be either positive or negative.

Constructors

Instances

#asSigned Source

asSigned :: forall a. a -> Signed a

Coerce a value into a positive signed value

#HexString Source

#hexLength Source

hexLength :: HexString -> Int

Compute the length of the hex string, which is twice the number of bytes it represents

#Address Source

newtype Address

Represents and Ethereum address, which is a 20 byte HexString

Instances

#ChainCursor Source

data ChainCursor

Refers to a particular block time, used when making calls, transactions, or watching for events.

Constructors

Instances

#Block Source

newtype Block

Constructors

Instances

#Transaction Source

newtype Transaction

Constructors

Instances

#TransactionReceipt Source

newtype TransactionReceipt

Constructors

Instances

#ETH Source

data ETH :: Effect

Instances

#forkWeb3 Source

forkWeb3 :: forall a e. Provider -> Web3 e a -> Aff (eth :: ETH | e) (Fiber (eth :: ETH | e) (Either Web3Error a))

Fork an asynchronous ETH action

#forkWeb3' Source

forkWeb3' :: forall a e. Web3 e a -> Web3 e (Fiber (eth :: ETH | e) (Either Web3Error a))

Fork an asynchronous ETH action inside Web3 monad

#runWeb3 Source

runWeb3 :: forall a e. Provider -> Web3 e a -> Aff (eth :: ETH | e) (Either Web3Error a)

Run an asynchronous ETH action

#Web3 Source

newtype Web3 e a

A monad for asynchronous Web3 actions

Constructors

Instances

#throwWeb3 Source

throwWeb3 :: forall a e. Error -> Web3 e a

#Filter Source

newtype Filter

Low-level event filter data structure

Instances

#defaultFilter Source

#FilterId Source

newtype FilterId

Used by the ethereum client to identify the filter you are querying

Instances

#EventAction Source

data EventAction

EventAction Represents a flag to continue or discontinue listening to the filter

Constructors

Instances

#Change Source

newtype Change

Changes pulled by low-level call 'eth_getFilterChanges', 'eth_getLogs', and 'eth_getFilterLogs'

Constructors

Instances

#FalseOrObject Source

newtype FalseOrObject a

Newtype wrapper around Maybe to handle cases where Web3 passes back either false or some data type

Constructors

Instances

#unFalseOrObject Source

unFalseOrObject :: forall a. FalseOrObject a -> Maybe a

#SyncStatus Source

newtype SyncStatus

Constructors

Instances

#MethodName Source

type MethodName = String

Web3 RPC

#Request Source

#Response Source

newtype Response a

Constructors

Instances

#RpcError Source

newtype RpcError

Constructors

Instances

#CallError Source

data CallError

Constructors

Instances