struct
MoveInstantaneousRewardContents of a move instantaneous rewards certificate.
CDDL description:
move_instantaneous_reward = [ 0 / 1, { * stake_credential => coin } ] ; The first field determines where the funds are drawn from. ; 0 denotes the reserves, 1 denotes the treasury.
Base classes
- struct cardano::ArraySerializable
- Virtual struct defining CBOR array serializability.
Public types
- enum RewardSource { reserves = 0, treasury = 1 }
- The source of the rewards.
Public functions
-
void deserialize(std::
span<const uint8_t> bytes) - Deserialize CBOR byte vector.
- auto deserializer(const cppbor::Array& data) → void final virtual
- Populate the object from the CBOR data.
-
auto serialize() const → std::
vector<uint8_t> - Serialize the object as a CBOR byte vector.
- auto serializer() const → cppbor::Array final virtual
- Populate a CBOR object for serialization.
Public variables
- RewardSource source
- Source of the rewards.
-
std::
vector<std:: pair<StakeCredential, Coin>> stake_credentials - Map of credentials to amount of rewards.
Function documentation
void final cardano:: shelley:: MoveInstantaneousReward:: deserializer(const cppbor::Array& data) virtual
Populate the object from the CBOR data.
Parameters | |
---|---|
data | CBOR array object. |
cppbor::Array final cardano:: shelley:: MoveInstantaneousReward:: serializer() const virtual
Populate a CBOR object for serialization.
Returns | CBOR array object. |
---|