contractmocks

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 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) AddContractSubscription

func (_m *Manager) AddContractSubscription(ctx context.Context, ns string, sub *fftypes.ContractSubscriptionInput) (*fftypes.ContractSubscription, error)

AddContractSubscription provides a mock function with given fields: ctx, ns, sub

func (*Manager) BroadcastContractAPI

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

BroadcastContractAPI provides a mock function with given fields: ctx, 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) DeleteContractSubscriptionByNameOrID

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

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

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) 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) GetContractSubscriptionByNameOrID

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

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

func (*Manager) GetContractSubscriptions

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

GetContractSubscriptions 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) 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) SubscribeContract

func (_m *Manager) SubscribeContract(ctx context.Context, ns string, eventPath string, req *fftypes.ContractSubscribeRequest) (*fftypes.ContractSubscription, error)

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

func (*Manager) SubscribeContractAPI

func (_m *Manager) SubscribeContractAPI(ctx context.Context, ns string, apiName string, eventPath string, req *fftypes.ContractSubscribeRequest) (*fftypes.ContractSubscription, error)

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

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