Skip to content

Commit

Permalink
Issue steemit#1529 steemit -> steem rename
Browse files Browse the repository at this point in the history
2nd part of changes including directory rename, required changes in the code (generally include directives and collection of headers inside CMakeLists.txt). Also supplemented build scripts, generating an API documentation etc.
  • Loading branch information
vogel76 committed Sep 12, 2017
1 parent 090c1d2 commit ae8aa18
Show file tree
Hide file tree
Showing 297 changed files with 745 additions and 744 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
*.a
*.sw*

.vscode
*.cmake
CMakeCache.txt
CMakeFiles
Expand Down
10 changes: 5 additions & 5 deletions doc/create-operation.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This is developer documentation for creating brand-new operations on the STEEM b
- (1) Define `smt_elevate_account_operation` structure in `smt_operations.hpp`
- (2) Create `FC_REFLECT` definition for the operation struct.
- (3) Implement `validate()` for the operation struct.
- (4) Add operation to `steemit::protocol::operation`
- (4) Add operation to `steem::protocol::operation`
- (5) Define evaluator for the operation.
- (6) Define required authorities for the operation.
- (7) Define unit tests for the operation.
Expand Down Expand Up @@ -68,7 +68,7 @@ checks must go in the evaluator.

## Step 4

- (4a) The file `operations.hpp` defines the `steemit::protocol::operation`
- (4a) The file `operations.hpp` defines the `steem::protocol::operation`
type, which is an `fc::static_variant` with a lengthy parameter list. (The
`fc::static_variant` implements a
[tagged union type](https://en.wikipedia.org/wiki/Tagged_union) which uses
Expand Down Expand Up @@ -158,7 +158,7 @@ to `FC_REFLECT_ENUM` bubble list at the bottom of that file
- (9c) Define `typedef oid< smt_token_object > smt_token_id_type` in `steem_objects.hpp`
- (9d) Create object header file (one header file per object) in `smt_objects` directory.
Include the new header from `smt_objects.hpp`.
- (9e) All SMT objects are consensus, and therefore should exist in `steemit::chain` namespace
- (9e) All SMT objects are consensus, and therefore should exist in `steem::chain` namespace
- (9f) The object class should subclass `object< smt_token_object_type, smt_token_object >`
- (9g) The constructor should be defined the same as other object classes, with
`Constructor` and `Allocator` template parameters.
Expand All @@ -181,7 +181,7 @@ will have access to necessary external information (from `database` and the oper
and Boost `multi_index_container` docs for more information on the purpose and syntax of this
definition.
- (9n) Macro
`CHAINBASE_SET_INDEX_TYPE( steemit::chain::smt_token_object, steemit::chain::smt_token_index )`
`CHAINBASE_SET_INDEX_TYPE( steem::chain::smt_token_object, steem::chain::smt_token_index )`
must be invoked. It should be invoked at the global scope (outside any namespace).
- (9o) Call `add_core_index< smt_token_index >(*this);` in `database::initialize_indexes()` to
register the object type with the database.
Expand Down Expand Up @@ -230,7 +230,7 @@ created will be assigned the next sequentially available object ID.
- (9l) Some functionality in `chainbase` requires the `by_id` field. Since `chainbase`
is designed as a reusable library, not tightly coupled to Steem, it contains no reference
to any `steem` namespaces. So the name `by_id` must refer to `chainbase::by_id`. If you
define a `struct by_id;` in the `steemit::chain` namespace, the result will be that every
define a `struct by_id;` in the `steem::chain` namespace, the result will be that every
index defined later in the compilation unit which references `by_id` without qualification
will become an incorrect or ambiguous type reference. The result likely will not
function correctly, and may not compile.
Expand Down
2 changes: 1 addition & 1 deletion doc/debug_node_plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ The API's configured with `public-api` are assigned numbers starting at zero. S
API number 2 (TODO: Explain about resolving names to API's and get it working).

The API provides the following methods
(see `libraries/plugins/debug_node/include/steemit/plugins/debug_node/debug_node_api.hpp`
(see `libraries/plugins/debug_node/include/steem/plugins/debug_node/debug_node_api.hpp`
for these definitions):

void debug_push_blocks( std::string src_filename, uint32_t count );
Expand Down
2 changes: 1 addition & 1 deletion example_plugins/hello_api/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
file(GLOB HEADERS "include/steemit/plugins/hello_api/*.hpp")
file(GLOB HEADERS "include/steem/plugins/hello_api/*.hpp")

add_library( hello_api
${HEADERS}
Expand Down
4 changes: 2 additions & 2 deletions example_plugins/hello_api/hello_api_plugin.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

#include <steemit/app/application.hpp>
#include <steemit/app/plugin.hpp>
#include <steem/app/application.hpp>
#include <steem/app/plugin.hpp>

#include <sstream>
#include <string>
Expand Down
4 changes: 2 additions & 2 deletions libraries/chain/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
file(GLOB HEADERS "include/steemit/chain/*.hpp" "include/steemit/chain/util/*.hpp")
file(GLOB HEADERS "include/steem/chain/*.hpp" "include/steem/chain/util/*.hpp")

## SORT .cpp by most likely to change / break compile
add_library( steem_chain
Expand Down Expand Up @@ -44,4 +44,4 @@ INSTALL( TARGETS
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)
INSTALL( FILES ${HEADERS} DESTINATION "include/steemit/chain" )
INSTALL( FILES ${HEADERS} DESTINATION "include/steem/chain" )
2 changes: 1 addition & 1 deletion libraries/chain/block_log.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <steemit/chain/block_log.hpp>
#include <steem/chain/block_log.hpp>
#include <fstream>
#include <fc/io/raw.hpp>

Expand Down
48 changes: 24 additions & 24 deletions libraries/chain/database.cpp
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
#include <steemit/protocol/steem_operations.hpp>

#include <steemit/chain/block_summary_object.hpp>
#include <steemit/chain/compound.hpp>
#include <steemit/chain/custom_operation_interpreter.hpp>
#include <steemit/chain/database.hpp>
#include <steemit/chain/database_exceptions.hpp>
#include <steemit/chain/db_with.hpp>
#include <steemit/chain/evaluator_registry.hpp>
#include <steemit/chain/global_property_object.hpp>
#include <steemit/chain/history_object.hpp>
#include <steemit/chain/index.hpp>
#include <steemit/chain/smt_objects.hpp>
#include <steemit/chain/steem_evaluator.hpp>
#include <steemit/chain/steem_objects.hpp>
#include <steemit/chain/transaction_object.hpp>
#include <steemit/chain/shared_db_merkle.hpp>
#include <steemit/chain/operation_notification.hpp>
#include <steemit/chain/witness_schedule.hpp>

#include <steemit/chain/util/asset.hpp>
#include <steemit/chain/util/reward.hpp>
#include <steemit/chain/util/uint256.hpp>
#include <steemit/chain/util/reward.hpp>
#include <steem/protocol/steem_operations.hpp>

#include <steem/chain/block_summary_object.hpp>
#include <steem/chain/compound.hpp>
#include <steem/chain/custom_operation_interpreter.hpp>
#include <steem/chain/database.hpp>
#include <steem/chain/database_exceptions.hpp>
#include <steem/chain/db_with.hpp>
#include <steem/chain/evaluator_registry.hpp>
#include <steem/chain/global_property_object.hpp>
#include <steem/chain/history_object.hpp>
#include <steem/chain/index.hpp>
#include <steem/chain/smt_objects.hpp>
#include <steem/chain/steem_evaluator.hpp>
#include <steem/chain/steem_objects.hpp>
#include <steem/chain/transaction_object.hpp>
#include <steem/chain/shared_db_merkle.hpp>
#include <steem/chain/operation_notification.hpp>
#include <steem/chain/witness_schedule.hpp>

#include <steem/chain/util/asset.hpp>
#include <steem/chain/util/reward.hpp>
#include <steem/chain/util/uint256.hpp>
#include <steem/chain/util/reward.hpp>

#include <fc/smart_ref_impl.hpp>
#include <fc/uint128.hpp>
Expand Down
4 changes: 2 additions & 2 deletions libraries/chain/fork_database.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <steemit/chain/fork_database.hpp>
#include <steem/chain/fork_database.hpp>

#include <steemit/chain/database_exceptions.hpp>
#include <steem/chain/database_exceptions.hpp>

namespace steem { namespace chain {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#pragma once
#include <fc/fixed_string.hpp>

#include <steemit/protocol/authority.hpp>
#include <steemit/protocol/steem_operations.hpp>
#include <steem/protocol/authority.hpp>
#include <steem/protocol/steem_operations.hpp>

#include <steemit/chain/steem_object_types.hpp>
#include <steemit/chain/witness_objects.hpp>
#include <steemit/chain/shared_authority.hpp>
#include <steem/chain/steem_object_types.hpp>
#include <steem/chain/witness_objects.hpp>
#include <steem/chain/shared_authority.hpp>

#include <boost/multi_index/composite_key.hpp>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once
#include <fc/filesystem.hpp>
#include <steemit/protocol/block.hpp>
#include <steem/protocol/block.hpp>

namespace steem { namespace chain {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#pragma once
#include <steemit/chain/steem_object_types.hpp>
#include <steem/chain/steem_object_types.hpp>

namespace steem { namespace chain {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#pragma once

#include <steemit/protocol/authority.hpp>
#include <steemit/protocol/steem_operations.hpp>
#include <steem/protocol/authority.hpp>
#include <steem/protocol/steem_operations.hpp>

#include <steemit/chain/steem_object_types.hpp>
#include <steemit/chain/witness_objects.hpp>
#include <steem/chain/steem_object_types.hpp>
#include <steem/chain/witness_objects.hpp>

#include <boost/multi_index/composite_key.hpp>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

#include <cstdint>

#include <steemit/protocol/config.hpp>
#include <steemit/protocol/types.hpp>
#include <steem/protocol/config.hpp>
#include <steem/protocol/types.hpp>

#include <fc/uint128.hpp>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
* Copyright (c) 2015 Cryptonomex, Inc., and contributors.
*/
#pragma once
#include <steemit/chain/global_property_object.hpp>
#include <steemit/chain/hardfork_property_object.hpp>
#include <steemit/chain/node_property_object.hpp>
#include <steemit/chain/fork_database.hpp>
#include <steemit/chain/block_log.hpp>
#include <steemit/chain/operation_notification.hpp>
#include <steemit/chain/util/signal.hpp>

#include <steemit/protocol/protocol.hpp>
#include <steemit/protocol/hardfork.hpp>
#include <steem/chain/global_property_object.hpp>
#include <steem/chain/hardfork_property_object.hpp>
#include <steem/chain/node_property_object.hpp>
#include <steem/chain/fork_database.hpp>
#include <steem/chain/block_log.hpp>
#include <steem/chain/operation_notification.hpp>
#include <steem/chain/util/signal.hpp>

#include <steem/protocol/protocol.hpp>
#include <steem/protocol/hardfork.hpp>

//#include <graphene/db2/database.hpp>
#include <fc/signals.hpp>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include <steemit/protocol/exceptions.hpp>
#include <steem/protocol/exceptions.hpp>

#define STEEM_DECLARE_OP_BASE_EXCEPTIONS( op_name ) \
FC_DECLARE_DERIVED_EXCEPTION( \
Expand Down Expand Up @@ -102,7 +102,7 @@ namespace steem { namespace chain {
#pragma once

#include <fc/exception/exception.hpp>
#include <steemit/protocol/exceptions.hpp>
#include <steem/protocol/exceptions.hpp>

namespace steem { namespace chain {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include <steemit/chain/database.hpp>
#include <steem/chain/database.hpp>

/*
* This file provides with() functions which modify the database
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once
#include <steemit/protocol/exceptions.hpp>
#include <steemit/protocol/operations.hpp>
#include <steem/protocol/exceptions.hpp>
#include <steem/protocol/operations.hpp>

namespace steem { namespace chain {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include <steemit/chain/evaluator.hpp>
#include <steem/chain/evaluator.hpp>

namespace steem { namespace chain {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#pragma once
#include <steemit/protocol/block.hpp>
#include <steem/protocol/block.hpp>

#include <boost/multi_index_container.hpp>
#include <boost/multi_index/member.hpp>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@

#pragma once

#include <steemit/protocol/steem_operations.hpp>
#include <steemit/protocol/operation_util_impl.hpp>
#include <steemit/protocol/types.hpp>
#include <steem/protocol/steem_operations.hpp>
#include <steem/protocol/operation_util_impl.hpp>
#include <steem/protocol/types.hpp>

#include <steemit/chain/evaluator.hpp>
#include <steemit/chain/evaluator_registry.hpp>
#include <steemit/chain/custom_operation_interpreter.hpp>
#include <steem/chain/evaluator.hpp>
#include <steem/chain/evaluator_registry.hpp>
#include <steem/chain/custom_operation_interpreter.hpp>

#include <graphene/schema/schema.hpp>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#pragma once
#include <fc/uint128.hpp>

#include <steemit/chain/steem_object_types.hpp>
#include <steem/chain/steem_object_types.hpp>

#include <steemit/protocol/asset.hpp>
#include <steem/protocol/asset.hpp>

namespace steem { namespace chain {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#pragma once

#include <steemit/protocol/version.hpp>
#include <steem/protocol/version.hpp>

#include <steemit/chain/steem_object_types.hpp>
#include <steem/chain/steem_object_types.hpp>

namespace steem { namespace chain {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#pragma once

#include <steemit/protocol/authority.hpp>
#include <steemit/protocol/operations.hpp>
#include <steemit/protocol/steem_operations.hpp>
#include <steem/protocol/authority.hpp>
#include <steem/protocol/operations.hpp>
#include <steem/protocol/steem_operations.hpp>

#include <steemit/chain/steem_object_types.hpp>
#include <steemit/chain/witness_objects.hpp>
#include <steem/chain/steem_object_types.hpp>
#include <steem/chain/witness_objects.hpp>

#include <boost/multi_index/composite_key.hpp>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include <steemit/chain/database.hpp>
#include <steem/chain/database.hpp>

namespace steem { namespace chain {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#pragma once

#include <steemit/protocol/operations.hpp>
#include <steem/protocol/operations.hpp>

#include <steemit/chain/steem_object_types.hpp>
#include <steem/chain/steem_object_types.hpp>

namespace steem { namespace chain {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#pragma once
#include <steemit/protocol/authority.hpp>
#include <steem/protocol/authority.hpp>
#include <boost/interprocess/managed_mapped_file.hpp>

namespace steem { namespace chain {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <steemit/protocol/types.hpp>
#include <steem/protocol/types.hpp>

namespace steem { namespace chain {

Expand Down
3 changes: 3 additions & 0 deletions libraries/chain/include/steem/chain/smt_objects.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#pragma once

#include <steem/chain/smt_objects/smt_token_object.hpp>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include <steemit/chain/steem_object_types.hpp>
#include <steem/chain/steem_object_types.hpp>

namespace steem { namespace chain {

Expand Down
Loading

0 comments on commit ae8aa18

Please sign in to comment.