mirror of
https://github.com/hanzo-cpp/sdk.git
synced 2026-11-20 19:55:32 +00:00
The projection these were generated from was a month old and predated the compute migration, so every one of them described /v1/visor — which the API serves at zero paths now. That is why a hand-written console client and a generated one had drifted the same way at the same time. No /v1/visor path survives here. The word still appears as a source-plane value and inside gvisor and supervisor, which are not this rename.
141 lines
3.6 KiB
C++
141 lines
3.6 KiB
C++
/**
|
|
* Hanzo Cloud API
|
|
* The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
|
|
*
|
|
* The version of the OpenAPI document: v1
|
|
*
|
|
* NOTE: This class is auto generated by OpenAPI-Generator 7.14.0.
|
|
* https://openapi-generator.tech
|
|
* Do not edit the class manually.
|
|
*/
|
|
|
|
/*
|
|
* Genesis.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_Genesis_H_
|
|
#define HANZO_MODEL_Genesis_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include <cpprest/details/basic_types.h>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
|
|
|
|
class Genesis
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
Genesis();
|
|
virtual ~Genesis();
|
|
|
|
/////////////////////////////////////////////
|
|
/// ModelBase overrides
|
|
|
|
void validate() override;
|
|
|
|
web::json::value toJson() const override;
|
|
bool fromJson(const web::json::value& json) override;
|
|
|
|
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
|
|
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// Genesis members
|
|
|
|
|
|
/// <summary>
|
|
/// At is the unix second the genesis root was computed.
|
|
/// </summary>
|
|
int64_t getAt() const;
|
|
bool atIsSet() const;
|
|
void unsetAt();
|
|
void setAt(int64_t value);
|
|
|
|
/// <summary>
|
|
/// Block is the L1 block the anchoring transaction landed in. Set only once the receipt has been read; absent otherwise.
|
|
/// </summary>
|
|
int32_t getBlock() const;
|
|
bool blockIsSet() const;
|
|
void unsetBlock();
|
|
void setBlock(int32_t value);
|
|
|
|
/// <summary>
|
|
/// ChainID is the EVM chain the root is committed to — the Hanzo L1 by default.
|
|
/// </summary>
|
|
int64_t getChainId() const;
|
|
bool chainIdIsSet() const;
|
|
void unsetChainId();
|
|
void setChainId(int64_t value);
|
|
|
|
/// <summary>
|
|
/// Note explains an unanchored genesis honestly — anchor wiring absent, or the submit error — rather than reporting a commit that did not happen.
|
|
/// </summary>
|
|
utility::string_t getNote() const;
|
|
bool noteIsSet() const;
|
|
void unsetNote();
|
|
void setNote(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Root is the 0x-prefixed keccak256 root of the founding allocation. It is ALWAYS computed, whether or not the on-chain anchor is wired, because the root is the tamper-evident witness.
|
|
/// </summary>
|
|
utility::string_t getRoot() const;
|
|
bool rootIsSet() const;
|
|
void unsetRoot();
|
|
void setRoot(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Status is pending (root computed, not yet on-chain) or anchored (committed).
|
|
/// </summary>
|
|
utility::string_t getStatus() const;
|
|
bool statusIsSet() const;
|
|
void unsetStatus();
|
|
void setStatus(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// TxHash is the L1 transaction hash of the anchoring commit. Empty until anchored.
|
|
/// </summary>
|
|
utility::string_t getTxHash() const;
|
|
bool txHashIsSet() const;
|
|
void unsetTxHash();
|
|
void setTxHash(const utility::string_t& value);
|
|
|
|
|
|
protected:
|
|
int64_t m_At;
|
|
bool m_AtIsSet;
|
|
|
|
int32_t m_Block;
|
|
bool m_BlockIsSet;
|
|
|
|
int64_t m_ChainId;
|
|
bool m_ChainIdIsSet;
|
|
|
|
utility::string_t m_Note;
|
|
bool m_NoteIsSet;
|
|
|
|
utility::string_t m_Root;
|
|
bool m_RootIsSet;
|
|
|
|
utility::string_t m_Status;
|
|
bool m_StatusIsSet;
|
|
|
|
utility::string_t m_TxHash;
|
|
bool m_TxHashIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_Genesis_H_ */
|