Network.Ethereum.Web3.Types
- Package
- purescript-web3
- Repository
- f-o-a-m/purescript-web3
Re-exports from Network.Ethereum.Web3.Types.BigNumber
#Radix Source
newtype Radix
The number of unique digits (including zero) used to represent integers in a specific base.
#Algebra Source
class (Ring r, Ring a) <= Algebra r a where
Class for embedding one ring inside another. Used mostly for coercing numerical values to BigNumber
types.
The emedding ring is refered to as the subalgebra. The embedding is assumed to be a ring homomorphism,
and a
is an r
-bimodule under lmul
and rmul
.
Members
embed :: r -> a
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
#parseBigNumber Source
parseBigNumber :: Radix -> String -> Maybe BigNumber
Convert a string in the given base to a BigNumber
#hexadecimal Source
hexadecimal :: Radix
The base-16 system.
#(>-) 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)
#(+<) Source
Operator alias for Network.Ethereum.Web3.Types.BigNumber.radd (right-associative / precedence 6)
#(*<) Source
Operator alias for Network.Ethereum.Web3.Types.BigNumber.rmul (right-associative / precedence 7)
Re-exports from Network.Ethereum.Web3.Types.EtherUnit
#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
Re-exports from Network.Ethereum.Web3.Types.Sha3
Re-exports from Network.Ethereum.Web3.Types.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
#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
Re-exports from Network.Ethereum.Web3.Types.Utils
#toHexString Source
toHexString :: BigNumber -> HexString
#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.
#getPadLength Source
getPadLength :: Int -> Int
Computes the number of 0s needed to pad a bytestring of the input length
#fromHexString Source
fromHexString :: HexString -> BigNumber
- 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