aboutsummaryrefslogtreecommitdiffstats
path: root/ethvm/common.go
blob: 5a3aec648c7098881fe4ca9cdb4dc43c57d6f313 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
)