github.com/palisadeinc/bor@v0.0.0-20230615125219-ab7196213d15/consensus/bor/heimdall/span/span.go (about) 1 package span 2 3 import ( 4 "github.com/ethereum/go-ethereum/consensus/bor/valset" 5 ) 6 7 // Span Bor represents a current bor span 8 type Span struct { 9 ID uint64 `json:"span_id" yaml:"span_id"` 10 StartBlock uint64 `json:"start_block" yaml:"start_block"` 11 EndBlock uint64 `json:"end_block" yaml:"end_block"` 12 } 13 14 // HeimdallSpan represents span from heimdall APIs 15 type HeimdallSpan struct { 16 Span 17 ValidatorSet valset.ValidatorSet `json:"validator_set" yaml:"validator_set"` 18 SelectedProducers []valset.Validator `json:"selected_producers" yaml:"selected_producers"` 19 ChainID string `json:"bor_chain_id" yaml:"bor_chain_id"` 20 }