6 #ifndef KAGOME_CORE_API_SERVICE_AUTHOR_IMPL_AUTHOR_API_IMPL_HPP 7 #define KAGOME_CORE_API_SERVICE_AUTHOR_IMPL_AUTHOR_API_IMPL_HPP 16 #include <unordered_set> 18 #include <libp2p/peer/peer_id.hpp> 50 template <
typename Event,
typename Receiver,
typename... Arguments>
58 using sptr = std::shared_ptr<T>;
60 using uptr = std::unique_ptr<T>;
81 outcome::result<common::Hash256> submitExtrinsic(
85 outcome::result<void> insertKey(
87 const gsl::span<const uint8_t> &seed,
88 const gsl::span<const uint8_t> &public_key)
override;
90 outcome::result<common::Buffer> rotateKeys()
override;
92 outcome::result<bool> hasSessionKeys(
93 const gsl::span<const uint8_t> &keys)
override;
95 outcome::result<bool> hasKey(
const gsl::span<const uint8_t> &public_key,
98 outcome::result<std::vector<primitives::Extrinsic>> pendingExtrinsics()
101 outcome::result<std::vector<primitives::Extrinsic>> removeExtrinsic(
102 const std::vector<primitives::ExtrinsicKey> &keys)
override;
104 outcome::result<SubscriptionId> submitAndWatchExtrinsic(
107 outcome::result<bool> unwatchExtrinsic(
123 #endif // KAGOME_CORE_API_SERVICE_AUTHOR_IMPL_AUTHOR_API_IMPL_HPP
std::weak_ptr< api::ApiService > api_service_
sptr< runtime::SessionKeysApi > keys_api_
uint32_t KeyTypeId
Key type identifier.
std::unique_ptr< T > uptr
sptr< crypto::KeyFileStorage > key_store_
std::shared_ptr< soralog::Logger > Logger
sptr< transaction_pool::TransactionPool > pool_
sptr< blockchain::BlockTree > block_tree_
primitives::SubscriptionId SubscriptionId
Extrinsic class represents extrinsic.
std::shared_ptr< T > sptr
sptr< crypto::CryptoStore > store_
sptr< crypto::SessionKeys > keys_