Scorum
|
#include <atomicswap.hpp>
Public Member Functions | |
virtual atomicswap_contracts_refs_type | get_contracts () const override |
virtual atomicswap_contracts_refs_type | get_contracts (const account_object &owner) const override |
virtual const atomicswap_contract_object & | get_contract (const account_object &from, const account_object &to, const std::string &secret_hash) const override |
virtual const atomicswap_contract_object & | create_contract (atomicswap_contract_type tp, const account_object &owner, const account_object &recipient, const asset &amount, const std::string &secret_hash, const optional< std::string > &metadata=optional< std::string >()) override |
virtual void | redeem_contract (const atomicswap_contract_object &contract, const std::string &secret) override |
virtual void | refund_contract (const atomicswap_contract_object &contract) override |
![]() | |
dbs_service_base (dba::db_index &db) | |
virtual const object_type & | create (const modifier_type &modifier) override |
virtual void | update (const modifier_type &modifier) override |
virtual void | update (const object_type &o, const modifier_type &modifier) override |
virtual void | remove () override |
virtual void | remove (const object_type &o) override |
virtual void | remove_all (const std::vector< object_cref_type > &os) override |
virtual bool | is_exists () const override |
virtual const object_type & | get () const override |
const object_type & | get_by (const Key &arg) const |
const object_type * | find_by (const Key &arg) const |
void | foreach_by (Call &&call) const |
std::vector< object_cref_type > | get_range_by (LowerBounder lower, UpperBounder upper) const |
std::vector< object_cref_type > | get_filtered_range_by (LowerBounder lower, UpperBounder upper, UnaryPredicate filter) const |
![]() | |
virtual | ~dbs_base () |
![]() | |
virtual | ~base_service_i () |
Protected Member Functions | |
dbs_atomicswap (database &db) | |
![]() | |
dbs_base ()=delete | |
dbs_base (dbs_base &&)=delete | |
dbs_base (dba::db_index &) | |
time_point_sec | head_block_time () |
dba::db_index & | db_impl () |
const dba::db_index & | db_impl () const |
Friends | |
class | dbservice_dbs_factory |
Additional Inherited Members | |
![]() | |
using | base_service_type = dbs_service_base |
using | modifier_type = typename service_interface::modifier_type |
using | object_type = typename service_interface::object_type |
using | object_cref_type = typename service_interface::object_cref_type |
![]() | |
using | atomicswap_contracts_refs_type = std::vector< std::reference_wrapper< const atomicswap_contract_object > > |
![]() | |
using | object_type = atomicswap_contract_object |
using | modifier_type = std::function< void(object_type &)> |
using | call_type = std::function< void(const object_type &)> |
using | object_cref_type = std::reference_wrapper< const object_type > |
![]() | |
typedef dbs_base | _base_type |
DB service for operations with atomicswap_contract_object
Definition at line 38 of file atomicswap.hpp.
|
explicitprotected |
Definition at line 15 of file atomicswap.cpp.
|
overridevirtual |
Implements scorum::chain::atomicswap_service_i.
Definition at line 60 of file atomicswap.cpp.
|
overridevirtual |
Implements scorum::chain::atomicswap_service_i.
Definition at line 48 of file atomicswap.cpp.
|
overridevirtual |
Implements scorum::chain::atomicswap_service_i.
Definition at line 22 of file atomicswap.cpp.
|
overridevirtual |
Implements scorum::chain::atomicswap_service_i.
Definition at line 33 of file atomicswap.cpp.
|
overridevirtual |
Implements scorum::chain::atomicswap_service_i.
Definition at line 119 of file atomicswap.cpp.
|
overridevirtual |
Implements scorum::chain::atomicswap_service_i.
Definition at line 139 of file atomicswap.cpp.
|
friend |
Definition at line 40 of file atomicswap.hpp.