aboutsummaryrefslogtreecommitdiffstats
path: root/ethvm/common.go
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2014-07-31 00:03:20 +0800
committerzelig <viktor.tron@gmail.com>2014-07-31 00:03:20 +0800
commit9831619881c5264c2449ce1b906108d892b6e1e1 (patch)
treef8775b1196fe6b31081a553945377f40bdc8d550 /ethvm/common.go
parent194c58858cd230a9a08b0eb14650720341a5580e (diff)
parent42d47ecfb09ac0b419db5722602d9b02e21f2457 (diff)
downloadgo-tangerine-9831619881c5264c2449ce1b906108d892b6e1e1.tar
go-tangerine-9831619881c5264c2449ce1b906108d892b6e1e1.tar.gz
go-tangerine-9831619881c5264c2449ce1b906108d892b6e1e1.tar.bz2
go-tangerine-9831619881c5264c2449ce1b906108d892b6e1e1.tar.lz
go-tangerine-9831619881c5264c2449ce1b906108d892b6e1e1.tar.xz
go-tangerine-9831619881c5264c2449ce1b906108d892b6e1e1.tar.zst
go-tangerine-9831619881c5264c2449ce1b906108d892b6e1e1.zip
merge upstream
Diffstat (limited to 'ethvm/common.go')
-rw-r--r--ethvm/common.go27
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
+)