Golos
Разработчикам Статистика Баунти Документация Партнеры Github
Public Member Functions | Public Attributes | List of all members
golos::chain::comment_object Class Reference

#include <comment_object.hpp>

Inheritance diagram for golos::chain::comment_object:

Public Member Functions

 comment_object ()=delete
 
template<typename Constructor , typename Allocator >
 comment_object (Constructor &&c, allocator< Allocator > a)
 

Public Attributes

id_type id
 
shared_string category
 
account_name_type parent_author
 
shared_string parent_permlink
 
account_name_type author
 
shared_string permlink
 
shared_string title
 
shared_string body
 
shared_string json_metadata
 
time_point_sec last_update
 
time_point_sec created
 
time_point_sec active
 the last time this post was "touched" by voting or reply More...
 
time_point_sec last_payout
 
uint16_t depth = 0
 used to track max nested depth More...
 
uint32_t children = 0
 used to track the total number of children, grandchildren, etc... More...
 
fc::uint128_t children_rshares2
 
share_type net_rshares
 
share_type abs_rshares
 reward is proportional to rshares^2, this is the sum of all votes (positive and negative) More...
 
share_type vote_rshares
 this is used to track the total abs(weight) of votes for the purpose of calculating cashout_time More...
 
share_type children_abs_rshares
 Total positive rshares from all votes. Used to calculate delta weights. Needed to handle vote changing and removal. More...
 
time_point_sec cashout_time
 this is used to calculate cashout time of a discussion. More...
 
time_point_sec max_cashout_time
 24 hours from the weighted average of vote time More...
 
uint64_t total_vote_weight = 0
 
uint16_t reward_weight = 0
 the total weight of voting rewards, used to calculate pro-rata share of curation payouts More...
 
protocol::asset< 0, 17, 0 > total_payout_value = protocol::asset<0, 17, 0>(0, SBD_SYMBOL_NAME)
 
protocol::asset< 0, 17, 0 > curator_payout_value = protocol::asset<0, 17, 0>(0, SBD_SYMBOL_NAME)
 
protocol::asset< 0, 17, 0 > beneficiary_payout_value = protocol::asset<0, 17, 0>(0, SBD_SYMBOL_NAME)
 
share_type author_rewards = 0
 
int32_t net_votes = 0
 
id_type root_comment
 
protocol::asset< 0, 17, 0 > max_accepted_payout = protocol::asset<0, 17, 0>(1000000000, SBD_SYMBOL_NAME)
 
uint16_t percent_steem_dollars = STEEMIT_100_PERCENT
 SBD value of the maximum payout this post will receive. More...
 
bool allow_replies = true
 the percent of Golos Dollars to key, unkept amounts will be received as Golos Power More...
 
bool allow_votes = true
 allows a post to disable replies. More...
 
bool allow_curation_rewards = true
 allows a post to receive votes; More...
 
boost::interprocess::vector< protocol::beneficiary_route_type, allocator< protocol::beneficiary_route_type > > beneficiaries
 

Detailed Description

Definition at line 96 of file comment_object.hpp.

Constructor & Destructor Documentation

◆ comment_object() [1/2]

golos::chain::comment_object::comment_object ( )
delete

◆ comment_object() [2/2]

template<typename Constructor , typename Allocator >
golos::chain::comment_object::comment_object ( Constructor &&  c,
allocator< Allocator >  a 
)
inline

Definition at line 102 of file comment_object.hpp.

Member Data Documentation

◆ abs_rshares

share_type golos::chain::comment_object::abs_rshares

reward is proportional to rshares^2, this is the sum of all votes (positive and negative)

Definition at line 142 of file comment_object.hpp.

◆ active

time_point_sec golos::chain::comment_object::active

the last time this post was "touched" by voting or reply

Definition at line 126 of file comment_object.hpp.

◆ allow_curation_rewards

bool golos::chain::comment_object::allow_curation_rewards = true

allows a post to receive votes;

Definition at line 168 of file comment_object.hpp.

◆ allow_replies

bool golos::chain::comment_object::allow_replies = true

the percent of Golos Dollars to key, unkept amounts will be received as Golos Power

Definition at line 166 of file comment_object.hpp.

◆ allow_votes

bool golos::chain::comment_object::allow_votes = true

allows a post to disable replies.

Definition at line 167 of file comment_object.hpp.

◆ author

account_name_type golos::chain::comment_object::author

Definition at line 118 of file comment_object.hpp.

◆ author_rewards

share_type golos::chain::comment_object::author_rewards = 0

Definition at line 158 of file comment_object.hpp.

◆ beneficiaries

boost::interprocess::vector<protocol::beneficiary_route_type, allocator<protocol::beneficiary_route_type> > golos::chain::comment_object::beneficiaries

Definition at line 170 of file comment_object.hpp.

◆ beneficiary_payout_value

protocol::asset<0, 17, 0> golos::chain::comment_object::beneficiary_payout_value = protocol::asset<0, 17, 0>(0, SBD_SYMBOL_NAME)

Definition at line 155 of file comment_object.hpp.

◆ body

shared_string golos::chain::comment_object::body

Definition at line 122 of file comment_object.hpp.

◆ cashout_time

time_point_sec golos::chain::comment_object::cashout_time

this is used to calculate cashout time of a discussion.

Definition at line 146 of file comment_object.hpp.

◆ category

shared_string golos::chain::comment_object::category

Definition at line 115 of file comment_object.hpp.

◆ children

uint32_t golos::chain::comment_object::children = 0

used to track the total number of children, grandchildren, etc...

Definition at line 130 of file comment_object.hpp.

◆ children_abs_rshares

share_type golos::chain::comment_object::children_abs_rshares

Total positive rshares from all votes. Used to calculate delta weights. Needed to handle vote changing and removal.

Definition at line 145 of file comment_object.hpp.

◆ children_rshares2

fc::uint128_t golos::chain::comment_object::children_rshares2

Used to track the total rshares^2 of all children, this is used for indexing purposes. A discussion that has a nested comment of high value should promote the entire discussion so that the comment can be reviewed.

Definition at line 137 of file comment_object.hpp.

◆ created

time_point_sec golos::chain::comment_object::created

Definition at line 125 of file comment_object.hpp.

◆ curator_payout_value

protocol::asset<0, 17, 0> golos::chain::comment_object::curator_payout_value = protocol::asset<0, 17, 0>(0, SBD_SYMBOL_NAME)

Definition at line 154 of file comment_object.hpp.

◆ depth

uint16_t golos::chain::comment_object::depth = 0

used to track max nested depth

Definition at line 129 of file comment_object.hpp.

◆ id

id_type golos::chain::comment_object::id

Definition at line 113 of file comment_object.hpp.

◆ json_metadata

shared_string golos::chain::comment_object::json_metadata

Definition at line 123 of file comment_object.hpp.

◆ last_payout

time_point_sec golos::chain::comment_object::last_payout

Definition at line 127 of file comment_object.hpp.

◆ last_update

time_point_sec golos::chain::comment_object::last_update

Definition at line 124 of file comment_object.hpp.

◆ max_accepted_payout

protocol::asset<0, 17, 0> golos::chain::comment_object::max_accepted_payout = protocol::asset<0, 17, 0>(1000000000, SBD_SYMBOL_NAME)

Definition at line 164 of file comment_object.hpp.

◆ max_cashout_time

time_point_sec golos::chain::comment_object::max_cashout_time

24 hours from the weighted average of vote time

Definition at line 147 of file comment_object.hpp.

◆ net_rshares

share_type golos::chain::comment_object::net_rshares

index on pending_payout for "things happning now... needs moderation" TRENDING = UNCLAIMED + PENDING

Definition at line 141 of file comment_object.hpp.

◆ net_votes

int32_t golos::chain::comment_object::net_votes = 0

Definition at line 160 of file comment_object.hpp.

◆ parent_author

account_name_type golos::chain::comment_object::parent_author

Definition at line 116 of file comment_object.hpp.

◆ parent_permlink

shared_string golos::chain::comment_object::parent_permlink

Definition at line 117 of file comment_object.hpp.

◆ percent_steem_dollars

uint16_t golos::chain::comment_object::percent_steem_dollars = STEEMIT_100_PERCENT

SBD value of the maximum payout this post will receive.

Definition at line 165 of file comment_object.hpp.

◆ permlink

shared_string golos::chain::comment_object::permlink

Definition at line 119 of file comment_object.hpp.

◆ reward_weight

uint16_t golos::chain::comment_object::reward_weight = 0

the total weight of voting rewards, used to calculate pro-rata share of curation payouts

Definition at line 150 of file comment_object.hpp.

◆ root_comment

id_type golos::chain::comment_object::root_comment

Definition at line 162 of file comment_object.hpp.

◆ title

shared_string golos::chain::comment_object::title

Definition at line 121 of file comment_object.hpp.

◆ total_payout_value

protocol::asset<0, 17, 0> golos::chain::comment_object::total_payout_value = protocol::asset<0, 17, 0>(0, SBD_SYMBOL_NAME)

tracks the total payout this comment has received over time, measured in SBD

Definition at line 153 of file comment_object.hpp.

◆ total_vote_weight

uint64_t golos::chain::comment_object::total_vote_weight = 0

Definition at line 148 of file comment_object.hpp.

◆ vote_rshares

share_type golos::chain::comment_object::vote_rshares

this is used to track the total abs(weight) of votes for the purpose of calculating cashout_time

Definition at line 143 of file comment_object.hpp.


The documentation for this class was generated from the following file: