BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
#include <market.hpp>
Classes | |
struct | fee_params_t |
struct | options_type |
Public Types | |
using | extensions_type = extension< options_type > |
Public Member Functions | |
account_id_type | fee_payer () const |
void | validate () const |
Public Member Functions inherited from graphene::protocol::base_operation | |
virtual | ~base_operation ()=default |
template<typename T > | |
share_type | calculate_fee (const T ¶ms) const |
virtual void | get_required_authorities (vector< authority > &) const |
virtual void | get_required_active_authorities (flat_set< account_id_type > &) const |
virtual void | get_required_owner_authorities (flat_set< account_id_type > &) const |
fc::optional< fc::future< void > > | validate_parallel (uint32_t skip) const |
Public Attributes | |
asset | fee |
account_id_type | funding_account |
pays fee, collateral, and cover More... | |
asset | delta_collateral |
the amount of collateral to add to the margin position More... | |
asset | delta_debt |
the amount of the debt to be paid off, may be negative to issue new debt More... | |
extensions_type | extensions |
Additional Inherited Members | |
Static Public Member Functions inherited from graphene::protocol::base_operation | |
static uint64_t | calculate_data_fee (uint64_t bytes, uint64_t price_per_kbyte) |
This operation can be used to add collateral, cover, and adjust the margin call price for a particular user.
For prediction markets the collateral and debt must always be equal.
This operation will fail if it would trigger a margin call that couldn't be filled. If the margin call hits the call price limit then it will fail if the call price is above the settlement price.
Definition at line 171 of file market.hpp.
Definition at line 192 of file market.hpp.
|
inline |
Definition at line 195 of file market.hpp.
|
virtual |
Reimplemented from graphene::protocol::base_operation.
Definition at line 89 of file market.cpp.
asset graphene::protocol::call_order_update_operation::delta_collateral |
the amount of collateral to add to the margin position
Definition at line 189 of file market.hpp.
asset graphene::protocol::call_order_update_operation::delta_debt |
the amount of the debt to be paid off, may be negative to issue new debt
Definition at line 190 of file market.hpp.
extensions_type graphene::protocol::call_order_update_operation::extensions |
Definition at line 193 of file market.hpp.
asset graphene::protocol::call_order_update_operation::fee |
Definition at line 187 of file market.hpp.
account_id_type graphene::protocol::call_order_update_operation::funding_account |
pays fee, collateral, and cover
Definition at line 188 of file market.hpp.