Documentation ¶
Index ¶
- Constants
- func NewBigIntContext() (*bigIntContext, error)
- func NewBlockchainContext(host core.VMHost, blockChainHook vmcommon.BlockchainHook) (*blockchainContext, error)
- func NewMeteringContext(host core.VMHost, gasMap config.GasScheduleMap, blockGasLimit uint64) (*meteringContext, error)
- func NewOutputContext(host core.VMHost) (*outputContext, error)
- func NewRuntimeContext(host core.VMHost, vmType []byte, useWarmInstance bool) (*runtimeContext, error)
- func NewStorageContext(host core.VMHost, blockChainHook vmcommon.BlockchainHook, ...) (*storageContext, error)
- func NewVMOutputAccount(address []byte) *vmcommon.OutputAccount
- type ReservedFunctions
- type WASMValidator
Constants ¶
View Source
const NoArity = -1
Variables ¶
This section is empty.
Functions ¶
func NewBigIntContext ¶
func NewBigIntContext() (*bigIntContext, error)
NewBigIntContext creates a new bigIntContext
func NewBlockchainContext ¶
func NewBlockchainContext( host core.VMHost, blockChainHook vmcommon.BlockchainHook, ) (*blockchainContext, error)
NewBlockchainContext creates a new blockchainContext
func NewMeteringContext ¶
func NewMeteringContext( host core.VMHost, gasMap config.GasScheduleMap, blockGasLimit uint64, ) (*meteringContext, error)
NewMeteringContext creates a new meteringContext
func NewOutputContext ¶
NewOutputContext creates a new outputContext
func NewRuntimeContext ¶
func NewRuntimeContext(host core.VMHost, vmType []byte, useWarmInstance bool) (*runtimeContext, error)
NewRuntimeContext creates a new runtimeContext
func NewStorageContext ¶
func NewStorageContext( host core.VMHost, blockChainHook vmcommon.BlockchainHook, dharitriProtectedKeyPrefix []byte, ) (*storageContext, error)
NewStorageContext creates a new storageContext
func NewVMOutputAccount ¶ added in v0.0.3
func NewVMOutputAccount(address []byte) *vmcommon.OutputAccount
Types ¶
type ReservedFunctions ¶
type ReservedFunctions struct {
// contains filtered or unexported fields
}
ReservedFunctions holds the reserved function names
func NewReservedFunctions ¶
func NewReservedFunctions(scAPINames vmcommon.FunctionNames, protocolBuiltinFunctions vmcommon.FunctionNames) *ReservedFunctions
NewReservedFunctions creates a new ReservedFunctions
func (*ReservedFunctions) GetReserved ¶
func (reservedFunctions *ReservedFunctions) GetReserved() []string
GetReserved gets the reserved functions as a slice of strings
func (*ReservedFunctions) IsReserved ¶
func (reservedFunctions *ReservedFunctions) IsReserved(functionName string) bool
IsReserved returns whether a function is reserved
type WASMValidator ¶
type WASMValidator struct {
// contains filtered or unexported fields
}
WASMValidator is a validator for WASM SmartContracts
func NewWASMValidator ¶
func NewWASMValidator(scAPINames vmcommon.FunctionNames, protocolBuiltinFunctions vmcommon.FunctionNames) *WASMValidator
NewWASMValidator creates a new WASMValidator
Click to show internal directories.
Click to hide internal directories.