Scorum
|
Wallet Betting API. More...
Wallet Betting API.
annotated_signed_transaction scorum::wallet::wallet_api::cancel_game | ( | uuid_type | uuid, |
account_name_type | moderator, | ||
bool | broadcast | ||
) |
Cancel game (return all bets to owners)
uuid | game UUID |
moderator | betting moderator |
broadcast | true if you wish to broadcast the transaction |
Definition at line 3249 of file wallet.cpp.
annotated_signed_transaction scorum::wallet::wallet_api::cancel_pending_bets | ( | account_name_type | better, |
const std::vector< uuid_type > & | bet_uuids, | ||
bool | broadcast | ||
) |
Cancel pending bets list
better | owner |
bet_uuids | UUIDs of bets which are being cancelled |
broadcast | true if you wish to broadcast the transaction |
Definition at line 3366 of file wallet.cpp.
annotated_signed_transaction scorum::wallet::wallet_api::create_game | ( | uuid_type | uuid, |
account_name_type | moderator, | ||
const std::string & | json_metadata, | ||
fc::time_point_sec | start_time, | ||
uint32_t | auto_resolve_delay_sec, | ||
game_type | game, | ||
const std::vector< market_type > & | markets, | ||
bool | broadcast | ||
) |
Create betting game
uuid | game UUID |
moderator | betting moderator |
json_metadata | JSON metadata |
start_time | time when game should start |
auto_resolve_delay_sec | delay starting from start_time after expiration of which (if game results weren't posted) game will be cancelled |
game | type of game (soccer, hockey, etc.) |
markets | betting markets for this particular game |
broadcast | true if you wish to broadcast the transaction |
Definition at line 3218 of file wallet.cpp.
betting_property_api_object scorum::wallet::wallet_api::get_betting_properties | ( | ) | const |
Return betting properties
Definition at line 3441 of file wallet.cpp.
std::vector< matched_bet_api_object > scorum::wallet::wallet_api::get_game_matched_bets | ( | const uuid_type & | uuid | ) | const |
Returns matched bets for game
uuid | Game UUID |
Definition at line 3462 of file wallet.cpp.
std::vector< pending_bet_api_object > scorum::wallet::wallet_api::get_game_pending_bets | ( | const uuid_type & | uuid | ) | const |
This method get list of pending bets
uuid | Game UUID |
Definition at line 3469 of file wallet.cpp.
std::vector< matched_bet_api_object > scorum::wallet::wallet_api::get_game_returns | ( | const uuid_type & | game_uuid | ) | const |
Returns bets with draw status
game_uuid | Game UUID |
Definition at line 3448 of file wallet.cpp.
std::vector< winner_api_object > scorum::wallet::wallet_api::get_game_winners | ( | const uuid_type & | game_uuid | ) | const |
Returns all winners for particular game
game_uuid | Game UUID |
Definition at line 3455 of file wallet.cpp.
std::vector< game_api_object > scorum::wallet::wallet_api::get_games_by_status | ( | const fc::flat_set< game_status > & | filter | ) | const |
Returns games
filter | [created, started, finished] |
Definition at line 3392 of file wallet.cpp.
std::vector< game_api_object > scorum::wallet::wallet_api::get_games_by_uuids | ( | const std::vector< uuid_type > & | uuids | ) | const |
Returns games
uuids | UUIDs of games to return |
Definition at line 3399 of file wallet.cpp.
std::vector< matched_bet_api_object > scorum::wallet::wallet_api::get_matched_bets | ( | const std::vector< uuid_type > & | uuids | ) | const |
Returns matched bets
uuids | The vector of UUIDs of pending bets which form matched bets |
Definition at line 3427 of file wallet.cpp.
std::vector< pending_bet_api_object > scorum::wallet::wallet_api::get_pending_bets | ( | const std::vector< uuid_type > & | uuids | ) | const |
Return pending bets
uuids | The vector of UUIDs of pending bets which should be returned |
Definition at line 3434 of file wallet.cpp.
std::vector< game_api_object > scorum::wallet::wallet_api::lookup_games_by_id | ( | game_id_type | from, |
uint32_t | limit | ||
) | const |
Returns games
from | lower bound game id |
limit | query limit |
Definition at line 3406 of file wallet.cpp.
std::vector< matched_bet_api_object > scorum::wallet::wallet_api::lookup_matched_bets | ( | matched_bet_id_type | from, |
int64_t | limit | ||
) | const |
Returns matched bets
from | lower bound bet id |
limit | query limit |
Definition at line 3413 of file wallet.cpp.
std::vector< pending_bet_api_object > scorum::wallet::wallet_api::lookup_pending_bets | ( | pending_bet_id_type | from, |
int64_t | limit | ||
) | const |
Return pending bets
from | lower bound bet id |
limit | query limit |
Definition at line 3420 of file wallet.cpp.
annotated_signed_transaction scorum::wallet::wallet_api::post_bet | ( | uuid_type | uuid, |
account_name_type | better, | ||
uuid_type | game_uuid, | ||
wincase_type | wincase, | ||
odds_input | odds, | ||
asset | stake, | ||
bool | is_live, | ||
bool | broadcast | ||
) |
Create bet
uuid | bet UUID |
better | owner for new bet |
game_uuid | game UUID which is specified during game creation |
wincase | wincase for bet |
odds | rational coefficient that define potential result (p). p = odds * stake |
stake | amount in SCR to bet |
is_live | specify is bet live or not |
broadcast | true if you wish to broadcast the transaction |
Definition at line 3337 of file wallet.cpp.
annotated_signed_transaction scorum::wallet::wallet_api::post_game_results | ( | uuid_type | uuid, |
account_name_type | moderator, | ||
const std::vector< wincase_type > & | wincases, | ||
bool | broadcast | ||
) |
Post game results (provide won wincases)
uuid | game UUID |
moderator | betting moderator |
wincases | won wincases |
broadcast | true if you wish to broadcast the transaction |
Definition at line 3314 of file wallet.cpp.
annotated_signed_transaction scorum::wallet::wallet_api::update_game_markets | ( | uuid_type | uuid, |
account_name_type | moderator, | ||
const std::vector< market_type > & | markets, | ||
bool | broadcast | ||
) |
Update betting markets for the game
uuid | game UUID |
moderator | betting moderator |
markets | new betting markets for this game |
broadcast | true if you wish to broadcast the transaction |
Definition at line 3268 of file wallet.cpp.
annotated_signed_transaction scorum::wallet::wallet_api::update_game_start_time | ( | uuid_type | uuid, |
account_name_type | moderator, | ||
fc::time_point_sec | start_time, | ||
bool | broadcast | ||
) |
Update game start time
uuid | game UUID |
moderator | betting moderator |
start_time | game new start time |
broadcast | true if you wish to broadcast the transaction |
Definition at line 3291 of file wallet.cpp.