Kagome
Polkadot Runtime Engine in C++17
kagome::runtime::ConstantCodeProvider Class Referencefinal

#include <constant_code_provider.hpp>

Inheritance diagram for kagome::runtime::ConstantCodeProvider:
Collaboration diagram for kagome::runtime::ConstantCodeProvider:

Public Member Functions

 ConstantCodeProvider (common::Buffer code)
 
outcome::result< gsl::span< const uint8_t > > getCodeAt (const storage::trie::RootHash &at) const override
 
- Public Member Functions inherited from kagome::runtime::RuntimeCodeProvider
virtual ~RuntimeCodeProvider ()=default
 

Private Attributes

common::Buffer code_
 

Detailed Description

A code provider that serves only one fixed blob of code for any state

Definition at line 16 of file constant_code_provider.hpp.

Constructor & Destructor Documentation

kagome::runtime::ConstantCodeProvider::ConstantCodeProvider ( common::Buffer  code)
explicit

Definition at line 10 of file constant_code_provider.cpp.

Member Function Documentation

outcome::result< gsl::span< const uint8_t > > kagome::runtime::ConstantCodeProvider::getCodeAt ( const storage::trie::RootHash at) const
overridevirtual

Implements kagome::runtime::RuntimeCodeProvider.

Definition at line 13 of file constant_code_provider.cpp.

Member Data Documentation

common::Buffer kagome::runtime::ConstantCodeProvider::code_
private

Definition at line 24 of file constant_code_provider.hpp.


The documentation for this class was generated from the following files: