diff --git a/generated/include/mmx/NodeAsyncClient.hxx b/generated/include/mmx/NodeAsyncClient.hxx index 3685d27c0..ecb54a7c4 100644 --- a/generated/include/mmx/NodeAsyncClient.hxx +++ b/generated/include/mmx/NodeAsyncClient.hxx @@ -322,14 +322,14 @@ public: const std::function>&)>& _callback = std::function>&)>(), const std::function& _error_callback = std::function()); - uint64_t get_farmed_block_count(const uint32_t& since = 0, - const std::function&)>& _callback = std::function&)>(), - const std::function& _error_callback = std::function()); - uint64_t get_farmed_block_summary(const std::vector<::mmx::pubkey_t>& farmer_keys = {}, const uint32_t& since = 0, const std::function& _callback = std::function(), const std::function& _error_callback = std::function()); + uint64_t get_farmer_ranking(const int32_t& limit = -1, + const std::function>&)>& _callback = std::function>&)>(), + const std::function& _error_callback = std::function()); + uint64_t start_sync(const vnx::bool_t& force = 0, const std::function& _callback = std::function(), const std::function& _error_callback = std::function()); @@ -457,8 +457,8 @@ private: std::unordered_map, 2>>&)>, std::function>> vnx_queue_get_swap_liquidity_by; std::unordered_map, std::function>> vnx_queue_get_total_supply; std::unordered_map>&)>, std::function>> vnx_queue_get_farmed_blocks; - std::unordered_map&)>, std::function>> vnx_queue_get_farmed_block_count; std::unordered_map, std::function>> vnx_queue_get_farmed_block_summary; + std::unordered_map>&)>, std::function>> vnx_queue_get_farmer_ranking; std::unordered_map, std::function>> vnx_queue_start_sync; std::unordered_map, std::function>> vnx_queue_revert_sync; std::unordered_map)>, std::function>> vnx_queue_http_request; diff --git a/generated/include/mmx/NodeBase.hxx b/generated/include/mmx/NodeBase.hxx index 38f1d3572..d4b9eb0ba 100644 --- a/generated/include/mmx/NodeBase.hxx +++ b/generated/include/mmx/NodeBase.hxx @@ -193,8 +193,8 @@ protected: virtual std::map<::mmx::addr_t, std::array, 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> 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> 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 _value) {} diff --git a/generated/include/mmx/NodeClient.hxx b/generated/include/mmx/NodeClient.hxx index 2730cf998..0dedbef0c 100644 --- a/generated/include/mmx/NodeClient.hxx +++ b/generated/include/mmx/NodeClient.hxx @@ -188,10 +188,10 @@ public: std::vector> 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> 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); diff --git a/generated/include/mmx/Node_get_farmed_block_count.hxx b/generated/include/mmx/Node_get_farmer_ranking.hxx similarity index 66% rename from generated/include/mmx/Node_get_farmed_block_count.hxx rename to generated/include/mmx/Node_get_farmer_ranking.hxx index 27424845e..5c91e7548 100644 --- a/generated/include/mmx/Node_get_farmed_block_count.hxx +++ b/generated/include/mmx/Node_get_farmer_ranking.hxx @@ -1,8 +1,8 @@ // 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 #include @@ -10,25 +10,25 @@ 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 create(); + static std::shared_ptr create(); std::shared_ptr clone() const override; void read(vnx::TypeInput& _in, const vnx::TypeCode* _type_code, const uint16_t* _code) override; @@ -47,8 +47,8 @@ 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 static_create_type_code(); @@ -56,10 +56,10 @@ public: }; template -void Node_get_farmed_block_count::accept_generic(T& _visitor) const { - _visitor.template type_begin(1); - _visitor.type_field("since", 0); _visitor.accept(since); - _visitor.template type_end(1); +void Node_get_farmer_ranking::accept_generic(T& _visitor) const { + _visitor.template type_begin(1); + _visitor.type_field("limit", 0); _visitor.accept(limit); + _visitor.template type_end(1); } @@ -70,4 +70,4 @@ namespace vnx { } // vnx -#endif // INCLUDE_mmx_Node_get_farmed_block_count_HXX_ +#endif // INCLUDE_mmx_Node_get_farmer_ranking_HXX_ diff --git a/generated/include/mmx/Node_get_farmed_block_count_return.hxx b/generated/include/mmx/Node_get_farmer_ranking_return.hxx similarity index 66% rename from generated/include/mmx/Node_get_farmed_block_count_return.hxx rename to generated/include/mmx/Node_get_farmer_ranking_return.hxx index ed7796678..8cdf9fd98 100644 --- a/generated/include/mmx/Node_get_farmed_block_count_return.hxx +++ b/generated/include/mmx/Node_get_farmer_ranking_return.hxx @@ -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 #include @@ -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> _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 create(); + static std::shared_ptr create(); std::shared_ptr clone() const override; void read(vnx::TypeInput& _in, const vnx::TypeCode* _type_code, const uint16_t* _code) override; @@ -48,8 +48,8 @@ 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 static_create_type_code(); @@ -57,10 +57,10 @@ public: }; template -void Node_get_farmed_block_count_return::accept_generic(T& _visitor) const { - _visitor.template type_begin(1); +void Node_get_farmer_ranking_return::accept_generic(T& _visitor) const { + _visitor.template type_begin(1); _visitor.type_field("_ret_0", 0); _visitor.accept(_ret_0); - _visitor.template type_end(1); + _visitor.template type_end(1); } @@ -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_ diff --git a/generated/include/mmx/package.hxx b/generated/include/mmx/package.hxx index fad9efb9d..c5fe7195d 100644 --- a/generated/include/mmx/package.hxx +++ b/generated/include/mmx/package.hxx @@ -93,12 +93,12 @@ class Node_get_contracts_owned_by; class Node_get_contracts_owned_by_return; class Node_get_exec_history; class Node_get_exec_history_return; -class Node_get_farmed_block_count; -class Node_get_farmed_block_count_return; class Node_get_farmed_block_summary; class Node_get_farmed_block_summary_return; class Node_get_farmed_blocks; class Node_get_farmed_blocks_return; +class Node_get_farmer_ranking; +class Node_get_farmer_ranking_return; class Node_get_genesis_hash; class Node_get_genesis_hash_return; class Node_get_header; @@ -479,12 +479,12 @@ MMX_EXPORT extern const vnx::TypeCode* const vnx_native_type_code_Node_get_contr MMX_EXPORT extern const vnx::TypeCode* const vnx_native_type_code_Node_get_contracts_owned_by_return; ///< \private MMX_EXPORT extern const vnx::TypeCode* const vnx_native_type_code_Node_get_exec_history; ///< \private MMX_EXPORT extern const vnx::TypeCode* const vnx_native_type_code_Node_get_exec_history_return; ///< \private -MMX_EXPORT extern const vnx::TypeCode* const vnx_native_type_code_Node_get_farmed_block_count; ///< \private -MMX_EXPORT extern const vnx::TypeCode* const vnx_native_type_code_Node_get_farmed_block_count_return; ///< \private MMX_EXPORT extern const vnx::TypeCode* const vnx_native_type_code_Node_get_farmed_block_summary; ///< \private MMX_EXPORT extern const vnx::TypeCode* const vnx_native_type_code_Node_get_farmed_block_summary_return; ///< \private MMX_EXPORT extern const vnx::TypeCode* const vnx_native_type_code_Node_get_farmed_blocks; ///< \private MMX_EXPORT extern const vnx::TypeCode* const vnx_native_type_code_Node_get_farmed_blocks_return; ///< \private +MMX_EXPORT extern const vnx::TypeCode* const vnx_native_type_code_Node_get_farmer_ranking; ///< \private +MMX_EXPORT extern const vnx::TypeCode* const vnx_native_type_code_Node_get_farmer_ranking_return; ///< \private MMX_EXPORT extern const vnx::TypeCode* const vnx_native_type_code_Node_get_genesis_hash; ///< \private MMX_EXPORT extern const vnx::TypeCode* const vnx_native_type_code_Node_get_genesis_hash_return; ///< \private MMX_EXPORT extern const vnx::TypeCode* const vnx_native_type_code_Node_get_header; ///< \private @@ -862,12 +862,12 @@ void read(TypeInput& in, ::mmx::Node_get_contracts_owned_by& value, const TypeCo void read(TypeInput& in, ::mmx::Node_get_contracts_owned_by_return& value, const TypeCode* type_code, const uint16_t* code); ///< \private void read(TypeInput& in, ::mmx::Node_get_exec_history& value, const TypeCode* type_code, const uint16_t* code); ///< \private void read(TypeInput& in, ::mmx::Node_get_exec_history_return& value, const TypeCode* type_code, const uint16_t* code); ///< \private -void read(TypeInput& in, ::mmx::Node_get_farmed_block_count& value, const TypeCode* type_code, const uint16_t* code); ///< \private -void read(TypeInput& in, ::mmx::Node_get_farmed_block_count_return& value, const TypeCode* type_code, const uint16_t* code); ///< \private void read(TypeInput& in, ::mmx::Node_get_farmed_block_summary& value, const TypeCode* type_code, const uint16_t* code); ///< \private void read(TypeInput& in, ::mmx::Node_get_farmed_block_summary_return& value, const TypeCode* type_code, const uint16_t* code); ///< \private void read(TypeInput& in, ::mmx::Node_get_farmed_blocks& value, const TypeCode* type_code, const uint16_t* code); ///< \private void read(TypeInput& in, ::mmx::Node_get_farmed_blocks_return& value, const TypeCode* type_code, const uint16_t* code); ///< \private +void read(TypeInput& in, ::mmx::Node_get_farmer_ranking& value, const TypeCode* type_code, const uint16_t* code); ///< \private +void read(TypeInput& in, ::mmx::Node_get_farmer_ranking_return& value, const TypeCode* type_code, const uint16_t* code); ///< \private void read(TypeInput& in, ::mmx::Node_get_genesis_hash& value, const TypeCode* type_code, const uint16_t* code); ///< \private void read(TypeInput& in, ::mmx::Node_get_genesis_hash_return& value, const TypeCode* type_code, const uint16_t* code); ///< \private void read(TypeInput& in, ::mmx::Node_get_header& value, const TypeCode* type_code, const uint16_t* code); ///< \private @@ -1248,12 +1248,12 @@ void write(TypeOutput& out, const ::mmx::Node_get_contracts_owned_by& value, con void write(TypeOutput& out, const ::mmx::Node_get_contracts_owned_by_return& value, const TypeCode* type_code, const uint16_t* code); ///< \private void write(TypeOutput& out, const ::mmx::Node_get_exec_history& value, const TypeCode* type_code, const uint16_t* code); ///< \private void write(TypeOutput& out, const ::mmx::Node_get_exec_history_return& value, const TypeCode* type_code, const uint16_t* code); ///< \private -void write(TypeOutput& out, const ::mmx::Node_get_farmed_block_count& value, const TypeCode* type_code, const uint16_t* code); ///< \private -void write(TypeOutput& out, const ::mmx::Node_get_farmed_block_count_return& value, const TypeCode* type_code, const uint16_t* code); ///< \private void write(TypeOutput& out, const ::mmx::Node_get_farmed_block_summary& value, const TypeCode* type_code, const uint16_t* code); ///< \private void write(TypeOutput& out, const ::mmx::Node_get_farmed_block_summary_return& value, const TypeCode* type_code, const uint16_t* code); ///< \private void write(TypeOutput& out, const ::mmx::Node_get_farmed_blocks& value, const TypeCode* type_code, const uint16_t* code); ///< \private void write(TypeOutput& out, const ::mmx::Node_get_farmed_blocks_return& value, const TypeCode* type_code, const uint16_t* code); ///< \private +void write(TypeOutput& out, const ::mmx::Node_get_farmer_ranking& value, const TypeCode* type_code, const uint16_t* code); ///< \private +void write(TypeOutput& out, const ::mmx::Node_get_farmer_ranking_return& value, const TypeCode* type_code, const uint16_t* code); ///< \private void write(TypeOutput& out, const ::mmx::Node_get_genesis_hash& value, const TypeCode* type_code, const uint16_t* code); ///< \private void write(TypeOutput& out, const ::mmx::Node_get_genesis_hash_return& value, const TypeCode* type_code, const uint16_t* code); ///< \private void write(TypeOutput& out, const ::mmx::Node_get_header& value, const TypeCode* type_code, const uint16_t* code); ///< \private @@ -1634,12 +1634,12 @@ void read(std::istream& in, ::mmx::Node_get_contracts_owned_by& value); ///< \pr void read(std::istream& in, ::mmx::Node_get_contracts_owned_by_return& value); ///< \private void read(std::istream& in, ::mmx::Node_get_exec_history& value); ///< \private void read(std::istream& in, ::mmx::Node_get_exec_history_return& value); ///< \private -void read(std::istream& in, ::mmx::Node_get_farmed_block_count& value); ///< \private -void read(std::istream& in, ::mmx::Node_get_farmed_block_count_return& value); ///< \private void read(std::istream& in, ::mmx::Node_get_farmed_block_summary& value); ///< \private void read(std::istream& in, ::mmx::Node_get_farmed_block_summary_return& value); ///< \private void read(std::istream& in, ::mmx::Node_get_farmed_blocks& value); ///< \private void read(std::istream& in, ::mmx::Node_get_farmed_blocks_return& value); ///< \private +void read(std::istream& in, ::mmx::Node_get_farmer_ranking& value); ///< \private +void read(std::istream& in, ::mmx::Node_get_farmer_ranking_return& value); ///< \private void read(std::istream& in, ::mmx::Node_get_genesis_hash& value); ///< \private void read(std::istream& in, ::mmx::Node_get_genesis_hash_return& value); ///< \private void read(std::istream& in, ::mmx::Node_get_header& value); ///< \private @@ -2020,12 +2020,12 @@ void write(std::ostream& out, const ::mmx::Node_get_contracts_owned_by& value); void write(std::ostream& out, const ::mmx::Node_get_contracts_owned_by_return& value); ///< \private void write(std::ostream& out, const ::mmx::Node_get_exec_history& value); ///< \private void write(std::ostream& out, const ::mmx::Node_get_exec_history_return& value); ///< \private -void write(std::ostream& out, const ::mmx::Node_get_farmed_block_count& value); ///< \private -void write(std::ostream& out, const ::mmx::Node_get_farmed_block_count_return& value); ///< \private void write(std::ostream& out, const ::mmx::Node_get_farmed_block_summary& value); ///< \private void write(std::ostream& out, const ::mmx::Node_get_farmed_block_summary_return& value); ///< \private void write(std::ostream& out, const ::mmx::Node_get_farmed_blocks& value); ///< \private void write(std::ostream& out, const ::mmx::Node_get_farmed_blocks_return& value); ///< \private +void write(std::ostream& out, const ::mmx::Node_get_farmer_ranking& value); ///< \private +void write(std::ostream& out, const ::mmx::Node_get_farmer_ranking_return& value); ///< \private void write(std::ostream& out, const ::mmx::Node_get_genesis_hash& value); ///< \private void write(std::ostream& out, const ::mmx::Node_get_genesis_hash_return& value); ///< \private void write(std::ostream& out, const ::mmx::Node_get_header& value); ///< \private @@ -2406,12 +2406,12 @@ void accept(Visitor& visitor, const ::mmx::Node_get_contracts_owned_by& value); void accept(Visitor& visitor, const ::mmx::Node_get_contracts_owned_by_return& value); ///< \private void accept(Visitor& visitor, const ::mmx::Node_get_exec_history& value); ///< \private void accept(Visitor& visitor, const ::mmx::Node_get_exec_history_return& value); ///< \private -void accept(Visitor& visitor, const ::mmx::Node_get_farmed_block_count& value); ///< \private -void accept(Visitor& visitor, const ::mmx::Node_get_farmed_block_count_return& value); ///< \private void accept(Visitor& visitor, const ::mmx::Node_get_farmed_block_summary& value); ///< \private void accept(Visitor& visitor, const ::mmx::Node_get_farmed_block_summary_return& value); ///< \private void accept(Visitor& visitor, const ::mmx::Node_get_farmed_blocks& value); ///< \private void accept(Visitor& visitor, const ::mmx::Node_get_farmed_blocks_return& value); ///< \private +void accept(Visitor& visitor, const ::mmx::Node_get_farmer_ranking& value); ///< \private +void accept(Visitor& visitor, const ::mmx::Node_get_farmer_ranking_return& value); ///< \private void accept(Visitor& visitor, const ::mmx::Node_get_genesis_hash& value); ///< \private void accept(Visitor& visitor, const ::mmx::Node_get_genesis_hash_return& value); ///< \private void accept(Visitor& visitor, const ::mmx::Node_get_header& value); ///< \private @@ -4303,140 +4303,140 @@ struct type<::mmx::Node_get_exec_history_return> { /// \private template<> -struct type<::mmx::Node_get_farmed_block_count> { - void read(TypeInput& in, ::mmx::Node_get_farmed_block_count& value, const TypeCode* type_code, const uint16_t* code) { +struct type<::mmx::Node_get_farmed_block_summary> { + void read(TypeInput& in, ::mmx::Node_get_farmed_block_summary& value, const TypeCode* type_code, const uint16_t* code) { vnx::read(in, value, type_code, code); } - void write(TypeOutput& out, const ::mmx::Node_get_farmed_block_count& value, const TypeCode* type_code, const uint16_t* code) { + void write(TypeOutput& out, const ::mmx::Node_get_farmed_block_summary& value, const TypeCode* type_code, const uint16_t* code) { vnx::write(out, value, type_code, code); } - void read(std::istream& in, ::mmx::Node_get_farmed_block_count& value) { + void read(std::istream& in, ::mmx::Node_get_farmed_block_summary& value) { vnx::read(in, value); } - void write(std::ostream& out, const ::mmx::Node_get_farmed_block_count& value) { + void write(std::ostream& out, const ::mmx::Node_get_farmed_block_summary& value) { vnx::write(out, value); } - void accept(Visitor& visitor, const ::mmx::Node_get_farmed_block_count& value) { + void accept(Visitor& visitor, const ::mmx::Node_get_farmed_block_summary& value) { vnx::accept(visitor, value); } const TypeCode* get_type_code(); void create_dynamic_code(std::vector& code); - void create_dynamic_code(std::vector& code, const ::mmx::Node_get_farmed_block_count& value, bool special = false); + void create_dynamic_code(std::vector& code, const ::mmx::Node_get_farmed_block_summary& value, bool special = false); }; /// \private template<> -struct type<::mmx::Node_get_farmed_block_count_return> { - void read(TypeInput& in, ::mmx::Node_get_farmed_block_count_return& value, const TypeCode* type_code, const uint16_t* code) { +struct type<::mmx::Node_get_farmed_block_summary_return> { + void read(TypeInput& in, ::mmx::Node_get_farmed_block_summary_return& value, const TypeCode* type_code, const uint16_t* code) { vnx::read(in, value, type_code, code); } - void write(TypeOutput& out, const ::mmx::Node_get_farmed_block_count_return& value, const TypeCode* type_code, const uint16_t* code) { + void write(TypeOutput& out, const ::mmx::Node_get_farmed_block_summary_return& value, const TypeCode* type_code, const uint16_t* code) { vnx::write(out, value, type_code, code); } - void read(std::istream& in, ::mmx::Node_get_farmed_block_count_return& value) { + void read(std::istream& in, ::mmx::Node_get_farmed_block_summary_return& value) { vnx::read(in, value); } - void write(std::ostream& out, const ::mmx::Node_get_farmed_block_count_return& value) { + void write(std::ostream& out, const ::mmx::Node_get_farmed_block_summary_return& value) { vnx::write(out, value); } - void accept(Visitor& visitor, const ::mmx::Node_get_farmed_block_count_return& value) { + void accept(Visitor& visitor, const ::mmx::Node_get_farmed_block_summary_return& value) { vnx::accept(visitor, value); } const TypeCode* get_type_code(); void create_dynamic_code(std::vector& code); - void create_dynamic_code(std::vector& code, const ::mmx::Node_get_farmed_block_count_return& value, bool special = false); + void create_dynamic_code(std::vector& code, const ::mmx::Node_get_farmed_block_summary_return& value, bool special = false); }; /// \private template<> -struct type<::mmx::Node_get_farmed_block_summary> { - void read(TypeInput& in, ::mmx::Node_get_farmed_block_summary& value, const TypeCode* type_code, const uint16_t* code) { +struct type<::mmx::Node_get_farmed_blocks> { + void read(TypeInput& in, ::mmx::Node_get_farmed_blocks& value, const TypeCode* type_code, const uint16_t* code) { vnx::read(in, value, type_code, code); } - void write(TypeOutput& out, const ::mmx::Node_get_farmed_block_summary& value, const TypeCode* type_code, const uint16_t* code) { + void write(TypeOutput& out, const ::mmx::Node_get_farmed_blocks& value, const TypeCode* type_code, const uint16_t* code) { vnx::write(out, value, type_code, code); } - void read(std::istream& in, ::mmx::Node_get_farmed_block_summary& value) { + void read(std::istream& in, ::mmx::Node_get_farmed_blocks& value) { vnx::read(in, value); } - void write(std::ostream& out, const ::mmx::Node_get_farmed_block_summary& value) { + void write(std::ostream& out, const ::mmx::Node_get_farmed_blocks& value) { vnx::write(out, value); } - void accept(Visitor& visitor, const ::mmx::Node_get_farmed_block_summary& value) { + void accept(Visitor& visitor, const ::mmx::Node_get_farmed_blocks& value) { vnx::accept(visitor, value); } const TypeCode* get_type_code(); void create_dynamic_code(std::vector& code); - void create_dynamic_code(std::vector& code, const ::mmx::Node_get_farmed_block_summary& value, bool special = false); + void create_dynamic_code(std::vector& code, const ::mmx::Node_get_farmed_blocks& value, bool special = false); }; /// \private template<> -struct type<::mmx::Node_get_farmed_block_summary_return> { - void read(TypeInput& in, ::mmx::Node_get_farmed_block_summary_return& value, const TypeCode* type_code, const uint16_t* code) { +struct type<::mmx::Node_get_farmed_blocks_return> { + void read(TypeInput& in, ::mmx::Node_get_farmed_blocks_return& value, const TypeCode* type_code, const uint16_t* code) { vnx::read(in, value, type_code, code); } - void write(TypeOutput& out, const ::mmx::Node_get_farmed_block_summary_return& value, const TypeCode* type_code, const uint16_t* code) { + void write(TypeOutput& out, const ::mmx::Node_get_farmed_blocks_return& value, const TypeCode* type_code, const uint16_t* code) { vnx::write(out, value, type_code, code); } - void read(std::istream& in, ::mmx::Node_get_farmed_block_summary_return& value) { + void read(std::istream& in, ::mmx::Node_get_farmed_blocks_return& value) { vnx::read(in, value); } - void write(std::ostream& out, const ::mmx::Node_get_farmed_block_summary_return& value) { + void write(std::ostream& out, const ::mmx::Node_get_farmed_blocks_return& value) { vnx::write(out, value); } - void accept(Visitor& visitor, const ::mmx::Node_get_farmed_block_summary_return& value) { + void accept(Visitor& visitor, const ::mmx::Node_get_farmed_blocks_return& value) { vnx::accept(visitor, value); } const TypeCode* get_type_code(); void create_dynamic_code(std::vector& code); - void create_dynamic_code(std::vector& code, const ::mmx::Node_get_farmed_block_summary_return& value, bool special = false); + void create_dynamic_code(std::vector& code, const ::mmx::Node_get_farmed_blocks_return& value, bool special = false); }; /// \private template<> -struct type<::mmx::Node_get_farmed_blocks> { - void read(TypeInput& in, ::mmx::Node_get_farmed_blocks& value, const TypeCode* type_code, const uint16_t* code) { +struct type<::mmx::Node_get_farmer_ranking> { + void read(TypeInput& in, ::mmx::Node_get_farmer_ranking& value, const TypeCode* type_code, const uint16_t* code) { vnx::read(in, value, type_code, code); } - void write(TypeOutput& out, const ::mmx::Node_get_farmed_blocks& value, const TypeCode* type_code, const uint16_t* code) { + void write(TypeOutput& out, const ::mmx::Node_get_farmer_ranking& value, const TypeCode* type_code, const uint16_t* code) { vnx::write(out, value, type_code, code); } - void read(std::istream& in, ::mmx::Node_get_farmed_blocks& value) { + void read(std::istream& in, ::mmx::Node_get_farmer_ranking& value) { vnx::read(in, value); } - void write(std::ostream& out, const ::mmx::Node_get_farmed_blocks& value) { + void write(std::ostream& out, const ::mmx::Node_get_farmer_ranking& value) { vnx::write(out, value); } - void accept(Visitor& visitor, const ::mmx::Node_get_farmed_blocks& value) { + void accept(Visitor& visitor, const ::mmx::Node_get_farmer_ranking& value) { vnx::accept(visitor, value); } const TypeCode* get_type_code(); void create_dynamic_code(std::vector& code); - void create_dynamic_code(std::vector& code, const ::mmx::Node_get_farmed_blocks& value, bool special = false); + void create_dynamic_code(std::vector& code, const ::mmx::Node_get_farmer_ranking& value, bool special = false); }; /// \private template<> -struct type<::mmx::Node_get_farmed_blocks_return> { - void read(TypeInput& in, ::mmx::Node_get_farmed_blocks_return& value, const TypeCode* type_code, const uint16_t* code) { +struct type<::mmx::Node_get_farmer_ranking_return> { + void read(TypeInput& in, ::mmx::Node_get_farmer_ranking_return& value, const TypeCode* type_code, const uint16_t* code) { vnx::read(in, value, type_code, code); } - void write(TypeOutput& out, const ::mmx::Node_get_farmed_blocks_return& value, const TypeCode* type_code, const uint16_t* code) { + void write(TypeOutput& out, const ::mmx::Node_get_farmer_ranking_return& value, const TypeCode* type_code, const uint16_t* code) { vnx::write(out, value, type_code, code); } - void read(std::istream& in, ::mmx::Node_get_farmed_blocks_return& value) { + void read(std::istream& in, ::mmx::Node_get_farmer_ranking_return& value) { vnx::read(in, value); } - void write(std::ostream& out, const ::mmx::Node_get_farmed_blocks_return& value) { + void write(std::ostream& out, const ::mmx::Node_get_farmer_ranking_return& value) { vnx::write(out, value); } - void accept(Visitor& visitor, const ::mmx::Node_get_farmed_blocks_return& value) { + void accept(Visitor& visitor, const ::mmx::Node_get_farmer_ranking_return& value) { vnx::accept(visitor, value); } const TypeCode* get_type_code(); void create_dynamic_code(std::vector& code); - void create_dynamic_code(std::vector& code, const ::mmx::Node_get_farmed_blocks_return& value, bool special = false); + void create_dynamic_code(std::vector& code, const ::mmx::Node_get_farmer_ranking_return& value, bool special = false); }; /// \private diff --git a/generated/src/NodeAsyncClient.cpp b/generated/src/NodeAsyncClient.cpp index 4a62da624..ff3e4da28 100644 --- a/generated/src/NodeAsyncClient.cpp +++ b/generated/src/NodeAsyncClient.cpp @@ -46,12 +46,12 @@ #include #include #include -#include -#include #include #include #include #include +#include +#include #include #include #include @@ -1175,28 +1175,28 @@ uint64_t NodeAsyncClient::get_farmed_blocks(const std::vector<::mmx::pubkey_t>& return _request_id; } -uint64_t NodeAsyncClient::get_farmed_block_count(const uint32_t& since, const std::function&)>& _callback, const std::function& _error_callback) { - auto _method = ::mmx::Node_get_farmed_block_count::create(); +uint64_t NodeAsyncClient::get_farmed_block_summary(const std::vector<::mmx::pubkey_t>& farmer_keys, const uint32_t& since, const std::function& _callback, const std::function& _error_callback) { + auto _method = ::mmx::Node_get_farmed_block_summary::create(); + _method->farmer_keys = farmer_keys; _method->since = since; const auto _request_id = ++vnx_next_id; { std::lock_guard _lock(vnx_mutex); vnx_pending[_request_id] = 69; - vnx_queue_get_farmed_block_count[_request_id] = std::make_pair(_callback, _error_callback); + vnx_queue_get_farmed_block_summary[_request_id] = std::make_pair(_callback, _error_callback); } vnx_request(_method, _request_id); return _request_id; } -uint64_t NodeAsyncClient::get_farmed_block_summary(const std::vector<::mmx::pubkey_t>& farmer_keys, const uint32_t& since, const std::function& _callback, const std::function& _error_callback) { - auto _method = ::mmx::Node_get_farmed_block_summary::create(); - _method->farmer_keys = farmer_keys; - _method->since = since; +uint64_t NodeAsyncClient::get_farmer_ranking(const int32_t& limit, const std::function>&)>& _callback, const std::function& _error_callback) { + auto _method = ::mmx::Node_get_farmer_ranking::create(); + _method->limit = limit; const auto _request_id = ++vnx_next_id; { std::lock_guard _lock(vnx_mutex); vnx_pending[_request_id] = 70; - vnx_queue_get_farmed_block_summary[_request_id] = std::make_pair(_callback, _error_callback); + vnx_queue_get_farmer_ranking[_request_id] = std::make_pair(_callback, _error_callback); } vnx_request(_method, _request_id); return _request_id; @@ -2208,10 +2208,10 @@ int32_t NodeAsyncClient::vnx_purge_request(uint64_t _request_id, const vnx::exce break; } case 69: { - const auto _iter = vnx_queue_get_farmed_block_count.find(_request_id); - if(_iter != vnx_queue_get_farmed_block_count.end()) { + const auto _iter = vnx_queue_get_farmed_block_summary.find(_request_id); + if(_iter != vnx_queue_get_farmed_block_summary.end()) { const auto _callback = std::move(_iter->second.second); - vnx_queue_get_farmed_block_count.erase(_iter); + vnx_queue_get_farmed_block_summary.erase(_iter); _lock.unlock(); if(_callback) { _callback(_ex); @@ -2220,10 +2220,10 @@ int32_t NodeAsyncClient::vnx_purge_request(uint64_t _request_id, const vnx::exce break; } case 70: { - const auto _iter = vnx_queue_get_farmed_block_summary.find(_request_id); - if(_iter != vnx_queue_get_farmed_block_summary.end()) { + const auto _iter = vnx_queue_get_farmer_ranking.find(_request_id); + if(_iter != vnx_queue_get_farmer_ranking.end()) { const auto _callback = std::move(_iter->second.second); - vnx_queue_get_farmed_block_summary.erase(_iter); + vnx_queue_get_farmer_ranking.erase(_iter); _lock.unlock(); if(_callback) { _callback(_ex); @@ -3700,18 +3700,18 @@ int32_t NodeAsyncClient::vnx_callback_switch(uint64_t _request_id, std::shared_p break; } case 69: { - const auto _iter = vnx_queue_get_farmed_block_count.find(_request_id); - if(_iter == vnx_queue_get_farmed_block_count.end()) { + const auto _iter = vnx_queue_get_farmed_block_summary.find(_request_id); + if(_iter == vnx_queue_get_farmed_block_summary.end()) { throw std::runtime_error("NodeAsyncClient: callback not found"); } const auto _callback = std::move(_iter->second.first); - vnx_queue_get_farmed_block_count.erase(_iter); + vnx_queue_get_farmed_block_summary.erase(_iter); _lock.unlock(); if(_callback) { - if(auto _result = std::dynamic_pointer_cast(_value)) { + if(auto _result = std::dynamic_pointer_cast(_value)) { _callback(_result->_ret_0); } else if(_value && !_value->is_void()) { - _callback(_value->get_field_by_index(0).to>()); + _callback(_value->get_field_by_index(0).to<::mmx::farmed_block_summary_t>()); } else { throw std::logic_error("NodeAsyncClient: invalid return value"); } @@ -3719,18 +3719,18 @@ int32_t NodeAsyncClient::vnx_callback_switch(uint64_t _request_id, std::shared_p break; } case 70: { - const auto _iter = vnx_queue_get_farmed_block_summary.find(_request_id); - if(_iter == vnx_queue_get_farmed_block_summary.end()) { + const auto _iter = vnx_queue_get_farmer_ranking.find(_request_id); + if(_iter == vnx_queue_get_farmer_ranking.end()) { throw std::runtime_error("NodeAsyncClient: callback not found"); } const auto _callback = std::move(_iter->second.first); - vnx_queue_get_farmed_block_summary.erase(_iter); + vnx_queue_get_farmer_ranking.erase(_iter); _lock.unlock(); if(_callback) { - if(auto _result = std::dynamic_pointer_cast(_value)) { + if(auto _result = std::dynamic_pointer_cast(_value)) { _callback(_result->_ret_0); } else if(_value && !_value->is_void()) { - _callback(_value->get_field_by_index(0).to<::mmx::farmed_block_summary_t>()); + _callback(_value->get_field_by_index(0).to>>()); } else { throw std::logic_error("NodeAsyncClient: invalid return value"); } diff --git a/generated/src/NodeBase.cpp b/generated/src/NodeBase.cpp index 39dabbd82..aede3b48f 100644 --- a/generated/src/NodeBase.cpp +++ b/generated/src/NodeBase.cpp @@ -47,12 +47,12 @@ #include #include #include -#include -#include #include #include #include #include +#include +#include #include #include #include @@ -809,9 +809,9 @@ std::shared_ptr NodeBase::static_create_type_code() { type_code->methods[16] = ::mmx::Node_get_contracts_by::static_get_type_code(); type_code->methods[17] = ::mmx::Node_get_contracts_owned_by::static_get_type_code(); type_code->methods[18] = ::mmx::Node_get_exec_history::static_get_type_code(); - type_code->methods[19] = ::mmx::Node_get_farmed_block_count::static_get_type_code(); - type_code->methods[20] = ::mmx::Node_get_farmed_block_summary::static_get_type_code(); - type_code->methods[21] = ::mmx::Node_get_farmed_blocks::static_get_type_code(); + type_code->methods[19] = ::mmx::Node_get_farmed_block_summary::static_get_type_code(); + type_code->methods[20] = ::mmx::Node_get_farmed_blocks::static_get_type_code(); + type_code->methods[21] = ::mmx::Node_get_farmer_ranking::static_get_type_code(); type_code->methods[22] = ::mmx::Node_get_genesis_hash::static_get_type_code(); type_code->methods[23] = ::mmx::Node_get_header::static_get_type_code(); type_code->methods[24] = ::mmx::Node_get_header_at::static_get_type_code(); @@ -1330,12 +1330,6 @@ std::shared_ptr NodeBase::vnx_call_switch(std::shared_ptr_ret_0 = get_exec_history(_args->address, _args->limit, _args->recent); return _return_value; } - case 0xf48282ff0941a1f8ull: { - auto _args = std::static_pointer_cast(_method); - auto _return_value = ::mmx::Node_get_farmed_block_count_return::create(); - _return_value->_ret_0 = get_farmed_block_count(_args->since); - return _return_value; - } case 0xa6cda1247bd4f537ull: { auto _args = std::static_pointer_cast(_method); auto _return_value = ::mmx::Node_get_farmed_block_summary_return::create(); @@ -1348,6 +1342,12 @@ std::shared_ptr NodeBase::vnx_call_switch(std::shared_ptr_ret_0 = get_farmed_blocks(_args->farmer_keys, _args->full_blocks, _args->since, _args->limit); return _return_value; } + case 0x548d571d6384bd43ull: { + auto _args = std::static_pointer_cast(_method); + auto _return_value = ::mmx::Node_get_farmer_ranking_return::create(); + _return_value->_ret_0 = get_farmer_ranking(_args->limit); + return _return_value; + } case 0xbfab786cb64c5a3ull: { auto _args = std::static_pointer_cast(_method); auto _return_value = ::mmx::Node_get_genesis_hash_return::create(); diff --git a/generated/src/NodeClient.cpp b/generated/src/NodeClient.cpp index a946950f7..9d6e11429 100644 --- a/generated/src/NodeClient.cpp +++ b/generated/src/NodeClient.cpp @@ -46,12 +46,12 @@ #include #include #include -#include -#include #include #include #include #include +#include +#include #include #include #include @@ -1174,28 +1174,28 @@ std::vector> NodeClient::get_farmed_bl } } -std::map<::mmx::pubkey_t, uint32_t> NodeClient::get_farmed_block_count(const uint32_t& since) { - auto _method = ::mmx::Node_get_farmed_block_count::create(); +::mmx::farmed_block_summary_t NodeClient::get_farmed_block_summary(const std::vector<::mmx::pubkey_t>& farmer_keys, const uint32_t& since) { + auto _method = ::mmx::Node_get_farmed_block_summary::create(); + _method->farmer_keys = farmer_keys; _method->since = since; auto _return_value = vnx_request(_method, false); - if(auto _result = std::dynamic_pointer_cast(_return_value)) { + if(auto _result = std::dynamic_pointer_cast(_return_value)) { return _result->_ret_0; } else if(_return_value && !_return_value->is_void()) { - return _return_value->get_field_by_index(0).to>(); + return _return_value->get_field_by_index(0).to<::mmx::farmed_block_summary_t>(); } else { throw std::logic_error("NodeClient: invalid return value"); } } -::mmx::farmed_block_summary_t NodeClient::get_farmed_block_summary(const std::vector<::mmx::pubkey_t>& farmer_keys, const uint32_t& since) { - auto _method = ::mmx::Node_get_farmed_block_summary::create(); - _method->farmer_keys = farmer_keys; - _method->since = since; +std::vector> NodeClient::get_farmer_ranking(const int32_t& limit) { + auto _method = ::mmx::Node_get_farmer_ranking::create(); + _method->limit = limit; auto _return_value = vnx_request(_method, false); - if(auto _result = std::dynamic_pointer_cast(_return_value)) { + if(auto _result = std::dynamic_pointer_cast(_return_value)) { return _result->_ret_0; } else if(_return_value && !_return_value->is_void()) { - return _return_value->get_field_by_index(0).to<::mmx::farmed_block_summary_t>(); + return _return_value->get_field_by_index(0).to>>(); } else { throw std::logic_error("NodeClient: invalid return value"); } diff --git a/generated/src/Node_get_farmed_block_count.cpp b/generated/src/Node_get_farmed_block_count.cpp deleted file mode 100644 index 047201d50..000000000 --- a/generated/src/Node_get_farmed_block_count.cpp +++ /dev/null @@ -1,215 +0,0 @@ - -// AUTO GENERATED by vnxcppcodegen - -#include -#include -#include -#include - -#include - - -namespace mmx { - - -const vnx::Hash64 Node_get_farmed_block_count::VNX_TYPE_HASH(0xf48282ff0941a1f8ull); -const vnx::Hash64 Node_get_farmed_block_count::VNX_CODE_HASH(0x4a79779d9594d812ull); - -vnx::Hash64 Node_get_farmed_block_count::get_type_hash() const { - return VNX_TYPE_HASH; -} - -std::string Node_get_farmed_block_count::get_type_name() const { - return "mmx.Node.get_farmed_block_count"; -} - -const vnx::TypeCode* Node_get_farmed_block_count::get_type_code() const { - return mmx::vnx_native_type_code_Node_get_farmed_block_count; -} - -std::shared_ptr Node_get_farmed_block_count::create() { - return std::make_shared(); -} - -std::shared_ptr Node_get_farmed_block_count::clone() const { - return std::make_shared(*this); -} - -void Node_get_farmed_block_count::read(vnx::TypeInput& _in, const vnx::TypeCode* _type_code, const uint16_t* _code) { - vnx::read(_in, *this, _type_code, _code); -} - -void Node_get_farmed_block_count::write(vnx::TypeOutput& _out, const vnx::TypeCode* _type_code, const uint16_t* _code) const { - vnx::write(_out, *this, _type_code, _code); -} - -void Node_get_farmed_block_count::accept(vnx::Visitor& _visitor) const { - const vnx::TypeCode* _type_code = mmx::vnx_native_type_code_Node_get_farmed_block_count; - _visitor.type_begin(*_type_code); - _visitor.type_field(_type_code->fields[0], 0); vnx::accept(_visitor, since); - _visitor.type_end(*_type_code); -} - -void Node_get_farmed_block_count::write(std::ostream& _out) const { - _out << "{\"__type\": \"mmx.Node.get_farmed_block_count\""; - _out << ", \"since\": "; vnx::write(_out, since); - _out << "}"; -} - -void Node_get_farmed_block_count::read(std::istream& _in) { - if(auto _json = vnx::read_json(_in)) { - from_object(_json->to_object()); - } -} - -vnx::Object Node_get_farmed_block_count::to_object() const { - vnx::Object _object; - _object["__type"] = "mmx.Node.get_farmed_block_count"; - _object["since"] = since; - return _object; -} - -void Node_get_farmed_block_count::from_object(const vnx::Object& _object) { - for(const auto& _entry : _object.field) { - if(_entry.first == "since") { - _entry.second.to(since); - } - } -} - -vnx::Variant Node_get_farmed_block_count::get_field(const std::string& _name) const { - if(_name == "since") { - return vnx::Variant(since); - } - return vnx::Variant(); -} - -void Node_get_farmed_block_count::set_field(const std::string& _name, const vnx::Variant& _value) { - if(_name == "since") { - _value.to(since); - } -} - -/// \private -std::ostream& operator<<(std::ostream& _out, const Node_get_farmed_block_count& _value) { - _value.write(_out); - return _out; -} - -/// \private -std::istream& operator>>(std::istream& _in, Node_get_farmed_block_count& _value) { - _value.read(_in); - return _in; -} - -const vnx::TypeCode* Node_get_farmed_block_count::static_get_type_code() { - const vnx::TypeCode* type_code = vnx::get_type_code(VNX_TYPE_HASH); - if(!type_code) { - type_code = vnx::register_type_code(static_create_type_code()); - } - return type_code; -} - -std::shared_ptr Node_get_farmed_block_count::static_create_type_code() { - auto type_code = std::make_shared(); - type_code->name = "mmx.Node.get_farmed_block_count"; - type_code->type_hash = vnx::Hash64(0xf48282ff0941a1f8ull); - type_code->code_hash = vnx::Hash64(0x4a79779d9594d812ull); - type_code->is_native = true; - type_code->is_class = true; - type_code->is_method = true; - type_code->native_size = sizeof(::mmx::Node_get_farmed_block_count); - type_code->create_value = []() -> std::shared_ptr { return std::make_shared(); }; - type_code->is_const = true; - type_code->return_type = ::mmx::Node_get_farmed_block_count_return::static_get_type_code(); - type_code->fields.resize(1); - { - auto& field = type_code->fields[0]; - field.data_size = 4; - field.name = "since"; - field.code = {3}; - } - type_code->permission = "mmx.permission_e.PUBLIC"; - type_code->build(); - return type_code; -} - - -} // namespace mmx - - -namespace vnx { - -void read(TypeInput& in, ::mmx::Node_get_farmed_block_count& value, const TypeCode* type_code, const uint16_t* code) { - if(code) { - switch(code[0]) { - case CODE_OBJECT: - case CODE_ALT_OBJECT: { - Object tmp; - vnx::read(in, tmp, type_code, code); - value.from_object(tmp); - return; - } - case CODE_DYNAMIC: - case CODE_ALT_DYNAMIC: - vnx::read_dynamic(in, value); - return; - } - } - if(!type_code) { - vnx::skip(in, type_code, code); - return; - } - if(code) { - switch(code[0]) { - case CODE_STRUCT: type_code = type_code->depends[code[1]]; break; - case CODE_ALT_STRUCT: type_code = type_code->depends[vnx::flip_bytes(code[1])]; break; - default: { - vnx::skip(in, type_code, code); - return; - } - } - } - const auto* const _buf = in.read(type_code->total_field_size); - if(type_code->is_matched) { - if(const auto* const _field = type_code->field_map[0]) { - vnx::read_value(_buf + _field->offset, value.since, _field->code.data()); - } - } - for(const auto* _field : type_code->ext_fields) { - switch(_field->native_index) { - default: vnx::skip(in, type_code, _field->code.data()); - } - } -} - -void write(TypeOutput& out, const ::mmx::Node_get_farmed_block_count& value, const TypeCode* type_code, const uint16_t* code) { - if(code && code[0] == CODE_OBJECT) { - vnx::write(out, value.to_object(), nullptr, code); - return; - } - if(!type_code || (code && code[0] == CODE_ANY)) { - type_code = mmx::vnx_native_type_code_Node_get_farmed_block_count; - out.write_type_code(type_code); - vnx::write_class_header<::mmx::Node_get_farmed_block_count>(out); - } - else if(code && code[0] == CODE_STRUCT) { - type_code = type_code->depends[code[1]]; - } - auto* const _buf = out.write(4); - vnx::write_value(_buf + 0, value.since); -} - -void read(std::istream& in, ::mmx::Node_get_farmed_block_count& value) { - value.read(in); -} - -void write(std::ostream& out, const ::mmx::Node_get_farmed_block_count& value) { - value.write(out); -} - -void accept(Visitor& visitor, const ::mmx::Node_get_farmed_block_count& value) { - value.accept(visitor); -} - -} // vnx diff --git a/generated/src/Node_get_farmed_block_count_return.cpp b/generated/src/Node_get_farmed_block_count_return.cpp deleted file mode 100644 index a8032dcea..000000000 --- a/generated/src/Node_get_farmed_block_count_return.cpp +++ /dev/null @@ -1,209 +0,0 @@ - -// AUTO GENERATED by vnxcppcodegen - -#include -#include -#include -#include - -#include - - -namespace mmx { - - -const vnx::Hash64 Node_get_farmed_block_count_return::VNX_TYPE_HASH(0xd1a45ae62f564f3eull); -const vnx::Hash64 Node_get_farmed_block_count_return::VNX_CODE_HASH(0xe478d4950200de36ull); - -vnx::Hash64 Node_get_farmed_block_count_return::get_type_hash() const { - return VNX_TYPE_HASH; -} - -std::string Node_get_farmed_block_count_return::get_type_name() const { - return "mmx.Node.get_farmed_block_count.return"; -} - -const vnx::TypeCode* Node_get_farmed_block_count_return::get_type_code() const { - return mmx::vnx_native_type_code_Node_get_farmed_block_count_return; -} - -std::shared_ptr Node_get_farmed_block_count_return::create() { - return std::make_shared(); -} - -std::shared_ptr Node_get_farmed_block_count_return::clone() const { - return std::make_shared(*this); -} - -void Node_get_farmed_block_count_return::read(vnx::TypeInput& _in, const vnx::TypeCode* _type_code, const uint16_t* _code) { - vnx::read(_in, *this, _type_code, _code); -} - -void Node_get_farmed_block_count_return::write(vnx::TypeOutput& _out, const vnx::TypeCode* _type_code, const uint16_t* _code) const { - vnx::write(_out, *this, _type_code, _code); -} - -void Node_get_farmed_block_count_return::accept(vnx::Visitor& _visitor) const { - const vnx::TypeCode* _type_code = mmx::vnx_native_type_code_Node_get_farmed_block_count_return; - _visitor.type_begin(*_type_code); - _visitor.type_field(_type_code->fields[0], 0); vnx::accept(_visitor, _ret_0); - _visitor.type_end(*_type_code); -} - -void Node_get_farmed_block_count_return::write(std::ostream& _out) const { - _out << "{\"__type\": \"mmx.Node.get_farmed_block_count.return\""; - _out << ", \"_ret_0\": "; vnx::write(_out, _ret_0); - _out << "}"; -} - -void Node_get_farmed_block_count_return::read(std::istream& _in) { - if(auto _json = vnx::read_json(_in)) { - from_object(_json->to_object()); - } -} - -vnx::Object Node_get_farmed_block_count_return::to_object() const { - vnx::Object _object; - _object["__type"] = "mmx.Node.get_farmed_block_count.return"; - _object["_ret_0"] = _ret_0; - return _object; -} - -void Node_get_farmed_block_count_return::from_object(const vnx::Object& _object) { - for(const auto& _entry : _object.field) { - if(_entry.first == "_ret_0") { - _entry.second.to(_ret_0); - } - } -} - -vnx::Variant Node_get_farmed_block_count_return::get_field(const std::string& _name) const { - if(_name == "_ret_0") { - return vnx::Variant(_ret_0); - } - return vnx::Variant(); -} - -void Node_get_farmed_block_count_return::set_field(const std::string& _name, const vnx::Variant& _value) { - if(_name == "_ret_0") { - _value.to(_ret_0); - } -} - -/// \private -std::ostream& operator<<(std::ostream& _out, const Node_get_farmed_block_count_return& _value) { - _value.write(_out); - return _out; -} - -/// \private -std::istream& operator>>(std::istream& _in, Node_get_farmed_block_count_return& _value) { - _value.read(_in); - return _in; -} - -const vnx::TypeCode* Node_get_farmed_block_count_return::static_get_type_code() { - const vnx::TypeCode* type_code = vnx::get_type_code(VNX_TYPE_HASH); - if(!type_code) { - type_code = vnx::register_type_code(static_create_type_code()); - } - return type_code; -} - -std::shared_ptr Node_get_farmed_block_count_return::static_create_type_code() { - auto type_code = std::make_shared(); - type_code->name = "mmx.Node.get_farmed_block_count.return"; - type_code->type_hash = vnx::Hash64(0xd1a45ae62f564f3eull); - type_code->code_hash = vnx::Hash64(0xe478d4950200de36ull); - type_code->is_native = true; - type_code->is_class = true; - type_code->is_return = true; - type_code->native_size = sizeof(::mmx::Node_get_farmed_block_count_return); - type_code->create_value = []() -> std::shared_ptr { return std::make_shared(); }; - type_code->fields.resize(1); - { - auto& field = type_code->fields[0]; - field.is_extended = true; - field.name = "_ret_0"; - field.code = {13, 5, 11, 33, 1, 3}; - } - type_code->build(); - return type_code; -} - - -} // namespace mmx - - -namespace vnx { - -void read(TypeInput& in, ::mmx::Node_get_farmed_block_count_return& value, const TypeCode* type_code, const uint16_t* code) { - if(code) { - switch(code[0]) { - case CODE_OBJECT: - case CODE_ALT_OBJECT: { - Object tmp; - vnx::read(in, tmp, type_code, code); - value.from_object(tmp); - return; - } - case CODE_DYNAMIC: - case CODE_ALT_DYNAMIC: - vnx::read_dynamic(in, value); - return; - } - } - if(!type_code) { - vnx::skip(in, type_code, code); - return; - } - if(code) { - switch(code[0]) { - case CODE_STRUCT: type_code = type_code->depends[code[1]]; break; - case CODE_ALT_STRUCT: type_code = type_code->depends[vnx::flip_bytes(code[1])]; break; - default: { - vnx::skip(in, type_code, code); - return; - } - } - } - in.read(type_code->total_field_size); - if(type_code->is_matched) { - } - for(const auto* _field : type_code->ext_fields) { - switch(_field->native_index) { - case 0: vnx::read(in, value._ret_0, type_code, _field->code.data()); break; - default: vnx::skip(in, type_code, _field->code.data()); - } - } -} - -void write(TypeOutput& out, const ::mmx::Node_get_farmed_block_count_return& value, const TypeCode* type_code, const uint16_t* code) { - if(code && code[0] == CODE_OBJECT) { - vnx::write(out, value.to_object(), nullptr, code); - return; - } - if(!type_code || (code && code[0] == CODE_ANY)) { - type_code = mmx::vnx_native_type_code_Node_get_farmed_block_count_return; - out.write_type_code(type_code); - vnx::write_class_header<::mmx::Node_get_farmed_block_count_return>(out); - } - else if(code && code[0] == CODE_STRUCT) { - type_code = type_code->depends[code[1]]; - } - vnx::write(out, value._ret_0, type_code, type_code->fields[0].code.data()); -} - -void read(std::istream& in, ::mmx::Node_get_farmed_block_count_return& value) { - value.read(in); -} - -void write(std::ostream& out, const ::mmx::Node_get_farmed_block_count_return& value) { - value.write(out); -} - -void accept(Visitor& visitor, const ::mmx::Node_get_farmed_block_count_return& value) { - value.accept(visitor); -} - -} // vnx diff --git a/generated/src/Node_get_farmer_ranking.cpp b/generated/src/Node_get_farmer_ranking.cpp new file mode 100644 index 000000000..78acd60d5 --- /dev/null +++ b/generated/src/Node_get_farmer_ranking.cpp @@ -0,0 +1,216 @@ + +// AUTO GENERATED by vnxcppcodegen + +#include +#include +#include +#include + +#include + + +namespace mmx { + + +const vnx::Hash64 Node_get_farmer_ranking::VNX_TYPE_HASH(0x548d571d6384bd43ull); +const vnx::Hash64 Node_get_farmer_ranking::VNX_CODE_HASH(0xaacf04386b3588f1ull); + +vnx::Hash64 Node_get_farmer_ranking::get_type_hash() const { + return VNX_TYPE_HASH; +} + +std::string Node_get_farmer_ranking::get_type_name() const { + return "mmx.Node.get_farmer_ranking"; +} + +const vnx::TypeCode* Node_get_farmer_ranking::get_type_code() const { + return mmx::vnx_native_type_code_Node_get_farmer_ranking; +} + +std::shared_ptr Node_get_farmer_ranking::create() { + return std::make_shared(); +} + +std::shared_ptr Node_get_farmer_ranking::clone() const { + return std::make_shared(*this); +} + +void Node_get_farmer_ranking::read(vnx::TypeInput& _in, const vnx::TypeCode* _type_code, const uint16_t* _code) { + vnx::read(_in, *this, _type_code, _code); +} + +void Node_get_farmer_ranking::write(vnx::TypeOutput& _out, const vnx::TypeCode* _type_code, const uint16_t* _code) const { + vnx::write(_out, *this, _type_code, _code); +} + +void Node_get_farmer_ranking::accept(vnx::Visitor& _visitor) const { + const vnx::TypeCode* _type_code = mmx::vnx_native_type_code_Node_get_farmer_ranking; + _visitor.type_begin(*_type_code); + _visitor.type_field(_type_code->fields[0], 0); vnx::accept(_visitor, limit); + _visitor.type_end(*_type_code); +} + +void Node_get_farmer_ranking::write(std::ostream& _out) const { + _out << "{\"__type\": \"mmx.Node.get_farmer_ranking\""; + _out << ", \"limit\": "; vnx::write(_out, limit); + _out << "}"; +} + +void Node_get_farmer_ranking::read(std::istream& _in) { + if(auto _json = vnx::read_json(_in)) { + from_object(_json->to_object()); + } +} + +vnx::Object Node_get_farmer_ranking::to_object() const { + vnx::Object _object; + _object["__type"] = "mmx.Node.get_farmer_ranking"; + _object["limit"] = limit; + return _object; +} + +void Node_get_farmer_ranking::from_object(const vnx::Object& _object) { + for(const auto& _entry : _object.field) { + if(_entry.first == "limit") { + _entry.second.to(limit); + } + } +} + +vnx::Variant Node_get_farmer_ranking::get_field(const std::string& _name) const { + if(_name == "limit") { + return vnx::Variant(limit); + } + return vnx::Variant(); +} + +void Node_get_farmer_ranking::set_field(const std::string& _name, const vnx::Variant& _value) { + if(_name == "limit") { + _value.to(limit); + } +} + +/// \private +std::ostream& operator<<(std::ostream& _out, const Node_get_farmer_ranking& _value) { + _value.write(_out); + return _out; +} + +/// \private +std::istream& operator>>(std::istream& _in, Node_get_farmer_ranking& _value) { + _value.read(_in); + return _in; +} + +const vnx::TypeCode* Node_get_farmer_ranking::static_get_type_code() { + const vnx::TypeCode* type_code = vnx::get_type_code(VNX_TYPE_HASH); + if(!type_code) { + type_code = vnx::register_type_code(static_create_type_code()); + } + return type_code; +} + +std::shared_ptr Node_get_farmer_ranking::static_create_type_code() { + auto type_code = std::make_shared(); + type_code->name = "mmx.Node.get_farmer_ranking"; + type_code->type_hash = vnx::Hash64(0x548d571d6384bd43ull); + type_code->code_hash = vnx::Hash64(0xaacf04386b3588f1ull); + type_code->is_native = true; + type_code->is_class = true; + type_code->is_method = true; + type_code->native_size = sizeof(::mmx::Node_get_farmer_ranking); + type_code->create_value = []() -> std::shared_ptr { return std::make_shared(); }; + type_code->is_const = true; + type_code->return_type = ::mmx::Node_get_farmer_ranking_return::static_get_type_code(); + type_code->fields.resize(1); + { + auto& field = type_code->fields[0]; + field.data_size = 4; + field.name = "limit"; + field.value = vnx::to_string(-1); + field.code = {7}; + } + type_code->permission = "mmx.permission_e.PUBLIC"; + type_code->build(); + return type_code; +} + + +} // namespace mmx + + +namespace vnx { + +void read(TypeInput& in, ::mmx::Node_get_farmer_ranking& value, const TypeCode* type_code, const uint16_t* code) { + if(code) { + switch(code[0]) { + case CODE_OBJECT: + case CODE_ALT_OBJECT: { + Object tmp; + vnx::read(in, tmp, type_code, code); + value.from_object(tmp); + return; + } + case CODE_DYNAMIC: + case CODE_ALT_DYNAMIC: + vnx::read_dynamic(in, value); + return; + } + } + if(!type_code) { + vnx::skip(in, type_code, code); + return; + } + if(code) { + switch(code[0]) { + case CODE_STRUCT: type_code = type_code->depends[code[1]]; break; + case CODE_ALT_STRUCT: type_code = type_code->depends[vnx::flip_bytes(code[1])]; break; + default: { + vnx::skip(in, type_code, code); + return; + } + } + } + const auto* const _buf = in.read(type_code->total_field_size); + if(type_code->is_matched) { + if(const auto* const _field = type_code->field_map[0]) { + vnx::read_value(_buf + _field->offset, value.limit, _field->code.data()); + } + } + for(const auto* _field : type_code->ext_fields) { + switch(_field->native_index) { + default: vnx::skip(in, type_code, _field->code.data()); + } + } +} + +void write(TypeOutput& out, const ::mmx::Node_get_farmer_ranking& value, const TypeCode* type_code, const uint16_t* code) { + if(code && code[0] == CODE_OBJECT) { + vnx::write(out, value.to_object(), nullptr, code); + return; + } + if(!type_code || (code && code[0] == CODE_ANY)) { + type_code = mmx::vnx_native_type_code_Node_get_farmer_ranking; + out.write_type_code(type_code); + vnx::write_class_header<::mmx::Node_get_farmer_ranking>(out); + } + else if(code && code[0] == CODE_STRUCT) { + type_code = type_code->depends[code[1]]; + } + auto* const _buf = out.write(4); + vnx::write_value(_buf + 0, value.limit); +} + +void read(std::istream& in, ::mmx::Node_get_farmer_ranking& value) { + value.read(in); +} + +void write(std::ostream& out, const ::mmx::Node_get_farmer_ranking& value) { + value.write(out); +} + +void accept(Visitor& visitor, const ::mmx::Node_get_farmer_ranking& value) { + value.accept(visitor); +} + +} // vnx diff --git a/generated/src/Node_get_farmer_ranking_return.cpp b/generated/src/Node_get_farmer_ranking_return.cpp new file mode 100644 index 000000000..a9d04a7d1 --- /dev/null +++ b/generated/src/Node_get_farmer_ranking_return.cpp @@ -0,0 +1,209 @@ + +// AUTO GENERATED by vnxcppcodegen + +#include +#include +#include +#include + +#include + + +namespace mmx { + + +const vnx::Hash64 Node_get_farmer_ranking_return::VNX_TYPE_HASH(0xb74e7f1a70a60ecdull); +const vnx::Hash64 Node_get_farmer_ranking_return::VNX_CODE_HASH(0xadc8868359295353ull); + +vnx::Hash64 Node_get_farmer_ranking_return::get_type_hash() const { + return VNX_TYPE_HASH; +} + +std::string Node_get_farmer_ranking_return::get_type_name() const { + return "mmx.Node.get_farmer_ranking.return"; +} + +const vnx::TypeCode* Node_get_farmer_ranking_return::get_type_code() const { + return mmx::vnx_native_type_code_Node_get_farmer_ranking_return; +} + +std::shared_ptr Node_get_farmer_ranking_return::create() { + return std::make_shared(); +} + +std::shared_ptr Node_get_farmer_ranking_return::clone() const { + return std::make_shared(*this); +} + +void Node_get_farmer_ranking_return::read(vnx::TypeInput& _in, const vnx::TypeCode* _type_code, const uint16_t* _code) { + vnx::read(_in, *this, _type_code, _code); +} + +void Node_get_farmer_ranking_return::write(vnx::TypeOutput& _out, const vnx::TypeCode* _type_code, const uint16_t* _code) const { + vnx::write(_out, *this, _type_code, _code); +} + +void Node_get_farmer_ranking_return::accept(vnx::Visitor& _visitor) const { + const vnx::TypeCode* _type_code = mmx::vnx_native_type_code_Node_get_farmer_ranking_return; + _visitor.type_begin(*_type_code); + _visitor.type_field(_type_code->fields[0], 0); vnx::accept(_visitor, _ret_0); + _visitor.type_end(*_type_code); +} + +void Node_get_farmer_ranking_return::write(std::ostream& _out) const { + _out << "{\"__type\": \"mmx.Node.get_farmer_ranking.return\""; + _out << ", \"_ret_0\": "; vnx::write(_out, _ret_0); + _out << "}"; +} + +void Node_get_farmer_ranking_return::read(std::istream& _in) { + if(auto _json = vnx::read_json(_in)) { + from_object(_json->to_object()); + } +} + +vnx::Object Node_get_farmer_ranking_return::to_object() const { + vnx::Object _object; + _object["__type"] = "mmx.Node.get_farmer_ranking.return"; + _object["_ret_0"] = _ret_0; + return _object; +} + +void Node_get_farmer_ranking_return::from_object(const vnx::Object& _object) { + for(const auto& _entry : _object.field) { + if(_entry.first == "_ret_0") { + _entry.second.to(_ret_0); + } + } +} + +vnx::Variant Node_get_farmer_ranking_return::get_field(const std::string& _name) const { + if(_name == "_ret_0") { + return vnx::Variant(_ret_0); + } + return vnx::Variant(); +} + +void Node_get_farmer_ranking_return::set_field(const std::string& _name, const vnx::Variant& _value) { + if(_name == "_ret_0") { + _value.to(_ret_0); + } +} + +/// \private +std::ostream& operator<<(std::ostream& _out, const Node_get_farmer_ranking_return& _value) { + _value.write(_out); + return _out; +} + +/// \private +std::istream& operator>>(std::istream& _in, Node_get_farmer_ranking_return& _value) { + _value.read(_in); + return _in; +} + +const vnx::TypeCode* Node_get_farmer_ranking_return::static_get_type_code() { + const vnx::TypeCode* type_code = vnx::get_type_code(VNX_TYPE_HASH); + if(!type_code) { + type_code = vnx::register_type_code(static_create_type_code()); + } + return type_code; +} + +std::shared_ptr Node_get_farmer_ranking_return::static_create_type_code() { + auto type_code = std::make_shared(); + type_code->name = "mmx.Node.get_farmer_ranking.return"; + type_code->type_hash = vnx::Hash64(0xb74e7f1a70a60ecdull); + type_code->code_hash = vnx::Hash64(0xadc8868359295353ull); + type_code->is_native = true; + type_code->is_class = true; + type_code->is_return = true; + type_code->native_size = sizeof(::mmx::Node_get_farmer_ranking_return); + type_code->create_value = []() -> std::shared_ptr { return std::make_shared(); }; + type_code->fields.resize(1); + { + auto& field = type_code->fields[0]; + field.is_extended = true; + field.name = "_ret_0"; + field.code = {12, 23, 2, 4, 7, 11, 33, 1, 3}; + } + type_code->build(); + return type_code; +} + + +} // namespace mmx + + +namespace vnx { + +void read(TypeInput& in, ::mmx::Node_get_farmer_ranking_return& value, const TypeCode* type_code, const uint16_t* code) { + if(code) { + switch(code[0]) { + case CODE_OBJECT: + case CODE_ALT_OBJECT: { + Object tmp; + vnx::read(in, tmp, type_code, code); + value.from_object(tmp); + return; + } + case CODE_DYNAMIC: + case CODE_ALT_DYNAMIC: + vnx::read_dynamic(in, value); + return; + } + } + if(!type_code) { + vnx::skip(in, type_code, code); + return; + } + if(code) { + switch(code[0]) { + case CODE_STRUCT: type_code = type_code->depends[code[1]]; break; + case CODE_ALT_STRUCT: type_code = type_code->depends[vnx::flip_bytes(code[1])]; break; + default: { + vnx::skip(in, type_code, code); + return; + } + } + } + in.read(type_code->total_field_size); + if(type_code->is_matched) { + } + for(const auto* _field : type_code->ext_fields) { + switch(_field->native_index) { + case 0: vnx::read(in, value._ret_0, type_code, _field->code.data()); break; + default: vnx::skip(in, type_code, _field->code.data()); + } + } +} + +void write(TypeOutput& out, const ::mmx::Node_get_farmer_ranking_return& value, const TypeCode* type_code, const uint16_t* code) { + if(code && code[0] == CODE_OBJECT) { + vnx::write(out, value.to_object(), nullptr, code); + return; + } + if(!type_code || (code && code[0] == CODE_ANY)) { + type_code = mmx::vnx_native_type_code_Node_get_farmer_ranking_return; + out.write_type_code(type_code); + vnx::write_class_header<::mmx::Node_get_farmer_ranking_return>(out); + } + else if(code && code[0] == CODE_STRUCT) { + type_code = type_code->depends[code[1]]; + } + vnx::write(out, value._ret_0, type_code, type_code->fields[0].code.data()); +} + +void read(std::istream& in, ::mmx::Node_get_farmer_ranking_return& value) { + value.read(in); +} + +void write(std::ostream& out, const ::mmx::Node_get_farmer_ranking_return& value) { + value.write(out); +} + +void accept(Visitor& visitor, const ::mmx::Node_get_farmer_ranking_return& value) { + value.accept(visitor); +} + +} // vnx diff --git a/generated/src/package.cpp b/generated/src/package.cpp index 6507fa0fd..7e758ce52 100644 --- a/generated/src/package.cpp +++ b/generated/src/package.cpp @@ -70,12 +70,12 @@ #include #include #include -#include -#include #include #include #include #include +#include +#include #include #include #include @@ -1186,30 +1186,6 @@ void type<::mmx::Node_get_exec_history_return>::create_dynamic_code(std::vector< code.push_back(CODE_OBJECT); } -const TypeCode* type<::mmx::Node_get_farmed_block_count>::get_type_code() { - return mmx::vnx_native_type_code_Node_get_farmed_block_count; -} - -void type<::mmx::Node_get_farmed_block_count>::create_dynamic_code(std::vector& code) { - create_dynamic_code(code, ::mmx::Node_get_farmed_block_count()); -} - -void type<::mmx::Node_get_farmed_block_count>::create_dynamic_code(std::vector& code, const ::mmx::Node_get_farmed_block_count& value, bool special) { - code.push_back(CODE_OBJECT); -} - -const TypeCode* type<::mmx::Node_get_farmed_block_count_return>::get_type_code() { - return mmx::vnx_native_type_code_Node_get_farmed_block_count_return; -} - -void type<::mmx::Node_get_farmed_block_count_return>::create_dynamic_code(std::vector& code) { - create_dynamic_code(code, ::mmx::Node_get_farmed_block_count_return()); -} - -void type<::mmx::Node_get_farmed_block_count_return>::create_dynamic_code(std::vector& code, const ::mmx::Node_get_farmed_block_count_return& value, bool special) { - code.push_back(CODE_OBJECT); -} - const TypeCode* type<::mmx::Node_get_farmed_block_summary>::get_type_code() { return mmx::vnx_native_type_code_Node_get_farmed_block_summary; } @@ -1258,6 +1234,30 @@ void type<::mmx::Node_get_farmed_blocks_return>::create_dynamic_code(std::vector code.push_back(CODE_OBJECT); } +const TypeCode* type<::mmx::Node_get_farmer_ranking>::get_type_code() { + return mmx::vnx_native_type_code_Node_get_farmer_ranking; +} + +void type<::mmx::Node_get_farmer_ranking>::create_dynamic_code(std::vector& code) { + create_dynamic_code(code, ::mmx::Node_get_farmer_ranking()); +} + +void type<::mmx::Node_get_farmer_ranking>::create_dynamic_code(std::vector& code, const ::mmx::Node_get_farmer_ranking& value, bool special) { + code.push_back(CODE_OBJECT); +} + +const TypeCode* type<::mmx::Node_get_farmer_ranking_return>::get_type_code() { + return mmx::vnx_native_type_code_Node_get_farmer_ranking_return; +} + +void type<::mmx::Node_get_farmer_ranking_return>::create_dynamic_code(std::vector& code) { + create_dynamic_code(code, ::mmx::Node_get_farmer_ranking_return()); +} + +void type<::mmx::Node_get_farmer_ranking_return>::create_dynamic_code(std::vector& code, const ::mmx::Node_get_farmer_ranking_return& value, bool special) { + code.push_back(CODE_OBJECT); +} + const TypeCode* type<::mmx::Node_get_genesis_hash>::get_type_code() { return mmx::vnx_native_type_code_Node_get_genesis_hash; } @@ -5027,12 +5027,12 @@ void register_all_types() { vnx::register_type_code(::mmx::Node_get_contracts_owned_by_return::static_create_type_code()); vnx::register_type_code(::mmx::Node_get_exec_history::static_create_type_code()); vnx::register_type_code(::mmx::Node_get_exec_history_return::static_create_type_code()); - vnx::register_type_code(::mmx::Node_get_farmed_block_count::static_create_type_code()); - vnx::register_type_code(::mmx::Node_get_farmed_block_count_return::static_create_type_code()); vnx::register_type_code(::mmx::Node_get_farmed_block_summary::static_create_type_code()); vnx::register_type_code(::mmx::Node_get_farmed_block_summary_return::static_create_type_code()); vnx::register_type_code(::mmx::Node_get_farmed_blocks::static_create_type_code()); vnx::register_type_code(::mmx::Node_get_farmed_blocks_return::static_create_type_code()); + vnx::register_type_code(::mmx::Node_get_farmer_ranking::static_create_type_code()); + vnx::register_type_code(::mmx::Node_get_farmer_ranking_return::static_create_type_code()); vnx::register_type_code(::mmx::Node_get_genesis_hash::static_create_type_code()); vnx::register_type_code(::mmx::Node_get_genesis_hash_return::static_create_type_code()); vnx::register_type_code(::mmx::Node_get_header::static_create_type_code()); @@ -5412,12 +5412,12 @@ const vnx::TypeCode* const vnx_native_type_code_Node_get_contracts_owned_by = vn const vnx::TypeCode* const vnx_native_type_code_Node_get_contracts_owned_by_return = vnx::get_type_code(vnx::Hash64(0x3b9dbec85ee482bfull)); const vnx::TypeCode* const vnx_native_type_code_Node_get_exec_history = vnx::get_type_code(vnx::Hash64(0xf17c2f67bedb9df6ull)); const vnx::TypeCode* const vnx_native_type_code_Node_get_exec_history_return = vnx::get_type_code(vnx::Hash64(0x17079d265ede8785ull)); -const vnx::TypeCode* const vnx_native_type_code_Node_get_farmed_block_count = vnx::get_type_code(vnx::Hash64(0xf48282ff0941a1f8ull)); -const vnx::TypeCode* const vnx_native_type_code_Node_get_farmed_block_count_return = vnx::get_type_code(vnx::Hash64(0xd1a45ae62f564f3eull)); const vnx::TypeCode* const vnx_native_type_code_Node_get_farmed_block_summary = vnx::get_type_code(vnx::Hash64(0xa6cda1247bd4f537ull)); const vnx::TypeCode* const vnx_native_type_code_Node_get_farmed_block_summary_return = vnx::get_type_code(vnx::Hash64(0xef3dcd5d4d2a58e3ull)); const vnx::TypeCode* const vnx_native_type_code_Node_get_farmed_blocks = vnx::get_type_code(vnx::Hash64(0xfc412d06ff25542eull)); const vnx::TypeCode* const vnx_native_type_code_Node_get_farmed_blocks_return = vnx::get_type_code(vnx::Hash64(0xe8697ffd381616baull)); +const vnx::TypeCode* const vnx_native_type_code_Node_get_farmer_ranking = vnx::get_type_code(vnx::Hash64(0x548d571d6384bd43ull)); +const vnx::TypeCode* const vnx_native_type_code_Node_get_farmer_ranking_return = vnx::get_type_code(vnx::Hash64(0xb74e7f1a70a60ecdull)); const vnx::TypeCode* const vnx_native_type_code_Node_get_genesis_hash = vnx::get_type_code(vnx::Hash64(0xbfab786cb64c5a3ull)); const vnx::TypeCode* const vnx_native_type_code_Node_get_genesis_hash_return = vnx::get_type_code(vnx::Hash64(0x5c5ea53e3163fd5ull)); const vnx::TypeCode* const vnx_native_type_code_Node_get_header = vnx::get_type_code(vnx::Hash64(0xf17a5d0c180db198ull));