Scorum
libraries
chain
services
pending_bet.cpp
Go to the documentation of this file.
1
#include <
scorum/chain/services/pending_bet.hpp
>
2
#include <boost/lambda/lambda.hpp>
3
4
namespace
scorum
{
5
namespace
chain {
6
7
dbs_pending_bet::dbs_pending_bet
(
database
& db)
8
:
base_service_type
(db)
9
{
10
}
11
12
bool
dbs_pending_bet::is_exists
(
const
uuid_type
& uuid)
const
13
{
14
return
find_by<by_uuid>(uuid) !=
nullptr
;
15
}
16
17
const
pending_bet_object
&
dbs_pending_bet::get_pending_bet
(
const
uuid_type
& uuid)
const
18
{
19
try
20
{
21
return
get_by<by_uuid>(uuid);
22
}
23
FC_CAPTURE_LOG_AND_RETHROW((uuid))
24
}
25
26
}
// namespace chain
27
}
// namespace scorum
scorum::chain::database
tracks the blockchain state in an extensible manner
Definition:
database.hpp:52
scorum::chain::dbs_pending_bet::dbs_pending_bet
dbs_pending_bet(database &db)
Definition:
pending_bet.cpp:7
scorum::chain::dbs_pending_bet::get_pending_bet
const pending_bet_object & get_pending_bet(const uuid_type &) const override
Definition:
pending_bet.cpp:17
scorum::chain::dbs_service_base
Definition:
service_base.hpp:42
scorum::chain::dbs_service_base< pending_bet_service_i >::is_exists
virtual bool is_exists() const override
Definition:
service_base.hpp:97
scorum::chain::pending_bet_object
Definition:
bet_objects.hpp:49
scorum
Definition:
asset.cpp:15
scorum::uuid_type
boost::uuids::uuid uuid_type
Definition:
types.hpp:53
pending_bet.hpp
Generated on Thu Jun 9 2022 13:04:25 for Scorum by
1.9.1