module EtherUnits

Public Instance Methods

babbage()

aliases

Alias for: kwei
eth()
Alias for: ether
ether() click to toggle source
# File lib/units-money.rb, line 90
def ether()      self * e18; end
Also aliased as: eth
finney()
Alias for: milliether
gwei() click to toggle source
# File lib/units-money.rb, line 87
def gwei()       self * e9; end
Also aliased as: shannon
kwei() click to toggle source
# File lib/units-money.rb, line 85
def kwei()       self * e3; end
Also aliased as: babbage
lovelace()
Alias for: mwei
micro()
Alias for: microether
microeth()
Alias for: microether
microether() click to toggle source
# File lib/units-money.rb, line 88
def microether() self * e12; end
Also aliased as: szabo, microeth, micro
milli()
Alias for: milliether
millieth()
Alias for: milliether
milliether() click to toggle source
# File lib/units-money.rb, line 89
def milliether() self * e15; end
Also aliased as: finney, millieth, milli
mwei() click to toggle source
# File lib/units-money.rb, line 86
def mwei()       self * e6; end
Also aliased as: lovelace
shannon()
Alias for: gwei
szabo()
Alias for: microether
wei() click to toggle source

Ethereum money units

wei                     1 wei | 1
kwei (babbage)        1e3 wei | 1_000
mwei (lovelace)       1e6 wei | 1_000_000
gwei (shannon)        1e9 wei | 1_000_000_000
microether (szabo)   1e12 wei | 1_000_000_000_000
milliether (finney)  1e15 wei | 1_000_000_000_000_000
ether                1e18 wei | 1_000_000_000_000_000_000

Names in Honor:
 wei            => Wei Dai
 lovelace       => Ada Lovelace (1815-1852)
 babbage          => Charles Babbage (1791-1871)
 shannon          => Claude Shannon (1916-2001)
 szabo          => Nick Szabo
 finney         => Hal Finney (1956-2014)
# File lib/units-money.rb, line 84
def wei()        self; end