-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #224 from sge-network/ref/bet-to-wager
fix failing tests and redundancy in naming conventions
- Loading branch information
Showing
68 changed files
with
898 additions
and
898 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# **Overview** | ||
|
||
The Bet module is responsible for receiving and processing requests to place and settle bets. In the case of placement, it validates the request and places the bet. | ||
The Bet module is responsible for receiving and processing requests to wager and settle bets. In the case of wagering, it validates the request and places the bet. | ||
|
||
For the settlement, blockchain automatically queries resolved markets then for each of these markets, checks the result of the market, determines the bet result, and settles the bet using `orderbook` module. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
syntax = "proto3"; | ||
package sgenetwork.sge.bet; | ||
|
||
import "sge/bet/place_bet_fields.proto"; | ||
import "sge/bet/wager.proto"; | ||
|
||
option go_package = "github.com/sge-network/sge/x/bet/types"; | ||
|
||
// Msg defines the Msg service. | ||
service Msg { | ||
|
||
// PlaceBet defines a method to place a bet with the given data. | ||
rpc PlaceBet(MsgPlaceBet) returns (MsgPlaceBetResponse); | ||
// Wager defines a method to place a bet with the given data. | ||
rpc Wager(MsgWager) returns (MsgWagerResponse); | ||
} | ||
|
||
// MsgPlaceBet defines a message to place a bet with the given data. | ||
message MsgPlaceBet { | ||
// MsgWager defines a message to place a bet with the given data. | ||
message MsgWager { | ||
// creator is the bettor address. | ||
string creator = 1; | ||
// PlaceBetFields contains bet fields. | ||
PlaceBetFields bet = 2; | ||
// props contains bet properties. | ||
WagerProps props = 2; | ||
} | ||
|
||
// MsgPlaceBetResponse is the returning value in the response | ||
// of MsgPlaceBet request. | ||
message MsgPlaceBetResponse { PlaceBetFields bet = 1; } | ||
// MsgWagerResponse is the returning value in the response | ||
// of MsgWagerResponse request. | ||
message MsgWagerResponse { WagerProps props = 1; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.