Module

Network.Ethereum.Web3.Types.TokenUnit

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

#TokenUnit Source

class TokenUnit a  where

Useful for converting to and from the base denomination

Members

Instances

#Token Source

data Token :: Type

#TokenUnit Source

data TokenUnit :: Type

#ProxyTU Source

data ProxyTU (a :: TokenUnit)

Constructors

#Value Source

newtype Value (a :: TokenUnit)

A value of some token in specific denomination

Instances

#convert Source

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

Convert between two denominations

#formatValue Source

formatValue :: forall a. TokenUnitSpec a => Value a -> String

#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

#NoPay Source

#MinorUnit Source

#MinorUnitE3 Source

#MinorUnitE6 Source

#MinorUnitE9 Source

#MinorUnitE12 Source

#MinorUnitE15 Source

#MinorUnitE18 Source

#MinorUnitE21 Source