Documentation ¶
Index ¶
- type ContractRegistry
- func (_m *ContractRegistry) Deploy(ctx context.Context, contractType contracts.ContractType) contracts.DeployedContract
- func (_m *ContractRegistry) Get(ctx context.Context, contractType contracts.ContractType) contracts.DeployedContract
- func (_m *ContractRegistry) GetDeployedContracts() map[int]contracts.DeployedContract
- func (_m *ContractRegistry) GetRegisteredDeployer(contractType contracts.ContractType) deployer.ContractDeployer
- func (_m *ContractRegistry) IsContractDeployed(contractType contracts.ContractType) bool
- func (_m *ContractRegistry) Register(contractType contracts.ContractType, contract contracts.DeployedContract)
- func (_m *ContractRegistry) RegisterContractDeployer(deployers ...deployer.ContractDeployer)
- func (_m *ContractRegistry) RegisteredDeployers() []deployer.ContractDeployer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContractRegistry ¶
ContractRegistry is an autogenerated mock type for the ContractRegistry type
func NewContractRegistry ¶
func NewContractRegistry(t mockConstructorTestingTNewContractRegistry) *ContractRegistry
NewContractRegistry creates a new instance of ContractRegistry. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ContractRegistry) Deploy ¶
func (_m *ContractRegistry) Deploy(ctx context.Context, contractType contracts.ContractType) contracts.DeployedContract
Deploy provides a mock function with given fields: ctx, contractType
func (*ContractRegistry) Get ¶
func (_m *ContractRegistry) Get(ctx context.Context, contractType contracts.ContractType) contracts.DeployedContract
Get provides a mock function with given fields: ctx, contractType
func (*ContractRegistry) GetDeployedContracts ¶
func (_m *ContractRegistry) GetDeployedContracts() map[int]contracts.DeployedContract
GetDeployedContracts provides a mock function with given fields:
func (*ContractRegistry) GetRegisteredDeployer ¶
func (_m *ContractRegistry) GetRegisteredDeployer(contractType contracts.ContractType) deployer.ContractDeployer
GetRegisteredDeployer provides a mock function with given fields: contractType
func (*ContractRegistry) IsContractDeployed ¶
func (_m *ContractRegistry) IsContractDeployed(contractType contracts.ContractType) bool
IsContractDeployed provides a mock function with given fields: contractType
func (*ContractRegistry) Register ¶
func (_m *ContractRegistry) Register(contractType contracts.ContractType, contract contracts.DeployedContract)
Register provides a mock function with given fields: contractType, contract
func (*ContractRegistry) RegisterContractDeployer ¶
func (_m *ContractRegistry) RegisterContractDeployer(deployers ...deployer.ContractDeployer)
RegisterContractDeployer provides a mock function with given fields: deployers
func (*ContractRegistry) RegisteredDeployers ¶
func (_m *ContractRegistry) RegisteredDeployers() []deployer.ContractDeployer
RegisteredDeployers provides a mock function with given fields: