Skip to content

Commit

Permalink
6
Browse files Browse the repository at this point in the history
Signed-off-by: iceseer <[email protected]>
  • Loading branch information
iceseer committed Nov 22, 2024
1 parent 97087fb commit d47f448
Show file tree
Hide file tree
Showing 18 changed files with 20 additions and 15 deletions.
1 change: 1 addition & 0 deletions core/authority_discovery/publisher/address_publisher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

#include "authority_discovery/timestamp.hpp"
#include "crypto/sha/sha256.hpp"
#include "scale/kagome_scale.hpp"

#define _PB_SPAN(f) \
[&](::kagome::common::BufferView a) { (f)(a.data(), a.size()); }
Expand Down
2 changes: 1 addition & 1 deletion core/common/empty.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#pragma once

#include <scale/scale.hpp>
#include "scale/encoder/external_scale.hpp"

namespace kagome {

Expand Down
2 changes: 1 addition & 1 deletion core/common/tagged.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <type_traits>
#include <utility>

#include <scale/scale.hpp>
#include "scale/encoder/external_scale.hpp"

namespace kagome {

Expand Down
2 changes: 1 addition & 1 deletion core/consensus/babe/types/babe_block_header.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include "consensus/timeline/types.hpp"
#include "primitives/common.hpp"

#include <scale/scale.hpp>
#include "scale/encoder/external_scale.hpp"

namespace kagome::consensus::babe {
/**
Expand Down
2 changes: 1 addition & 1 deletion core/network/notifications/encode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include <memory>

#include <scale/scale.hpp>
#include "scale/encoder/external_scale.hpp"

#include "common/buffer.hpp"

Expand Down
2 changes: 1 addition & 1 deletion core/network/notifications/handshake.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

#include <libp2p/basic/message_read_writer_uvarint.hpp>
#include <libp2p/connection/stream.hpp>
#include <scale/scale.hpp>
#include "scale/encoder/external_scale.hpp"

namespace kagome::network::notifications {
using libp2p::basic::MessageReadWriterUvarint;
Expand Down
2 changes: 1 addition & 1 deletion core/network/notifications/read_messages.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include <libp2p/basic/message_read_writer_uvarint.hpp>
#include <libp2p/connection/stream.hpp>
#include <scale/scale.hpp>
#include "scale/encoder/external_scale.hpp"

namespace kagome::network::notifications {
using libp2p::basic::MessageReadWriterUvarint;
Expand Down
2 changes: 1 addition & 1 deletion core/parachain/pvf/secure_mode_precheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <iostream>
#include <libp2p/log/configurator.hpp>
#include <qtils/bytestr.hpp>
#include <scale/scale.hpp>
#include "scale/kagome_scale.hpp"
#include <soralog/macro.hpp>

#include "common/buffer.hpp"
Expand Down
2 changes: 1 addition & 1 deletion core/primitives/block_header.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <type_traits>
#include <vector>

#include <scale/scale.hpp>
#include "scale/encoder/external_scale.hpp"

#include "common/blob.hpp"
#include "crypto/hasher.hpp"
Expand Down
2 changes: 1 addition & 1 deletion core/primitives/runtime_dispatch_info.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#pragma once

#include <scale/scale.hpp>
#include "scale/encoder/external_scale.hpp"
#include <scale/tie.hpp>

#include "common/unused.hpp"
Expand Down
3 changes: 3 additions & 0 deletions core/scale/encoder/external_scale.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include "scale/encode_append.hpp"
#include "scale/encoder/concepts.hpp"
#include "scale/libp2p_types.hpp"
#include <scale/types.hpp>
#include "common/size_limited_containers.hpp"
//#include "common/tagged.hpp"
//#include "common/buffer.hpp"
Expand Down Expand Up @@ -77,6 +78,8 @@ namespace kagome::scale {
template <typename T>
using Compact = ::scale::Compact<T>;
using uint128_t = ::scale::uint128_t;
using Timestamp = scale::uint128_t;
using TimestampScale = scale::Fixed<Timestamp>;

using ::scale::decode;
using ::scale::append_or_new_vec;
Expand Down
2 changes: 1 addition & 1 deletion core/utils/lru_encoded.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#pragma once

#include <scale/scale.hpp>
#include "scale/encoder/external_scale.hpp"

#include <boost/container_hash/hash.hpp>

Expand Down
1 change: 1 addition & 0 deletions node/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "log/configurator.hpp"
#include "log/logger.hpp"
#include "parachain/pvf/kagome_pvf_worker.hpp"
#include "scale/kagome_scale.hpp"

// NOLINTBEGIN(cppcoreguidelines-pro-bounds-pointer-arithmetic)

Expand Down
2 changes: 1 addition & 1 deletion test/core/host_api/child_storage_extension_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include <gtest/gtest.h>
#include <optional>
#include <scale/scale.hpp>
#include "scale/kagome_scale.hpp"

#include "common/monadic_utils.hpp"
#include "mock/core/runtime/memory_provider_mock.hpp"
Expand Down
2 changes: 1 addition & 1 deletion test/core/host_api/storage_extension_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <scale/scale.hpp>
#include "scale/kagome_scale.hpp"

#include "crypto/hasher/hasher_impl.hpp"
#include "mock/core/runtime/memory_provider_mock.hpp"
Expand Down
2 changes: 1 addition & 1 deletion test/core/network/types/block_direction_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "network/types/block_direction.hpp"

#include <gtest/gtest.h>
#include <scale/scale.hpp>
#include "scale/kagome_scale.hpp"

#include "testutil/outcome.hpp"
#include "testutil/testparam.hpp"
Expand Down
2 changes: 1 addition & 1 deletion test/core/scale/big_fixed_integers_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "scale/big_fixed_integers.hpp"

#include <gtest/gtest.h>
#include <scale/scale.hpp>
#include "scale/encoder/external_scale.hpp"

#include "testutil/literals.hpp"
#include "testutil/outcome.hpp"
Expand Down
2 changes: 1 addition & 1 deletion test/testutil/runtime/memory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#pragma once

#include <memory>
#include <scale/scale.hpp>
#include "scale/encoder/external_scale.hpp"

#include "common/buffer.hpp"
#include "common/span_adl.hpp"
Expand Down

0 comments on commit d47f448

Please sign in to comment.