Documentation ¶
Index ¶
- Variables
- func DeployTestContract(t *testing.T, addr []byte) (hexutil.Bytes, map[string]interface{})
- func DeployTestContractWithFunction(t *testing.T, addr []byte) hexutil.Bytes
- func GetAddress() ([]byte, error)
- func GetGasPrice(t *testing.T) string
- func GetNonce(t *testing.T, block string) hexutil.Uint64
- func GetTransactionReceipt(t *testing.T, hash hexutil.Bytes) map[string]interface{}
- func HexToBigInt(t *testing.T, in string) *big.Int
- func SendTestTransaction(t *testing.T, addr []byte) hexutil.Bytes
- func UnlockAllAccounts(t *testing.T)
- func WaitForReceipt(t *testing.T, hash hexutil.Bytes) map[string]interface{}
- type Error
- type Request
- type Response
Constants ¶
This section is empty.
Variables ¶
View Source
var HOST = os.Getenv("HOST")
Functions ¶
func DeployTestContract ¶
deployTestContract deploys a contract that emits an event in the constructor
func GetAddress ¶
func GetGasPrice ¶
func GetTransactionReceipt ¶
func HexToBigInt ¶
turns a 0x prefixed hex string to a big.Int
func SendTestTransaction ¶
sendTestTransaction sends a dummy transaction
func UnlockAllAccounts ¶
Types ¶
type Request ¶
type Request struct { Version string `json:"jsonrpc"` Method string `json:"method"` Params interface{} `json:"params"` ID int `json:"id"` }
func CreateRequest ¶
type Response ¶
type Response struct { Error *Error `json:"error"` ID int `json:"id"` Result json.RawMessage `json:"result,omitempty"` }
func CallWithError ¶
Click to show internal directories.
Click to hide internal directories.