BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
Go to the documentation of this file.
29 namespace graphene {
namespace protocol {
101 void validate_flags(
bool is_market_issued,
bool allow_disable_collateral_bid =
true )
const;
182 if( !
extensions.value.black_swan_response_method.valid() )
633 (whitelist_authorities)
634 (blacklist_authorities)
642 (initial_collateral_ratio)
643 (maintenance_collateral_ratio)
644 (maximum_short_squeeze_ratio)
645 (margin_call_fee_ratio)
646 (force_settle_fee_percent)
647 (black_swan_response_method)
653 (force_settlement_delay_sec)
654 (force_settlement_offset_percent)
655 (maximum_force_settlement_volume)
656 (short_backing_asset)
661 (reward_percent)(whitelist_market_fee_sharing)(taker_fee_percent) )
667 (symbol3)(symbol4)(long_symbol)(price_per_kbyte) )
673 FC_REFLECT(
graphene::protocol::asset_update_operation::fee_params_t, (fee)(price_per_kbyte) )
675 FC_REFLECT(
graphene::protocol::asset_update_bitasset_operation::fee_params_t, (fee) )
676 FC_REFLECT(
graphene::protocol::asset_update_feed_producers_operation::fee_params_t, (fee) )
678 FC_REFLECT(
graphene::protocol::asset_issue_operation::fee_params_t, (fee)(price_per_kbyte) )
689 (is_prediction_market)
715 (fee)(issuer)(asset_to_update)(new_feed_producers)(extensions)
718 (fee)(publisher)(asset_id)(feed)(extensions) )
719 FC_REFLECT(
graphene::protocol::asset_settle_operation, (fee)(account)(amount)(extensions) )
720 FC_REFLECT(
graphene::protocol::asset_settle_cancel_operation, (fee)(settlement)(account)(amount) )
722 (fee)(issuer)(asset_to_settle)(settle_price)(extensions) )
724 (fee)(issuer)(asset_to_issue)(issue_to_account)(memo)(extensions) )
726 (fee)(payer)(amount_to_reserve)(extensions) )
728 FC_REFLECT(
graphene::protocol::asset_fund_fee_pool_operation, (fee)(from_account)(asset_id)(amount)(extensions) )
749 graphene::protocol::asset_update_feed_producers_operation::fee_params_t )
constexpr int64_t GRAPHENE_MAX_SHARE_SUPPLY(1000000000000000LL)
account_id_type issuer
This account must sign and pay the fee for this operation. Later, this account may update the asset.
account_id_type fee_payer() const
asset_settle_cancel_operation(const force_settlement_id_type &fsid, const account_id_type &aid, const asset &a)
asset amount
Amount of asset to force settle. This must be a market-issued asset.
share_type calculate_fee(const fee_params_t &k) const
optional< memo_data > memo
account_id_type fee_payer() const
The price struct stores asset prices in the BitShares system.
account_id_type account
Account requesting the force settlement. This account pays the fee.
uint16_t maximum_force_settlement_volume
black_swan_response_type
Defines how a BitAsset would respond to black swan events.
force_settlement_id_type settlement
uint16_t market_fee_percent
black_swan_response_type get_black_swan_response_method() const
Get the effective black swan response method.
flat_set< account_id_type > whitelist_authorities
account_id_type fee_payer() const
asset fee
paid for by publisher
account_id_type fee_payer() const
@ individual_settlement_to_order
used to transfer accumulated fees back to the issuer's balance.
bool is_prediction_market
For BitAssets, set this to true if the asset implements a prediction market; false otherwise.
share_type calculate_fee(const fee_params_t ¶ms) const
fc::optional< uint16_t > initial_collateral_ratio
After BSIP77, price feed producers can feed ICR too.
asset_id_type asset_to_update
extensions_type extensions
extensions_type extensions
optional< bitasset_options > bitasset_opts
Options only available for BitAssets. MUST be non-null if and only if the asset is market-issued.
Update issuer of an asset.
flat_set< asset_id_type > whitelist_markets
uint32_t feed_lifetime_sec
Time before a price feed expires.
flat_set< account_id_type > blacklist_authorities
account_id_type fee_payer() const
extensions_type extensions
asset_id_type asset_id
asset for which the feed is published
account_id_type fee_payer() const
flat_set< asset_id_type > blacklist_markets
The asset_options struct contains options available on all assets in the network.
asset_id_type asset_to_update
additional_asset_options_t extensions
The bitasset_options struct contains configurable options available only to BitAssets.
extension< ext > extensions
asset_settle_cancel_operation()=default
extensions_type extensions
account_id_type issuer
Must be asset_to_issue->asset_id->issuer.
fc::optional< flat_set< account_id_type > > whitelist_market_fee_sharing
account_id_type fee_payer() const
extension< ext > extensions
share_type calculate_fee(const fee_params_t &k) const
bitasset_options new_options
fc::optional< uint16_t > maintenance_collateral_ratio
After BSIP75, the asset owner can update MCR directly.
#define GRAPHENE_BLOCKCHAIN_PRECISION
fc::optional< uint8_t > new_precision
used to take an asset out of circulation, returning to the issuer
Update options common to all assets.
account_id_type account
Account requesting the force settlement. This account pays the fee.
asset_id_type asset_to_settle
uint8_t precision
Number of digits to the right of decimal point, must be less than or equal to 12.
fc::optional< uint16_t > initial_collateral_ratio
uint16_t issuer_permissions
The flags which the issuer has permission to update. See asset_issuer_permission_flags.
account_id_type issuer
must match issuer of asset from which we claim fees
account_id_type fee_payer() const
share_type calculate_fee(const fee_params_t &k, const optional< uint64_t > &sub_asset_creation_fee) const
account_id_type fee_payer() const
extensions_type extensions
extensions_type extensions
defines market parameters for margin positions
void get_required_active_authorities(flat_set< account_id_type > &a) const
#define GRAPHENE_DECLARE_EXTERNAL_SERIALIZATION(type)
extensions_type extensions
fc::optional< bool > skip_core_exchange_rate
account_id_type publisher
Update options specific to BitAssets.
account_id_type fee_payer() const
string symbol
The ticker symbol of this asset.
Publish price feeds for market-issued assets.
fc::optional< uint16_t > reward_percent
fc::optional< uint8_t > black_swan_response_method
extensions_type extensions
uint16_t flags
The currently active flags on this permission. See asset_issuer_permission_flags.
@ BSRM_TYPE_COUNT
Total number of available black swan response methods.
uint32_t force_settlement_delay_sec
This is the delay between the time a long requests settlement and the chain evaluates the settlement.
#define GRAPHENE_DEFAULT_PRICE_FEED_LIFETIME
1 day
bool is_valid_symbol(const string &symbol)
#define GRAPHENE_DEFAULT_FORCE_SETTLEMENT_MAX_VOLUME
20%
account_id_type issue_to_account
extension< additional_options_type > extensions
asset_options new_options
#define FC_ASSERT(TEST,...)
Checks a condition and throws an assert_exception if the test is FALSE.
Update the set of feed-producing accounts for a BitAsset.
Schedules a market-issued asset for automatic settlement.
void validate_flags(bool is_market_issued, bool allow_disable_collateral_bid=true) const
asset_id_type asset_to_update
asset_options common_options
#define GRAPHENE_DEFAULT_FORCE_SETTLEMENT_DELAY
1 day
flat_set< account_id_type > new_feed_producers
asset_id_type asset_to_update
fc::optional< uint16_t > force_settle_fee_percent
share_type max_market_fee
Market fees calculated as market_fee_percent of the traded volume are capped to this value.
fc::optional< uint16_t > maximum_short_squeeze_ratio
After BSIP75, the asset owner can update MSSR directly.
extensions_type extensions
core asset
share_type amount
core asset
fc::optional< uint16_t > margin_call_fee_ratio
#define FC_REFLECT(TYPE, MEMBERS)
Specializes fc::reflector for TYPE.
fc::optional< asset_id_type > claim_from_asset_id
extension< additional_asset_options > additional_asset_options_t
account_id_type from_account
@ individual_settlement_to_fund
account_id_type fee_payer() const
account_id_type issuer
must equal issuer of asset_to_settle
#define GRAPHENE_DEFAULT_FORCE_SETTLEMENT_OFFSET
1%
optional< account_id_type > new_issuer
If the asset is to be given a new issuer, specify his ID here.
void get_required_owner_authorities(flat_set< account_id_type > &a) const
uint16_t get_enabled_issuer_permissions_mask() const
uint16_t force_settlement_offset_percent
This is the percent to adjust the feed price in the short's favor in the event of a forced settlement...
account_id_type new_issuer
account_id_type fee_payer() const
asset_id_type short_backing_asset
extensions_type extensions
allows global settling of bitassets (black swan or prediction markets)
extension< ext > extensions
asset amount_to_claim
fee.asset_id must != asset_id
Transfers BTS from the fee pool of a specified asset back to the issuer's balance.
account_id_type fee_payer() const
future_extensions::flat_set_type extensions_type
fc::optional< uint16_t > taker_fee_percent
asset amount
Amount of asset to force settle. This must be a market-issued asset.
account_id_type fee_payer() const
uint8_t minimum_feeds
Minimum number of unexpired feeds required to extract a median feed from.