12 dbs_scorumpower_delegation::dbs_scorumpower_delegation(
database& db)
22 return db_impl().get<scorumpower_delegation_object, by_delegation>(boost::make_tuple(delegator, delegatee));
24 FC_CAPTURE_AND_RETHROW((delegator)(delegatee))
29 return find_by<by_delegation>(boost::make_tuple(delegator, delegatee)) !=
nullptr;
36 =
db_impl().create<scorumpower_delegation_expiration_object>([&](scorumpower_delegation_expiration_object& o) {
37 o.delegator = delegator;
38 o.scorumpower = scorumpower;
39 o.expiration = expiration;
tracks the blockchain state in an extensible manner
dba::db_index & db_impl()
const scorumpower_delegation_expiration_object & create_expiration(const account_name_type &delegator, const asset &scorumpower, const time_point_sec &expiration) override
virtual const object_type & get() const override
virtual bool is_exists() const override
fc::fixed_string_16 account_name_type