Files
zeekay 189ce08e51 Regenerate against the document the deployment answers for
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.
2026-09-05 18:07:13 -07:00

147 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.
*/
/*
* Pool.h
*
*
*/
#ifndef HANZO_MODEL_Pool_H_
#define HANZO_MODEL_Pool_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include "hanzo/model/Token.h"
#include <cpprest/details/basic_types.h>
namespace hanzo {
namespace model {
class Token;
class Pool
: public ModelBase
{
public:
Pool();
virtual ~Pool();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// Pool members
/// <summary>
/// At is the pool contract&#39;s address, lowercase.
/// </summary>
utility::string_t getAt() const;
bool atIsSet() const;
void unsetAt();
void setAt(const utility::string_t& value);
int64_t getCount() const;
bool countIsSet() const;
void unsetCount();
void setCount(int64_t value);
/// <summary>
/// Fee is the pool&#39;s tier in hundredths of a basis point — 3000 is 0.3%. It is the integer the contract stores, unconverted, so nothing here rounds a rate.
/// </summary>
int64_t getFee() const;
bool feeIsSet() const;
void unsetFee();
void setFee(int64_t value);
utility::string_t getLocked() const;
bool lockedIsSet() const;
void unsetLocked();
void setLocked(const utility::string_t& value);
std::shared_ptr<Token> getToken0() const;
bool token0IsSet() const;
void unsetToken0();
void setToken0(const std::shared_ptr<Token>& value);
/// <summary>
/// Token0Price is token1 per token0, and Token1Price its reciprocal, both as the indexer computed them. Neither is a price ON anything: it is the ratio the pool&#39;s reserves stand at.
/// </summary>
utility::string_t getToken0Price() const;
bool token0PriceIsSet() const;
void unsetToken0Price();
void setToken0Price(const utility::string_t& value);
std::shared_ptr<Token> getToken1() const;
bool token1IsSet() const;
void unsetToken1();
void setToken1(const std::shared_ptr<Token>& value);
utility::string_t getToken1Price() const;
bool token1PriceIsSet() const;
void unsetToken1Price();
void setToken1Price(const utility::string_t& value);
utility::string_t getVolume() const;
bool volumeIsSet() const;
void unsetVolume();
void setVolume(const utility::string_t& value);
protected:
utility::string_t m_At;
bool m_AtIsSet;
int64_t m_Count;
bool m_CountIsSet;
int64_t m_Fee;
bool m_FeeIsSet;
utility::string_t m_Locked;
bool m_LockedIsSet;
std::shared_ptr<Token> m_Token0;
bool m_Token0IsSet;
utility::string_t m_Token0Price;
bool m_Token0PriceIsSet;
std::shared_ptr<Token> m_Token1;
bool m_Token1IsSet;
utility::string_t m_Token1Price;
bool m_Token1PriceIsSet;
utility::string_t m_Volume;
bool m_VolumeIsSet;
};
}
}
#endif /* HANZO_MODEL_Pool_H_ */