Skip to content

Commit

Permalink
Added doc-comments for GasStats.
Browse files Browse the repository at this point in the history
  • Loading branch information
vvuwei committed Jun 28, 2023
1 parent 67e4438 commit 43c0f0d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions cmd/mempool/models/gas_stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ import (
type GasStats struct {
//nolint
tableName struct{} `pg:"gas_stats"`
Network string `pg:",pk" json:"network"`
Hash string `pg:",pk" json:"hash"`
TotalGasUsed uint64 `pg:"total_gas_used" json:"total_gas_used"`
TotalFee uint64 `pg:"total_fee" json:"total_fee"`
UpdatedAt int64 `json:"updated_at"`
LevelInMempool uint64 `json:"level_in_mempool"`
LevelInChain uint64 `json:"level_in_chain"`
Network string `pg:",pk" json:"network" comment:"Identifies belonging network."`
Hash string `pg:",pk" json:"hash" comment:"Hash of the operation."` // DISCUSS
TotalGasUsed uint64 `pg:"total_gas_used" json:"total_gas_used" comment:"Total amount of used gas."`
TotalFee uint64 `pg:"total_fee" json:"total_fee" comment:"Total amount of fee."`
UpdatedAt int64 `json:"updated_at" comment:"Date of last update in seconds since UNIX epoch."`
LevelInMempool uint64 `json:"level_in_mempool" comment:"Level of the block at which the statistics has been calculated in mempool."` // DISCUSS
LevelInChain uint64 `json:"level_in_chain" comment:"Level of the block at which the statistics has been calculated in chain."` // DISCUSS
}

// BeforeInsert -
Expand Down

0 comments on commit 43c0f0d

Please sign in to comment.