Wire Sysio
Wire Sysion 1.0.0
Loading...
Searching...
No Matches
producer_schedule.cpp
Go to the documentation of this file.
1
#include <
sysio/chain/producer_schedule.hpp
>
2
3
namespace
sysio
{
namespace
chain {
4
5
fc::variant
producer_authority::get_abi_variant
()
const
{
6
auto
authority_variant = std::visit([](
const
auto
&
a
){
7
fc::variant
value
;
8
fc::to_variant
(
a
,
value
);
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
18
return
fc::mutable_variant_object
()
19
(
"producer_name"
,
producer_name
)
20
(
"authority"
, std::move(authority_variant));
21
}
22
23
} }
fc::mutable_variant_object
An order-preserving dictionary of variants.
Definition
variant_object.hpp:118
fc::variant
stores null, int64, uint64, double, bool, string, std::vector<variant>, and variant_object's.
Definition
variant.hpp:191
fc::variants
std::vector< fc::variant > variants
Definition
variant.hpp:173
fc::to_variant
void to_variant(const sysio::chain::shared_public_key &var, fc::variant &vo)
Definition
authority.cpp:4
sysio
Definition
abi_serializer.cpp:8
value
#define value
Definition
pkcs11.h:157
a
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Definition
pointer.h:1181
producer_schedule.hpp
sysio::chain::producer_authority::authority
block_signing_authority authority
Definition
producer_schedule.hpp:165
sysio::chain::producer_authority::producer_name
name producer_name
Definition
producer_schedule.hpp:164
sysio::chain::producer_authority::get_abi_variant
fc::variant get_abi_variant() const
Definition
producer_schedule.cpp:5
libraries
chain
producer_schedule.cpp
Generated by
1.12.0