github.com/decred/politeia@v1.4.0/politeiad/cmd/legacypoliteia/ticketvote.go (about)

     1  // Copyright (c) 2022 The Decred developers
     2  // Use of this source code is governed by an ISC
     3  // license that can be found in the LICENSE file.
     4  
     5  package main
     6  
     7  // ticketvote.go contains ticketvote plugin types that are not exported types,
     8  // but are required when we import certain ticketvote data, so they are
     9  // redefined here.
    10  
    11  // voteCollider is an internal ticketvote plugin type that is not exported, so
    12  // it's duplicated here.
    13  type voteCollider struct {
    14  	Token  string `json:"token"`
    15  	Ticket string `json:"ticket"`
    16  }
    17  
    18  // startRunoffRecord is an internal ticketvote plugin type that is not
    19  // exported, so it's duplicated here.
    20  type startRunoffRecord struct {
    21  	Submissions      []string `json:"submissions"`
    22  	Mask             uint64   `json:"mask"`
    23  	Duration         uint32   `json:"duration"`
    24  	QuorumPercentage uint32   `json:"quorumpercentage"`
    25  	PassPercentage   uint32   `json:"passpercentage"`
    26  	StartBlockHeight uint32   `json:"startblockheight"`
    27  	StartBlockHash   string   `json:"startblockhash"`
    28  	EndBlockHeight   uint32   `json:"endblockheight"`
    29  	EligibleTickets  []string `json:"eligibletickets"`
    30  }