Network.Ethereum.Web3
- Package
- purescript-web3
- Repository
- f-o-a-m/purescript-web3
Re-exports from Network.Ethereum.Web3.Contract
#EventAction Source
data EventAction
Represents a flag to continue or discontinue listening to the filter
Constructors
Instances
#call Source
call :: forall a b e p. Method a => IsAsyncProvider p => ABIEncoding b => Address -> Maybe Address -> CallMode -> a -> Web3 p e b
Constant call given contract 'Address' in mode and given input data
#event Source
event :: forall a e p. IsAsyncProvider p => EventFilter a => Address -> (a -> ReaderT Change (Web3 p e) EventAction) -> Web3 p e (Fiber (eth :: ETH | e) Unit)
Start listening to events eminating from the given address and caught by the filter, using the handler to process the data and decide whether to continue
Re-exports from Network.Ethereum.Web3.Provider
#IsAsyncProvider Source
#httpProvider Source
httpProvider :: forall e. String -> Eff e Provider
Connect to an ethereum client at a given address, eg "http://localhost:8545"
Re-exports from Network.Ethereum.Web3.Solidity
#D2 Source
data D2
Instances
KnownSize D2
IntSize (D2 :& D4)
IntSize (D3 :& D2)
IntSize (D7 :& D2)
IntSize (D1 :& D1 :& D2)
IntSize (D1 :& D2 :& D0)
IntSize (D1 :& D2 :& D8)
IntSize (D1 :& D5 :& D2)
IntSize (D1 :& D9 :& D2)
IntSize (D2 :& D0 :& D0)
IntSize (D2 :& D0 :& D8)
IntSize (D2 :& D1 :& D6)
IntSize (D2 :& D2 :& D4)
IntSize (D2 :& D3 :& D2)
IntSize (D2 :& D4 :& D0)
IntSize (D2 :& D4 :& D8)
IntSize (D2 :& D5 :& D6)
ByteSize D2
ByteSize (D1 :& D2)
ByteSize (D2 :& D0)
ByteSize (D2 :& D1)
ByteSize (D2 :& D2)
ByteSize (D2 :& D3)
ByteSize (D2 :& D4)
ByteSize (D2 :& D5)
ByteSize (D2 :& D6)
ByteSize (D2 :& D7)
ByteSize (D2 :& D8)
ByteSize (D2 :& D9)
ByteSize (D3 :& D2)
#D1 Source
data D1
Instances
KnownSize D1
IntSize (D1 :& D6)
IntSize (D1 :& D0 :& D4)
IntSize (D1 :& D1 :& D2)
IntSize (D1 :& D2 :& D0)
IntSize (D1 :& D2 :& D8)
IntSize (D1 :& D3 :& D6)
IntSize (D1 :& D4 :& D4)
IntSize (D1 :& D5 :& D2)
IntSize (D1 :& D6 :& D0)
IntSize (D1 :& D6 :& D8)
IntSize (D1 :& D7 :& D6)
IntSize (D1 :& D8 :& D4)
IntSize (D1 :& D9 :& D2)
IntSize (D2 :& D1 :& D6)
ByteSize D1
ByteSize (D1 :& D0)
ByteSize (D1 :& D1)
ByteSize (D1 :& D2)
ByteSize (D1 :& D3)
ByteSize (D1 :& D4)
ByteSize (D1 :& D5)
ByteSize (D1 :& D6)
ByteSize (D1 :& D7)
ByteSize (D1 :& D8)
ByteSize (D1 :& D9)
ByteSize (D2 :& D1)
ByteSize (D3 :& D1)
#ByteString Source
#unBytesN Source
unBytesN :: forall n. KnownSize n => BytesN n -> ByteString
Access the underlying raw bytestring
#uIntNFromBigNumber Source
uIntNFromBigNumber :: forall n. KnownSize n => BigNumber -> Maybe (UIntN n)
Attempt to coerce an unsigned integer into a statically sized one
#intNFromBigNumber Source
intNFromBigNumber :: forall n. KnownSize n => BigNumber -> Maybe (IntN n)
Attempt to coerce an signed BigNumber
into a statically sized one
#fromByteString Source
fromByteString :: forall n. KnownSize n => ByteString -> Maybe (BytesN n)
Attempt to coerce a bytestring into one of the appropriate size
#(:<) Source
Operator alias for Network.Ethereum.Web3.Solidity.Vector.vCons (right-associative / precedence 6)
#type (:&) Source
Operator alias for Network.Ethereum.Web3.Solidity.Size.NumCons (right-associative / precedence 6)
Re-exports from Network.Ethereum.Web3.Types
#TransactionOptions Source
newtype TransactionOptions
Constructors
TransactionOptions { data :: NullOrUndefined HexString, from :: NullOrUndefined Address, gas :: NullOrUndefined BigNumber, gasPrice :: NullOrUndefined BigNumber, nonce :: NullOrUndefined BigNumber, to :: NullOrUndefined Address, value :: NullOrUndefined (Value Wei) }
Instances
#Transaction Source
newtype Transaction
Constructors
Transaction { blockHash :: HexString, blockNumber :: BigNumber, from :: Address, gas :: BigNumber, gasPrice :: BigNumber, hash :: HexString, input :: HexString, nonce :: BigNumber, to :: NullOrUndefined Address, transactionIndex :: BigNumber, value :: Value Wei }
Instances
#Radix Source
newtype Radix
The number of unique digits (including zero) used to represent integers in a specific base.
#Filter Source
newtype Filter
Low-level event filter data structure
Constructors
Filter { address :: NullOrUndefined Address, fromBlock :: NullOrUndefined HexString, toBlock :: NullOrUndefined HexString, topics :: NullOrUndefined (Array (NullOrUndefined HexString)) }
Instances
#Change Source
newtype Change
Changes pulled by low-level call 'eth_getFilterChanges', 'eth_getLogs', and 'eth_getFilterLogs'
Constructors
Change { address :: Address, blockHash :: HexString, blockNumber :: HexString, data :: HexString, logIndex :: HexString, topics :: Array HexString, transactionHash :: HexString, transactionIndex :: HexString }
Instances
#Block Source
newtype Block
Constructors
Block { difficulty :: BigNumber, extraData :: HexString, gasLimit :: BigNumber, gasUsed :: BigNumber, hash :: HexString, logsBloom :: HexString, miner :: HexString, mixHash :: HexString, nonce :: HexString, number :: BigNumber, parentHash :: HexString, receiptsRoot :: HexString, sha3Uncles :: HexString, size :: BigNumber, stateRoot :: HexString, timestamp :: BigNumber, totalDifficulty :: BigNumber, transactions :: Array HexString, transactionsRoot :: HexString, uncles :: Array HexString }
Instances
#unsafeToInt Source
unsafeToInt :: BigNumber -> Int
Unsafely coerce a BigNumber to an Int.
#toTwosComplement Source
toTwosComplement :: BigNumber -> BigNumber
Take the twos complement of a BigNumer
#toHexString Source
toHexString :: BigNumber -> HexString
#parseBigNumber Source
parseBigNumber :: Radix -> String -> Maybe BigNumber
Convert a string in the given base to a BigNumber
#padRightSigned Source
padRightSigned :: Signed HexString -> HexString
Pad a Signed HexString
on the right until it has length 0 mod 64.
#padLeftSigned Source
padLeftSigned :: Signed HexString -> HexString
Pad a Signed HexString
on the left until it has length == 0 mod 64.
#mkValue Source
mkValue :: forall a. EtherUnitSpec a => BigNumber -> Value a
Convert a big number into value, first using floor
function to take the integer part
#hexadecimal Source
hexadecimal :: Radix
The base-16 system.
#getPadLength Source
getPadLength :: Int -> Int
Computes the number of 0s needed to pad a bytestring of the input length
#fromHexString Source
fromHexString :: HexString -> BigNumber
#(>-) Source
Operator alias for Network.Ethereum.Web3.Types.BigNumber.lsub (left-associative / precedence 6)
#(>+) Source
Operator alias for Network.Ethereum.Web3.Types.BigNumber.ladd (left-associative / precedence 6)
#(>*) Source
Operator alias for Network.Ethereum.Web3.Types.BigNumber.lmul (left-associative / precedence 7)
#(-<) Source
Operator alias for Network.Ethereum.Web3.Types.BigNumber.rsub (right-associative / precedence 6)
- Modules
- Network.
Ethereum. Web3 - Network.
Ethereum. Web3. Api - Network.
Ethereum. Web3. Contract - Network.
Ethereum. Web3. JsonRPC - Network.
Ethereum. Web3. Provider - Network.
Ethereum. Web3. Solidity - Network.
Ethereum. Web3. Solidity. AbiEncoding - Network.
Ethereum. Web3. Solidity. Bytes - Network.
Ethereum. Web3. Solidity. EncodingType - Network.
Ethereum. Web3. Solidity. Int - Network.
Ethereum. Web3. Solidity. Size - Network.
Ethereum. Web3. Solidity. Tuple - Network.
Ethereum. Web3. Solidity. UInt - Network.
Ethereum. Web3. Solidity. Vector - Network.
Ethereum. Web3. Types - Network.
Ethereum. Web3. Types. BigNumber - Network.
Ethereum. Web3. Types. EtherUnit - Network.
Ethereum. Web3. Types. Sha3 - Network.
Ethereum. Web3. Types. Types - Network.
Ethereum. Web3. Types. Utils