Documentation ¶
Index ¶
- func CreateExecutableCheckersMap(builtinFunctions vmcommon.BuiltInFunctionContainer) map[string]ExecutableChecker
- func FindVMByScAddress(container process.VirtualMachinesContainer, scAddress []byte) (vmcommon.VMExecutionHandler, []byte, error)
- type ArgsNewSmartContractProcessor
- type ExecutableChecker
- type TestSmartContractProcessor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateExecutableCheckersMap ¶
func CreateExecutableCheckersMap(builtinFunctions vmcommon.BuiltInFunctionContainer) map[string]ExecutableChecker
CreateExecutableCheckersMap creates a map of executable checker builtin functions
func FindVMByScAddress ¶
func FindVMByScAddress(container process.VirtualMachinesContainer, scAddress []byte) (vmcommon.VMExecutionHandler, []byte, error)
FindVMByScAddress is exported for use in all version of scr processors
Types ¶
type ArgsNewSmartContractProcessor ¶
type ArgsNewSmartContractProcessor struct { VmContainer process.VirtualMachinesContainer ArgsParser process.ArgumentsParser Hasher hashing.Hasher Marshalizer marshal.Marshalizer AccountsDB state.AccountsAdapter BlockChainHook process.BlockChainHookHandler BuiltInFunctions vmcommon.BuiltInFunctionContainer PubkeyConv core.PubkeyConverter ShardCoordinator sharding.Coordinator ScrForwarder process.IntermediateTransactionHandler TxFeeHandler process.TransactionFeeHandler EconomicsFee process.FeeHandler TxTypeHandler process.TxTypeHandler GasHandler process.GasHandler GasSchedule core.GasScheduleNotifier TxLogsProcessor process.TransactionLogProcessor BadTxForwarder process.IntermediateTransactionHandler EnableRoundsHandler process.EnableRoundsHandler EnableEpochsHandler common.EnableEpochsHandler EnableEpochs config.EnableEpochs VMOutputCacher storage.Cacher WasmVMChangeLocker common.Locker IsGenesisProcessing bool }
ArgsNewSmartContractProcessor defines the arguments needed for new smart contract processor
type ExecutableChecker ¶
type ExecutableChecker interface {
CheckIsExecutable(senderAddr []byte, value *big.Int, receiverAddr []byte, gasProvidedForCall uint64, arguments [][]byte) error
}
ExecutableChecker is an interface for checking if a builtin function is executable
type TestSmartContractProcessor ¶
type TestSmartContractProcessor interface { process.SmartContractProcessorFacade GetCompositeTestError() error GetGasRemaining() uint64 GetAllSCRs() []data.TransactionHandler CleanGasRefunded() }
TestSmartContractProcessor is a SmartContractProcessor used in integration tests
Click to show internal directories.
Click to hide internal directories.