contractmocks

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 5 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 NewManager added in v1.1.2

func NewManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *Manager

NewManager creates a new instance of Manager. 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 (*Manager) AddContractAPIListener added in v1.0.0

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

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

func (*Manager) AddContractListener added in v0.14.0

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

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

func (*Manager) DeleteContractAPI added in v1.3.0

func (_m *Manager) DeleteContractAPI(ctx context.Context, apiName string) error

DeleteContractAPI provides a mock function with given fields: ctx, apiName

func (*Manager) DeleteContractListenerByNameOrID added in v0.14.0

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

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

func (*Manager) DeleteFFI added in v1.3.0

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

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

func (*Manager) DeployContract added in v1.1.2

func (_m *Manager) DeployContract(ctx context.Context, req *core.ContractDeployRequest, waitConfirm bool) (interface{}, error)

DeployContract provides a mock function with given fields: ctx, req, waitConfirm

func (*Manager) GenerateFFI added in v0.13.1

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

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

func (*Manager) GetContractAPI

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

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

func (*Manager) GetContractAPIInterface added in v1.0.0

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

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

func (*Manager) GetContractAPIListeners added in v1.0.0

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

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

func (*Manager) GetContractAPIs

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

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

func (*Manager) GetContractListenerByNameOrID added in v0.14.0

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

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

func (*Manager) GetContractListenerByNameOrIDWithStatus added in v1.1.0

func (_m *Manager) GetContractListenerByNameOrIDWithStatus(ctx context.Context, nameOrID string) (*core.ContractListenerWithStatus, error)

GetContractListenerByNameOrIDWithStatus provides a mock function with given fields: ctx, nameOrID

func (*Manager) GetContractListeners added in v0.14.0

func (_m *Manager) GetContractListeners(ctx context.Context, filter ffapi.AndFilter) ([]*core.ContractListener, *ffapi.FilterResult, error)

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

func (*Manager) GetFFI

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

GetFFI provides a mock function with given fields: ctx, 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) GetFFIEvents added in v1.1.3

func (_m *Manager) GetFFIEvents(ctx context.Context, id *fftypes.UUID) ([]*fftypes.FFIEvent, error)

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

func (*Manager) GetFFIMethods added in v1.1.3

func (_m *Manager) GetFFIMethods(ctx context.Context, id *fftypes.UUID) ([]*fftypes.FFIMethod, error)

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

func (*Manager) GetFFIWithChildren added in v1.0.0

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

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

func (*Manager) GetFFIs

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

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

func (*Manager) InvokeContract

func (_m *Manager) InvokeContract(ctx context.Context, req *core.ContractCallRequest, waitConfirm bool) (interface{}, error)

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

func (*Manager) InvokeContractAPI

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

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

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 *core.Operation) (*core.PreparedOperation, error)

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

func (*Manager) ResolveContractAPI added in v1.1.0

func (_m *Manager) ResolveContractAPI(ctx context.Context, httpServerURL string, api *core.ContractAPI) error

ResolveContractAPI provides a mock function with given fields: ctx, httpServerURL, api

func (*Manager) ResolveFFI added in v1.1.0

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

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

func (*Manager) ResolveFFIReference added in v1.1.3

func (_m *Manager) ResolveFFIReference(ctx context.Context, ref *fftypes.FFIReference) error

ResolveFFIReference provides a mock function with given fields: ctx, ref

func (*Manager) RunOperation added in v0.14.0

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

Jump to

Keyboard shortcuts

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