contractmocks

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

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

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

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

func (_m *Manager) ConstructContractListenerSignature(ctx context.Context, listener *core.ContractListenerInput) (*core.ContractListenerSignatureOutput, error)

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

func (*Manager) DeleteContractAPI

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

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

func (*Manager) DeleteContractListenerByNameOrID

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

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

func (*Manager) DeleteFFI

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

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

func (*Manager) DeployContract

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

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

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

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

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

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

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

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

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

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

func (_m *Manager) Name() string

Name provides a mock function with given fields:

func (*Manager) PrepareOperation

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

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

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

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

func (*Manager) ResolveFFIReference

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

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

func (*Manager) RunOperation

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