Versions in this module Expand all Collapse all v1 v1.1.3 Apr 4, 2023 v1.1.2 Apr 4, 2023 v1.1.1 Nov 24, 2022 v1.1.0 Nov 24, 2022 Changes in this version + const DefaultConfigFilePath + var AccountSizeFlag = cli.IntFlag + var AnalyzeStressTestCmd = cli.Command + var ConfigPathFlag = cli.StringFlag + var ContractAbiFilePathFlag = cli.StringFlag + var ContractAddrFlag = cli.StringFlag + var ContractFuncNameFlag = cli.StringFlag + var ContractWasmFilePathFlag = cli.StringFlag + var DefaultAccountAddrFilePath = "./test/addr.json" + var DefaultPrivateKeyFilePath = "./test/privateKeys.txt" + var DeployCmd = cli.Command + var GetTxReceiptCmd = cli.Command + var InvokeCmd = cli.Command + var PKFilePathFlag = cli.StringFlag + var RpcUrl = "http://127.0.0.1:6789" + var SendRawTransactionCmd = cli.Command + var SendTransactionCmd = cli.Command + var SendTxIntervalFlag = cli.IntFlag + var StabExecTimesFlag = cli.IntFlag + var StabPrepareCmd = cli.Command + var StabilityCmd = cli.Command + var StressTransferValue = 1000 + var TransactionHashFlag = cli.StringFlag + var TransactionTypeFlag = cli.IntFlag + var TransferValueFlag = cli.StringFlag + var TxFromFlag = cli.StringFlag + var TxJsonDataFlag = cli.StringFlag + var TxStressOutPutFileFlag = cli.StringFlag + var TxStressSourceFilesPathFlag = cli.StringSliceFlag + var TxStressStatisticTimeFlag = cli.IntFlag + var TxToFlag = cli.StringFlag + func BoolToBytes(b bool) []byte + func BytesConverter(source []byte, t string) interface + func BytesToFloat32(bytes []byte) float32 + func BytesToFloat64(bytes []byte) float64 + func BytesToInt32(b []byte) int32 + func BytesToInt64(b []byte) int64 + func DeployContract(abiFilePath string, codeFilePath string) error + func Float32ToBytes(float float32) []byte + func Float64ToBytes(float float64) []byte + func GetFuncNameAndParams(f string) (string, []string) + func GetNonce(addr string) uint64 + func GetTransactionReceipt(txHash string, ch chan string, exit chan string) + func HttpPost(param JsonParam) (string, error) + func Int32ToBytes(n int32) []byte + func Int64ToBytes(n int64) []byte + func InvokeContract(contractAddr string, abiPath string, funcParams string, txType int) error + func PrepareAccount(size int, pkFile, value string) error + func Send(params interface{}, action string) (string, error) + func SendRawTransaction(from, to, value string, pkFilePath string) (string, error) + func SendRawTransactionWithData(configPath string, from string, to string, value int64, priv *ecdsa.PrivateKey, ...) (string, error) + func SendTransaction(from, to, value string) (string, error) + func StabilityTest(pkFile string, times, interval int) error + func StringConverter(source string, t string) ([]byte, error) + func TestMain(m *testing.M) + type Config struct + From string + Gas string + GasPrice string + Url string + type DeployParams struct + Data string + From string + Gas string + GasPrice string + type FuncDesc struct + Constant string + Inputs []struct{ ... } + Name string + Outputs []struct{ ... } + Type string + type JsonParam struct + Id int + Jsonrpc string + Method string + Params interface{} + type PriAccount struct + Address common.Address + Nonce uint64 + Priv *ecdsa.PrivateKey + type RawTxParams struct + Nonce int64 + type Receipt struct + Id int + Jsonrpc string + Result struct{ ... } + func GetTxReceipt(txHash string) (Receipt, error) + type Response struct + Error struct{ ... } + Id int + Jsonrpc string + Result string + type TxParams struct + Data string + From string + Gas string + GasPrice string + To string + Value string