From 27fca416ba6be6f1b78793e1202bcd3b2954b4a2 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Sat, 15 Oct 2016 14:48:10 +0100 Subject: LLL: add Ethereum subunit macros --- liblll/CompilerState.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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); } -- cgit