FastMM documentation
FastMM C++ API 0.14.0
Public headers, tier 1 and tier 2
Loading...
Searching...
No Matches
fastmm::ControlTransferMsg Struct Reference

ControlCommand::Transfer: one step of a pool treasury's transfer (core/treasury.hpp), on the treasury's ring into the engine, which journals it. More...

#include <fastmm/core/messages.hpp>

Public Attributes

EventHeader hdr
 
ControlCommand command
 
std::uint8_t event
 TreasuryEventKind: planned (dry run), sent, done, failed, timed out, ...
 
std::uint8_t state
 TransferState of the venue's answer; Unknown without one.
 
VenueId from
 
VenueId to
 
std::uint8_t flags
 kHeld
 
std::uint8_t pad0_ [2]
 
std::uint64_t arg
 
FixedString< 8 > asset
 80
 
FixedString< 31 > client_id
 89
 
FixedString< 23 > venue_ref
 121: the venue's id of the transfer
 
std::uint8_t pad1_ [7]
 145
 
std::uint64_t seq
 152: the treasury's counter of the transfer
 
std::int32_t code
 160: the venue's error code, 0 without one
 
std::uint16_t http_status
 164
 
std::uint8_t pad_ [26]
 166 -> 192
 

Static Public Attributes

static constexpr std::uint8_t kHeld = 1
 
static constexpr std::uint8_t kLane = 2
 

Detailed Description

ControlCommand::Transfer: one step of a pool treasury's transfer (core/treasury.hpp), on the treasury's ring into the engine, which journals it.

hdr.venue is the pool's primary; arg the amount (raw Notional) of asset moved from account from to account to.

With kHeld (the treasury's reserve = true) the engine keeps the payout out of the payer's balance (BalanceBook::reserve), by seq: a Reserve holds at most the payer's free estimate, a Sent sets the hold to arg, Failed and Released give it back, Done gives it back and moves arg out of from and into to until their next reports. Without it the engine counts the record. With kLane the record belongs to the pool's transfer lane (core/transfer_lane.hpp): the engine's own Request, Planned and Done are kSynthetic, the worker's answers are inputs; code and http_status carry the venue's answer to a refusal.

Member Data Documentation

◆ kHeld

constexpr std::uint8_t fastmm::ControlTransferMsg::kHeld = 1
staticconstexpr

◆ kLane

constexpr std::uint8_t fastmm::ControlTransferMsg::kLane = 2
staticconstexpr

◆ hdr

EventHeader fastmm::ControlTransferMsg::hdr

◆ command

ControlCommand fastmm::ControlTransferMsg::command

◆ event

std::uint8_t fastmm::ControlTransferMsg::event

TreasuryEventKind: planned (dry run), sent, done, failed, timed out, ...

◆ state

std::uint8_t fastmm::ControlTransferMsg::state

TransferState of the venue's answer; Unknown without one.

◆ from

VenueId fastmm::ControlTransferMsg::from

◆ to

VenueId fastmm::ControlTransferMsg::to

◆ flags

std::uint8_t fastmm::ControlTransferMsg::flags

kHeld

◆ pad0_

std::uint8_t fastmm::ControlTransferMsg::pad0_[2]

◆ arg

std::uint64_t fastmm::ControlTransferMsg::arg

◆ asset

FixedString<8> fastmm::ControlTransferMsg::asset

80

◆ client_id

FixedString<31> fastmm::ControlTransferMsg::client_id

89

◆ venue_ref

FixedString<23> fastmm::ControlTransferMsg::venue_ref

121: the venue's id of the transfer

◆ pad1_

std::uint8_t fastmm::ControlTransferMsg::pad1_[7]

145

◆ seq

std::uint64_t fastmm::ControlTransferMsg::seq

152: the treasury's counter of the transfer

◆ code

std::int32_t fastmm::ControlTransferMsg::code

160: the venue's error code, 0 without one

◆ http_status

std::uint16_t fastmm::ControlTransferMsg::http_status

164

◆ pad_

std::uint8_t fastmm::ControlTransferMsg::pad_[26]

166 -> 192