Package io.horizen.evm
Class EvmContext
- java.lang.Object
-
- io.horizen.evm.EvmContext
-
public class EvmContext extends Object
-
-
Field Summary
Fields Modifier and Type Field Description BigIntegerbaseFeeBigIntegerblockNumberBigIntegerchainIDAddresscoinbaseBigIntegergasLimitBigIntegergasPriceHashrandomForkRulesrulesBigIntegertime
-
Constructor Summary
Constructors Constructor Description EvmContext(BigInteger chainID, Address coinbase, BigInteger gasLimit, BigInteger gasPrice, BigInteger blockNumber, BigInteger time, BigInteger baseFee, Hash random, ForkRules rules)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlockHashCallbackgetBlockHashCallback()InvocationCallbackgetExternalCallback()Address[]getExternalContracts()intgetInitialDepth()TracergetTracer()voidsetBlockHashCallback(BlockHashCallback blockHashCallback)voidsetExternalCallback(InvocationCallback externalCallback)voidsetExternalContracts(Address[] externalContracts)voidsetInitialDepth(int initialDepth)voidsetTracer(Tracer tracer)
-
-
-
Field Detail
-
chainID
public final BigInteger chainID
-
coinbase
public final Address coinbase
-
gasLimit
public final BigInteger gasLimit
-
gasPrice
public final BigInteger gasPrice
-
blockNumber
public final BigInteger blockNumber
-
time
public final BigInteger time
-
baseFee
public final BigInteger baseFee
-
random
public final Hash random
-
rules
public final ForkRules rules
-
-
Constructor Detail
-
EvmContext
public EvmContext(BigInteger chainID, Address coinbase, BigInteger gasLimit, BigInteger gasPrice, BigInteger blockNumber, BigInteger time, BigInteger baseFee, Hash random, ForkRules rules)
-
-
Method Detail
-
getBlockHashCallback
public BlockHashCallback getBlockHashCallback()
-
setBlockHashCallback
public void setBlockHashCallback(BlockHashCallback blockHashCallback)
-
getExternalContracts
public Address[] getExternalContracts()
-
setExternalContracts
public void setExternalContracts(Address[] externalContracts)
-
getExternalCallback
public InvocationCallback getExternalCallback()
-
setExternalCallback
public void setExternalCallback(InvocationCallback externalCallback)
-
getTracer
public Tracer getTracer()
-
setTracer
public void setTracer(Tracer tracer)
-
getInitialDepth
public int getInitialDepth()
-
setInitialDepth
public void setInitialDepth(int initialDepth)
-
-