assigner

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(db DB, prv *ecdsa.PrivateKey, chainEndpoint string, retrieve RetrieveTask, minterAddr common.Address) error

Types

type DB

type DB interface {
	UnassignedTask() (uint64, common.Hash, error)
	AssignTask(projectID uint64, taskID common.Hash, prover common.Address) error
	Provers() ([]common.Address, error)
}

type RetrieveTask added in v0.19.0

type RetrieveTask func(projectID uint64, taskID common.Hash) (*task.Task, error)

Jump to

Keyboard shortcuts

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