contractmocks

package
v1.0.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	mock.Mock
}

Manager is an autogenerated mock type for the Manager type

func (*Manager) AddContractAPIListener added in v1.0.0

func (_m *Manager) AddContractAPIListener(ctx context.Context, ns string, apiName string, eventPath string, listener *fftypes.ContractListener) (*fftypes.ContractListener, error)

AddContractAPIListener provides a mock function with given fields: ctx, ns, apiName, eventPath, listener

func (*Manager) AddContractListener added in v0.14.0

func (_m *Manager) AddContractListener(ctx context.Context, ns string, listener *fftypes.ContractListenerInput) (*fftypes.ContractListener, error)

AddContractListener provides a mock function with given fields: ctx, ns, listener

func (*Manager) BroadcastContractAPI

func (_m *Manager) BroadcastContractAPI(ctx context.Context, httpServerURL string, ns string, api *fftypes.ContractAPI, waitConfirm bool) (*fftypes.ContractAPI, error)

BroadcastContractAPI provides a mock function with given fields: ctx, httpServerURL, ns, api, waitConfirm

func (*Manager) BroadcastFFI

func (_m *Manager) BroadcastFFI(ctx context.Context, ns string, ffi *fftypes.FFI, waitConfirm bool) (*fftypes.FFI, error)

BroadcastFFI provides a mock function with given fields: ctx, ns, ffi, waitConfirm

func (*Manager) DeleteContractListenerByNameOrID added in v0.14.0

func (_m *Manager) DeleteContractListenerByNameOrID(ctx context.Context, ns string, nameOrID string) error

DeleteContractListenerByNameOrID provides a mock function with given fields: ctx, ns, nameOrID

func (*Manager) GenerateFFI added in v0.13.1

func (_m *Manager) GenerateFFI(ctx context.Context, ns string, generationRequest *fftypes.FFIGenerationRequest) (*fftypes.FFI, error)

GenerateFFI provides a mock function with given fields: ctx, ns, generationRequest

func (*Manager) GetContractAPI

func (_m *Manager) GetContractAPI(ctx context.Context, httpServerURL string, ns string, apiName string) (*fftypes.ContractAPI, error)

GetContractAPI provides a mock function with given fields: ctx, httpServerURL, ns, apiName

func (*Manager) GetContractAPIEvent

func (_m *Manager) GetContractAPIEvent(ctx context.Context, ns string, apiName string, eventPath string) (*fftypes.FFIEvent, error)

GetContractAPIEvent provides a mock function with given fields: ctx, ns, apiName, eventPath

func (*Manager) GetContractAPIInterface added in v1.0.0

func (_m *Manager) GetContractAPIInterface(ctx context.Context, ns string, apiName string) (*fftypes.FFI, error)

GetContractAPIInterface provides a mock function with given fields: ctx, ns, apiName

func (*Manager) GetContractAPIListeners added in v1.0.0

func (_m *Manager) GetContractAPIListeners(ctx context.Context, ns string, apiName string, eventPath string, filter database.AndFilter) ([]*fftypes.ContractListener, *database.FilterResult, error)

GetContractAPIListeners provides a mock function with given fields: ctx, ns, apiName, eventPath, filter

func (*Manager) GetContractAPIMethod

func (_m *Manager) GetContractAPIMethod(ctx context.Context, ns string, apiName string, methodPath string) (*fftypes.FFIMethod, error)

GetContractAPIMethod provides a mock function with given fields: ctx, ns, apiName, methodPath

func (*Manager) GetContractAPIs

func (_m *Manager) GetContractAPIs(ctx context.Context, httpServerURL string, ns string, filter database.AndFilter) ([]*fftypes.ContractAPI, *database.FilterResult, error)

GetContractAPIs provides a mock function with given fields: ctx, httpServerURL, ns, filter

func (*Manager) GetContractListenerByNameOrID added in v0.14.0

func (_m *Manager) GetContractListenerByNameOrID(ctx context.Context, ns string, nameOrID string) (*fftypes.ContractListener, error)

GetContractListenerByNameOrID provides a mock function with given fields: ctx, ns, nameOrID

func (*Manager) GetContractListeners added in v0.14.0

func (_m *Manager) GetContractListeners(ctx context.Context, ns string, filter database.AndFilter) ([]*fftypes.ContractListener, *database.FilterResult, error)

GetContractListeners provides a mock function with given fields: ctx, ns, filter

func (*Manager) GetFFI

func (_m *Manager) GetFFI(ctx context.Context, ns string, name string, version string) (*fftypes.FFI, error)

GetFFI provides a mock function with given fields: ctx, ns, name, version

func (*Manager) GetFFIByID

func (_m *Manager) GetFFIByID(ctx context.Context, id *fftypes.UUID) (*fftypes.FFI, error)

GetFFIByID provides a mock function with given fields: ctx, id

func (*Manager) GetFFIByIDWithChildren

func (_m *Manager) GetFFIByIDWithChildren(ctx context.Context, id *fftypes.UUID) (*fftypes.FFI, error)

GetFFIByIDWithChildren provides a mock function with given fields: ctx, id

func (*Manager) GetFFIWithChildren added in v1.0.0

func (_m *Manager) GetFFIWithChildren(ctx context.Context, ns string, name string, version string) (*fftypes.FFI, error)

GetFFIWithChildren provides a mock function with given fields: ctx, ns, name, version

func (*Manager) GetFFIs

func (_m *Manager) GetFFIs(ctx context.Context, ns string, filter database.AndFilter) ([]*fftypes.FFI, *database.FilterResult, error)

GetFFIs provides a mock function with given fields: ctx, ns, filter

func (*Manager) InvokeContract

func (_m *Manager) InvokeContract(ctx context.Context, ns string, req *fftypes.ContractCallRequest) (interface{}, error)

InvokeContract provides a mock function with given fields: ctx, ns, req

func (*Manager) InvokeContractAPI

func (_m *Manager) InvokeContractAPI(ctx context.Context, ns string, apiName string, methodPath string, req *fftypes.ContractCallRequest) (interface{}, error)

InvokeContractAPI provides a mock function with given fields: ctx, ns, apiName, methodPath, req

func (*Manager) Name added in v0.14.0

func (_m *Manager) Name() string

Name provides a mock function with given fields:

func (*Manager) PrepareOperation added in v0.14.0

func (_m *Manager) PrepareOperation(ctx context.Context, op *fftypes.Operation) (*fftypes.PreparedOperation, error)

PrepareOperation provides a mock function with given fields: ctx, op

func (*Manager) RunOperation added in v0.14.0

func (_m *Manager) RunOperation(ctx context.Context, op *fftypes.PreparedOperation) (fftypes.JSONObject, bool, error)

RunOperation provides a mock function with given fields: ctx, op

func (*Manager) ValidateFFIAndSetPathnames

func (_m *Manager) ValidateFFIAndSetPathnames(ctx context.Context, ffi *fftypes.FFI) error

ValidateFFIAndSetPathnames provides a mock function with given fields: ctx, ffi

Jump to

Keyboard shortcuts

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