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, error)
- func CreateDeployTx(senderAddressBytes []byte, senderNonce uint64, value *big.Int, gasPrice uint64, ...) *dataTransaction.Transaction
- func CreateEmptyAddress() state.AddressContainer
- func CreateInMemoryShardAccountsDB() *state.AccountsDB
- func CreateMemUnit() storage.Storer
- func CreateOneSCExecutorMockVM(accnts state.AccountsAdapter) vmcommon.VMExecutionHandler
- func CreatePreparedTxProcessorAndAccountsWithMockedVM(t *testing.T, vmOpGas uint64, senderNonce uint64, senderAddressBytes []byte, ...) (process.TransactionProcessor, state.AccountsAdapter)
- func CreatePreparedTxProcessorAndAccountsWithVMs(tb testing.TB, senderNonce uint64, senderAddressBytes []byte, ...) (process.TransactionProcessor, state.AccountsAdapter, vmcommon.BlockchainHook)
- func CreateTopUpTx(nonce uint64, value *big.Int, scAddrress []byte, sndAddress []byte) *dataTransaction.Transaction
- func CreateTransferTokenTx(nonce uint64, value *big.Int, scAddrress []byte, sndAddress []byte, ...) *dataTransaction.Transaction
- func CreateTransferTx(nonce uint64, value *big.Int, scAddrress []byte, sndAddress []byte, ...) *dataTransaction.Transaction
- func CreateTx(tb testing.TB, senderAddressBytes []byte, receiverAddressBytes []byte, ...) *dataTransaction.Transaction
- func CreateTxProcessorArwenVMWithGasSchedule(tb testing.TB, senderNonce uint64, senderAddressBytes []byte, ...) (process.TransactionProcessor, state.AccountsAdapter, vmcommon.BlockchainHook)
- func CreateTxProcessorWithOneSCExecutorMockVM(accnts state.AccountsAdapter, opGas uint64) process.TransactionProcessor
- func CreateTxProcessorWithOneSCExecutorWithVMs(accnts state.AccountsAdapter, vmContainer process.VirtualMachinesContainer, ...) process.TransactionProcessor
- func CreateVMAndBlockchainHook(accnts state.AccountsAdapter, gasSchedule map[string]map[string]uint64) (process.VirtualMachinesContainer, *hooks.BlockChainHookImpl)
- func GetAccountsBalance(addrBytes []byte, accnts state.AccountsAdapter) *big.Int
- func GetIntValueFromSC(gasSchedule map[string]map[string]uint64, accnts state.AccountsAdapter, ...) *big.Int
- func TestAccount(t *testing.T, accnts state.AccountsAdapter, senderAddressBytes []byte, ...) *big.Int
- 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 CreateDeployTx ¶
func CreateDeployTx( senderAddressBytes []byte, senderNonce uint64, value *big.Int, gasPrice uint64, gasLimit uint64, scCodeAndVMType []byte, ) *dataTransaction.Transaction
func CreateEmptyAddress ¶
func CreateEmptyAddress() state.AddressContainer
func CreateInMemoryShardAccountsDB ¶
func CreateInMemoryShardAccountsDB() *state.AccountsDB
func CreateMemUnit ¶
func CreateOneSCExecutorMockVM ¶
func CreateOneSCExecutorMockVM(accnts state.AccountsAdapter) vmcommon.VMExecutionHandler
func CreatePreparedTxProcessorAndAccountsWithVMs ¶
func CreatePreparedTxProcessorAndAccountsWithVMs( tb testing.TB, senderNonce uint64, senderAddressBytes []byte, senderBalance *big.Int, ) (process.TransactionProcessor, state.AccountsAdapter, vmcommon.BlockchainHook)
func CreateTopUpTx ¶ added in v1.0.41
func CreateTopUpTx(nonce uint64, value *big.Int, scAddrress []byte, sndAddress []byte) *dataTransaction.Transaction
func CreateTransferTokenTx ¶
func CreateTransferTokenTx( nonce uint64, value *big.Int, scAddrress []byte, sndAddress []byte, rcvAddress []byte, ) *dataTransaction.Transaction
func CreateTransferTx ¶
func CreateTransferTx( nonce uint64, value *big.Int, scAddrress []byte, sndAddress []byte, rcvAddress []byte, ) *dataTransaction.Transaction
func CreateTxProcessorArwenVMWithGasSchedule ¶
func CreateTxProcessorArwenVMWithGasSchedule( tb testing.TB, senderNonce uint64, senderAddressBytes []byte, senderBalance *big.Int, gasSchedule map[string]map[string]uint64, ) (process.TransactionProcessor, state.AccountsAdapter, vmcommon.BlockchainHook)
func CreateTxProcessorWithOneSCExecutorMockVM ¶
func CreateTxProcessorWithOneSCExecutorMockVM(accnts state.AccountsAdapter, opGas uint64) process.TransactionProcessor
func CreateTxProcessorWithOneSCExecutorWithVMs ¶
func CreateTxProcessorWithOneSCExecutorWithVMs( accnts state.AccountsAdapter, vmContainer process.VirtualMachinesContainer, blockChainHook *hooks.BlockChainHookImpl, ) process.TransactionProcessor
func CreateVMAndBlockchainHook ¶
func CreateVMAndBlockchainHook( accnts state.AccountsAdapter, gasSchedule map[string]map[string]uint64, ) (process.VirtualMachinesContainer, *hooks.BlockChainHookImpl)
func GetAccountsBalance ¶
func GetAccountsBalance(addrBytes []byte, accnts state.AccountsAdapter) *big.Int
func GetIntValueFromSC ¶
func TestAccount ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.