Scorum
scorum_operations.hpp
Go to the documentation of this file.
1 #pragma once
8 
12 
13 #include <fc/crypto/ripemd160.hpp>
14 
15 #include <boost/uuid/nil_generator.hpp>
16 
17 namespace scorum {
18 namespace protocol {
19 
30 {
38  std::string json_metadata;
39 
40  void validate() const;
41  void get_required_active_authorities(flat_set<account_name_type>& a) const
42  {
43  a.insert(creator);
44  }
45 };
46 
53 {
62  std::string json_metadata;
63 
65 
66  void validate() const;
67  void get_required_active_authorities(flat_set<account_name_type>& a) const
68  {
69  a.insert(creator);
70  }
71 };
72 
81 {
88  std::string json_metadata;
89 
90  void validate() const;
91  void get_required_active_authorities(flat_set<account_name_type>& a) const
92  {
93  a.insert(creator);
94  }
95 };
96 
103 {
105  optional<authority> owner;
106  optional<authority> active;
107  optional<authority> posting;
109  std::string json_metadata;
110 
111  void validate() const;
112 
113  void get_required_owner_authorities(flat_set<account_name_type>& a) const
114  {
115  if (owner)
116  a.insert(account);
117  }
118 
119  void get_required_active_authorities(flat_set<account_name_type>& a) const
120  {
121  if (!owner)
122  a.insert(account);
123  }
124 };
125 
132 {
134  std::string parent_permlink;
135 
137  std::string permlink;
138 
139  std::string title;
140  std::string body;
141  std::string json_metadata;
142 
143  void validate() const;
144  void get_required_posting_authorities(flat_set<account_name_type>& a) const
145  {
146  a.insert(author);
147  }
148 };
149 
162 {
164  std::string permlink;
165 
168  bool allow_votes = true;
171 
172  void validate() const;
173  void get_required_posting_authorities(flat_set<account_name_type>& a) const
174  {
175  a.insert(author);
176  }
177 };
178 
185 {
187  bool require_owner = false;
188 
189  void validate() const;
190 
191  void get_required_active_authorities(flat_set<account_name_type>& a) const
192  {
193  if (!require_owner)
194  a.insert(challenged);
195  }
196  void get_required_owner_authorities(flat_set<account_name_type>& a) const
197  {
198  if (require_owner)
199  a.insert(challenged);
200  }
201 };
202 
211 {
213  std::string permlink;
214 
215  void validate() const;
216  void get_required_posting_authorities(flat_set<account_name_type>& a) const
217  {
218  a.insert(author);
219  }
220 };
221 
228 {
231  std::string permlink;
232  int16_t weight = 0;
233 
234  void validate() const;
235  void get_required_posting_authorities(flat_set<account_name_type>& a) const
236  {
237  a.insert(voter);
238  }
239 };
240 
247 {
253 
256  std::string memo;
257 
258  void validate() const;
259 
260  void get_required_active_authorities(flat_set<account_name_type>& a) const
261  {
262  a.insert(from);
263  }
264 };
265 
289 {
293  uint32_t escrow_id = 30;
294 
297 
298  time_point_sec ratification_deadline;
299  time_point_sec escrow_expiration;
300 
301  std::string json_meta;
302 
303  void validate() const;
304  void get_required_active_authorities(flat_set<account_name_type>& a) const
305  {
306  a.insert(from);
307  }
308 };
309 
320 {
324  account_name_type who; // Either to or agent
325 
326  uint32_t escrow_id = 30;
327  bool approve = true;
328 
329  void validate() const;
330  void get_required_active_authorities(flat_set<account_name_type>& a) const
331  {
332  a.insert(who);
333  }
334 };
335 
346 {
351 
352  uint32_t escrow_id = 30;
353 
354  void validate() const;
355  void get_required_active_authorities(flat_set<account_name_type>& a) const
356  {
357  a.insert(who);
358  }
359 };
360 
376 {
382 
383  uint32_t escrow_id = 30;
385 
386  void validate() const;
387  void get_required_active_authorities(flat_set<account_name_type>& a) const
388  {
389  a.insert(who);
390  }
391 };
392 
404 {
408 
409  void validate() const;
410  void get_required_active_authorities(flat_set<account_name_type>& a) const
411  {
412  a.insert(from);
413  }
414 };
415 
433 {
436 
437  void validate() const;
438  void get_required_active_authorities(flat_set<account_name_type>& a) const
439  {
440  a.insert(account);
441  }
442 };
443 
456 {
459  uint16_t percent = 0;
460  bool auto_vest = false;
461 
462  void validate() const;
463  void get_required_active_authorities(flat_set<account_name_type>& a) const
464  {
465  a.insert(from_account);
466  }
467 };
468 
475 {
477  uint16_t percent = 0;
478  bool auto_vest = false;
479 
480  void validate() const;
481  void get_required_active_authorities(flat_set<account_name_type>& a) const
482  {
483  a.insert(from_account);
484  }
485 };
486 
499 {
501  std::string url;
504 
505  void validate() const;
506  void get_required_active_authorities(flat_set<account_name_type>& a) const
507  {
508  a.insert(owner);
509  }
510 };
511 
521 {
524  bool approve = true;
525 
526  void validate() const;
527  void get_required_active_authorities(flat_set<account_name_type>& a) const
528  {
529  a.insert(account);
530  }
531 };
532 
539 {
542 
543  void validate() const;
544  void get_required_active_authorities(flat_set<account_name_type>& a) const
545  {
546  a.insert(account);
547  }
548 };
549 
582 {
585 
588 
591 
593 
594  void get_required_active_authorities(flat_set<account_name_type>& a) const
595  {
596  a.insert(recovery_account);
597  }
598 
599  void validate() const;
600 };
601 
644 {
646 
648 
651 
653 
654  void get_required_authorities(std::vector<authority>& a) const
655  {
656  a.push_back(new_owner_authority);
657  a.push_back(recent_owner_authority);
658  }
659 
660  void validate() const;
661 };
662 
686 {
690 
691  void get_required_owner_authorities(flat_set<account_name_type>& a) const
692  {
693  a.insert(account_to_recover);
694  }
695  void validate() const;
696 };
697 
699 {
701  bool decline = true;
702 
703  void get_required_owner_authorities(flat_set<account_name_type>& a) const
704  {
705  a.insert(account);
706  }
707  void validate() const;
708 };
709 
723 {
727 
728  void get_required_active_authorities(flat_set<account_name_type>& a) const
729  {
730  a.insert(delegator);
731  }
732  void validate() const;
733 };
734 
745 {
749 
750  void validate() const;
751  void get_required_active_authorities(flat_set<account_name_type>& a) const
752  {
753  a.insert(reg_committee_member);
754  }
755 };
756 
761 
768 {
770 
771  uuid_type uuid = boost::uuids::nil_uuid();
773  std::string json_metadata;
774 
776  fc::time_point_sec start;
777  fc::time_point_sec deadline;
778 
779  void validate() const;
780  void get_required_active_authorities(flat_set<account_name_type>& a) const
781  {
782  a.insert(owner);
783  }
784 };
785 
791 {
793 
794  uuid_type uuid = boost::uuids::nil_uuid();
796  std::string json_metadata;
797 
798  void validate() const;
799  void get_required_active_authorities(flat_set<account_name_type>& a) const
800  {
801  a.insert(owner);
802  }
803 };
804 
810 {
812 
813  uuid_type uuid = boost::uuids::nil_uuid();
815 
816  void validate() const;
817  void get_required_active_authorities(flat_set<account_name_type>& a) const
818  {
819  a.insert(owner);
820  }
821 };
822 
828 {
830 
831  uuid_type uuid = boost::uuids::nil_uuid();
833 
834  void validate() const;
835  void get_required_active_authorities(flat_set<account_name_type>& a) const
836  {
837  a.insert(moderator);
838  }
839 };
840 
842 
849 {
851  uint32_t lifetime_sec = 0;
852 
854 
855  void get_required_active_authorities(flat_set<account_name_type>& a) const
856  {
857  a.insert(creator);
858  }
859 
860  void validate() const;
861 };
862 
869 {
871  int64_t proposal_id;
872 
873  void get_required_active_authorities(flat_set<account_name_type>& a) const
874  {
875  a.insert(voting_account);
876  }
877 
878  void validate() const;
879 };
880 
887 {
888  enum operation_type : bool
889  {
892  };
893 
895 
898 
900 
901  std::string secret_hash;
902 
903  std::string metadata;
904 
905  void validate() const;
906  void get_required_active_authorities(flat_set<account_name_type>& a) const
907  {
908  a.insert(owner);
909  }
910 };
911 
918 {
920  account_name_type to; // participant or initiator
921 
922  std::string secret;
923 
924  void validate() const;
925  void get_required_active_authorities(flat_set<account_name_type>& a) const
926  {
927  a.insert(to);
928  }
929 };
930 
937 {
940  std::string secret_hash;
941 
942  void validate() const;
943  void get_required_active_authorities(flat_set<account_name_type>& a) const
944  {
945  a.insert(participant);
946  }
947 };
948 
951 {
954 };
955 
960 
969 {
971  uuid_type uuid = boost::uuids::nil_uuid();
972 
975 
977  std::string json_metadata;
978 
980  time_point_sec start_time;
981 
984 
987 
989  std::vector<market_type> markets;
990 
992  void validate() const;
993  void get_required_active_authorities(flat_set<account_name_type>& a) const
994  {
995  a.insert(moderator);
996  }
998 };
999 
1007 {
1009  uuid_type uuid = boost::uuids::nil_uuid();
1010 
1013 
1015  void validate() const;
1016  void get_required_active_authorities(flat_set<account_name_type>& a) const
1017  {
1018  a.insert(moderator);
1019  }
1021 };
1022 
1031 {
1033  uuid_type uuid = boost::uuids::nil_uuid();
1034 
1037 
1039  std::vector<market_type> markets;
1040 
1042  void validate() const;
1043  void get_required_active_authorities(flat_set<account_name_type>& a) const
1044  {
1045  a.insert(moderator);
1046  }
1048 };
1049 
1057 {
1059  uuid_type uuid = boost::uuids::nil_uuid();
1060 
1063 
1065  time_point_sec start_time;
1066 
1068  void validate() const;
1069  void get_required_active_authorities(flat_set<account_name_type>& a) const
1070  {
1071  a.insert(moderator);
1072  }
1074 };
1075 
1085 {
1087  uuid_type uuid = boost::uuids::nil_uuid();
1088 
1091 
1093  std::vector<wincase_type> wincases;
1094 
1096  void validate() const;
1097 
1098  void get_required_active_authorities(flat_set<account_name_type>& a) const
1099  {
1100  a.insert(moderator);
1101  }
1103 };
1104 
1110 {
1112  uuid_type uuid = boost::uuids::nil_uuid();
1113 
1116 
1118  uuid_type game_uuid = boost::uuids::nil_uuid();
1119 
1122 
1125 
1128 
1130  bool live = true;
1131 
1133  void validate() const;
1134  void get_required_active_authorities(flat_set<account_name_type>& a) const
1135  {
1136  a.insert(better);
1137  }
1139 };
1140 
1146 {
1148  std::vector<uuid_type> bet_uuids;
1149 
1152 
1154  void validate() const;
1155  void get_required_active_authorities(flat_set<account_name_type>& a) const
1156  {
1157  a.insert(better);
1158  }
1160 };
1162 
1167 
1173 {
1175  uuid_type uuid = boost::uuids::nil_uuid();
1177  std::string json_metadata;
1178  int32_t initial_power = 0;
1179 
1181  void validate() const;
1182  void get_required_active_authorities(flat_set<account_name_type>& a) const
1183  {
1184  a.insert(owner);
1185  }
1187 };
1188 
1194 {
1196  uuid_type uuid = boost::uuids::nil_uuid();
1197  std::string json_metadata;
1198 
1200  void validate() const;
1201  void get_required_active_authorities(flat_set<account_name_type>& a) const
1202  {
1203  a.insert(moderator);
1204  }
1206 };
1207 
1213 {
1215  uuid_type uuid = boost::uuids::nil_uuid();
1216  int32_t experience = 0;
1217 
1219  void validate() const;
1220  void get_required_active_authorities(flat_set<account_name_type>& a) const
1221  {
1222  a.insert(moderator);
1223  }
1225 };
1226 
1232 {
1234  uuid_type uuid = boost::uuids::nil_uuid();
1236 
1238  void validate() const;
1239  void get_required_active_authorities(flat_set<account_name_type>& a) const
1240  {
1241  a.insert(moderator);
1242  }
1244 };
1245 
1251 {
1253  uuid_type uuid = boost::uuids::nil_uuid();
1254  std::string verification_key;
1255  std::string seed;
1256 
1258  void validate() const;
1259  void get_required_active_authorities(flat_set<account_name_type>& a) const
1260  {
1261  a.insert(owner);
1262  }
1264 };
1265 
1271 {
1273  uuid_type uuid = boost::uuids::nil_uuid();
1274  std::string proof;
1275  std::string vrf;
1276  int32_t result = 0;
1277 
1279  void validate() const;
1280  void get_required_active_authorities(flat_set<account_name_type>& a) const
1281  {
1282  a.insert(owner);
1283  }
1285 };
1286 
1288 } // namespace protocol
1289 } // namespace scorum
1290 
1291 // clang-format off
1292 
1294  (fee)
1295  (creator)
1296  (new_account_name)
1297  (owner)
1298  (active)
1299  (posting)
1300  (memo_key)
1301  (json_metadata) )
1302 
1304  (fee)
1305  (delegation)
1306  (creator)
1307  (new_account_name)
1308  (owner)
1309  (active)
1310  (posting)
1311  (memo_key)
1312  (json_metadata)
1313  (extensions) )
1314 
1316  (creator)
1317  (new_account_name)
1318  (owner)
1319  (active)
1320  (posting)
1321  (memo_key)
1322  (json_metadata) )
1323 
1325  (account)
1326  (owner)
1327  (active)
1328  (posting)
1329  (memo_key)
1330  (json_metadata) )
1331 
1332 FC_REFLECT( scorum::protocol::transfer_operation, (from)(to)(amount)(memo) )
1335 FC_REFLECT( scorum::protocol::set_withdraw_scorumpower_route_to_account_operation, (from_account)(to_account)(percent)(auto_vest) )
1337 FC_REFLECT( scorum::protocol::witness_update_operation, (owner)(url)(block_signing_key)(proposed_chain_props) )
1338 FC_REFLECT( scorum::protocol::account_witness_vote_operation, (account)(witness)(approve) )
1340 FC_REFLECT( scorum::protocol::comment_operation, (parent_author)(parent_permlink)(author)(permlink)(title)(body)(json_metadata) )
1341 FC_REFLECT( scorum::protocol::vote_operation, (voter)(author)(permlink)(weight) )
1342 
1344 FC_REFLECT( scorum::protocol::comment_options_operation, (author)(permlink)(max_accepted_payout)(allow_votes)(allow_curation_rewards)(extensions) )
1345 
1346 FC_REFLECT( scorum::protocol::escrow_transfer_operation, (from)(to)(scorum_amount)(escrow_id)(agent)(fee)(json_meta)(ratification_deadline)(escrow_expiration) )
1347 FC_REFLECT( scorum::protocol::escrow_approve_operation, (from)(to)(agent)(who)(escrow_id)(approve) )
1348 FC_REFLECT( scorum::protocol::escrow_dispute_operation, (from)(to)(agent)(who)(escrow_id) )
1349 FC_REFLECT( scorum::protocol::escrow_release_operation, (from)(to)(agent)(who)(receiver)(escrow_id)(scorum_amount) )
1350 FC_REFLECT( scorum::protocol::prove_authority_operation, (challenged)(require_owner) )
1351 FC_REFLECT( scorum::protocol::request_account_recovery_operation, (recovery_account)(account_to_recover)(new_owner_authority)(extensions) )
1352 FC_REFLECT( scorum::protocol::recover_account_operation, (account_to_recover)(new_owner_authority)(recent_owner_authority)(extensions) )
1353 FC_REFLECT( scorum::protocol::change_recovery_account_operation, (account_to_recover)(new_recovery_account)(extensions) )
1355 FC_REFLECT( scorum::protocol::delegate_scorumpower_operation, (delegator)(delegatee)(scorumpower) )
1356 FC_REFLECT( scorum::protocol::delegate_sp_from_reg_pool_operation, (reg_committee_member)(delegatee)(scorumpower) )
1357 
1358 FC_REFLECT( scorum::protocol::create_budget_operation, (type)(uuid)(owner)(json_metadata)(balance)(start)(deadline) )
1359 FC_REFLECT( scorum::protocol::update_budget_operation, (type)(uuid)(owner)(json_metadata) )
1362 
1363 FC_REFLECT( scorum::protocol::atomicswap_initiate_operation, (type)(owner)(recipient)(amount)(secret_hash)(metadata) )
1366 FC_REFLECT( scorum::protocol::atomicswap_refund_operation, (participant)(initiator)(secret_hash) )
1367 
1368 FC_REFLECT( scorum::protocol::create_game_operation, (uuid)(moderator)(json_metadata)(start_time)(auto_resolve_delay_sec)(game)(markets) )
1370 FC_REFLECT( scorum::protocol::update_game_markets_operation, (uuid)(moderator)(markets) )
1371 FC_REFLECT( scorum::protocol::update_game_start_time_operation, (uuid)(moderator)(start_time) )
1372 FC_REFLECT( scorum::protocol::post_game_results_operation, (uuid)(moderator)(wincases) )
1373 
1374 
1376  (voting_account)
1377  (proposal_id))
1378 
1380  (creator)
1381  (lifetime_sec)
1382  (operation))
1383 
1385  (numerator)
1386  (denominator))
1387 
1389  (uuid)
1390  (better)
1391  (game_uuid)
1392  (wincase)
1393  (odds)
1394  (stake)
1395  (live))
1397  (bet_uuids)
1398  (better))
1399 
1401  (owner)
1402  (uuid)
1403  (name)
1404  (json_metadata)
1405  (initial_power))
1406 
1408  (moderator)
1409  (uuid)
1410  (json_metadata))
1411 
1413  (moderator)
1414  (uuid)
1415  (experience))
1416 
1418  (moderator)
1419  (uuid)
1420  (name))
1421 
1423  (owner)
1424  (uuid)
1425  (verification_key)
1426  (seed))
1427 
1429  (owner)
1430  (uuid)
1431  (proof)
1432  (vrf)
1433  (result))
1434 
1435 // clang-format on
#define SP_SYMBOL
Definition: config.hpp:104
#define SCORUM_SYMBOL
Definition: config.hpp:102
FC_REFLECT_ENUM(scorum::protocol::game_status,(created)(started)(finished)(resolved)(expired)(cancelled)) namespace fc
Definition: game_status.hpp:18
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
Definition: operations.hpp:112
fc::fixed_string_16 account_name_type
Definition: types.hpp:62
flat_set< comment_options_extension > comment_options_extensions_type
Definition: comment.hpp:38
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
Definition: market.hpp:128
flat_set< future_extensions > extensions_type
Definition: base.hpp:83
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
int32_t odds_value_type
Definition: odds.hpp:10
fc::static_variant< soccer_game, hockey_game > game_type
Definition: game.hpp:14
Definition: asset.cpp:15
boost::uuids::uuid uuid_type
Definition: types.hpp:53
Creates new account by registration committee.
void get_required_active_authorities(flat_set< account_name_type > &a) const
void get_required_active_authorities(flat_set< account_name_type > &a) const
void get_required_active_authorities(flat_set< account_name_type > &a) const
Updates account keys or/and metadata.
void get_required_active_authorities(flat_set< account_name_type > &a) const
void get_required_owner_authorities(flat_set< account_name_type > &a) const
void get_required_active_authorities(flat_set< account_name_type > &a) const
void get_required_active_authorities(flat_set< account_name_type > &a) const
static asset maximum(asset_symbol_type id)
Definition: asset.hpp:37
void get_required_active_authorities(flat_set< account_name_type > &a) const
void get_required_active_authorities(flat_set< account_name_type > &a) const
void get_required_active_authorities(flat_set< account_name_type > &a) const
void get_required_active_authorities(flat_set< account_name_type > &) const
Definition: base.hpp:41
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
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
Closes advertising budget, remaining funds will be returned to creator.
void get_required_active_authorities(flat_set< account_name_type > &a) const
void get_required_posting_authorities(flat_set< account_name_type > &a) const
void get_required_posting_authorities(flat_set< account_name_type > &a) const
bool allow_curation_rewards
allows a post to receive votes;
comment_options_extensions_type extensions
allows voters to receive curation rewards. Rewards return to reward fund.
bool allow_votes
SCR value of the maximum payout this post will receive.
void get_required_active_authorities(flat_set< account_name_type > &a) const
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
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.
void get_required_owner_authorities(flat_set< account_name_type > &a) const
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.
void get_required_active_authorities(flat_set< account_name_type > &a) const
void get_required_posting_authorities(flat_set< account_name_type > &a) const
void get_required_active_authorities(flat_set< account_name_type > &a) const
void get_required_active_authorities(flat_set< account_name_type > &a) const
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
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
uuid_type uuid
Universal Unique Identifier which is unique for each bet.
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
void get_required_active_authorities(flat_set< account_name_type > &a) const
void get_required_active_authorities(flat_set< account_name_type > &a) const
Proves authority to remove challenge.
void get_required_active_authorities(flat_set< account_name_type > &a) const
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.
void get_required_authorities(std::vector< authority > &a) const
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
void get_required_active_authorities(flat_set< account_name_type > &a) const
void get_required_active_authorities(flat_set< account_name_type > &a) const
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.
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.
account_name_type moderator
moderator account name
uuid_type uuid
Universal Unique Identifier which is specified during game creation.
This operation update NFT metadata.
void get_required_posting_authorities(flat_set< account_name_type > &a) const
void get_required_active_authorities(flat_set< account_name_type > &a) const
void get_required_active_authorities(flat_set< account_name_type > &a) const