Documentation
¶
Index ¶
- type ContractManager
- func (cm *ContractManager) AddContract(ctx context.Context, data *hashrate.EncryptedTerms)
- func (cm *ContractManager) GetContract(id string) (resources.Contract, bool)
- func (cm *ContractManager) GetContracts() *lib.Collection[resources.Contract]
- func (cm *ContractManager) Run(ctx context.Context) error
- type CreateContractFn
- type TermsCommon
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContractManager ¶
type ContractManager struct {
// contains filtered or unexported fields
}
func NewContractManager ¶
func NewContractManager(clonefactoryAddr, ownerAddr common.Address, createContractFn CreateContractFn, store *contracts.HashrateEthereum, log interfaces.ILogger) *ContractManager
func (*ContractManager) AddContract ¶
func (cm *ContractManager) AddContract(ctx context.Context, data *hashrate.EncryptedTerms)
func (*ContractManager) GetContract ¶
func (cm *ContractManager) GetContract(id string) (resources.Contract, bool)
func (*ContractManager) GetContracts ¶
func (cm *ContractManager) GetContracts() *lib.Collection[resources.Contract]
type CreateContractFn ¶
type CreateContractFn func(terms *hashrate.EncryptedTerms) (resources.Contract, error)
Click to show internal directories.
Click to hide internal directories.