arnaucube
arnaucube/hermez-nodePublic Self-hosted repository
hermez-node/common/coordinator.go
common/coordinator.goRaw
 1package common
 2
 3import (
 4	ethCommon "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
 9// may change a lot.
10type Coordinator struct {
11	// Bidder is the address of the bidder
12	Bidder ethCommon.Address `meddler:"bidder_addr"`
13	// Forger is the address of the forger
14	Forger ethCommon.Address `meddler:"forger_addr"`
15	// EthBlockNum is the block in which the coordinator was registered
16	EthBlockNum int64 `meddler:"eth_block_num"`
17	// URL of the coordinators API
18	URL string `meddler:"url"`
19}