Versions in this module Expand all Collapse all v1 v1.999.0 Nov 17, 2022 Changes in this version + func AccountExists(accnts state.AccountsAdapter, addressBytes []byte) bool + func ComputeExpectedBalance(existing *big.Int, transferred *big.Int, gasLimit uint64, gasPrice uint64) *big.Int + func ComputeGasLimit(gasSchedule map[string]map[string]uint64, testContext *VMTestContext, ...) uint64 + func CreateAccount(accnts state.AccountsAdapter, pubKey []byte, nonce uint64, balance *big.Int) ([]byte, error) + func CreateDeployTx(senderAddressBytes []byte, senderNonce uint64, value *big.Int, gasPrice uint64, ...) *dataTransaction.Transaction + func CreateEmptyAddress() []byte + func CreateInMemoryShardAccountsDB() *state.AccountsDB + func CreateMemUnit() storage.Storer + func CreateOneSCExecutorMockVM(accnts state.AccountsAdapter, enableEpochs config.EnableEpochs) vmcommon.VMExecutionHandler + func CreatePreparedTxProcessorAndAccountsWithMockedVM(vmOpGas uint64, senderNonce uint64, senderAddressBytes []byte, ...) (process.TransactionProcessor, state.AccountsAdapter, error) + func CreateTestIndexer(t testing.TB, coordinator sharding.Coordinator, ...) *testIndexer + func CreateTransaction(nonce uint64, value *big.Int, sndAddress []byte, rcvAddress []byte, ...) *dataTransaction.Transaction + func CreateTransferTokenTx(nonce uint64, functionName string, value *big.Int, scAddrress []byte, ...) *dataTransaction.Transaction + func CreateTx(senderAddressBytes []byte, receiverAddressBytes []byte, senderNonce uint64, ...) *dataTransaction.Transaction + func CreateTxProcessorWithOneSCExecutorMockVM(accnts state.AccountsAdapter, opGas uint64, enableEpochs config.EnableEpochs, ...) (process.TransactionProcessor, error) + func CreateVMAndBlockchainHookAndDataPool(accnts state.AccountsAdapter, gasSchedule core.GasScheduleNotifier, ...) (process.VirtualMachinesContainer, *hooks.BlockChainHookImpl, ...) + func CreateVMAndBlockchainHookMeta(accnts state.AccountsAdapter, gasSchedule core.GasScheduleNotifier, ...) (process.VirtualMachinesContainer, *hooks.BlockChainHookImpl) + func GetIntValueFromSC(gasSchedule map[string]map[string]uint64, accnts state.AccountsAdapter, ...) *big.Int + func GetNodeIndex(nodeList []*integrationTests.TestProcessorNode, ...) (int, error) + func GetVmOutput(gasSchedule map[string]map[string]uint64, accnts state.AccountsAdapter, ...) *vmcommon.VMOutput + func TestAccount(t *testing.T, accnts state.AccountsAdapter, senderAddressBytes []byte, ...) *big.Int + func TestDeployedContractContents(t *testing.T, destinationAddressBytes []byte, accnts state.AccountsAdapter, ...) + type ResultsCreateTxProcessor struct + CostHandler external.TransactionCostHandler + EconomicsHandler process.EconomicsDataHandler + IntermediateTxProc process.IntermediateTransactionHandler + SCProc *smartContract.TestScProcessor + TxLogProc process.TransactionLogProcessor + TxProc process.TransactionProcessor + func CreateTxProcessorWithOneSCExecutorWithVMs(accnts state.AccountsAdapter, vmContainer process.VirtualMachinesContainer, ...) (*ResultsCreateTxProcessor, error) + type VMTestAccount struct + Address []byte + Balance *big.Int + Nonce uint64 + TokenBalance *big.Int + type VMTestContext struct + Accounts state.AccountsAdapter + Alice VMTestAccount + BlockchainHook vmcommon.BlockchainHook + Bob VMTestAccount + Contract VMTestAccount + ContractOwner VMTestAccount + EconomicsData process.EconomicsDataHandler + EpochNotifier process.EpochNotifier + GasSchedule core.GasScheduleNotifier + Marshalizer marshal.Marshalizer + SCQueryService *smartContract.SCQueryService + ScForwarder process.IntermediateTransactionHandler + ScProcessor *smartContract.TestScProcessor + ShardCoordinator sharding.Coordinator + TxCostHandler external.TransactionCostHandler + TxFeeHandler process.TransactionFeeHandler + TxProcessor process.TransactionProcessor + TxsLogsProcessor process.TransactionLogProcessor + VMConfiguration *config.VirtualMachineConfig + VMContainer process.VirtualMachinesContainer + func CreatePreparedTxProcessorAndAccountsWithVMs(senderNonce uint64, senderAddressBytes []byte, senderBalance *big.Int, ...) (*VMTestContext, error) + func CreatePreparedTxProcessorWithVMs(enableEpochs config.EnableEpochs) (*VMTestContext, error) + func CreatePreparedTxProcessorWithVMsMultiShard(selfShardID uint32, enableEpochs config.EnableEpochs) (*VMTestContext, error) + func CreatePreparedTxProcessorWithVMsWithShardCoordinator(enableEpochs config.EnableEpochs, shardCoordinator sharding.Coordinator) (*VMTestContext, error) + func CreateTxProcessorArwenVMWithGasSchedule(senderNonce uint64, senderAddressBytes []byte, senderBalance *big.Int, ...) (*VMTestContext, error) + func CreateTxProcessorArwenWithVMConfig(enableEpochs config.EnableEpochs, vmConfig *config.VirtualMachineConfig, ...) (*VMTestContext, error) + func (vmTestContext *VMTestContext) Close() + func (vmTestContext *VMTestContext) CreateAccount(account *VMTestAccount) + func (vmTestContext *VMTestContext) CreateBlockStarted() + func (vmTestContext *VMTestContext) CreateTransaction(sender *VMTestAccount, receiver *VMTestAccount, value *big.Int, ...) *dataTransaction.Transaction + func (vmTestContext *VMTestContext) CreateTransferTokenTx(sender *VMTestAccount, receiver *VMTestAccount, value *big.Int, ...) *dataTransaction.Transaction + func (vmTestContext *VMTestContext) GetCompositeTestError() error + func (vmTestContext *VMTestContext) GetGasRemaining() uint64 + func (vmTestContext *VMTestContext) GetIntValueFromSCWithTransientVM(funcName string, args ...[]byte) *big.Int + func (vmTestContext *VMTestContext) GetIntermediateTransactions(t *testing.T) []data.TransactionHandler + func (vmTestContext *VMTestContext) GetVMOutputWithTransientVM(funcName string, args ...[]byte) *vmcommon.VMOutput