Review changes and operator -> coordinator

This commit is contained in:
a_bennassar
2020-07-28 16:47:37 +02:00
parent b9936f8564
commit 1d8f9411f7
13 changed files with 68 additions and 78 deletions

18
common/coordinator.go Normal file
View File

@@ -0,0 +1,18 @@
package common
import (
eth "github.com/ethereum/go-ethereum/common"
)
// Coordinator represents a Hermez network coordinator who wins an auction for an specific slot
// WARNING: this is strongly based on the previous implementation, once the new spec is done, this may change a lot.
type Coordinator struct {
CoordinatorID CoordinatorID
Forger eth.Address // address of the forger
Beneficiary eth.Address // address of the beneficiary
Withdraw eth.Address // address of the withdraw
URL string // URL of the coordinators API
}
// CoordinatorID is use to identify a Hermez coordinator
type CoordinatorID uint64