contractregistrymocks

package
v0.0.0-...-d3d27b2 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 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 ContractStore

type ContractStore struct {
	mock.Mock
}

ContractStore is an autogenerated mock type for the ContractStore type

func NewContractStore

func NewContractStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *ContractStore

NewContractStore creates a new instance of ContractStore. 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 (*ContractStore) AddABI

func (_m *ContractStore) AddABI(id string, deployMsg *messages.DeployContract, createdTime time.Time) (*contractregistry.ABIInfo, error)

AddABI provides a mock function with given fields: id, deployMsg, createdTime

func (*ContractStore) AddContract

func (_m *ContractStore) AddContract(addrHexNo0x string, abiID string, pathName string, registerAs string) (*contractregistry.ContractInfo, error)

AddContract provides a mock function with given fields: addrHexNo0x, abiID, pathName, registerAs

func (*ContractStore) AddRemoteInstance

func (_m *ContractStore) AddRemoteInstance(lookupStr string, address string) error

AddRemoteInstance provides a mock function with given fields: lookupStr, address

func (*ContractStore) CheckNameAvailable

func (_m *ContractStore) CheckNameAvailable(name string, isRemote bool) error

CheckNameAvailable provides a mock function with given fields: name, isRemote

func (*ContractStore) Close

func (_m *ContractStore) Close()

Close provides a mock function with given fields:

func (*ContractStore) GetABI

GetABI provides a mock function with given fields: location, refresh

func (*ContractStore) GetContractByAddress

func (_m *ContractStore) GetContractByAddress(addrHex string) (*contractregistry.ContractInfo, error)

GetContractByAddress provides a mock function with given fields: addrHex

func (*ContractStore) GetLocalABIInfo

func (_m *ContractStore) GetLocalABIInfo(abiID string) (*contractregistry.ABIInfo, error)

GetLocalABIInfo provides a mock function with given fields: abiID

func (*ContractStore) Init

func (_m *ContractStore) Init() error

Init provides a mock function with given fields:

func (*ContractStore) ListABIs

func (_m *ContractStore) ListABIs() ([]messages.TimeSortable, error)

ListABIs provides a mock function with given fields:

func (*ContractStore) ListContracts

func (_m *ContractStore) ListContracts() ([]messages.TimeSortable, error)

ListContracts provides a mock function with given fields:

func (*ContractStore) ResolveContractAddress

func (_m *ContractStore) ResolveContractAddress(registeredName string) (string, error)

ResolveContractAddress provides a mock function with given fields: registeredName

type RemoteRegistry

type RemoteRegistry struct {
	mock.Mock
}

RemoteRegistry is an autogenerated mock type for the RemoteRegistry type

func NewRemoteRegistry

func NewRemoteRegistry(t interface {
	mock.TestingT
	Cleanup(func())
}) *RemoteRegistry

NewRemoteRegistry creates a new instance of RemoteRegistry. 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 (*RemoteRegistry) Close

func (_m *RemoteRegistry) Close()

Close provides a mock function with given fields:

func (*RemoteRegistry) Init

func (_m *RemoteRegistry) Init() error

Init provides a mock function with given fields:

func (*RemoteRegistry) LoadFactoryForGateway

func (_m *RemoteRegistry) LoadFactoryForGateway(lookupStr string, refresh bool) (*messages.DeployContract, error)

LoadFactoryForGateway provides a mock function with given fields: lookupStr, refresh

func (*RemoteRegistry) LoadFactoryForInstance

func (_m *RemoteRegistry) LoadFactoryForInstance(lookupStr string, refresh bool) (*contractregistry.DeployContractWithAddress, error)

LoadFactoryForInstance provides a mock function with given fields: lookupStr, refresh

func (*RemoteRegistry) RegisterInstance

func (_m *RemoteRegistry) RegisterInstance(lookupStr string, address string) error

RegisterInstance provides a mock function with given fields: lookupStr, address

Jump to

Keyboard shortcuts

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