Documentation ¶
Index ¶
- Constants
- func NewBigIntContext() (*bigIntContext, error)
- func NewBlockchainContext(host vmhost.VMHost, blockChainHook vmcommon.BlockchainHook) (*blockchainContext, error)
- func NewMeteringContext(host vmhost.VMHost, gasMap config.GasScheduleMap, blockGasLimit uint64) (*meteringContext, error)
- func NewOutputContext(host vmhost.VMHost) (*outputContext, error)
- func NewReservedFunctions(scAPINames vmcommon.FunctionNames, ...) *reservedFunctions
- func NewRuntimeContext(host vmhost.VMHost, vmType []byte, useWarmInstance bool, ...) (*runtimeContext, error)
- func NewStorageContext(host vmhost.VMHost, blockChainHook vmcommon.BlockchainHook, ...) (*storageContext, error)
- func NewVMOutputAccount(address []byte) *vmcommon.OutputAccount
Constants ¶
View Source
const MaxMemoryGrow = uint64(10)
Defined as a constant here, not present in gasSchedule V1, V2, V3
View Source
const MaxMemoryGrowDelta = uint64(10)
Variables ¶
This section is empty.
Functions ¶
func NewBigIntContext ¶
func NewBigIntContext() (*bigIntContext, error)
NewBigIntContext creates a new bigIntContext
func NewBlockchainContext ¶
func NewBlockchainContext( host vmhost.VMHost, blockChainHook vmcommon.BlockchainHook, ) (*blockchainContext, error)
NewBlockchainContext creates a new blockchainContext
func NewMeteringContext ¶
func NewMeteringContext( host vmhost.VMHost, gasMap config.GasScheduleMap, blockGasLimit uint64, ) (*meteringContext, error)
NewMeteringContext creates a new meteringContext
func NewOutputContext ¶
NewOutputContext creates a new outputContext
func NewReservedFunctions ¶
func NewReservedFunctions(scAPINames vmcommon.FunctionNames, builtInFuncContainer vmcommon.BuiltInFunctionContainer) *reservedFunctions
NewReservedFunctions creates a new reservedFunctions
func NewRuntimeContext ¶
func NewRuntimeContext( host vmhost.VMHost, vmType []byte, useWarmInstance bool, builtInFuncContainer vmcommon.BuiltInFunctionContainer, ) (*runtimeContext, error)
NewRuntimeContext creates a new runtimeContext
func NewStorageContext ¶
func NewStorageContext( host vmhost.VMHost, blockChainHook vmcommon.BlockchainHook, protectedKeyPrefix []byte, ) (*storageContext, error)
NewStorageContext creates a new storageContext
func NewVMOutputAccount ¶
func NewVMOutputAccount(address []byte) *vmcommon.OutputAccount
NewVMOutputAccount creates a new output account and sets the given address
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.