13 #include <fc/crypto/ripemd160.hpp>
15 #include <boost/uuid/nil_generator.hpp>
FC_REFLECT_ENUM(scorum::protocol::game_status,(created)(started)(finished)(resolved)(expired)(cancelled)) namespace fc
FC_REFLECT(appender_args,(appender)(stream)) FC_REFLECT_DERIVED(file_appender_args
fc::static_variant< vote_operation, comment_operation, transfer_operation, transfer_to_scorumpower_operation, withdraw_scorumpower_operation, account_create_by_committee_operation, account_create_operation, account_create_with_delegation_operation, account_update_operation, witness_update_operation, account_witness_vote_operation, account_witness_proxy_operation, delete_comment_operation, comment_options_operation, set_withdraw_scorumpower_route_to_account_operation, set_withdraw_scorumpower_route_to_dev_pool_operation, prove_authority_operation, request_account_recovery_operation, recover_account_operation, change_recovery_account_operation, escrow_approve_operation, escrow_dispute_operation, escrow_release_operation, escrow_transfer_operation, decline_voting_rights_operation, delegate_scorumpower_operation, create_budget_operation, close_budget_operation, proposal_vote_operation, proposal_create_operation, atomicswap_initiate_operation, atomicswap_redeem_operation, atomicswap_refund_operation, close_budget_by_advertising_moderator_operation, update_budget_operation, create_game_operation, cancel_game_operation, update_game_markets_operation, update_game_start_time_operation, post_game_results_operation, post_bet_operation, cancel_pending_bets_operation, delegate_sp_from_reg_pool_operation, create_nft_operation, update_nft_meta_operation, create_game_round_operation, update_game_round_result_operation, adjust_nft_experience_operation, update_nft_name_operation, author_reward_operation, comment_benefficiary_reward_operation, comment_payout_update_operation, comment_reward_operation, curation_reward_operation, hardfork_operation, producer_reward_operation, active_sp_holders_reward_operation, return_scorumpower_delegation_operation, shutdown_witness_operation, witness_miss_block_operation, expired_contract_refund_operation, acc_finished_vesting_withdraw_operation, devpool_finished_vesting_withdraw_operation, acc_to_acc_vesting_withdraw_operation, devpool_to_acc_vesting_withdraw_operation, acc_to_devpool_vesting_withdraw_operation, devpool_to_devpool_vesting_withdraw_operation, proposal_virtual_operation, budget_outgo_operation, budget_owner_income_operation, active_sp_holders_reward_legacy_operation, budget_closing_operation, bets_matched_operation, game_status_changed_operation, bet_resolved_operation, bet_cancelled_operation, bet_restored_operation, bet_updated_operation > operation
fc::fixed_string_16 account_name_type
flat_set< comment_options_extension > comment_options_extensions_type
fc::static_variant< result_home::yes, result_home::no, result_draw::yes, result_draw::no, result_away::yes, result_away::no, round_home::yes, round_home::no, handicap::over, handicap::under, correct_score_home::yes, correct_score_home::no, correct_score_draw::yes, correct_score_draw::no, correct_score_away::yes, correct_score_away::no, correct_score::yes, correct_score::no, goal_home::yes, goal_home::no, goal_both::yes, goal_both::no, goal_away::yes, goal_away::no, total::over, total::under, total_goals_home::over, total_goals_home::under, total_goals_away::over, total_goals_away::under > wincase_type
flat_set< future_extensions > extensions_type
fc::static_variant< registration_committee_add_member_operation, registration_committee_exclude_member_operation, registration_committee_change_quorum_operation, development_committee_add_member_operation, development_committee_exclude_member_operation, development_committee_change_quorum_operation, development_committee_withdraw_vesting_operation, development_committee_transfer_operation, development_committee_empower_advertising_moderator_operation, development_committee_change_post_budgets_auction_properties_operation, development_committee_change_banner_budgets_auction_properties_operation, development_committee_empower_betting_moderator_operation, development_committee_change_betting_resolve_delay_operation > proposal_operation
fc::static_variant< soccer_game, hockey_game > game_type
boost::uuids::uuid uuid_type
Creates new account by registration committee.
void get_required_active_authorities(flat_set< account_name_type > &a) const
account_name_type new_account_name
std::string json_metadata
account_name_type creator
account_name_type new_account_name
std::string json_metadata
account_name_type creator
void get_required_active_authorities(flat_set< account_name_type > &a) const
Creates new account with delegation.
extensions_type extensions
account_name_type new_account_name
account_name_type creator
std::string json_metadata
void get_required_active_authorities(flat_set< account_name_type > &a) const
Updates account keys or/and metadata.
account_name_type account
optional< authority > owner
void get_required_active_authorities(flat_set< account_name_type > &a) const
optional< authority > active
std::string json_metadata
void get_required_owner_authorities(flat_set< account_name_type > &a) const
optional< authority > posting
Sets witness proxy for account.
account_name_type account
void get_required_active_authorities(flat_set< account_name_type > &a) const
void get_required_active_authorities(flat_set< account_name_type > &a) const
account_name_type account
account_name_type witness
This operation adjust NFT experience.
account_name_type moderator
static asset maximum(asset_symbol_type id)
Initiates atomicswap operation.
account_name_type recipient
void get_required_active_authorities(flat_set< account_name_type > &a) const
Redeems atomicswap operation.
void get_required_active_authorities(flat_set< account_name_type > &a) const
Refunds atomicswap operation.
account_name_type initiator
account_name_type participant
void get_required_active_authorities(flat_set< account_name_type > &a) const
void get_required_active_authorities(flat_set< account_name_type > &) const
This operation canceling game.
uuid_type uuid
Universal Unique Identifier which is specified during game creation.
account_name_type moderator
moderator account name
This operation cancel unmatched bets by id.
std::vector< uuid_type > bet_uuids
bets list that is being canceling
account_name_type better
owner
Changes recovery account. Will be changed in 30 days.
account_name_type new_recovery_account
The account that creates the recover request.
void get_required_owner_authorities(flat_set< account_name_type > &a) const
extensions_type extensions
Extensions. Not currently used.
account_name_type account_to_recover
The account that would be recovered in case of compromise.
Closes advertising budget by moderator, remaining funds will be returned to creator.
void get_required_active_authorities(flat_set< account_name_type > &a) const
account_name_type moderator
Closes advertising budget, remaining funds will be returned to creator.
void get_required_active_authorities(flat_set< account_name_type > &a) const
Creates advertising budget.
std::string json_metadata
void get_required_active_authorities(flat_set< account_name_type > &a) const
fc::time_point_sec deadline
This operation creates game object.
game_type game
game type (soccer, hockey, etc ...)
std::vector< market_type > markets
list of markets
uuid_type uuid
Universal Unique Identifier which is unique for each game.
account_name_type moderator
moderator account name
time_point_sec start_time
game start time
std::string json_metadata
JSON metadata.
uint32_t auto_resolve_delay_sec
delay starting from start after which all bets are automatically resolved if game results weren't pro...
This operation create new game round.
std::string verification_key
This operation create new NFT.
std::string json_metadata
void get_required_owner_authorities(flat_set< account_name_type > &a) const
account_name_type account
Delegates scorumpower from one account to the other.
asset scorumpower
The amount of scorumpower delegated.
void get_required_active_authorities(flat_set< account_name_type > &a) const
account_name_type delegatee
The account receiving scorumpower.
account_name_type delegator
The account delegating scorumpower.
account_name_type delegatee
account_name_type reg_committee_member
void get_required_active_authorities(flat_set< account_name_type > &a) const
Approves escrow transaction.
void get_required_active_authorities(flat_set< account_name_type > &a) const
void get_required_active_authorities(flat_set< account_name_type > &a) const
Releases escrow transaction.
asset scorum_amount
the amount of scorum to release
void get_required_active_authorities(flat_set< account_name_type > &a) const
account_name_type to
the original 'to'
account_name_type who
the account that is attempting to release the funds, determines valid 'receiver'
account_name_type receiver
the account that should receive funds (might be from, might be to)
void get_required_active_authorities(flat_set< account_name_type > &a) const
time_point_sec ratification_deadline
time_point_sec escrow_expiration
This operation creates bet.
bool live
is this bet is active in live
uuid_type game_uuid
Universal Unique Identifier which is specified during game creation.
account_name_type better
owner for new bet
asset stake
stake amount in SCR
uuid_type uuid
Universal Unique Identifier which is unique for each bet.
wincase_type wincase
wincase
odds_input odds
odds - rational coefficient that define potential result (p). p = odds * stake
With this operation moderator provides game results(wincases)
account_name_type moderator
moderator account name
uuid_type uuid
Universal Unique Identifier which is specified during game creation.
std::vector< wincase_type > wincases
list of wincases
Creates new committee proposal.
void get_required_active_authorities(flat_set< account_name_type > &a) const
account_name_type creator
proposal_operation operation
Votes for committee proposal.
void get_required_active_authorities(flat_set< account_name_type > &a) const
account_name_type voting_account
Proves authority to remove challenge.
void get_required_active_authorities(flat_set< account_name_type > &a) const
account_name_type challenged
void get_required_owner_authorities(flat_set< account_name_type > &a) const
Recovers an account to a new authority using a previous authority.
account_name_type account_to_recover
The account to be recovered.
authority new_owner_authority
The new owner authority as specified in the request account recovery operation.
extensions_type extensions
ownership of the account to be recovered.
authority recent_owner_authority
void get_required_authorities(std::vector< authority > &a) const
Requests account recovery.
account_name_type account_to_recover
The account to recover. This is likely due to a compromised owner authority.
account_name_type recovery_account
The recovery account is listed as the recovery account on the account to recover.
void get_required_active_authorities(flat_set< account_name_type > &a) const
extensions_type extensions
Extensions. Not currently used.
authority new_owner_authority
known by the account to recover and will be confirmed in a recover_account_operation
Setup a versting withdraw to another account.
account_name_type from_account
void get_required_active_authorities(flat_set< account_name_type > &a) const
account_name_type to_account
Setup a versting withdraw to development pool.
void get_required_active_authorities(flat_set< account_name_type > &a) const
account_name_type from_account
Transfers SCR from one account to another.
void get_required_active_authorities(flat_set< account_name_type > &a) const
account_name_type to
Account to transfer asset to.
asset amount
The amount of asset to transfer from from to to.
account_name_type to
if null, then same as from
void get_required_active_authorities(flat_set< account_name_type > &a) const
Updates advertising budget metadata.
std::string json_metadata
void get_required_active_authorities(flat_set< account_name_type > &a) const
This operation updates game markets list.
uuid_type uuid
Universal Unique Identifier which is specified during game creation.
account_name_type moderator
moderator account name
std::vector< market_type > markets
list of markets
This operation update game round results.
This operation updates game start time.
time_point_sec start_time
game start time
account_name_type moderator
moderator account name
uuid_type uuid
Universal Unique Identifier which is specified during game creation.
This operation update NFT name.
account_name_type moderator
void get_required_posting_authorities(flat_set< account_name_type > &a) const
account_name_type account
void get_required_active_authorities(flat_set< account_name_type > &a) const
Updates account to witness.
void get_required_active_authorities(flat_set< account_name_type > &a) const
public_key_type block_signing_key
chain_properties proposed_chain_props