github.com/igggame/nebulas-go@v2.1.0+incompatible/nbre/runtime/dip/dip_impl.h (about) 1 // Copyright (C) 2018 go-nebulas authors 2 // 3 // This file is part of the go-nebulas library. 4 // 5 // the go-nebulas library is free software: you can redistribute it and/or 6 // modify 7 // it under the terms of the GNU General Public License as published by 8 // the Free Software Foundation, either version 3 of the License, or 9 // (at your option) any later version. 10 // 11 // the go-nebulas library is distributed in the hope that it will be useful, 12 // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 // GNU General Public License for more details. 15 // 16 // You should have received a copy of the GNU General Public License 17 // along with the go-nebulas library. If not, see 18 // <http://www.gnu.org/licenses/>. 19 // 20 21 #pragma once 22 23 #include "common/common.h" 24 #include "common/math/softfloat.hpp" 25 #include "runtime/dip/dip_handler.h" 26 #include "runtime/dip/dip_reward.h" 27 #include "runtime/nr/impl/nebulas_rank.h" 28 #include "runtime/stdrt.h" 29 30 namespace neb { 31 namespace rt { 32 namespace dip { 33 34 using dip_float_t = float32; 35 using version_t = compatible_uint64_t; 36 using nr_info_t = ::neb::rt::nr::nr_info_t; 37 38 dip_ret_type entry_point_dip_impl(compatible_uint64_t start_block, 39 compatible_uint64_t end_block, 40 version_t version, compatible_uint64_t height, 41 const nr::nr_ret_type &nr_ret, 42 dip_float_t alpha, dip_float_t beta); 43 44 std::string dip_param_list(compatible_uint64_t dip_start_block, 45 compatible_uint64_t dip_block_interval, 46 const std::string &dip_reward_addr, 47 const std::string &coinbase_addr, version_t v); 48 49 } // namespace dip 50 } // namespace rt 51 } // namespace neb