2016-01-09 12:30:41 +01:00
|
|
|
use util::*;
|
2015-12-09 15:31:43 +01:00
|
|
|
|
|
|
|
#[inline]
|
|
|
|
pub fn ether() -> U256 { U256::exp10(18) }
|
|
|
|
|
|
|
|
#[inline]
|
|
|
|
pub fn finney() -> U256 { U256::exp10(15) }
|
|
|
|
|
|
|
|
#[inline]
|
|
|
|
pub fn szabo() -> U256 { U256::exp10(12) }
|
|
|
|
|
|
|
|
#[inline]
|
|
|
|
pub fn shannon() -> U256 { U256::exp10(9) }
|
|
|
|
|
|
|
|
#[inline]
|
|
|
|
pub fn wei() -> U256 { U256::exp10(0) }
|
|
|
|
|