Add unit denomination `gwei`

This commit is contained in:
Mathias Baumann
2020-06-24 18:24:56 +02:00
parent 062a999e85
commit 02328f3bbb
16 changed files with 58 additions and 9 deletions
+1
View File
@@ -48,6 +48,7 @@ using Address = util::h160;
// The various denominations; here for ease of use where needed within code.
static const u256 wei = 1;
static const u256 shannon = u256("1000000000");
static const u256 gwei = shannon;
static const u256 szabo = shannon * 1000;
static const u256 finney = szabo * 1000;
static const u256 ether = finney * 1000;