Network.Ethereum.Web3.Types
- Package
- purescript-web3
- Repository
- f-o-a-m/purescript-web3
Re-exports from Network.Ethereum.Types
#HexString
newtype HexString
Represents a base16, utf8 encoded bytestring
Instances
Show HexString
Eq HexString
Ord HexString
Semigroup HexString
Monoid HexString
Decode HexString
ReadForeign HexString
WriteForeign HexString
Encode HexString
DecodeJson HexString
EncodeJson HexString
#BigNumber
data BigNumber :: Type
Large Integer, needed for handling numbers of up to 32 bytes
Instances
Show BigNumber
Eq BigNumber
Ord BigNumber
Semiring BigNumber
Ring BigNumber
LeftModule BigNumber Int
RightModule BigNumber Int
Algebra BigNumber Int
Decode BigNumber
ReadForeign BigNumber
WriteForeign BigNumber
Encode BigNumber
DecodeJson BigNumber
EncodeJson BigNumber
#Address
newtype Address
Represents and Ethereum address, which is a 20 byte HexString
Instances
Show Address
Eq Address
Ord Address
Encode Address
Decode Address
DecodeJson Address
EncodeJson Address
ReadForeign Address
WriteForeign Address
#unHex
unHex :: HexString -> String
#unAddress
unAddress :: Address -> HexString
#mkHexString
mkHexString :: String -> Maybe HexString
#mkAddress
mkAddress :: HexString -> Maybe Address
#embed
embed :: forall a r. Algebra a r => r -> a
Re-exports from Network.Ethereum.Web3.Types.EtherUnit
#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
#Ether Source
type Ether = MinorUnitE18 ETHER
#Babbage Source
type Babbage = MinorUnitE3 ETHER
Re-exports from Network.Ethereum.Web3.Types.TokenUnit
#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)
#TokenUnit Source
class TokenUnit a where
Useful for converting to and from the base denomination
Members
fromMinorUnit :: BigNumber -> a
toMinorUnit :: a -> BigNumber
Instances
(TokenUnitSpec a) => TokenUnit (Value a)
#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
Re-exports from Network.Ethereum.Web3.Types.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)
#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
#SyncStatus Source
newtype SyncStatus
Constructors
SyncStatus { currentBlock :: BigNumber, highestBlock :: BigNumber, startingBlock :: BigNumber }
Instances
#MethodName Source
type MethodName = String
Web3 RPC
#FalseOrObject Source
newtype FalseOrObject a
Newtype wrapper around Maybe
to handle cases where Web3 passes back
either false
or some data type
Constructors
FalseOrObject (Maybe a)
Instances
Newtype (FalseOrObject a) _
(Eq a) => Eq (FalseOrObject a)
(Ord a) => Ord (FalseOrObject a)
Generic (FalseOrObject a) _
(Show a) => Show (FalseOrObject a)
(Decode a) => Decode (FalseOrObject a)
#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
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
#defaultFilter Source
defaultFilter :: forall a. Filter a
#_fromBlock Source
_fromBlock :: forall a. Lens' (Filter a) ChainCursor
- 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