ethereumTxLegacyTC

package
v1.9.0-tc.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2022 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "ethereumTxLegacyTC"

Variables

View Source
var (
	SmartContractAccount *account.Account
)

Functions

func CheckResult

func CheckResult(txHash common.Hash, reqType int) (bool, error)

CheckResult returns true and nil error, if expected results are observed, otherwise returns false and error.

func CreateRandomArguments

func CreateRandomArguments(addr common.Address) (*account.Account, *big.Int, string, int, error)

CreateRandomArguments generates arguments randomly with various cases. simple value transfer, smart contract deployment, smart contract execution

func GetReceipt

func GetReceipt(cli *client.Client, txHash common.Hash, maxRetry int) map[string]interface{}

GetReceipt returns a transaction receipt. If receipt is nil, retry until maxRetry.

func Init

func Init(accs []*account.Account, endpoint string, gp *big.Int)

func MakeFunctionCall

func MakeFunctionCall(addr common.Address) (string, error)

MakeFunctionCall returns a function call to execute smart contract.

func Run

func Run()

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL