Skip to content

Commit

Permalink
generated
Browse files Browse the repository at this point in the history
  • Loading branch information
madMAx43v3r committed Jul 7, 2024
1 parent a5c99af commit a3c0b0e
Show file tree
Hide file tree
Showing 14 changed files with 595 additions and 594 deletions.
10 changes: 5 additions & 5 deletions generated/include/mmx/NodeAsyncClient.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -322,14 +322,14 @@ public:
const std::function<void(const std::vector<std::shared_ptr<const ::mmx::BlockHeader>>&)>& _callback = std::function<void(const std::vector<std::shared_ptr<const ::mmx::BlockHeader>>&)>(),
const std::function<void(const vnx::exception&)>& _error_callback = std::function<void(const vnx::exception&)>());

uint64_t get_farmed_block_count(const uint32_t& since = 0,
const std::function<void(const std::map<::mmx::pubkey_t, uint32_t>&)>& _callback = std::function<void(const std::map<::mmx::pubkey_t, uint32_t>&)>(),
const std::function<void(const vnx::exception&)>& _error_callback = std::function<void(const vnx::exception&)>());

uint64_t get_farmed_block_summary(const std::vector<::mmx::pubkey_t>& farmer_keys = {}, const uint32_t& since = 0,
const std::function<void(const ::mmx::farmed_block_summary_t&)>& _callback = std::function<void(const ::mmx::farmed_block_summary_t&)>(),
const std::function<void(const vnx::exception&)>& _error_callback = std::function<void(const vnx::exception&)>());

uint64_t get_farmer_ranking(const int32_t& limit = -1,
const std::function<void(const std::vector<std::pair<::mmx::pubkey_t, uint32_t>>&)>& _callback = std::function<void(const std::vector<std::pair<::mmx::pubkey_t, uint32_t>>&)>(),
const std::function<void(const vnx::exception&)>& _error_callback = std::function<void(const vnx::exception&)>());

uint64_t start_sync(const vnx::bool_t& force = 0,
const std::function<void()>& _callback = std::function<void()>(),
const std::function<void(const vnx::exception&)>& _error_callback = std::function<void(const vnx::exception&)>());
Expand Down Expand Up @@ -457,8 +457,8 @@ private:
std::unordered_map<uint64_t, std::pair<std::function<void(const std::map<::mmx::addr_t, std::array<std::pair<::mmx::addr_t, ::mmx::uint128>, 2>>&)>, std::function<void(const vnx::exception&)>>> vnx_queue_get_swap_liquidity_by;
std::unordered_map<uint64_t, std::pair<std::function<void(const ::mmx::uint128&)>, std::function<void(const vnx::exception&)>>> vnx_queue_get_total_supply;
std::unordered_map<uint64_t, std::pair<std::function<void(const std::vector<std::shared_ptr<const ::mmx::BlockHeader>>&)>, std::function<void(const vnx::exception&)>>> vnx_queue_get_farmed_blocks;
std::unordered_map<uint64_t, std::pair<std::function<void(const std::map<::mmx::pubkey_t, uint32_t>&)>, std::function<void(const vnx::exception&)>>> vnx_queue_get_farmed_block_count;
std::unordered_map<uint64_t, std::pair<std::function<void(const ::mmx::farmed_block_summary_t&)>, std::function<void(const vnx::exception&)>>> vnx_queue_get_farmed_block_summary;
std::unordered_map<uint64_t, std::pair<std::function<void(const std::vector<std::pair<::mmx::pubkey_t, uint32_t>>&)>, std::function<void(const vnx::exception&)>>> vnx_queue_get_farmer_ranking;
std::unordered_map<uint64_t, std::pair<std::function<void()>, std::function<void(const vnx::exception&)>>> vnx_queue_start_sync;
std::unordered_map<uint64_t, std::pair<std::function<void()>, std::function<void(const vnx::exception&)>>> vnx_queue_revert_sync;
std::unordered_map<uint64_t, std::pair<std::function<void(std::shared_ptr<const ::vnx::addons::HttpResponse>)>, std::function<void(const vnx::exception&)>>> vnx_queue_http_request;
Expand Down
2 changes: 1 addition & 1 deletion generated/include/mmx/NodeBase.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ protected:
virtual std::map<::mmx::addr_t, std::array<std::pair<::mmx::addr_t, ::mmx::uint128>, 2>> get_swap_liquidity_by(const std::vector<::mmx::addr_t>& addresses) const = 0;
virtual ::mmx::uint128 get_total_supply(const ::mmx::addr_t& currency) const = 0;
virtual std::vector<std::shared_ptr<const ::mmx::BlockHeader>> get_farmed_blocks(const std::vector<::mmx::pubkey_t>& farmer_keys, const vnx::bool_t& full_blocks, const uint32_t& since, const int32_t& limit) const = 0;
virtual std::map<::mmx::pubkey_t, uint32_t> get_farmed_block_count(const uint32_t& since) const = 0;
virtual ::mmx::farmed_block_summary_t get_farmed_block_summary(const std::vector<::mmx::pubkey_t>& farmer_keys, const uint32_t& since) const = 0;
virtual std::vector<std::pair<::mmx::pubkey_t, uint32_t>> get_farmer_ranking(const int32_t& limit) const = 0;
virtual void start_sync(const vnx::bool_t& force) = 0;
virtual void revert_sync(const uint32_t& height) = 0;
virtual void handle(std::shared_ptr<const ::mmx::Block> _value) {}
Expand Down
4 changes: 2 additions & 2 deletions generated/include/mmx/NodeClient.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,10 @@ public:

std::vector<std::shared_ptr<const ::mmx::BlockHeader>> get_farmed_blocks(const std::vector<::mmx::pubkey_t>& farmer_keys = {}, const vnx::bool_t& full_blocks = 0, const uint32_t& since = 0, const int32_t& limit = 100);

std::map<::mmx::pubkey_t, uint32_t> get_farmed_block_count(const uint32_t& since = 0);

::mmx::farmed_block_summary_t get_farmed_block_summary(const std::vector<::mmx::pubkey_t>& farmer_keys = {}, const uint32_t& since = 0);

std::vector<std::pair<::mmx::pubkey_t, uint32_t>> get_farmer_ranking(const int32_t& limit = -1);

void start_sync(const vnx::bool_t& force = 0);

void start_sync_async(const vnx::bool_t& force = 0);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@

// AUTO GENERATED by vnxcppcodegen

#ifndef INCLUDE_mmx_Node_get_farmed_block_count_HXX_
#define INCLUDE_mmx_Node_get_farmed_block_count_HXX_
#ifndef INCLUDE_mmx_Node_get_farmer_ranking_HXX_
#define INCLUDE_mmx_Node_get_farmer_ranking_HXX_

#include <mmx/package.hxx>
#include <vnx/Value.h>


namespace mmx {

class MMX_EXPORT Node_get_farmed_block_count : public ::vnx::Value {
class MMX_EXPORT Node_get_farmer_ranking : public ::vnx::Value {
public:

uint32_t since = 0;
int32_t limit = -1;

typedef ::vnx::Value Super;

static const vnx::Hash64 VNX_TYPE_HASH;
static const vnx::Hash64 VNX_CODE_HASH;

static constexpr uint64_t VNX_TYPE_ID = 0xf48282ff0941a1f8ull;
static constexpr uint64_t VNX_TYPE_ID = 0x548d571d6384bd43ull;

Node_get_farmed_block_count() {}
Node_get_farmer_ranking() {}

vnx::Hash64 get_type_hash() const override;
std::string get_type_name() const override;
const vnx::TypeCode* get_type_code() const override;

static std::shared_ptr<Node_get_farmed_block_count> create();
static std::shared_ptr<Node_get_farmer_ranking> create();
std::shared_ptr<vnx::Value> clone() const override;

void read(vnx::TypeInput& _in, const vnx::TypeCode* _type_code, const uint16_t* _code) override;
Expand All @@ -47,19 +47,19 @@ public:
vnx::Variant get_field(const std::string& name) const override;
void set_field(const std::string& name, const vnx::Variant& value) override;

friend std::ostream& operator<<(std::ostream& _out, const Node_get_farmed_block_count& _value);
friend std::istream& operator>>(std::istream& _in, Node_get_farmed_block_count& _value);
friend std::ostream& operator<<(std::ostream& _out, const Node_get_farmer_ranking& _value);
friend std::istream& operator>>(std::istream& _in, Node_get_farmer_ranking& _value);

static const vnx::TypeCode* static_get_type_code();
static std::shared_ptr<vnx::TypeCode> static_create_type_code();

};

template<typename T>
void Node_get_farmed_block_count::accept_generic(T& _visitor) const {
_visitor.template type_begin<Node_get_farmed_block_count>(1);
_visitor.type_field("since", 0); _visitor.accept(since);
_visitor.template type_end<Node_get_farmed_block_count>(1);
void Node_get_farmer_ranking::accept_generic(T& _visitor) const {
_visitor.template type_begin<Node_get_farmer_ranking>(1);
_visitor.type_field("limit", 0); _visitor.accept(limit);
_visitor.template type_end<Node_get_farmer_ranking>(1);
}


Expand All @@ -70,4 +70,4 @@ namespace vnx {

} // vnx

#endif // INCLUDE_mmx_Node_get_farmed_block_count_HXX_
#endif // INCLUDE_mmx_Node_get_farmer_ranking_HXX_
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

// AUTO GENERATED by vnxcppcodegen

#ifndef INCLUDE_mmx_Node_get_farmed_block_count_return_HXX_
#define INCLUDE_mmx_Node_get_farmed_block_count_return_HXX_
#ifndef INCLUDE_mmx_Node_get_farmer_ranking_return_HXX_
#define INCLUDE_mmx_Node_get_farmer_ranking_return_HXX_

#include <mmx/package.hxx>
#include <mmx/pubkey_t.hpp>
Expand All @@ -11,25 +11,25 @@

namespace mmx {

class MMX_EXPORT Node_get_farmed_block_count_return : public ::vnx::Value {
class MMX_EXPORT Node_get_farmer_ranking_return : public ::vnx::Value {
public:

std::map<::mmx::pubkey_t, uint32_t> _ret_0;
std::vector<std::pair<::mmx::pubkey_t, uint32_t>> _ret_0;

typedef ::vnx::Value Super;

static const vnx::Hash64 VNX_TYPE_HASH;
static const vnx::Hash64 VNX_CODE_HASH;

static constexpr uint64_t VNX_TYPE_ID = 0xd1a45ae62f564f3eull;
static constexpr uint64_t VNX_TYPE_ID = 0xb74e7f1a70a60ecdull;

Node_get_farmed_block_count_return() {}
Node_get_farmer_ranking_return() {}

vnx::Hash64 get_type_hash() const override;
std::string get_type_name() const override;
const vnx::TypeCode* get_type_code() const override;

static std::shared_ptr<Node_get_farmed_block_count_return> create();
static std::shared_ptr<Node_get_farmer_ranking_return> create();
std::shared_ptr<vnx::Value> clone() const override;

void read(vnx::TypeInput& _in, const vnx::TypeCode* _type_code, const uint16_t* _code) override;
Expand All @@ -48,19 +48,19 @@ public:
vnx::Variant get_field(const std::string& name) const override;
void set_field(const std::string& name, const vnx::Variant& value) override;

friend std::ostream& operator<<(std::ostream& _out, const Node_get_farmed_block_count_return& _value);
friend std::istream& operator>>(std::istream& _in, Node_get_farmed_block_count_return& _value);
friend std::ostream& operator<<(std::ostream& _out, const Node_get_farmer_ranking_return& _value);
friend std::istream& operator>>(std::istream& _in, Node_get_farmer_ranking_return& _value);

static const vnx::TypeCode* static_get_type_code();
static std::shared_ptr<vnx::TypeCode> static_create_type_code();

};

template<typename T>
void Node_get_farmed_block_count_return::accept_generic(T& _visitor) const {
_visitor.template type_begin<Node_get_farmed_block_count_return>(1);
void Node_get_farmer_ranking_return::accept_generic(T& _visitor) const {
_visitor.template type_begin<Node_get_farmer_ranking_return>(1);
_visitor.type_field("_ret_0", 0); _visitor.accept(_ret_0);
_visitor.template type_end<Node_get_farmed_block_count_return>(1);
_visitor.template type_end<Node_get_farmer_ranking_return>(1);
}


Expand All @@ -71,4 +71,4 @@ namespace vnx {

} // vnx

#endif // INCLUDE_mmx_Node_get_farmed_block_count_return_HXX_
#endif // INCLUDE_mmx_Node_get_farmer_ranking_return_HXX_
Loading

0 comments on commit a3c0b0e

Please sign in to comment.