65 lines
2.1 KiB
C++
65 lines
2.1 KiB
C++
|
|
/*
|
||
|
|
* Copyright (c) 2018 Peerplays Blockchain Standards Association, and contributors.
|
||
|
|
*
|
||
|
|
* The MIT License
|
||
|
|
*
|
||
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||
|
|
* of this software and associated documentation files (the "Software"), to deal
|
||
|
|
* in the Software without restriction, including without limitation the rights
|
||
|
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||
|
|
* copies of the Software, and to permit persons to whom the Software is
|
||
|
|
* furnished to do so, subject to the following conditions:
|
||
|
|
*
|
||
|
|
* The above copyright notice and this permission notice shall be included in
|
||
|
|
* all copies or substantial portions of the Software.
|
||
|
|
*
|
||
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||
|
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||
|
|
* THE SOFTWARE.
|
||
|
|
*/
|
||
|
|
|
||
|
|
#include <fc/optional.hpp>
|
||
|
|
#include <fc/variant_object.hpp>
|
||
|
|
#include <fc/smart_ref_impl.hpp>
|
||
|
|
|
||
|
|
#include <graphene/app/application.hpp>
|
||
|
|
|
||
|
|
#include <graphene/chain/block_database.hpp>
|
||
|
|
#include <graphene/chain/database.hpp>
|
||
|
|
#include <graphene/chain/betting_market_object.hpp>
|
||
|
|
|
||
|
|
#include <graphene/chain/witness_object.hpp>
|
||
|
|
|
||
|
|
#include <graphene/utilities/key_conversion.hpp>
|
||
|
|
|
||
|
|
#include <graphene/affiliate_stats/affiliate_stats_api.hpp>
|
||
|
|
#include <graphene/affiliate_stats/affiliate_stats_plugin.hpp>
|
||
|
|
|
||
|
|
namespace graphene { namespace affiliate_stats {
|
||
|
|
|
||
|
|
namespace detail {
|
||
|
|
|
||
|
|
class affiliate_stats_api_impl
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
affiliate_stats_api_impl(graphene::app::application& _app);
|
||
|
|
|
||
|
|
graphene::app::application& app;
|
||
|
|
};
|
||
|
|
|
||
|
|
affiliate_stats_api_impl::affiliate_stats_api_impl(graphene::app::application& _app)
|
||
|
|
: app(_app) {}
|
||
|
|
|
||
|
|
} // detail
|
||
|
|
|
||
|
|
affiliate_stats_api::affiliate_stats_api(graphene::app::application& app)
|
||
|
|
: my(std::make_shared<detail::affiliate_stats_api_impl>(app)) {}
|
||
|
|
|
||
|
|
} } // graphene::affiliate_stats
|
||
|
|
|
||
|
|
|