diff options
author | obscuren <geffobscura@gmail.com> | 2014-07-25 16:43:35 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-07-25 16:43:35 +0800 |
commit | d761af84c83ae8d9d723e6766abb7950ff59cdf3 (patch) | |
tree | 6fe0805649ddf38b2b90e77c5fb2000a4bdab536 /ethvm/common.go | |
parent | 06ec80f39495bdd92878468cf862f52e9748f1ca (diff) | |
parent | 54f9ea14e197ad805f24592153f1b9e69f3bc5c3 (diff) | |
download | dexon-d761af84c83ae8d9d723e6766abb7950ff59cdf3.tar dexon-d761af84c83ae8d9d723e6766abb7950ff59cdf3.tar.gz dexon-d761af84c83ae8d9d723e6766abb7950ff59cdf3.tar.bz2 dexon-d761af84c83ae8d9d723e6766abb7950ff59cdf3.tar.lz dexon-d761af84c83ae8d9d723e6766abb7950ff59cdf3.tar.xz dexon-d761af84c83ae8d9d723e6766abb7950ff59cdf3.tar.zst dexon-d761af84c83ae8d9d723e6766abb7950ff59cdf3.zip |
Merge branch 'release/0.6.0'
Diffstat (limited to 'ethvm/common.go')
-rw-r--r-- | ethvm/common.go | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/ethvm/common.go b/ethvm/common.go new file mode 100644 index 000000000..5a3aec648 --- /dev/null +++ b/ethvm/common.go @@ -0,0 +1,27 @@ +package ethvm + +import ( + "github.com/ethereum/eth-go/ethlog" + "github.com/ethereum/eth-go/ethutil" + "math/big" +) + +var vmlogger = ethlog.NewLogger("VM") + +var ( + GasStep = big.NewInt(1) + GasSha = big.NewInt(20) + GasSLoad = big.NewInt(20) + GasSStore = big.NewInt(100) + GasBalance = big.NewInt(20) + GasCreate = big.NewInt(100) + GasCall = big.NewInt(20) + GasMemory = big.NewInt(1) + GasData = big.NewInt(5) + GasTx = big.NewInt(500) + + Pow256 = ethutil.BigPow(2, 256) + + LogTyPretty byte = 0x1 + LogTyDiff byte = 0x2 +) |