Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
producer_schedule.cpp
Go to the documentation of this file.
2
3namespace sysio { namespace chain {
4
6 auto authority_variant = std::visit([](const auto& a){
9
10 fc::variant type = std::string(std::decay_t<decltype(a)>::abi_type_name());
11
12 return fc::variants {
13 std::move(type),
14 std::move(value)
15 };
16 }, authority);
17
19 ("producer_name", producer_name)
20 ("authority", std::move(authority_variant));
21}
22
23} }
An order-preserving dictionary of variants.
stores null, int64, uint64, double, bool, string, std::vector<variant>, and variant_object's.
Definition variant.hpp:191
std::vector< fc::variant > variants
Definition variant.hpp:173
void to_variant(const sysio::chain::shared_public_key &var, fc::variant &vo)
Definition authority.cpp:4
#define value
Definition pkcs11.h:157
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Definition pointer.h:1181