Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AbiBasedRpc ¶
type AbiBasedRpc struct { RpcStub // contains filtered or unexported fields }
func NewAbiBasedRpc ¶
func (*AbiBasedRpc) AddContract ¶
func (l *AbiBasedRpc) AddContract(to common.Address, contractAbi *abi.ABI)
func (*AbiBasedRpc) SetResponse ¶
func (*AbiBasedRpc) VerifyTxCandidate ¶
func (l *AbiBasedRpc) VerifyTxCandidate(candidate txmgr.TxCandidate)
type ExpectedRpcCall ¶ added in v1.4.0
type ExpectedRpcCall interface { fmt.Stringer Matches(rpcMethod string, args ...interface{}) error Execute(t *testing.T, out interface{}) }
func NewGetBalanceCall ¶ added in v1.4.0
type GenericExpectedCall ¶ added in v1.4.0
type GenericExpectedCall struct {
// contains filtered or unexported fields
}
func (*GenericExpectedCall) Execute ¶ added in v1.4.0
func (c *GenericExpectedCall) Execute(t *testing.T, out interface{})
func (*GenericExpectedCall) Matches ¶ added in v1.4.0
func (c *GenericExpectedCall) Matches(rpcMethod string, args ...interface{}) error
func (*GenericExpectedCall) String ¶ added in v1.4.0
func (c *GenericExpectedCall) String() string
type RpcStub ¶ added in v1.4.0
type RpcStub struct {
// contains filtered or unexported fields
}
func NewRpcStub ¶ added in v1.4.0
func (*RpcStub) AddExpectedCall ¶ added in v1.4.0
func (r *RpcStub) AddExpectedCall(call ExpectedRpcCall)
func (*RpcStub) BatchCallContext ¶ added in v1.4.0
func (*RpcStub) CallContext ¶ added in v1.4.0
func (*RpcStub) ClearResponses ¶ added in v1.4.0
func (r *RpcStub) ClearResponses()
Click to show internal directories.
Click to hide internal directories.