Documentation ¶
Index ¶
- func AccountExists(accnts state.AccountsAdapter, addressBytes []byte) bool
- func ComputeExpectedBalance(existing *big.Int, transferred *big.Int, gasLimit uint64, gasPrice uint64) *big.Int
- func CreateAccount(accnts state.AccountsAdapter, pubKey []byte, nonce uint64, balance *big.Int) []byte
- func CreateEmptyAddress() state.AddressContainer
- func CreateInMemoryShardAccountsDB() *state.AccountsDB
- func CreateMemUnit() storage.Storer
- func CreateOneSCExecutorMockVM(accnts state.AccountsAdapter) vmcommon.VMExecutionHandler
- func CreatePreparedTxProcessorAndAccountsWithIeleVM(tb testing.TB, senderNonce uint64, senderAddressBytes []byte, ...) (process.TransactionProcessor, state.AccountsAdapter, vmcommon.BlockchainHook)
- func CreatePreparedTxProcessorAndAccountsWithMockedVM(t *testing.T, vmOpGas uint64, senderNonce uint64, senderAddressBytes []byte, ...) (process.TransactionProcessor, state.AccountsAdapter)
- func CreateTx(tb testing.TB, senderAddressBytes []byte, receiverAddressBytes []byte, ...) *dataTransaction.Transaction
- func CreateTxProcessorWithOneSCExecutorIeleVM(accnts state.AccountsAdapter) (process.TransactionProcessor, vmcommon.BlockchainHook)
- func CreateTxProcessorWithOneSCExecutorMockVM(accnts state.AccountsAdapter, opGas uint64) process.TransactionProcessor
- func CreateVMAndBlockchainHook(accnts state.AccountsAdapter) (vmcommon.VMExecutionHandler, *hooks.VMAccountsDB)
- func GetAccountsBalance(addrBytes []byte, accnts state.AccountsAdapter) *big.Int
- func TestAccount(t *testing.T, accnts state.AccountsAdapter, senderAddressBytes []byte, ...)
- func TestDeployedContractContents(t *testing.T, destinationAddressBytes []byte, accnts state.AccountsAdapter, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccountExists ¶
func AccountExists(accnts state.AccountsAdapter, addressBytes []byte) bool
func ComputeExpectedBalance ¶
func CreateAccount ¶
func CreateEmptyAddress ¶
func CreateEmptyAddress() state.AddressContainer
func CreateInMemoryShardAccountsDB ¶
func CreateInMemoryShardAccountsDB() *state.AccountsDB
func CreateMemUnit ¶
func CreateOneSCExecutorMockVM ¶
func CreateOneSCExecutorMockVM(accnts state.AccountsAdapter) vmcommon.VMExecutionHandler
func CreatePreparedTxProcessorAndAccountsWithIeleVM ¶ added in v1.0.3
func CreatePreparedTxProcessorAndAccountsWithIeleVM( tb testing.TB, senderNonce uint64, senderAddressBytes []byte, senderBalance *big.Int, ) (process.TransactionProcessor, state.AccountsAdapter, vmcommon.BlockchainHook)
func CreateTxProcessorWithOneSCExecutorIeleVM ¶ added in v1.0.3
func CreateTxProcessorWithOneSCExecutorIeleVM( accnts state.AccountsAdapter, ) (process.TransactionProcessor, vmcommon.BlockchainHook)
func CreateTxProcessorWithOneSCExecutorMockVM ¶
func CreateTxProcessorWithOneSCExecutorMockVM(accnts state.AccountsAdapter, opGas uint64) process.TransactionProcessor
func CreateVMAndBlockchainHook ¶
func CreateVMAndBlockchainHook(accnts state.AccountsAdapter) (vmcommon.VMExecutionHandler, *hooks.VMAccountsDB)
func GetAccountsBalance ¶
func GetAccountsBalance(addrBytes []byte, accnts state.AccountsAdapter) *big.Int
func TestAccount ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.