github.com/palisadeinc/bor@v0.0.0-20230615125219-ab7196213d15/consensus/bor/heimdall/checkpoint/checkpoint.go (about)

     1  package checkpoint
     2  
     3  import (
     4  	"math/big"
     5  
     6  	"github.com/ethereum/go-ethereum/common"
     7  )
     8  
     9  // Checkpoint defines a response object type of bor checkpoint
    10  type Checkpoint struct {
    11  	Proposer   common.Address `json:"proposer"`
    12  	StartBlock *big.Int       `json:"start_block"`
    13  	EndBlock   *big.Int       `json:"end_block"`
    14  	RootHash   common.Hash    `json:"root_hash"`
    15  	BorChainID string         `json:"bor_chain_id"`
    16  	Timestamp  uint64         `json:"timestamp"`
    17  }
    18  
    19  type CheckpointResponse struct {
    20  	Height string     `json:"height"`
    21  	Result Checkpoint `json:"result"`
    22  }
    23  
    24  type CheckpointCount struct {
    25  	Result int64 `json:"result"`
    26  }
    27  
    28  type CheckpointCountResponse struct {
    29  	Height string          `json:"height"`
    30  	Result CheckpointCount `json:"result"`
    31  }