From fe2a957be551050303c81bae6b385a2f2af5a687 Mon Sep 17 00:00:00 2001 From: Lavysh Alexander Date: Wed, 28 Jun 2023 13:54:00 +0300 Subject: [PATCH] Added doc-comments for Ballot. --- cmd/mempool/models/activate_account.go | 2 +- cmd/mempool/models/ballot.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/mempool/models/activate_account.go b/cmd/mempool/models/activate_account.go index 0601b0f..e0728f5 100644 --- a/cmd/mempool/models/activate_account.go +++ b/cmd/mempool/models/activate_account.go @@ -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])*$/"` } diff --git a/cmd/mempool/models/ballot.go b/cmd/mempool/models/ballot.go index 6b6fd4c..03c8567 100644 --- a/cmd/mempool/models/ballot.go +++ b/cmd/mempool/models/ballot.go @@ -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 -