diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2016-10-15 21:48:10 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2016-10-15 23:26:04 +0800 |
commit | 27fca416ba6be6f1b78793e1202bcd3b2954b4a2 (patch) | |
tree | 37269be290a88aa8b7f041288a6a6cc342980950 /liblll | |
parent | 3a91da27edbf3a3f660e6133c16e1fdfa00fc026 (diff) | |
download | dexon-solidity-27fca416ba6be6f1b78793e1202bcd3b2954b4a2.tar dexon-solidity-27fca416ba6be6f1b78793e1202bcd3b2954b4a2.tar.gz dexon-solidity-27fca416ba6be6f1b78793e1202bcd3b2954b4a2.tar.bz2 dexon-solidity-27fca416ba6be6f1b78793e1202bcd3b2954b4a2.tar.lz dexon-solidity-27fca416ba6be6f1b78793e1202bcd3b2954b4a2.tar.xz dexon-solidity-27fca416ba6be6f1b78793e1202bcd3b2954b4a2.tar.zst dexon-solidity-27fca416ba6be6f1b78793e1202bcd3b2954b4a2.zip |
LLL: add Ethereum subunit macros
Diffstat (limited to 'liblll')
-rw-r--r-- | liblll/CompilerState.cpp | 4 |
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); } |