12 : moderator(obj.moderator)
14 std::copy(std::begin(obj.auction_post_coefficients), std::end(obj.auction_post_coefficients),
16 std::copy(std::begin(obj.auction_banner_coefficients), std::end(obj.auction_banner_coefficients),
25 const auto* pstat = account_blogging_statistic_service.
find(a.id);
28 set_account_blogging_statistic(*pstat);
33 void account_api_obj::set_account(
const chain::account_object& a)
65 void account_api_obj::set_account_blogging_statistic(
const chain::account_blogging_statistic_object& s)
76 void account_api_obj::initialize(
const chain::account_object& a,
const chain::database& db)
78 size_t n = a.proxied_vsf_votes.size();
80 for (
size_t i = 0; i < n; i++)
83 const auto& auth = db.get<account_authority_object, by_account>(
name);
84 owner = authority(auth.owner);
85 active = authority(auth.active);
86 posting = authority(auth.posting);
91 auto forum_bandwidth = db.find<witness::account_bandwidth_object, witness::by_account_bandwidth_type>(
94 if (forum_bandwidth !=
nullptr)
101 auto market_bandwidth = db.find<witness::account_bandwidth_object, witness::by_account_bandwidth_type>(
104 if (market_bandwidth !=
nullptr)
tracks the blockchain state in an extensible manner
const account_blogging_statistic_object * find(const account_id_type &account_id) const override
ConcreteService & obtain_service() const
@ market
Rate limiting for all other actions.
@ forum
Rate limiting for all forum related actions.
shared_multi_index_container< account_bandwidth_object, indexed_by< ordered_unique< tag< by_id >, member< account_bandwidth_object, account_bandwidth_id_type, &account_bandwidth_object::id > >, ordered_unique< tag< by_account_bandwidth_type >, composite_key< account_bandwidth_object, member< account_bandwidth_object, account_name_type, &account_bandwidth_object::account >, member< account_bandwidth_object, bandwidth_type, &account_bandwidth_object::type > > > > > account_bandwidth_index
time_point_sec last_bandwidth_update
time_point_sec active_sp_holders_cashout_time
time_point_sec last_vote_time
share_type lifetime_bandwidth
asset active_sp_holders_pending_scr_reward
time_point_sec last_market_bandwidth_update
asset posting_rewards_scr
asset delegated_scorumpower
time_point_sec last_root_post
time_point_sec last_account_recovery
asset curation_rewards_sp
time_point_sec last_active_proved
uint16_t witnesses_voted_for
share_type average_bandwidth
std::string json_metadata
share_type lifetime_market_bandwidth
time_point_sec last_account_update
time_point_sec last_owner_update
asset curation_rewards_scr
share_type average_market_bandwidth
std::vector< share_type > proxied_vsf_votes
time_point_sec last_owner_proved
asset active_sp_holders_pending_sp_reward
asset nft_spend_scorumpower
account_name_type recovery_account
asset received_scorumpower
std::vector< percent_type > auction_banner_coefficients
advertising_property_api_obj()
std::vector< percent_type > auction_post_coefficients