Scorum
Public Member Functions | Static Public Member Functions | List of all members
scorum::chain::advertising_auction Class Reference

#include <advertising_auction.hpp>

Public Member Functions

 advertising_auction (dynamic_global_property_service_i &dprops_svc, advertising_property_service_i &adv_props_svc, adv_budget_service_i< budget_type::post > &post_budget_svc, adv_budget_service_i< budget_type::banner > &banner_budget_svc)
 
void run_round ()
 

Static Public Member Functions

static std::vector< assetcalculate_bets (const std::vector< asset > &per_blocks, const std::vector< percent_type > &coeffs)
 

Detailed Description

See advertising details for detailed information about how budgets work.

Definition at line 19 of file advertising_auction.hpp.

Constructor & Destructor Documentation

◆ advertising_auction()

scorum::chain::advertising_auction::advertising_auction ( dynamic_global_property_service_i dprops_svc,
advertising_property_service_i adv_props_svc,
adv_budget_service_i< budget_type::post > &  post_budget_svc,
adv_budget_service_i< budget_type::banner > &  banner_budget_svc 
)

Definition at line 18 of file advertising_auction.cpp.

Member Function Documentation

◆ calculate_bets()

std::vector< asset > scorum::chain::advertising_auction::calculate_bets ( const std::vector< asset > &  per_blocks,
const std::vector< percent_type > &  coeffs 
)
static

Definition at line 71 of file advertising_auction.cpp.

◆ run_round()

void scorum::chain::advertising_auction::run_round ( )

Definition at line 29 of file advertising_auction.cpp.


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