Skip to content

src/runtime/offchain_worker.hpp

Namespaces

Name
sgns
sgns::runtime

Classes

Name
class sgns::runtime::OffchainWorker

Source code

#ifndef SUPERGENIUS_SRC_RUNTIME_OFFCHAIN_WORKER_HPP
#define SUPERGENIUS_SRC_RUNTIME_OFFCHAIN_WORKER_HPP

#include "outcome/outcome.hpp"
#include "base/buffer.hpp"
#include "primitives/common.hpp"

namespace sgns::runtime {

  class OffchainWorker {
   protected:
    using BlockNumber = sgns::primitives::BlockNumber;

   public:
    virtual ~OffchainWorker() = default;

    virtual outcome::result<void> offchain_worker(BlockNumber bn) = 0;
  };

}  // namespace sgns::runtime

#endif  // SUPERGENIUS_SRC_RUNTIME_OFFCHAIN_WORKER_HPP

Updated on 2026-03-04 at 13:10:45 -0800