Network.Ethereum.Web3
- Package
- purescript-web3
- Repository
- f-o-a-m/purescript-web3
Re-exports from Network.Ethereum.Web3.Contract
#call Source
call :: forall selector a b e. CallMethod selector a b => IsSymbol selector => TransactionOptions NoPay -> ChainCursor -> Tagged (SProxy selector) a -> Web3 e (Either CallError b)
Constant call given contract 'Address' in mode and given input data
#mkDataField Source
mkDataField :: forall l fields args name a selector. IsSymbol selector => Generic a (Constructor name args) => RecordFieldsIso args fields l => GenericABIEncode (Constructor name args) => Proxy (Tagged (SProxy selector) a) -> Record fields -> HexString
#event' Source
event' :: forall ni i a e. DecodeEvent i ni a => Filter a -> Int -> (a -> ReaderT Change (Web3 e) EventAction) -> Web3 e Unit
Takes a Filter
and a handler, as well as a windowSize.
It runs the handler over the eventLogs
using reduceEventStream
. If no
TerminateEvent
is thrown, it then transitions to polling.
#event Source
event :: forall ni i a e. DecodeEvent i ni a => Filter a -> (a -> ReaderT Change (Web3 e) EventAction) -> Web3 e Unit
run event'
one block at a time.
#deployContract Source
deployContract :: forall t e rep a. Generic a rep => GenericABIEncode rep => TransactionOptions NoPay -> HexString -> Tagged t a -> Web3 e HexString
Re-exports from Network.Ethereum.Web3.Solidity
#Vector Source
#DOne Source
data DOne :: Digit -> DigitList
Instances
DigitCount (DOne a)
(KnownDigit head) => KnownSize (DOne head)
(IncD d dInc dCarry) => IncP (DOne d) (DOne dInc) dCarry
IntSize (DOne D8)
IntSize (DCons D1 (DOne D6))
IntSize (DCons D2 (DOne D4))
IntSize (DCons D3 (DOne D2))
IntSize (DCons D4 (DOne D0))
IntSize (DCons D4 (DOne D8))
IntSize (DCons D5 (DOne D6))
IntSize (DCons D6 (DOne D4))
IntSize (DCons D7 (DOne D2))
IntSize (DCons D8 (DOne D0))
IntSize (DCons D8 (DOne D8))
IntSize (DCons D9 (DOne D6))
IntSize (DCons D1 (DCons D0 (DOne D4)))
IntSize (DCons D1 (DCons D1 (DOne D2)))
IntSize (DCons D1 (DCons D2 (DOne D0)))
IntSize (DCons D1 (DCons D2 (DOne D8)))
IntSize (DCons D1 (DCons D3 (DOne D6)))
IntSize (DCons D1 (DCons D4 (DOne D4)))
IntSize (DCons D1 (DCons D5 (DOne D2)))
IntSize (DCons D1 (DCons D6 (DOne D0)))
IntSize (DCons D1 (DCons D6 (DOne D8)))
IntSize (DCons D1 (DCons D7 (DOne D6)))
IntSize (DCons D1 (DCons D8 (DOne D4)))
IntSize (DCons D1 (DCons D9 (DOne D2)))
IntSize (DCons D2 (DCons D0 (DOne D0)))
IntSize (DCons D2 (DCons D0 (DOne D8)))
IntSize (DCons D2 (DCons D1 (DOne D6)))
IntSize (DCons D2 (DCons D2 (DOne D4)))
IntSize (DCons D2 (DCons D3 (DOne D2)))
IntSize (DCons D2 (DCons D4 (DOne D0)))
IntSize (DCons D2 (DCons D4 (DOne D8)))
IntSize (DCons D2 (DCons D5 (DOne D6)))
ByteSize (DOne D1)
ByteSize (DOne D2)
ByteSize (DOne D3)
ByteSize (DOne D4)
ByteSize (DOne D5)
ByteSize (DOne D6)
ByteSize (DOne D7)
ByteSize (DOne D8)
ByteSize (DOne D9)
ByteSize (DCons D1 (DOne D0))
ByteSize (DCons D1 (DOne D1))
ByteSize (DCons D1 (DOne D2))
ByteSize (DCons D1 (DOne D3))
ByteSize (DCons D1 (DOne D4))
ByteSize (DCons D1 (DOne D5))
ByteSize (DCons D1 (DOne D6))
ByteSize (DCons D1 (DOne D7))
ByteSize (DCons D1 (DOne D8))
ByteSize (DCons D1 (DOne D9))
ByteSize (DCons D2 (DOne D0))
ByteSize (DCons D2 (DOne D1))
ByteSize (DCons D2 (DOne D2))
ByteSize (DCons D2 (DOne D3))
ByteSize (DCons D2 (DOne D4))
ByteSize (DCons D2 (DOne D5))
ByteSize (DCons D2 (DOne D6))
ByteSize (DCons D2 (DOne D7))
ByteSize (DCons D2 (DOne D8))
ByteSize (DCons D2 (DOne D9))
ByteSize (DCons D3 (DOne D0))
ByteSize (DCons D3 (DOne D1))
ByteSize (DCons D3 (DOne D2))
#DLProxy Source
data DLProxy (d :: DigitList)
For types of kind Type
there is already Type.Proxy
.
this is basicity the same thing but for types of kind DigitList
.
Documentation of Type.Proxy
module has motivation for why would
one need a Proxy for some type which we will not cover here.
Constructors
#DCons Source
data DCons :: Digit -> DigitList -> DigitList
Instances
(DigitCount rest) => DigitCount (DCons a rest)
(DigitCount rest, KnownSize rest, KnownDigit a) => KnownSize (DCons a rest)
(IncP rest restIncOut restIncTrue, IncD a aInc aCarry, If restIncTrue (BProxy aCarry) (BProxy False) (BProxy carryOut), If restIncTrue (DLProxy (DCons aInc restIncOut)) (DLProxy (DCons a restIncOut)) (DLProxy out)) => IncP (DCons a rest) out carryOut
IntSize (DCons D1 (DOne D6))
IntSize (DCons D2 (DOne D4))
IntSize (DCons D3 (DOne D2))
IntSize (DCons D4 (DOne D0))
IntSize (DCons D4 (DOne D8))
IntSize (DCons D5 (DOne D6))
IntSize (DCons D6 (DOne D4))
IntSize (DCons D7 (DOne D2))
IntSize (DCons D8 (DOne D0))
IntSize (DCons D8 (DOne D8))
IntSize (DCons D9 (DOne D6))
IntSize (DCons D1 (DCons D0 (DOne D4)))
IntSize (DCons D1 (DCons D1 (DOne D2)))
IntSize (DCons D1 (DCons D2 (DOne D0)))
IntSize (DCons D1 (DCons D2 (DOne D8)))
IntSize (DCons D1 (DCons D3 (DOne D6)))
IntSize (DCons D1 (DCons D4 (DOne D4)))
IntSize (DCons D1 (DCons D5 (DOne D2)))
IntSize (DCons D1 (DCons D6 (DOne D0)))
IntSize (DCons D1 (DCons D6 (DOne D8)))
IntSize (DCons D1 (DCons D7 (DOne D6)))
IntSize (DCons D1 (DCons D8 (DOne D4)))
IntSize (DCons D1 (DCons D9 (DOne D2)))
IntSize (DCons D2 (DCons D0 (DOne D0)))
IntSize (DCons D2 (DCons D0 (DOne D8)))
IntSize (DCons D2 (DCons D1 (DOne D6)))
IntSize (DCons D2 (DCons D2 (DOne D4)))
IntSize (DCons D2 (DCons D3 (DOne D2)))
IntSize (DCons D2 (DCons D4 (DOne D0)))
IntSize (DCons D2 (DCons D4 (DOne D8)))
IntSize (DCons D2 (DCons D5 (DOne D6)))
ByteSize (DCons D1 (DOne D0))
ByteSize (DCons D1 (DOne D1))
ByteSize (DCons D1 (DOne D2))
ByteSize (DCons D1 (DOne D3))
ByteSize (DCons D1 (DOne D4))
ByteSize (DCons D1 (DOne D5))
ByteSize (DCons D1 (DOne D6))
ByteSize (DCons D1 (DOne D7))
ByteSize (DCons D1 (DOne D8))
ByteSize (DCons D1 (DOne D9))
ByteSize (DCons D2 (DOne D0))
ByteSize (DCons D2 (DOne D1))
ByteSize (DCons D2 (DOne D2))
ByteSize (DCons D2 (DOne D3))
ByteSize (DCons D2 (DOne D4))
ByteSize (DCons D2 (DOne D5))
ByteSize (DCons D2 (DOne D6))
ByteSize (DCons D2 (DOne D7))
ByteSize (DCons D2 (DOne D8))
ByteSize (DCons D2 (DOne D9))
ByteSize (DCons D3 (DOne D0))
ByteSize (DCons D3 (DOne D1))
ByteSize (DCons D3 (DOne D2))
#D8 Source
data D8 :: Digit
Instances
KnownDigit D8
IncD D7 D8 False
IncD D8 D9 False
IntSize (DOne D8)
IntSize (DCons D4 (DOne D8))
IntSize (DCons D8 (DOne D0))
IntSize (DCons D8 (DOne D8))
IntSize (DCons D1 (DCons D2 (DOne D8)))
IntSize (DCons D1 (DCons D6 (DOne D8)))
IntSize (DCons D1 (DCons D8 (DOne D4)))
IntSize (DCons D2 (DCons D0 (DOne D8)))
IntSize (DCons D2 (DCons D4 (DOne D8)))
ByteSize (DOne D8)
ByteSize (DCons D1 (DOne D8))
ByteSize (DCons D2 (DOne D8))
#D6 Source
data D6 :: Digit
Instances
KnownDigit D6
IncD D5 D6 False
IncD D6 D7 False
IntSize (DCons D1 (DOne D6))
IntSize (DCons D5 (DOne D6))
IntSize (DCons D6 (DOne D4))
IntSize (DCons D9 (DOne D6))
IntSize (DCons D1 (DCons D3 (DOne D6)))
IntSize (DCons D1 (DCons D6 (DOne D0)))
IntSize (DCons D1 (DCons D6 (DOne D8)))
IntSize (DCons D1 (DCons D7 (DOne D6)))
IntSize (DCons D2 (DCons D1 (DOne D6)))
IntSize (DCons D2 (DCons D5 (DOne D6)))
ByteSize (DOne D6)
ByteSize (DCons D1 (DOne D6))
ByteSize (DCons D2 (DOne D6))
#D4 Source
data D4 :: Digit
Instances
KnownDigit D4
IncD D3 D4 False
IncD D4 D5 False
IntSize (DCons D2 (DOne D4))
IntSize (DCons D4 (DOne D0))
IntSize (DCons D4 (DOne D8))
IntSize (DCons D6 (DOne D4))
IntSize (DCons D1 (DCons D0 (DOne D4)))
IntSize (DCons D1 (DCons D4 (DOne D4)))
IntSize (DCons D1 (DCons D8 (DOne D4)))
IntSize (DCons D2 (DCons D2 (DOne D4)))
IntSize (DCons D2 (DCons D4 (DOne D0)))
IntSize (DCons D2 (DCons D4 (DOne D8)))
ByteSize (DOne D4)
ByteSize (DCons D1 (DOne D4))
ByteSize (DCons D2 (DOne D4))
#D3 Source
data D3 :: Digit
Instances
KnownDigit D3
IncD D2 D3 False
IncD D3 D4 False
IntSize (DCons D3 (DOne D2))
IntSize (DCons D1 (DCons D3 (DOne D6)))
IntSize (DCons D2 (DCons D3 (DOne D2)))
ByteSize (DOne D3)
ByteSize (DCons D1 (DOne D3))
ByteSize (DCons D2 (DOne D3))
ByteSize (DCons D3 (DOne D0))
ByteSize (DCons D3 (DOne D1))
ByteSize (DCons D3 (DOne D2))
#D2 Source
data D2 :: Digit
Instances
KnownDigit D2
IncD D1 D2 False
IncD D2 D3 False
IntSize (DCons D2 (DOne D4))
IntSize (DCons D3 (DOne D2))
IntSize (DCons D7 (DOne D2))
IntSize (DCons D1 (DCons D1 (DOne D2)))
IntSize (DCons D1 (DCons D2 (DOne D0)))
IntSize (DCons D1 (DCons D2 (DOne D8)))
IntSize (DCons D1 (DCons D5 (DOne D2)))
IntSize (DCons D1 (DCons D9 (DOne D2)))
IntSize (DCons D2 (DCons D0 (DOne D0)))
IntSize (DCons D2 (DCons D0 (DOne D8)))
IntSize (DCons D2 (DCons D1 (DOne D6)))
IntSize (DCons D2 (DCons D2 (DOne D4)))
IntSize (DCons D2 (DCons D3 (DOne D2)))
IntSize (DCons D2 (DCons D4 (DOne D0)))
IntSize (DCons D2 (DCons D4 (DOne D8)))
IntSize (DCons D2 (DCons D5 (DOne D6)))
ByteSize (DOne D2)
ByteSize (DCons D1 (DOne D2))
ByteSize (DCons D2 (DOne D0))
ByteSize (DCons D2 (DOne D1))
ByteSize (DCons D2 (DOne D2))
ByteSize (DCons D2 (DOne D3))
ByteSize (DCons D2 (DOne D4))
ByteSize (DCons D2 (DOne D5))
ByteSize (DCons D2 (DOne D6))
ByteSize (DCons D2 (DOne D7))
ByteSize (DCons D2 (DOne D8))
ByteSize (DCons D2 (DOne D9))
ByteSize (DCons D3 (DOne D2))
#D1 Source
data D1 :: Digit
Instances
KnownDigit D1
IncD D0 D1 False
IncD D1 D2 False
IntSize (DCons D1 (DOne D6))
IntSize (DCons D1 (DCons D0 (DOne D4)))
IntSize (DCons D1 (DCons D1 (DOne D2)))
IntSize (DCons D1 (DCons D2 (DOne D0)))
IntSize (DCons D1 (DCons D2 (DOne D8)))
IntSize (DCons D1 (DCons D3 (DOne D6)))
IntSize (DCons D1 (DCons D4 (DOne D4)))
IntSize (DCons D1 (DCons D5 (DOne D2)))
IntSize (DCons D1 (DCons D6 (DOne D0)))
IntSize (DCons D1 (DCons D6 (DOne D8)))
IntSize (DCons D1 (DCons D7 (DOne D6)))
IntSize (DCons D1 (DCons D8 (DOne D4)))
IntSize (DCons D1 (DCons D9 (DOne D2)))
IntSize (DCons D2 (DCons D1 (DOne D6)))
ByteSize (DOne D1)
ByteSize (DCons D1 (DOne D0))
ByteSize (DCons D1 (DOne D1))
ByteSize (DCons D1 (DOne D2))
ByteSize (DCons D1 (DOne D3))
ByteSize (DCons D1 (DOne D4))
ByteSize (DCons D1 (DOne D5))
ByteSize (DCons D1 (DOne D6))
ByteSize (DCons D1 (DOne D7))
ByteSize (DCons D1 (DOne D8))
ByteSize (DCons D1 (DOne D9))
ByteSize (DCons D2 (DOne D1))
ByteSize (DCons D3 (DOne D1))
#D0 Source
data D0 :: Digit
Instances
KnownDigit D0
IncD D0 D1 False
IncD D9 D0 True
IntSize (DCons D4 (DOne D0))
IntSize (DCons D8 (DOne D0))
IntSize (DCons D1 (DCons D0 (DOne D4)))
IntSize (DCons D1 (DCons D2 (DOne D0)))
IntSize (DCons D1 (DCons D6 (DOne D0)))
IntSize (DCons D2 (DCons D0 (DOne D0)))
IntSize (DCons D2 (DCons D0 (DOne D8)))
IntSize (DCons D2 (DCons D4 (DOne D0)))
ByteSize (DCons D1 (DOne D0))
ByteSize (DCons D2 (DOne D0))
ByteSize (DCons D3 (DOne D0))
#ByteString Source
#ByteSize Source
class (KnownSize n) <= ByteSize n
ByteSize
is empty class, if there is instance of ByteSize
for some number it means there
is solidity type bytes
of that size specific number in like bytes1
, bytes2
... bytes32
Instances
ByteSize (DOne D1)
ByteSize (DOne D2)
ByteSize (DOne D3)
ByteSize (DOne D4)
ByteSize (DOne D5)
ByteSize (DOne D6)
ByteSize (DOne D7)
ByteSize (DOne D8)
ByteSize (DOne D9)
ByteSize (DCons D1 (DOne D0))
ByteSize (DCons D1 (DOne D1))
ByteSize (DCons D1 (DOne D2))
ByteSize (DCons D1 (DOne D3))
ByteSize (DCons D1 (DOne D4))
ByteSize (DCons D1 (DOne D5))
ByteSize (DCons D1 (DOne D6))
ByteSize (DCons D1 (DOne D7))
ByteSize (DCons D1 (DOne D8))
ByteSize (DCons D1 (DOne D9))
ByteSize (DCons D2 (DOne D0))
ByteSize (DCons D2 (DOne D1))
ByteSize (DCons D2 (DOne D2))
ByteSize (DCons D2 (DOne D3))
ByteSize (DCons D2 (DOne D4))
ByteSize (DCons D2 (DOne D5))
ByteSize (DCons D2 (DOne D6))
ByteSize (DCons D2 (DOne D7))
ByteSize (DCons D2 (DOne D8))
ByteSize (DCons D2 (DOne D9))
ByteSize (DCons D3 (DOne D0))
ByteSize (DCons D3 (DOne D1))
ByteSize (DCons D3 (DOne D2))
#Inc Source
class Inc (input :: DigitList) (output :: DigitList) | input -> output
This is like inc
but in type-level for DigitList, it computes
increment of it's input. It could be used like this for example:
cons :: forall a n nInc. Inc n nInc => a -> Vector n a -> Vector nInc a
uncons :: forall a n nDec. Inc nDec n => Vector n a -> { head :: a, tail :: Vector nDec a }
see Network.Ethereum.Web3.Solidity.Vector
Instances
#IntSize Source
class (KnownSize n) <= IntSize n
IntSize
is empty class, if there is instance of IntSize
for some number it means there
is solidity type int
of that size specific number in like int16
, int24
... int256
Instances
IntSize (DOne D8)
IntSize (DCons D1 (DOne D6))
IntSize (DCons D2 (DOne D4))
IntSize (DCons D3 (DOne D2))
IntSize (DCons D4 (DOne D0))
IntSize (DCons D4 (DOne D8))
IntSize (DCons D5 (DOne D6))
IntSize (DCons D6 (DOne D4))
IntSize (DCons D7 (DOne D2))
IntSize (DCons D8 (DOne D0))
IntSize (DCons D8 (DOne D8))
IntSize (DCons D9 (DOne D6))
IntSize (DCons D1 (DCons D0 (DOne D4)))
IntSize (DCons D1 (DCons D1 (DOne D2)))
IntSize (DCons D1 (DCons D2 (DOne D0)))
IntSize (DCons D1 (DCons D2 (DOne D8)))
IntSize (DCons D1 (DCons D3 (DOne D6)))
IntSize (DCons D1 (DCons D4 (DOne D4)))
IntSize (DCons D1 (DCons D5 (DOne D2)))
IntSize (DCons D1 (DCons D6 (DOne D0)))
IntSize (DCons D1 (DCons D6 (DOne D8)))
IntSize (DCons D1 (DCons D7 (DOne D6)))
IntSize (DCons D1 (DCons D8 (DOne D4)))
IntSize (DCons D1 (DCons D9 (DOne D2)))
IntSize (DCons D2 (DCons D0 (DOne D0)))
IntSize (DCons D2 (DCons D0 (DOne D8)))
IntSize (DCons D2 (DCons D1 (DOne D6)))
IntSize (DCons D2 (DCons D2 (DOne D4)))
IntSize (DCons D2 (DCons D3 (DOne D2)))
IntSize (DCons D2 (DCons D4 (DOne D0)))
IntSize (DCons D2 (DCons D4 (DOne D8)))
IntSize (DCons D2 (DCons D5 (DOne D6)))
#KnownSize Source
class KnownSize (d :: DigitList) where
Members
sizeVal :: DLProxy d -> Int
Given proxy of a Digit returns a number it represents
1995 == sizeVal (DLProxy :: DLProxy (D1 :& D9 :& D9 :% D5))
Instances
(KnownDigit head) => KnownSize (DOne head)
(DigitCount rest, KnownSize rest, KnownDigit a) => KnownSize (DCons a rest)
#unBytesN Source
unBytesN :: forall n. KnownSize n => BytesN n -> ByteString
Access the underlying raw bytestring
#fromData Source
fromData :: forall a. ABIDecode a => HexString -> Either ParseError a
Parse encoded value, droping the leading 0x
#fromByteString Source
fromByteString :: forall n. KnownSize n => DLProxy n -> ByteString -> Maybe (BytesN n)
Attempt to coerce a bytestring into one of the appropriate size. See module Network.Ethereum.Web3.Solidity.Sizes for some predefined sizes.
#(:<) Source
Operator alias for Network.Ethereum.Web3.Solidity.Vector.vCons (right-associative / precedence 6)
#type (:&) Source
Operator alias for Network.Ethereum.Web3.Solidity.Size.DCons (right-associative / precedence 6)
#type (:%) Source
Operator alias for Network.Ethereum.Web3.Solidity.Size.DTwo (right-associative / precedence 6)
Re-exports from Network.Ethereum.Web3.Types
#Web3 Source
newtype Web3 e a
A monad for asynchronous Web3 actions
Instances
Functor (Web3 e)
Apply (Web3 e)
Applicative (Web3 e)
Bind (Web3 e)
Monad (Web3 e)
MonadEff (eth :: ETH | e) (Web3 e)
MonadAff (eth :: ETH | e) (Web3 e)
MonadThrow Error (Web3 e)
MonadError Error (Web3 e)
MonadAsk Provider (Web3 e)
MonadReader Provider (Web3 e)
MonadRec (Web3 e)
(EffectRowEquals eff (eth :: ETH | eff')) => MonadFork (Fiber eff) (Web3 eff')
(EffectRowEquals eff (eth :: ETH | eff')) => MonadKill Error (Fiber eff) (Web3 eff')
(EffectRowEquals eff (eth :: ETH | eff')) => MonadBracket Error (Fiber eff) (Web3 eff')
Parallel (Web3Par e) (Web3 e)
#Value Source
newtype Value (a :: TokenUnit)
A value of some token in specific denomination
Instances
Eq (Value a)
Show (Value a)
Decode (Value a)
Encode (Value a)
Encode (Value (NoPay t))
(TokenUnitSpec a) => Semigroup (Value a)
(TokenUnitSpec a) => Monoid (Value a)
(TokenUnitSpec a) => LeftModule (Value a) Int
(TokenUnitSpec a) => TokenUnit (Value a)
#TransactionStatus Source
#TransactionReceipt Source
newtype TransactionReceipt
Constructors
TransactionReceipt { blockHash :: HexString, blockNumber :: BlockNumber, contractAddress :: Maybe Address, cumulativeGasUsed :: BigNumber, gasUsed :: BigNumber, logs :: Array Change, status :: TransactionStatus, transactionHash :: HexString, transactionIndex :: BigNumber }
Instances
#TransactionOptions Source
newtype TransactionOptions u
Constructors
TransactionOptions { data :: Maybe HexString, from :: Maybe Address, gas :: Maybe BigNumber, gasPrice :: Maybe BigNumber, nonce :: Maybe BigNumber, to :: Maybe Address, value :: Maybe (Value (u ETHER)) }
Instances
Generic (TransactionOptions u) _
Newtype (TransactionOptions u) _
Eq (TransactionOptions u)
Show (TransactionOptions u)
Encode (TransactionOptions u)
#Transaction Source
newtype Transaction
Constructors
Transaction { blockHash :: Maybe HexString, blockNumber :: Maybe BlockNumber, from :: Address, gas :: BigNumber, gasPrice :: BigNumber, hash :: HexString, input :: HexString, nonce :: BigNumber, to :: Maybe Address, transactionIndex :: Maybe BigNumber, value :: Value Wei }
Instances
#Szabo Source
type Szabo = MinorUnitE12 ETHER
#Shannon Source
type Shannon = MinorUnitE9 ETHER
#Lovelace Source
type Lovelace = MinorUnitE6 ETHER
#KEther Source
type KEther = MinorUnitE21 ETHER
#Finney Source
type Finney = MinorUnitE15 ETHER
#EventAction Source
data EventAction
EventAction Represents a flag to continue or discontinue listening to the filter
Constructors
Instances
#Ether Source
type Ether = MinorUnitE18 ETHER
#Change Source
newtype Change
Changes pulled by low-level call 'eth_getFilterChanges', 'eth_getLogs', and 'eth_getFilterLogs'
Constructors
Change { address :: Address, blockHash :: HexString, blockNumber :: BlockNumber, data :: HexString, logIndex :: BigNumber, removed :: Boolean, topics :: Array HexString, transactionHash :: HexString, transactionIndex :: BigNumber }
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
Block { difficulty :: BigNumber, extraData :: HexString, gasLimit :: BigNumber, gasUsed :: BigNumber, hash :: Maybe HexString, logsBloom :: Maybe HexString, miner :: HexString, nonce :: Maybe HexString, number :: Maybe BigNumber, parentHash :: HexString, receiptsRoot :: HexString, sha3Uncles :: HexString, size :: BigNumber, stateRoot :: HexString, timestamp :: BigNumber, totalDifficulty :: BigNumber, transactions :: Array HexString, transactionsRoot :: HexString, uncles :: Array HexString }
Instances
#BigNumber Source
#Babbage Source
type Babbage = MinorUnitE3 ETHER
#Address Source
#fromMinorUnit Source
fromMinorUnit :: forall a. TokenUnit a => BigNumber -> a
#toMinorUnit Source
toMinorUnit :: forall a. TokenUnit a => a -> BigNumber
#mkValue Source
mkValue :: forall a. TokenUnitSpec a => BigNumber -> Value a
Convert a big number into value, first using floor
function to take the integer part
#formatValue Source
formatValue :: forall a. TokenUnitSpec a => Value a -> String
#defaultFilter Source
defaultFilter :: forall a. Filter a
#_fromBlock Source
_fromBlock :: forall a. Lens' (Filter a) ChainCursor
Re-exports from Network.Ethereum.Web3.Types.Provider
#metamaskProvider Source
metamaskProvider :: forall e. Eff (exception :: EXCEPTION | e) Provider
Produces reference to Metamas provider
#httpProvider Source
httpProvider :: forall e. String -> Eff e Provider
Connect to an ethereum client at a given address, eg "http://localhost:8545"
- Modules
- Network.
Ethereum. Web3 - Network.
Ethereum. Web3. Api - Network.
Ethereum. Web3. Contract - Network.
Ethereum. Web3. Contract. Internal - Network.
Ethereum. Web3. JsonRPC - Network.
Ethereum. Web3. Solidity - Network.
Ethereum. Web3. Solidity. AbiEncoding - Network.
Ethereum. Web3. Solidity. Bytes - Network.
Ethereum. Web3. Solidity. EncodingType - Network.
Ethereum. Web3. Solidity. Event - Network.
Ethereum. Web3. Solidity. Generic - Network.
Ethereum. Web3. Solidity. Int - Network.
Ethereum. Web3. Solidity. Size - Network.
Ethereum. Web3. Solidity. Sizes - Network.
Ethereum. Web3. Solidity. Tuple - Network.
Ethereum. Web3. Solidity. UInt - Network.
Ethereum. Web3. Solidity. Vector - Network.
Ethereum. Web3. Types - Network.
Ethereum. Web3. Types. EtherUnit - Network.
Ethereum. Web3. Types. Provider - Network.
Ethereum. Web3. Types. TokenUnit - Network.
Ethereum. Web3. Types. Types
Event filter structure used by low-level subscription methods