test

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

* Test helpers.

* Dummy RPC backend. Implements Ethereum JSON-RPC calls that the tests need.

Index

Constants

This section is empty.

Variables

View Source
var MockBackendLastJsonRpcRequest *server.JsonRpcRequest
View Source
var MockBackendLastJsonRpcRequestTimestamp time.Time
View Source
var MockBackendLastRawRequest *http.Request
View Source
var RpcEndpointUrl string // set by test init()
View Source
var TestTx_BundleFailedTooManyTimes_From = "0xc84edF69E78C0E9dE5ccFE4fB9017F6F7566787f"
View Source
var TestTx_BundleFailedTooManyTimes_Hash = "0xfb34b88cd77215867aa8e8ff0abc7060178b8fed6519a85d0b22853dfd5e9fec"
View Source
var TestTx_BundleFailedTooManyTimes_RawTx = "" /* 836-byte string literal not displayed */

Test tx for bundle-failed-too-many-times MM1 fix

View Source
var TestTx_MM2_From = "0x7AaBc7915DF92a85E199DbB4B1D21E637e1a90A2"
View Source
var TestTx_MM2_Hash = "0xc543e2ad05cffdee95b984df20edd2e38e124c54461faa1276adc36e826588c9"
View Source
var TestTx_MM2_RawTx = "" /* 216-byte string literal not displayed */

Test tx for MM2 fix

Functions

func RpcBackendHandler

func RpcBackendHandler(w http.ResponseWriter, req *http.Request)

func TxApiHandler added in v1.3.0

func TxApiHandler(w http.ResponseWriter, req *http.Request)

Types

This section is empty.

Jump to

Keyboard shortcuts

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