6 #ifndef KAGOME_CORE_API_EXTRINSIC_EXTRINSIC_API_HPP 7 #define KAGOME_CORE_API_EXTRINSIC_EXTRINSIC_API_HPP 37 virtual void setApiService(
38 std::shared_ptr<api::ApiService>
const &api_service) = 0;
48 virtual outcome::result<common::Hash256> submitExtrinsic(
57 virtual outcome::result<void> insertKey(
59 const gsl::span<const uint8_t> &seed,
60 const gsl::span<const uint8_t> &public_key) = 0;
67 virtual outcome::result<common::Buffer> rotateKeys() = 0;
76 virtual outcome::result<bool> hasSessionKeys(
77 const gsl::span<const uint8_t> &keys) = 0;
85 virtual outcome::result<bool> hasKey(
86 const gsl::span<const uint8_t> &public_key,
92 virtual outcome::result<std::vector<Extrinsic>> pendingExtrinsics() = 0;
98 virtual outcome::result<std::vector<Extrinsic>> removeExtrinsic(
99 const std::vector<ExtrinsicKey> &keys) = 0;
104 virtual outcome::result<SubscriptionId> submitAndWatchExtrinsic(
113 virtual outcome::result<bool> unwatchExtrinsic(
SubscriptionId sub_id) = 0;
117 #endif // KAGOME_CORE_API_EXTRINSIC_EXTRINSIC_API_HPP Class represents arbitrary (including empty) byte buffer.
primitives::ExtrinsicKey ExtrinsicKey
uint32_t KeyTypeId
Key type identifier.
std::optional< std::shared_ptr< Session >> Metadata
Metadata primitive.
SLBuffer< std::numeric_limits< size_t >::max()> Buffer
primitives::SubscriptionId SubscriptionId
std::vector< uint8_t > ExtrinsicKey
ExtrinsicKey is used as a key to search extrinsic.
Extrinsic class represents extrinsic.
primitives::Metadata Metadata
uint64_t SubscriptionId
SubscriptionId primitive.