Documentation ¶
Index ¶
- type API
- func (_m *API) AddressBalance(ctx context.Context, req *ffcapi.AddressBalanceRequest) (*ffcapi.AddressBalanceResponse, ffcapi.ErrorReason, error)
- func (_m *API) BlockInfoByHash(ctx context.Context, req *ffcapi.BlockInfoByHashRequest) (*ffcapi.BlockInfoByHashResponse, ffcapi.ErrorReason, error)
- func (_m *API) BlockInfoByNumber(ctx context.Context, req *ffcapi.BlockInfoByNumberRequest) (*ffcapi.BlockInfoByNumberResponse, ffcapi.ErrorReason, error)
- func (_m *API) DeployContractPrepare(ctx context.Context, req *ffcapi.ContractDeployPrepareRequest) (*ffcapi.TransactionPrepareResponse, ffcapi.ErrorReason, error)
- func (_m *API) EventListenerAdd(ctx context.Context, req *ffcapi.EventListenerAddRequest) (*ffcapi.EventListenerAddResponse, ffcapi.ErrorReason, error)
- func (_m *API) EventListenerHWM(ctx context.Context, req *ffcapi.EventListenerHWMRequest) (*ffcapi.EventListenerHWMResponse, ffcapi.ErrorReason, error)
- func (_m *API) EventListenerRemove(ctx context.Context, req *ffcapi.EventListenerRemoveRequest) (*ffcapi.EventListenerRemoveResponse, ffcapi.ErrorReason, error)
- func (_m *API) EventListenerVerifyOptions(ctx context.Context, req *ffcapi.EventListenerVerifyOptionsRequest) (*ffcapi.EventListenerVerifyOptionsResponse, ffcapi.ErrorReason, error)
- func (_m *API) EventStreamNewCheckpointStruct() ffcapi.EventListenerCheckpoint
- func (_m *API) EventStreamStart(ctx context.Context, req *ffcapi.EventStreamStartRequest) (*ffcapi.EventStreamStartResponse, ffcapi.ErrorReason, error)
- func (_m *API) EventStreamStopped(ctx context.Context, req *ffcapi.EventStreamStoppedRequest) (*ffcapi.EventStreamStoppedResponse, ffcapi.ErrorReason, error)
- func (_m *API) GasEstimate(ctx context.Context, req *ffcapi.TransactionInput) (*ffcapi.GasEstimateResponse, ffcapi.ErrorReason, error)
- func (_m *API) GasPriceEstimate(ctx context.Context, req *ffcapi.GasPriceEstimateRequest) (*ffcapi.GasPriceEstimateResponse, ffcapi.ErrorReason, error)
- func (_m *API) IsLive(ctx context.Context) (*ffcapi.LiveResponse, ffcapi.ErrorReason, error)
- func (_m *API) IsReady(ctx context.Context) (*ffcapi.ReadyResponse, ffcapi.ErrorReason, error)
- func (_m *API) NewBlockListener(ctx context.Context, req *ffcapi.NewBlockListenerRequest) (*ffcapi.NewBlockListenerResponse, ffcapi.ErrorReason, error)
- func (_m *API) NextNonceForSigner(ctx context.Context, req *ffcapi.NextNonceForSignerRequest) (*ffcapi.NextNonceForSignerResponse, ffcapi.ErrorReason, error)
- func (_m *API) QueryInvoke(ctx context.Context, req *ffcapi.QueryInvokeRequest) (*ffcapi.QueryInvokeResponse, ffcapi.ErrorReason, error)
- func (_m *API) TransactionPrepare(ctx context.Context, req *ffcapi.TransactionPrepareRequest) (*ffcapi.TransactionPrepareResponse, ffcapi.ErrorReason, error)
- func (_m *API) TransactionReceipt(ctx context.Context, req *ffcapi.TransactionReceiptRequest) (*ffcapi.TransactionReceiptResponse, ffcapi.ErrorReason, error)
- func (_m *API) TransactionSend(ctx context.Context, req *ffcapi.TransactionSendRequest) (*ffcapi.TransactionSendResponse, ffcapi.ErrorReason, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
API is an autogenerated mock type for the API type
func NewAPI ¶ added in v1.1.6
NewAPI creates a new instance of API. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*API) AddressBalance ¶ added in v1.1.6
func (_m *API) AddressBalance(ctx context.Context, req *ffcapi.AddressBalanceRequest) (*ffcapi.AddressBalanceResponse, ffcapi.ErrorReason, error)
AddressBalance provides a mock function with given fields: ctx, req
func (*API) BlockInfoByHash ¶ added in v0.9.3
func (_m *API) BlockInfoByHash(ctx context.Context, req *ffcapi.BlockInfoByHashRequest) (*ffcapi.BlockInfoByHashResponse, ffcapi.ErrorReason, error)
BlockInfoByHash provides a mock function with given fields: ctx, req
func (*API) BlockInfoByNumber ¶ added in v0.9.3
func (_m *API) BlockInfoByNumber(ctx context.Context, req *ffcapi.BlockInfoByNumberRequest) (*ffcapi.BlockInfoByNumberResponse, ffcapi.ErrorReason, error)
BlockInfoByNumber provides a mock function with given fields: ctx, req
func (*API) DeployContractPrepare ¶ added in v0.9.3
func (_m *API) DeployContractPrepare(ctx context.Context, req *ffcapi.ContractDeployPrepareRequest) (*ffcapi.TransactionPrepareResponse, ffcapi.ErrorReason, error)
DeployContractPrepare provides a mock function with given fields: ctx, req
func (*API) EventListenerAdd ¶ added in v0.9.3
func (_m *API) EventListenerAdd(ctx context.Context, req *ffcapi.EventListenerAddRequest) (*ffcapi.EventListenerAddResponse, ffcapi.ErrorReason, error)
EventListenerAdd provides a mock function with given fields: ctx, req
func (*API) EventListenerHWM ¶ added in v0.9.3
func (_m *API) EventListenerHWM(ctx context.Context, req *ffcapi.EventListenerHWMRequest) (*ffcapi.EventListenerHWMResponse, ffcapi.ErrorReason, error)
EventListenerHWM provides a mock function with given fields: ctx, req
func (*API) EventListenerRemove ¶ added in v0.9.3
func (_m *API) EventListenerRemove(ctx context.Context, req *ffcapi.EventListenerRemoveRequest) (*ffcapi.EventListenerRemoveResponse, ffcapi.ErrorReason, error)
EventListenerRemove provides a mock function with given fields: ctx, req
func (*API) EventListenerVerifyOptions ¶ added in v0.9.3
func (_m *API) EventListenerVerifyOptions(ctx context.Context, req *ffcapi.EventListenerVerifyOptionsRequest) (*ffcapi.EventListenerVerifyOptionsResponse, ffcapi.ErrorReason, error)
EventListenerVerifyOptions provides a mock function with given fields: ctx, req
func (*API) EventStreamNewCheckpointStruct ¶ added in v0.9.3
func (_m *API) EventStreamNewCheckpointStruct() ffcapi.EventListenerCheckpoint
EventStreamNewCheckpointStruct provides a mock function with given fields:
func (*API) EventStreamStart ¶ added in v0.9.3
func (_m *API) EventStreamStart(ctx context.Context, req *ffcapi.EventStreamStartRequest) (*ffcapi.EventStreamStartResponse, ffcapi.ErrorReason, error)
EventStreamStart provides a mock function with given fields: ctx, req
func (*API) EventStreamStopped ¶ added in v0.9.3
func (_m *API) EventStreamStopped(ctx context.Context, req *ffcapi.EventStreamStoppedRequest) (*ffcapi.EventStreamStoppedResponse, ffcapi.ErrorReason, error)
EventStreamStopped provides a mock function with given fields: ctx, req
func (*API) GasEstimate ¶ added in v1.2.13
func (_m *API) GasEstimate(ctx context.Context, req *ffcapi.TransactionInput) (*ffcapi.GasEstimateResponse, ffcapi.ErrorReason, error)
GasEstimate provides a mock function with given fields: ctx, req
func (*API) GasPriceEstimate ¶ added in v0.9.3
func (_m *API) GasPriceEstimate(ctx context.Context, req *ffcapi.GasPriceEstimateRequest) (*ffcapi.GasPriceEstimateResponse, ffcapi.ErrorReason, error)
GasPriceEstimate provides a mock function with given fields: ctx, req
func (*API) IsLive ¶ added in v0.9.11
func (_m *API) IsLive(ctx context.Context) (*ffcapi.LiveResponse, ffcapi.ErrorReason, error)
IsLive provides a mock function with given fields: ctx
func (*API) IsReady ¶ added in v0.9.11
func (_m *API) IsReady(ctx context.Context) (*ffcapi.ReadyResponse, ffcapi.ErrorReason, error)
IsReady provides a mock function with given fields: ctx
func (*API) NewBlockListener ¶ added in v0.9.3
func (_m *API) NewBlockListener(ctx context.Context, req *ffcapi.NewBlockListenerRequest) (*ffcapi.NewBlockListenerResponse, ffcapi.ErrorReason, error)
NewBlockListener provides a mock function with given fields: ctx, req
func (*API) NextNonceForSigner ¶ added in v0.9.3
func (_m *API) NextNonceForSigner(ctx context.Context, req *ffcapi.NextNonceForSignerRequest) (*ffcapi.NextNonceForSignerResponse, ffcapi.ErrorReason, error)
NextNonceForSigner provides a mock function with given fields: ctx, req
func (*API) QueryInvoke ¶ added in v0.9.3
func (_m *API) QueryInvoke(ctx context.Context, req *ffcapi.QueryInvokeRequest) (*ffcapi.QueryInvokeResponse, ffcapi.ErrorReason, error)
QueryInvoke provides a mock function with given fields: ctx, req
func (*API) TransactionPrepare ¶ added in v0.9.3
func (_m *API) TransactionPrepare(ctx context.Context, req *ffcapi.TransactionPrepareRequest) (*ffcapi.TransactionPrepareResponse, ffcapi.ErrorReason, error)
TransactionPrepare provides a mock function with given fields: ctx, req
func (*API) TransactionReceipt ¶ added in v0.9.3
func (_m *API) TransactionReceipt(ctx context.Context, req *ffcapi.TransactionReceiptRequest) (*ffcapi.TransactionReceiptResponse, ffcapi.ErrorReason, error)
TransactionReceipt provides a mock function with given fields: ctx, req
func (*API) TransactionSend ¶ added in v0.9.3
func (_m *API) TransactionSend(ctx context.Context, req *ffcapi.TransactionSendRequest) (*ffcapi.TransactionSendResponse, ffcapi.ErrorReason, error)
TransactionSend provides a mock function with given fields: ctx, req