From 20c742e47406c13ebc6427951f6fcf1b0056ea26 Mon Sep 17 00:00:00 2001 From: obscuren Date: Sat, 18 Oct 2014 13:31:20 +0200 Subject: Moved ethvm => vm --- vm/environment.go | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 vm/environment.go (limited to 'vm/environment.go') diff --git a/vm/environment.go b/vm/environment.go new file mode 100644 index 000000000..2d933b65c --- /dev/null +++ b/vm/environment.go @@ -0,0 +1,26 @@ +package vm + +import ( + "math/big" + + "github.com/ethereum/eth-go/ethstate" + "github.com/ethereum/eth-go/ethutil" +) + +type Environment interface { + State() *ethstate.State + + Origin() []byte + BlockNumber() *big.Int + PrevHash() []byte + Coinbase() []byte + Time() int64 + Difficulty() *big.Int + BlockHash() []byte + GasLimit() *big.Int +} + +type Object interface { + GetStorage(key *big.Int) *ethutil.Value + SetStorage(key *big.Int, value *ethutil.Value) +} -- cgit