Scorum
Public Attributes | List of all members
scorum::protocol::create_game_operation Struct Reference

This operation creates game object. More...

#include <scorum_operations.hpp>

Inheritance diagram for scorum::protocol::create_game_operation:
scorum::protocol::base_operation

Public Attributes

uuid_type uuid = boost::uuids::nil_uuid()
 Universal Unique Identifier which is unique for each game. More...
 
account_name_type moderator
 moderator account name More...
 
std::string json_metadata
 JSON metadata. More...
 
time_point_sec start_time
 game start time More...
 
uint32_t auto_resolve_delay_sec = 0
 delay starting from start after which all bets are automatically resolved if game results weren't provided More...
 
game_type game
 game type (soccer, hockey, etc ...) More...
 
std::vector< market_typemarkets
 list of markets More...
 

Additional Inherited Members

- Public Member Functions inherited from scorum::protocol::base_operation
void get_required_authorities (std::vector< authority > &) const
 
void get_required_active_authorities (flat_set< account_name_type > &) const
 
void get_required_posting_authorities (flat_set< account_name_type > &) const
 
void get_required_owner_authorities (flat_set< account_name_type > &) const
 
bool is_virtual () const
 
void validate () const
 

Detailed Description

This operation creates game object.

Game will have status 'created' until start_time < head_block_time. Game status changed to 'started' when start_time >= head_block_time. Game status changed to 'finished' when moderator performs post_game_results_operation

Definition at line 968 of file scorum_operations.hpp.

Member Data Documentation

◆ auto_resolve_delay_sec

uint32_t scorum::protocol::create_game_operation::auto_resolve_delay_sec = 0

delay starting from start after which all bets are automatically resolved if game results weren't provided

Definition at line 983 of file scorum_operations.hpp.

◆ game

game_type scorum::protocol::create_game_operation::game

game type (soccer, hockey, etc ...)

Definition at line 986 of file scorum_operations.hpp.

◆ json_metadata

std::string scorum::protocol::create_game_operation::json_metadata

JSON metadata.

Definition at line 977 of file scorum_operations.hpp.

◆ markets

std::vector<market_type> scorum::protocol::create_game_operation::markets

list of markets

Definition at line 989 of file scorum_operations.hpp.

◆ moderator

account_name_type scorum::protocol::create_game_operation::moderator

moderator account name

Definition at line 974 of file scorum_operations.hpp.

◆ start_time

time_point_sec scorum::protocol::create_game_operation::start_time

game start time

Definition at line 980 of file scorum_operations.hpp.

◆ uuid

uuid_type scorum::protocol::create_game_operation::uuid = boost::uuids::nil_uuid()

Universal Unique Identifier which is unique for each game.

Definition at line 971 of file scorum_operations.hpp.


The documentation for this struct was generated from the following file: