Module

Network.Ethereum.Web3.Types.EtherUnit

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

#EtherUnit Source

class EtherUnit a  where

Useful for converting to and from the base denomination Wei

Members

Instances

#convert Source

convert :: forall b a. EtherUnit a => EtherUnit b => a -> b

Convert between two denominations

#Wei Source

data Wei

Instances

#Babbage Source

data Babbage

Babbage unit type

Instances

#Lovelace Source

data Lovelace

Lovelace unit type

Instances

#Shannon Source

data Shannon

Shannon unit type

Instances

#Szabo Source

data Szabo

Szabo unit type

Instances

#Finney Source

data Finney

Finney unit type

Instances

#Ether Source

data Ether

Ether unit type

Instances

#KEther Source

data KEther

KEther unit type

Instances

#Value Source

newtype Value a

Ether value in denomination a

Instances

#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