aboutsummaryrefslogtreecommitdiffstats
path: root/liblll/CompilerState.cpp
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2016-10-15 21:48:10 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2016-10-15 23:26:04 +0800
commit27fca416ba6be6f1b78793e1202bcd3b2954b4a2 (patch)
tree37269be290a88aa8b7f041288a6a6cc342980950 /liblll/CompilerState.cpp
parent3a91da27edbf3a3f660e6133c16e1fdfa00fc026 (diff)
downloaddexon-solidity-27fca416ba6be6f1b78793e1202bcd3b2954b4a2.tar.gz
dexon-solidity-27fca416ba6be6f1b78793e1202bcd3b2954b4a2.tar.zst
dexon-solidity-27fca416ba6be6f1b78793e1202bcd3b2954b4a2.zip
LLL: add Ethereum subunit macros
Diffstat (limited to 'liblll/CompilerState.cpp')
-rw-r--r--liblll/CompilerState.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/liblll/CompilerState.cpp b/liblll/CompilerState.cpp
index 1d83192c..91c2452d 100644
--- a/liblll/CompilerState.cpp
+++ b/liblll/CompilerState.cpp
@@ -69,6 +69,10 @@ void CompilerState::populateStandard()
"(def 'ripemd160 (data datasize) (msg allgas 3 0 data datasize))"
"(def 'sha256 (val) { [0]:val (sha256 0 32) })"
"(def 'ripemd160 (val) { [0]:val (ripemd160 0 32) })"
+ "(def 'wei 1)"
+ "(def 'szabo 1000000000000)"
+ "(def 'finney 1000000000000000)"
+ "(def 'ether 1000000000000000000)"
"}";
CodeFragment::compile(s, *this);
}