Documentation ¶
Index ¶
- type ContractStore
- func (_m *ContractStore) AddABI(id string, deployMsg *messages.DeployContract, createdTime time.Time) (*contractregistry.ABIInfo, error)
- func (_m *ContractStore) AddContract(addrHexNo0x string, abiID string, pathName string, registerAs string) (*contractregistry.ContractInfo, error)
- func (_m *ContractStore) AddRemoteInstance(lookupStr string, address string) error
- func (_m *ContractStore) CheckNameAvailable(name string, isRemote bool) error
- func (_m *ContractStore) Close()
- func (_m *ContractStore) GetABI(location contractregistry.ABILocation, refresh bool) (*contractregistry.DeployContractWithAddress, error)
- func (_m *ContractStore) GetContractByAddress(addrHex string) (*contractregistry.ContractInfo, error)
- func (_m *ContractStore) GetLocalABIInfo(abiID string) (*contractregistry.ABIInfo, error)
- func (_m *ContractStore) Init() error
- func (_m *ContractStore) ListABIs() ([]messages.TimeSortable, error)
- func (_m *ContractStore) ListContracts() ([]messages.TimeSortable, error)
- func (_m *ContractStore) ResolveContractAddress(registeredName string) (string, error)
- type RemoteRegistry
- func (_m *RemoteRegistry) Close()
- func (_m *RemoteRegistry) Init() error
- func (_m *RemoteRegistry) LoadFactoryForGateway(lookupStr string, refresh bool) (*messages.DeployContract, error)
- func (_m *RemoteRegistry) LoadFactoryForInstance(lookupStr string, refresh bool) (*contractregistry.DeployContractWithAddress, error)
- func (_m *RemoteRegistry) RegisterInstance(lookupStr string, address string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContractStore ¶
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 ¶
func (_m *ContractStore) GetABI(location contractregistry.ABILocation, refresh bool) (*contractregistry.DeployContractWithAddress, error)
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 ¶
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