tests

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HOST = os.Getenv("HOST")
)

Functions

func GetAddress

func GetAddress() ([]byte, error)

func GetNonce

func GetNonce(t *testing.T, block string, addr string) hexutil.Uint64

func GetTransactionReceipt

func GetTransactionReceipt(t *testing.T, hash ethcmn.Hash) map[string]interface{}

nolint

func UnlockAllAccounts

func UnlockAllAccounts(t *testing.T)

func WaitForReceipt

func WaitForReceipt(t *testing.T, hash ethcmn.Hash) map[string]interface{}

Types

type RPCError

type RPCError struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type Request

type Request struct {
	Version string      `json:"jsonrpc"`
	Method  string      `json:"method"`
	Params  interface{} `json:"params"`
	ID      int         `json:"id"`
}

func CreateRequest

func CreateRequest(method string, params interface{}) Request

type Response

type Response struct {
	Error  *RPCError       `json:"error"`
	ID     int             `json:"id"`
	Result json.RawMessage `json:"result,omitempty"`
}

func Call

func Call(t *testing.T, method string, params interface{}) *Response

func CallWithError

func CallWithError(method string, params interface{}) (*Response, error)

Jump to

Keyboard shortcuts

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