hermez-node/common/coordinator.go
common/coordinator.goRaw
1package common
2
3import (
4 eth "github.com/ethereum/go-ethereum/common"
5)
6
7// Coordinator represents a Hermez network coordinator who wins an auction for an specific slot
8// WARNING: this is strongly based on the previous implementation, once the new spec is done, this may change a lot.
9type Coordinator struct {
10 CoordinatorID CoordinatorID
11 Forger eth.Address // address of the forger
12 Beneficiary eth.Address // address of the beneficiary
13 Withdraw eth.Address // address of the withdraw
14 URL string // URL of the coordinators API
15}
16
17// CoordinatorID is use to identify a Hermez coordinator
18type CoordinatorID uint64