Store
This section defines the way in which the state of the Market is being stored in the chain.
Market
A market is an entity being stored in the SGE Network chain to hold the data related to a market that has been verifiably pushed to the blockchain. It contains the following fields:
uid
: It is the unique identifier of a market.start_ts
: It is the timestamp when a particular market will start.end_ts
: It is the timestamp when a particular market will end.odds
: It is a list of all the odds for a particular market. themeta
is a human-readable description of the odds, it can be a JSON string to be used by oracle services. Ex:{ "uid" :uid_win_event, "meta": "tam A wins" }, { "uid": uid_draw_event, "meta": "draw"}, { "uid": uid_loose_event, "meta": "team A loose"}
winner_odds_uids
: It is a list of all the UIDs of odds that have won the market. This should necessarily be a subset of the above-provided odds_uids.status
: It defines the current state of the market.resolution_ts
: It is the timestamp when the market came to a resolution i.e. when the system received a resolution request for a market.creator
: It holds the account address responsible for the addition of the market to the blockchain.meta
: It is a human-readable description of the market, it can be a JSON string to be used by oracle services.book_id
is the ID of the order book created and assigned to the market, this is the same value as market UID.
The proto for the market is as follows:
Market Status
The status of a market in the chain can be defined in either of the five following ways:
Last updated