Skip to content

Commit

Permalink
Added doc-comments for Ballot.
Browse files Browse the repository at this point in the history
  • Loading branch information
vvuwei committed Jun 28, 2023
1 parent aa59dc6 commit fe2a957
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/mempool/models/activate_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ type ActivateAccount struct {
tableName struct{} `pg:"activate_account" comment:"Type of the operation, activation - is used to activate accounts that were recommended allocations of tezos tokens for donations to the Tezos Foundation’s fundraiser."`
MempoolOperation
Pkh string `json:"pkh" comment:"Public key hash (Ed25519). Address to activate."`
Secret string `json:"secret" comment:"The secret key associated with the key, if available."`
Secret string `json:"secret" comment:"The secret key associated with the key, if available. /^([a-zA-Z0-9][a-zA-Z0-9])*$/"`
}
6 changes: 3 additions & 3 deletions cmd/mempool/models/ballot.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package models
// Ballot -
type Ballot struct {
//nolint
tableName struct{} `pg:"ballots"`
tableName struct{} `pg:"ballots" comment:"Type of the operation, ballot - is used to vote for a proposal in a given voting cycle."`
MempoolOperation
Period int64 `json:"period"`
Ballot string `json:"ballot"`
Period int64 `json:"period" comment:"Voting period index, starting from zero, for which the ballot was submitted."`
Ballot string `json:"ballot" comment:"Vote, given in the ballot (yay, nay, or pass)."`
}

// SetMempoolOperation -
Expand Down

0 comments on commit fe2a957

Please sign in to comment.