You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
678 B

  1. package common
  2. import (
  3. ethCommon "github.com/ethereum/go-ethereum/common"
  4. )
  5. // Coordinator represents a Hermez network coordinator who wins an auction for an specific slot
  6. // WARNING: this is strongly based on the previous implementation, once the new spec is done, this
  7. // may change a lot.
  8. type Coordinator struct {
  9. // Bidder is the address of the bidder
  10. Bidder ethCommon.Address `meddler:"bidder_addr"`
  11. // Forger is the address of the forger
  12. Forger ethCommon.Address `meddler:"forger_addr"`
  13. // EthBlockNum is the block in which the coordinator was registered
  14. EthBlockNum int64 `meddler:"eth_block_num"`
  15. // URL of the coordinators API
  16. URL string `meddler:"url"`
  17. }