CCF
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
proposals.h File Reference
#include "ccf/base_endpoint_registry.h"
#include "ccf/js/common_context.h"
#include "ccf/js/extensions/ccf/gov_effects.h"
#include "js/extensions/ccf/network.h"
#include "js/extensions/ccf/node.h"
#include "node/gov/api_version.h"
#include "node/gov/handlers/helpers.h"

Go to the source code of this file.

Classes

struct  ccf::gov::endpoints::detail::ProposalSubmissionResult
 

Namespaces

namespace  ccf
 
namespace  ccf::gov
 
namespace  ccf::gov::endpoints
 
namespace  ccf::gov::endpoints::detail
 

Functions

ProposalSubmissionResult ccf::gov::endpoints::detail::validate_proposal_submission_time (ccf::kv::Tx &tx, const std::string &created_at, const std::vector< uint8_t > &request_digest, const ccf::ProposalId &proposal_id)
 
void ccf::gov::endpoints::detail::record_cose_governance_history (ccf::kv::Tx &tx, const MemberId &caller_id, const std::span< const uint8_t > &cose_sign1)
 
void ccf::gov::endpoints::detail::remove_all_other_non_open_proposals (ccf::kv::Tx &tx, const ProposalId &proposal_id)
 
void ccf::gov::endpoints::detail::resolve_proposal (ccf::AbstractNodeContext &context, ccf::NetworkState &network, ccf::kv::Tx &tx, const ProposalId &proposal_id, const std::span< const uint8_t > &proposal_bytes, ccf::jsgov::ProposalInfo &proposal_info, const std::string &constitution)
 
nlohmann::json ccf::gov::endpoints::detail::convert_proposal_to_api_format (const ProposalId &proposal_id, const ccf::jsgov::ProposalInfo &summary)
 
void ccf::gov::endpoints::init_proposals_handlers (ccf::BaseEndpointRegistry &registry, NetworkState &network, ccf::AbstractNodeContext &node_context)