CCF/include/ccf/service/tables/modules.h

28 строки
799 B
C++

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the Apache 2.0 License.
#pragma once
#include "ccf/service/map.h"
#include <optional>
#include <stdint.h>
#include <string>
#include <vector>
namespace ccf
{
using Module = std::string;
using Modules = kv::RawCopySerialisedMap<std::string, Module>;
using ModulesQuickJsBytecode =
kv::RawCopySerialisedMap<std::string, std::vector<uint8_t>>;
using ModulesQuickJsVersion = kv::RawCopySerialisedValue<std::string>;
namespace Tables
{
static constexpr auto MODULES = "public:ccf.gov.modules";
static constexpr auto MODULES_QUICKJS_BYTECODE =
"public:ccf.gov.modules_quickjs_bytecode";
static constexpr auto MODULES_QUICKJS_VERSION =
"public:ccf.gov.modules_quickjs_version";
}
}