From 5813baa2cb9219b3e06eea1419d19c56a8b507fe Mon Sep 17 00:00:00 2001 From: Garrett Brown Date: Sat, 7 Mar 2020 19:23:38 -0800 Subject: [PATCH] CMake: Add install step for headers As a requirement, all headers are moved to a new include/ path. --- CMakeLists.txt | 2 +- cmake/install.cmake | 5 ++++ core/adt/impl/array.cpp | 2 +- core/adt/impl/balance_table_hamt.cpp | 4 +-- core/adt/impl/multimap.cpp | 4 +-- core/blockchain/impl/block_validator_impl.cpp | 2 +- .../impl/weight_calculator_impl.cpp | 2 +- .../impl/gas_price_scored_message_storage.cpp | 4 +-- .../message_pool/impl/message_pool_error.cpp | 2 +- .../production/impl/block_producer_impl.cpp | 14 +++++----- core/clock/chain_epoch_clock.cpp | 2 +- core/clock/impl/chain_epoch_clock_impl.cpp | 2 +- core/clock/impl/utc_clock_impl.cpp | 2 +- core/clock/time.cpp | 2 +- core/codec/cbor/cbor_decode_stream.cpp | 2 +- core/codec/cbor/cbor_encode_stream.cpp | 2 +- core/codec/cbor/cbor_errors.cpp | 2 +- core/codec/cbor/cbor_resolve.cpp | 2 +- core/codec/rle/rle_plus_encoding_stream.cpp | 2 +- core/codec/rle/rle_plus_errors.cpp | 2 +- core/common/CMakeLists.txt | 3 --- core/common/blob.cpp | 2 +- core/common/buffer.cpp | 4 +-- core/common/buffer_back_insert_iterator.cpp | 2 +- core/common/hexutil.cpp | 2 +- core/common/logger.cpp | 2 +- core/crypto/blake2/blake2b.c | 2 +- core/crypto/blake2/blake2b160.cpp | 4 +-- core/crypto/blake2/blake2s.c | 4 +-- core/crypto/bls/impl/bls_provider_impl.cpp | 2 +- core/crypto/hasher/hasher.cpp | 4 +-- core/crypto/murmur/murmur.cpp | 4 +-- .../impl/chain_randomness_provider_impl.cpp | 10 +++---- .../impl/randomness_provider_impl.cpp | 4 +-- core/crypto/signature/signature.cpp | 2 +- core/crypto/vrf/impl/vrf_provider_impl.cpp | 6 ++--- core/crypto/vrf/vrf_hash_encoder.cpp | 6 ++--- core/crypto/vrf/vrf_types.cpp | 2 +- core/fslock/fslock.cpp | 4 +-- core/fslock/fslock_error.cpp | 2 +- core/power/impl/power_table_error.cpp | 2 +- core/power/impl/power_table_hamt.cpp | 6 ++--- core/power/impl/power_table_impl.cpp | 6 ++--- core/primitives/address/CMakeLists.txt | 2 +- core/primitives/address/address.cpp | 6 ++--- core/primitives/address/address_codec.cpp | 10 +++---- core/primitives/chain/chain.cpp | 2 +- .../chain_epoch/chain_epoch_codec.cpp | 2 +- core/primitives/cid/cid.cpp | 4 +-- core/primitives/cid/comm_cid.cpp | 4 +-- core/primitives/cid/comm_cid_errors.cpp | 2 +- core/primitives/cid/json_codec.cpp | 4 +-- core/primitives/piece/piece.cpp | 4 +-- core/primitives/piece/piece_error.cpp | 2 +- core/primitives/ticket/epost_ticket.cpp | 2 +- core/primitives/ticket/epost_ticket_codec.cpp | 2 +- core/primitives/ticket/ticket.cpp | 4 +-- core/primitives/ticket/ticket_codec.cpp | 2 +- core/primitives/tipset/tipset.cpp | 8 +++--- core/primitives/tipset/tipset_key.cpp | 4 +-- core/proofs/proof_param_provider.cpp | 8 +++--- core/proofs/proof_param_provider_error.cpp | 2 +- core/proofs/proofs.cpp | 6 ++--- core/proofs/proofs_error.cpp | 2 +- core/storage/amt/amt.cpp | 4 +-- core/storage/chain/datastore_key.cpp | 2 +- .../chain/impl/chain_data_store_impl.cpp | 4 +-- core/storage/chain/impl/chain_store_impl.cpp | 18 ++++++------- core/storage/config/config.cpp | 2 +- core/storage/config/config_error.cpp | 2 +- core/storage/filestore/filestore_error.cpp | 2 +- .../impl/filesystem/filesystem_file.cpp | 4 +-- .../impl/filesystem/filesystem_filestore.cpp | 6 ++--- core/storage/hamt/hamt.cpp | 6 ++--- core/storage/in_memory/in_memory_storage.cpp | 4 +-- core/storage/ipfs/impl/datastore_leveldb.cpp | 4 +-- .../storage/ipfs/impl/in_memory_datastore.cpp | 2 +- core/storage/ipfs/impl/ipfs_block_service.cpp | 2 +- .../ipfs/impl/ipfs_datastore_error.cpp | 2 +- .../storage/ipfs/merkledag/impl/leaf_impl.cpp | 2 +- .../merkledag/impl/merkledag_service_impl.cpp | 4 +-- core/storage/ipld/impl/ipld_link_impl.cpp | 2 +- .../ipld/impl/ipld_node_decoder_pb.cpp | 2 +- .../ipld/impl/ipld_node_encoder_pb.cpp | 2 +- core/storage/ipld/impl/ipld_node_impl.cpp | 4 +-- .../impl/filesystem/filesystem_keystore.cpp | 8 +++--- .../impl/in_memory/in_memory_keystore.cpp | 2 +- core/storage/keystore/keystore.cpp | 4 +-- core/storage/keystore/keystore_error.cpp | 2 +- core/storage/leveldb/leveldb.cpp | 8 +++--- core/storage/leveldb/leveldb_batch.cpp | 4 +-- core/storage/leveldb/leveldb_cursor.cpp | 4 +-- core/storage/leveldb/leveldb_error.cpp | 2 +- .../repository/impl/filesystem_repository.cpp | 12 ++++----- .../repository/impl/in_memory_repository.cpp | 10 +++---- core/storage/repository/impl/repository.cpp | 2 +- .../repository/impl/repository_error.cpp | 2 +- core/vm/actor/actor.cpp | 2 +- .../actor/builtin/account/account_actor.cpp | 4 +-- core/vm/actor/builtin/cron/cron_actor.cpp | 4 +-- core/vm/actor/builtin/init/init_actor.cpp | 8 +++--- core/vm/actor/builtin/miner/miner_actor.cpp | 20 +++++++------- .../actor/builtin/multisig/multisig_actor.cpp | 8 +++--- .../payment_channel/payment_channel_actor.cpp | 6 ++--- core/vm/actor/builtin/reward/reward_actor.cpp | 8 +++--- core/vm/actor/builtin/shared/shared.cpp | 6 ++--- .../vm/actor/builtin/storage_power/policy.cpp | 2 +- .../storage_power_actor_export.cpp | 10 +++---- .../storage_power_actor_state.cpp | 10 +++---- core/vm/actor/impl/invoker_impl.cpp | 14 +++++----- core/vm/exit_code/impl/exit_code.cpp | 4 +-- core/vm/interpreter/impl/interpreter_impl.cpp | 18 ++++++------- core/vm/message/impl/message_signer_impl.cpp | 4 +-- core/vm/message/message.cpp | 2 +- core/vm/message/message_util.cpp | 6 ++--- .../runtime/impl/actor_state_handle_impl.cpp | 2 +- core/vm/runtime/impl/env.cpp | 12 ++++----- core/vm/runtime/impl/runtime_error.cpp | 2 +- core/vm/runtime/impl/runtime_impl.cpp | 12 ++++----- core/vm/state/impl/state_tree_impl.cpp | 8 +++--- {core => include/filecoin}/adt/array.hpp | 10 +++---- .../filecoin}/adt/balance_table_hamt.hpp | 12 ++++----- {core => include/filecoin}/adt/multimap.hpp | 8 +++--- .../filecoin}/blockchain/block_validator.hpp | 2 +- .../filecoin}/blockchain/chain_manager.hpp | 0 .../blockchain/chain_tips_manager.hpp | 2 +- .../blockchain/impl/block_validator_impl.hpp | 2 +- .../impl/weight_calculator_impl.hpp | 2 +- .../impl/gas_price_scored_message_storage.hpp | 2 +- .../message_pool/message_pool_error.hpp | 2 +- .../message_pool/message_storage.hpp | 6 ++--- .../blockchain/production/block_producer.hpp | 12 ++++----- .../production/impl/block_producer_impl.hpp | 20 +++++++------- .../blockchain/weight_calculator.hpp | 4 +-- .../filecoin}/clock/chain_epoch_clock.hpp | 4 +-- .../clock/impl/chain_epoch_clock_impl.hpp | 2 +- .../filecoin}/clock/impl/utc_clock_impl.hpp | 2 +- {core => include/filecoin}/clock/time.hpp | 2 +- .../filecoin}/clock/utc_clock.hpp | 2 +- .../filecoin}/codec/cbor/cbor.hpp | 6 ++--- .../filecoin}/codec/cbor/cbor_common.hpp | 6 ++--- .../codec/cbor/cbor_decode_stream.hpp | 2 +- .../codec/cbor/cbor_encode_stream.hpp | 4 +-- .../filecoin}/codec/cbor/cbor_errors.hpp | 2 +- .../filecoin}/codec/cbor/cbor_resolve.hpp | 2 +- .../codec/cbor/streams_annotation.hpp | 0 .../filecoin}/codec/rle/rle_plus.hpp | 8 +++--- .../filecoin}/codec/rle/rle_plus_config.hpp | 0 .../codec/rle/rle_plus_decoding_stream.hpp | 4 +-- .../codec/rle/rle_plus_encoding_stream.hpp | 2 +- .../filecoin}/codec/rle/rle_plus_errors.hpp | 2 +- {core => include/filecoin}/common/blob.hpp | 2 +- {core => include/filecoin}/common/buffer.hpp | 4 +-- {core => include/filecoin}/common/enum.hpp | 0 {core => include/filecoin}/common/hexutil.hpp | 2 +- .../filecoin}/common/le_encoder.hpp | 2 +- {core => include/filecoin}/common/logger.hpp | 0 {core => include/filecoin}/common/outcome.hpp | 0 .../filecoin}/common/outcome_throw.hpp | 0 {core => include/filecoin}/common/visitor.hpp | 0 {core => include/filecoin}/common/which.hpp | 0 .../filecoin}/crypto/blake2/blake2b.h | 0 .../filecoin}/crypto/blake2/blake2b160.hpp | 4 +-- .../filecoin}/crypto/blake2/blake2s.h | 0 .../filecoin}/crypto/bls/bls_provider.hpp | 2 +- .../filecoin}/crypto/bls/bls_types.hpp | 4 +-- .../crypto/bls/impl/bls_provider_impl.hpp | 2 +- .../filecoin}/crypto/bls/libbls_signatures.h | 0 .../filecoin}/crypto/hasher/hasher.hpp | 0 .../filecoin}/crypto/murmur/murmur.hpp | 0 .../randomness/chain_randomness_provider.hpp | 4 +-- .../impl/chain_randomness_provider_impl.hpp | 4 +-- .../impl/randomness_provider_impl.hpp | 2 +- .../crypto/randomness/randomness_provider.hpp | 4 +-- .../crypto/randomness/randomness_types.hpp | 4 +-- .../crypto/secp256k1/secp256k1_provider.hpp | 0 .../filecoin}/crypto/signature/signature.hpp | 10 +++---- .../crypto/vrf/impl/vrf_provider_impl.hpp | 4 +-- .../filecoin}/crypto/vrf/vrf_hash_encoder.hpp | 2 +- .../filecoin}/crypto/vrf/vrf_provider.hpp | 2 +- .../filecoin}/crypto/vrf/vrf_types.hpp | 10 +++---- {core => include/filecoin}/fslock/fslock.hpp | 2 +- .../filecoin}/fslock/fslock_error.hpp | 2 +- .../filecoin}/power/impl/power_table_hamt.hpp | 4 +-- .../filecoin}/power/impl/power_table_impl.hpp | 2 +- .../filecoin}/power/power_table.hpp | 6 ++--- .../filecoin}/power/power_table_error.hpp | 2 +- .../filecoin}/primitives/address/address.hpp | 6 ++--- .../primitives/address/address_codec.hpp | 6 ++--- .../filecoin}/primitives/big_int.hpp | 2 +- .../filecoin}/primitives/block/block.hpp | 24 ++++++++--------- .../primitives/boost_multiprecision.hpp | 0 .../filecoin}/primitives/chain/chain.hpp | 8 +++--- .../primitives/chain_epoch/chain_epoch.hpp | 0 .../chain_epoch/chain_epoch_codec.hpp | 2 +- .../filecoin}/primitives/cid/cid.hpp | 2 +- .../filecoin}/primitives/cid/cid_of_cbor.hpp | 4 +-- .../filecoin}/primitives/cid/comm_cid.hpp | 4 +-- .../primitives/cid/comm_cid_errors.hpp | 2 +- .../filecoin}/primitives/cid/json_codec.hpp | 6 ++--- .../filecoin}/primitives/piece/piece.hpp | 2 +- .../primitives/piece/piece_error.hpp | 2 +- .../primitives/rle_bitset/rle_bitset.hpp | 6 ++--- .../filecoin}/primitives/sector/sector.hpp | 4 +-- .../primitives/ticket/epost_ticket.hpp | 6 ++--- .../primitives/ticket/epost_ticket_codec.hpp | 8 +++--- .../filecoin}/primitives/ticket/ticket.hpp | 10 +++---- .../primitives/ticket/ticket_codec.hpp | 8 +++--- .../filecoin}/primitives/tipset/tipset.hpp | 12 ++++----- .../primitives/tipset/tipset_key.hpp | 4 +-- .../filecoin}/primitives/types.hpp | 6 ++--- .../filecoin}/proofs/proof_param_provider.hpp | 4 +-- .../proofs/proof_param_provider_error.hpp | 2 +- {core => include/filecoin}/proofs/proofs.hpp | 14 +++++----- .../filecoin}/proofs/proofs_error.hpp | 2 +- .../filecoin}/storage/amt/amt.hpp | 14 +++++----- .../filecoin}/storage/buffer_map.hpp | 8 +++--- .../storage/chain/chain_data_store.hpp | 2 +- .../filecoin}/storage/chain/chain_store.hpp | 4 +-- .../filecoin}/storage/chain/datastore_key.hpp | 4 +-- .../chain/impl/chain_data_store_impl.hpp | 4 +-- .../storage/chain/impl/chain_store_impl.hpp | 20 +++++++------- .../filecoin}/storage/config/config.hpp | 4 +-- .../filecoin}/storage/config/config_error.hpp | 2 +- .../storage/config/config_validator.hpp | 4 +-- .../storage/face/generic_iterator.hpp | 0 .../filecoin}/storage/face/generic_list.hpp | 2 +- .../filecoin}/storage/face/generic_map.hpp | 6 ++--- .../filecoin}/storage/face/iterable_map.hpp | 2 +- .../filecoin}/storage/face/map_cursor.hpp | 0 .../filecoin}/storage/face/persistent_map.hpp | 4 +-- .../filecoin}/storage/face/readable_map.hpp | 4 +-- .../filecoin}/storage/face/write_batch.hpp | 2 +- .../filecoin}/storage/face/writeable_map.hpp | 2 +- .../filecoin}/storage/filestore/file.hpp | 4 +-- .../filecoin}/storage/filestore/filestore.hpp | 6 ++--- .../storage/filestore/filestore_error.hpp | 2 +- .../impl/filesystem/filesystem_file.hpp | 2 +- .../impl/filesystem/filesystem_filestore.hpp | 2 +- .../filecoin}/storage/filestore/path.hpp | 0 .../filecoin}/storage/hamt/hamt.hpp | 12 ++++----- .../storage/in_memory/in_memory_batch.hpp | 4 +-- .../storage/in_memory/in_memory_storage.hpp | 6 ++--- .../filecoin}/storage/ipfs/datastore.hpp | 12 ++++----- .../storage/ipfs/impl/datastore_leveldb.hpp | 6 ++--- .../storage/ipfs/impl/in_memory_datastore.hpp | 2 +- .../storage/ipfs/impl/ipfs_block_service.hpp | 2 +- .../storage/ipfs/ipfs_datastore_error.hpp | 2 +- .../storage/ipfs/merkledag/impl/leaf_impl.hpp | 2 +- .../merkledag/impl/merkledag_service_impl.hpp | 8 +++--- .../filecoin}/storage/ipfs/merkledag/leaf.hpp | 4 +-- .../ipfs/merkledag/merkledag_service.hpp | 6 ++--- .../storage/ipld/impl/ipld_link_impl.hpp | 2 +- .../ipld/impl/ipld_node_decoder_pb.hpp | 4 +-- .../ipld/impl/ipld_node_encoder_pb.hpp | 8 +++--- .../storage/ipld/impl/ipld_node_impl.hpp | 8 +++--- .../filecoin}/storage/ipld/ipld_block.hpp | 4 +-- .../storage/ipld/ipld_block_common.hpp | 8 +++--- .../filecoin}/storage/ipld/ipld_link.hpp | 2 +- .../filecoin}/storage/ipld/ipld_node.hpp | 8 +++--- .../impl/filesystem/filesystem_keystore.hpp | 6 ++--- .../impl/in_memory/in_memory_keystore.hpp | 2 +- .../filecoin}/storage/keystore/keystore.hpp | 14 +++++----- .../storage/keystore/keystore_error.hpp | 2 +- .../filecoin}/storage/leveldb/leveldb.hpp | 4 +-- .../storage/leveldb/leveldb_batch.hpp | 2 +- .../storage/leveldb/leveldb_cursor.hpp | 2 +- .../storage/leveldb/leveldb_error.hpp | 2 +- .../storage/leveldb/leveldb_util.hpp | 8 +++--- .../repository/impl/filesystem_repository.hpp | 8 +++--- .../repository/impl/in_memory_repository.hpp | 2 +- .../storage/repository/repository.hpp | 8 +++--- .../storage/repository/repository_error.hpp | 2 +- {core => include/filecoin}/vm/actor/actor.hpp | 10 +++---- .../filecoin}/vm/actor/actor_encoding.hpp | 10 +++---- .../filecoin}/vm/actor/actor_method.hpp | 12 ++++----- .../actor/builtin/account/account_actor.hpp | 8 +++--- .../vm/actor/builtin/cron/cron_actor.hpp | 2 +- .../vm/actor/builtin/init/init_actor.hpp | 6 ++--- .../vm/actor/builtin/market/actor.hpp | 6 ++--- .../vm/actor/builtin/miner/miner_actor.hpp | 10 +++---- .../vm/actor/builtin/miner/policy.hpp | 2 +- .../vm/actor/builtin/miner/types.hpp | 10 +++---- .../actor/builtin/multisig/multisig_actor.hpp | 18 ++++++------- .../payment_channel/payment_channel_actor.hpp | 14 +++++----- .../payment_channel_actor_state.hpp | 14 +++++----- .../vm/actor/builtin/reward/reward_actor.hpp | 18 ++++++------- .../vm/actor/builtin/shared/shared.hpp | 6 ++--- .../vm/actor/builtin/storage_power/policy.hpp | 2 +- .../storage_power_actor_export.hpp | 12 ++++----- .../storage_power_actor_state.hpp | 18 ++++++------- .../filecoin}/vm/actor/impl/invoker_impl.hpp | 4 +-- .../filecoin}/vm/actor/invoker.hpp | 2 +- .../filecoin}/vm/exit_code/exit_code.hpp | 2 +- .../filecoin}/vm/indices/indices.hpp | 4 +-- .../vm/interpreter/impl/interpreter_impl.hpp | 4 +-- .../filecoin}/vm/interpreter/interpreter.hpp | 6 ++--- .../vm/message/impl/message_signer_impl.hpp | 6 ++--- .../filecoin}/vm/message/message.hpp | 18 ++++++------- .../filecoin}/vm/message/message_signer.hpp | 6 ++--- .../filecoin}/vm/message/message_util.hpp | 4 +-- .../vm/runtime/actor_state_handle.hpp | 2 +- {core => include/filecoin}/vm/runtime/env.hpp | 8 +++--- .../filecoin}/vm/runtime/gas_cost.hpp | 2 +- .../runtime/impl/actor_state_handle_impl.hpp | 2 +- .../vm/runtime/impl/runtime_impl.hpp | 14 +++++----- .../filecoin}/vm/runtime/runtime.hpp | 26 +++++++++---------- .../filecoin}/vm/runtime/runtime_error.hpp | 2 +- .../filecoin}/vm/runtime/runtime_types.hpp | 10 +++---- .../vm/state/impl/state_tree_impl.hpp | 6 ++--- .../filecoin}/vm/state/state_tree.hpp | 4 +-- test/core/adt/array_test.cpp | 6 ++--- test/core/adt/balance_table_hamt_test.cpp | 4 +-- test/core/adt/multimap_test.cpp | 8 +++--- .../gas_price_scored_message_storage_test.cpp | 4 +-- .../production/block_producer_test.cpp | 2 +- .../production/block_producer_test.hpp | 16 ++++++------ test/core/clock/chain_epoch_clock_test.cpp | 2 +- test/core/clock/time_test.cpp | 2 +- test/core/codec/cbor/cbor_test.cpp | 6 ++--- .../codec/rleplus/rle_plus_codec_test.cpp | 2 +- .../codec/rleplus/rle_plus_codec_tester.hpp | 2 +- test/core/common/blob_test.cpp | 2 +- test/core/common/hexutil_test.cpp | 2 +- test/core/common/le_encoder_test.cpp | 2 +- test/core/crypto/blake2_test.cpp | 4 +-- test/core/crypto/bls_provider_test.cpp | 2 +- test/core/crypto/murmur_test.cpp | 4 +-- .../randomness/randomness_provider_test.cpp | 2 +- test/core/crypto/vrf/vrf_encoder_test.cpp | 2 +- test/core/crypto/vrf/vrf_provider_test.cpp | 4 +-- test/core/fslock/fslock_test.cpp | 6 ++--- test/core/power/power_table_hamt_test.cpp | 6 ++--- test/core/power/power_table_test.cpp | 6 ++--- .../primitives/address/address_codec_test.cpp | 4 +-- test/core/primitives/address/address_test.cpp | 2 +- .../address/address_verifier_test.cpp | 8 +++--- test/core/primitives/big_int_test.cpp | 2 +- test/core/primitives/block/block_test.cpp | 4 +-- .../chain_epoch/chain_epoch_codec_test.cpp | 2 +- test/core/primitives/cid/cid_json_test.cpp | 4 +-- .../primitives/rle_bitset/rle_bitset_test.cpp | 2 +- .../ticket/epost_proof_codec_test.cpp | 2 +- .../ticket/epost_ticket_codec_test.cpp | 2 +- .../primitives/ticket/epost_ticket_test.cpp | 2 +- .../primitives/ticket/ticket_codec_test.cpp | 2 +- test/core/primitives/ticket/ticket_test.cpp | 4 +-- .../primitives/tipset/tipset_key_test.cpp | 4 +-- test/core/primitives/tipset/tipset_test.cpp | 6 ++--- test/core/proofs/proofs_test.cpp | 6 ++--- test/core/storage/amt/amt_test.cpp | 4 +-- .../chain_data_store_test.cpp | 4 +-- .../chain/chain_store/chain_store_test.cpp | 16 ++++++------ .../datastore_key/datastore_key_cbor_test.cpp | 4 +-- .../datastore_key_compare_test.cpp | 2 +- .../datastore_key_create_test.cpp | 2 +- test/core/storage/config/config_test.cpp | 2 +- .../filesystem/filesystem_file_test.cpp | 4 +-- .../filesystem/filesystem_filestore_test.cpp | 4 +-- test/core/storage/hamt/hamt_test.cpp | 8 +++--- .../ipfs/datastore_integration_test.cpp | 2 +- .../ipfs/in_memory_ipfs_datastore_test.cpp | 2 +- .../storage/ipfs/ipfs_block_service_test.cpp | 8 +++--- .../ipfs/merkledag/ipfs_merkledag_dataset.hpp | 2 +- .../merkledag/ipfs_merkledag_service_test.cpp | 8 +++--- .../keystore/filesystem_keystore_test.cpp | 10 +++---- .../keystore/in_memory_keystore_test.cpp | 10 +++---- test/core/storage/leveldb/leveldb_fs_test.cpp | 4 +-- .../leveldb/leveldb_integration_test.cpp | 4 +-- .../repository/filesystem_repository_test.cpp | 8 +++--- test/core/vm/actor/actor_test.cpp | 2 +- .../builtin/account/account_actor_test.cpp | 2 +- .../vm/actor/builtin/cron/cron_actor_test.cpp | 6 ++--- .../vm/actor/builtin/init/init_actor_test.cpp | 8 +++--- .../actor/builtin/miner/miner_actor_test.cpp | 2 +- .../multisig_actor/multisig_actor_test.cpp | 6 ++--- .../payment_channel_actor_test.cpp | 8 +++--- .../storage_power_actor_state_test.cpp | 6 ++--- .../storage_power_actor_test.cpp | 12 ++++----- test/core/vm/actor/invoker_test.cpp | 4 +-- test/core/vm/exit_code/exit_code_test.cpp | 2 +- test/core/vm/message/message_test.cpp | 10 +++---- test/core/vm/runtime/runtime_test.cpp | 12 ++++----- test/core/vm/state/state_tree_test.cpp | 4 +-- test/testutil/cbor.hpp | 2 +- test/testutil/init_actor.hpp | 6 ++--- test/testutil/literals.hpp | 4 +-- .../message_pool/message_storage_mock.hpp | 2 +- .../blockchain/weight_calculator_mock.hpp | 2 +- test/testutil/mocks/clock/utc_clock_mock.hpp | 2 +- .../mocks/crypto/bls/bls_provider_mock.hpp | 2 +- .../randomness/randomness_provider_mock.hpp | 2 +- .../storage/chain/chain_data_store_mock.hpp | 2 +- .../storage/ipfs/ipfs_datastore_mock.hpp | 2 +- test/testutil/mocks/vm/actor/invoker_mock.hpp | 2 +- .../mocks/vm/indices/indices_mock.hpp | 2 +- .../mocks/vm/interpreter/interpreter_mock.hpp | 2 +- .../mocks/vm/runtime/runtime_mock.hpp | 2 +- .../mocks/vm/state/state_tree_mock.hpp | 2 +- test/testutil/outcome.hpp | 4 +-- test/testutil/primitives/ticket/printer.hpp | 6 ++--- .../primitives/ticket/ticket_generator.hpp | 4 +-- test/testutil/storage/base_fs_test.hpp | 2 +- test/testutil/storage/base_leveldb_test.hpp | 2 +- test/testutil/storage/std_list_adapter.hpp | 4 +-- .../testutil/vm/message/message_test_util.cpp | 4 +-- .../testutil/vm/message/message_test_util.hpp | 4 +-- 407 files changed, 957 insertions(+), 955 deletions(-) rename {core => include/filecoin}/adt/array.hpp (89%) rename {core => include/filecoin}/adt/balance_table_hamt.hpp (89%) rename {core => include/filecoin}/adt/multimap.hpp (91%) rename {core => include/filecoin}/blockchain/block_validator.hpp (93%) rename {core => include/filecoin}/blockchain/chain_manager.hpp (100%) rename {core => include/filecoin}/blockchain/chain_tips_manager.hpp (96%) rename {core => include/filecoin}/blockchain/impl/block_validator_impl.hpp (92%) rename {core => include/filecoin}/blockchain/impl/weight_calculator_impl.hpp (92%) rename {core => include/filecoin}/blockchain/message_pool/impl/gas_price_scored_message_storage.hpp (96%) rename {core => include/filecoin}/blockchain/message_pool/message_pool_error.hpp (93%) rename {core => include/filecoin}/blockchain/message_pool/message_storage.hpp (90%) rename {core => include/filecoin}/blockchain/production/block_producer.hpp (82%) rename {core => include/filecoin}/blockchain/production/impl/block_producer_impl.hpp (85%) rename {core => include/filecoin}/blockchain/weight_calculator.hpp (88%) rename {core => include/filecoin}/clock/chain_epoch_clock.hpp (89%) rename {core => include/filecoin}/clock/impl/chain_epoch_clock_impl.hpp (92%) rename {core => include/filecoin}/clock/impl/utc_clock_impl.hpp (91%) rename {core => include/filecoin}/clock/time.hpp (95%) rename {core => include/filecoin}/clock/utc_clock.hpp (92%) rename {core => include/filecoin}/codec/cbor/cbor.hpp (88%) rename {core => include/filecoin}/codec/cbor/cbor_common.hpp (77%) rename {core => include/filecoin}/codec/cbor/cbor_decode_stream.hpp (98%) rename {core => include/filecoin}/codec/cbor/cbor_encode_stream.hpp (97%) rename {core => include/filecoin}/codec/cbor/cbor_errors.hpp (94%) rename {core => include/filecoin}/codec/cbor/cbor_resolve.hpp (93%) rename {core => include/filecoin}/codec/cbor/streams_annotation.hpp (100%) rename {core => include/filecoin}/codec/rle/rle_plus.hpp (86%) rename {core => include/filecoin}/codec/rle/rle_plus_config.hpp (100%) rename {core => include/filecoin}/codec/rle/rle_plus_decoding_stream.hpp (98%) rename {core => include/filecoin}/codec/rle/rle_plus_encoding_stream.hpp (98%) rename {core => include/filecoin}/codec/rle/rle_plus_errors.hpp (95%) rename {core => include/filecoin}/common/blob.hpp (99%) rename {core => include/filecoin}/common/buffer.hpp (98%) rename {core => include/filecoin}/common/enum.hpp (100%) rename {core => include/filecoin}/common/hexutil.hpp (97%) rename {core => include/filecoin}/common/le_encoder.hpp (96%) rename {core => include/filecoin}/common/logger.hpp (100%) rename {core => include/filecoin}/common/outcome.hpp (100%) rename {core => include/filecoin}/common/outcome_throw.hpp (100%) rename {core => include/filecoin}/common/visitor.hpp (100%) rename {core => include/filecoin}/common/which.hpp (100%) rename {core => include/filecoin}/crypto/blake2/blake2b.h (100%) rename {core => include/filecoin}/crypto/blake2/blake2b160.hpp (93%) rename {core => include/filecoin}/crypto/blake2/blake2s.h (100%) rename {core => include/filecoin}/crypto/bls/bls_provider.hpp (97%) rename {core => include/filecoin}/crypto/bls/bls_types.hpp (90%) rename {core => include/filecoin}/crypto/bls/impl/bls_provider_impl.hpp (96%) rename {core => include/filecoin}/crypto/bls/libbls_signatures.h (100%) rename {core => include/filecoin}/crypto/hasher/hasher.hpp (100%) rename {core => include/filecoin}/crypto/murmur/murmur.hpp (100%) rename {core => include/filecoin}/crypto/randomness/chain_randomness_provider.hpp (88%) rename {core => include/filecoin}/crypto/randomness/impl/chain_randomness_provider_impl.hpp (88%) rename {core => include/filecoin}/crypto/randomness/impl/randomness_provider_impl.hpp (95%) rename {core => include/filecoin}/crypto/randomness/randomness_provider.hpp (92%) rename {core => include/filecoin}/crypto/randomness/randomness_types.hpp (90%) rename {core => include/filecoin}/crypto/secp256k1/secp256k1_provider.hpp (100%) rename {core => include/filecoin}/crypto/signature/signature.hpp (91%) rename {core => include/filecoin}/crypto/vrf/impl/vrf_provider_impl.hpp (90%) rename {core => include/filecoin}/crypto/vrf/vrf_hash_encoder.hpp (94%) rename {core => include/filecoin}/crypto/vrf/vrf_provider.hpp (97%) rename {core => include/filecoin}/crypto/vrf/vrf_types.hpp (86%) rename {core => include/filecoin}/fslock/fslock.hpp (94%) rename {core => include/filecoin}/fslock/fslock_error.hpp (92%) rename {core => include/filecoin}/power/impl/power_table_hamt.hpp (95%) rename {core => include/filecoin}/power/impl/power_table_impl.hpp (96%) rename {core => include/filecoin}/power/power_table.hpp (93%) rename {core => include/filecoin}/power/power_table_error.hpp (92%) rename {core => include/filecoin}/primitives/address/address.hpp (95%) rename {core => include/filecoin}/primitives/address/address_codec.hpp (93%) rename {core => include/filecoin}/primitives/big_int.hpp (94%) rename {core => include/filecoin}/primitives/block/block.hpp (81%) rename {core => include/filecoin}/primitives/boost_multiprecision.hpp (100%) rename {core => include/filecoin}/primitives/chain/chain.hpp (90%) rename {core => include/filecoin}/primitives/chain_epoch/chain_epoch.hpp (100%) rename {core => include/filecoin}/primitives/chain_epoch/chain_epoch_codec.hpp (88%) rename {core => include/filecoin}/primitives/cid/cid.hpp (97%) rename {core => include/filecoin}/primitives/cid/cid_of_cbor.hpp (89%) rename {core => include/filecoin}/primitives/cid/comm_cid.hpp (97%) rename {core => include/filecoin}/primitives/cid/comm_cid_errors.hpp (93%) rename {core => include/filecoin}/primitives/cid/json_codec.hpp (87%) rename {core => include/filecoin}/primitives/piece/piece.hpp (95%) rename {core => include/filecoin}/primitives/piece/piece_error.hpp (93%) rename {core => include/filecoin}/primitives/rle_bitset/rle_bitset.hpp (84%) rename {core => include/filecoin}/primitives/sector/sector.hpp (97%) rename {core => include/filecoin}/primitives/ticket/epost_ticket.hpp (92%) rename {core => include/filecoin}/primitives/ticket/epost_ticket_codec.hpp (91%) rename {core => include/filecoin}/primitives/ticket/ticket.hpp (85%) rename {core => include/filecoin}/primitives/ticket/ticket_codec.hpp (88%) rename {core => include/filecoin}/primitives/tipset/tipset.hpp (89%) rename {core => include/filecoin}/primitives/tipset/tipset_key.hpp (94%) rename {core => include/filecoin}/primitives/types.hpp (82%) rename {core => include/filecoin}/proofs/proof_param_provider.hpp (92%) rename {core => include/filecoin}/proofs/proof_param_provider_error.hpp (94%) rename {core => include/filecoin}/proofs/proofs.hpp (94%) rename {core => include/filecoin}/proofs/proofs_error.hpp (93%) rename {core => include/filecoin}/storage/amt/amt.hpp (94%) rename {core => include/filecoin}/storage/buffer_map.hpp (79%) rename {core => include/filecoin}/storage/chain/chain_data_store.hpp (95%) rename {core => include/filecoin}/storage/chain/chain_store.hpp (94%) rename {core => include/filecoin}/storage/chain/datastore_key.hpp (93%) rename {core => include/filecoin}/storage/chain/impl/chain_data_store_impl.hpp (89%) rename {core => include/filecoin}/storage/chain/impl/chain_store_impl.hpp (85%) rename {core => include/filecoin}/storage/config/config.hpp (95%) rename {core => include/filecoin}/storage/config/config_error.hpp (93%) rename {core => include/filecoin}/storage/config/config_validator.hpp (87%) rename {core => include/filecoin}/storage/face/generic_iterator.hpp (100%) rename {core => include/filecoin}/storage/face/generic_list.hpp (98%) rename {core => include/filecoin}/storage/face/generic_map.hpp (80%) rename {core => include/filecoin}/storage/face/iterable_map.hpp (93%) rename {core => include/filecoin}/storage/face/map_cursor.hpp (100%) rename {core => include/filecoin}/storage/face/persistent_map.hpp (88%) rename {core => include/filecoin}/storage/face/readable_map.hpp (90%) rename {core => include/filecoin}/storage/face/write_batch.hpp (93%) rename {core => include/filecoin}/storage/face/writeable_map.hpp (96%) rename {core => include/filecoin}/storage/filestore/file.hpp (95%) rename {core => include/filecoin}/storage/filestore/filestore.hpp (92%) rename {core => include/filecoin}/storage/filestore/filestore_error.hpp (94%) rename {core => include/filecoin}/storage/filestore/impl/filesystem/filesystem_file.hpp (96%) rename {core => include/filecoin}/storage/filestore/impl/filesystem/filesystem_filestore.hpp (95%) rename {core => include/filecoin}/storage/filestore/path.hpp (100%) rename {core => include/filecoin}/storage/hamt/hamt.hpp (95%) rename {core => include/filecoin}/storage/in_memory/in_memory_batch.hpp (93%) rename {core => include/filecoin}/storage/in_memory/in_memory_storage.hpp (91%) rename {core => include/filecoin}/storage/ipfs/datastore.hpp (88%) rename {core => include/filecoin}/storage/ipfs/impl/datastore_leveldb.hpp (91%) rename {core => include/filecoin}/storage/ipfs/impl/in_memory_datastore.hpp (95%) rename {core => include/filecoin}/storage/ipfs/impl/ipfs_block_service.hpp (95%) rename {core => include/filecoin}/storage/ipfs/ipfs_datastore_error.hpp (93%) rename {core => include/filecoin}/storage/ipfs/merkledag/impl/leaf_impl.hpp (95%) rename {core => include/filecoin}/storage/ipfs/merkledag/impl/merkledag_service_impl.hpp (90%) rename {core => include/filecoin}/storage/ipfs/merkledag/leaf.hpp (94%) rename {core => include/filecoin}/storage/ipfs/merkledag/merkledag_service.hpp (94%) rename {core => include/filecoin}/storage/ipld/impl/ipld_link_impl.hpp (95%) rename {core => include/filecoin}/storage/ipld/impl/ipld_node_decoder_pb.hpp (95%) rename {core => include/filecoin}/storage/ipld/impl/ipld_node_encoder_pb.hpp (93%) rename {core => include/filecoin}/storage/ipld/impl/ipld_node_impl.hpp (87%) rename {core => include/filecoin}/storage/ipld/ipld_block.hpp (90%) rename {core => include/filecoin}/storage/ipld/ipld_block_common.hpp (90%) rename {core => include/filecoin}/storage/ipld/ipld_link.hpp (95%) rename {core => include/filecoin}/storage/ipld/ipld_node.hpp (92%) rename {core => include/filecoin}/storage/keystore/impl/filesystem/filesystem_keystore.hpp (92%) rename {core => include/filecoin}/storage/keystore/impl/in_memory/in_memory_keystore.hpp (96%) rename {core => include/filecoin}/storage/keystore/keystore.hpp (90%) rename {core => include/filecoin}/storage/keystore/keystore_error.hpp (94%) rename {core => include/filecoin}/storage/leveldb/leveldb.hpp (96%) rename {core => include/filecoin}/storage/leveldb/leveldb_batch.hpp (94%) rename {core => include/filecoin}/storage/leveldb/leveldb_cursor.hpp (95%) rename {core => include/filecoin}/storage/leveldb/leveldb_error.hpp (94%) rename {core => include/filecoin}/storage/leveldb/leveldb_util.hpp (91%) rename {core => include/filecoin}/storage/repository/impl/filesystem_repository.hpp (93%) rename {core => include/filecoin}/storage/repository/impl/in_memory_repository.hpp (94%) rename {core => include/filecoin}/storage/repository/repository.hpp (91%) rename {core => include/filecoin}/storage/repository/repository_error.hpp (93%) rename {core => include/filecoin}/vm/actor/actor.hpp (94%) rename {core => include/filecoin}/vm/actor/actor_encoding.hpp (88%) rename {core => include/filecoin}/vm/actor/actor_method.hpp (87%) rename {core => include/filecoin}/vm/actor/builtin/account/account_actor.hpp (86%) rename {core => include/filecoin}/vm/actor/builtin/cron/cron_actor.hpp (94%) rename {core => include/filecoin}/vm/actor/builtin/init/init_actor.hpp (90%) rename {core => include/filecoin}/vm/actor/builtin/market/actor.hpp (89%) rename {core => include/filecoin}/vm/actor/builtin/miner/miner_actor.hpp (91%) rename {core => include/filecoin}/vm/actor/builtin/miner/policy.hpp (97%) rename {core => include/filecoin}/vm/actor/builtin/miner/types.hpp (94%) rename {core => include/filecoin}/vm/actor/builtin/multisig/multisig_actor.hpp (92%) rename {core => include/filecoin}/vm/actor/builtin/payment_channel/payment_channel_actor.hpp (74%) rename {core => include/filecoin}/vm/actor/builtin/payment_channel/payment_channel_actor_state.hpp (86%) rename {core => include/filecoin}/vm/actor/builtin/reward/reward_actor.hpp (85%) rename {core => include/filecoin}/vm/actor/builtin/shared/shared.hpp (80%) rename {core => include/filecoin}/vm/actor/builtin/storage_power/policy.hpp (97%) rename {core => include/filecoin}/vm/actor/builtin/storage_power/storage_power_actor_export.hpp (93%) rename {core => include/filecoin}/vm/actor/builtin/storage_power/storage_power_actor_state.hpp (95%) rename {core => include/filecoin}/vm/actor/impl/invoker_impl.hpp (89%) rename {core => include/filecoin}/vm/actor/invoker.hpp (93%) rename {core => include/filecoin}/vm/exit_code/exit_code.hpp (99%) rename {core => include/filecoin}/vm/indices/indices.hpp (92%) rename {core => include/filecoin}/vm/interpreter/impl/interpreter_impl.hpp (90%) rename {core => include/filecoin}/vm/interpreter/interpreter.hpp (87%) rename {core => include/filecoin}/vm/message/impl/message_signer_impl.hpp (88%) rename {core => include/filecoin}/vm/message/message.hpp (86%) rename {core => include/filecoin}/vm/message/message_signer.hpp (89%) rename {core => include/filecoin}/vm/message/message_util.hpp (88%) rename {core => include/filecoin}/vm/runtime/actor_state_handle.hpp (94%) rename {core => include/filecoin}/vm/runtime/env.hpp (89%) rename {core => include/filecoin}/vm/runtime/gas_cost.hpp (98%) rename {core => include/filecoin}/vm/runtime/impl/actor_state_handle_impl.hpp (93%) rename {core => include/filecoin}/vm/runtime/impl/runtime_impl.hpp (93%) rename {core => include/filecoin}/vm/runtime/runtime.hpp (92%) rename {core => include/filecoin}/vm/runtime/runtime_error.hpp (94%) rename {core => include/filecoin}/vm/runtime/runtime_types.hpp (81%) rename {core => include/filecoin}/vm/state/impl/state_tree_impl.hpp (92%) rename {core => include/filecoin}/vm/state/state_tree.hpp (94%) diff --git a/CMakeLists.txt b/CMakeLists.txt index a36915fb96..7b3aef0a29 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -110,7 +110,7 @@ endif() include_directories( # project includes - ${PROJECT_SOURCE_DIR}/core + ${PROJECT_SOURCE_DIR}/include ) if (BUILD_INTERNAL_DEPS) diff --git a/cmake/install.cmake b/cmake/install.cmake index 774cdb39c7..0f54dcc0e2 100644 --- a/cmake/install.cmake +++ b/cmake/install.cmake @@ -16,6 +16,11 @@ function (filecoin_install targets) ) endfunction() +install( + DIRECTORY ${CMAKE_SOURCE_DIR}/include/filecoin + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} +) + install( EXPORT filecoinConfig DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/filecoin diff --git a/core/adt/impl/array.cpp b/core/adt/impl/array.cpp index 9c637077ad..7212d4392c 100644 --- a/core/adt/impl/array.cpp +++ b/core/adt/impl/array.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "adt/array.hpp" +#include "filecoin/adt/array.hpp" namespace fc::adt { diff --git a/core/adt/impl/balance_table_hamt.cpp b/core/adt/impl/balance_table_hamt.cpp index a161202c08..e93c4a3f31 100644 --- a/core/adt/impl/balance_table_hamt.cpp +++ b/core/adt/impl/balance_table_hamt.cpp @@ -3,8 +3,8 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "adt/balance_table_hamt.hpp" -#include "primitives/address/address_codec.hpp" +#include "filecoin/adt/balance_table_hamt.hpp" +#include "filecoin/primitives/address/address_codec.hpp" using fc::adt::BalanceTableHamt; using fc::adt::TokenAmount; diff --git a/core/adt/impl/multimap.cpp b/core/adt/impl/multimap.cpp index 0e0482c079..4e0de51759 100644 --- a/core/adt/impl/multimap.cpp +++ b/core/adt/impl/multimap.cpp @@ -3,9 +3,9 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "adt/multimap.hpp" +#include "filecoin/adt/multimap.hpp" -#include "adt/array.hpp" +#include "filecoin/adt/array.hpp" namespace fc::adt { diff --git a/core/blockchain/impl/block_validator_impl.cpp b/core/blockchain/impl/block_validator_impl.cpp index f114acf1e9..4cc7a56041 100644 --- a/core/blockchain/impl/block_validator_impl.cpp +++ b/core/blockchain/impl/block_validator_impl.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "blockchain/impl/block_validator_impl.hpp" +#include "filecoin/blockchain/impl/block_validator_impl.hpp" namespace fc::blockchain::block_validator { // TODO (yuraz): FIL-87 implement proper validation diff --git a/core/blockchain/impl/weight_calculator_impl.cpp b/core/blockchain/impl/weight_calculator_impl.cpp index 522158e7cb..45a0031c9d 100644 --- a/core/blockchain/impl/weight_calculator_impl.cpp +++ b/core/blockchain/impl/weight_calculator_impl.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "blockchain/impl/weight_calculator_impl.hpp" +#include "filecoin/blockchain/impl/weight_calculator_impl.hpp" namespace fc::blockchain::weight { using primitives::BigInt; diff --git a/core/blockchain/message_pool/impl/gas_price_scored_message_storage.cpp b/core/blockchain/message_pool/impl/gas_price_scored_message_storage.cpp index b72d7c6bca..0ccee22fd2 100644 --- a/core/blockchain/message_pool/impl/gas_price_scored_message_storage.cpp +++ b/core/blockchain/message_pool/impl/gas_price_scored_message_storage.cpp @@ -3,9 +3,9 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "blockchain/message_pool/impl/gas_price_scored_message_storage.hpp" +#include "filecoin/blockchain/message_pool/impl/gas_price_scored_message_storage.hpp" -#include "blockchain/message_pool/message_pool_error.hpp" +#include "filecoin/blockchain/message_pool/message_pool_error.hpp" using fc::blockchain::message_pool::GasPriceScoredMessageStorage; using fc::blockchain::message_pool::MessagePoolError; diff --git a/core/blockchain/message_pool/impl/message_pool_error.cpp b/core/blockchain/message_pool/impl/message_pool_error.cpp index 826fd29dfe..b84c254524 100644 --- a/core/blockchain/message_pool/impl/message_pool_error.cpp +++ b/core/blockchain/message_pool/impl/message_pool_error.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "blockchain/message_pool/message_pool_error.hpp" +#include "filecoin/blockchain/message_pool/message_pool_error.hpp" OUTCOME_CPP_DEFINE_CATEGORY(fc::blockchain::message_pool, MessagePoolError, e) { using fc::blockchain::message_pool::MessagePoolError; diff --git a/core/blockchain/production/impl/block_producer_impl.cpp b/core/blockchain/production/impl/block_producer_impl.cpp index 4290bd0b02..e6ee6c38e7 100644 --- a/core/blockchain/production/impl/block_producer_impl.cpp +++ b/core/blockchain/production/impl/block_producer_impl.cpp @@ -3,17 +3,17 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "blockchain/production/impl/block_producer_impl.hpp" +#include "filecoin/blockchain/production/impl/block_producer_impl.hpp" #include #include -#include "clock/chain_epoch_clock.hpp" -#include "codec/cbor/cbor.hpp" -#include "common/visitor.hpp" -#include "primitives/cid/cid_of_cbor.hpp" -#include "storage/amt/amt.hpp" -#include "storage/ipfs/impl/in_memory_datastore.hpp" +#include "filecoin/clock/chain_epoch_clock.hpp" +#include "filecoin/codec/cbor/cbor.hpp" +#include "filecoin/common/visitor.hpp" +#include "filecoin/primitives/cid/cid_of_cbor.hpp" +#include "filecoin/storage/amt/amt.hpp" +#include "filecoin/storage/ipfs/impl/in_memory_datastore.hpp" namespace fc::blockchain::production { using clock::Time; diff --git a/core/clock/chain_epoch_clock.cpp b/core/clock/chain_epoch_clock.cpp index bd529dbbcc..9c8b0a69a2 100644 --- a/core/clock/chain_epoch_clock.cpp +++ b/core/clock/chain_epoch_clock.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "clock/chain_epoch_clock.hpp" +#include "filecoin/clock/chain_epoch_clock.hpp" OUTCOME_CPP_DEFINE_CATEGORY(fc::clock, EpochAtTimeError, e) { using fc::clock::EpochAtTimeError; diff --git a/core/clock/impl/chain_epoch_clock_impl.cpp b/core/clock/impl/chain_epoch_clock_impl.cpp index b92880cb31..9ebc3332ee 100644 --- a/core/clock/impl/chain_epoch_clock_impl.cpp +++ b/core/clock/impl/chain_epoch_clock_impl.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "clock/impl/chain_epoch_clock_impl.hpp" +#include "filecoin/clock/impl/chain_epoch_clock_impl.hpp" namespace fc::clock { ChainEpochClockImpl::ChainEpochClockImpl(const Time &genesis_time) diff --git a/core/clock/impl/utc_clock_impl.cpp b/core/clock/impl/utc_clock_impl.cpp index 4d98fdc191..fdb9183d96 100644 --- a/core/clock/impl/utc_clock_impl.cpp +++ b/core/clock/impl/utc_clock_impl.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "clock/impl/utc_clock_impl.hpp" +#include "filecoin/clock/impl/utc_clock_impl.hpp" namespace fc::clock { // TODO(turuslan): add NTP sync if necessary diff --git a/core/clock/time.cpp b/core/clock/time.cpp index fd254be072..89e2064d0f 100644 --- a/core/clock/time.cpp +++ b/core/clock/time.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "clock/time.hpp" +#include "filecoin/clock/time.hpp" #include diff --git a/core/codec/cbor/cbor_decode_stream.cpp b/core/codec/cbor/cbor_decode_stream.cpp index 41cbe6b3b6..8bda666df7 100644 --- a/core/codec/cbor/cbor_decode_stream.cpp +++ b/core/codec/cbor/cbor_decode_stream.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "codec/cbor/cbor_decode_stream.hpp" +#include "filecoin/codec/cbor/cbor_decode_stream.hpp" namespace fc::codec::cbor { CborDecodeStream::CborDecodeStream(gsl::span data) diff --git a/core/codec/cbor/cbor_encode_stream.cpp b/core/codec/cbor/cbor_encode_stream.cpp index fcf27f2228..910f8a4d58 100644 --- a/core/codec/cbor/cbor_encode_stream.cpp +++ b/core/codec/cbor/cbor_encode_stream.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "codec/cbor/cbor_encode_stream.hpp" +#include "filecoin/codec/cbor/cbor_encode_stream.hpp" namespace fc::codec::cbor { CborEncodeStream &CborEncodeStream::operator<<( diff --git a/core/codec/cbor/cbor_errors.cpp b/core/codec/cbor/cbor_errors.cpp index 78f478518d..1a4ad8a0e3 100644 --- a/core/codec/cbor/cbor_errors.cpp +++ b/core/codec/cbor/cbor_errors.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "codec/cbor/cbor_errors.hpp" +#include "filecoin/codec/cbor/cbor_errors.hpp" OUTCOME_CPP_DEFINE_CATEGORY(fc::codec::cbor, CborEncodeError, e) { using fc::codec::cbor::CborEncodeError; diff --git a/core/codec/cbor/cbor_resolve.cpp b/core/codec/cbor/cbor_resolve.cpp index 8b9818a6df..7d0e10bdce 100644 --- a/core/codec/cbor/cbor_resolve.cpp +++ b/core/codec/cbor/cbor_resolve.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "codec/cbor/cbor_resolve.hpp" +#include "filecoin/codec/cbor/cbor_resolve.hpp" OUTCOME_CPP_DEFINE_CATEGORY(fc::codec::cbor, CborResolveError, e) { using fc::codec::cbor::CborResolveError; diff --git a/core/codec/rle/rle_plus_encoding_stream.cpp b/core/codec/rle/rle_plus_encoding_stream.cpp index 21aa4075c5..eee97149b9 100644 --- a/core/codec/rle/rle_plus_encoding_stream.cpp +++ b/core/codec/rle/rle_plus_encoding_stream.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "codec/rle/rle_plus_encoding_stream.hpp" +#include "filecoin/codec/rle/rle_plus_encoding_stream.hpp" namespace fc::codec::rle { void RLEPlusEncodingStream::initContent() { diff --git a/core/codec/rle/rle_plus_errors.cpp b/core/codec/rle/rle_plus_errors.cpp index 33d107c2c9..aabeffa02d 100644 --- a/core/codec/rle/rle_plus_errors.cpp +++ b/core/codec/rle/rle_plus_errors.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "codec/rle/rle_plus_errors.hpp" +#include "filecoin/codec/rle/rle_plus_errors.hpp" OUTCOME_CPP_DEFINE_CATEGORY(fc::codec::rle, RLEPlusDecodeError, e) { using fc::codec::rle::RLEPlusDecodeError; diff --git a/core/common/CMakeLists.txt b/core/common/CMakeLists.txt index 182017e53d..c62f4f12c4 100644 --- a/core/common/CMakeLists.txt +++ b/core/common/CMakeLists.txt @@ -4,7 +4,6 @@ # filecoin_add_library(filecoin_hexutil - hexutil.hpp hexutil.cpp ) target_link_libraries(filecoin_hexutil @@ -13,7 +12,6 @@ target_link_libraries(filecoin_hexutil ) filecoin_add_library(filecoin_blob - blob.hpp blob.cpp ) target_link_libraries(filecoin_blob @@ -27,7 +25,6 @@ target_link_libraries(filecoin_outcome INTERFACE ) filecoin_add_library(filecoin_buffer - buffer.hpp buffer.cpp buffer_back_insert_iterator.cpp ) diff --git a/core/common/blob.cpp b/core/common/blob.cpp index 48780a67c4..1c0f83c1d0 100644 --- a/core/common/blob.cpp +++ b/core/common/blob.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "common/blob.hpp" +#include "filecoin/common/blob.hpp" OUTCOME_CPP_DEFINE_CATEGORY(fc::common, BlobError, e) { using fc::common::BlobError; diff --git a/core/common/buffer.cpp b/core/common/buffer.cpp index 5e189fd206..d830ab1e89 100644 --- a/core/common/buffer.cpp +++ b/core/common/buffer.cpp @@ -3,9 +3,9 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "common/buffer.hpp" +#include "filecoin/common/buffer.hpp" -#include "common/hexutil.hpp" +#include "filecoin/common/hexutil.hpp" namespace fc::common { diff --git a/core/common/buffer_back_insert_iterator.cpp b/core/common/buffer_back_insert_iterator.cpp index e7013ce64e..87dde23de1 100644 --- a/core/common/buffer_back_insert_iterator.cpp +++ b/core/common/buffer_back_insert_iterator.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "common/buffer.hpp" +#include "filecoin/common/buffer.hpp" using fc::common::Buffer; diff --git a/core/common/hexutil.cpp b/core/common/hexutil.cpp index 536130199f..27bb680d2d 100644 --- a/core/common/hexutil.cpp +++ b/core/common/hexutil.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "common/hexutil.hpp" +#include "filecoin/common/hexutil.hpp" #include #include diff --git a/core/common/logger.cpp b/core/common/logger.cpp index c9528ae98f..95ba00265e 100644 --- a/core/common/logger.cpp +++ b/core/common/logger.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "common/logger.hpp" +#include "filecoin/common/logger.hpp" #include diff --git a/core/crypto/blake2/blake2b.c b/core/crypto/blake2/blake2b.c index 171816a28f..7b607f4437 100644 --- a/core/crypto/blake2/blake2b.c +++ b/core/crypto/blake2/blake2b.c @@ -6,7 +6,7 @@ // blake2b.c // A simple BLAKE2b Reference Implementation. -#include "blake2b.h" +#include "filecoin/crypto/blake2/blake2b.h" // Cyclic right rotation. diff --git a/core/crypto/blake2/blake2b160.cpp b/core/crypto/blake2/blake2b160.cpp index 0247b3c6fc..4c6f1ac6c2 100644 --- a/core/crypto/blake2/blake2b160.cpp +++ b/core/crypto/blake2/blake2b160.cpp @@ -3,10 +3,10 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "crypto/blake2/blake2b160.hpp" +#include "filecoin/crypto/blake2/blake2b160.hpp" #include -#include "crypto/blake2/blake2b.h" +#include "filecoin/crypto/blake2/blake2b.h" namespace fc::crypto::blake2b { diff --git a/core/crypto/blake2/blake2s.c b/core/crypto/blake2/blake2s.c index 5d5ef88395..aa2072c706 100644 --- a/core/crypto/blake2/blake2s.c +++ b/core/crypto/blake2/blake2s.c @@ -6,7 +6,7 @@ // blake2s.c // A simple blake2s Reference Implementation. -#include "blake2s.h" +#include "filecoin/crypto/blake2/blake2s.h" #include @@ -210,4 +210,4 @@ void blake2s_256_init(blake2s_ctx *ctx_opaque) { void blake2s_256(void *out, const void *in, size_t inlen) { blake2s(out, _256_bits, NULL, 0, in, inlen); -} \ No newline at end of file +} diff --git a/core/crypto/bls/impl/bls_provider_impl.cpp b/core/crypto/bls/impl/bls_provider_impl.cpp index 52767f0c8a..173611b227 100644 --- a/core/crypto/bls/impl/bls_provider_impl.cpp +++ b/core/crypto/bls/impl/bls_provider_impl.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "crypto/bls/impl/bls_provider_impl.hpp" +#include "filecoin/crypto/bls/impl/bls_provider_impl.hpp" #include diff --git a/core/crypto/hasher/hasher.cpp b/core/crypto/hasher/hasher.cpp index 1c5b34f751..c0985977fa 100644 --- a/core/crypto/hasher/hasher.cpp +++ b/core/crypto/hasher/hasher.cpp @@ -3,10 +3,10 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "hasher.hpp" +#include "filecoin/crypto/hasher/hasher.hpp" #include -#include "crypto/blake2/blake2b160.hpp" +#include "filecoin/crypto/blake2/blake2b160.hpp" namespace fc::crypto { std::map Hasher::methods_{ diff --git a/core/crypto/murmur/murmur.cpp b/core/crypto/murmur/murmur.cpp index 23f7161eff..0c451f4bca 100644 --- a/core/crypto/murmur/murmur.cpp +++ b/core/crypto/murmur/murmur.cpp @@ -3,9 +3,9 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "crypto/murmur/murmur.hpp" +#include "filecoin/crypto/murmur/murmur.hpp" -#include +#include "filecoin/common/buffer.hpp" namespace fc::crypto::murmur { uint64_t getUint64LE(gsl::span bytes) { diff --git a/core/crypto/randomness/impl/chain_randomness_provider_impl.cpp b/core/crypto/randomness/impl/chain_randomness_provider_impl.cpp index b996f6beab..5107d07e74 100644 --- a/core/crypto/randomness/impl/chain_randomness_provider_impl.cpp +++ b/core/crypto/randomness/impl/chain_randomness_provider_impl.cpp @@ -3,14 +3,14 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "crypto/randomness/impl/chain_randomness_provider_impl.hpp" +#include "filecoin/crypto/randomness/impl/chain_randomness_provider_impl.hpp" #include #include -#include "common/le_encoder.hpp" -#include "primitives/ticket/ticket.hpp" -#include "primitives/tipset/tipset_key.hpp" -#include "storage/chain/chain_store.hpp" +#include "filecoin/common/le_encoder.hpp" +#include "filecoin/primitives/ticket/ticket.hpp" +#include "filecoin/primitives/tipset/tipset_key.hpp" +#include "filecoin/storage/chain/chain_store.hpp" namespace fc::crypto::randomness { diff --git a/core/crypto/randomness/impl/randomness_provider_impl.cpp b/core/crypto/randomness/impl/randomness_provider_impl.cpp index d5f8ef8050..3db6a2b4a5 100644 --- a/core/crypto/randomness/impl/randomness_provider_impl.cpp +++ b/core/crypto/randomness/impl/randomness_provider_impl.cpp @@ -3,10 +3,10 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "crypto/randomness/impl/randomness_provider_impl.hpp" +#include "filecoin/crypto/randomness/impl/randomness_provider_impl.hpp" #include -#include "common/le_encoder.hpp" +#include "filecoin/common/le_encoder.hpp" namespace fc::crypto::randomness { diff --git a/core/crypto/signature/signature.cpp b/core/crypto/signature/signature.cpp index 65070a1d92..f3a9af09b6 100644 --- a/core/crypto/signature/signature.cpp +++ b/core/crypto/signature/signature.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "crypto/signature/signature.hpp" +#include "filecoin/crypto/signature/signature.hpp" OUTCOME_CPP_DEFINE_CATEGORY(fc::crypto::signature, SignatureError, e) { using fc::crypto::signature::SignatureError; diff --git a/core/crypto/vrf/impl/vrf_provider_impl.cpp b/core/crypto/vrf/impl/vrf_provider_impl.cpp index 99e3cabc32..85d4655c16 100644 --- a/core/crypto/vrf/impl/vrf_provider_impl.cpp +++ b/core/crypto/vrf/impl/vrf_provider_impl.cpp @@ -3,10 +3,10 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "crypto/vrf/impl/vrf_provider_impl.hpp" -#include "crypto/vrf/vrf_hash_encoder.hpp" +#include "filecoin/crypto/vrf/impl/vrf_provider_impl.hpp" +#include "filecoin/crypto/vrf/vrf_hash_encoder.hpp" -#include "common/outcome.hpp" +#include "filecoin/common/outcome.hpp" namespace fc::crypto::vrf { diff --git a/core/crypto/vrf/vrf_hash_encoder.cpp b/core/crypto/vrf/vrf_hash_encoder.cpp index 40a56d81aa..5f9382b7a5 100644 --- a/core/crypto/vrf/vrf_hash_encoder.cpp +++ b/core/crypto/vrf/vrf_hash_encoder.cpp @@ -3,11 +3,11 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "crypto/vrf/vrf_hash_encoder.hpp" +#include "filecoin/crypto/vrf/vrf_hash_encoder.hpp" #include -#include "common/le_encoder.hpp" -#include "primitives/address/address_codec.hpp" +#include "filecoin/common/le_encoder.hpp" +#include "filecoin/primitives/address/address_codec.hpp" namespace fc::crypto::vrf { using primitives::address::Protocol; diff --git a/core/crypto/vrf/vrf_types.cpp b/core/crypto/vrf/vrf_types.cpp index dbf213a9bf..c9d211f912 100644 --- a/core/crypto/vrf/vrf_types.cpp +++ b/core/crypto/vrf/vrf_types.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "crypto/vrf/vrf_types.hpp" +#include "filecoin/crypto/vrf/vrf_types.hpp" OUTCOME_CPP_DEFINE_CATEGORY(fc::crypto::vrf, VRFError, e) { using fc::crypto::vrf::VRFError; diff --git a/core/fslock/fslock.cpp b/core/fslock/fslock.cpp index 54dfee8668..b00292a79b 100644 --- a/core/fslock/fslock.cpp +++ b/core/fslock/fslock.cpp @@ -3,14 +3,14 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "fslock/fslock.hpp" +#include "filecoin/fslock/fslock.hpp" #include #include #include #include #include -#include "fslock/fslock_error.hpp" +#include "filecoin/fslock/fslock_error.hpp" namespace fc::fslock { // TODO(artyom-yurin): [FIL-115] Should be unlocked if process died diff --git a/core/fslock/fslock_error.cpp b/core/fslock/fslock_error.cpp index 9c28952b51..6f92b9e84a 100644 --- a/core/fslock/fslock_error.cpp +++ b/core/fslock/fslock_error.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "fslock/fslock_error.hpp" +#include "filecoin/fslock/fslock_error.hpp" OUTCOME_CPP_DEFINE_CATEGORY(fc::fslock, FSLockError, e) { using fc::fslock::FSLockError; diff --git a/core/power/impl/power_table_error.cpp b/core/power/impl/power_table_error.cpp index 04a35aa8a1..1b561dd2db 100644 --- a/core/power/impl/power_table_error.cpp +++ b/core/power/impl/power_table_error.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "power/power_table_error.hpp" +#include "filecoin/power/power_table_error.hpp" OUTCOME_CPP_DEFINE_CATEGORY(fc::power, PowerTableError, e) { using fc::power::PowerTableError; diff --git a/core/power/impl/power_table_hamt.cpp b/core/power/impl/power_table_hamt.cpp index ce159a7150..b4f6c8485f 100644 --- a/core/power/impl/power_table_hamt.cpp +++ b/core/power/impl/power_table_hamt.cpp @@ -3,10 +3,10 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "power/impl/power_table_hamt.hpp" +#include "filecoin/power/impl/power_table_hamt.hpp" -#include "power/power_table_error.hpp" -#include "primitives/address/address_codec.hpp" +#include "filecoin/power/power_table_error.hpp" +#include "filecoin/primitives/address/address_codec.hpp" using fc::power::Power; using fc::power::PowerTableError; diff --git a/core/power/impl/power_table_impl.cpp b/core/power/impl/power_table_impl.cpp index f8e207e5f6..0c2113eb13 100644 --- a/core/power/impl/power_table_impl.cpp +++ b/core/power/impl/power_table_impl.cpp @@ -3,10 +3,10 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "power/impl/power_table_impl.hpp" +#include "filecoin/power/impl/power_table_impl.hpp" -#include "power/power_table_error.hpp" -#include "primitives/address/address_codec.hpp" +#include "filecoin/power/power_table_error.hpp" +#include "filecoin/primitives/address/address_codec.hpp" namespace fc::power { diff --git a/core/primitives/address/CMakeLists.txt b/core/primitives/address/CMakeLists.txt index 66f9bab08e..964c7f269b 100644 --- a/core/primitives/address/CMakeLists.txt +++ b/core/primitives/address/CMakeLists.txt @@ -4,7 +4,7 @@ filecoin_add_library(filecoin_address address.cpp address_codec.cpp - ../piece/piece.hpp ../piece/piece.hpp) + ) target_link_libraries(filecoin_address Boost::boost filecoin_blake2 diff --git a/core/primitives/address/address.cpp b/core/primitives/address/address.cpp index 130e5b5b2d..832b0ebb3b 100644 --- a/core/primitives/address/address.cpp +++ b/core/primitives/address/address.cpp @@ -3,10 +3,10 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "primitives/address/address.hpp" +#include "filecoin/primitives/address/address.hpp" -#include "common/visitor.hpp" -#include "crypto/blake2/blake2b160.hpp" +#include "filecoin/common/visitor.hpp" +#include "filecoin/crypto/blake2/blake2b160.hpp" OUTCOME_CPP_DEFINE_CATEGORY(fc::primitives::address, AddressError, e) { using fc::primitives::address::AddressError; diff --git a/core/primitives/address/address_codec.cpp b/core/primitives/address/address_codec.cpp index 180afea3a6..0cb7f53739 100644 --- a/core/primitives/address/address_codec.cpp +++ b/core/primitives/address/address_codec.cpp @@ -3,16 +3,16 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "address_codec.hpp" +#include "filecoin/primitives/address/address_codec.hpp" #include #include #include -#include "common/visitor.hpp" -#include "crypto/blake2/blake2b.h" -#include "crypto/blake2/blake2b160.hpp" -#include "crypto/bls/bls_types.hpp" +#include "filecoin/common/visitor.hpp" +#include "filecoin/crypto/blake2/blake2b.h" +#include "filecoin/crypto/blake2/blake2b160.hpp" +#include "filecoin/crypto/bls/bls_types.hpp" namespace fc::primitives::address { diff --git a/core/primitives/chain/chain.cpp b/core/primitives/chain/chain.cpp index 82e915dd93..f9ce6ea46e 100644 --- a/core/primitives/chain/chain.cpp +++ b/core/primitives/chain/chain.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "primitives/chain/chain.hpp" +#include "filecoin/primitives/chain/chain.hpp" namespace primitives::chain { // TODO(yuraz): FIL-85 currently only interface available, diff --git a/core/primitives/chain_epoch/chain_epoch_codec.cpp b/core/primitives/chain_epoch/chain_epoch_codec.cpp index 809a31bb2b..a122a98168 100644 --- a/core/primitives/chain_epoch/chain_epoch_codec.cpp +++ b/core/primitives/chain_epoch/chain_epoch_codec.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "primitives/chain_epoch/chain_epoch_codec.hpp" +#include "filecoin/primitives/chain_epoch/chain_epoch_codec.hpp" #include diff --git a/core/primitives/cid/cid.cpp b/core/primitives/cid/cid.cpp index 4856727939..ed2d27d0b1 100644 --- a/core/primitives/cid/cid.cpp +++ b/core/primitives/cid/cid.cpp @@ -3,11 +3,11 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "primitives/cid/cid.hpp" +#include "filecoin/primitives/cid/cid.hpp" #include #include -#include "crypto/blake2/blake2b160.hpp" +#include "filecoin/crypto/blake2/blake2b160.hpp" namespace fc { CID::CID() diff --git a/core/primitives/cid/comm_cid.cpp b/core/primitives/cid/comm_cid.cpp index 9925f3fc91..8ee76ab6ba 100644 --- a/core/primitives/cid/comm_cid.cpp +++ b/core/primitives/cid/comm_cid.cpp @@ -3,9 +3,9 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "primitives/cid/comm_cid.hpp" +#include "filecoin/primitives/cid/comm_cid.hpp" #include -#include "primitives/cid/comm_cid_errors.hpp" +#include "filecoin/primitives/cid/comm_cid_errors.hpp" namespace fc::common { diff --git a/core/primitives/cid/comm_cid_errors.cpp b/core/primitives/cid/comm_cid_errors.cpp index 80b2bf6d64..46d920e26b 100644 --- a/core/primitives/cid/comm_cid_errors.cpp +++ b/core/primitives/cid/comm_cid_errors.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "primitives/cid/comm_cid_errors.hpp" +#include "filecoin/primitives/cid/comm_cid_errors.hpp" OUTCOME_CPP_DEFINE_CATEGORY(fc::common, CommCidError, e) { using fc::common::CommCidError; diff --git a/core/primitives/cid/json_codec.cpp b/core/primitives/cid/json_codec.cpp index c32133679f..b71ff7634c 100644 --- a/core/primitives/cid/json_codec.cpp +++ b/core/primitives/cid/json_codec.cpp @@ -3,13 +3,13 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "primitives/cid/json_codec.hpp" +#include "filecoin/primitives/cid/json_codec.hpp" #include #include #include -#include "codec/cbor/cbor.hpp" +#include "filecoin/codec/cbor/cbor.hpp" namespace fc::codec::json { using boost::property_tree::ptree; diff --git a/core/primitives/piece/piece.cpp b/core/primitives/piece/piece.cpp index 7d0f9b81b1..b5856ae627 100644 --- a/core/primitives/piece/piece.cpp +++ b/core/primitives/piece/piece.cpp @@ -3,10 +3,10 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "primitives/piece/piece.hpp" +#include "filecoin/primitives/piece/piece.hpp" #include -#include "piece_error.hpp" +#include "filecoin/primitives/piece/piece_error.hpp" namespace fc::primitives::piece { diff --git a/core/primitives/piece/piece_error.cpp b/core/primitives/piece/piece_error.cpp index 957c2241fa..6075fe1255 100644 --- a/core/primitives/piece/piece_error.cpp +++ b/core/primitives/piece/piece_error.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "primitives/piece/piece_error.hpp" +#include "filecoin/primitives/piece/piece_error.hpp" OUTCOME_CPP_DEFINE_CATEGORY(fc::primitives::piece, PieceError, e) { using fc::primitives::piece::PieceError; diff --git a/core/primitives/ticket/epost_ticket.cpp b/core/primitives/ticket/epost_ticket.cpp index 537830d40f..2aeeb3d494 100644 --- a/core/primitives/ticket/epost_ticket.cpp +++ b/core/primitives/ticket/epost_ticket.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "primitives/ticket/epost_ticket.hpp" +#include "filecoin/primitives/ticket/epost_ticket.hpp" namespace fc::primitives::ticket { bool operator==(const EPostTicket &lhs, const EPostTicket &rhs) { diff --git a/core/primitives/ticket/epost_ticket_codec.cpp b/core/primitives/ticket/epost_ticket_codec.cpp index c2a6bc3851..24bc1ebc83 100644 --- a/core/primitives/ticket/epost_ticket_codec.cpp +++ b/core/primitives/ticket/epost_ticket_codec.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "primitives/ticket/epost_ticket_codec.hpp" +#include "filecoin/primitives/ticket/epost_ticket_codec.hpp" OUTCOME_CPP_DEFINE_CATEGORY(fc::primitives::ticket, EPoSTTicketCodecError, e) { diff --git a/core/primitives/ticket/ticket.cpp b/core/primitives/ticket/ticket.cpp index 1e0252c382..40384e0db8 100644 --- a/core/primitives/ticket/ticket.cpp +++ b/core/primitives/ticket/ticket.cpp @@ -3,9 +3,9 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "primitives/ticket/ticket.hpp" +#include "filecoin/primitives/ticket/ticket.hpp" -#include "common/le_encoder.hpp" +#include "filecoin/common/le_encoder.hpp" namespace fc::primitives::ticket { using crypto::randomness::Randomness; diff --git a/core/primitives/ticket/ticket_codec.cpp b/core/primitives/ticket/ticket_codec.cpp index f954355cd9..50349fbea3 100644 --- a/core/primitives/ticket/ticket_codec.cpp +++ b/core/primitives/ticket/ticket_codec.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "primitives/ticket/ticket_codec.hpp" +#include "filecoin/primitives/ticket/ticket_codec.hpp" OUTCOME_CPP_DEFINE_CATEGORY(fc::primitives::ticket, TicketCodecError, e) { using fc::primitives::ticket::TicketCodecError; diff --git a/core/primitives/tipset/tipset.cpp b/core/primitives/tipset/tipset.cpp index b1a6b0a586..49e0c10f63 100644 --- a/core/primitives/tipset/tipset.cpp +++ b/core/primitives/tipset/tipset.cpp @@ -3,11 +3,11 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "primitives/tipset/tipset.hpp" +#include "filecoin/primitives/tipset/tipset.hpp" -#include "common/logger.hpp" -#include "primitives/address/address_codec.hpp" -#include "primitives/cid/cid_of_cbor.hpp" +#include "filecoin/common/logger.hpp" +#include "filecoin/primitives/address/address_codec.hpp" +#include "filecoin/primitives/cid/cid_of_cbor.hpp" OUTCOME_CPP_DEFINE_CATEGORY(fc::primitives::tipset, TipsetError, e) { using fc::primitives::tipset::TipsetError; diff --git a/core/primitives/tipset/tipset_key.cpp b/core/primitives/tipset/tipset_key.cpp index 2c6a544f18..eb23db70ab 100644 --- a/core/primitives/tipset/tipset_key.cpp +++ b/core/primitives/tipset/tipset_key.cpp @@ -3,10 +3,10 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "primitives/tipset/tipset_key.hpp" +#include "filecoin/primitives/tipset/tipset_key.hpp" #include -#include "common/outcome.hpp" +#include "filecoin/common/outcome.hpp" namespace fc::primitives::tipset { diff --git a/core/proofs/proof_param_provider.cpp b/core/proofs/proof_param_provider.cpp index 46a98ca43c..e329b98d11 100644 --- a/core/proofs/proof_param_provider.cpp +++ b/core/proofs/proof_param_provider.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "proofs/proof_param_provider.hpp" +#include "filecoin/proofs/proof_param_provider.hpp" #include #include @@ -18,9 +18,9 @@ #include "boost/filesystem.hpp" #include "boost/lexical_cast.hpp" #include "boost/property_tree/json_parser.hpp" -#include "common/outcome.hpp" -#include "crypto/blake2/blake2b160.hpp" -#include "proofs/proof_param_provider_error.hpp" +#include "filecoin/common/outcome.hpp" +#include "filecoin/crypto/blake2/blake2b160.hpp" +#include "filecoin/proofs/proof_param_provider_error.hpp" namespace fc::proofs { diff --git a/core/proofs/proof_param_provider_error.cpp b/core/proofs/proof_param_provider_error.cpp index c810a4bbf9..3dedb1f3d8 100644 --- a/core/proofs/proof_param_provider_error.cpp +++ b/core/proofs/proof_param_provider_error.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "proofs/proof_param_provider_error.hpp" +#include "filecoin/proofs/proof_param_provider_error.hpp" OUTCOME_CPP_DEFINE_CATEGORY(fc::proofs, ProofParamProviderError, e) { using fc::proofs::ProofParamProviderError; diff --git a/core/proofs/proofs.cpp b/core/proofs/proofs.cpp index 1320d0d951..69038d58f8 100644 --- a/core/proofs/proofs.cpp +++ b/core/proofs/proofs.cpp @@ -3,13 +3,13 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "proofs/proofs.hpp" +#include "filecoin/proofs/proofs.hpp" #include #include #include "boost/filesystem/fstream.hpp" -#include "primitives/cid/comm_cid.hpp" -#include "proofs/proofs_error.hpp" +#include "filecoin/primitives/cid/comm_cid.hpp" +#include "filecoin/proofs/proofs_error.hpp" namespace fc::proofs { diff --git a/core/proofs/proofs_error.cpp b/core/proofs/proofs_error.cpp index 31740ee9d4..4283ad733a 100644 --- a/core/proofs/proofs_error.cpp +++ b/core/proofs/proofs_error.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "proofs/proofs_error.hpp" +#include "filecoin/proofs/proofs_error.hpp" OUTCOME_CPP_DEFINE_CATEGORY(fc::proofs, ProofsError, e) { using fc::proofs::ProofsError; diff --git a/core/storage/amt/amt.cpp b/core/storage/amt/amt.cpp index 96aa22fd61..c66459decf 100644 --- a/core/storage/amt/amt.cpp +++ b/core/storage/amt/amt.cpp @@ -3,9 +3,9 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "storage/amt/amt.hpp" +#include "filecoin/storage/amt/amt.hpp" -#include "common/which.hpp" +#include "filecoin/common/which.hpp" OUTCOME_CPP_DEFINE_CATEGORY(fc::storage::amt, AmtError, e) { using fc::storage::amt::AmtError; diff --git a/core/storage/chain/datastore_key.cpp b/core/storage/chain/datastore_key.cpp index 07051a2d4d..8f584ca998 100644 --- a/core/storage/chain/datastore_key.cpp +++ b/core/storage/chain/datastore_key.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "storage/chain/datastore_key.hpp" +#include "filecoin/storage/chain/datastore_key.hpp" #include #include diff --git a/core/storage/chain/impl/chain_data_store_impl.cpp b/core/storage/chain/impl/chain_data_store_impl.cpp index 56688f4a64..aad35500bd 100644 --- a/core/storage/chain/impl/chain_data_store_impl.cpp +++ b/core/storage/chain/impl/chain_data_store_impl.cpp @@ -3,9 +3,9 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "storage/chain/impl/chain_data_store_impl.hpp" +#include "filecoin/storage/chain/impl/chain_data_store_impl.hpp" -#include "primitives/cid/cid_of_cbor.hpp" +#include "filecoin/primitives/cid/cid_of_cbor.hpp" namespace fc::storage::blockchain { using primitives::cid::getCidOfCbor; diff --git a/core/storage/chain/impl/chain_store_impl.cpp b/core/storage/chain/impl/chain_store_impl.cpp index 86ae15fb6c..6eb2a6e362 100644 --- a/core/storage/chain/impl/chain_store_impl.cpp +++ b/core/storage/chain/impl/chain_store_impl.cpp @@ -3,15 +3,15 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "storage/chain/impl/chain_store_impl.hpp" - -#include "common/outcome.hpp" -#include "crypto/randomness/impl/chain_randomness_provider_impl.hpp" -#include "primitives/address/address_codec.hpp" -#include "primitives/cid/cid_of_cbor.hpp" -#include "primitives/cid/json_codec.hpp" -#include "primitives/tipset/tipset_key.hpp" -#include "storage/chain/datastore_key.hpp" +#include "filecoin/storage/chain/impl/chain_store_impl.hpp" + +#include "filecoin/common/outcome.hpp" +#include "filecoin/crypto/randomness/impl/chain_randomness_provider_impl.hpp" +#include "filecoin/primitives/address/address_codec.hpp" +#include "filecoin/primitives/cid/cid_of_cbor.hpp" +#include "filecoin/primitives/cid/json_codec.hpp" +#include "filecoin/primitives/tipset/tipset_key.hpp" +#include "filecoin/storage/chain/datastore_key.hpp" namespace fc::storage::blockchain { using crypto::randomness::ChainRandomnessProviderImpl; diff --git a/core/storage/config/config.cpp b/core/storage/config/config.cpp index c9b6889b7e..9ec62b5ea4 100644 --- a/core/storage/config/config.cpp +++ b/core/storage/config/config.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "storage/config/config.hpp" +#include "filecoin/storage/config/config.hpp" #include #include diff --git a/core/storage/config/config_error.cpp b/core/storage/config/config_error.cpp index 6ab5833e2e..f4d990c4c9 100644 --- a/core/storage/config/config_error.cpp +++ b/core/storage/config/config_error.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "storage/config/config_error.hpp" +#include "filecoin/storage/config/config_error.hpp" OUTCOME_CPP_DEFINE_CATEGORY(fc::storage::config, ConfigError, e) { using fc::storage::config::ConfigError; diff --git a/core/storage/filestore/filestore_error.cpp b/core/storage/filestore/filestore_error.cpp index c1041f46a4..3bc46139c3 100644 --- a/core/storage/filestore/filestore_error.cpp +++ b/core/storage/filestore/filestore_error.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "storage/filestore/filestore_error.hpp" +#include "filecoin/storage/filestore/filestore_error.hpp" OUTCOME_CPP_DEFINE_CATEGORY(fc::storage::filestore, FileStoreError, e) { using fc::storage::filestore::FileStoreError; diff --git a/core/storage/filestore/impl/filesystem/filesystem_file.cpp b/core/storage/filestore/impl/filesystem/filesystem_file.cpp index 4e06352db1..43193bb18c 100644 --- a/core/storage/filestore/impl/filesystem/filesystem_file.cpp +++ b/core/storage/filestore/impl/filesystem/filesystem_file.cpp @@ -3,10 +3,10 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "storage/filestore/impl/filesystem/filesystem_file.hpp" +#include "filecoin/storage/filestore/impl/filesystem/filesystem_file.hpp" #include "boost/filesystem.hpp" -#include "storage/filestore/filestore_error.hpp" +#include "filecoin/storage/filestore/filestore_error.hpp" using fc::storage::filestore::FileStoreError; using fc::storage::filestore::FileSystemFile; diff --git a/core/storage/filestore/impl/filesystem/filesystem_filestore.cpp b/core/storage/filestore/impl/filesystem/filesystem_filestore.cpp index ccc52c98f5..563e43c796 100644 --- a/core/storage/filestore/impl/filesystem/filesystem_filestore.cpp +++ b/core/storage/filestore/impl/filesystem/filesystem_filestore.cpp @@ -3,10 +3,10 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "storage/filestore/impl/filesystem/filesystem_filestore.hpp" +#include "filecoin/storage/filestore/impl/filesystem/filesystem_filestore.hpp" #include "boost/filesystem.hpp" -#include "storage/filestore/filestore_error.hpp" -#include "storage/filestore/impl/filesystem/filesystem_file.hpp" +#include "filecoin/storage/filestore/filestore_error.hpp" +#include "filecoin/storage/filestore/impl/filesystem/filesystem_file.hpp" using fc::storage::filestore::File; using fc::storage::filestore::FileStoreError; diff --git a/core/storage/hamt/hamt.cpp b/core/storage/hamt/hamt.cpp index cb1214a908..adedee96d3 100644 --- a/core/storage/hamt/hamt.cpp +++ b/core/storage/hamt/hamt.cpp @@ -3,10 +3,10 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "storage/hamt/hamt.hpp" +#include "filecoin/storage/hamt/hamt.hpp" -#include "common/which.hpp" -#include "crypto/murmur/murmur.hpp" +#include "filecoin/common/which.hpp" +#include "filecoin/crypto/murmur/murmur.hpp" OUTCOME_CPP_DEFINE_CATEGORY(fc::storage::hamt, HamtError, e) { using fc::storage::hamt::HamtError; diff --git a/core/storage/in_memory/in_memory_storage.cpp b/core/storage/in_memory/in_memory_storage.cpp index ddc92ec54f..9b7dcfedec 100644 --- a/core/storage/in_memory/in_memory_storage.cpp +++ b/core/storage/in_memory/in_memory_storage.cpp @@ -3,9 +3,9 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "storage/in_memory/in_memory_storage.hpp" +#include "filecoin/storage/in_memory/in_memory_storage.hpp" -#include "storage/in_memory/in_memory_batch.hpp" +#include "filecoin/storage/in_memory/in_memory_batch.hpp" using fc::common::Buffer; diff --git a/core/storage/ipfs/impl/datastore_leveldb.cpp b/core/storage/ipfs/impl/datastore_leveldb.cpp index 3c220d1142..ea68be9607 100644 --- a/core/storage/ipfs/impl/datastore_leveldb.cpp +++ b/core/storage/ipfs/impl/datastore_leveldb.cpp @@ -3,10 +3,10 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "storage/ipfs/impl/datastore_leveldb.hpp" +#include "filecoin/storage/ipfs/impl/datastore_leveldb.hpp" #include -#include +#include "filecoin/storage/leveldb/leveldb_error.hpp" namespace fc::storage::ipfs { namespace { diff --git a/core/storage/ipfs/impl/in_memory_datastore.cpp b/core/storage/ipfs/impl/in_memory_datastore.cpp index ee60f67e36..72f24b4c02 100644 --- a/core/storage/ipfs/impl/in_memory_datastore.cpp +++ b/core/storage/ipfs/impl/in_memory_datastore.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "storage/ipfs/impl/in_memory_datastore.hpp" +#include "filecoin/storage/ipfs/impl/in_memory_datastore.hpp" using fc::storage::ipfs::InMemoryDatastore; using Value = fc::storage::ipfs::IpfsDatastore::Value; diff --git a/core/storage/ipfs/impl/ipfs_block_service.cpp b/core/storage/ipfs/impl/ipfs_block_service.cpp index 97452bcfba..17165f71d3 100644 --- a/core/storage/ipfs/impl/ipfs_block_service.cpp +++ b/core/storage/ipfs/impl/ipfs_block_service.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "storage/ipfs/impl/ipfs_block_service.hpp" +#include "filecoin/storage/ipfs/impl/ipfs_block_service.hpp" namespace fc::storage::ipfs { IpfsBlockService::IpfsBlockService(std::shared_ptr data_store) diff --git a/core/storage/ipfs/impl/ipfs_datastore_error.cpp b/core/storage/ipfs/impl/ipfs_datastore_error.cpp index eb6854080c..6fcffa1c12 100644 --- a/core/storage/ipfs/impl/ipfs_datastore_error.cpp +++ b/core/storage/ipfs/impl/ipfs_datastore_error.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "storage/ipfs/ipfs_datastore_error.hpp" +#include "filecoin/storage/ipfs/ipfs_datastore_error.hpp" OUTCOME_CPP_DEFINE_CATEGORY(fc::storage::ipfs, IpfsDatastoreError, e) { using fc::storage::ipfs::IpfsDatastoreError; diff --git a/core/storage/ipfs/merkledag/impl/leaf_impl.cpp b/core/storage/ipfs/merkledag/impl/leaf_impl.cpp index 93d41e1c29..070da5ed12 100644 --- a/core/storage/ipfs/merkledag/impl/leaf_impl.cpp +++ b/core/storage/ipfs/merkledag/impl/leaf_impl.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "storage/ipfs/merkledag/impl/leaf_impl.hpp" +#include "filecoin/storage/ipfs/merkledag/impl/leaf_impl.hpp" namespace fc::storage::ipfs::merkledag { LeafImpl::LeafImpl(common::Buffer data) diff --git a/core/storage/ipfs/merkledag/impl/merkledag_service_impl.cpp b/core/storage/ipfs/merkledag/impl/merkledag_service_impl.cpp index f341ee766c..1503fc4577 100644 --- a/core/storage/ipfs/merkledag/impl/merkledag_service_impl.cpp +++ b/core/storage/ipfs/merkledag/impl/merkledag_service_impl.cpp @@ -3,11 +3,11 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "storage/ipfs/merkledag/impl/merkledag_service_impl.hpp" +#include "filecoin/storage/ipfs/merkledag/impl/merkledag_service_impl.hpp" #include #include -#include "storage/ipld/impl/ipld_node_impl.hpp" +#include "filecoin/storage/ipld/impl/ipld_node_impl.hpp" using libp2p::multi::ContentIdentifierCodec; diff --git a/core/storage/ipld/impl/ipld_link_impl.cpp b/core/storage/ipld/impl/ipld_link_impl.cpp index 6cacf10309..46b81826f7 100644 --- a/core/storage/ipld/impl/ipld_link_impl.cpp +++ b/core/storage/ipld/impl/ipld_link_impl.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "storage/ipld/impl/ipld_link_impl.hpp" +#include "filecoin/storage/ipld/impl/ipld_link_impl.hpp" namespace fc::storage::ipld { IPLDLinkImpl::IPLDLinkImpl(libp2p::multi::ContentIdentifier id, diff --git a/core/storage/ipld/impl/ipld_node_decoder_pb.cpp b/core/storage/ipld/impl/ipld_node_decoder_pb.cpp index b6c72445c4..c577913bc1 100644 --- a/core/storage/ipld/impl/ipld_node_decoder_pb.cpp +++ b/core/storage/ipld/impl/ipld_node_decoder_pb.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "storage/ipld/impl/ipld_node_decoder_pb.hpp" +#include "filecoin/storage/ipld/impl/ipld_node_decoder_pb.hpp" namespace fc::storage::ipld { outcome::result IPLDNodeDecoderPB::decode( diff --git a/core/storage/ipld/impl/ipld_node_encoder_pb.cpp b/core/storage/ipld/impl/ipld_node_encoder_pb.cpp index e2d8f52614..78dd5efb7e 100644 --- a/core/storage/ipld/impl/ipld_node_encoder_pb.cpp +++ b/core/storage/ipld/impl/ipld_node_encoder_pb.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "storage/ipld/impl/ipld_node_encoder_pb.hpp" +#include "filecoin/storage/ipld/impl/ipld_node_encoder_pb.hpp" #include #include diff --git a/core/storage/ipld/impl/ipld_node_impl.cpp b/core/storage/ipld/impl/ipld_node_impl.cpp index 23ed76ae0b..f7986cb4c5 100644 --- a/core/storage/ipld/impl/ipld_node_impl.cpp +++ b/core/storage/ipld/impl/ipld_node_impl.cpp @@ -3,14 +3,14 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "storage/ipld/impl/ipld_node_impl.hpp" +#include "filecoin/storage/ipld/impl/ipld_node_impl.hpp" #include #include #include #include #include "ipld_node.pb.h" -#include "storage/ipld/impl/ipld_node_decoder_pb.hpp" +#include "filecoin/storage/ipld/impl/ipld_node_decoder_pb.hpp" using libp2p::common::Hash256; using libp2p::multi::ContentIdentifierCodec; diff --git a/core/storage/keystore/impl/filesystem/filesystem_keystore.cpp b/core/storage/keystore/impl/filesystem/filesystem_keystore.cpp index 709e577956..48cce95937 100644 --- a/core/storage/keystore/impl/filesystem/filesystem_keystore.cpp +++ b/core/storage/keystore/impl/filesystem/filesystem_keystore.cpp @@ -3,11 +3,11 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "filesystem_keystore.hpp" +#include "filecoin/storage/keystore/impl/filesystem/filesystem_keystore.hpp" -#include "primitives/address/address_codec.hpp" -#include "storage/filestore/filestore_error.hpp" -#include "storage/filestore/impl/filesystem/filesystem_filestore.hpp" +#include "filecoin/primitives/address/address_codec.hpp" +#include "filecoin/storage/filestore/filestore_error.hpp" +#include "filecoin/storage/filestore/impl/filesystem/filesystem_filestore.hpp" using fc::primitives::address::Address; using fc::primitives::address::Protocol; diff --git a/core/storage/keystore/impl/in_memory/in_memory_keystore.cpp b/core/storage/keystore/impl/in_memory/in_memory_keystore.cpp index 8eb0878221..eb6c51187f 100644 --- a/core/storage/keystore/impl/in_memory/in_memory_keystore.cpp +++ b/core/storage/keystore/impl/in_memory/in_memory_keystore.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "storage/keystore/impl/in_memory/in_memory_keystore.hpp" +#include "filecoin/storage/keystore/impl/in_memory/in_memory_keystore.hpp" #include diff --git a/core/storage/keystore/keystore.cpp b/core/storage/keystore/keystore.cpp index d11dc65e1c..e4117fcbdf 100644 --- a/core/storage/keystore/keystore.cpp +++ b/core/storage/keystore/keystore.cpp @@ -3,9 +3,9 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "keystore.hpp" +#include "filecoin/storage/keystore/keystore.hpp" -#include "common/visitor.hpp" +#include "filecoin/common/visitor.hpp" using fc::crypto::signature::Signature; using fc::primitives::address::Protocol; diff --git a/core/storage/keystore/keystore_error.cpp b/core/storage/keystore/keystore_error.cpp index 055e068f41..3455cd11ba 100644 --- a/core/storage/keystore/keystore_error.cpp +++ b/core/storage/keystore/keystore_error.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "storage/keystore/keystore_error.hpp" +#include "filecoin/storage/keystore/keystore_error.hpp" OUTCOME_CPP_DEFINE_CATEGORY(fc::storage::keystore, KeyStoreError, e) { using fc::storage::keystore::KeyStoreError; diff --git a/core/storage/leveldb/leveldb.cpp b/core/storage/leveldb/leveldb.cpp index aed23cb532..18c7118931 100644 --- a/core/storage/leveldb/leveldb.cpp +++ b/core/storage/leveldb/leveldb.cpp @@ -3,13 +3,13 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "storage/leveldb/leveldb.hpp" +#include "filecoin/storage/leveldb/leveldb.hpp" #include -#include "storage/leveldb/leveldb_batch.hpp" -#include "storage/leveldb/leveldb_cursor.hpp" -#include "storage/leveldb/leveldb_util.hpp" +#include "filecoin/storage/leveldb/leveldb_batch.hpp" +#include "filecoin/storage/leveldb/leveldb_cursor.hpp" +#include "filecoin/storage/leveldb/leveldb_util.hpp" namespace fc::storage { diff --git a/core/storage/leveldb/leveldb_batch.cpp b/core/storage/leveldb/leveldb_batch.cpp index 4ba9d278e8..7c64f8d808 100644 --- a/core/storage/leveldb/leveldb_batch.cpp +++ b/core/storage/leveldb/leveldb_batch.cpp @@ -3,9 +3,9 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "storage/leveldb/leveldb_batch.hpp" +#include "filecoin/storage/leveldb/leveldb_batch.hpp" -#include "storage/leveldb/leveldb_util.hpp" +#include "filecoin/storage/leveldb/leveldb_util.hpp" namespace fc::storage { diff --git a/core/storage/leveldb/leveldb_cursor.cpp b/core/storage/leveldb/leveldb_cursor.cpp index bece147ee5..325ffa1b73 100644 --- a/core/storage/leveldb/leveldb_cursor.cpp +++ b/core/storage/leveldb/leveldb_cursor.cpp @@ -3,9 +3,9 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "storage/leveldb/leveldb_cursor.hpp" +#include "filecoin/storage/leveldb/leveldb_cursor.hpp" -#include "storage/leveldb/leveldb_util.hpp" +#include "filecoin/storage/leveldb/leveldb_util.hpp" namespace fc::storage { diff --git a/core/storage/leveldb/leveldb_error.cpp b/core/storage/leveldb/leveldb_error.cpp index 01e5033d91..f13acd7759 100644 --- a/core/storage/leveldb/leveldb_error.cpp +++ b/core/storage/leveldb/leveldb_error.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "storage/leveldb/leveldb_error.hpp" +#include "filecoin/storage/leveldb/leveldb_error.hpp" OUTCOME_CPP_DEFINE_CATEGORY(fc::storage, LevelDBError, e) { using E = fc::storage::LevelDBError; diff --git a/core/storage/repository/impl/filesystem_repository.cpp b/core/storage/repository/impl/filesystem_repository.cpp index 4d99f92e76..590bc00555 100644 --- a/core/storage/repository/impl/filesystem_repository.cpp +++ b/core/storage/repository/impl/filesystem_repository.cpp @@ -3,16 +3,16 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "storage/repository/impl/filesystem_repository.hpp" +#include "filecoin/storage/repository/impl/filesystem_repository.hpp" #include #include "boost/filesystem.hpp" -#include "crypto/bls/impl/bls_provider_impl.hpp" -#include "crypto/secp256k1/secp256k1_provider.hpp" -#include "storage/ipfs/impl/datastore_leveldb.hpp" -#include "storage/keystore/impl/filesystem/filesystem_keystore.hpp" -#include "storage/repository/repository_error.hpp" +#include "filecoin/crypto/bls/impl/bls_provider_impl.hpp" +#include "filecoin/crypto/secp256k1/secp256k1_provider.hpp" +#include "filecoin/storage/ipfs/impl/datastore_leveldb.hpp" +#include "filecoin/storage/keystore/impl/filesystem/filesystem_keystore.hpp" +#include "filecoin/storage/repository/repository_error.hpp" using fc::crypto::bls::BlsProviderImpl; using fc::storage::ipfs::LeveldbDatastore; diff --git a/core/storage/repository/impl/in_memory_repository.cpp b/core/storage/repository/impl/in_memory_repository.cpp index fca437d07c..80941a48b0 100644 --- a/core/storage/repository/impl/in_memory_repository.cpp +++ b/core/storage/repository/impl/in_memory_repository.cpp @@ -3,12 +3,12 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "storage/repository/impl/in_memory_repository.hpp" +#include "filecoin/storage/repository/impl/in_memory_repository.hpp" -#include "crypto/bls/impl/bls_provider_impl.hpp" -#include "crypto/secp256k1/secp256k1_provider.hpp" -#include "storage/ipfs/impl/in_memory_datastore.hpp" -#include "storage/keystore/impl/in_memory/in_memory_keystore.hpp" +#include "filecoin/crypto/bls/impl/bls_provider_impl.hpp" +#include "filecoin/crypto/secp256k1/secp256k1_provider.hpp" +#include "filecoin/storage/ipfs/impl/in_memory_datastore.hpp" +#include "filecoin/storage/keystore/impl/in_memory/in_memory_keystore.hpp" using fc::crypto::bls::BlsProviderImpl; using fc::storage::ipfs::InMemoryDatastore; diff --git a/core/storage/repository/impl/repository.cpp b/core/storage/repository/impl/repository.cpp index 1950c436c2..e7bf2e7b67 100644 --- a/core/storage/repository/impl/repository.cpp +++ b/core/storage/repository/impl/repository.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "storage/repository/repository.hpp" +#include "filecoin/storage/repository/repository.hpp" using fc::storage::config::Config; using fc::storage::ipfs::IpfsDatastore; diff --git a/core/storage/repository/impl/repository_error.cpp b/core/storage/repository/impl/repository_error.cpp index 0cc3167324..0c6d2106b7 100644 --- a/core/storage/repository/impl/repository_error.cpp +++ b/core/storage/repository/impl/repository_error.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "storage/repository/repository_error.hpp" +#include "filecoin/storage/repository/repository_error.hpp" OUTCOME_CPP_DEFINE_CATEGORY(fc::storage::repository, RepositoryError, e) { using fc::storage::repository::RepositoryError; diff --git a/core/vm/actor/actor.cpp b/core/vm/actor/actor.cpp index ba70cff26b..57075cd737 100644 --- a/core/vm/actor/actor.cpp +++ b/core/vm/actor/actor.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "vm/actor/actor.hpp" +#include "filecoin/vm/actor/actor.hpp" #include #include diff --git a/core/vm/actor/builtin/account/account_actor.cpp b/core/vm/actor/builtin/account/account_actor.cpp index 6ab120eaa4..ef509f9d42 100644 --- a/core/vm/actor/builtin/account/account_actor.cpp +++ b/core/vm/actor/builtin/account/account_actor.cpp @@ -3,9 +3,9 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "vm/actor/builtin/account/account_actor.hpp" +#include "filecoin/vm/actor/builtin/account/account_actor.hpp" -#include "vm/exit_code/exit_code.hpp" +#include "filecoin/vm/exit_code/exit_code.hpp" namespace fc::vm::actor::builtin::account { diff --git a/core/vm/actor/builtin/cron/cron_actor.cpp b/core/vm/actor/builtin/cron/cron_actor.cpp index 46b8cdae27..d59b922386 100644 --- a/core/vm/actor/builtin/cron/cron_actor.cpp +++ b/core/vm/actor/builtin/cron/cron_actor.cpp @@ -3,8 +3,8 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "vm/actor/builtin/cron/cron_actor.hpp" -#include "vm/actor/builtin/storage_power/storage_power_actor_export.hpp" +#include "filecoin/vm/actor/builtin/cron/cron_actor.hpp" +#include "filecoin/vm/actor/builtin/storage_power/storage_power_actor_export.hpp" namespace fc::vm::actor::builtin::cron { /** diff --git a/core/vm/actor/builtin/init/init_actor.cpp b/core/vm/actor/builtin/init/init_actor.cpp index 6a57e871da..5a9f775841 100644 --- a/core/vm/actor/builtin/init/init_actor.cpp +++ b/core/vm/actor/builtin/init/init_actor.cpp @@ -3,11 +3,11 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "vm/actor/builtin/init/init_actor.hpp" +#include "filecoin/vm/actor/builtin/init/init_actor.hpp" -#include "primitives/address/address_codec.hpp" -#include "storage/hamt/hamt.hpp" -#include "vm/runtime/gas_cost.hpp" +#include "filecoin/primitives/address/address_codec.hpp" +#include "filecoin/storage/hamt/hamt.hpp" +#include "filecoin/vm/runtime/gas_cost.hpp" namespace fc::vm::actor::builtin::init { diff --git a/core/vm/actor/builtin/miner/miner_actor.cpp b/core/vm/actor/builtin/miner/miner_actor.cpp index 78bac401d5..f5033142d8 100644 --- a/core/vm/actor/builtin/miner/miner_actor.cpp +++ b/core/vm/actor/builtin/miner/miner_actor.cpp @@ -3,16 +3,16 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "vm/actor/builtin/miner/miner_actor.hpp" - -#include "primitives/chain_epoch/chain_epoch_codec.hpp" -#include "storage/amt/amt.hpp" -#include "storage/hamt/hamt.hpp" -#include "vm/actor/builtin/account/account_actor.hpp" -#include "vm/actor/builtin/market/actor.hpp" -#include "vm/actor/builtin/miner/policy.hpp" -#include "vm/actor/builtin/storage_power/storage_power_actor_export.hpp" -#include "vm/exit_code/exit_code.hpp" +#include "filecoin/vm/actor/builtin/miner/miner_actor.hpp" + +#include "filecoin/primitives/chain_epoch/chain_epoch_codec.hpp" +#include "filecoin/storage/amt/amt.hpp" +#include "filecoin/storage/hamt/hamt.hpp" +#include "filecoin/vm/actor/builtin/account/account_actor.hpp" +#include "filecoin/vm/actor/builtin/market/actor.hpp" +#include "filecoin/vm/actor/builtin/miner/policy.hpp" +#include "filecoin/vm/actor/builtin/storage_power/storage_power_actor_export.hpp" +#include "filecoin/vm/exit_code/exit_code.hpp" namespace fc::vm::actor::builtin::miner { using primitives::kChainEpochUndefined; diff --git a/core/vm/actor/builtin/multisig/multisig_actor.cpp b/core/vm/actor/builtin/multisig/multisig_actor.cpp index fe3bc0daa9..45a71912f9 100644 --- a/core/vm/actor/builtin/multisig/multisig_actor.cpp +++ b/core/vm/actor/builtin/multisig/multisig_actor.cpp @@ -3,11 +3,11 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "vm/actor/builtin/multisig/multisig_actor.hpp" +#include "filecoin/vm/actor/builtin/multisig/multisig_actor.hpp" -#include "common/buffer.hpp" -#include "common/outcome.hpp" -#include "vm/actor/actor_method.hpp" +#include "filecoin/common/buffer.hpp" +#include "filecoin/common/outcome.hpp" +#include "filecoin/vm/actor/actor_method.hpp" namespace fc::vm::actor::builtin::multisig { diff --git a/core/vm/actor/builtin/payment_channel/payment_channel_actor.cpp b/core/vm/actor/builtin/payment_channel/payment_channel_actor.cpp index 01667b9d65..f1fd80a5ff 100644 --- a/core/vm/actor/builtin/payment_channel/payment_channel_actor.cpp +++ b/core/vm/actor/builtin/payment_channel/payment_channel_actor.cpp @@ -3,10 +3,10 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "vm/actor/builtin/payment_channel/payment_channel_actor.hpp" +#include "filecoin/vm/actor/builtin/payment_channel/payment_channel_actor.hpp" -#include "vm/actor/actor_method.hpp" -#include "vm/exit_code/exit_code.hpp" +#include "filecoin/vm/actor/actor_method.hpp" +#include "filecoin/vm/exit_code/exit_code.hpp" using fc::outcome::result; using fc::primitives::address::Protocol; diff --git a/core/vm/actor/builtin/reward/reward_actor.cpp b/core/vm/actor/builtin/reward/reward_actor.cpp index 781c20e202..3597644418 100644 --- a/core/vm/actor/builtin/reward/reward_actor.cpp +++ b/core/vm/actor/builtin/reward/reward_actor.cpp @@ -3,11 +3,11 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "vm/actor/builtin/reward/reward_actor.hpp" +#include "filecoin/vm/actor/builtin/reward/reward_actor.hpp" -#include "adt/multimap.hpp" -#include "primitives/address/address_codec.hpp" -#include "vm/exit_code/exit_code.hpp" +#include "filecoin/adt/multimap.hpp" +#include "filecoin/primitives/address/address_codec.hpp" +#include "filecoin/vm/exit_code/exit_code.hpp" using fc::adt::Multimap; diff --git a/core/vm/actor/builtin/shared/shared.cpp b/core/vm/actor/builtin/shared/shared.cpp index b9f2156901..7a26fad035 100644 --- a/core/vm/actor/builtin/shared/shared.cpp +++ b/core/vm/actor/builtin/shared/shared.cpp @@ -3,9 +3,9 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "vm/actor/builtin/shared/shared.hpp" -#include "adt/balance_table_hamt.hpp" -#include "codec/cbor/cbor.hpp" +#include "filecoin/vm/actor/builtin/shared/shared.hpp" +#include "filecoin/adt/balance_table_hamt.hpp" +#include "filecoin/codec/cbor/cbor.hpp" namespace fc::vm::actor::builtin { diff --git a/core/vm/actor/builtin/storage_power/policy.cpp b/core/vm/actor/builtin/storage_power/policy.cpp index 47e4770588..5f5c92a93f 100644 --- a/core/vm/actor/builtin/storage_power/policy.cpp +++ b/core/vm/actor/builtin/storage_power/policy.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "vm/actor/builtin/storage_power/policy.hpp" +#include "filecoin/vm/actor/builtin/storage_power/policy.hpp" #include diff --git a/core/vm/actor/builtin/storage_power/storage_power_actor_export.cpp b/core/vm/actor/builtin/storage_power/storage_power_actor_export.cpp index 18dad3514b..e8fa76acc0 100644 --- a/core/vm/actor/builtin/storage_power/storage_power_actor_export.cpp +++ b/core/vm/actor/builtin/storage_power/storage_power_actor_export.cpp @@ -3,12 +3,12 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "vm/actor/builtin/storage_power/storage_power_actor_export.hpp" +#include "filecoin/vm/actor/builtin/storage_power/storage_power_actor_export.hpp" -#include "vm/actor/builtin/init/init_actor.hpp" -#include "vm/actor/builtin/miner/miner_actor.hpp" -#include "vm/actor/builtin/shared/shared.hpp" -#include "vm/actor/builtin/storage_power/storage_power_actor_state.hpp" +#include "filecoin/vm/actor/builtin/init/init_actor.hpp" +#include "filecoin/vm/actor/builtin/miner/miner_actor.hpp" +#include "filecoin/vm/actor/builtin/shared/shared.hpp" +#include "filecoin/vm/actor/builtin/storage_power/storage_power_actor_state.hpp" namespace fc::vm::actor::builtin::storage_power { diff --git a/core/vm/actor/builtin/storage_power/storage_power_actor_state.cpp b/core/vm/actor/builtin/storage_power/storage_power_actor_state.cpp index c026eec325..f32834b50e 100644 --- a/core/vm/actor/builtin/storage_power/storage_power_actor_state.cpp +++ b/core/vm/actor/builtin/storage_power/storage_power_actor_state.cpp @@ -3,12 +3,12 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "vm/actor/builtin/storage_power/storage_power_actor_state.hpp" +#include "filecoin/vm/actor/builtin/storage_power/storage_power_actor_state.hpp" -#include "power/impl/power_table_hamt.hpp" -#include "primitives/address/address_codec.hpp" -#include "primitives/chain_epoch/chain_epoch_codec.hpp" -#include "vm/exit_code/exit_code.hpp" +#include "filecoin/power/impl/power_table_hamt.hpp" +#include "filecoin/primitives/address/address_codec.hpp" +#include "filecoin/primitives/chain_epoch/chain_epoch_codec.hpp" +#include "filecoin/vm/exit_code/exit_code.hpp" namespace fc::vm::actor::builtin::storage_power { diff --git a/core/vm/actor/impl/invoker_impl.cpp b/core/vm/actor/impl/invoker_impl.cpp index 7ad29eb513..5c4ce5f1fc 100644 --- a/core/vm/actor/impl/invoker_impl.cpp +++ b/core/vm/actor/impl/invoker_impl.cpp @@ -3,14 +3,14 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "vm/actor/impl/invoker_impl.hpp" +#include "filecoin/vm/actor/impl/invoker_impl.hpp" -#include "vm/actor/builtin/account/account_actor.hpp" -#include "vm/actor/builtin/cron/cron_actor.hpp" -#include "vm/actor/builtin/init/init_actor.hpp" -#include "vm/actor/builtin/miner/miner_actor.hpp" -#include "vm/actor/builtin/multisig/multisig_actor.hpp" -#include "vm/actor/builtin/storage_power/storage_power_actor_export.hpp" +#include "filecoin/vm/actor/builtin/account/account_actor.hpp" +#include "filecoin/vm/actor/builtin/cron/cron_actor.hpp" +#include "filecoin/vm/actor/builtin/init/init_actor.hpp" +#include "filecoin/vm/actor/builtin/miner/miner_actor.hpp" +#include "filecoin/vm/actor/builtin/multisig/multisig_actor.hpp" +#include "filecoin/vm/actor/builtin/storage_power/storage_power_actor_export.hpp" namespace fc::vm::actor { diff --git a/core/vm/exit_code/impl/exit_code.cpp b/core/vm/exit_code/impl/exit_code.cpp index f0cf99dc02..c6d01ef25f 100644 --- a/core/vm/exit_code/impl/exit_code.cpp +++ b/core/vm/exit_code/impl/exit_code.cpp @@ -3,13 +3,13 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "vm/exit_code/exit_code.hpp" +#include "filecoin/vm/exit_code/exit_code.hpp" #include #include -#include "common/enum.hpp" +#include "filecoin/common/enum.hpp" OUTCOME_CPP_DEFINE_CATEGORY(fc::vm, VMExitCode, e) { return "vm exit code"; diff --git a/core/vm/interpreter/impl/interpreter_impl.cpp b/core/vm/interpreter/impl/interpreter_impl.cpp index 248a4bd7f0..491f7217f9 100644 --- a/core/vm/interpreter/impl/interpreter_impl.cpp +++ b/core/vm/interpreter/impl/interpreter_impl.cpp @@ -3,15 +3,15 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "vm/interpreter/impl/interpreter_impl.hpp" - -#include "crypto/randomness/randomness_provider.hpp" -#include "storage/amt/amt.hpp" -#include "vm/actor/builtin/cron/cron_actor.hpp" -#include "vm/actor/builtin/miner/miner_actor.hpp" -#include "vm/actor/impl/invoker_impl.hpp" -#include "vm/runtime/gas_cost.hpp" -#include "vm/runtime/impl/runtime_impl.hpp" +#include "filecoin/vm/interpreter/impl/interpreter_impl.hpp" + +#include "filecoin/crypto/randomness/randomness_provider.hpp" +#include "filecoin/storage/amt/amt.hpp" +#include "filecoin/vm/actor/builtin/cron/cron_actor.hpp" +#include "filecoin/vm/actor/builtin/miner/miner_actor.hpp" +#include "filecoin/vm/actor/impl/invoker_impl.hpp" +#include "filecoin/vm/runtime/gas_cost.hpp" +#include "filecoin/vm/runtime/impl/runtime_impl.hpp" OUTCOME_CPP_DEFINE_CATEGORY(fc::vm::interpreter, InterpreterError, e) { using E = fc::vm::interpreter::InterpreterError; diff --git a/core/vm/message/impl/message_signer_impl.cpp b/core/vm/message/impl/message_signer_impl.cpp index c6c236788c..51cb70b9f3 100644 --- a/core/vm/message/impl/message_signer_impl.cpp +++ b/core/vm/message/impl/message_signer_impl.cpp @@ -3,8 +3,8 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "vm/message/impl/message_signer_impl.hpp" -#include "vm/message/message_util.hpp" +#include "filecoin/vm/message/impl/message_signer_impl.hpp" +#include "filecoin/vm/message/message_util.hpp" namespace fc::vm::message { diff --git a/core/vm/message/message.cpp b/core/vm/message/message.cpp index 67313aed5a..bb200f7fde 100644 --- a/core/vm/message/message.cpp +++ b/core/vm/message/message.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "vm/message/message.hpp" +#include "filecoin/vm/message/message.hpp" OUTCOME_CPP_DEFINE_CATEGORY(fc::vm::message, MessageError, e) { using fc::vm::message::MessageError; diff --git a/core/vm/message/message_util.cpp b/core/vm/message/message_util.cpp index 2be63b693b..3e6b9ceabc 100644 --- a/core/vm/message/message_util.cpp +++ b/core/vm/message/message_util.cpp @@ -2,10 +2,10 @@ * Copyright Soramitsu Co., Ltd. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ -#include "vm/message/message_util.hpp" +#include "filecoin/vm/message/message_util.hpp" -#include "codec/cbor/cbor.hpp" -#include "crypto/signature/signature.hpp" +#include "filecoin/codec/cbor/cbor.hpp" +#include "filecoin/crypto/signature/signature.hpp" namespace fc::vm::message { diff --git a/core/vm/runtime/impl/actor_state_handle_impl.cpp b/core/vm/runtime/impl/actor_state_handle_impl.cpp index 0529a361ff..a05c104383 100644 --- a/core/vm/runtime/impl/actor_state_handle_impl.cpp +++ b/core/vm/runtime/impl/actor_state_handle_impl.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "vm/runtime/impl/actor_state_handle_impl.hpp" +#include "filecoin/vm/runtime/impl/actor_state_handle_impl.hpp" using fc::vm::actor::ActorSubstateCID; using fc::vm::runtime::ActorStateHandleImpl; diff --git a/core/vm/runtime/impl/env.cpp b/core/vm/runtime/impl/env.cpp index 2fe977a57a..78a0bd641c 100644 --- a/core/vm/runtime/impl/env.cpp +++ b/core/vm/runtime/impl/env.cpp @@ -3,13 +3,13 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "vm/runtime/env.hpp" +#include "filecoin/vm/runtime/env.hpp" -#include "vm/actor/builtin/account/account_actor.hpp" -#include "vm/exit_code/exit_code.hpp" -#include "vm/runtime/gas_cost.hpp" -#include "vm/runtime/impl/runtime_impl.hpp" -#include "vm/runtime/runtime_error.hpp" +#include "filecoin/vm/actor/builtin/account/account_actor.hpp" +#include "filecoin/vm/exit_code/exit_code.hpp" +#include "filecoin/vm/runtime/gas_cost.hpp" +#include "filecoin/vm/runtime/impl/runtime_impl.hpp" +#include "filecoin/vm/runtime/runtime_error.hpp" namespace fc::vm::runtime { using actor::kSendMethodNumber; diff --git a/core/vm/runtime/impl/runtime_error.cpp b/core/vm/runtime/impl/runtime_error.cpp index 8c0861d9eb..a6c75fde19 100644 --- a/core/vm/runtime/impl/runtime_error.cpp +++ b/core/vm/runtime/impl/runtime_error.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "vm/runtime/runtime_error.hpp" +#include "filecoin/vm/runtime/runtime_error.hpp" OUTCOME_CPP_DEFINE_CATEGORY(fc::vm::runtime, RuntimeError, e) { using fc::vm::runtime::RuntimeError; diff --git a/core/vm/runtime/impl/runtime_impl.cpp b/core/vm/runtime/impl/runtime_impl.cpp index 8ef5ec69a2..7b52d48915 100644 --- a/core/vm/runtime/impl/runtime_impl.cpp +++ b/core/vm/runtime/impl/runtime_impl.cpp @@ -3,13 +3,13 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "vm/runtime/impl/runtime_impl.hpp" +#include "filecoin/vm/runtime/impl/runtime_impl.hpp" -#include "codec/cbor/cbor.hpp" -#include "vm/actor/builtin/account/account_actor.hpp" -#include "vm/runtime/gas_cost.hpp" -#include "vm/runtime/impl/actor_state_handle_impl.hpp" -#include "vm/runtime/runtime_error.hpp" +#include "filecoin/codec/cbor/cbor.hpp" +#include "filecoin/vm/actor/builtin/account/account_actor.hpp" +#include "filecoin/vm/runtime/gas_cost.hpp" +#include "filecoin/vm/runtime/impl/actor_state_handle_impl.hpp" +#include "filecoin/vm/runtime/runtime_error.hpp" namespace fc::vm::runtime { diff --git a/core/vm/state/impl/state_tree_impl.cpp b/core/vm/state/impl/state_tree_impl.cpp index c4a5a2e670..af07e8fca7 100644 --- a/core/vm/state/impl/state_tree_impl.cpp +++ b/core/vm/state/impl/state_tree_impl.cpp @@ -3,11 +3,11 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "vm/state/impl/state_tree_impl.hpp" +#include "filecoin/vm/state/impl/state_tree_impl.hpp" -#include "codec/cbor/cbor.hpp" -#include "primitives/address/address_codec.hpp" -#include "vm/actor/builtin/init/init_actor.hpp" +#include "filecoin/codec/cbor/cbor.hpp" +#include "filecoin/primitives/address/address_codec.hpp" +#include "filecoin/vm/actor/builtin/init/init_actor.hpp" namespace fc::vm::state { using actor::ActorSubstateCID; diff --git a/core/adt/array.hpp b/include/filecoin/adt/array.hpp similarity index 89% rename from core/adt/array.hpp rename to include/filecoin/adt/array.hpp index e09ed455c4..669532fd53 100644 --- a/core/adt/array.hpp +++ b/include/filecoin/adt/array.hpp @@ -6,11 +6,11 @@ #ifndef CPP_FILECOIN_ARRAY_HPP #define CPP_FILECOIN_ARRAY_HPP -#include "codec/cbor/cbor.hpp" -#include "common/outcome.hpp" -#include "primitives/cid/cid.hpp" -#include "storage/amt/amt.hpp" -#include "storage/ipfs/datastore.hpp" +#include "filecoin/codec/cbor/cbor.hpp" +#include "filecoin/common/outcome.hpp" +#include "filecoin/primitives/cid/cid.hpp" +#include "filecoin/storage/amt/amt.hpp" +#include "filecoin/storage/ipfs/datastore.hpp" namespace fc::adt { diff --git a/core/adt/balance_table_hamt.hpp b/include/filecoin/adt/balance_table_hamt.hpp similarity index 89% rename from core/adt/balance_table_hamt.hpp rename to include/filecoin/adt/balance_table_hamt.hpp index 60e219333a..a857deb60d 100644 --- a/core/adt/balance_table_hamt.hpp +++ b/include/filecoin/adt/balance_table_hamt.hpp @@ -6,12 +6,12 @@ #ifndef CPP_FILECOIN_ADT_BALANCE_TABLE_HAMT_HPP #define CPP_FILECOIN_ADT_BALANCE_TABLE_HAMT_HPP -#include "common/outcome.hpp" -#include "primitives/address/address.hpp" -#include "primitives/cid/cid.hpp" -#include "primitives/types.hpp" -#include "storage/hamt/hamt.hpp" -#include "storage/ipfs/datastore.hpp" +#include "filecoin/common/outcome.hpp" +#include "filecoin/primitives/address/address.hpp" +#include "filecoin/primitives/cid/cid.hpp" +#include "filecoin/primitives/types.hpp" +#include "filecoin/storage/hamt/hamt.hpp" +#include "filecoin/storage/ipfs/datastore.hpp" namespace fc::adt { diff --git a/core/adt/multimap.hpp b/include/filecoin/adt/multimap.hpp similarity index 91% rename from core/adt/multimap.hpp rename to include/filecoin/adt/multimap.hpp index da5240a21a..23b8214cb1 100644 --- a/core/adt/multimap.hpp +++ b/include/filecoin/adt/multimap.hpp @@ -6,10 +6,10 @@ #ifndef CPP_FILECOIN_MULTIMAP_HPP #define CPP_FILECOIN_MULTIMAP_HPP -#include "common/outcome.hpp" -#include "primitives/cid/cid.hpp" -#include "storage/hamt/hamt.hpp" -#include "storage/ipfs/datastore.hpp" +#include "filecoin/common/outcome.hpp" +#include "filecoin/primitives/cid/cid.hpp" +#include "filecoin/storage/hamt/hamt.hpp" +#include "filecoin/storage/ipfs/datastore.hpp" namespace fc::adt { diff --git a/core/blockchain/block_validator.hpp b/include/filecoin/blockchain/block_validator.hpp similarity index 93% rename from core/blockchain/block_validator.hpp rename to include/filecoin/blockchain/block_validator.hpp index eb41fc5ef9..b39ab460d6 100644 --- a/core/blockchain/block_validator.hpp +++ b/include/filecoin/blockchain/block_validator.hpp @@ -6,7 +6,7 @@ #ifndef CPP_FILECOIN_CORE_CHAIN_BLOCK_VALIDATOR_HPP #define CPP_FILECOIN_CORE_CHAIN_BLOCK_VALIDATOR_HPP -#include "primitives/block/block.hpp" +#include "filecoin/primitives/block/block.hpp" namespace fc::blockchain::block_validator { diff --git a/core/blockchain/chain_manager.hpp b/include/filecoin/blockchain/chain_manager.hpp similarity index 100% rename from core/blockchain/chain_manager.hpp rename to include/filecoin/blockchain/chain_manager.hpp diff --git a/core/blockchain/chain_tips_manager.hpp b/include/filecoin/blockchain/chain_tips_manager.hpp similarity index 96% rename from core/blockchain/chain_tips_manager.hpp rename to include/filecoin/blockchain/chain_tips_manager.hpp index dbee565822..cfdc8b3054 100644 --- a/core/blockchain/chain_tips_manager.hpp +++ b/include/filecoin/blockchain/chain_tips_manager.hpp @@ -6,7 +6,7 @@ #ifndef CPP_FILECOIN_CORE_PRIMITIVES_CHAIN_CHAIN_TIPS_MANAGER_HPP #define CPP_FILECOIN_CORE_PRIMITIVES_CHAIN_CHAIN_TIPS_MANAGER_HPP -#include "primitives/tipset/tipset.hpp" +#include "filecoin/primitives/tipset/tipset.hpp" namespace fc::primitives::chain { diff --git a/core/blockchain/impl/block_validator_impl.hpp b/include/filecoin/blockchain/impl/block_validator_impl.hpp similarity index 92% rename from core/blockchain/impl/block_validator_impl.hpp rename to include/filecoin/blockchain/impl/block_validator_impl.hpp index 1b2d4b07e8..5b3a4315e4 100644 --- a/core/blockchain/impl/block_validator_impl.hpp +++ b/include/filecoin/blockchain/impl/block_validator_impl.hpp @@ -6,7 +6,7 @@ #ifndef CPP_FILECOIN_CORE_CHAIN_IMPL_BLOCK_VALIDATOR_IMPL_HPP #define CPP_FILECOIN_CORE_CHAIN_IMPL_BLOCK_VALIDATOR_IMPL_HPP -#include "blockchain/block_validator.hpp" +#include "filecoin/blockchain/block_validator.hpp" namespace fc::blockchain::block_validator { diff --git a/core/blockchain/impl/weight_calculator_impl.hpp b/include/filecoin/blockchain/impl/weight_calculator_impl.hpp similarity index 92% rename from core/blockchain/impl/weight_calculator_impl.hpp rename to include/filecoin/blockchain/impl/weight_calculator_impl.hpp index 1c37fb49c7..c5a7a6f0bb 100644 --- a/core/blockchain/impl/weight_calculator_impl.hpp +++ b/include/filecoin/blockchain/impl/weight_calculator_impl.hpp @@ -6,7 +6,7 @@ #ifndef CPP_FILECOIN_CORE_CHAIN_IMPL_WEIGHT_CALCULATOR_IMPL_HPP #define CPP_FILECOIN_CORE_CHAIN_IMPL_WEIGHT_CALCULATOR_IMPL_HPP -#include "blockchain/weight_calculator.hpp" +#include "filecoin/blockchain/weight_calculator.hpp" namespace fc::blockchain::weight { diff --git a/core/blockchain/message_pool/impl/gas_price_scored_message_storage.hpp b/include/filecoin/blockchain/message_pool/impl/gas_price_scored_message_storage.hpp similarity index 96% rename from core/blockchain/message_pool/impl/gas_price_scored_message_storage.hpp rename to include/filecoin/blockchain/message_pool/impl/gas_price_scored_message_storage.hpp index 8af7fdf71f..6ae6d5f544 100644 --- a/core/blockchain/message_pool/impl/gas_price_scored_message_storage.hpp +++ b/include/filecoin/blockchain/message_pool/impl/gas_price_scored_message_storage.hpp @@ -6,7 +6,7 @@ #ifndef CPP_FILECOIN_BLOCKCHAIN_MESSAGE_POOL_GAS_PRICE_SCORED_MESSAGE_STORAGE_HPP #define CPP_FILECOIN_BLOCKCHAIN_MESSAGE_POOL_GAS_PRICE_SCORED_MESSAGE_STORAGE_HPP -#include "blockchain/message_pool/message_storage.hpp" +#include "filecoin/blockchain/message_pool/message_storage.hpp" namespace fc::blockchain::message_pool { diff --git a/core/blockchain/message_pool/message_pool_error.hpp b/include/filecoin/blockchain/message_pool/message_pool_error.hpp similarity index 93% rename from core/blockchain/message_pool/message_pool_error.hpp rename to include/filecoin/blockchain/message_pool/message_pool_error.hpp index 106a2558db..8528645c65 100644 --- a/core/blockchain/message_pool/message_pool_error.hpp +++ b/include/filecoin/blockchain/message_pool/message_pool_error.hpp @@ -6,7 +6,7 @@ #ifndef FILECOIN_CORE_BLOCKCHAIN_MESSAGE_POOL_ERROR #define FILECOIN_CORE_BLOCKCHAIN_MESSAGE_POOL_ERROR -#include "common/outcome.hpp" +#include "filecoin/common/outcome.hpp" namespace fc::blockchain::message_pool { diff --git a/core/blockchain/message_pool/message_storage.hpp b/include/filecoin/blockchain/message_pool/message_storage.hpp similarity index 90% rename from core/blockchain/message_pool/message_storage.hpp rename to include/filecoin/blockchain/message_pool/message_storage.hpp index 6d10f69601..4fa4dd1ebc 100644 --- a/core/blockchain/message_pool/message_storage.hpp +++ b/include/filecoin/blockchain/message_pool/message_storage.hpp @@ -6,9 +6,9 @@ #ifndef CPP_FILECOIN_BLOCKCHAIN_MESSAGE_POOL_MESSAGE_STORAGE_HPP #define CPP_FILECOIN_BLOCKCHAIN_MESSAGE_POOL_MESSAGE_STORAGE_HPP -#include "common/outcome.hpp" -#include "primitives/address/address.hpp" -#include "vm/message/message.hpp" +#include "filecoin/common/outcome.hpp" +#include "filecoin/primitives/address/address.hpp" +#include "filecoin/vm/message/message.hpp" namespace fc::blockchain::message_pool { diff --git a/core/blockchain/production/block_producer.hpp b/include/filecoin/blockchain/production/block_producer.hpp similarity index 82% rename from core/blockchain/production/block_producer.hpp rename to include/filecoin/blockchain/production/block_producer.hpp index d3a7a0042f..0f93c75048 100644 --- a/core/blockchain/production/block_producer.hpp +++ b/include/filecoin/blockchain/production/block_producer.hpp @@ -3,12 +3,12 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "common/outcome.hpp" -#include "primitives/address/address.hpp" -#include "primitives/block/block.hpp" -#include "primitives/ticket/epost_ticket.hpp" -#include "primitives/ticket/ticket.hpp" -#include "vm/indices/indices.hpp" +#include "filecoin/common/outcome.hpp" +#include "filecoin/primitives/address/address.hpp" +#include "filecoin/primitives/block/block.hpp" +#include "filecoin/primitives/ticket/epost_ticket.hpp" +#include "filecoin/primitives/ticket/ticket.hpp" +#include "filecoin/vm/indices/indices.hpp" namespace fc::blockchain::production { /** diff --git a/core/blockchain/production/impl/block_producer_impl.hpp b/include/filecoin/blockchain/production/impl/block_producer_impl.hpp similarity index 85% rename from core/blockchain/production/impl/block_producer_impl.hpp rename to include/filecoin/blockchain/production/impl/block_producer_impl.hpp index 75c0098590..5eba78e611 100644 --- a/core/blockchain/production/impl/block_producer_impl.hpp +++ b/include/filecoin/blockchain/production/impl/block_producer_impl.hpp @@ -5,16 +5,16 @@ #include -#include "blockchain/message_pool/message_storage.hpp" -#include "blockchain/production/block_producer.hpp" -#include "blockchain/weight_calculator.hpp" -#include "clock/chain_epoch_clock.hpp" -#include "clock/utc_clock.hpp" -#include "crypto/bls/bls_provider.hpp" -#include "primitives/block/block.hpp" -#include "primitives/tipset/tipset.hpp" -#include "storage/ipfs/datastore.hpp" -#include "vm/interpreter/interpreter.hpp" +#include "filecoin/blockchain/message_pool/message_storage.hpp" +#include "filecoin/blockchain/production/block_producer.hpp" +#include "filecoin/blockchain/weight_calculator.hpp" +#include "filecoin/clock/chain_epoch_clock.hpp" +#include "filecoin/clock/utc_clock.hpp" +#include "filecoin/crypto/bls/bls_provider.hpp" +#include "filecoin/primitives/block/block.hpp" +#include "filecoin/primitives/tipset/tipset.hpp" +#include "filecoin/storage/ipfs/datastore.hpp" +#include "filecoin/vm/interpreter/interpreter.hpp" namespace fc::blockchain::production { namespace config { diff --git a/core/blockchain/weight_calculator.hpp b/include/filecoin/blockchain/weight_calculator.hpp similarity index 88% rename from core/blockchain/weight_calculator.hpp rename to include/filecoin/blockchain/weight_calculator.hpp index 21139e898b..e48dd6dc44 100644 --- a/core/blockchain/weight_calculator.hpp +++ b/include/filecoin/blockchain/weight_calculator.hpp @@ -6,8 +6,8 @@ #ifndef CPP_FILECOIN_CORE_STORAGE_CHAIN_WEIGHTCALCULATOR_HPP #define CPP_FILECOIN_CORE_STORAGE_CHAIN_WEIGHTCALCULATOR_HPP -#include "primitives/big_int.hpp" -#include "primitives/tipset/tipset.hpp" +#include "filecoin/primitives/big_int.hpp" +#include "filecoin/primitives/tipset/tipset.hpp" namespace fc::blockchain::weight { /** diff --git a/core/clock/chain_epoch_clock.hpp b/include/filecoin/clock/chain_epoch_clock.hpp similarity index 89% rename from core/clock/chain_epoch_clock.hpp rename to include/filecoin/clock/chain_epoch_clock.hpp index 69530670b7..b300e7ee62 100644 --- a/core/clock/chain_epoch_clock.hpp +++ b/include/filecoin/clock/chain_epoch_clock.hpp @@ -6,8 +6,8 @@ #ifndef CPP_FILECOIN_CORE_CLOCK_CHAIN_EPOCH_CLOCK_HPP #define CPP_FILECOIN_CORE_CLOCK_CHAIN_EPOCH_CLOCK_HPP -#include "clock/time.hpp" -#include "primitives/chain_epoch/chain_epoch.hpp" +#include "filecoin/clock/time.hpp" +#include "filecoin/primitives/chain_epoch/chain_epoch.hpp" namespace fc::clock { enum class EpochAtTimeError { BEFORE_GENESIS = 1 }; diff --git a/core/clock/impl/chain_epoch_clock_impl.hpp b/include/filecoin/clock/impl/chain_epoch_clock_impl.hpp similarity index 92% rename from core/clock/impl/chain_epoch_clock_impl.hpp rename to include/filecoin/clock/impl/chain_epoch_clock_impl.hpp index a18c9f92e8..76b6f2bc21 100644 --- a/core/clock/impl/chain_epoch_clock_impl.hpp +++ b/include/filecoin/clock/impl/chain_epoch_clock_impl.hpp @@ -6,7 +6,7 @@ #ifndef CPP_FILECOIN_CORE_CLOCK_IMPL_CHAIN_EPOCH_CLOCK_IMPL_HPP #define CPP_FILECOIN_CORE_CLOCK_IMPL_CHAIN_EPOCH_CLOCK_IMPL_HPP -#include "clock/chain_epoch_clock.hpp" +#include "filecoin/clock/chain_epoch_clock.hpp" namespace fc::clock { class ChainEpochClockImpl : public ChainEpochClock { diff --git a/core/clock/impl/utc_clock_impl.hpp b/include/filecoin/clock/impl/utc_clock_impl.hpp similarity index 91% rename from core/clock/impl/utc_clock_impl.hpp rename to include/filecoin/clock/impl/utc_clock_impl.hpp index 836417a34a..84f94a22b7 100644 --- a/core/clock/impl/utc_clock_impl.hpp +++ b/include/filecoin/clock/impl/utc_clock_impl.hpp @@ -6,7 +6,7 @@ #ifndef CPP_FILECOIN_CORE_CLOCK_IMPL_UTC_CLOCK_IMPL_HPP #define CPP_FILECOIN_CORE_CLOCK_IMPL_UTC_CLOCK_IMPL_HPP -#include "clock/utc_clock.hpp" +#include "filecoin/clock/utc_clock.hpp" namespace fc::clock { class UTCClockImpl : public UTCClock { diff --git a/core/clock/time.hpp b/include/filecoin/clock/time.hpp similarity index 95% rename from core/clock/time.hpp rename to include/filecoin/clock/time.hpp index 2c5b0995ae..89b61c4b0f 100644 --- a/core/clock/time.hpp +++ b/include/filecoin/clock/time.hpp @@ -9,7 +9,7 @@ #include #include -#include "common/outcome.hpp" +#include "filecoin/common/outcome.hpp" namespace fc::clock { enum class TimeFromStringError { INVALID_FORMAT = 1 }; diff --git a/core/clock/utc_clock.hpp b/include/filecoin/clock/utc_clock.hpp similarity index 92% rename from core/clock/utc_clock.hpp rename to include/filecoin/clock/utc_clock.hpp index fc8a612a19..7eb969cdde 100644 --- a/core/clock/utc_clock.hpp +++ b/include/filecoin/clock/utc_clock.hpp @@ -6,7 +6,7 @@ #ifndef CPP_FILECOIN_CORE_CLOCK_UTC_CLOCK_HPP #define CPP_FILECOIN_CORE_CLOCK_UTC_CLOCK_HPP -#include "clock/time.hpp" +#include "filecoin/clock/time.hpp" namespace fc::clock { /** diff --git a/core/codec/cbor/cbor.hpp b/include/filecoin/codec/cbor/cbor.hpp similarity index 88% rename from core/codec/cbor/cbor.hpp rename to include/filecoin/codec/cbor/cbor.hpp index 1fbedfd156..337176a198 100644 --- a/core/codec/cbor/cbor.hpp +++ b/include/filecoin/codec/cbor/cbor.hpp @@ -6,9 +6,9 @@ #ifndef CPP_FILECOIN_CORE_CODEC_CBOR_CBOR_HPP #define CPP_FILECOIN_CORE_CODEC_CBOR_CBOR_HPP -#include "codec/cbor/cbor_decode_stream.hpp" -#include "codec/cbor/cbor_encode_stream.hpp" -#include "codec/cbor/cbor_resolve.hpp" +#include "filecoin/codec/cbor/cbor_decode_stream.hpp" +#include "filecoin/codec/cbor/cbor_encode_stream.hpp" +#include "filecoin/codec/cbor/cbor_resolve.hpp" namespace fc::codec::cbor { /** diff --git a/core/codec/cbor/cbor_common.hpp b/include/filecoin/codec/cbor/cbor_common.hpp similarity index 77% rename from core/codec/cbor/cbor_common.hpp rename to include/filecoin/codec/cbor/cbor_common.hpp index 46815b5fd8..aca0fbdc2f 100644 --- a/core/codec/cbor/cbor_common.hpp +++ b/include/filecoin/codec/cbor/cbor_common.hpp @@ -11,9 +11,9 @@ #include #include -#include "codec/cbor/cbor_errors.hpp" -#include "common/outcome_throw.hpp" -#include "primitives/cid/cid.hpp" +#include "filecoin/codec/cbor/cbor_errors.hpp" +#include "filecoin/common/outcome_throw.hpp" +#include "filecoin/primitives/cid/cid.hpp" namespace fc::codec::cbor { constexpr uint64_t kCidTag = 42; diff --git a/core/codec/cbor/cbor_decode_stream.hpp b/include/filecoin/codec/cbor/cbor_decode_stream.hpp similarity index 98% rename from core/codec/cbor/cbor_decode_stream.hpp rename to include/filecoin/codec/cbor/cbor_decode_stream.hpp index ebc9e97b12..d6f1cdf72a 100644 --- a/core/codec/cbor/cbor_decode_stream.hpp +++ b/include/filecoin/codec/cbor/cbor_decode_stream.hpp @@ -6,7 +6,7 @@ #ifndef CPP_FILECOIN_CORE_CODEC_CBOR_CBOR_DECODE_STREAM_HPP #define CPP_FILECOIN_CORE_CODEC_CBOR_CBOR_DECODE_STREAM_HPP -#include "codec/cbor/cbor_common.hpp" +#include "filecoin/codec/cbor/cbor_common.hpp" #include diff --git a/core/codec/cbor/cbor_encode_stream.hpp b/include/filecoin/codec/cbor/cbor_encode_stream.hpp similarity index 97% rename from core/codec/cbor/cbor_encode_stream.hpp rename to include/filecoin/codec/cbor/cbor_encode_stream.hpp index ec1da34104..84cb04f591 100644 --- a/core/codec/cbor/cbor_encode_stream.hpp +++ b/include/filecoin/codec/cbor/cbor_encode_stream.hpp @@ -6,14 +6,14 @@ #ifndef CPP_FILECOIN_CORE_CODEC_CBOR_CBOR_ENCODE_STREAM_HPP #define CPP_FILECOIN_CORE_CODEC_CBOR_CBOR_ENCODE_STREAM_HPP -#include "codec/cbor/cbor_common.hpp" +#include "filecoin/codec/cbor/cbor_common.hpp" #include #include #include -#include "common/enum.hpp" +#include "filecoin/common/enum.hpp" namespace fc::codec::cbor { /** Encodes CBOR */ diff --git a/core/codec/cbor/cbor_errors.hpp b/include/filecoin/codec/cbor/cbor_errors.hpp similarity index 94% rename from core/codec/cbor/cbor_errors.hpp rename to include/filecoin/codec/cbor/cbor_errors.hpp index e06da53492..c55aa99d54 100644 --- a/core/codec/cbor/cbor_errors.hpp +++ b/include/filecoin/codec/cbor/cbor_errors.hpp @@ -6,7 +6,7 @@ #ifndef CPP_FILECOIN_CORE_CODEC_CBOR_CBOR_ERRORS_HPP #define CPP_FILECOIN_CORE_CODEC_CBOR_CBOR_ERRORS_HPP -#include "common/outcome.hpp" +#include "filecoin/common/outcome.hpp" namespace fc::codec::cbor { enum class CborEncodeError { INVALID_CID = 1, EXPECTED_MAP_VALUE_SINGLE }; diff --git a/core/codec/cbor/cbor_resolve.hpp b/include/filecoin/codec/cbor/cbor_resolve.hpp similarity index 93% rename from core/codec/cbor/cbor_resolve.hpp rename to include/filecoin/codec/cbor/cbor_resolve.hpp index 891a5b3f77..e1197dd175 100644 --- a/core/codec/cbor/cbor_resolve.hpp +++ b/include/filecoin/codec/cbor/cbor_resolve.hpp @@ -6,7 +6,7 @@ #ifndef CPP_FILECOIN_CORE_CODEC_CBOR_CBOR_RESOLVE_HPP #define CPP_FILECOIN_CORE_CODEC_CBOR_CBOR_RESOLVE_HPP -#include "codec/cbor/cbor_decode_stream.hpp" +#include "filecoin/codec/cbor/cbor_decode_stream.hpp" namespace fc::codec::cbor { enum class CborResolveError { diff --git a/core/codec/cbor/streams_annotation.hpp b/include/filecoin/codec/cbor/streams_annotation.hpp similarity index 100% rename from core/codec/cbor/streams_annotation.hpp rename to include/filecoin/codec/cbor/streams_annotation.hpp diff --git a/core/codec/rle/rle_plus.hpp b/include/filecoin/codec/rle/rle_plus.hpp similarity index 86% rename from core/codec/rle/rle_plus.hpp rename to include/filecoin/codec/rle/rle_plus.hpp index ee90f9a596..ce26d328e8 100644 --- a/core/codec/rle/rle_plus.hpp +++ b/include/filecoin/codec/rle/rle_plus.hpp @@ -6,10 +6,10 @@ #ifndef CODEC_RLE_PLUS_HPP #define CODEC_RLE_PLUS_HPP -#include "common/outcome.hpp" -#include "codec/rle/rle_plus_errors.hpp" -#include "codec/rle/rle_plus_decoding_stream.hpp" -#include "codec/rle/rle_plus_encoding_stream.hpp" +#include "filecoin/common/outcome.hpp" +#include "filecoin/codec/rle/rle_plus_errors.hpp" +#include "filecoin/codec/rle/rle_plus_decoding_stream.hpp" +#include "filecoin/codec/rle/rle_plus_encoding_stream.hpp" namespace fc::codec::rle { /** diff --git a/core/codec/rle/rle_plus_config.hpp b/include/filecoin/codec/rle/rle_plus_config.hpp similarity index 100% rename from core/codec/rle/rle_plus_config.hpp rename to include/filecoin/codec/rle/rle_plus_config.hpp diff --git a/core/codec/rle/rle_plus_decoding_stream.hpp b/include/filecoin/codec/rle/rle_plus_decoding_stream.hpp similarity index 98% rename from core/codec/rle/rle_plus_decoding_stream.hpp rename to include/filecoin/codec/rle/rle_plus_decoding_stream.hpp index adf7904193..42851f75fd 100644 --- a/core/codec/rle/rle_plus_decoding_stream.hpp +++ b/include/filecoin/codec/rle/rle_plus_decoding_stream.hpp @@ -12,8 +12,8 @@ #include #include -#include "codec/rle/rle_plus_config.hpp" -#include "codec/rle/rle_plus_errors.hpp" +#include "filecoin/codec/rle/rle_plus_config.hpp" +#include "filecoin/codec/rle/rle_plus_errors.hpp" namespace fc::codec::rle { /** diff --git a/core/codec/rle/rle_plus_encoding_stream.hpp b/include/filecoin/codec/rle/rle_plus_encoding_stream.hpp similarity index 98% rename from core/codec/rle/rle_plus_encoding_stream.hpp rename to include/filecoin/codec/rle/rle_plus_encoding_stream.hpp index 4c6c4f1bb3..900ea290fd 100644 --- a/core/codec/rle/rle_plus_encoding_stream.hpp +++ b/include/filecoin/codec/rle/rle_plus_encoding_stream.hpp @@ -11,7 +11,7 @@ #include -#include "codec/rle/rle_plus_config.hpp" +#include "filecoin/codec/rle/rle_plus_config.hpp" namespace fc::codec::rle { /** diff --git a/core/codec/rle/rle_plus_errors.hpp b/include/filecoin/codec/rle/rle_plus_errors.hpp similarity index 95% rename from core/codec/rle/rle_plus_errors.hpp rename to include/filecoin/codec/rle/rle_plus_errors.hpp index dfd90543b8..ef4b33c600 100644 --- a/core/codec/rle/rle_plus_errors.hpp +++ b/include/filecoin/codec/rle/rle_plus_errors.hpp @@ -6,7 +6,7 @@ #ifndef CORE_CODEC_RLE_PLUS_ERRORS_HPP #define CORE_CODEC_RLE_PLUS_ERRORS_HPP -#include "common/outcome.hpp" +#include "filecoin/common/outcome.hpp" namespace fc::codec::rle { diff --git a/core/common/blob.hpp b/include/filecoin/common/blob.hpp similarity index 99% rename from core/common/blob.hpp rename to include/filecoin/common/blob.hpp index eb71130447..b8f5242ceb 100644 --- a/core/common/blob.hpp +++ b/include/filecoin/common/blob.hpp @@ -10,7 +10,7 @@ #include #include -#include "common/hexutil.hpp" +#include "filecoin/common/hexutil.hpp" namespace fc::common { diff --git a/core/common/buffer.hpp b/include/filecoin/common/buffer.hpp similarity index 98% rename from core/common/buffer.hpp rename to include/filecoin/common/buffer.hpp index a015ca134d..af74899301 100644 --- a/core/common/buffer.hpp +++ b/include/filecoin/common/buffer.hpp @@ -12,8 +12,8 @@ #include #include -#include "codec/cbor/streams_annotation.hpp" -#include "common/outcome.hpp" +#include "filecoin/codec/cbor/streams_annotation.hpp" +#include "filecoin/common/outcome.hpp" namespace fc::common { diff --git a/core/common/enum.hpp b/include/filecoin/common/enum.hpp similarity index 100% rename from core/common/enum.hpp rename to include/filecoin/common/enum.hpp diff --git a/core/common/hexutil.hpp b/include/filecoin/common/hexutil.hpp similarity index 97% rename from core/common/hexutil.hpp rename to include/filecoin/common/hexutil.hpp index d83b1f1a2c..94a707390d 100644 --- a/core/common/hexutil.hpp +++ b/include/filecoin/common/hexutil.hpp @@ -10,7 +10,7 @@ #include #include -#include "common/outcome.hpp" +#include "filecoin/common/outcome.hpp" namespace fc::common { diff --git a/core/common/le_encoder.hpp b/include/filecoin/common/le_encoder.hpp similarity index 96% rename from core/common/le_encoder.hpp rename to include/filecoin/common/le_encoder.hpp index fc8b320d08..20af4a2673 100644 --- a/core/common/le_encoder.hpp +++ b/include/filecoin/common/le_encoder.hpp @@ -7,7 +7,7 @@ #define CPP_FILECOIN_CORE_COMMON_LE_ENCODER_HPP #include -#include "common/buffer.hpp" +#include "filecoin/common/buffer.hpp" namespace fc::common { /** diff --git a/core/common/logger.hpp b/include/filecoin/common/logger.hpp similarity index 100% rename from core/common/logger.hpp rename to include/filecoin/common/logger.hpp diff --git a/core/common/outcome.hpp b/include/filecoin/common/outcome.hpp similarity index 100% rename from core/common/outcome.hpp rename to include/filecoin/common/outcome.hpp diff --git a/core/common/outcome_throw.hpp b/include/filecoin/common/outcome_throw.hpp similarity index 100% rename from core/common/outcome_throw.hpp rename to include/filecoin/common/outcome_throw.hpp diff --git a/core/common/visitor.hpp b/include/filecoin/common/visitor.hpp similarity index 100% rename from core/common/visitor.hpp rename to include/filecoin/common/visitor.hpp diff --git a/core/common/which.hpp b/include/filecoin/common/which.hpp similarity index 100% rename from core/common/which.hpp rename to include/filecoin/common/which.hpp diff --git a/core/crypto/blake2/blake2b.h b/include/filecoin/crypto/blake2/blake2b.h similarity index 100% rename from core/crypto/blake2/blake2b.h rename to include/filecoin/crypto/blake2/blake2b.h diff --git a/core/crypto/blake2/blake2b160.hpp b/include/filecoin/crypto/blake2/blake2b160.hpp similarity index 93% rename from core/crypto/blake2/blake2b160.hpp rename to include/filecoin/crypto/blake2/blake2b160.hpp index 5a23772e74..ca8fd1238b 100644 --- a/core/crypto/blake2/blake2b160.hpp +++ b/include/filecoin/crypto/blake2/blake2b160.hpp @@ -8,8 +8,8 @@ #include -#include "common/blob.hpp" -#include "common/outcome.hpp" +#include "filecoin/common/blob.hpp" +#include "filecoin/common/outcome.hpp" #include namespace fc::crypto::blake2b { diff --git a/core/crypto/blake2/blake2s.h b/include/filecoin/crypto/blake2/blake2s.h similarity index 100% rename from core/crypto/blake2/blake2s.h rename to include/filecoin/crypto/blake2/blake2s.h diff --git a/core/crypto/bls/bls_provider.hpp b/include/filecoin/crypto/bls/bls_provider.hpp similarity index 97% rename from core/crypto/bls/bls_provider.hpp rename to include/filecoin/crypto/bls/bls_provider.hpp index 60320dfed0..4c2a7a637c 100644 --- a/core/crypto/bls/bls_provider.hpp +++ b/include/filecoin/crypto/bls/bls_provider.hpp @@ -9,7 +9,7 @@ #include #include -#include "crypto/bls/bls_types.hpp" +#include "filecoin/crypto/bls/bls_types.hpp" namespace fc::crypto::bls { /** diff --git a/core/crypto/bls/bls_types.hpp b/include/filecoin/crypto/bls/bls_types.hpp similarity index 90% rename from core/crypto/bls/bls_types.hpp rename to include/filecoin/crypto/bls/bls_types.hpp index d9dec6f2d9..79e257c485 100644 --- a/core/crypto/bls/bls_types.hpp +++ b/include/filecoin/crypto/bls/bls_types.hpp @@ -9,10 +9,10 @@ #include extern "C" { -#include "crypto/bls/libbls_signatures.h" +#include "filecoin/crypto/bls/libbls_signatures.h" } -#include "common/outcome.hpp" +#include "filecoin/common/outcome.hpp" namespace fc::crypto::bls { diff --git a/core/crypto/bls/impl/bls_provider_impl.hpp b/include/filecoin/crypto/bls/impl/bls_provider_impl.hpp similarity index 96% rename from core/crypto/bls/impl/bls_provider_impl.hpp rename to include/filecoin/crypto/bls/impl/bls_provider_impl.hpp index 98e83da0fc..01fa0d5c19 100644 --- a/core/crypto/bls/impl/bls_provider_impl.hpp +++ b/include/filecoin/crypto/bls/impl/bls_provider_impl.hpp @@ -6,7 +6,7 @@ #ifndef CRYPTO_BLS_PROVIDER_IMPL_HPP #define CRYPTO_BLS_PROVIDER_IMPL_HPP -#include "crypto/bls/bls_provider.hpp" +#include "filecoin/crypto/bls/bls_provider.hpp" namespace fc::crypto::bls { class BlsProviderImpl : public BlsProvider { diff --git a/core/crypto/bls/libbls_signatures.h b/include/filecoin/crypto/bls/libbls_signatures.h similarity index 100% rename from core/crypto/bls/libbls_signatures.h rename to include/filecoin/crypto/bls/libbls_signatures.h diff --git a/core/crypto/hasher/hasher.hpp b/include/filecoin/crypto/hasher/hasher.hpp similarity index 100% rename from core/crypto/hasher/hasher.hpp rename to include/filecoin/crypto/hasher/hasher.hpp diff --git a/core/crypto/murmur/murmur.hpp b/include/filecoin/crypto/murmur/murmur.hpp similarity index 100% rename from core/crypto/murmur/murmur.hpp rename to include/filecoin/crypto/murmur/murmur.hpp diff --git a/core/crypto/randomness/chain_randomness_provider.hpp b/include/filecoin/crypto/randomness/chain_randomness_provider.hpp similarity index 88% rename from core/crypto/randomness/chain_randomness_provider.hpp rename to include/filecoin/crypto/randomness/chain_randomness_provider.hpp index 275fd5018e..d636b56ac8 100644 --- a/core/crypto/randomness/chain_randomness_provider.hpp +++ b/include/filecoin/crypto/randomness/chain_randomness_provider.hpp @@ -6,8 +6,8 @@ #ifndef CPP_FILECOIN_CORE_CRYPTO_RANDOMNESS_CHAIN_RANDOMNESS_PROVIDER_HPP #define CPP_FILECOIN_CORE_CRYPTO_RANDOMNESS_CHAIN_RANDOMNESS_PROVIDER_HPP -#include "crypto/randomness/randomness_types.hpp" -#include "primitives/cid/cid.hpp" +#include "filecoin/crypto/randomness/randomness_types.hpp" +#include "filecoin/primitives/cid/cid.hpp" namespace fc::crypto::randomness { diff --git a/core/crypto/randomness/impl/chain_randomness_provider_impl.hpp b/include/filecoin/crypto/randomness/impl/chain_randomness_provider_impl.hpp similarity index 88% rename from core/crypto/randomness/impl/chain_randomness_provider_impl.hpp rename to include/filecoin/crypto/randomness/impl/chain_randomness_provider_impl.hpp index 5b716fda2d..30c4351b73 100644 --- a/core/crypto/randomness/impl/chain_randomness_provider_impl.hpp +++ b/include/filecoin/crypto/randomness/impl/chain_randomness_provider_impl.hpp @@ -6,8 +6,8 @@ #ifndef CPP_FILECOIN_CORE_CRYPTO_RANDOMNESS_IMPL_CHAIN_RANDOMNESS_PROVIDER_IMPL_HPP #define CPP_FILECOIN_CORE_CRYPTO_RANDOMNESS_IMPL_CHAIN_RANDOMNESS_PROVIDER_IMPL_HPP -#include "crypto/randomness/chain_randomness_provider.hpp" -#include "storage/chain/chain_store.hpp" +#include "filecoin/crypto/randomness/chain_randomness_provider.hpp" +#include "filecoin/storage/chain/chain_store.hpp" namespace fc::crypto::randomness { class ChainRandomnessProviderImpl : public ChainRandomnessProvider { diff --git a/core/crypto/randomness/impl/randomness_provider_impl.hpp b/include/filecoin/crypto/randomness/impl/randomness_provider_impl.hpp similarity index 95% rename from core/crypto/randomness/impl/randomness_provider_impl.hpp rename to include/filecoin/crypto/randomness/impl/randomness_provider_impl.hpp index 12635266a5..aa38932a14 100644 --- a/core/crypto/randomness/impl/randomness_provider_impl.hpp +++ b/include/filecoin/crypto/randomness/impl/randomness_provider_impl.hpp @@ -6,7 +6,7 @@ #ifndef CPP_FILECOIN_CORE_CRYPTO_RANDOMNESS_IMPL_RANDOMNESS_PROVIDER_HPP #define CPP_FILECOIN_CORE_CRYPTO_RANDOMNESS_IMPL_RANDOMNESS_PROVIDER_HPP -#include "crypto/randomness/randomness_provider.hpp" +#include "filecoin/crypto/randomness/randomness_provider.hpp" namespace fc::crypto::randomness { diff --git a/core/crypto/randomness/randomness_provider.hpp b/include/filecoin/crypto/randomness/randomness_provider.hpp similarity index 92% rename from core/crypto/randomness/randomness_provider.hpp rename to include/filecoin/crypto/randomness/randomness_provider.hpp index f3ac6e6667..1519f787ec 100644 --- a/core/crypto/randomness/randomness_provider.hpp +++ b/include/filecoin/crypto/randomness/randomness_provider.hpp @@ -6,8 +6,8 @@ #ifndef CPP_FILECOIN_CORE_CRYPTO_RANDOMNESS_RANDOMNESS_PROVIDER_HPP #define CPP_FILECOIN_CORE_CRYPTO_RANDOMNESS_RANDOMNESS_PROVIDER_HPP -#include "crypto/randomness/randomness_types.hpp" -#include "primitives/chain_epoch/chain_epoch.hpp" +#include "filecoin/crypto/randomness/randomness_types.hpp" +#include "filecoin/primitives/chain_epoch/chain_epoch.hpp" namespace fc::crypto::randomness { diff --git a/core/crypto/randomness/randomness_types.hpp b/include/filecoin/crypto/randomness/randomness_types.hpp similarity index 90% rename from core/crypto/randomness/randomness_types.hpp rename to include/filecoin/crypto/randomness/randomness_types.hpp index 8b2df9f94a..f653c2ac2c 100644 --- a/core/crypto/randomness/randomness_types.hpp +++ b/include/filecoin/crypto/randomness/randomness_types.hpp @@ -6,8 +6,8 @@ #ifndef CPP_FILECOIN_CORE_CRYPTO_RANDOMNESS_RANDOMNESS_HPP #define CPP_FILECOIN_CORE_CRYPTO_RANDOMNESS_RANDOMNESS_HPP -#include "common/blob.hpp" -#include "common/buffer.hpp" +#include "filecoin/common/blob.hpp" +#include "filecoin/common/buffer.hpp" namespace fc::crypto::randomness { diff --git a/core/crypto/secp256k1/secp256k1_provider.hpp b/include/filecoin/crypto/secp256k1/secp256k1_provider.hpp similarity index 100% rename from core/crypto/secp256k1/secp256k1_provider.hpp rename to include/filecoin/crypto/secp256k1/secp256k1_provider.hpp diff --git a/core/crypto/signature/signature.hpp b/include/filecoin/crypto/signature/signature.hpp similarity index 91% rename from core/crypto/signature/signature.hpp rename to include/filecoin/crypto/signature/signature.hpp index 41fa8c0ee3..46ca8738f6 100644 --- a/core/crypto/signature/signature.hpp +++ b/include/filecoin/crypto/signature/signature.hpp @@ -8,11 +8,11 @@ #include -#include "codec/cbor/streams_annotation.hpp" -#include "common/outcome_throw.hpp" -#include "common/visitor.hpp" -#include "crypto/bls/bls_types.hpp" -#include "crypto/secp256k1/secp256k1_provider.hpp" +#include "filecoin/codec/cbor/streams_annotation.hpp" +#include "filecoin/common/outcome_throw.hpp" +#include "filecoin/common/visitor.hpp" +#include "filecoin/crypto/bls/bls_types.hpp" +#include "filecoin/crypto/secp256k1/secp256k1_provider.hpp" namespace fc::crypto::signature { enum class SignatureError { diff --git a/core/crypto/vrf/impl/vrf_provider_impl.hpp b/include/filecoin/crypto/vrf/impl/vrf_provider_impl.hpp similarity index 90% rename from core/crypto/vrf/impl/vrf_provider_impl.hpp rename to include/filecoin/crypto/vrf/impl/vrf_provider_impl.hpp index bf095f8bb1..2e801745e0 100644 --- a/core/crypto/vrf/impl/vrf_provider_impl.hpp +++ b/include/filecoin/crypto/vrf/impl/vrf_provider_impl.hpp @@ -6,8 +6,8 @@ #ifndef CPP_FILECOIN_CORE_CRYPTO_VRF_IMPL_VRF_PROVIDER_IMPL_HPP #define CPP_FILECOIN_CORE_CRYPTO_VRF_IMPL_VRF_PROVIDER_IMPL_HPP -#include "crypto/bls/bls_provider.hpp" -#include "crypto/vrf/vrf_provider.hpp" +#include "filecoin/crypto/bls/bls_provider.hpp" +#include "filecoin/crypto/vrf/vrf_provider.hpp" namespace fc::crypto::vrf { diff --git a/core/crypto/vrf/vrf_hash_encoder.hpp b/include/filecoin/crypto/vrf/vrf_hash_encoder.hpp similarity index 94% rename from core/crypto/vrf/vrf_hash_encoder.hpp rename to include/filecoin/crypto/vrf/vrf_hash_encoder.hpp index 6d8ad63096..1ee677ad6d 100644 --- a/core/crypto/vrf/vrf_hash_encoder.hpp +++ b/include/filecoin/crypto/vrf/vrf_hash_encoder.hpp @@ -6,7 +6,7 @@ #ifndef CPP_FILECOIN_CORE_CRYPTO_VRF_VRF_HASH_ENCODER_HPP #define CPP_FILECOIN_CORE_CRYPTO_VRF_VRF_HASH_ENCODER_HPP -#include "crypto/vrf/vrf_types.hpp" +#include "filecoin/crypto/vrf/vrf_types.hpp" namespace fc::crypto::vrf { diff --git a/core/crypto/vrf/vrf_provider.hpp b/include/filecoin/crypto/vrf/vrf_provider.hpp similarity index 97% rename from core/crypto/vrf/vrf_provider.hpp rename to include/filecoin/crypto/vrf/vrf_provider.hpp index bfa9bca82b..d4081895d5 100644 --- a/core/crypto/vrf/vrf_provider.hpp +++ b/include/filecoin/crypto/vrf/vrf_provider.hpp @@ -6,7 +6,7 @@ #ifndef CPP_FILECOIN_CORE_CRYPTO_VRF_VRF_PROVIDER_HPP #define CPP_FILECOIN_CORE_CRYPTO_VRF_VRF_PROVIDER_HPP -#include "crypto/vrf/vrf_types.hpp" +#include "filecoin/crypto/vrf/vrf_types.hpp" namespace fc::crypto::vrf { diff --git a/core/crypto/vrf/vrf_types.hpp b/include/filecoin/crypto/vrf/vrf_types.hpp similarity index 86% rename from core/crypto/vrf/vrf_types.hpp rename to include/filecoin/crypto/vrf/vrf_types.hpp index a184747ad4..fb71cd0d22 100644 --- a/core/crypto/vrf/vrf_types.hpp +++ b/include/filecoin/crypto/vrf/vrf_types.hpp @@ -6,11 +6,11 @@ #ifndef CPP_FILECOIN_CORE_CRYPTO_VRF_VRF_TYPES_HPP #define CPP_FILECOIN_CORE_CRYPTO_VRF_VRF_TYPES_HPP -#include "common/blob.hpp" -#include "common/buffer.hpp" -#include "crypto/bls/bls_types.hpp" -#include "crypto/randomness/randomness_types.hpp" -#include "primitives/address/address.hpp" +#include "filecoin/common/blob.hpp" +#include "filecoin/common/buffer.hpp" +#include "filecoin/crypto/bls/bls_types.hpp" +#include "filecoin/crypto/randomness/randomness_types.hpp" +#include "filecoin/primitives/address/address.hpp" namespace fc::crypto::vrf { diff --git a/core/fslock/fslock.hpp b/include/filecoin/fslock/fslock.hpp similarity index 94% rename from core/fslock/fslock.hpp rename to include/filecoin/fslock/fslock.hpp index e9eaac81c2..1486a8060d 100644 --- a/core/fslock/fslock.hpp +++ b/include/filecoin/fslock/fslock.hpp @@ -8,7 +8,7 @@ #include #include -#include "common/outcome.hpp" +#include "filecoin/common/outcome.hpp" namespace fc::fslock { class Locker { diff --git a/core/fslock/fslock_error.hpp b/include/filecoin/fslock/fslock_error.hpp similarity index 92% rename from core/fslock/fslock_error.hpp rename to include/filecoin/fslock/fslock_error.hpp index 07271392ac..d09139ca38 100644 --- a/core/fslock/fslock_error.hpp +++ b/include/filecoin/fslock/fslock_error.hpp @@ -6,7 +6,7 @@ #ifndef FILECOIN_CORE_FSLOCK_FSLOCK_ERROR_HPP #define FILECOIN_CORE_FSLOCK_FSLOCK_ERROR_HPP -#include "common/outcome.hpp" +#include "filecoin/common/outcome.hpp" namespace fc::fslock { diff --git a/core/power/impl/power_table_hamt.hpp b/include/filecoin/power/impl/power_table_hamt.hpp similarity index 95% rename from core/power/impl/power_table_hamt.hpp rename to include/filecoin/power/impl/power_table_hamt.hpp index 3cdede3c66..aa3186716b 100644 --- a/core/power/impl/power_table_hamt.hpp +++ b/include/filecoin/power/impl/power_table_hamt.hpp @@ -6,8 +6,8 @@ #ifndef CPP_FILECOIN_POWER_POWER_TABLE_HAMT_HPP #define CPP_FILECOIN_POWER_POWER_TABLE_HAMT_HPP -#include "power/power_table.hpp" -#include "storage/hamt/hamt.hpp" +#include "filecoin/power/power_table.hpp" +#include "filecoin/storage/hamt/hamt.hpp" namespace fc::power { diff --git a/core/power/impl/power_table_impl.hpp b/include/filecoin/power/impl/power_table_impl.hpp similarity index 96% rename from core/power/impl/power_table_impl.hpp rename to include/filecoin/power/impl/power_table_impl.hpp index 8aa3d74316..1836845c96 100644 --- a/core/power/impl/power_table_impl.hpp +++ b/include/filecoin/power/impl/power_table_impl.hpp @@ -7,7 +7,7 @@ #define FILECOIN_CORE_STORAGE_POWER_TABLE_IMPL_HPP #include -#include "power/power_table.hpp" +#include "filecoin/power/power_table.hpp" namespace fc::power { diff --git a/core/power/power_table.hpp b/include/filecoin/power/power_table.hpp similarity index 93% rename from core/power/power_table.hpp rename to include/filecoin/power/power_table.hpp index 0b6165c970..5e717a659c 100644 --- a/core/power/power_table.hpp +++ b/include/filecoin/power/power_table.hpp @@ -6,9 +6,9 @@ #ifndef FILECOIN_CORE_POWER_TABLE_HPP #define FILECOIN_CORE_POWER_TABLE_HPP -#include "common/outcome.hpp" -#include "primitives/address/address.hpp" -#include "primitives/big_int.hpp" +#include "filecoin/common/outcome.hpp" +#include "filecoin/primitives/address/address.hpp" +#include "filecoin/primitives/big_int.hpp" namespace fc::power { diff --git a/core/power/power_table_error.hpp b/include/filecoin/power/power_table_error.hpp similarity index 92% rename from core/power/power_table_error.hpp rename to include/filecoin/power/power_table_error.hpp index 2e0f0c3f1d..203213beac 100644 --- a/core/power/power_table_error.hpp +++ b/include/filecoin/power/power_table_error.hpp @@ -6,7 +6,7 @@ #ifndef FILECOIN_CORE_POWER_POWER_TABLE_ERROR_HPP #define FILECOIN_CORE_POWER_POWER_TABLE_ERROR_HPP -#include "common/outcome.hpp" +#include "filecoin/common/outcome.hpp" namespace fc::power { diff --git a/core/primitives/address/address.hpp b/include/filecoin/primitives/address/address.hpp similarity index 95% rename from core/primitives/address/address.hpp rename to include/filecoin/primitives/address/address.hpp index fd452c4549..2aad83c2de 100644 --- a/core/primitives/address/address.hpp +++ b/include/filecoin/primitives/address/address.hpp @@ -9,9 +9,9 @@ #include #include -#include "common/blob.hpp" -#include "crypto/bls/bls_types.hpp" -#include "crypto/secp256k1/secp256k1_provider.hpp" +#include "filecoin/common/blob.hpp" +#include "filecoin/crypto/bls/bls_types.hpp" +#include "filecoin/crypto/secp256k1/secp256k1_provider.hpp" namespace fc::primitives::address { using Sec256k1PublicKey = libp2p::crypto::secp256k1::PublicKey; diff --git a/core/primitives/address/address_codec.hpp b/include/filecoin/primitives/address/address_codec.hpp similarity index 93% rename from core/primitives/address/address_codec.hpp rename to include/filecoin/primitives/address/address_codec.hpp index 9f30b9afec..54fe17ce30 100644 --- a/core/primitives/address/address_codec.hpp +++ b/include/filecoin/primitives/address/address_codec.hpp @@ -10,9 +10,9 @@ #include #include "address.hpp" -#include "codec/cbor/streams_annotation.hpp" -#include "common/outcome.hpp" -#include "common/outcome_throw.hpp" +#include "filecoin/codec/cbor/streams_annotation.hpp" +#include "filecoin/common/outcome.hpp" +#include "filecoin/common/outcome_throw.hpp" namespace fc::primitives::address { diff --git a/core/primitives/big_int.hpp b/include/filecoin/primitives/big_int.hpp similarity index 94% rename from core/primitives/big_int.hpp rename to include/filecoin/primitives/big_int.hpp index 0ef978b015..f772212b2b 100644 --- a/core/primitives/big_int.hpp +++ b/include/filecoin/primitives/big_int.hpp @@ -8,7 +8,7 @@ #include -#include "codec/cbor/streams_annotation.hpp" +#include "filecoin/codec/cbor/streams_annotation.hpp" namespace fc::primitives { using BigInt = boost::multiprecision::cpp_int; diff --git a/core/primitives/block/block.hpp b/include/filecoin/primitives/block/block.hpp similarity index 81% rename from core/primitives/block/block.hpp rename to include/filecoin/primitives/block/block.hpp index 635feb7655..02c78b9404 100644 --- a/core/primitives/block/block.hpp +++ b/include/filecoin/primitives/block/block.hpp @@ -9,18 +9,18 @@ #include #include -#include "codec/cbor/streams_annotation.hpp" -#include "crypto/signature/signature.hpp" -#include "primitives/address/address.hpp" -#include "primitives/address/address_codec.hpp" -#include "primitives/big_int.hpp" -#include "primitives/cid/cid.hpp" -#include "primitives/ticket/epost_ticket.hpp" -#include "primitives/ticket/epost_ticket_codec.hpp" -#include "primitives/ticket/ticket.hpp" -#include "primitives/ticket/ticket_codec.hpp" -#include "storage/ipld/ipld_block_common.hpp" -#include "vm/message/message.hpp" +#include "filecoin/codec/cbor/streams_annotation.hpp" +#include "filecoin/crypto/signature/signature.hpp" +#include "filecoin/primitives/address/address.hpp" +#include "filecoin/primitives/address/address_codec.hpp" +#include "filecoin/primitives/big_int.hpp" +#include "filecoin/primitives/cid/cid.hpp" +#include "filecoin/primitives/ticket/epost_ticket.hpp" +#include "filecoin/primitives/ticket/epost_ticket_codec.hpp" +#include "filecoin/primitives/ticket/ticket.hpp" +#include "filecoin/primitives/ticket/ticket_codec.hpp" +#include "filecoin/storage/ipld/ipld_block_common.hpp" +#include "filecoin/vm/message/message.hpp" namespace fc::primitives::block { using primitives::BigInt; diff --git a/core/primitives/boost_multiprecision.hpp b/include/filecoin/primitives/boost_multiprecision.hpp similarity index 100% rename from core/primitives/boost_multiprecision.hpp rename to include/filecoin/primitives/boost_multiprecision.hpp diff --git a/core/primitives/chain/chain.hpp b/include/filecoin/primitives/chain/chain.hpp similarity index 90% rename from core/primitives/chain/chain.hpp rename to include/filecoin/primitives/chain/chain.hpp index a57b79d3e7..4d644a2e11 100644 --- a/core/primitives/chain/chain.hpp +++ b/include/filecoin/primitives/chain/chain.hpp @@ -6,10 +6,10 @@ #ifndef CPP_FILECOIN_CORE_PRIMITIVES_CHAIN_CHAIN_HPP #define CPP_FILECOIN_CORE_PRIMITIVES_CHAIN_CHAIN_HPP -#include "common/outcome.hpp" -#include "crypto/randomness/randomness_types.hpp" -#include "primitives/chain_epoch/chain_epoch.hpp" -#include "primitives/tipset/tipset.hpp" +#include "filecoin/common/outcome.hpp" +#include "filecoin/crypto/randomness/randomness_types.hpp" +#include "filecoin/primitives/chain_epoch/chain_epoch.hpp" +#include "filecoin/primitives/tipset/tipset.hpp" namespace fc::primitives::chain { /** diff --git a/core/primitives/chain_epoch/chain_epoch.hpp b/include/filecoin/primitives/chain_epoch/chain_epoch.hpp similarity index 100% rename from core/primitives/chain_epoch/chain_epoch.hpp rename to include/filecoin/primitives/chain_epoch/chain_epoch.hpp diff --git a/core/primitives/chain_epoch/chain_epoch_codec.hpp b/include/filecoin/primitives/chain_epoch/chain_epoch_codec.hpp similarity index 88% rename from core/primitives/chain_epoch/chain_epoch_codec.hpp rename to include/filecoin/primitives/chain_epoch/chain_epoch_codec.hpp index ccddd40e98..3d96a0eb06 100644 --- a/core/primitives/chain_epoch/chain_epoch_codec.hpp +++ b/include/filecoin/primitives/chain_epoch/chain_epoch_codec.hpp @@ -8,7 +8,7 @@ #include -#include "primitives/chain_epoch/chain_epoch.hpp" +#include "filecoin/primitives/chain_epoch/chain_epoch.hpp" namespace fc::primitives::chain_epoch { std::string uvarintKey(uint64_t value); diff --git a/core/primitives/cid/cid.hpp b/include/filecoin/primitives/cid/cid.hpp similarity index 97% rename from core/primitives/cid/cid.hpp rename to include/filecoin/primitives/cid/cid.hpp index 5ff785298f..be9d2b8693 100644 --- a/core/primitives/cid/cid.hpp +++ b/include/filecoin/primitives/cid/cid.hpp @@ -8,7 +8,7 @@ #include -#include "common/outcome.hpp" +#include "filecoin/common/outcome.hpp" namespace fc { class CID : public libp2p::multi::ContentIdentifier { diff --git a/core/primitives/cid/cid_of_cbor.hpp b/include/filecoin/primitives/cid/cid_of_cbor.hpp similarity index 89% rename from core/primitives/cid/cid_of_cbor.hpp rename to include/filecoin/primitives/cid/cid_of_cbor.hpp index 7b26c6f2f8..bb8ffde9e1 100644 --- a/core/primitives/cid/cid_of_cbor.hpp +++ b/include/filecoin/primitives/cid/cid_of_cbor.hpp @@ -6,8 +6,8 @@ #ifndef CPP_FILECOIN_CORE_PRIMITIVES_CID_CID_OF_CBOR_HPP #define CPP_FILECOIN_CORE_PRIMITIVES_CID_CID_OF_CBOR_HPP -#include "primitives/cid/cid.hpp" -#include "codec/cbor/cbor.hpp" +#include "filecoin/primitives/cid/cid.hpp" +#include "filecoin/codec/cbor/cbor.hpp" namespace fc::primitives::cid { diff --git a/core/primitives/cid/comm_cid.hpp b/include/filecoin/primitives/cid/comm_cid.hpp similarity index 97% rename from core/primitives/cid/comm_cid.hpp rename to include/filecoin/primitives/cid/comm_cid.hpp index ec1b3888b7..d89be7d73d 100644 --- a/core/primitives/cid/comm_cid.hpp +++ b/include/filecoin/primitives/cid/comm_cid.hpp @@ -7,8 +7,8 @@ #define CPP_FILECOIN_COMM_CID_HPP #include -#include "common/blob.hpp" -#include "primitives/cid/cid.hpp" +#include "filecoin/common/blob.hpp" +#include "filecoin/primitives/cid/cid.hpp" namespace fc::common { // kCommitmentBytesLen is the number of bytes in a CommR, CommD, CommP, and diff --git a/core/primitives/cid/comm_cid_errors.hpp b/include/filecoin/primitives/cid/comm_cid_errors.hpp similarity index 93% rename from core/primitives/cid/comm_cid_errors.hpp rename to include/filecoin/primitives/cid/comm_cid_errors.hpp index 08eb4210db..0249112929 100644 --- a/core/primitives/cid/comm_cid_errors.hpp +++ b/include/filecoin/primitives/cid/comm_cid_errors.hpp @@ -7,7 +7,7 @@ #define CPP_FILECOIN_COMM_CID_ERRORS_HPP -#include "common/outcome.hpp" +#include "filecoin/common/outcome.hpp" namespace fc::common { diff --git a/core/primitives/cid/json_codec.hpp b/include/filecoin/primitives/cid/json_codec.hpp similarity index 87% rename from core/primitives/cid/json_codec.hpp rename to include/filecoin/primitives/cid/json_codec.hpp index 8589bb5a05..b1f2b19a42 100644 --- a/core/primitives/cid/json_codec.hpp +++ b/include/filecoin/primitives/cid/json_codec.hpp @@ -6,9 +6,9 @@ #ifndef CPP_FILECOIN_CORE_PRIMITIVES_CID_JSON_CODEC_HPP #define CPP_FILECOIN_CORE_PRIMITIVES_CID_JSON_CODEC_HPP -#include "common/outcome.hpp" -#include "primitives/cid/cid.hpp" -#include "common/buffer.hpp" +#include "filecoin/common/outcome.hpp" +#include "filecoin/primitives/cid/cid.hpp" +#include "filecoin/common/buffer.hpp" namespace fc::codec::json { enum class JsonCodecError : int { BAD_JSON = 1, WRONG_CID_ARRAY_FORMAT }; diff --git a/core/primitives/piece/piece.hpp b/include/filecoin/primitives/piece/piece.hpp similarity index 95% rename from core/primitives/piece/piece.hpp rename to include/filecoin/primitives/piece/piece.hpp index 36334ab6c3..9dc1dca977 100644 --- a/core/primitives/piece/piece.hpp +++ b/include/filecoin/primitives/piece/piece.hpp @@ -6,7 +6,7 @@ #ifndef CPP_FILECOIN_PIECE_HPP #define CPP_FILECOIN_PIECE_HPP -#include "primitives/cid/cid.hpp" +#include "filecoin/primitives/cid/cid.hpp" namespace fc::primitives::piece { diff --git a/core/primitives/piece/piece_error.hpp b/include/filecoin/primitives/piece/piece_error.hpp similarity index 93% rename from core/primitives/piece/piece_error.hpp rename to include/filecoin/primitives/piece/piece_error.hpp index 26814132a7..6cb404a93c 100644 --- a/core/primitives/piece/piece_error.hpp +++ b/include/filecoin/primitives/piece/piece_error.hpp @@ -6,7 +6,7 @@ #ifndef CPP_FILECOIN_PIECE_ERROR_HPP #define CPP_FILECOIN_PIECE_ERROR_HPP -#include "common/outcome.hpp" +#include "filecoin/common/outcome.hpp" namespace fc::primitives::piece { diff --git a/core/primitives/rle_bitset/rle_bitset.hpp b/include/filecoin/primitives/rle_bitset/rle_bitset.hpp similarity index 84% rename from core/primitives/rle_bitset/rle_bitset.hpp rename to include/filecoin/primitives/rle_bitset/rle_bitset.hpp index a0e709468a..e10c738a2b 100644 --- a/core/primitives/rle_bitset/rle_bitset.hpp +++ b/include/filecoin/primitives/rle_bitset/rle_bitset.hpp @@ -8,9 +8,9 @@ #include -#include "codec/cbor/streams_annotation.hpp" -#include "codec/rle/rle_plus.hpp" -#include "common/outcome_throw.hpp" +#include "filecoin/codec/cbor/streams_annotation.hpp" +#include "filecoin/codec/rle/rle_plus.hpp" +#include "filecoin/common/outcome_throw.hpp" namespace fc::primitives { struct RleBitset : public std::set { diff --git a/core/primitives/sector/sector.hpp b/include/filecoin/primitives/sector/sector.hpp similarity index 97% rename from core/primitives/sector/sector.hpp rename to include/filecoin/primitives/sector/sector.hpp index a7600a26e9..8a6e040622 100644 --- a/core/primitives/sector/sector.hpp +++ b/include/filecoin/primitives/sector/sector.hpp @@ -6,8 +6,8 @@ #ifndef CPP_FILECOIN_CORE_PROOFS_SECTOR_HPP #define CPP_FILECOIN_CORE_PROOFS_SECTOR_HPP -#include "primitives/cid/cid.hpp" -#include "primitives/types.hpp" +#include "filecoin/primitives/cid/cid.hpp" +#include "filecoin/primitives/types.hpp" namespace fc::primitives::sector { using common::Buffer; diff --git a/core/primitives/ticket/epost_ticket.hpp b/include/filecoin/primitives/ticket/epost_ticket.hpp similarity index 92% rename from core/primitives/ticket/epost_ticket.hpp rename to include/filecoin/primitives/ticket/epost_ticket.hpp index 4cb7aff8e7..9af1a86651 100644 --- a/core/primitives/ticket/epost_ticket.hpp +++ b/include/filecoin/primitives/ticket/epost_ticket.hpp @@ -6,9 +6,9 @@ #ifndef CPP_FILECOIN_CORE_PRIMITIVES_TICKET_EPOST_TICKET_HPP #define CPP_FILECOIN_CORE_PRIMITIVES_TICKET_EPOST_TICKET_HPP -#include "common/blob.hpp" -#include "common/buffer.hpp" -#include "crypto/vrf/vrf_types.hpp" +#include "filecoin/common/blob.hpp" +#include "filecoin/common/buffer.hpp" +#include "filecoin/crypto/vrf/vrf_types.hpp" namespace fc::primitives::ticket { /** diff --git a/core/primitives/ticket/epost_ticket_codec.hpp b/include/filecoin/primitives/ticket/epost_ticket_codec.hpp similarity index 91% rename from core/primitives/ticket/epost_ticket_codec.hpp rename to include/filecoin/primitives/ticket/epost_ticket_codec.hpp index 2f0ac3a009..5cfb2b2379 100644 --- a/core/primitives/ticket/epost_ticket_codec.hpp +++ b/include/filecoin/primitives/ticket/epost_ticket_codec.hpp @@ -8,10 +8,10 @@ #include -#include "codec/cbor/cbor.hpp" -#include "common/outcome.hpp" -#include "common/outcome_throw.hpp" -#include "primitives/ticket/epost_ticket.hpp" +#include "filecoin/codec/cbor/cbor.hpp" +#include "filecoin/common/outcome.hpp" +#include "filecoin/common/outcome_throw.hpp" +#include "filecoin/primitives/ticket/epost_ticket.hpp" namespace fc::primitives::ticket { enum class EPoSTTicketCodecError : int { diff --git a/core/primitives/ticket/ticket.hpp b/include/filecoin/primitives/ticket/ticket.hpp similarity index 85% rename from core/primitives/ticket/ticket.hpp rename to include/filecoin/primitives/ticket/ticket.hpp index 5a045a5aad..fe2b52bf74 100644 --- a/core/primitives/ticket/ticket.hpp +++ b/include/filecoin/primitives/ticket/ticket.hpp @@ -7,11 +7,11 @@ #define CPP_FILECOIN_CORE_PRIMITIVES_TICKET_TICKET_HPP #include -#include "common/blob.hpp" -#include "common/buffer.hpp" -#include "common/outcome.hpp" -#include "crypto/randomness/randomness_types.hpp" -#include "crypto/vrf/vrf_types.hpp" +#include "filecoin/common/blob.hpp" +#include "filecoin/common/buffer.hpp" +#include "filecoin/common/outcome.hpp" +#include "filecoin/crypto/randomness/randomness_types.hpp" +#include "filecoin/crypto/vrf/vrf_types.hpp" namespace fc::primitives::ticket { diff --git a/core/primitives/ticket/ticket_codec.hpp b/include/filecoin/primitives/ticket/ticket_codec.hpp similarity index 88% rename from core/primitives/ticket/ticket_codec.hpp rename to include/filecoin/primitives/ticket/ticket_codec.hpp index 35e9dfddd7..91616a9425 100644 --- a/core/primitives/ticket/ticket_codec.hpp +++ b/include/filecoin/primitives/ticket/ticket_codec.hpp @@ -8,10 +8,10 @@ #include -#include "codec/cbor/cbor.hpp" -#include "common/outcome.hpp" -#include "common/outcome_throw.hpp" -#include "primitives/ticket/ticket.hpp" +#include "filecoin/codec/cbor/cbor.hpp" +#include "filecoin/common/outcome.hpp" +#include "filecoin/common/outcome_throw.hpp" +#include "filecoin/primitives/ticket/ticket.hpp" namespace fc::primitives::ticket { enum class TicketCodecError : int { diff --git a/core/primitives/tipset/tipset.hpp b/include/filecoin/primitives/tipset/tipset.hpp similarity index 89% rename from core/primitives/tipset/tipset.hpp rename to include/filecoin/primitives/tipset/tipset.hpp index 7263e9a544..b176b7c885 100644 --- a/core/primitives/tipset/tipset.hpp +++ b/include/filecoin/primitives/tipset/tipset.hpp @@ -7,12 +7,12 @@ #define CPP_FILECOIN_CORE_PRIMITIVES_TIPSET_TIPSET_HPP #include -#include "common/outcome.hpp" -#include "common/outcome_throw.hpp" -#include "primitives/block/block.hpp" -#include "primitives/cid/cid.hpp" -#include "primitives/ticket/ticket.hpp" -#include "primitives/tipset/tipset_key.hpp" +#include "filecoin/common/outcome.hpp" +#include "filecoin/common/outcome_throw.hpp" +#include "filecoin/primitives/block/block.hpp" +#include "filecoin/primitives/cid/cid.hpp" +#include "filecoin/primitives/ticket/ticket.hpp" +#include "filecoin/primitives/tipset/tipset_key.hpp" namespace fc::primitives::tipset { diff --git a/core/primitives/tipset/tipset_key.hpp b/include/filecoin/primitives/tipset/tipset_key.hpp similarity index 94% rename from core/primitives/tipset/tipset_key.hpp rename to include/filecoin/primitives/tipset/tipset_key.hpp index 9332f327da..83407721c1 100644 --- a/core/primitives/tipset/tipset_key.hpp +++ b/include/filecoin/primitives/tipset/tipset_key.hpp @@ -6,8 +6,8 @@ #ifndef CPP_FILECOIN_CORE_PRIMITIVES_TIPSET_TIPSET_KEY_HPP #define CPP_FILECOIN_CORE_PRIMITIVES_TIPSET_TIPSET_KEY_HPP -#include "common/buffer.hpp" -#include "primitives/cid/cid.hpp" +#include "filecoin/common/buffer.hpp" +#include "filecoin/primitives/cid/cid.hpp" namespace fc::primitives::tipset { /** diff --git a/core/primitives/types.hpp b/include/filecoin/primitives/types.hpp similarity index 82% rename from core/primitives/types.hpp rename to include/filecoin/primitives/types.hpp index ceced6d1fd..d00a89d501 100644 --- a/core/primitives/types.hpp +++ b/include/filecoin/primitives/types.hpp @@ -8,9 +8,9 @@ #include -#include "codec/cbor/streams_annotation.hpp" -#include "primitives/big_int.hpp" -#include "primitives/chain_epoch/chain_epoch.hpp" +#include "filecoin/codec/cbor/streams_annotation.hpp" +#include "filecoin/primitives/big_int.hpp" +#include "filecoin/primitives/chain_epoch/chain_epoch.hpp" namespace fc::primitives { using ActorId = uint64_t; diff --git a/core/proofs/proof_param_provider.hpp b/include/filecoin/proofs/proof_param_provider.hpp similarity index 92% rename from core/proofs/proof_param_provider.hpp rename to include/filecoin/proofs/proof_param_provider.hpp index 7f84b51a25..1a7b3f0631 100644 --- a/core/proofs/proof_param_provider.hpp +++ b/include/filecoin/proofs/proof_param_provider.hpp @@ -6,8 +6,8 @@ #ifndef CPP_FILECOIN_PROOF_PARAM_PROVIDER_HPP #define CPP_FILECOIN_PROOF_PARAM_PROVIDER_HPP -#include "common/logger.hpp" -#include "common/outcome.hpp" +#include "filecoin/common/logger.hpp" +#include "filecoin/common/outcome.hpp" #include "gsl/span" namespace fc::proofs { diff --git a/core/proofs/proof_param_provider_error.hpp b/include/filecoin/proofs/proof_param_provider_error.hpp similarity index 94% rename from core/proofs/proof_param_provider_error.hpp rename to include/filecoin/proofs/proof_param_provider_error.hpp index cbd7d53290..905d860f33 100644 --- a/core/proofs/proof_param_provider_error.hpp +++ b/include/filecoin/proofs/proof_param_provider_error.hpp @@ -6,7 +6,7 @@ #ifndef FILECOIN_CORE_PROOFS_PROOF_PARAM_PROVIDER_ERROR_HPP #define FILECOIN_CORE_PROOFS_PROOF_PARAM_PROVIDER_ERROR_HPP -#include "common/outcome.hpp" +#include "filecoin/common/outcome.hpp" namespace fc::proofs { diff --git a/core/proofs/proofs.hpp b/include/filecoin/proofs/proofs.hpp similarity index 94% rename from core/proofs/proofs.hpp rename to include/filecoin/proofs/proofs.hpp index 493f661800..a6d56f26e9 100644 --- a/core/proofs/proofs.hpp +++ b/include/filecoin/proofs/proofs.hpp @@ -7,13 +7,13 @@ #define CPP_FILECOIN_CORE_PROOFS_HPP #include -#include "common/blob.hpp" -#include "common/logger.hpp" -#include "common/outcome.hpp" -#include "crypto/randomness/randomness_types.hpp" -#include "primitives/cid/cid.hpp" -#include "primitives/piece/piece.hpp" -#include "primitives/sector/sector.hpp" +#include "filecoin/common/blob.hpp" +#include "filecoin/common/logger.hpp" +#include "filecoin/common/outcome.hpp" +#include "filecoin/crypto/randomness/randomness_types.hpp" +#include "filecoin/primitives/cid/cid.hpp" +#include "filecoin/primitives/piece/piece.hpp" +#include "filecoin/primitives/sector/sector.hpp" namespace fc::proofs { diff --git a/core/proofs/proofs_error.hpp b/include/filecoin/proofs/proofs_error.hpp similarity index 93% rename from core/proofs/proofs_error.hpp rename to include/filecoin/proofs/proofs_error.hpp index 67b024f3d4..dc78a213dd 100644 --- a/core/proofs/proofs_error.hpp +++ b/include/filecoin/proofs/proofs_error.hpp @@ -6,7 +6,7 @@ #ifndef FILECOIN_CORE_PROOFS_PROOFS_ERROR_HPP #define FILECOIN_CORE_PROOFS_PROOFS_ERROR_HPP -#include "common/outcome.hpp" +#include "filecoin/common/outcome.hpp" namespace fc::proofs { diff --git a/core/storage/amt/amt.hpp b/include/filecoin/storage/amt/amt.hpp similarity index 94% rename from core/storage/amt/amt.hpp rename to include/filecoin/storage/amt/amt.hpp index 4f640ae522..7d1de521bb 100644 --- a/core/storage/amt/amt.hpp +++ b/include/filecoin/storage/amt/amt.hpp @@ -8,13 +8,13 @@ #include -#include "codec/cbor/cbor.hpp" -#include "common/outcome_throw.hpp" -#include "common/visitor.hpp" -#include "common/which.hpp" -#include "primitives/cid/cid.hpp" -#include "storage/ipfs/datastore.hpp" -#include "storage/ipld/ipld_block_common.hpp" +#include "filecoin/codec/cbor/cbor.hpp" +#include "filecoin/common/outcome_throw.hpp" +#include "filecoin/common/visitor.hpp" +#include "filecoin/common/which.hpp" +#include "filecoin/primitives/cid/cid.hpp" +#include "filecoin/storage/ipfs/datastore.hpp" +#include "filecoin/storage/ipld/ipld_block_common.hpp" namespace fc::storage::amt { enum class AmtError { diff --git a/core/storage/buffer_map.hpp b/include/filecoin/storage/buffer_map.hpp similarity index 79% rename from core/storage/buffer_map.hpp rename to include/filecoin/storage/buffer_map.hpp index 573c05b087..5a01927de2 100644 --- a/core/storage/buffer_map.hpp +++ b/include/filecoin/storage/buffer_map.hpp @@ -15,10 +15,10 @@ #include -#include "common/buffer.hpp" -#include "storage/face/generic_map.hpp" -#include "storage/face/persistent_map.hpp" -#include "storage/face/write_batch.hpp" +#include "filecoin/common/buffer.hpp" +#include "filecoin/storage/face/generic_map.hpp" +#include "filecoin/storage/face/persistent_map.hpp" +#include "filecoin/storage/face/write_batch.hpp" namespace fc::storage { diff --git a/core/storage/chain/chain_data_store.hpp b/include/filecoin/storage/chain/chain_data_store.hpp similarity index 95% rename from core/storage/chain/chain_data_store.hpp rename to include/filecoin/storage/chain/chain_data_store.hpp index eef2ec48d3..5d8aa3a09d 100644 --- a/core/storage/chain/chain_data_store.hpp +++ b/include/filecoin/storage/chain/chain_data_store.hpp @@ -6,7 +6,7 @@ #ifndef CPP_FILECOIN_CORE_STORAGE_CHAIN_CHAIN_DATA_STORE_HPP #define CPP_FILECOIN_CORE_STORAGE_CHAIN_CHAIN_DATA_STORE_HPP -#include "storage/chain/datastore_key.hpp" +#include "filecoin/storage/chain/datastore_key.hpp" namespace fc::storage::blockchain { diff --git a/core/storage/chain/chain_store.hpp b/include/filecoin/storage/chain/chain_store.hpp similarity index 94% rename from core/storage/chain/chain_store.hpp rename to include/filecoin/storage/chain/chain_store.hpp index a8c8191f2e..a6d321a17e 100644 --- a/core/storage/chain/chain_store.hpp +++ b/include/filecoin/storage/chain/chain_store.hpp @@ -6,8 +6,8 @@ #ifndef CPP_FILECOIN_CORE_STORAGE_CHAIN_CHAIN_STORE_HPP #define CPP_FILECOIN_CORE_STORAGE_CHAIN_CHAIN_STORE_HPP -#include "primitives/block/block.hpp" -#include "primitives/tipset/tipset.hpp" +#include "filecoin/primitives/block/block.hpp" +#include "filecoin/primitives/tipset/tipset.hpp" namespace fc::storage::blockchain { diff --git a/core/storage/chain/datastore_key.hpp b/include/filecoin/storage/chain/datastore_key.hpp similarity index 93% rename from core/storage/chain/datastore_key.hpp rename to include/filecoin/storage/chain/datastore_key.hpp index 45281eca4d..5e3561ab7c 100644 --- a/core/storage/chain/datastore_key.hpp +++ b/include/filecoin/storage/chain/datastore_key.hpp @@ -8,8 +8,8 @@ #include -#include "codec/cbor/streams_annotation.hpp" -#include "common/outcome.hpp" +#include "filecoin/codec/cbor/streams_annotation.hpp" +#include "filecoin/common/outcome.hpp" namespace fc::storage { /** diff --git a/core/storage/chain/impl/chain_data_store_impl.hpp b/include/filecoin/storage/chain/impl/chain_data_store_impl.hpp similarity index 89% rename from core/storage/chain/impl/chain_data_store_impl.hpp rename to include/filecoin/storage/chain/impl/chain_data_store_impl.hpp index 534d5f7ca6..c520fe2ba5 100644 --- a/core/storage/chain/impl/chain_data_store_impl.hpp +++ b/include/filecoin/storage/chain/impl/chain_data_store_impl.hpp @@ -6,8 +6,8 @@ #ifndef CPP_FILECOIN_CORE_STORAGE_CHAIN_IMPL_CHAIN_DATA_STORE_IMPL_HPP #define CPP_FILECOIN_CORE_STORAGE_CHAIN_IMPL_CHAIN_DATA_STORE_IMPL_HPP -#include "storage/chain/chain_data_store.hpp" -#include "storage/ipfs/datastore.hpp" +#include "filecoin/storage/chain/chain_data_store.hpp" +#include "filecoin/storage/ipfs/datastore.hpp" namespace fc::storage::blockchain { diff --git a/core/storage/chain/impl/chain_store_impl.hpp b/include/filecoin/storage/chain/impl/chain_store_impl.hpp similarity index 85% rename from core/storage/chain/impl/chain_store_impl.hpp rename to include/filecoin/storage/chain/impl/chain_store_impl.hpp index d70818f27e..adbd317680 100644 --- a/core/storage/chain/impl/chain_store_impl.hpp +++ b/include/filecoin/storage/chain/impl/chain_store_impl.hpp @@ -8,16 +8,16 @@ #include -#include "blockchain/block_validator.hpp" -#include "blockchain/weight_calculator.hpp" -#include "common/logger.hpp" -#include "common/outcome.hpp" -#include "crypto/randomness/chain_randomness_provider.hpp" -#include "crypto/randomness/randomness_types.hpp" -#include "primitives/cid/cid.hpp" -#include "storage/chain/chain_data_store.hpp" -#include "storage/chain/chain_store.hpp" -#include "storage/ipfs/impl/ipfs_block_service.hpp" +#include "filecoin/blockchain/block_validator.hpp" +#include "filecoin/blockchain/weight_calculator.hpp" +#include "filecoin/common/logger.hpp" +#include "filecoin/common/outcome.hpp" +#include "filecoin/crypto/randomness/chain_randomness_provider.hpp" +#include "filecoin/crypto/randomness/randomness_types.hpp" +#include "filecoin/primitives/cid/cid.hpp" +#include "filecoin/storage/chain/chain_data_store.hpp" +#include "filecoin/storage/chain/chain_store.hpp" +#include "filecoin/storage/ipfs/impl/ipfs_block_service.hpp" namespace fc::storage::blockchain { diff --git a/core/storage/config/config.hpp b/include/filecoin/storage/config/config.hpp similarity index 95% rename from core/storage/config/config.hpp rename to include/filecoin/storage/config/config.hpp index 85167245d3..8952aab766 100644 --- a/core/storage/config/config.hpp +++ b/include/filecoin/storage/config/config.hpp @@ -9,8 +9,8 @@ #include #include -#include "common/outcome.hpp" -#include "storage/config/config_error.hpp" +#include "filecoin/common/outcome.hpp" +#include "filecoin/storage/config/config_error.hpp" namespace fc::storage::config { diff --git a/core/storage/config/config_error.hpp b/include/filecoin/storage/config/config_error.hpp similarity index 93% rename from core/storage/config/config_error.hpp rename to include/filecoin/storage/config/config_error.hpp index 9f831e8989..17dc90a14f 100644 --- a/core/storage/config/config_error.hpp +++ b/include/filecoin/storage/config/config_error.hpp @@ -6,7 +6,7 @@ #ifndef FILECOIN_CORE_STORAGE_CONFIG_ERROR_HPP #define FILECOIN_CORE_STORAGE_CONFIG_ERROR_HPP -#include "common/outcome.hpp" +#include "filecoin/common/outcome.hpp" namespace fc::storage::config { diff --git a/core/storage/config/config_validator.hpp b/include/filecoin/storage/config/config_validator.hpp similarity index 87% rename from core/storage/config/config_validator.hpp rename to include/filecoin/storage/config/config_validator.hpp index e37a235f90..aa87b9f97a 100644 --- a/core/storage/config/config_validator.hpp +++ b/include/filecoin/storage/config/config_validator.hpp @@ -6,8 +6,8 @@ #ifndef CPP_FILECOIN_CORE_STORAGE_CONFIG_VALIDATOR_HPP #define CPP_FILECOIN_CORE_STORAGE_CONFIG_VALIDATOR_HPP -#include "common/outcome.hpp" -#include "storage/config/config.hpp" +#include "filecoin/common/outcome.hpp" +#include "filecoin/storage/config/config.hpp" namespace fc::storage::config { diff --git a/core/storage/face/generic_iterator.hpp b/include/filecoin/storage/face/generic_iterator.hpp similarity index 100% rename from core/storage/face/generic_iterator.hpp rename to include/filecoin/storage/face/generic_iterator.hpp diff --git a/core/storage/face/generic_list.hpp b/include/filecoin/storage/face/generic_list.hpp similarity index 98% rename from core/storage/face/generic_list.hpp rename to include/filecoin/storage/face/generic_list.hpp index bac19dec13..49c27d920f 100644 --- a/core/storage/face/generic_list.hpp +++ b/include/filecoin/storage/face/generic_list.hpp @@ -9,7 +9,7 @@ #include #include -#include "storage/face/generic_iterator.hpp" +#include "filecoin/storage/face/generic_iterator.hpp" namespace fc::face { diff --git a/core/storage/face/generic_map.hpp b/include/filecoin/storage/face/generic_map.hpp similarity index 80% rename from core/storage/face/generic_map.hpp rename to include/filecoin/storage/face/generic_map.hpp index c8ff1cbf50..8a340cc361 100644 --- a/core/storage/face/generic_map.hpp +++ b/include/filecoin/storage/face/generic_map.hpp @@ -6,9 +6,9 @@ #ifndef CPP_FILECOIN_GENERIC_MAP_HPP #define CPP_FILECOIN_GENERIC_MAP_HPP -#include "storage/face/iterable_map.hpp" -#include "storage/face/readable_map.hpp" -#include "storage/face/writeable_map.hpp" +#include "filecoin/storage/face/iterable_map.hpp" +#include "filecoin/storage/face/readable_map.hpp" +#include "filecoin/storage/face/writeable_map.hpp" namespace fc::storage::face { diff --git a/core/storage/face/iterable_map.hpp b/include/filecoin/storage/face/iterable_map.hpp similarity index 93% rename from core/storage/face/iterable_map.hpp rename to include/filecoin/storage/face/iterable_map.hpp index 9a64648f22..c61df6cf9f 100644 --- a/core/storage/face/iterable_map.hpp +++ b/include/filecoin/storage/face/iterable_map.hpp @@ -8,7 +8,7 @@ #include -#include "storage/face/map_cursor.hpp" +#include "filecoin/storage/face/map_cursor.hpp" namespace fc::storage::face { diff --git a/core/storage/face/map_cursor.hpp b/include/filecoin/storage/face/map_cursor.hpp similarity index 100% rename from core/storage/face/map_cursor.hpp rename to include/filecoin/storage/face/map_cursor.hpp diff --git a/core/storage/face/persistent_map.hpp b/include/filecoin/storage/face/persistent_map.hpp similarity index 88% rename from core/storage/face/persistent_map.hpp rename to include/filecoin/storage/face/persistent_map.hpp index 6243197adb..87a4faf1b8 100644 --- a/core/storage/face/persistent_map.hpp +++ b/include/filecoin/storage/face/persistent_map.hpp @@ -6,8 +6,8 @@ #ifndef CPP_FILECOIN_PERSISTENT_MAP_HPP #define CPP_FILECOIN_PERSISTENT_MAP_HPP -#include "storage/face/generic_map.hpp" -#include "storage/face/write_batch.hpp" +#include "filecoin/storage/face/generic_map.hpp" +#include "filecoin/storage/face/write_batch.hpp" namespace fc::storage::face { diff --git a/core/storage/face/readable_map.hpp b/include/filecoin/storage/face/readable_map.hpp similarity index 90% rename from core/storage/face/readable_map.hpp rename to include/filecoin/storage/face/readable_map.hpp index 0fe5b167fd..3752ea8f6e 100644 --- a/core/storage/face/readable_map.hpp +++ b/include/filecoin/storage/face/readable_map.hpp @@ -6,8 +6,8 @@ #ifndef CPP_FILECOIN_READABLE_MAP_HPP #define CPP_FILECOIN_READABLE_MAP_HPP -#include "common/outcome.hpp" -#include "storage/face/map_cursor.hpp" +#include "filecoin/common/outcome.hpp" +#include "filecoin/storage/face/map_cursor.hpp" namespace fc::storage::face { diff --git a/core/storage/face/write_batch.hpp b/include/filecoin/storage/face/write_batch.hpp similarity index 93% rename from core/storage/face/write_batch.hpp rename to include/filecoin/storage/face/write_batch.hpp index 9cfade1ae5..233df90167 100644 --- a/core/storage/face/write_batch.hpp +++ b/include/filecoin/storage/face/write_batch.hpp @@ -6,7 +6,7 @@ #ifndef CPP_FILECOIN_WRITE_BATCH_HPP #define CPP_FILECOIN_WRITE_BATCH_HPP -#include "storage/face/writeable_map.hpp" +#include "filecoin/storage/face/writeable_map.hpp" namespace fc::storage::face { diff --git a/core/storage/face/writeable_map.hpp b/include/filecoin/storage/face/writeable_map.hpp similarity index 96% rename from core/storage/face/writeable_map.hpp rename to include/filecoin/storage/face/writeable_map.hpp index f838603d2e..627c512af1 100644 --- a/core/storage/face/writeable_map.hpp +++ b/include/filecoin/storage/face/writeable_map.hpp @@ -6,7 +6,7 @@ #ifndef CPP_FILECOIN_WRITEABLE_MAP_HPP #define CPP_FILECOIN_WRITEABLE_MAP_HPP -#include "common/outcome.hpp" +#include "filecoin/common/outcome.hpp" namespace fc::storage::face { diff --git a/core/storage/filestore/file.hpp b/include/filecoin/storage/filestore/file.hpp similarity index 95% rename from core/storage/filestore/file.hpp rename to include/filecoin/storage/filestore/file.hpp index 8b452575b4..e39f5a48d1 100644 --- a/core/storage/filestore/file.hpp +++ b/include/filecoin/storage/filestore/file.hpp @@ -8,8 +8,8 @@ #include -#include "common/outcome.hpp" -#include "storage/filestore/path.hpp" +#include "filecoin/common/outcome.hpp" +#include "filecoin/storage/filestore/path.hpp" namespace fc::storage::filestore { diff --git a/core/storage/filestore/filestore.hpp b/include/filecoin/storage/filestore/filestore.hpp similarity index 92% rename from core/storage/filestore/filestore.hpp rename to include/filecoin/storage/filestore/filestore.hpp index f0b96f8808..84dcf17703 100644 --- a/core/storage/filestore/filestore.hpp +++ b/include/filecoin/storage/filestore/filestore.hpp @@ -10,9 +10,9 @@ #include #include -#include "common/outcome.hpp" -#include "storage/filestore/file.hpp" -#include "storage/filestore/path.hpp" +#include "filecoin/common/outcome.hpp" +#include "filecoin/storage/filestore/file.hpp" +#include "filecoin/storage/filestore/path.hpp" namespace fc::storage::filestore { diff --git a/core/storage/filestore/filestore_error.hpp b/include/filecoin/storage/filestore/filestore_error.hpp similarity index 94% rename from core/storage/filestore/filestore_error.hpp rename to include/filecoin/storage/filestore/filestore_error.hpp index 94dd72360a..64c108b375 100644 --- a/core/storage/filestore/filestore_error.hpp +++ b/include/filecoin/storage/filestore/filestore_error.hpp @@ -6,7 +6,7 @@ #ifndef FILECOIN_CORE_STORAGE_FILESTORE_FILESTORE_ERROR_HPP #define FILECOIN_CORE_STORAGE_FILESTORE_FILESTORE_ERROR_HPP -#include "common/outcome.hpp" +#include "filecoin/common/outcome.hpp" namespace fc::storage::filestore { diff --git a/core/storage/filestore/impl/filesystem/filesystem_file.hpp b/include/filecoin/storage/filestore/impl/filesystem/filesystem_file.hpp similarity index 96% rename from core/storage/filestore/impl/filesystem/filesystem_file.hpp rename to include/filecoin/storage/filestore/impl/filesystem/filesystem_file.hpp index e4339cb7c7..185bd20545 100644 --- a/core/storage/filestore/impl/filesystem/filesystem_file.hpp +++ b/include/filecoin/storage/filestore/impl/filesystem/filesystem_file.hpp @@ -9,7 +9,7 @@ #include #include "boost/filesystem.hpp" -#include "storage/filestore/file.hpp" +#include "filecoin/storage/filestore/file.hpp" namespace fc::storage::filestore { diff --git a/core/storage/filestore/impl/filesystem/filesystem_filestore.hpp b/include/filecoin/storage/filestore/impl/filesystem/filesystem_filestore.hpp similarity index 95% rename from core/storage/filestore/impl/filesystem/filesystem_filestore.hpp rename to include/filecoin/storage/filestore/impl/filesystem/filesystem_filestore.hpp index f24794c196..23c5eb070c 100644 --- a/core/storage/filestore/impl/filesystem/filesystem_filestore.hpp +++ b/include/filecoin/storage/filestore/impl/filesystem/filesystem_filestore.hpp @@ -6,7 +6,7 @@ #ifndef FILECOIN_CORE_STORAGE_FILESTORE_FILESYSTEM_FILESTORE_HPP #define FILECOIN_CORE_STORAGE_FILESTORE_FILESYSTEM_FILESTORE_HPP -#include "storage/filestore/filestore.hpp" +#include "filecoin/storage/filestore/filestore.hpp" namespace fc::storage::filestore { diff --git a/core/storage/filestore/path.hpp b/include/filecoin/storage/filestore/path.hpp similarity index 100% rename from core/storage/filestore/path.hpp rename to include/filecoin/storage/filestore/path.hpp diff --git a/core/storage/hamt/hamt.hpp b/include/filecoin/storage/hamt/hamt.hpp similarity index 95% rename from core/storage/hamt/hamt.hpp rename to include/filecoin/storage/hamt/hamt.hpp index 1a2cf05344..0312d351a5 100644 --- a/core/storage/hamt/hamt.hpp +++ b/include/filecoin/storage/hamt/hamt.hpp @@ -12,12 +12,12 @@ #include #include -#include "codec/cbor/cbor.hpp" -#include "codec/cbor/streams_annotation.hpp" -#include "common/outcome_throw.hpp" -#include "common/visitor.hpp" -#include "primitives/cid/cid.hpp" -#include "storage/ipfs/datastore.hpp" +#include "filecoin/codec/cbor/cbor.hpp" +#include "filecoin/codec/cbor/streams_annotation.hpp" +#include "filecoin/common/outcome_throw.hpp" +#include "filecoin/common/visitor.hpp" +#include "filecoin/primitives/cid/cid.hpp" +#include "filecoin/storage/ipfs/datastore.hpp" namespace fc::storage::hamt { enum class HamtError { EXPECTED_CID = 1, NOT_FOUND, MAX_DEPTH }; diff --git a/core/storage/in_memory/in_memory_batch.hpp b/include/filecoin/storage/in_memory/in_memory_batch.hpp similarity index 93% rename from core/storage/in_memory/in_memory_batch.hpp rename to include/filecoin/storage/in_memory/in_memory_batch.hpp index df35e1df3c..6c8582e59a 100644 --- a/core/storage/in_memory/in_memory_batch.hpp +++ b/include/filecoin/storage/in_memory/in_memory_batch.hpp @@ -6,8 +6,8 @@ #ifndef CPP_FILECOIN_IN_MEMORY_BATCH_HPP #define CPP_FILECOIN_IN_MEMORY_BATCH_HPP -#include "common/buffer.hpp" -#include "storage/in_memory/in_memory_storage.hpp" +#include "filecoin/common/buffer.hpp" +#include "filecoin/storage/in_memory/in_memory_storage.hpp" namespace fc::storage { using fc::common::Buffer; diff --git a/core/storage/in_memory/in_memory_storage.hpp b/include/filecoin/storage/in_memory/in_memory_storage.hpp similarity index 91% rename from core/storage/in_memory/in_memory_storage.hpp rename to include/filecoin/storage/in_memory/in_memory_storage.hpp index 80b420a855..46180f5715 100644 --- a/core/storage/in_memory/in_memory_storage.hpp +++ b/include/filecoin/storage/in_memory/in_memory_storage.hpp @@ -8,9 +8,9 @@ #include -#include "common/outcome.hpp" -#include "common/buffer.hpp" -#include "storage/face/persistent_map.hpp" +#include "filecoin/common/outcome.hpp" +#include "filecoin/common/buffer.hpp" +#include "filecoin/storage/face/persistent_map.hpp" namespace fc::storage { diff --git a/core/storage/ipfs/datastore.hpp b/include/filecoin/storage/ipfs/datastore.hpp similarity index 88% rename from core/storage/ipfs/datastore.hpp rename to include/filecoin/storage/ipfs/datastore.hpp index 83b784c257..42b8caace1 100644 --- a/core/storage/ipfs/datastore.hpp +++ b/include/filecoin/storage/ipfs/datastore.hpp @@ -8,12 +8,12 @@ #include -#include "codec/cbor/cbor.hpp" -#include "common/buffer.hpp" -#include "common/logger.hpp" -#include "common/outcome.hpp" -#include "primitives/cid/cid.hpp" -#include "storage/ipfs/ipfs_datastore_error.hpp" +#include "filecoin/codec/cbor/cbor.hpp" +#include "filecoin/common/buffer.hpp" +#include "filecoin/common/logger.hpp" +#include "filecoin/common/outcome.hpp" +#include "filecoin/primitives/cid/cid.hpp" +#include "filecoin/storage/ipfs/ipfs_datastore_error.hpp" namespace fc::storage::ipfs { diff --git a/core/storage/ipfs/impl/datastore_leveldb.hpp b/include/filecoin/storage/ipfs/impl/datastore_leveldb.hpp similarity index 91% rename from core/storage/ipfs/impl/datastore_leveldb.hpp rename to include/filecoin/storage/ipfs/impl/datastore_leveldb.hpp index eefcb3a166..f10ae75eff 100644 --- a/core/storage/ipfs/impl/datastore_leveldb.hpp +++ b/include/filecoin/storage/ipfs/impl/datastore_leveldb.hpp @@ -8,9 +8,9 @@ #include -#include "common/outcome.hpp" -#include "storage/ipfs/datastore.hpp" -#include "storage/leveldb/leveldb.hpp" +#include "filecoin/common/outcome.hpp" +#include "filecoin/storage/ipfs/datastore.hpp" +#include "filecoin/storage/leveldb/leveldb.hpp" namespace fc::storage::ipfs { diff --git a/core/storage/ipfs/impl/in_memory_datastore.hpp b/include/filecoin/storage/ipfs/impl/in_memory_datastore.hpp similarity index 95% rename from core/storage/ipfs/impl/in_memory_datastore.hpp rename to include/filecoin/storage/ipfs/impl/in_memory_datastore.hpp index 9fb9229360..29062d1864 100644 --- a/core/storage/ipfs/impl/in_memory_datastore.hpp +++ b/include/filecoin/storage/ipfs/impl/in_memory_datastore.hpp @@ -8,7 +8,7 @@ #include -#include "storage/ipfs/datastore.hpp" +#include "filecoin/storage/ipfs/datastore.hpp" namespace fc::storage::ipfs { diff --git a/core/storage/ipfs/impl/ipfs_block_service.hpp b/include/filecoin/storage/ipfs/impl/ipfs_block_service.hpp similarity index 95% rename from core/storage/ipfs/impl/ipfs_block_service.hpp rename to include/filecoin/storage/ipfs/impl/ipfs_block_service.hpp index 77a9ca8b12..0d267c98bf 100644 --- a/core/storage/ipfs/impl/ipfs_block_service.hpp +++ b/include/filecoin/storage/ipfs/impl/ipfs_block_service.hpp @@ -8,7 +8,7 @@ #include -#include "storage/ipfs/datastore.hpp" +#include "filecoin/storage/ipfs/datastore.hpp" namespace fc::storage::ipfs { class IpfsBlockService : public IpfsDatastore { diff --git a/core/storage/ipfs/ipfs_datastore_error.hpp b/include/filecoin/storage/ipfs/ipfs_datastore_error.hpp similarity index 93% rename from core/storage/ipfs/ipfs_datastore_error.hpp rename to include/filecoin/storage/ipfs/ipfs_datastore_error.hpp index 6d3e21bd3c..df79288b40 100644 --- a/core/storage/ipfs/ipfs_datastore_error.hpp +++ b/include/filecoin/storage/ipfs/ipfs_datastore_error.hpp @@ -6,7 +6,7 @@ #ifndef CPP_FILECOIN_CORE_STORAGE_IPFS_DATASTORE_ERROR_HPP #define CPP_FILECOIN_CORE_STORAGE_IPFS_DATASTORE_ERROR_HPP -#include "common/outcome.hpp" +#include "filecoin/common/outcome.hpp" namespace fc::storage::ipfs { diff --git a/core/storage/ipfs/merkledag/impl/leaf_impl.hpp b/include/filecoin/storage/ipfs/merkledag/impl/leaf_impl.hpp similarity index 95% rename from core/storage/ipfs/merkledag/impl/leaf_impl.hpp rename to include/filecoin/storage/ipfs/merkledag/impl/leaf_impl.hpp index f948b4c2e3..a61abd2e36 100644 --- a/core/storage/ipfs/merkledag/impl/leaf_impl.hpp +++ b/include/filecoin/storage/ipfs/merkledag/impl/leaf_impl.hpp @@ -6,7 +6,7 @@ #ifndef FILECOIN_STORAGE_IPFS_MERKLEDAG_LEAF_IMPL_HPP #define FILECOIN_STORAGE_IPFS_MERKLEDAG_LEAF_IMPL_HPP -#include "storage/ipfs/merkledag/leaf.hpp" +#include "filecoin/storage/ipfs/merkledag/leaf.hpp" #include #include diff --git a/core/storage/ipfs/merkledag/impl/merkledag_service_impl.hpp b/include/filecoin/storage/ipfs/merkledag/impl/merkledag_service_impl.hpp similarity index 90% rename from core/storage/ipfs/merkledag/impl/merkledag_service_impl.hpp rename to include/filecoin/storage/ipfs/merkledag/impl/merkledag_service_impl.hpp index 30b0c65a3c..7425f41057 100644 --- a/core/storage/ipfs/merkledag/impl/merkledag_service_impl.hpp +++ b/include/filecoin/storage/ipfs/merkledag/impl/merkledag_service_impl.hpp @@ -8,10 +8,10 @@ #include -#include "storage/ipfs/datastore.hpp" -#include "storage/ipfs/merkledag/impl/leaf_impl.hpp" -#include "storage/ipfs/merkledag/merkledag_service.hpp" -#include "storage/ipld/ipld_link.hpp" +#include "filecoin/storage/ipfs/datastore.hpp" +#include "filecoin/storage/ipfs/merkledag/impl/leaf_impl.hpp" +#include "filecoin/storage/ipfs/merkledag/merkledag_service.hpp" +#include "filecoin/storage/ipld/ipld_link.hpp" namespace fc::storage::ipfs::merkledag { using ipld::IPLDLink; diff --git a/core/storage/ipfs/merkledag/leaf.hpp b/include/filecoin/storage/ipfs/merkledag/leaf.hpp similarity index 94% rename from core/storage/ipfs/merkledag/leaf.hpp rename to include/filecoin/storage/ipfs/merkledag/leaf.hpp index 45f45b173b..2316d2da6f 100644 --- a/core/storage/ipfs/merkledag/leaf.hpp +++ b/include/filecoin/storage/ipfs/merkledag/leaf.hpp @@ -9,8 +9,8 @@ #include #include -#include "common/buffer.hpp" -#include "common/outcome.hpp" +#include "filecoin/common/buffer.hpp" +#include "filecoin/common/outcome.hpp" namespace fc::storage::ipfs::merkledag { class Leaf { diff --git a/core/storage/ipfs/merkledag/merkledag_service.hpp b/include/filecoin/storage/ipfs/merkledag/merkledag_service.hpp similarity index 94% rename from core/storage/ipfs/merkledag/merkledag_service.hpp rename to include/filecoin/storage/ipfs/merkledag/merkledag_service.hpp index 2d89dd6da4..0be27ae8be 100644 --- a/core/storage/ipfs/merkledag/merkledag_service.hpp +++ b/include/filecoin/storage/ipfs/merkledag/merkledag_service.hpp @@ -8,9 +8,9 @@ #include -#include "common/outcome.hpp" -#include "storage/ipfs/merkledag/leaf.hpp" -#include "storage/ipld/ipld_node.hpp" +#include "filecoin/common/outcome.hpp" +#include "filecoin/storage/ipfs/merkledag/leaf.hpp" +#include "filecoin/storage/ipld/ipld_node.hpp" namespace fc::storage::ipfs::merkledag { using ipld::IPLDNode; diff --git a/core/storage/ipld/impl/ipld_link_impl.hpp b/include/filecoin/storage/ipld/impl/ipld_link_impl.hpp similarity index 95% rename from core/storage/ipld/impl/ipld_link_impl.hpp rename to include/filecoin/storage/ipld/impl/ipld_link_impl.hpp index 345f613f99..f5a7628862 100644 --- a/core/storage/ipld/impl/ipld_link_impl.hpp +++ b/include/filecoin/storage/ipld/impl/ipld_link_impl.hpp @@ -10,7 +10,7 @@ #include #include -#include "storage/ipld/ipld_link.hpp" +#include "filecoin/storage/ipld/ipld_link.hpp" namespace fc::storage::ipld { class IPLDLinkImpl : public IPLDLink { diff --git a/core/storage/ipld/impl/ipld_node_decoder_pb.hpp b/include/filecoin/storage/ipld/impl/ipld_node_decoder_pb.hpp similarity index 95% rename from core/storage/ipld/impl/ipld_node_decoder_pb.hpp rename to include/filecoin/storage/ipld/impl/ipld_node_decoder_pb.hpp index 4577782ce1..11a5106f76 100644 --- a/core/storage/ipld/impl/ipld_node_decoder_pb.hpp +++ b/include/filecoin/storage/ipld/impl/ipld_node_decoder_pb.hpp @@ -9,8 +9,8 @@ #include #include -#include "common/buffer.hpp" -#include "common/outcome.hpp" +#include "filecoin/common/buffer.hpp" +#include "filecoin/common/outcome.hpp" #include "ipld_node.pb.h" //TODO: Sergey Kaprovich FIL-150 namespace fc::storage::ipld { diff --git a/core/storage/ipld/impl/ipld_node_encoder_pb.hpp b/include/filecoin/storage/ipld/impl/ipld_node_encoder_pb.hpp similarity index 93% rename from core/storage/ipld/impl/ipld_node_encoder_pb.hpp rename to include/filecoin/storage/ipld/impl/ipld_node_encoder_pb.hpp index 9a85419018..3aa15d74d9 100644 --- a/core/storage/ipld/impl/ipld_node_encoder_pb.hpp +++ b/include/filecoin/storage/ipld/impl/ipld_node_encoder_pb.hpp @@ -11,10 +11,10 @@ #include #include -#include "common/buffer.hpp" -#include "common/outcome.hpp" -#include "storage/ipld/impl/ipld_link_impl.hpp" -#include "storage/ipld/ipld_node.hpp" +#include "filecoin/common/buffer.hpp" +#include "filecoin/common/outcome.hpp" +#include "filecoin/storage/ipld/impl/ipld_link_impl.hpp" +#include "filecoin/storage/ipld/ipld_node.hpp" namespace fc::storage::ipld { /** diff --git a/core/storage/ipld/impl/ipld_node_impl.hpp b/include/filecoin/storage/ipld/impl/ipld_node_impl.hpp similarity index 87% rename from core/storage/ipld/impl/ipld_node_impl.hpp rename to include/filecoin/storage/ipld/impl/ipld_node_impl.hpp index d76c841f29..8404bc155c 100644 --- a/core/storage/ipld/impl/ipld_node_impl.hpp +++ b/include/filecoin/storage/ipld/impl/ipld_node_impl.hpp @@ -12,10 +12,10 @@ #include #include -#include "storage/ipld/impl/ipld_link_impl.hpp" -#include "storage/ipld/impl/ipld_node_encoder_pb.hpp" -#include "storage/ipld/ipld_block_common.hpp" -#include "storage/ipld/ipld_node.hpp" +#include "filecoin/storage/ipld/impl/ipld_link_impl.hpp" +#include "filecoin/storage/ipld/impl/ipld_node_encoder_pb.hpp" +#include "filecoin/storage/ipld/ipld_block_common.hpp" +#include "filecoin/storage/ipld/ipld_node.hpp" namespace fc::storage::ipld { class IPLDNodeImpl : public IPLDNode, diff --git a/core/storage/ipld/ipld_block.hpp b/include/filecoin/storage/ipld/ipld_block.hpp similarity index 90% rename from core/storage/ipld/ipld_block.hpp rename to include/filecoin/storage/ipld/ipld_block.hpp index 7e7926e470..3f5dc9e6df 100644 --- a/core/storage/ipld/ipld_block.hpp +++ b/include/filecoin/storage/ipld/ipld_block.hpp @@ -8,8 +8,8 @@ #include -#include "common/buffer.hpp" -#include "primitives/cid/cid.hpp" +#include "filecoin/common/buffer.hpp" +#include "filecoin/primitives/cid/cid.hpp" namespace fc::storage::ipld { /** diff --git a/core/storage/ipld/ipld_block_common.hpp b/include/filecoin/storage/ipld/ipld_block_common.hpp similarity index 90% rename from core/storage/ipld/ipld_block_common.hpp rename to include/filecoin/storage/ipld/ipld_block_common.hpp index 02168a1063..f98654e055 100644 --- a/core/storage/ipld/ipld_block_common.hpp +++ b/include/filecoin/storage/ipld/ipld_block_common.hpp @@ -12,10 +12,10 @@ #include #include #include -#include "common/buffer.hpp" -#include "crypto/hasher/hasher.hpp" -#include "primitives/cid/cid.hpp" -#include "storage/ipld/ipld_block.hpp" +#include "filecoin/common/buffer.hpp" +#include "filecoin/crypto/hasher/hasher.hpp" +#include "filecoin/primitives/cid/cid.hpp" +#include "filecoin/storage/ipld/ipld_block.hpp" namespace fc::storage::ipld { diff --git a/core/storage/ipld/ipld_link.hpp b/include/filecoin/storage/ipld/ipld_link.hpp similarity index 95% rename from core/storage/ipld/ipld_link.hpp rename to include/filecoin/storage/ipld/ipld_link.hpp index 3442266e1f..51e3df7861 100644 --- a/core/storage/ipld/ipld_link.hpp +++ b/include/filecoin/storage/ipld/ipld_link.hpp @@ -9,7 +9,7 @@ #include #include -#include "primitives/cid/cid.hpp" +#include "filecoin/primitives/cid/cid.hpp" namespace fc::storage::ipld { class IPLDLink { diff --git a/core/storage/ipld/ipld_node.hpp b/include/filecoin/storage/ipld/ipld_node.hpp similarity index 92% rename from core/storage/ipld/ipld_node.hpp rename to include/filecoin/storage/ipld/ipld_node.hpp index 0b2f717504..d488c8ccd5 100644 --- a/core/storage/ipld/ipld_node.hpp +++ b/include/filecoin/storage/ipld/ipld_node.hpp @@ -11,10 +11,10 @@ #include #include -#include "common/buffer.hpp" -#include "common/outcome.hpp" -#include "storage/ipld/ipld_block.hpp" -#include "storage/ipld/ipld_link.hpp" +#include "filecoin/common/buffer.hpp" +#include "filecoin/common/outcome.hpp" +#include "filecoin/storage/ipld/ipld_block.hpp" +#include "filecoin/storage/ipld/ipld_link.hpp" namespace fc::storage::ipld { /** diff --git a/core/storage/keystore/impl/filesystem/filesystem_keystore.hpp b/include/filecoin/storage/keystore/impl/filesystem/filesystem_keystore.hpp similarity index 92% rename from core/storage/keystore/impl/filesystem/filesystem_keystore.hpp rename to include/filecoin/storage/keystore/impl/filesystem/filesystem_keystore.hpp index 749866412d..1bc41c479d 100644 --- a/core/storage/keystore/impl/filesystem/filesystem_keystore.hpp +++ b/include/filecoin/storage/keystore/impl/filesystem/filesystem_keystore.hpp @@ -6,9 +6,9 @@ #ifndef FILECOIN_CORE_STORAGE_FILESYSTEM_KEYSTORE_HPP #define FILECOIN_CORE_STORAGE_FILESYSTEM_KEYSTORE_HPP -#include "storage/filestore/filestore.hpp" -#include "storage/filestore/path.hpp" -#include "storage/keystore/keystore.hpp" +#include "filecoin/storage/filestore/filestore.hpp" +#include "filecoin/storage/filestore/path.hpp" +#include "filecoin/storage/keystore/keystore.hpp" namespace fc::storage::keystore { diff --git a/core/storage/keystore/impl/in_memory/in_memory_keystore.hpp b/include/filecoin/storage/keystore/impl/in_memory/in_memory_keystore.hpp similarity index 96% rename from core/storage/keystore/impl/in_memory/in_memory_keystore.hpp rename to include/filecoin/storage/keystore/impl/in_memory/in_memory_keystore.hpp index d360965311..a35285c7fa 100644 --- a/core/storage/keystore/impl/in_memory/in_memory_keystore.hpp +++ b/include/filecoin/storage/keystore/impl/in_memory/in_memory_keystore.hpp @@ -8,7 +8,7 @@ #include -#include "storage/keystore/keystore.hpp" +#include "filecoin/storage/keystore/keystore.hpp" namespace fc::storage::keystore { diff --git a/core/storage/keystore/keystore.hpp b/include/filecoin/storage/keystore/keystore.hpp similarity index 90% rename from core/storage/keystore/keystore.hpp rename to include/filecoin/storage/keystore/keystore.hpp index bb0d75b3c2..30f56f31bd 100644 --- a/core/storage/keystore/keystore.hpp +++ b/include/filecoin/storage/keystore/keystore.hpp @@ -9,13 +9,13 @@ #include #include -#include "common/outcome.hpp" -#include "crypto/bls/bls_provider.hpp" -#include "crypto/bls/bls_types.hpp" -#include "crypto/secp256k1/secp256k1_provider.hpp" -#include "crypto/signature/signature.hpp" -#include "primitives/address/address.hpp" -#include "storage/keystore/keystore_error.hpp" +#include "filecoin/common/outcome.hpp" +#include "filecoin/crypto/bls/bls_provider.hpp" +#include "filecoin/crypto/bls/bls_types.hpp" +#include "filecoin/crypto/secp256k1/secp256k1_provider.hpp" +#include "filecoin/crypto/signature/signature.hpp" +#include "filecoin/primitives/address/address.hpp" +#include "filecoin/storage/keystore/keystore_error.hpp" namespace fc::storage::keystore { diff --git a/core/storage/keystore/keystore_error.hpp b/include/filecoin/storage/keystore/keystore_error.hpp similarity index 94% rename from core/storage/keystore/keystore_error.hpp rename to include/filecoin/storage/keystore/keystore_error.hpp index dc61909ca4..952e6ed793 100644 --- a/core/storage/keystore/keystore_error.hpp +++ b/include/filecoin/storage/keystore/keystore_error.hpp @@ -6,7 +6,7 @@ #ifndef FILECOIN_CORE_STORAGE_KEYSTORE_ERROR_HPP #define FILECOIN_CORE_STORAGE_KEYSTORE_ERROR_HPP -#include "common/outcome.hpp" +#include "filecoin/common/outcome.hpp" namespace fc::storage::keystore { diff --git a/core/storage/leveldb/leveldb.hpp b/include/filecoin/storage/leveldb/leveldb.hpp similarity index 96% rename from core/storage/leveldb/leveldb.hpp rename to include/filecoin/storage/leveldb/leveldb.hpp index cae70b5f81..f5bc06bb81 100644 --- a/core/storage/leveldb/leveldb.hpp +++ b/include/filecoin/storage/leveldb/leveldb.hpp @@ -8,8 +8,8 @@ #include #include -#include "common/logger.hpp" -#include "storage/buffer_map.hpp" +#include "filecoin/common/logger.hpp" +#include "filecoin/storage/buffer_map.hpp" namespace fc::storage { diff --git a/core/storage/leveldb/leveldb_batch.hpp b/include/filecoin/storage/leveldb/leveldb_batch.hpp similarity index 94% rename from core/storage/leveldb/leveldb_batch.hpp rename to include/filecoin/storage/leveldb/leveldb_batch.hpp index e0140f1067..047901eddb 100644 --- a/core/storage/leveldb/leveldb_batch.hpp +++ b/include/filecoin/storage/leveldb/leveldb_batch.hpp @@ -7,7 +7,7 @@ #define CPP_FILECOIN_LEVELDB_BATCH_HPP #include -#include "storage/leveldb/leveldb.hpp" +#include "filecoin/storage/leveldb/leveldb.hpp" namespace fc::storage { diff --git a/core/storage/leveldb/leveldb_cursor.hpp b/include/filecoin/storage/leveldb/leveldb_cursor.hpp similarity index 95% rename from core/storage/leveldb/leveldb_cursor.hpp rename to include/filecoin/storage/leveldb/leveldb_cursor.hpp index 325c3640f8..e9a90f5bc3 100644 --- a/core/storage/leveldb/leveldb_cursor.hpp +++ b/include/filecoin/storage/leveldb/leveldb_cursor.hpp @@ -7,7 +7,7 @@ #define CPP_FILECOIN_LEVELDB_CURSOR_HPP #include -#include "storage/leveldb/leveldb.hpp" +#include "filecoin/storage/leveldb/leveldb.hpp" namespace fc::storage { diff --git a/core/storage/leveldb/leveldb_error.hpp b/include/filecoin/storage/leveldb/leveldb_error.hpp similarity index 94% rename from core/storage/leveldb/leveldb_error.hpp rename to include/filecoin/storage/leveldb/leveldb_error.hpp index 1ec7dbf373..9e4b1e2d6d 100644 --- a/core/storage/leveldb/leveldb_error.hpp +++ b/include/filecoin/storage/leveldb/leveldb_error.hpp @@ -6,7 +6,7 @@ #ifndef CPP_FILECOIN_LEVELDB_ERROR_HPP #define CPP_FILECOIN_LEVELDB_ERROR_HPP -#include "common/outcome.hpp" +#include "filecoin/common/outcome.hpp" namespace fc::storage { diff --git a/core/storage/leveldb/leveldb_util.hpp b/include/filecoin/storage/leveldb/leveldb_util.hpp similarity index 91% rename from core/storage/leveldb/leveldb_util.hpp rename to include/filecoin/storage/leveldb/leveldb_util.hpp index b8ec1c1f49..7222dd9406 100644 --- a/core/storage/leveldb/leveldb_util.hpp +++ b/include/filecoin/storage/leveldb/leveldb_util.hpp @@ -8,10 +8,10 @@ #include #include -#include "common/outcome.hpp" -#include "common/buffer.hpp" -#include "common/logger.hpp" -#include "storage/leveldb/leveldb_error.hpp" +#include "filecoin/common/outcome.hpp" +#include "filecoin/common/buffer.hpp" +#include "filecoin/common/logger.hpp" +#include "filecoin/storage/leveldb/leveldb_error.hpp" namespace fc::storage { diff --git a/core/storage/repository/impl/filesystem_repository.hpp b/include/filecoin/storage/repository/impl/filesystem_repository.hpp similarity index 93% rename from core/storage/repository/impl/filesystem_repository.hpp rename to include/filecoin/storage/repository/impl/filesystem_repository.hpp index 8b4c2a8df6..182750b20c 100644 --- a/core/storage/repository/impl/filesystem_repository.hpp +++ b/include/filecoin/storage/repository/impl/filesystem_repository.hpp @@ -8,10 +8,10 @@ #include -#include "fslock/fslock.hpp" -#include "storage/filestore/path.hpp" -#include "storage/leveldb/leveldb.hpp" -#include "storage/repository/repository.hpp" +#include "filecoin/fslock/fslock.hpp" +#include "filecoin/storage/filestore/path.hpp" +#include "filecoin/storage/leveldb/leveldb.hpp" +#include "filecoin/storage/repository/repository.hpp" namespace fc::storage::repository { diff --git a/core/storage/repository/impl/in_memory_repository.hpp b/include/filecoin/storage/repository/impl/in_memory_repository.hpp similarity index 94% rename from core/storage/repository/impl/in_memory_repository.hpp rename to include/filecoin/storage/repository/impl/in_memory_repository.hpp index b3cc3716ff..2ec3b22acc 100644 --- a/core/storage/repository/impl/in_memory_repository.hpp +++ b/include/filecoin/storage/repository/impl/in_memory_repository.hpp @@ -6,7 +6,7 @@ #ifndef FILECOIN_CORE_STORAGE_IMPL_IN_MEMORY_REPOSITORY_HPP #define FILECOIN_CORE_STORAGE_IMPL_IN_MEMORY_REPOSITORY_HPP -#include "storage/repository/repository.hpp" +#include "filecoin/storage/repository/repository.hpp" namespace fc::storage::repository { diff --git a/core/storage/repository/repository.hpp b/include/filecoin/storage/repository/repository.hpp similarity index 91% rename from core/storage/repository/repository.hpp rename to include/filecoin/storage/repository/repository.hpp index d742c675bc..20da9155e1 100644 --- a/core/storage/repository/repository.hpp +++ b/include/filecoin/storage/repository/repository.hpp @@ -6,10 +6,10 @@ #ifndef FILECOIN_CORE_STORAGE_REPOSITORY_HPP #define FILECOIN_CORE_STORAGE_REPOSITORY_HPP -#include "common/outcome.hpp" -#include "storage/config/config.hpp" -#include "storage/ipfs/datastore.hpp" -#include "storage/keystore/keystore.hpp" +#include "filecoin/common/outcome.hpp" +#include "filecoin/storage/config/config.hpp" +#include "filecoin/storage/ipfs/datastore.hpp" +#include "filecoin/storage/keystore/keystore.hpp" namespace fc::storage::repository { diff --git a/core/storage/repository/repository_error.hpp b/include/filecoin/storage/repository/repository_error.hpp similarity index 93% rename from core/storage/repository/repository_error.hpp rename to include/filecoin/storage/repository/repository_error.hpp index 8ccb22cf78..b3b8f83040 100644 --- a/core/storage/repository/repository_error.hpp +++ b/include/filecoin/storage/repository/repository_error.hpp @@ -6,7 +6,7 @@ #ifndef FILECOIN_CORE_STORAGE_REPOSITORY_ERROR_HPP #define FILECOIN_CORE_STORAGE_REPOSITORY_ERROR_HPP -#include "common/outcome.hpp" +#include "filecoin/common/outcome.hpp" namespace fc::storage::repository { diff --git a/core/vm/actor/actor.hpp b/include/filecoin/vm/actor/actor.hpp similarity index 94% rename from core/vm/actor/actor.hpp rename to include/filecoin/vm/actor/actor.hpp index 46ed0b7065..8f0b9e8d19 100644 --- a/core/vm/actor/actor.hpp +++ b/include/filecoin/vm/actor/actor.hpp @@ -8,11 +8,11 @@ #include -#include "codec/cbor/streams_annotation.hpp" -#include "common/buffer.hpp" -#include "primitives/address/address.hpp" -#include "primitives/big_int.hpp" -#include "primitives/cid/cid.hpp" +#include "filecoin/codec/cbor/streams_annotation.hpp" +#include "filecoin/common/buffer.hpp" +#include "filecoin/primitives/address/address.hpp" +#include "filecoin/primitives/big_int.hpp" +#include "filecoin/primitives/cid/cid.hpp" namespace fc::vm::actor { diff --git a/core/vm/actor/actor_encoding.hpp b/include/filecoin/vm/actor/actor_encoding.hpp similarity index 88% rename from core/vm/actor/actor_encoding.hpp rename to include/filecoin/vm/actor/actor_encoding.hpp index f9549bb308..6de1500409 100644 --- a/core/vm/actor/actor_encoding.hpp +++ b/include/filecoin/vm/actor/actor_encoding.hpp @@ -6,11 +6,11 @@ #ifndef CPP_FILECOIN_CORE_VM_ACTOR_ACTOR_ENCODING_HPP #define CPP_FILECOIN_CORE_VM_ACTOR_ACTOR_ENCODING_HPP -#include "codec/cbor/cbor.hpp" -#include "common/outcome.hpp" -#include "vm/actor/actor.hpp" -#include "vm/exit_code/exit_code.hpp" -#include "vm/runtime/runtime_types.hpp" +#include "filecoin/codec/cbor/cbor.hpp" +#include "filecoin/common/outcome.hpp" +#include "filecoin/vm/actor/actor.hpp" +#include "filecoin/vm/exit_code/exit_code.hpp" +#include "filecoin/vm/runtime/runtime_types.hpp" namespace fc::vm::actor { using runtime::InvocationOutput; diff --git a/core/vm/actor/actor_method.hpp b/include/filecoin/vm/actor/actor_method.hpp similarity index 87% rename from core/vm/actor/actor_method.hpp rename to include/filecoin/vm/actor/actor_method.hpp index 64a6f30274..35cd93dabc 100644 --- a/core/vm/actor/actor_method.hpp +++ b/include/filecoin/vm/actor/actor_method.hpp @@ -6,12 +6,12 @@ #ifndef CPP_FILECOIN_CORE_VM_ACTOR_ACTOR_METHOD_HPP #define CPP_FILECOIN_CORE_VM_ACTOR_ACTOR_METHOD_HPP -#include "codec/cbor/cbor.hpp" -#include "common/outcome.hpp" -#include "vm/actor/actor.hpp" -#include "vm/actor/actor_encoding.hpp" -#include "vm/exit_code/exit_code.hpp" -#include "vm/runtime/runtime.hpp" +#include "filecoin/codec/cbor/cbor.hpp" +#include "filecoin/common/outcome.hpp" +#include "filecoin/vm/actor/actor.hpp" +#include "filecoin/vm/actor/actor_encoding.hpp" +#include "filecoin/vm/exit_code/exit_code.hpp" +#include "filecoin/vm/runtime/runtime.hpp" /// Declare actor method function #define ACTOR_METHOD_DECL() \ diff --git a/core/vm/actor/builtin/account/account_actor.hpp b/include/filecoin/vm/actor/builtin/account/account_actor.hpp similarity index 86% rename from core/vm/actor/builtin/account/account_actor.hpp rename to include/filecoin/vm/actor/builtin/account/account_actor.hpp index 172b93f3ea..dada2448cb 100644 --- a/core/vm/actor/builtin/account/account_actor.hpp +++ b/include/filecoin/vm/actor/builtin/account/account_actor.hpp @@ -6,10 +6,10 @@ #ifndef CPP_FILECOIN_CORE_VM_ACTOR_ACCOUNT_ACTOR_HPP #define CPP_FILECOIN_CORE_VM_ACTOR_ACCOUNT_ACTOR_HPP -#include "codec/cbor/streams_annotation.hpp" -#include "primitives/address/address_codec.hpp" -#include "vm/actor/actor_method.hpp" -#include "vm/state/state_tree.hpp" +#include "filecoin/codec/cbor/streams_annotation.hpp" +#include "filecoin/primitives/address/address_codec.hpp" +#include "filecoin/vm/actor/actor_method.hpp" +#include "filecoin/vm/state/state_tree.hpp" namespace fc::vm::actor::builtin::account { diff --git a/core/vm/actor/builtin/cron/cron_actor.hpp b/include/filecoin/vm/actor/builtin/cron/cron_actor.hpp similarity index 94% rename from core/vm/actor/builtin/cron/cron_actor.hpp rename to include/filecoin/vm/actor/builtin/cron/cron_actor.hpp index c2c0e1b98a..770f6021e6 100644 --- a/core/vm/actor/builtin/cron/cron_actor.hpp +++ b/include/filecoin/vm/actor/builtin/cron/cron_actor.hpp @@ -6,7 +6,7 @@ #ifndef CPP_FILECOIN_CORE_VM_ACTOR_CRON_ACTOR_HPP #define CPP_FILECOIN_CORE_VM_ACTOR_CRON_ACTOR_HPP -#include "vm/actor/actor_method.hpp" +#include "filecoin/vm/actor/actor_method.hpp" namespace fc::vm::actor::builtin::cron { diff --git a/core/vm/actor/builtin/init/init_actor.hpp b/include/filecoin/vm/actor/builtin/init/init_actor.hpp similarity index 90% rename from core/vm/actor/builtin/init/init_actor.hpp rename to include/filecoin/vm/actor/builtin/init/init_actor.hpp index bbd6fc1f94..653650fda9 100644 --- a/core/vm/actor/builtin/init/init_actor.hpp +++ b/include/filecoin/vm/actor/builtin/init/init_actor.hpp @@ -6,9 +6,9 @@ #ifndef CPP_FILECOIN_CORE_VM_ACTOR_INIT_ACTOR_HPP #define CPP_FILECOIN_CORE_VM_ACTOR_INIT_ACTOR_HPP -#include "codec/cbor/streams_annotation.hpp" -#include "storage/ipfs/datastore.hpp" -#include "vm/actor/actor_method.hpp" +#include "filecoin/codec/cbor/streams_annotation.hpp" +#include "filecoin/storage/ipfs/datastore.hpp" +#include "filecoin/vm/actor/actor_method.hpp" namespace fc::vm::actor::builtin::init { diff --git a/core/vm/actor/builtin/market/actor.hpp b/include/filecoin/vm/actor/builtin/market/actor.hpp similarity index 89% rename from core/vm/actor/builtin/market/actor.hpp rename to include/filecoin/vm/actor/builtin/market/actor.hpp index a7585d6bf2..fb1f769ab1 100644 --- a/core/vm/actor/builtin/market/actor.hpp +++ b/include/filecoin/vm/actor/builtin/market/actor.hpp @@ -6,9 +6,9 @@ #ifndef CPP_FILECOIN_CORE_VM_ACTOR_BUILTIN_MARKET_ACTOR_HPP #define CPP_FILECOIN_CORE_VM_ACTOR_BUILTIN_MARKET_ACTOR_HPP -#include "codec/cbor/streams_annotation.hpp" -#include "primitives/types.hpp" -#include "vm/actor/actor_method.hpp" +#include "filecoin/codec/cbor/streams_annotation.hpp" +#include "filecoin/primitives/types.hpp" +#include "filecoin/vm/actor/actor_method.hpp" namespace fc::vm::actor::builtin::market { using primitives::ChainEpoch; diff --git a/core/vm/actor/builtin/miner/miner_actor.hpp b/include/filecoin/vm/actor/builtin/miner/miner_actor.hpp similarity index 91% rename from core/vm/actor/builtin/miner/miner_actor.hpp rename to include/filecoin/vm/actor/builtin/miner/miner_actor.hpp index 9895e53eef..0ae0a64432 100644 --- a/core/vm/actor/builtin/miner/miner_actor.hpp +++ b/include/filecoin/vm/actor/builtin/miner/miner_actor.hpp @@ -6,11 +6,11 @@ #ifndef CPP_FILECOIN_CORE_VM_ACTOR_BUILTIN_MINER_MINER_ACTOR_HPP #define CPP_FILECOIN_CORE_VM_ACTOR_BUILTIN_MINER_MINER_ACTOR_HPP -#include "codec/cbor/streams_annotation.hpp" -#include "primitives/address/address.hpp" -#include "primitives/address/address_codec.hpp" -#include "vm/actor/actor_method.hpp" -#include "vm/actor/builtin/miner/types.hpp" +#include "filecoin/codec/cbor/streams_annotation.hpp" +#include "filecoin/primitives/address/address.hpp" +#include "filecoin/primitives/address/address_codec.hpp" +#include "filecoin/vm/actor/actor_method.hpp" +#include "filecoin/vm/actor/builtin/miner/types.hpp" namespace fc::vm::actor::builtin::miner { diff --git a/core/vm/actor/builtin/miner/policy.hpp b/include/filecoin/vm/actor/builtin/miner/policy.hpp similarity index 97% rename from core/vm/actor/builtin/miner/policy.hpp rename to include/filecoin/vm/actor/builtin/miner/policy.hpp index 226f42138b..f363e48cb1 100644 --- a/core/vm/actor/builtin/miner/policy.hpp +++ b/include/filecoin/vm/actor/builtin/miner/policy.hpp @@ -6,7 +6,7 @@ #ifndef CPP_FILECOIN_CORE_VM_ACTOR_BUILTIN_MINER_POLICY_HPP #define CPP_FILECOIN_CORE_VM_ACTOR_BUILTIN_MINER_POLICY_HPP -#include "primitives/types.hpp" +#include "filecoin/primitives/types.hpp" namespace fc::vm::actor::builtin::miner { using primitives::ChainEpoch; diff --git a/core/vm/actor/builtin/miner/types.hpp b/include/filecoin/vm/actor/builtin/miner/types.hpp similarity index 94% rename from core/vm/actor/builtin/miner/types.hpp rename to include/filecoin/vm/actor/builtin/miner/types.hpp index cfea6487e6..e2d85c4160 100644 --- a/core/vm/actor/builtin/miner/types.hpp +++ b/include/filecoin/vm/actor/builtin/miner/types.hpp @@ -8,11 +8,11 @@ #include -#include "primitives/address/address_codec.hpp" -#include "primitives/big_int.hpp" -#include "primitives/chain_epoch/chain_epoch.hpp" -#include "primitives/rle_bitset/rle_bitset.hpp" -#include "primitives/sector/sector.hpp" +#include "filecoin/primitives/address/address_codec.hpp" +#include "filecoin/primitives/big_int.hpp" +#include "filecoin/primitives/chain_epoch/chain_epoch.hpp" +#include "filecoin/primitives/rle_bitset/rle_bitset.hpp" +#include "filecoin/primitives/sector/sector.hpp" namespace fc::vm::actor::builtin::miner { using common::Buffer; diff --git a/core/vm/actor/builtin/multisig/multisig_actor.hpp b/include/filecoin/vm/actor/builtin/multisig/multisig_actor.hpp similarity index 92% rename from core/vm/actor/builtin/multisig/multisig_actor.hpp rename to include/filecoin/vm/actor/builtin/multisig/multisig_actor.hpp index b7ed39366d..3de95c7dc5 100644 --- a/core/vm/actor/builtin/multisig/multisig_actor.hpp +++ b/include/filecoin/vm/actor/builtin/multisig/multisig_actor.hpp @@ -6,15 +6,15 @@ #ifndef CPP_FILECOIN_VM_ACTOR_BUILTIN_MULTISIG_ACTOR_HPP #define CPP_FILECOIN_VM_ACTOR_BUILTIN_MULTISIG_ACTOR_HPP -#include "codec/cbor/streams_annotation.hpp" -#include "primitives/address/address.hpp" -#include "primitives/address/address_codec.hpp" -#include "primitives/big_int.hpp" -#include "primitives/chain_epoch/chain_epoch.hpp" -#include "primitives/cid/cid.hpp" -#include "vm/actor/actor.hpp" -#include "vm/actor/actor_method.hpp" -#include "vm/runtime/runtime.hpp" +#include "filecoin/codec/cbor/streams_annotation.hpp" +#include "filecoin/primitives/address/address.hpp" +#include "filecoin/primitives/address/address_codec.hpp" +#include "filecoin/primitives/big_int.hpp" +#include "filecoin/primitives/chain_epoch/chain_epoch.hpp" +#include "filecoin/primitives/cid/cid.hpp" +#include "filecoin/vm/actor/actor.hpp" +#include "filecoin/vm/actor/actor_method.hpp" +#include "filecoin/vm/runtime/runtime.hpp" namespace fc::vm::actor::builtin::multisig { diff --git a/core/vm/actor/builtin/payment_channel/payment_channel_actor.hpp b/include/filecoin/vm/actor/builtin/payment_channel/payment_channel_actor.hpp similarity index 74% rename from core/vm/actor/builtin/payment_channel/payment_channel_actor.hpp rename to include/filecoin/vm/actor/builtin/payment_channel/payment_channel_actor.hpp index dfacfaad58..8808271bb0 100644 --- a/core/vm/actor/builtin/payment_channel/payment_channel_actor.hpp +++ b/include/filecoin/vm/actor/builtin/payment_channel/payment_channel_actor.hpp @@ -6,13 +6,13 @@ #ifndef CPP_FILECOIN_VM_ACTOR_BUILTIN_PAYMENT_CHANNEL_ACTOR_HPP #define CPP_FILECOIN_VM_ACTOR_BUILTIN_PAYMENT_CHANNEL_ACTOR_HPP -#include "codec/cbor/streams_annotation.hpp" -#include "common/outcome.hpp" -#include "primitives/address/address_codec.hpp" -#include "vm/actor/actor_method.hpp" -#include "vm/actor/builtin/payment_channel/payment_channel_actor_state.hpp" -#include "vm/runtime/runtime.hpp" -#include "vm/runtime/runtime_types.hpp" +#include "filecoin/codec/cbor/streams_annotation.hpp" +#include "filecoin/common/outcome.hpp" +#include "filecoin/primitives/address/address_codec.hpp" +#include "filecoin/vm/actor/actor_method.hpp" +#include "filecoin/vm/actor/builtin/payment_channel/payment_channel_actor_state.hpp" +#include "filecoin/vm/runtime/runtime.hpp" +#include "filecoin/vm/runtime/runtime_types.hpp" namespace fc::vm::actor::builtin::payment_channel { diff --git a/core/vm/actor/builtin/payment_channel/payment_channel_actor_state.hpp b/include/filecoin/vm/actor/builtin/payment_channel/payment_channel_actor_state.hpp similarity index 86% rename from core/vm/actor/builtin/payment_channel/payment_channel_actor_state.hpp rename to include/filecoin/vm/actor/builtin/payment_channel/payment_channel_actor_state.hpp index 2e9d3224f5..4740b71c6d 100644 --- a/core/vm/actor/builtin/payment_channel/payment_channel_actor_state.hpp +++ b/include/filecoin/vm/actor/builtin/payment_channel/payment_channel_actor_state.hpp @@ -6,13 +6,13 @@ #ifndef CPP_FILECOIN_VM_ACTOR_BUILTIN_PAYMENT_CHANNEL_ACTOR_STATE_HPP #define CPP_FILECOIN_VM_ACTOR_BUILTIN_PAYMENT_CHANNEL_ACTOR_STATE_HPP -#include "codec/cbor/streams_annotation.hpp" -#include "common/buffer.hpp" -#include "crypto/signature/signature.hpp" -#include "primitives/address/address.hpp" -#include "primitives/big_int.hpp" -#include "primitives/chain_epoch/chain_epoch.hpp" -#include "vm/actor/actor.hpp" +#include "filecoin/codec/cbor/streams_annotation.hpp" +#include "filecoin/common/buffer.hpp" +#include "filecoin/crypto/signature/signature.hpp" +#include "filecoin/primitives/address/address.hpp" +#include "filecoin/primitives/big_int.hpp" +#include "filecoin/primitives/chain_epoch/chain_epoch.hpp" +#include "filecoin/vm/actor/actor.hpp" namespace fc::vm::actor::builtin::payment_channel { diff --git a/core/vm/actor/builtin/reward/reward_actor.hpp b/include/filecoin/vm/actor/builtin/reward/reward_actor.hpp similarity index 85% rename from core/vm/actor/builtin/reward/reward_actor.hpp rename to include/filecoin/vm/actor/builtin/reward/reward_actor.hpp index dc2cb4803e..ccca0a8fbd 100644 --- a/core/vm/actor/builtin/reward/reward_actor.hpp +++ b/include/filecoin/vm/actor/builtin/reward/reward_actor.hpp @@ -7,15 +7,15 @@ #define CPP_FILECOIN_REWARD_ACTOR_HPP #include -#include "codec/cbor/streams_annotation.hpp" -#include "common/enum.hpp" -#include "power/power_table.hpp" -#include "primitives/address/address.hpp" -#include "primitives/cid/cid.hpp" -#include "primitives/types.hpp" -#include "storage/ipfs/datastore.hpp" -#include "vm/actor/actor.hpp" -#include "vm/actor/actor_method.hpp" +#include "filecoin/codec/cbor/streams_annotation.hpp" +#include "filecoin/common/enum.hpp" +#include "filecoin/power/power_table.hpp" +#include "filecoin/primitives/address/address.hpp" +#include "filecoin/primitives/cid/cid.hpp" +#include "filecoin/primitives/types.hpp" +#include "filecoin/storage/ipfs/datastore.hpp" +#include "filecoin/vm/actor/actor.hpp" +#include "filecoin/vm/actor/actor_method.hpp" namespace fc::vm::actor::builtin::reward { diff --git a/core/vm/actor/builtin/shared/shared.hpp b/include/filecoin/vm/actor/builtin/shared/shared.hpp similarity index 80% rename from core/vm/actor/builtin/shared/shared.hpp rename to include/filecoin/vm/actor/builtin/shared/shared.hpp index cb18596292..b781da3695 100644 --- a/core/vm/actor/builtin/shared/shared.hpp +++ b/include/filecoin/vm/actor/builtin/shared/shared.hpp @@ -6,9 +6,9 @@ #ifndef CPP_FILECOIN_SHARED_HPP #define CPP_FILECOIN_SHARED_HPP -#include "primitives/address/address.hpp" -#include "vm/actor/builtin/miner/miner_actor.hpp" -#include "vm/runtime/runtime.hpp" +#include "filecoin/primitives/address/address.hpp" +#include "filecoin/vm/actor/builtin/miner/miner_actor.hpp" +#include "filecoin/vm/runtime/runtime.hpp" /** * Code shared by multiple built-in actors diff --git a/core/vm/actor/builtin/storage_power/policy.hpp b/include/filecoin/vm/actor/builtin/storage_power/policy.hpp similarity index 97% rename from core/vm/actor/builtin/storage_power/policy.hpp rename to include/filecoin/vm/actor/builtin/storage_power/policy.hpp index c012cc13b6..0009a469b3 100644 --- a/core/vm/actor/builtin/storage_power/policy.hpp +++ b/include/filecoin/vm/actor/builtin/storage_power/policy.hpp @@ -6,7 +6,7 @@ #ifndef CPP_FILECOIN_VM_ACTOR_BUILTIN_STORAGE_POWER_POLICY_HPP #define CPP_FILECOIN_VM_ACTOR_BUILTIN_STORAGE_POWER_POLICY_HPP -#include "vm/actor/builtin/reward/reward_actor.hpp" +#include "filecoin/vm/actor/builtin/reward/reward_actor.hpp" namespace fc::vm::actor::builtin::storage_power { diff --git a/core/vm/actor/builtin/storage_power/storage_power_actor_export.hpp b/include/filecoin/vm/actor/builtin/storage_power/storage_power_actor_export.hpp similarity index 93% rename from core/vm/actor/builtin/storage_power/storage_power_actor_export.hpp rename to include/filecoin/vm/actor/builtin/storage_power/storage_power_actor_export.hpp index 1070d6214c..76d8bd3fc8 100644 --- a/core/vm/actor/builtin/storage_power/storage_power_actor_export.hpp +++ b/include/filecoin/vm/actor/builtin/storage_power/storage_power_actor_export.hpp @@ -6,12 +6,12 @@ #ifndef CPP_FILECOIN_VM_ACTOR_BUILTIN_STORAGE_POWER_ACTOR_HPP #define CPP_FILECOIN_VM_ACTOR_BUILTIN_STORAGE_POWER_ACTOR_HPP -#include "codec/cbor/streams_annotation.hpp" -#include "primitives/block/block.hpp" -#include "primitives/types.hpp" -#include "vm/actor/actor_method.hpp" -#include "vm/actor/builtin/miner/types.hpp" -#include "vm/actor/builtin/storage_power/policy.hpp" +#include "filecoin/codec/cbor/streams_annotation.hpp" +#include "filecoin/primitives/block/block.hpp" +#include "filecoin/primitives/types.hpp" +#include "filecoin/vm/actor/actor_method.hpp" +#include "filecoin/vm/actor/builtin/miner/types.hpp" +#include "filecoin/vm/actor/builtin/storage_power/policy.hpp" namespace fc::vm::actor::builtin::storage_power { diff --git a/core/vm/actor/builtin/storage_power/storage_power_actor_state.hpp b/include/filecoin/vm/actor/builtin/storage_power/storage_power_actor_state.hpp similarity index 95% rename from core/vm/actor/builtin/storage_power/storage_power_actor_state.hpp rename to include/filecoin/vm/actor/builtin/storage_power/storage_power_actor_state.hpp index 98b7d8d86c..514aac5e02 100644 --- a/core/vm/actor/builtin/storage_power/storage_power_actor_state.hpp +++ b/include/filecoin/vm/actor/builtin/storage_power/storage_power_actor_state.hpp @@ -6,15 +6,15 @@ #ifndef CPP_FILECOIN_CORE_VM_ACTOR_STORAGE_POWER_ACTOR_STATE_HPP #define CPP_FILECOIN_CORE_VM_ACTOR_STORAGE_POWER_ACTOR_STATE_HPP -#include "adt/balance_table_hamt.hpp" -#include "adt/multimap.hpp" -#include "codec/cbor/streams_annotation.hpp" -#include "crypto/randomness/randomness_provider.hpp" -#include "crypto/randomness/randomness_types.hpp" -#include "power/power_table.hpp" -#include "primitives/types.hpp" -#include "storage/ipfs/datastore.hpp" -#include "vm/indices/indices.hpp" +#include "filecoin/adt/balance_table_hamt.hpp" +#include "filecoin/adt/multimap.hpp" +#include "filecoin/codec/cbor/streams_annotation.hpp" +#include "filecoin/crypto/randomness/randomness_provider.hpp" +#include "filecoin/crypto/randomness/randomness_types.hpp" +#include "filecoin/power/power_table.hpp" +#include "filecoin/primitives/types.hpp" +#include "filecoin/storage/ipfs/datastore.hpp" +#include "filecoin/vm/indices/indices.hpp" namespace fc::vm::actor::builtin::storage_power { diff --git a/core/vm/actor/impl/invoker_impl.hpp b/include/filecoin/vm/actor/impl/invoker_impl.hpp similarity index 89% rename from core/vm/actor/impl/invoker_impl.hpp rename to include/filecoin/vm/actor/impl/invoker_impl.hpp index 708a52f155..32f1e94ad1 100644 --- a/core/vm/actor/impl/invoker_impl.hpp +++ b/include/filecoin/vm/actor/impl/invoker_impl.hpp @@ -6,9 +6,9 @@ #ifndef CPP_FILECOIN_CORE_VM_ACTOR_INVOKER_IMPL_HPP #define CPP_FILECOIN_CORE_VM_ACTOR_INVOKER_IMPL_HPP -#include "vm/actor/invoker.hpp" +#include "filecoin/vm/actor/invoker.hpp" -#include "vm/actor/actor_method.hpp" +#include "filecoin/vm/actor/actor_method.hpp" namespace fc::vm::actor { diff --git a/core/vm/actor/invoker.hpp b/include/filecoin/vm/actor/invoker.hpp similarity index 93% rename from core/vm/actor/invoker.hpp rename to include/filecoin/vm/actor/invoker.hpp index 40832ee073..6b83e65bac 100644 --- a/core/vm/actor/invoker.hpp +++ b/include/filecoin/vm/actor/invoker.hpp @@ -6,7 +6,7 @@ #ifndef CPP_FILECOIN_CORE_VM_ACTOR_INVOKER_HPP #define CPP_FILECOIN_CORE_VM_ACTOR_INVOKER_HPP -#include "vm/actor/actor_method.hpp" +#include "filecoin/vm/actor/actor_method.hpp" namespace fc::vm::actor { diff --git a/core/vm/exit_code/exit_code.hpp b/include/filecoin/vm/exit_code/exit_code.hpp similarity index 99% rename from core/vm/exit_code/exit_code.hpp rename to include/filecoin/vm/exit_code/exit_code.hpp index 6175ce427c..4787a66ca1 100644 --- a/core/vm/exit_code/exit_code.hpp +++ b/include/filecoin/vm/exit_code/exit_code.hpp @@ -8,7 +8,7 @@ #include -#include "common/outcome.hpp" +#include "filecoin/common/outcome.hpp" namespace fc::vm { /** diff --git a/core/vm/indices/indices.hpp b/include/filecoin/vm/indices/indices.hpp similarity index 92% rename from core/vm/indices/indices.hpp rename to include/filecoin/vm/indices/indices.hpp index d1e426b6b3..4d8663a2a3 100644 --- a/core/vm/indices/indices.hpp +++ b/include/filecoin/vm/indices/indices.hpp @@ -6,8 +6,8 @@ #ifndef CPP_FILECOIN_VM_INDICES_INDICES_HPP #define CPP_FILECOIN_VM_INDICES_INDICES_HPP -#include "power/power_table.hpp" -#include "primitives/types.hpp" +#include "filecoin/power/power_table.hpp" +#include "filecoin/primitives/types.hpp" namespace fc::vm::indices { using primitives::SectorStorageWeightDesc; diff --git a/core/vm/interpreter/impl/interpreter_impl.hpp b/include/filecoin/vm/interpreter/impl/interpreter_impl.hpp similarity index 90% rename from core/vm/interpreter/impl/interpreter_impl.hpp rename to include/filecoin/vm/interpreter/impl/interpreter_impl.hpp index a972e4e9d3..3875301b8a 100644 --- a/core/vm/interpreter/impl/interpreter_impl.hpp +++ b/include/filecoin/vm/interpreter/impl/interpreter_impl.hpp @@ -6,8 +6,8 @@ #ifndef CPP_FILECOIN_CORE_VM_INTERPRETER_INTERPRETER_IMPL_HPP #define CPP_FILECOIN_CORE_VM_INTERPRETER_INTERPRETER_IMPL_HPP -#include "vm/interpreter/interpreter.hpp" -#include "vm/state/impl/state_tree_impl.hpp" +#include "filecoin/vm/interpreter/interpreter.hpp" +#include "filecoin/vm/state/impl/state_tree_impl.hpp" namespace fc::vm::interpreter { class InterpreterImpl : public Interpreter { diff --git a/core/vm/interpreter/interpreter.hpp b/include/filecoin/vm/interpreter/interpreter.hpp similarity index 87% rename from core/vm/interpreter/interpreter.hpp rename to include/filecoin/vm/interpreter/interpreter.hpp index 4d264c8770..83a3af4a0e 100644 --- a/core/vm/interpreter/interpreter.hpp +++ b/include/filecoin/vm/interpreter/interpreter.hpp @@ -6,9 +6,9 @@ #ifndef CPP_FILECOIN_CORE_VM_INTERPRETER_INTERPRETER_HPP #define CPP_FILECOIN_CORE_VM_INTERPRETER_INTERPRETER_HPP -#include "primitives/tipset/tipset.hpp" -#include "storage/ipfs/datastore.hpp" -#include "vm/indices/indices.hpp" +#include "filecoin/primitives/tipset/tipset.hpp" +#include "filecoin/storage/ipfs/datastore.hpp" +#include "filecoin/vm/indices/indices.hpp" namespace fc::vm::interpreter { enum class InterpreterError { diff --git a/core/vm/message/impl/message_signer_impl.hpp b/include/filecoin/vm/message/impl/message_signer_impl.hpp similarity index 88% rename from core/vm/message/impl/message_signer_impl.hpp rename to include/filecoin/vm/message/impl/message_signer_impl.hpp index 29cb4fee6d..4dc5fd9f1a 100644 --- a/core/vm/message/impl/message_signer_impl.hpp +++ b/include/filecoin/vm/message/impl/message_signer_impl.hpp @@ -6,9 +6,9 @@ #ifndef CPP_FILECOIN_CORE_VM_MESSAGE_SIGNER_IMPL_HPP #define CPP_FILECOIN_CORE_VM_MESSAGE_SIGNER_IMPL_HPP -#include "common/logger.hpp" -#include "storage/keystore/keystore.hpp" -#include "vm/message/message_signer.hpp" +#include "filecoin/common/logger.hpp" +#include "filecoin/storage/keystore/keystore.hpp" +#include "filecoin/vm/message/message_signer.hpp" namespace fc::vm::message { diff --git a/core/vm/message/message.hpp b/include/filecoin/vm/message/message.hpp similarity index 86% rename from core/vm/message/message.hpp rename to include/filecoin/vm/message/message.hpp index af77b5bbd7..ab26f5741f 100644 --- a/core/vm/message/message.hpp +++ b/include/filecoin/vm/message/message.hpp @@ -6,17 +6,17 @@ #ifndef CPP_FILECOIN_CORE_VM_MESSAGE_HPP #define CPP_FILECOIN_CORE_VM_MESSAGE_HPP -#include +#include "filecoin/codec/cbor/cbor.hpp" #include -#include "codec/cbor/streams_annotation.hpp" -#include "common/outcome.hpp" -#include "crypto/signature/signature.hpp" -#include "primitives/address/address.hpp" -#include "primitives/address/address_codec.hpp" -#include "primitives/big_int.hpp" -#include "storage/ipld/ipld_block_common.hpp" -#include "vm/actor/actor.hpp" +#include "filecoin/codec/cbor/streams_annotation.hpp" +#include "filecoin/common/outcome.hpp" +#include "filecoin/crypto/signature/signature.hpp" +#include "filecoin/primitives/address/address.hpp" +#include "filecoin/primitives/address/address_codec.hpp" +#include "filecoin/primitives/big_int.hpp" +#include "filecoin/storage/ipld/ipld_block_common.hpp" +#include "filecoin/vm/actor/actor.hpp" namespace fc::vm::message { diff --git a/core/vm/message/message_signer.hpp b/include/filecoin/vm/message/message_signer.hpp similarity index 89% rename from core/vm/message/message_signer.hpp rename to include/filecoin/vm/message/message_signer.hpp index 374b8b630b..4c172ab209 100644 --- a/core/vm/message/message_signer.hpp +++ b/include/filecoin/vm/message/message_signer.hpp @@ -6,9 +6,9 @@ #ifndef CPP_FILECOIN_CORE_VM_MESSAGE_SIGNER_HPP #define CPP_FILECOIN_CORE_VM_MESSAGE_SIGNER_HPP -#include "common/outcome.hpp" -#include "primitives/address/address.hpp" -#include "vm/message/message.hpp" +#include "filecoin/common/outcome.hpp" +#include "filecoin/primitives/address/address.hpp" +#include "filecoin/vm/message/message.hpp" namespace fc::vm::message { diff --git a/core/vm/message/message_util.hpp b/include/filecoin/vm/message/message_util.hpp similarity index 88% rename from core/vm/message/message_util.hpp rename to include/filecoin/vm/message/message_util.hpp index f6d370c36e..b8ccd92852 100644 --- a/core/vm/message/message_util.hpp +++ b/include/filecoin/vm/message/message_util.hpp @@ -6,8 +6,8 @@ #ifndef CPP_FILECOIN_CORE_VM_MESSAGE_UTIL_HPP #define CPP_FILECOIN_CORE_VM_MESSAGE_UTIL_HPP -#include "primitives/cid/cid.hpp" -#include "vm/message/message.hpp" +#include "filecoin/primitives/cid/cid.hpp" +#include "filecoin/vm/message/message.hpp" namespace fc::vm::message { diff --git a/core/vm/runtime/actor_state_handle.hpp b/include/filecoin/vm/runtime/actor_state_handle.hpp similarity index 94% rename from core/vm/runtime/actor_state_handle.hpp rename to include/filecoin/vm/runtime/actor_state_handle.hpp index a9874e9d6f..992165d340 100644 --- a/core/vm/runtime/actor_state_handle.hpp +++ b/include/filecoin/vm/runtime/actor_state_handle.hpp @@ -6,7 +6,7 @@ #ifndef CPP_FILECOIN_CORE_VM_RUNTIME_ACTOR_STATE_HANDLE_HPP #define CPP_FILECOIN_CORE_VM_RUNTIME_ACTOR_STATE_HANDLE_HPP -#include "vm/actor/actor.hpp" +#include "filecoin/vm/actor/actor.hpp" namespace fc::vm::runtime { diff --git a/core/vm/runtime/env.hpp b/include/filecoin/vm/runtime/env.hpp similarity index 89% rename from core/vm/runtime/env.hpp rename to include/filecoin/vm/runtime/env.hpp index 351c980639..4714d242b7 100644 --- a/core/vm/runtime/env.hpp +++ b/include/filecoin/vm/runtime/env.hpp @@ -6,10 +6,10 @@ #ifndef FILECOIN_CORE_VM_RUNTIME_ENV_HPP #define FILECOIN_CORE_VM_RUNTIME_ENV_HPP -#include "crypto/randomness/randomness_provider.hpp" -#include "vm/actor/invoker.hpp" -#include "vm/indices/indices.hpp" -#include "vm/state/state_tree.hpp" +#include "filecoin/crypto/randomness/randomness_provider.hpp" +#include "filecoin/vm/actor/invoker.hpp" +#include "filecoin/vm/indices/indices.hpp" +#include "filecoin/vm/state/state_tree.hpp" namespace fc::vm::runtime { using actor::Invoker; diff --git a/core/vm/runtime/gas_cost.hpp b/include/filecoin/vm/runtime/gas_cost.hpp similarity index 98% rename from core/vm/runtime/gas_cost.hpp rename to include/filecoin/vm/runtime/gas_cost.hpp index 862c17d081..81bd45b865 100644 --- a/core/vm/runtime/gas_cost.hpp +++ b/include/filecoin/vm/runtime/gas_cost.hpp @@ -6,7 +6,7 @@ #ifndef CPP_FILECOIN_CORE_VM_RUNTIME_GAS_COST_HPP #define CPP_FILECOIN_CORE_VM_RUNTIME_GAS_COST_HPP -#include "primitives/big_int.hpp" +#include "filecoin/primitives/big_int.hpp" namespace fc::vm::runtime { diff --git a/core/vm/runtime/impl/actor_state_handle_impl.hpp b/include/filecoin/vm/runtime/impl/actor_state_handle_impl.hpp similarity index 93% rename from core/vm/runtime/impl/actor_state_handle_impl.hpp rename to include/filecoin/vm/runtime/impl/actor_state_handle_impl.hpp index 42da6e3815..60d48fbe0a 100644 --- a/core/vm/runtime/impl/actor_state_handle_impl.hpp +++ b/include/filecoin/vm/runtime/impl/actor_state_handle_impl.hpp @@ -6,7 +6,7 @@ #ifndef CPP_FILECOIN_CORE_VM_RUNTIME_IMPL_ACTOR_STATE_HANDLE_IMPL_HPP #define CPP_FILECOIN_CORE_VM_RUNTIME_IMPL_ACTOR_STATE_HANDLE_IMPL_HPP -#include "vm/runtime/actor_state_handle.hpp" +#include "filecoin/vm/runtime/actor_state_handle.hpp" namespace fc::vm::runtime { diff --git a/core/vm/runtime/impl/runtime_impl.hpp b/include/filecoin/vm/runtime/impl/runtime_impl.hpp similarity index 93% rename from core/vm/runtime/impl/runtime_impl.hpp rename to include/filecoin/vm/runtime/impl/runtime_impl.hpp index 8c39e22621..f9709bcfbd 100644 --- a/core/vm/runtime/impl/runtime_impl.hpp +++ b/include/filecoin/vm/runtime/impl/runtime_impl.hpp @@ -6,13 +6,13 @@ #ifndef CPP_FILECOIN_CORE_VM_RUNTIME_IMPL_RUNTIME_IMPL_HPP #define CPP_FILECOIN_CORE_VM_RUNTIME_IMPL_RUNTIME_IMPL_HPP -#include "crypto/randomness/randomness_provider.hpp" -#include "storage/ipfs/datastore.hpp" -#include "vm/actor/invoker.hpp" -#include "vm/runtime/actor_state_handle.hpp" -#include "vm/runtime/env.hpp" -#include "vm/runtime/runtime.hpp" -#include "vm/state/state_tree.hpp" +#include "filecoin/crypto/randomness/randomness_provider.hpp" +#include "filecoin/storage/ipfs/datastore.hpp" +#include "filecoin/vm/actor/invoker.hpp" +#include "filecoin/vm/runtime/actor_state_handle.hpp" +#include "filecoin/vm/runtime/env.hpp" +#include "filecoin/vm/runtime/runtime.hpp" +#include "filecoin/vm/state/state_tree.hpp" namespace fc::vm::runtime { diff --git a/core/vm/runtime/runtime.hpp b/include/filecoin/vm/runtime/runtime.hpp similarity index 92% rename from core/vm/runtime/runtime.hpp rename to include/filecoin/vm/runtime/runtime.hpp index 837c7029ca..cffd86d930 100644 --- a/core/vm/runtime/runtime.hpp +++ b/include/filecoin/vm/runtime/runtime.hpp @@ -8,19 +8,19 @@ #include -#include "common/outcome.hpp" -#include "crypto/randomness/randomness_types.hpp" -#include "primitives/address/address.hpp" -#include "primitives/block/block.hpp" -#include "primitives/chain_epoch/chain_epoch.hpp" -#include "primitives/sector/sector.hpp" -#include "storage/ipfs/datastore.hpp" -#include "vm/actor/actor_encoding.hpp" -#include "vm/exit_code/exit_code.hpp" -#include "vm/indices/indices.hpp" -#include "vm/message/message.hpp" -#include "vm/runtime/actor_state_handle.hpp" -#include "vm/runtime/runtime_types.hpp" +#include "filecoin/common/outcome.hpp" +#include "filecoin/crypto/randomness/randomness_types.hpp" +#include "filecoin/primitives/address/address.hpp" +#include "filecoin/primitives/block/block.hpp" +#include "filecoin/primitives/chain_epoch/chain_epoch.hpp" +#include "filecoin/primitives/sector/sector.hpp" +#include "filecoin/storage/ipfs/datastore.hpp" +#include "filecoin/vm/actor/actor_encoding.hpp" +#include "filecoin/vm/exit_code/exit_code.hpp" +#include "filecoin/vm/indices/indices.hpp" +#include "filecoin/vm/message/message.hpp" +#include "filecoin/vm/runtime/actor_state_handle.hpp" +#include "filecoin/vm/runtime/runtime_types.hpp" namespace fc::vm::runtime { diff --git a/core/vm/runtime/runtime_error.hpp b/include/filecoin/vm/runtime/runtime_error.hpp similarity index 94% rename from core/vm/runtime/runtime_error.hpp rename to include/filecoin/vm/runtime/runtime_error.hpp index edff6b9d9b..bb1ecad99a 100644 --- a/core/vm/runtime/runtime_error.hpp +++ b/include/filecoin/vm/runtime/runtime_error.hpp @@ -6,7 +6,7 @@ #ifndef FILECOIN_CORE_VM_RUNTIME_RUNTIM_ERROR #define FILECOIN_CORE_VM_RUNTIME_RUNTIM_ERROR -#include "common/outcome.hpp" +#include "filecoin/common/outcome.hpp" namespace fc::vm::runtime { diff --git a/core/vm/runtime/runtime_types.hpp b/include/filecoin/vm/runtime/runtime_types.hpp similarity index 81% rename from core/vm/runtime/runtime_types.hpp rename to include/filecoin/vm/runtime/runtime_types.hpp index 39baa36a9e..0300dfec6a 100644 --- a/core/vm/runtime/runtime_types.hpp +++ b/include/filecoin/vm/runtime/runtime_types.hpp @@ -6,11 +6,11 @@ #ifndef CPP_FILECOIN_CORE_VM_RUNTIME_RUNTIME_TYPES_HPP #define CPP_FILECOIN_CORE_VM_RUNTIME_RUNTIME_TYPES_HPP -#include "codec/cbor/streams_annotation.hpp" -#include "common/buffer.hpp" -#include "primitives/address/address.hpp" -#include "primitives/big_int.hpp" -#include "vm/exit_code/exit_code.hpp" +#include "filecoin/codec/cbor/streams_annotation.hpp" +#include "filecoin/common/buffer.hpp" +#include "filecoin/primitives/address/address.hpp" +#include "filecoin/primitives/big_int.hpp" +#include "filecoin/vm/exit_code/exit_code.hpp" namespace fc::vm::runtime { diff --git a/core/vm/state/impl/state_tree_impl.hpp b/include/filecoin/vm/state/impl/state_tree_impl.hpp similarity index 92% rename from core/vm/state/impl/state_tree_impl.hpp rename to include/filecoin/vm/state/impl/state_tree_impl.hpp index 7505d66be6..d9e5203704 100644 --- a/core/vm/state/impl/state_tree_impl.hpp +++ b/include/filecoin/vm/state/impl/state_tree_impl.hpp @@ -6,10 +6,10 @@ #ifndef CPP_FILECOIN_CORE_VM_STATE_STATE_TREE_IMPL_HPP #define CPP_FILECOIN_CORE_VM_STATE_STATE_TREE_IMPL_HPP -#include "vm/state/state_tree.hpp" +#include "filecoin/vm/state/state_tree.hpp" -#include "storage/hamt/hamt.hpp" -#include "vm/actor/actor.hpp" +#include "filecoin/storage/hamt/hamt.hpp" +#include "filecoin/vm/actor/actor.hpp" namespace fc::vm::state { diff --git a/core/vm/state/state_tree.hpp b/include/filecoin/vm/state/state_tree.hpp similarity index 94% rename from core/vm/state/state_tree.hpp rename to include/filecoin/vm/state/state_tree.hpp index c5edf09398..d4d52cd7d9 100644 --- a/core/vm/state/state_tree.hpp +++ b/include/filecoin/vm/state/state_tree.hpp @@ -6,8 +6,8 @@ #ifndef CPP_FILECOIN_CORE_VM_STATE_STATE_TREE_HPP #define CPP_FILECOIN_CORE_VM_STATE_STATE_TREE_HPP -#include "storage/hamt/hamt.hpp" -#include "vm/actor/actor.hpp" +#include "filecoin/storage/hamt/hamt.hpp" +#include "filecoin/vm/actor/actor.hpp" namespace fc::vm::state { diff --git a/test/core/adt/array_test.cpp b/test/core/adt/array_test.cpp index a3bfa457c3..a8b6238ee2 100644 --- a/test/core/adt/array_test.cpp +++ b/test/core/adt/array_test.cpp @@ -7,9 +7,9 @@ #include -#include "adt/array.hpp" -#include "common/outcome.hpp" -#include "storage/ipfs/impl/in_memory_datastore.hpp" +#include "filecoin/adt/array.hpp" +#include "filecoin/common/outcome.hpp" +#include "filecoin/storage/ipfs/impl/in_memory_datastore.hpp" #include "testutil/cbor.hpp" #include "testutil/literals.hpp" diff --git a/test/core/adt/balance_table_hamt_test.cpp b/test/core/adt/balance_table_hamt_test.cpp index f5a52c371e..5eac95c332 100644 --- a/test/core/adt/balance_table_hamt_test.cpp +++ b/test/core/adt/balance_table_hamt_test.cpp @@ -3,10 +3,10 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "adt/balance_table_hamt.hpp" +#include "filecoin/adt/balance_table_hamt.hpp" #include -#include "storage/ipfs/impl/in_memory_datastore.hpp" +#include "filecoin/storage/ipfs/impl/in_memory_datastore.hpp" #include "testutil/outcome.hpp" using fc::CID; diff --git a/test/core/adt/multimap_test.cpp b/test/core/adt/multimap_test.cpp index 4199a09e80..1f2f34539f 100644 --- a/test/core/adt/multimap_test.cpp +++ b/test/core/adt/multimap_test.cpp @@ -5,10 +5,10 @@ #include -#include "adt/multimap.hpp" -#include "common/outcome.hpp" -#include "storage/hamt/hamt.hpp" -#include "storage/ipfs/impl/in_memory_datastore.hpp" +#include "filecoin/adt/multimap.hpp" +#include "filecoin/common/outcome.hpp" +#include "filecoin/storage/hamt/hamt.hpp" +#include "filecoin/storage/ipfs/impl/in_memory_datastore.hpp" #include "testutil/cbor.hpp" #include "testutil/literals.hpp" diff --git a/test/core/blockchain/message_pool/gas_price_scored_message_storage_test.cpp b/test/core/blockchain/message_pool/gas_price_scored_message_storage_test.cpp index 8488092360..ae62320d97 100644 --- a/test/core/blockchain/message_pool/gas_price_scored_message_storage_test.cpp +++ b/test/core/blockchain/message_pool/gas_price_scored_message_storage_test.cpp @@ -5,8 +5,8 @@ #include -#include "blockchain/message_pool/impl/gas_price_scored_message_storage.hpp" -#include "blockchain/message_pool/message_pool_error.hpp" +#include "filecoin/blockchain/message_pool/impl/gas_price_scored_message_storage.hpp" +#include "filecoin/blockchain/message_pool/message_pool_error.hpp" #include "testutil/literals.hpp" #include "testutil/outcome.hpp" #include "testutil/vm/message/message_test_util.hpp" diff --git a/test/core/blockchain/production/block_producer_test.cpp b/test/core/blockchain/production/block_producer_test.cpp index 25663d4379..c06f040b76 100644 --- a/test/core/blockchain/production/block_producer_test.cpp +++ b/test/core/blockchain/production/block_producer_test.cpp @@ -5,7 +5,7 @@ #include "block_producer_test.hpp" -#include "codec/cbor/cbor.hpp" +#include "filecoin/codec/cbor/cbor.hpp" using testing::_; diff --git a/test/core/blockchain/production/block_producer_test.hpp b/test/core/blockchain/production/block_producer_test.hpp index e64f952bbc..21cee92852 100644 --- a/test/core/blockchain/production/block_producer_test.hpp +++ b/test/core/blockchain/production/block_producer_test.hpp @@ -8,14 +8,14 @@ #include #include -#include "blockchain/message_pool/message_storage.hpp" -#include "blockchain/production/impl/block_producer_impl.hpp" -#include "clock/impl/chain_epoch_clock_impl.hpp" -#include "clock/time.hpp" -#include "crypto/bls/impl/bls_provider_impl.hpp" -#include "primitives/address/address.hpp" -#include "primitives/cid/cid.hpp" -#include "primitives/tipset/tipset.hpp" +#include "filecoin/blockchain/message_pool/message_storage.hpp" +#include "filecoin/blockchain/production/impl/block_producer_impl.hpp" +#include "filecoin/clock/impl/chain_epoch_clock_impl.hpp" +#include "filecoin/clock/time.hpp" +#include "filecoin/crypto/bls/impl/bls_provider_impl.hpp" +#include "filecoin/primitives/address/address.hpp" +#include "filecoin/primitives/cid/cid.hpp" +#include "filecoin/primitives/tipset/tipset.hpp" #include "testutil/cbor.hpp" #include "testutil/literals.hpp" #include "testutil/mocks/blockchain/message_pool/message_storage_mock.hpp" diff --git a/test/core/clock/chain_epoch_clock_test.cpp b/test/core/clock/chain_epoch_clock_test.cpp index de5deae455..fabc37535d 100644 --- a/test/core/clock/chain_epoch_clock_test.cpp +++ b/test/core/clock/chain_epoch_clock_test.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "clock/impl/chain_epoch_clock_impl.hpp" +#include "filecoin/clock/impl/chain_epoch_clock_impl.hpp" #include #include "testutil/outcome.hpp" diff --git a/test/core/clock/time_test.cpp b/test/core/clock/time_test.cpp index 4b8d8da098..cc9fcbe3b6 100644 --- a/test/core/clock/time_test.cpp +++ b/test/core/clock/time_test.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "clock/time.hpp" +#include "filecoin/clock/time.hpp" #include #include "testutil/outcome.hpp" diff --git a/test/core/codec/cbor/cbor_test.cpp b/test/core/codec/cbor/cbor_test.cpp index 60ff9dc0fd..949c212e4d 100644 --- a/test/core/codec/cbor/cbor_test.cpp +++ b/test/core/codec/cbor/cbor_test.cpp @@ -3,11 +3,11 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "codec/cbor/cbor.hpp" -#include "primitives/big_int.hpp" +#include "filecoin/codec/cbor/cbor.hpp" +#include "filecoin/primitives/big_int.hpp" #include -#include "primitives/cid/cid.hpp" +#include "filecoin/primitives/cid/cid.hpp" #include "testutil/literals.hpp" #include "testutil/outcome.hpp" diff --git a/test/core/codec/rleplus/rle_plus_codec_test.cpp b/test/core/codec/rleplus/rle_plus_codec_test.cpp index d5d102f2e4..20852e4903 100644 --- a/test/core/codec/rleplus/rle_plus_codec_test.cpp +++ b/test/core/codec/rleplus/rle_plus_codec_test.cpp @@ -5,7 +5,7 @@ #include -#include "core/codec/rleplus/rle_plus_codec_tester.hpp" +#include "rle_plus_codec_tester.hpp" using fc::codec::rle::decode; using fc::codec::rle::RLEPlusDecodeError; diff --git a/test/core/codec/rleplus/rle_plus_codec_tester.hpp b/test/core/codec/rleplus/rle_plus_codec_tester.hpp index b816195f3e..61635923c2 100644 --- a/test/core/codec/rleplus/rle_plus_codec_tester.hpp +++ b/test/core/codec/rleplus/rle_plus_codec_tester.hpp @@ -10,7 +10,7 @@ #include -#include "codec/rle/rle_plus.hpp" +#include "filecoin/codec/rle/rle_plus.hpp" #include "testutil/outcome.hpp" /** diff --git a/test/core/common/blob_test.cpp b/test/core/common/blob_test.cpp index 36e49d6ce1..642cd173ae 100644 --- a/test/core/common/blob_test.cpp +++ b/test/core/common/blob_test.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "common/blob.hpp" +#include "filecoin/common/blob.hpp" #include diff --git a/test/core/common/hexutil_test.cpp b/test/core/common/hexutil_test.cpp index f47acd63fd..930d25dd7c 100644 --- a/test/core/common/hexutil_test.cpp +++ b/test/core/common/hexutil_test.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "common/hexutil.hpp" +#include "filecoin/common/hexutil.hpp" #include #include "testutil/literals.hpp" diff --git a/test/core/common/le_encoder_test.cpp b/test/core/common/le_encoder_test.cpp index 5939b8c461..2298674df4 100644 --- a/test/core/common/le_encoder_test.cpp +++ b/test/core/common/le_encoder_test.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "common/le_encoder.hpp" +#include "filecoin/common/le_encoder.hpp" #include diff --git a/test/core/crypto/blake2_test.cpp b/test/core/crypto/blake2_test.cpp index f3756986c7..5a0533563f 100644 --- a/test/core/crypto/blake2_test.cpp +++ b/test/core/crypto/blake2_test.cpp @@ -6,8 +6,8 @@ #include #include -#include "crypto/blake2/blake2b.h" -#include "crypto/blake2/blake2s.h" +#include "filecoin/crypto/blake2/blake2b.h" +#include "filecoin/crypto/blake2/blake2s.h" #include "testutil/literals.hpp" // Deterministic sequences (Fibonacci generator). diff --git a/test/core/crypto/bls_provider_test.cpp b/test/core/crypto/bls_provider_test.cpp index 115f84fd89..efb0500174 100644 --- a/test/core/crypto/bls_provider_test.cpp +++ b/test/core/crypto/bls_provider_test.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "crypto/bls/impl/bls_provider_impl.hpp" +#include "filecoin/crypto/bls/impl/bls_provider_impl.hpp" #include #include diff --git a/test/core/crypto/murmur_test.cpp b/test/core/crypto/murmur_test.cpp index 0c995b31c9..50b99814ab 100644 --- a/test/core/crypto/murmur_test.cpp +++ b/test/core/crypto/murmur_test.cpp @@ -3,10 +3,10 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "crypto/murmur/murmur.hpp" +#include "filecoin/crypto/murmur/murmur.hpp" #include -#include "common/hexutil.hpp" +#include "filecoin/common/hexutil.hpp" class MurmurTest : public ::testing::TestWithParam> { diff --git a/test/core/crypto/randomness/randomness_provider_test.cpp b/test/core/crypto/randomness/randomness_provider_test.cpp index faac7348f8..4a0bbc9417 100644 --- a/test/core/crypto/randomness/randomness_provider_test.cpp +++ b/test/core/crypto/randomness/randomness_provider_test.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "crypto/randomness/impl/randomness_provider_impl.hpp" +#include "filecoin/crypto/randomness/impl/randomness_provider_impl.hpp" #include diff --git a/test/core/crypto/vrf/vrf_encoder_test.cpp b/test/core/crypto/vrf/vrf_encoder_test.cpp index 659846dbd2..6967ccc737 100644 --- a/test/core/crypto/vrf/vrf_encoder_test.cpp +++ b/test/core/crypto/vrf/vrf_encoder_test.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "crypto/vrf/vrf_hash_encoder.hpp" +#include "filecoin/crypto/vrf/vrf_hash_encoder.hpp" #include #include "testutil/literals.hpp" diff --git a/test/core/crypto/vrf/vrf_provider_test.cpp b/test/core/crypto/vrf/vrf_provider_test.cpp index 2a68049c5d..1382b97a8b 100644 --- a/test/core/crypto/vrf/vrf_provider_test.cpp +++ b/test/core/crypto/vrf/vrf_provider_test.cpp @@ -3,10 +3,10 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "crypto/vrf/impl/vrf_provider_impl.hpp" +#include "filecoin/crypto/vrf/impl/vrf_provider_impl.hpp" #include -#include "crypto/bls/impl/bls_provider_impl.hpp" +#include "filecoin/crypto/bls/impl/bls_provider_impl.hpp" #include "testutil/literals.hpp" #include "testutil/outcome.hpp" diff --git a/test/core/fslock/fslock_test.cpp b/test/core/fslock/fslock_test.cpp index f0da5a7830..0ccb3ee981 100644 --- a/test/core/fslock/fslock_test.cpp +++ b/test/core/fslock/fslock_test.cpp @@ -3,12 +3,12 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "fslock/fslock.hpp" +#include "filecoin/fslock/fslock.hpp" #include #include -#include "fslock/fslock_error.hpp" -#include "storage/filestore/impl/filesystem/filesystem_file.hpp" +#include "filecoin/fslock/fslock_error.hpp" +#include "filecoin/storage/filestore/impl/filesystem/filesystem_file.hpp" #include "testutil/outcome.hpp" #include "testutil/storage/base_fs_test.hpp" diff --git a/test/core/power/power_table_hamt_test.cpp b/test/core/power/power_table_hamt_test.cpp index 1f5868a472..e28811f4c0 100644 --- a/test/core/power/power_table_hamt_test.cpp +++ b/test/core/power/power_table_hamt_test.cpp @@ -3,12 +3,12 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "power/impl/power_table_hamt.hpp" +#include "filecoin/power/impl/power_table_hamt.hpp" #include #include -#include -#include "storage/ipfs/impl/in_memory_datastore.hpp" +#include "filecoin/power/power_table_error.hpp" +#include "filecoin/storage/ipfs/impl/in_memory_datastore.hpp" #include "testutil/outcome.hpp" using fc::power::PowerTableError; diff --git a/test/core/power/power_table_test.cpp b/test/core/power/power_table_test.cpp index 5526793f3b..19b297378c 100644 --- a/test/core/power/power_table_test.cpp +++ b/test/core/power/power_table_test.cpp @@ -3,12 +3,12 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "power/power_table.hpp" +#include "filecoin/power/power_table.hpp" #include -#include "power/impl/power_table_impl.hpp" -#include "power/power_table_error.hpp" +#include "filecoin/power/impl/power_table_impl.hpp" +#include "filecoin/power/power_table_error.hpp" #include "testutil/outcome.hpp" using fc::power::PowerTable; diff --git a/test/core/primitives/address/address_codec_test.cpp b/test/core/primitives/address/address_codec_test.cpp index 5981ae9f59..96177fb963 100644 --- a/test/core/primitives/address/address_codec_test.cpp +++ b/test/core/primitives/address/address_codec_test.cpp @@ -7,8 +7,8 @@ #include #include -#include "codec/cbor/cbor.hpp" -#include "primitives/address/address_codec.hpp" +#include "filecoin/codec/cbor/cbor.hpp" +#include "filecoin/primitives/address/address_codec.hpp" #include "testutil/literals.hpp" #include "testutil/outcome.hpp" diff --git a/test/core/primitives/address/address_test.cpp b/test/core/primitives/address/address_test.cpp index d149c689f9..a388ba1c36 100644 --- a/test/core/primitives/address/address_test.cpp +++ b/test/core/primitives/address/address_test.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "primitives/address/address.hpp" +#include "filecoin/primitives/address/address.hpp" #include diff --git a/test/core/primitives/address/address_verifier_test.cpp b/test/core/primitives/address/address_verifier_test.cpp index 3653468f30..f0f3d2e6b8 100644 --- a/test/core/primitives/address/address_verifier_test.cpp +++ b/test/core/primitives/address/address_verifier_test.cpp @@ -5,10 +5,10 @@ #include -#include "crypto/blake2/blake2b160.hpp" -#include "crypto/bls/impl/bls_provider_impl.hpp" -#include "crypto/secp256k1/secp256k1_provider.hpp" -#include "primitives/address/address.hpp" +#include "filecoin/crypto/blake2/blake2b160.hpp" +#include "filecoin/crypto/bls/impl/bls_provider_impl.hpp" +#include "filecoin/crypto/secp256k1/secp256k1_provider.hpp" +#include "filecoin/primitives/address/address.hpp" #include "testutil/outcome.hpp" using fc::crypto::blake2b::blake2b_160; diff --git a/test/core/primitives/big_int_test.cpp b/test/core/primitives/big_int_test.cpp index ff412ef266..1b2581f9ad 100644 --- a/test/core/primitives/big_int_test.cpp +++ b/test/core/primitives/big_int_test.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "primitives/big_int.hpp" +#include "filecoin/primitives/big_int.hpp" #include diff --git a/test/core/primitives/block/block_test.cpp b/test/core/primitives/block/block_test.cpp index b2c270f7d6..238c9594e0 100644 --- a/test/core/primitives/block/block_test.cpp +++ b/test/core/primitives/block/block_test.cpp @@ -3,11 +3,11 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "primitives/block/block.hpp" +#include "filecoin/primitives/block/block.hpp" #include #include "testutil/cbor.hpp" -#include "common/hexutil.hpp" +#include "filecoin/common/hexutil.hpp" /** * @given block header and its serialized representation from go diff --git a/test/core/primitives/chain_epoch/chain_epoch_codec_test.cpp b/test/core/primitives/chain_epoch/chain_epoch_codec_test.cpp index 72d6ebb91d..b35547a1ad 100644 --- a/test/core/primitives/chain_epoch/chain_epoch_codec_test.cpp +++ b/test/core/primitives/chain_epoch/chain_epoch_codec_test.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "primitives/chain_epoch/chain_epoch_codec.hpp" +#include "filecoin/primitives/chain_epoch/chain_epoch_codec.hpp" #include diff --git a/test/core/primitives/cid/cid_json_test.cpp b/test/core/primitives/cid/cid_json_test.cpp index 8b08d6c425..ba5c65f531 100644 --- a/test/core/primitives/cid/cid_json_test.cpp +++ b/test/core/primitives/cid/cid_json_test.cpp @@ -3,11 +3,11 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "primitives/cid/json_codec.hpp" +#include "filecoin/primitives/cid/json_codec.hpp" #include #include -#include "primitives/cid/cid_of_cbor.hpp" +#include "filecoin/primitives/cid/cid_of_cbor.hpp" #include "testutil/outcome.hpp" using namespace fc::primitives::cid; diff --git a/test/core/primitives/rle_bitset/rle_bitset_test.cpp b/test/core/primitives/rle_bitset/rle_bitset_test.cpp index c1e6d27947..246ae4d781 100644 --- a/test/core/primitives/rle_bitset/rle_bitset_test.cpp +++ b/test/core/primitives/rle_bitset/rle_bitset_test.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "primitives/rle_bitset/rle_bitset.hpp" +#include "filecoin/primitives/rle_bitset/rle_bitset.hpp" #include #include "testutil/cbor.hpp" diff --git a/test/core/primitives/ticket/epost_proof_codec_test.cpp b/test/core/primitives/ticket/epost_proof_codec_test.cpp index d9f439f481..d26149b83a 100644 --- a/test/core/primitives/ticket/epost_proof_codec_test.cpp +++ b/test/core/primitives/ticket/epost_proof_codec_test.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "primitives/ticket/epost_ticket_codec.hpp" +#include "filecoin/primitives/ticket/epost_ticket_codec.hpp" #include #include "testutil/outcome.hpp" diff --git a/test/core/primitives/ticket/epost_ticket_codec_test.cpp b/test/core/primitives/ticket/epost_ticket_codec_test.cpp index d16cbadfd1..69934bd7e0 100644 --- a/test/core/primitives/ticket/epost_ticket_codec_test.cpp +++ b/test/core/primitives/ticket/epost_ticket_codec_test.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "primitives/ticket/epost_ticket_codec.hpp" +#include "filecoin/primitives/ticket/epost_ticket_codec.hpp" #include #include "testutil/outcome.hpp" diff --git a/test/core/primitives/ticket/epost_ticket_test.cpp b/test/core/primitives/ticket/epost_ticket_test.cpp index 9580acb246..0bca184685 100644 --- a/test/core/primitives/ticket/epost_ticket_test.cpp +++ b/test/core/primitives/ticket/epost_ticket_test.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "primitives/ticket/ticket.hpp" +#include "filecoin/primitives/ticket/ticket.hpp" #include #include "testutil/outcome.hpp" diff --git a/test/core/primitives/ticket/ticket_codec_test.cpp b/test/core/primitives/ticket/ticket_codec_test.cpp index 8c464f2e6f..83a6be0562 100644 --- a/test/core/primitives/ticket/ticket_codec_test.cpp +++ b/test/core/primitives/ticket/ticket_codec_test.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "primitives/ticket/ticket_codec.hpp" +#include "filecoin/primitives/ticket/ticket_codec.hpp" #include #include "testutil/outcome.hpp" diff --git a/test/core/primitives/ticket/ticket_test.cpp b/test/core/primitives/ticket/ticket_test.cpp index 4bc7a7dacb..a771bfd356 100644 --- a/test/core/primitives/ticket/ticket_test.cpp +++ b/test/core/primitives/ticket/ticket_test.cpp @@ -3,10 +3,10 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "primitives/ticket/ticket.hpp" +#include "filecoin/primitives/ticket/ticket.hpp" #include -#include "common/hexutil.hpp" +#include "filecoin/common/hexutil.hpp" #include "testutil/literals.hpp" #include "testutil/outcome.hpp" #include "testutil/primitives/ticket/printer.hpp" diff --git a/test/core/primitives/tipset/tipset_key_test.cpp b/test/core/primitives/tipset/tipset_key_test.cpp index 410e057795..0c9e848b50 100644 --- a/test/core/primitives/tipset/tipset_key_test.cpp +++ b/test/core/primitives/tipset/tipset_key_test.cpp @@ -3,10 +3,10 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "primitives/tipset/tipset_key.hpp" +#include "filecoin/primitives/tipset/tipset_key.hpp" #include -#include "common/hexutil.hpp" +#include "filecoin/common/hexutil.hpp" #include "testutil/cbor.hpp" struct TipsetKeyTest : public ::testing::Test { diff --git a/test/core/primitives/tipset/tipset_test.cpp b/test/core/primitives/tipset/tipset_test.cpp index 3936a01694..11ac5bf5ce 100644 --- a/test/core/primitives/tipset/tipset_test.cpp +++ b/test/core/primitives/tipset/tipset_test.cpp @@ -3,11 +3,11 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "primitives/tipset/tipset.hpp" +#include "filecoin/primitives/tipset/tipset.hpp" #include -#include "primitives/cid/cid_of_cbor.hpp" -#include "common/hexutil.hpp" +#include "filecoin/primitives/cid/cid_of_cbor.hpp" +#include "filecoin/common/hexutil.hpp" #include "testutil/cbor.hpp" #include "testutil/literals.hpp" #include "testutil/outcome.hpp" diff --git a/test/core/proofs/proofs_test.cpp b/test/core/proofs/proofs_test.cpp index 6bb1ab244b..8dc76b3553 100644 --- a/test/core/proofs/proofs_test.cpp +++ b/test/core/proofs/proofs_test.cpp @@ -3,12 +3,12 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "proofs/proofs.hpp" +#include "filecoin/proofs/proofs.hpp" #include #include -#include "proofs/proof_param_provider.hpp" -#include "storage/filestore/impl/filesystem/filesystem_file.hpp" +#include "filecoin/proofs/proof_param_provider.hpp" +#include "filecoin/storage/filestore/impl/filesystem/filesystem_file.hpp" #include "testutil/outcome.hpp" #include "testutil/storage/base_fs_test.hpp" diff --git a/test/core/storage/amt/amt_test.cpp b/test/core/storage/amt/amt_test.cpp index dc865e2df1..ab06220c45 100644 --- a/test/core/storage/amt/amt_test.cpp +++ b/test/core/storage/amt/amt_test.cpp @@ -3,10 +3,10 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "storage/amt/amt.hpp" +#include "filecoin/storage/amt/amt.hpp" #include -#include "storage/ipfs/impl/in_memory_datastore.hpp" +#include "filecoin/storage/ipfs/impl/in_memory_datastore.hpp" #include "testutil/cbor.hpp" using fc::codec::cbor::encode; diff --git a/test/core/storage/chain/chain_data_store/chain_data_store_test.cpp b/test/core/storage/chain/chain_data_store/chain_data_store_test.cpp index 2fee3e69e5..e4c5ff810d 100644 --- a/test/core/storage/chain/chain_data_store/chain_data_store_test.cpp +++ b/test/core/storage/chain/chain_data_store/chain_data_store_test.cpp @@ -3,9 +3,9 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "storage/chain/impl/chain_data_store_impl.hpp" +#include "filecoin/storage/chain/impl/chain_data_store_impl.hpp" -#include "storage/ipfs/impl/in_memory_datastore.hpp" +#include "filecoin/storage/ipfs/impl/in_memory_datastore.hpp" #include #include "testutil/outcome.hpp" diff --git a/test/core/storage/chain/chain_store/chain_store_test.cpp b/test/core/storage/chain/chain_store/chain_store_test.cpp index d6572779c5..b7781ba729 100644 --- a/test/core/storage/chain/chain_store/chain_store_test.cpp +++ b/test/core/storage/chain/chain_store/chain_store_test.cpp @@ -3,16 +3,16 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "storage/chain/impl/chain_store_impl.hpp" +#include "filecoin/storage/chain/impl/chain_store_impl.hpp" #include -#include "blockchain/impl/block_validator_impl.hpp" -#include "blockchain/impl/weight_calculator_impl.hpp" -#include "common/hexutil.hpp" -#include "primitives/cid/cid_of_cbor.hpp" -#include "storage/chain/impl/chain_data_store_impl.hpp" -#include "storage/ipfs/impl/ipfs_block_service.hpp" -#include "storage/ipfs/impl/in_memory_datastore.hpp" +#include "filecoin/blockchain/impl/block_validator_impl.hpp" +#include "filecoin/blockchain/impl/weight_calculator_impl.hpp" +#include "filecoin/common/hexutil.hpp" +#include "filecoin/primitives/cid/cid_of_cbor.hpp" +#include "filecoin/storage/chain/impl/chain_data_store_impl.hpp" +#include "filecoin/storage/ipfs/impl/ipfs_block_service.hpp" +#include "filecoin/storage/ipfs/impl/in_memory_datastore.hpp" #include "testutil/cbor.hpp" #include "testutil/literals.hpp" #include "testutil/outcome.hpp" diff --git a/test/core/storage/chain/datastore_key/datastore_key_cbor_test.cpp b/test/core/storage/chain/datastore_key/datastore_key_cbor_test.cpp index 0c49393efb..6b58f8ca86 100644 --- a/test/core/storage/chain/datastore_key/datastore_key_cbor_test.cpp +++ b/test/core/storage/chain/datastore_key/datastore_key_cbor_test.cpp @@ -3,10 +3,10 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "storage/chain/datastore_key.hpp" +#include "filecoin/storage/chain/datastore_key.hpp" #include -#include "codec/cbor/cbor.hpp" +#include "filecoin/codec/cbor/cbor.hpp" #include "testutil/outcome.hpp" using namespace fc::storage; diff --git a/test/core/storage/chain/datastore_key/datastore_key_compare_test.cpp b/test/core/storage/chain/datastore_key/datastore_key_compare_test.cpp index 8cb1c92d88..a445f8d980 100644 --- a/test/core/storage/chain/datastore_key/datastore_key_compare_test.cpp +++ b/test/core/storage/chain/datastore_key/datastore_key_compare_test.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "storage/chain/datastore_key.hpp" +#include "filecoin/storage/chain/datastore_key.hpp" #include diff --git a/test/core/storage/chain/datastore_key/datastore_key_create_test.cpp b/test/core/storage/chain/datastore_key/datastore_key_create_test.cpp index 2dac4a0e34..7f71f7fa1c 100644 --- a/test/core/storage/chain/datastore_key/datastore_key_create_test.cpp +++ b/test/core/storage/chain/datastore_key/datastore_key_create_test.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "storage/chain/datastore_key.hpp" +#include "filecoin/storage/chain/datastore_key.hpp" #include diff --git a/test/core/storage/config/config_test.cpp b/test/core/storage/config/config_test.cpp index 852e0c3103..7a4556e6a8 100644 --- a/test/core/storage/config/config_test.cpp +++ b/test/core/storage/config/config_test.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "storage/config/config.hpp" +#include "filecoin/storage/config/config.hpp" #include diff --git a/test/core/storage/filestore/filesystem/filesystem_file_test.cpp b/test/core/storage/filestore/filesystem/filesystem_file_test.cpp index 4cb27d0152..5493645fa3 100644 --- a/test/core/storage/filestore/filesystem/filesystem_file_test.cpp +++ b/test/core/storage/filestore/filesystem/filesystem_file_test.cpp @@ -3,11 +3,11 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "storage/filestore/impl/filesystem/filesystem_file.hpp" +#include "filecoin/storage/filestore/impl/filesystem/filesystem_file.hpp" #include #include -#include "storage/filestore/filestore_error.hpp" +#include "filecoin/storage/filestore/filestore_error.hpp" #include "testutil/outcome.hpp" #include "testutil/storage/base_fs_test.hpp" diff --git a/test/core/storage/filestore/filesystem/filesystem_filestore_test.cpp b/test/core/storage/filestore/filesystem/filesystem_filestore_test.cpp index 60261f9fa6..0031e3b1b1 100644 --- a/test/core/storage/filestore/filesystem/filesystem_filestore_test.cpp +++ b/test/core/storage/filestore/filesystem/filesystem_filestore_test.cpp @@ -3,10 +3,10 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "storage/filestore/impl/filesystem/filesystem_filestore.hpp" +#include "filecoin/storage/filestore/impl/filesystem/filesystem_filestore.hpp" #include -#include "storage/filestore/filestore_error.hpp" +#include "filecoin/storage/filestore/filestore_error.hpp" #include "testutil/outcome.hpp" #include "testutil/storage/base_fs_test.hpp" diff --git a/test/core/storage/hamt/hamt_test.cpp b/test/core/storage/hamt/hamt_test.cpp index 9fbce29905..6036b1a916 100644 --- a/test/core/storage/hamt/hamt_test.cpp +++ b/test/core/storage/hamt/hamt_test.cpp @@ -3,12 +3,12 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "storage/hamt/hamt.hpp" +#include "filecoin/storage/hamt/hamt.hpp" #include -#include "codec/cbor/cbor.hpp" -#include "common/which.hpp" -#include "storage/ipfs/impl/in_memory_datastore.hpp" +#include "filecoin/codec/cbor/cbor.hpp" +#include "filecoin/common/which.hpp" +#include "filecoin/storage/ipfs/impl/in_memory_datastore.hpp" #include "testutil/cbor.hpp" using fc::codec::cbor::encode; diff --git a/test/core/storage/ipfs/datastore_integration_test.cpp b/test/core/storage/ipfs/datastore_integration_test.cpp index 01a5a00008..98b9bc9888 100644 --- a/test/core/storage/ipfs/datastore_integration_test.cpp +++ b/test/core/storage/ipfs/datastore_integration_test.cpp @@ -8,7 +8,7 @@ #include #include -#include "storage/ipfs/impl/datastore_leveldb.hpp" +#include "filecoin/storage/ipfs/impl/datastore_leveldb.hpp" #include "testutil/literals.hpp" #include "testutil/outcome.hpp" diff --git a/test/core/storage/ipfs/in_memory_ipfs_datastore_test.cpp b/test/core/storage/ipfs/in_memory_ipfs_datastore_test.cpp index 264a9f3807..ff6963033c 100644 --- a/test/core/storage/ipfs/in_memory_ipfs_datastore_test.cpp +++ b/test/core/storage/ipfs/in_memory_ipfs_datastore_test.cpp @@ -5,7 +5,7 @@ #include -#include "storage/ipfs/impl/in_memory_datastore.hpp" +#include "filecoin/storage/ipfs/impl/in_memory_datastore.hpp" #include "testutil/literals.hpp" #include "testutil/outcome.hpp" diff --git a/test/core/storage/ipfs/ipfs_block_service_test.cpp b/test/core/storage/ipfs/ipfs_block_service_test.cpp index 3353f126e2..67004a4c3e 100644 --- a/test/core/storage/ipfs/ipfs_block_service_test.cpp +++ b/test/core/storage/ipfs/ipfs_block_service_test.cpp @@ -3,14 +3,14 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "storage/ipfs/impl/ipfs_block_service.hpp" +#include "filecoin/storage/ipfs/impl/ipfs_block_service.hpp" #include #include -#include "common/outcome.hpp" -#include "storage/ipfs/impl/in_memory_datastore.hpp" -#include "storage/ipld/ipld_block.hpp" +#include "filecoin/common/outcome.hpp" +#include "filecoin/storage/ipfs/impl/in_memory_datastore.hpp" +#include "filecoin/storage/ipld/ipld_block.hpp" #include "testutil/outcome.hpp" using fc::CID; diff --git a/test/core/storage/ipfs/merkledag/ipfs_merkledag_dataset.hpp b/test/core/storage/ipfs/merkledag/ipfs_merkledag_dataset.hpp index 233cf2959f..57156ac717 100644 --- a/test/core/storage/ipfs/merkledag/ipfs_merkledag_dataset.hpp +++ b/test/core/storage/ipfs/merkledag/ipfs_merkledag_dataset.hpp @@ -7,7 +7,7 @@ #define CORE_STORAGE_IPFS_MERKLEDAG_NODE_LIBRARY #include -#include "storage/ipld/impl/ipld_node_impl.hpp" +#include "filecoin/storage/ipld/impl/ipld_node_impl.hpp" namespace dataset { using fc::storage::ipld::IPLDNode; diff --git a/test/core/storage/ipfs/merkledag/ipfs_merkledag_service_test.cpp b/test/core/storage/ipfs/merkledag/ipfs_merkledag_service_test.cpp index 5227713484..70fd93848a 100644 --- a/test/core/storage/ipfs/merkledag/ipfs_merkledag_service_test.cpp +++ b/test/core/storage/ipfs/merkledag/ipfs_merkledag_service_test.cpp @@ -3,14 +3,14 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "storage/ipfs/merkledag/impl/merkledag_service_impl.hpp" +#include "filecoin/storage/ipfs/merkledag/impl/merkledag_service_impl.hpp" #include #include #include -#include "core/storage/ipfs/merkledag/ipfs_merkledag_dataset.hpp" -#include "storage/ipfs/impl/in_memory_datastore.hpp" -#include "storage/ipfs/impl/ipfs_block_service.hpp" +#include "ipfs_merkledag_dataset.hpp" +#include "filecoin/storage/ipfs/impl/in_memory_datastore.hpp" +#include "filecoin/storage/ipfs/impl/ipfs_block_service.hpp" using namespace fc::storage::ipfs; using namespace fc::storage::ipld; diff --git a/test/core/storage/keystore/filesystem_keystore_test.cpp b/test/core/storage/keystore/filesystem_keystore_test.cpp index 55cf0fb1d8..b367cd0375 100644 --- a/test/core/storage/keystore/filesystem_keystore_test.cpp +++ b/test/core/storage/keystore/filesystem_keystore_test.cpp @@ -3,13 +3,13 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "storage/keystore/impl/filesystem/filesystem_keystore.hpp" +#include "filecoin/storage/keystore/impl/filesystem/filesystem_keystore.hpp" #include -#include "crypto/blake2/blake2b.h" -#include "crypto/bls/impl/bls_provider_impl.hpp" -#include "crypto/secp256k1/secp256k1_provider.hpp" -#include "primitives/address/address_codec.hpp" +#include "filecoin/crypto/blake2/blake2b.h" +#include "filecoin/crypto/bls/impl/bls_provider_impl.hpp" +#include "filecoin/crypto/secp256k1/secp256k1_provider.hpp" +#include "filecoin/primitives/address/address_codec.hpp" #include "testutil/outcome.hpp" #include "testutil/storage/base_fs_test.hpp" diff --git a/test/core/storage/keystore/in_memory_keystore_test.cpp b/test/core/storage/keystore/in_memory_keystore_test.cpp index da722ce9e5..1f346cd146 100644 --- a/test/core/storage/keystore/in_memory_keystore_test.cpp +++ b/test/core/storage/keystore/in_memory_keystore_test.cpp @@ -3,14 +3,14 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "storage/keystore/impl/in_memory/in_memory_keystore.hpp" +#include "filecoin/storage/keystore/impl/in_memory/in_memory_keystore.hpp" #include -#include "crypto/blake2/blake2b.h" -#include "crypto/bls/impl/bls_provider_impl.hpp" -#include "crypto/secp256k1/secp256k1_provider.hpp" -#include "primitives/address/address_codec.hpp" +#include "filecoin/crypto/blake2/blake2b.h" +#include "filecoin/crypto/bls/impl/bls_provider_impl.hpp" +#include "filecoin/crypto/secp256k1/secp256k1_provider.hpp" +#include "filecoin/primitives/address/address_codec.hpp" #include "testutil/outcome.hpp" using fc::crypto::bls::BlsProvider; diff --git a/test/core/storage/leveldb/leveldb_fs_test.cpp b/test/core/storage/leveldb/leveldb_fs_test.cpp index 40dd1bc09b..71ee8ddfa4 100644 --- a/test/core/storage/leveldb/leveldb_fs_test.cpp +++ b/test/core/storage/leveldb/leveldb_fs_test.cpp @@ -7,8 +7,8 @@ #include -#include "storage/leveldb/leveldb.hpp" -#include "storage/leveldb/leveldb_error.hpp" +#include "filecoin/storage/leveldb/leveldb.hpp" +#include "filecoin/storage/leveldb/leveldb_error.hpp" #include "testutil/outcome.hpp" #include "testutil/storage/base_fs_test.hpp" diff --git a/test/core/storage/leveldb/leveldb_integration_test.cpp b/test/core/storage/leveldb/leveldb_integration_test.cpp index b44f260fa0..fb03b22b6b 100644 --- a/test/core/storage/leveldb/leveldb_integration_test.cpp +++ b/test/core/storage/leveldb/leveldb_integration_test.cpp @@ -9,8 +9,8 @@ #include #include -#include "storage/leveldb/leveldb.hpp" -#include "storage/leveldb/leveldb_error.hpp" +#include "filecoin/storage/leveldb/leveldb.hpp" +#include "filecoin/storage/leveldb/leveldb_error.hpp" #include "testutil/outcome.hpp" #include "testutil/storage/base_leveldb_test.hpp" diff --git a/test/core/storage/repository/filesystem_repository_test.cpp b/test/core/storage/repository/filesystem_repository_test.cpp index c125f05576..b15538b832 100644 --- a/test/core/storage/repository/filesystem_repository_test.cpp +++ b/test/core/storage/repository/filesystem_repository_test.cpp @@ -3,11 +3,11 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "storage/repository/impl/filesystem_repository.hpp" +#include "filecoin/storage/repository/impl/filesystem_repository.hpp" -#include "crypto/bls/impl/bls_provider_impl.hpp" -#include "storage/ipfs/datastore.hpp" -#include "storage/repository/repository_error.hpp" +#include "filecoin/crypto/bls/impl/bls_provider_impl.hpp" +#include "filecoin/storage/ipfs/datastore.hpp" +#include "filecoin/storage/repository/repository_error.hpp" #include "testutil/literals.hpp" #include "testutil/outcome.hpp" #include "testutil/storage/base_fs_test.hpp" diff --git a/test/core/vm/actor/actor_test.cpp b/test/core/vm/actor/actor_test.cpp index c295e3c2c3..63a3a487b6 100644 --- a/test/core/vm/actor/actor_test.cpp +++ b/test/core/vm/actor/actor_test.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "vm/actor/actor.hpp" +#include "filecoin/vm/actor/actor.hpp" #include #include "testutil/cbor.hpp" diff --git a/test/core/vm/actor/builtin/account/account_actor_test.cpp b/test/core/vm/actor/builtin/account/account_actor_test.cpp index a0364f9261..216d578947 100644 --- a/test/core/vm/actor/builtin/account/account_actor_test.cpp +++ b/test/core/vm/actor/builtin/account/account_actor_test.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "vm/actor/builtin/account/account_actor.hpp" +#include "filecoin/vm/actor/builtin/account/account_actor.hpp" #include "testutil/init_actor.hpp" diff --git a/test/core/vm/actor/builtin/cron/cron_actor_test.cpp b/test/core/vm/actor/builtin/cron/cron_actor_test.cpp index b8843f96db..9fd9033438 100644 --- a/test/core/vm/actor/builtin/cron/cron_actor_test.cpp +++ b/test/core/vm/actor/builtin/cron/cron_actor_test.cpp @@ -3,13 +3,13 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "vm/actor/builtin/cron/cron_actor.hpp" +#include "filecoin/vm/actor/builtin/cron/cron_actor.hpp" #include #include "testutil/mocks/vm/runtime/runtime_mock.hpp" #include "testutil/outcome.hpp" -#include "vm/actor/actor.hpp" -#include "vm/actor/builtin/storage_power/storage_power_actor_export.hpp" +#include "filecoin/vm/actor/actor.hpp" +#include "filecoin/vm/actor/builtin/storage_power/storage_power_actor_export.hpp" using namespace fc::vm; using fc::vm::actor::MethodNumber; diff --git a/test/core/vm/actor/builtin/init/init_actor_test.cpp b/test/core/vm/actor/builtin/init/init_actor_test.cpp index 395d2133c4..75f0d9b77f 100644 --- a/test/core/vm/actor/builtin/init/init_actor_test.cpp +++ b/test/core/vm/actor/builtin/init/init_actor_test.cpp @@ -3,13 +3,13 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "vm/actor/builtin/init/init_actor.hpp" +#include "filecoin/vm/actor/builtin/init/init_actor.hpp" #include #include -#include "primitives/address/address_codec.hpp" -#include "storage/hamt/hamt.hpp" -#include "storage/ipfs/impl/in_memory_datastore.hpp" +#include "filecoin/primitives/address/address_codec.hpp" +#include "filecoin/storage/hamt/hamt.hpp" +#include "filecoin/storage/ipfs/impl/in_memory_datastore.hpp" #include "testutil/cbor.hpp" #include "testutil/init_actor.hpp" #include "testutil/mocks/vm/runtime/runtime_mock.hpp" diff --git a/test/core/vm/actor/builtin/miner/miner_actor_test.cpp b/test/core/vm/actor/builtin/miner/miner_actor_test.cpp index d9ab644aa1..6a62f51539 100644 --- a/test/core/vm/actor/builtin/miner/miner_actor_test.cpp +++ b/test/core/vm/actor/builtin/miner/miner_actor_test.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "vm/actor/builtin/miner/miner_actor.hpp" +#include "filecoin/vm/actor/builtin/miner/miner_actor.hpp" #include #include "testutil/cbor.hpp" diff --git a/test/core/vm/actor/builtin/multisig_actor/multisig_actor_test.cpp b/test/core/vm/actor/builtin/multisig_actor/multisig_actor_test.cpp index 7e3e0a5cc3..5ca0d4dac6 100644 --- a/test/core/vm/actor/builtin/multisig_actor/multisig_actor_test.cpp +++ b/test/core/vm/actor/builtin/multisig_actor/multisig_actor_test.cpp @@ -3,16 +3,16 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "vm/actor/builtin/multisig/multisig_actor.hpp" +#include "filecoin/vm/actor/builtin/multisig/multisig_actor.hpp" #include -#include "primitives/address/address.hpp" +#include "filecoin/primitives/address/address.hpp" #include "testutil/cbor.hpp" #include "testutil/literals.hpp" #include "testutil/mocks/storage/ipfs/ipfs_datastore_mock.hpp" #include "testutil/mocks/vm/runtime/runtime_mock.hpp" #include "testutil/outcome.hpp" -#include "vm/actor/actor_method.hpp" +#include "filecoin/vm/actor/actor_method.hpp" using fc::CID; using fc::common::Buffer; diff --git a/test/core/vm/actor/builtin/payment_channel/payment_channel_actor_test.cpp b/test/core/vm/actor/builtin/payment_channel/payment_channel_actor_test.cpp index 2d36f67040..fea175b7a8 100644 --- a/test/core/vm/actor/builtin/payment_channel/payment_channel_actor_test.cpp +++ b/test/core/vm/actor/builtin/payment_channel/payment_channel_actor_test.cpp @@ -3,16 +3,16 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "vm/actor/builtin/payment_channel/payment_channel_actor.hpp" +#include "filecoin/vm/actor/builtin/payment_channel/payment_channel_actor.hpp" #include "gtest/gtest.h" -#include "primitives/address/address.hpp" +#include "filecoin/primitives/address/address.hpp" #include "testutil/literals.hpp" #include "testutil/mocks/storage/ipfs/ipfs_datastore_mock.hpp" #include "testutil/mocks/vm/runtime/runtime_mock.hpp" #include "testutil/outcome.hpp" -#include "vm/actor/actor_method.hpp" -#include "vm/actor/builtin/payment_channel/payment_channel_actor_state.hpp" +#include "filecoin/vm/actor/actor_method.hpp" +#include "filecoin/vm/actor/builtin/payment_channel/payment_channel_actor_state.hpp" using fc::primitives::address::Address; using fc::storage::ipfs::MockIpfsDatastore; diff --git a/test/core/vm/actor/builtin/storage_power/storage_power_actor_state_test.cpp b/test/core/vm/actor/builtin/storage_power/storage_power_actor_state_test.cpp index 25dd25b886..dbc3029559 100644 --- a/test/core/vm/actor/builtin/storage_power/storage_power_actor_state_test.cpp +++ b/test/core/vm/actor/builtin/storage_power/storage_power_actor_state_test.cpp @@ -3,13 +3,13 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "vm/actor/builtin/storage_power/storage_power_actor_state.hpp" +#include "filecoin/vm/actor/builtin/storage_power/storage_power_actor_state.hpp" -#include "storage/ipfs/impl/in_memory_datastore.hpp" +#include "filecoin/storage/ipfs/impl/in_memory_datastore.hpp" #include "testutil/mocks/crypto/randomness/randomness_provider_mock.hpp" #include "testutil/mocks/vm/indices/indices_mock.hpp" #include "testutil/outcome.hpp" -#include "vm/exit_code/exit_code.hpp" +#include "filecoin/vm/exit_code/exit_code.hpp" using fc::CID; using fc::adt::BalanceTableHamt; diff --git a/test/core/vm/actor/builtin/storage_power/storage_power_actor_test.cpp b/test/core/vm/actor/builtin/storage_power/storage_power_actor_test.cpp index d2eb67716d..32e89c4323 100644 --- a/test/core/vm/actor/builtin/storage_power/storage_power_actor_test.cpp +++ b/test/core/vm/actor/builtin/storage_power/storage_power_actor_test.cpp @@ -3,17 +3,17 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "vm/actor/builtin/storage_power/storage_power_actor_export.hpp" +#include "filecoin/vm/actor/builtin/storage_power/storage_power_actor_export.hpp" #include -#include "codec/cbor/cbor.hpp" -#include "storage/ipfs/impl/in_memory_datastore.hpp" +#include "filecoin/codec/cbor/cbor.hpp" +#include "filecoin/storage/ipfs/impl/in_memory_datastore.hpp" #include "testutil/literals.hpp" #include "testutil/mocks/vm/runtime/runtime_mock.hpp" #include "testutil/outcome.hpp" -#include "vm/actor/builtin/init/init_actor.hpp" -#include "vm/actor/builtin/miner/miner_actor.hpp" -#include "vm/actor/builtin/storage_power/storage_power_actor_state.hpp" +#include "filecoin/vm/actor/builtin/init/init_actor.hpp" +#include "filecoin/vm/actor/builtin/miner/miner_actor.hpp" +#include "filecoin/vm/actor/builtin/storage_power/storage_power_actor_state.hpp" using fc::CID; using fc::common::Buffer; diff --git a/test/core/vm/actor/invoker_test.cpp b/test/core/vm/actor/invoker_test.cpp index d701fec17d..27bb499fa4 100644 --- a/test/core/vm/actor/invoker_test.cpp +++ b/test/core/vm/actor/invoker_test.cpp @@ -3,13 +3,13 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "vm/actor/impl/invoker_impl.hpp" +#include "filecoin/vm/actor/impl/invoker_impl.hpp" #include #include "testutil/cbor.hpp" #include "testutil/mocks/vm/runtime/runtime_mock.hpp" #include "testutil/outcome.hpp" -#include "vm/actor/builtin/cron/cron_actor.hpp" +#include "filecoin/vm/actor/builtin/cron/cron_actor.hpp" using fc::vm::VMExitCode; using fc::vm::actor::MethodParams; diff --git a/test/core/vm/exit_code/exit_code_test.cpp b/test/core/vm/exit_code/exit_code_test.cpp index 93bcf676e8..78501d0eb9 100644 --- a/test/core/vm/exit_code/exit_code_test.cpp +++ b/test/core/vm/exit_code/exit_code_test.cpp @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "vm/exit_code/exit_code.hpp" +#include "filecoin/vm/exit_code/exit_code.hpp" #include diff --git a/test/core/vm/message/message_test.cpp b/test/core/vm/message/message_test.cpp index 76c78c7830..a130b5b32c 100644 --- a/test/core/vm/message/message_test.cpp +++ b/test/core/vm/message/message_test.cpp @@ -7,14 +7,14 @@ #include -#include "crypto/bls/impl/bls_provider_impl.hpp" -#include "crypto/secp256k1/secp256k1_provider.hpp" -#include "storage/keystore/impl/in_memory/in_memory_keystore.hpp" +#include "filecoin/crypto/bls/impl/bls_provider_impl.hpp" +#include "filecoin/crypto/secp256k1/secp256k1_provider.hpp" +#include "filecoin/storage/keystore/impl/in_memory/in_memory_keystore.hpp" #include "testutil/cbor.hpp" #include "testutil/literals.hpp" #include "testutil/outcome.hpp" -#include "vm/message/impl/message_signer_impl.hpp" -#include "vm/message/message_util.hpp" +#include "filecoin/vm/message/impl/message_signer_impl.hpp" +#include "filecoin/vm/message/message_util.hpp" using fc::crypto::bls::BlsProvider; using fc::crypto::bls::BlsProviderImpl; diff --git a/test/core/vm/runtime/runtime_test.cpp b/test/core/vm/runtime/runtime_test.cpp index 5da7f9fbdb..83b9979221 100644 --- a/test/core/vm/runtime/runtime_test.cpp +++ b/test/core/vm/runtime/runtime_test.cpp @@ -3,12 +3,12 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "vm/runtime/impl/runtime_impl.hpp" +#include "filecoin/vm/runtime/impl/runtime_impl.hpp" #include -#include "crypto/randomness/randomness_types.hpp" -#include "primitives/address/address.hpp" -#include "primitives/big_int.hpp" +#include "filecoin/crypto/randomness/randomness_types.hpp" +#include "filecoin/primitives/address/address.hpp" +#include "filecoin/primitives/big_int.hpp" #include "testutil/cbor.hpp" #include "testutil/mocks/crypto/randomness/randomness_provider_mock.hpp" #include "testutil/mocks/storage/ipfs/ipfs_datastore_mock.hpp" @@ -16,8 +16,8 @@ #include "testutil/mocks/vm/indices/indices_mock.hpp" #include "testutil/mocks/vm/state/state_tree_mock.hpp" #include "testutil/outcome.hpp" -#include "vm/message/message.hpp" -#include "vm/runtime/runtime_error.hpp" +#include "filecoin/vm/message/message.hpp" +#include "filecoin/vm/runtime/runtime_error.hpp" using fc::crypto::randomness::ChainEpoch; using fc::crypto::randomness::MockRandomnessProvider; diff --git a/test/core/vm/state/state_tree_test.cpp b/test/core/vm/state/state_tree_test.cpp index dea73503af..2675d1eb9f 100644 --- a/test/core/vm/state/state_tree_test.cpp +++ b/test/core/vm/state/state_tree_test.cpp @@ -3,10 +3,10 @@ * SPDX-License-Identifier: Apache-2.0 */ -#include "vm/state/impl/state_tree_impl.hpp" +#include "filecoin/vm/state/impl/state_tree_impl.hpp" #include -#include "primitives/address/address_codec.hpp" +#include "filecoin/primitives/address/address_codec.hpp" #include "testutil/init_actor.hpp" using fc::primitives::BigInt; diff --git a/test/testutil/cbor.hpp b/test/testutil/cbor.hpp index 49d5fd369d..dadff74d6a 100644 --- a/test/testutil/cbor.hpp +++ b/test/testutil/cbor.hpp @@ -6,7 +6,7 @@ #ifndef CPP_FILECOIN_TEST_TESTUTIL_CBOR_HPP #define CPP_FILECOIN_TEST_TESTUTIL_CBOR_HPP -#include "codec/cbor/cbor.hpp" +#include "filecoin/codec/cbor/cbor.hpp" #include "testutil/literals.hpp" #include "testutil/outcome.hpp" diff --git a/test/testutil/init_actor.hpp b/test/testutil/init_actor.hpp index 9cfb125acb..95a4591ada 100644 --- a/test/testutil/init_actor.hpp +++ b/test/testutil/init_actor.hpp @@ -2,10 +2,10 @@ #define CPP_FILECOIN_TEST_TESTUTIL_INIT_ACTOR_HPP #include -#include "storage/ipfs/impl/in_memory_datastore.hpp" +#include "filecoin/storage/ipfs/impl/in_memory_datastore.hpp" #include "testutil/cbor.hpp" -#include "vm/actor/builtin/init/init_actor.hpp" -#include "vm/state/impl/state_tree_impl.hpp" +#include "filecoin/vm/actor/builtin/init/init_actor.hpp" +#include "filecoin/vm/state/impl/state_tree_impl.hpp" /// Sets up init actor state std::shared_ptr setupInitActor( diff --git a/test/testutil/literals.hpp b/test/testutil/literals.hpp index e803939bf6..99ea0ef652 100644 --- a/test/testutil/literals.hpp +++ b/test/testutil/literals.hpp @@ -6,8 +6,8 @@ #ifndef CPP_FILECOIN_TEST_TESTUTIL_LITERALS_HPP #define CPP_FILECOIN_TEST_TESTUTIL_LITERALS_HPP -#include "common/blob.hpp" -#include "common/hexutil.hpp" +#include "filecoin/common/blob.hpp" +#include "filecoin/common/hexutil.hpp" inline std::vector operator""_unhex(const char *c, size_t s) { return fc::common::unhex(std::string_view(c, s)).value(); diff --git a/test/testutil/mocks/blockchain/message_pool/message_storage_mock.hpp b/test/testutil/mocks/blockchain/message_pool/message_storage_mock.hpp index 86001c2ff3..48d462dd84 100644 --- a/test/testutil/mocks/blockchain/message_pool/message_storage_mock.hpp +++ b/test/testutil/mocks/blockchain/message_pool/message_storage_mock.hpp @@ -8,7 +8,7 @@ #include -#include "blockchain/message_pool/message_storage.hpp" +#include "filecoin/blockchain/message_pool/message_storage.hpp" namespace fc::blockchain::message_pool { class MessageStorageMock : public MessageStorage { diff --git a/test/testutil/mocks/blockchain/weight_calculator_mock.hpp b/test/testutil/mocks/blockchain/weight_calculator_mock.hpp index 3a66eabfa7..15474c27a2 100644 --- a/test/testutil/mocks/blockchain/weight_calculator_mock.hpp +++ b/test/testutil/mocks/blockchain/weight_calculator_mock.hpp @@ -8,7 +8,7 @@ #include -#include "blockchain/weight_calculator.hpp" +#include "filecoin/blockchain/weight_calculator.hpp" namespace fc::blockchain::weight { class WeightCalculatorMock : public WeightCalculator { diff --git a/test/testutil/mocks/clock/utc_clock_mock.hpp b/test/testutil/mocks/clock/utc_clock_mock.hpp index d085aa721c..7774e2c120 100644 --- a/test/testutil/mocks/clock/utc_clock_mock.hpp +++ b/test/testutil/mocks/clock/utc_clock_mock.hpp @@ -8,7 +8,7 @@ #include -#include "clock/utc_clock.hpp" +#include "filecoin/clock/utc_clock.hpp" using fc::clock::UTCClock; using fc::clock::Time; diff --git a/test/testutil/mocks/crypto/bls/bls_provider_mock.hpp b/test/testutil/mocks/crypto/bls/bls_provider_mock.hpp index d407c6cd31..28df6ff1a0 100644 --- a/test/testutil/mocks/crypto/bls/bls_provider_mock.hpp +++ b/test/testutil/mocks/crypto/bls/bls_provider_mock.hpp @@ -7,7 +7,7 @@ #define CPP_FILECOIN_TEST_TESTUTIL_CRYPTO_BLS_PROVIDER_MOCK_HPP #include -#include "crypto/bls/bls_provider.hpp" +#include "filecoin/crypto/bls/bls_provider.hpp" namespace fc::crypto::bls { class BlsProviderMock : public BlsProvider { diff --git a/test/testutil/mocks/crypto/randomness/randomness_provider_mock.hpp b/test/testutil/mocks/crypto/randomness/randomness_provider_mock.hpp index 79c954f7e3..cc5b9694f5 100644 --- a/test/testutil/mocks/crypto/randomness/randomness_provider_mock.hpp +++ b/test/testutil/mocks/crypto/randomness/randomness_provider_mock.hpp @@ -7,7 +7,7 @@ #define CPP_FILECOIN_CORE_CRYPTO_RANDOMNESS_RANDOMNESS_PROVIDER_MOCK_HPP #include -#include "crypto/randomness/randomness_provider.hpp" +#include "filecoin/crypto/randomness/randomness_provider.hpp" namespace fc::crypto::randomness { diff --git a/test/testutil/mocks/storage/chain/chain_data_store_mock.hpp b/test/testutil/mocks/storage/chain/chain_data_store_mock.hpp index cf5f446d7c..c3e3baf336 100644 --- a/test/testutil/mocks/storage/chain/chain_data_store_mock.hpp +++ b/test/testutil/mocks/storage/chain/chain_data_store_mock.hpp @@ -8,7 +8,7 @@ #include -#include "storage/chain/chain_data_store.hpp" +#include "filecoin/storage/chain/chain_data_store.hpp" namespace fc::storage::blockchain { class ChainDataStoreMock: public ChainDataStore { diff --git a/test/testutil/mocks/storage/ipfs/ipfs_datastore_mock.hpp b/test/testutil/mocks/storage/ipfs/ipfs_datastore_mock.hpp index 39d6905ea5..c286bb1069 100644 --- a/test/testutil/mocks/storage/ipfs/ipfs_datastore_mock.hpp +++ b/test/testutil/mocks/storage/ipfs/ipfs_datastore_mock.hpp @@ -8,7 +8,7 @@ #include -#include "storage/ipfs/datastore.hpp" +#include "filecoin/storage/ipfs/datastore.hpp" namespace fc::storage::ipfs { diff --git a/test/testutil/mocks/vm/actor/invoker_mock.hpp b/test/testutil/mocks/vm/actor/invoker_mock.hpp index 976f0bf5b5..c10548b149 100644 --- a/test/testutil/mocks/vm/actor/invoker_mock.hpp +++ b/test/testutil/mocks/vm/actor/invoker_mock.hpp @@ -7,7 +7,7 @@ #define CPP_FILECOIN_CORE_VM_ACTOR_INVOKER_MOCK_HPP #include -#include "vm/actor/invoker.hpp" +#include "filecoin/vm/actor/invoker.hpp" namespace fc::vm::actor { diff --git a/test/testutil/mocks/vm/indices/indices_mock.hpp b/test/testutil/mocks/vm/indices/indices_mock.hpp index 928e802807..cf849f08bd 100644 --- a/test/testutil/mocks/vm/indices/indices_mock.hpp +++ b/test/testutil/mocks/vm/indices/indices_mock.hpp @@ -7,7 +7,7 @@ #define CPP_FILECOIN_VM_INDICES_INDICES_MOCK_HPP #include -#include "vm/indices/indices.hpp" +#include "filecoin/vm/indices/indices.hpp" namespace fc::vm::indices { diff --git a/test/testutil/mocks/vm/interpreter/interpreter_mock.hpp b/test/testutil/mocks/vm/interpreter/interpreter_mock.hpp index 30cf77a094..ce309d5a7d 100644 --- a/test/testutil/mocks/vm/interpreter/interpreter_mock.hpp +++ b/test/testutil/mocks/vm/interpreter/interpreter_mock.hpp @@ -8,7 +8,7 @@ #include -#include "vm/interpreter/impl/interpreter_impl.hpp" +#include "filecoin/vm/interpreter/impl/interpreter_impl.hpp" namespace fc::vm::interpreter { class InterpreterMock : public Interpreter { diff --git a/test/testutil/mocks/vm/runtime/runtime_mock.hpp b/test/testutil/mocks/vm/runtime/runtime_mock.hpp index 290f5866fa..37023b29ba 100644 --- a/test/testutil/mocks/vm/runtime/runtime_mock.hpp +++ b/test/testutil/mocks/vm/runtime/runtime_mock.hpp @@ -9,7 +9,7 @@ #include #include "testutil/outcome.hpp" -#include "vm/runtime/runtime.hpp" +#include "filecoin/vm/runtime/runtime.hpp" namespace fc::vm::runtime { diff --git a/test/testutil/mocks/vm/state/state_tree_mock.hpp b/test/testutil/mocks/vm/state/state_tree_mock.hpp index 3f64bb993a..efa9b66d55 100644 --- a/test/testutil/mocks/vm/state/state_tree_mock.hpp +++ b/test/testutil/mocks/vm/state/state_tree_mock.hpp @@ -7,7 +7,7 @@ #define CPP_FILECOIN_CORE_VM_STATE_STATE_TREE_MOCK_HPP #include -#include "vm/state/state_tree.hpp" +#include "filecoin/vm/state/state_tree.hpp" namespace fc::vm::state { diff --git a/test/testutil/outcome.hpp b/test/testutil/outcome.hpp index 569f7181b4..2219426f4c 100644 --- a/test/testutil/outcome.hpp +++ b/test/testutil/outcome.hpp @@ -7,8 +7,8 @@ #define CPP_FILECOIN_GTEST_OUTCOME_UTIL_HPP #include -#include "common/outcome.hpp" -#include "common/visitor.hpp" +#include "filecoin/common/outcome.hpp" +#include "filecoin/common/visitor.hpp" #define PP_CAT(a, b) PP_CAT_I(a, b) #define PP_CAT_I(a, b) PP_CAT_II(~, a##b) diff --git a/test/testutil/primitives/ticket/printer.hpp b/test/testutil/primitives/ticket/printer.hpp index 1f48a8a323..51b0c027ed 100644 --- a/test/testutil/primitives/ticket/printer.hpp +++ b/test/testutil/primitives/ticket/printer.hpp @@ -9,9 +9,9 @@ #include #include -#include "common/hexutil.hpp" -#include "primitives/ticket/epost_ticket.hpp" -#include "primitives/ticket/ticket.hpp" +#include "filecoin/common/hexutil.hpp" +#include "filecoin/primitives/ticket/epost_ticket.hpp" +#include "filecoin/primitives/ticket/ticket.hpp" /** * @brief human-readable print Ticket diff --git a/test/testutil/primitives/ticket/ticket_generator.hpp b/test/testutil/primitives/ticket/ticket_generator.hpp index f2417fe8f6..8aba3e2e22 100644 --- a/test/testutil/primitives/ticket/ticket_generator.hpp +++ b/test/testutil/primitives/ticket/ticket_generator.hpp @@ -6,8 +6,8 @@ #ifndef CPP_FILECOIN_TEST_TESTUTIL_PRIMITIVES_TICKET_UTILS_HPP #define CPP_FILECOIN_TEST_TESTUTIL_PRIMITIVES_TICKET_UTILS_HPP -#include "primitives/ticket/epost_ticket.hpp" -#include "primitives/ticket/ticket.hpp" +#include "filecoin/primitives/ticket/epost_ticket.hpp" +#include "filecoin/primitives/ticket/ticket.hpp" #include diff --git a/test/testutil/storage/base_fs_test.hpp b/test/testutil/storage/base_fs_test.hpp index 6bc6d9a3f6..02a6548efd 100644 --- a/test/testutil/storage/base_fs_test.hpp +++ b/test/testutil/storage/base_fs_test.hpp @@ -10,7 +10,7 @@ #include -#include "common/logger.hpp" +#include "filecoin/common/logger.hpp" // intentionally here, so users can use fs shortcut namespace fs = boost::filesystem; diff --git a/test/testutil/storage/base_leveldb_test.hpp b/test/testutil/storage/base_leveldb_test.hpp index 30ddfc0575..a056dae13f 100644 --- a/test/testutil/storage/base_leveldb_test.hpp +++ b/test/testutil/storage/base_leveldb_test.hpp @@ -8,7 +8,7 @@ #include "testutil/storage/base_fs_test.hpp" -#include "storage/leveldb/leveldb.hpp" +#include "filecoin/storage/leveldb/leveldb.hpp" namespace test { diff --git a/test/testutil/storage/std_list_adapter.hpp b/test/testutil/storage/std_list_adapter.hpp index e5a9af538c..1fddbe0362 100644 --- a/test/testutil/storage/std_list_adapter.hpp +++ b/test/testutil/storage/std_list_adapter.hpp @@ -8,8 +8,8 @@ #include -#include "storage/face/generic_iterator.hpp" -#include "storage/face/generic_list.hpp" +#include "filecoin/storage/face/generic_iterator.hpp" +#include "filecoin/storage/face/generic_list.hpp" namespace test { diff --git a/test/testutil/vm/message/message_test_util.cpp b/test/testutil/vm/message/message_test_util.cpp index 5547165b99..dedd471fd9 100644 --- a/test/testutil/vm/message/message_test_util.cpp +++ b/test/testutil/vm/message/message_test_util.cpp @@ -5,8 +5,8 @@ #include "testutil/vm/message/message_test_util.hpp" -#include "crypto/bls/impl/bls_provider_impl.hpp" -#include "vm/message/message_util.hpp" +#include "filecoin/crypto/bls/impl/bls_provider_impl.hpp" +#include "filecoin/vm/message/message_util.hpp" using fc::crypto::bls::BlsProviderImpl; using fc::vm::message::cid; diff --git a/test/testutil/vm/message/message_test_util.hpp b/test/testutil/vm/message/message_test_util.hpp index c7cf0e8448..ac8e8dba8d 100644 --- a/test/testutil/vm/message/message_test_util.hpp +++ b/test/testutil/vm/message/message_test_util.hpp @@ -6,8 +6,8 @@ #ifndef CPP_FILECOIN_TESTUTIL_VM_MESSAGE_MESSAGETESTUTIL_HPP #define CPP_FILECOIN_TESTUTIL_VM_MESSAGE_MESSAGETESTUTIL_HPP -#include "common/outcome.hpp" -#include "vm/message/message.hpp" +#include "filecoin/common/outcome.hpp" +#include "filecoin/vm/message/message.hpp" using fc::vm::message::SignedMessage; using fc::vm::message::UnsignedMessage;