Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
plugin
Commits
c18f93fb
Commit
c18f93fb
authored
Dec 29, 2018
by
pengjun
Committed by
vipwzw
Jan 09, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pokerbull添加play交易执行
parent
285f6717
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
465 additions
and
134 deletions
+465
-134
game.go
plugin/dapp/pokerbull/commands/game.go
+51
-2
exec.go
plugin/dapp/pokerbull/executor/exec.go
+6
-0
exec_local.go
plugin/dapp/pokerbull/executor/exec_local.go
+7
-1
pokerbulldb.go
plugin/dapp/pokerbull/executor/pokerbulldb.go
+195
-45
pokerbull.proto
plugin/dapp/pokerbull/proto/pokerbull.proto
+9
-0
jrpc_channel_test.go
plugin/dapp/pokerbull/rpc/jrpc_channel_test.go
+1
-1
const.go
plugin/dapp/pokerbull/types/const.go
+11
-2
pokerbull.pb.go
plugin/dapp/pokerbull/types/pokerbull.pb.go
+183
-83
types.go
plugin/dapp/pokerbull/types/types.go
+2
-0
No files found.
plugin/dapp/pokerbull/commands/game.go
View file @
c18f93fb
...
...
@@ -28,6 +28,7 @@ func PokerBullCmd() *cobra.Command {
PokerBullContinueRawTxCmd
(),
PokerBullQuitRawTxCmd
(),
PokerBullQueryResultRawTxCmd
(),
PokerBullPlayRawTxCmd
(),
)
return
cmd
...
...
@@ -45,7 +46,7 @@ func PokerBullStartRawTxCmd() *cobra.Command {
}
func
addPokerbullStartFlags
(
cmd
*
cobra
.
Command
)
{
cmd
.
Flags
()
.
Uint64P
(
"value"
,
"
a
"
,
0
,
"value"
)
cmd
.
Flags
()
.
Uint64P
(
"value"
,
"
v
"
,
0
,
"value"
)
cmd
.
MarkFlagRequired
(
"value"
)
cmd
.
Flags
()
.
Uint32P
(
"playerCount"
,
"p"
,
0
,
"player count"
)
...
...
@@ -121,7 +122,7 @@ func pokerbullQuit(cmd *cobra.Command, args []string) {
params
:=
&
rpctypes
.
CreateTxIn
{
Execer
:
types
.
ExecName
(
pkt
.
PokerBullX
),
ActionName
:
pkt
.
Create
q
uitTx
,
ActionName
:
pkt
.
Create
Q
uitTx
,
Payload
:
[]
byte
(
fmt
.
Sprintf
(
"{
\"
gameId
\"
:
\"
%s
\"
}"
,
gameID
)),
}
...
...
@@ -130,6 +131,54 @@ func pokerbullQuit(cmd *cobra.Command, args []string) {
ctx
.
RunWithoutMarshal
()
}
// PokerBullPlayRawTxCmd 生成已匹配玩家游戏命令行
func
PokerBullPlayRawTxCmd
()
*
cobra
.
Command
{
cmd
:=
&
cobra
.
Command
{
Use
:
"play"
,
Short
:
"Play game"
,
Run
:
pokerbullPlay
,
}
addPokerbullPlayFlags
(
cmd
)
return
cmd
}
func
addPokerbullPlayFlags
(
cmd
*
cobra
.
Command
)
{
cmd
.
Flags
()
.
StringP
(
"gameID"
,
"g"
,
""
,
"game ID"
)
cmd
.
MarkFlagRequired
(
"gameID"
)
cmd
.
Flags
()
.
Uint32P
(
"round"
,
"r"
,
0
,
"round"
)
cmd
.
MarkFlagRequired
(
"round"
)
cmd
.
Flags
()
.
Uint64P
(
"value"
,
"v"
,
0
,
"value"
)
cmd
.
MarkFlagRequired
(
"value"
)
cmd
.
Flags
()
.
StringArrayP
(
"address"
,
"a"
,
nil
,
"address"
)
cmd
.
MarkFlagRequired
(
"address"
)
}
func
pokerbullPlay
(
cmd
*
cobra
.
Command
,
args
[]
string
)
{
rpcLaddr
,
_
:=
cmd
.
Flags
()
.
GetString
(
"rpc_laddr"
)
gameID
,
_
:=
cmd
.
Flags
()
.
GetString
(
"gameID"
)
round
,
_
:=
cmd
.
Flags
()
.
GetUint32
(
"round"
)
value
,
_
:=
cmd
.
Flags
()
.
GetUint64
(
"value"
)
address
,
_
:=
cmd
.
Flags
()
.
GetStringArray
(
"address"
)
payload
:=
&
pkt
.
PBGamePlay
{
GameId
:
gameID
,
Value
:
int64
(
value
)
*
types
.
Coin
,
Round
:
int32
(
round
),
}
payload
.
Address
=
make
([]
string
,
len
(
address
))
copy
(
payload
.
Address
,
address
)
params
:=
&
rpctypes
.
CreateTxIn
{
Execer
:
types
.
ExecName
(
pkt
.
PokerBullX
),
ActionName
:
pkt
.
CreatePlayTx
,
Payload
:
types
.
MustPBToJSON
(
payload
),
}
var
res
string
ctx
:=
jsonrpc
.
NewRPCCtx
(
rpcLaddr
,
"Chain33.CreateTransaction"
,
params
,
&
res
)
ctx
.
RunWithoutMarshal
()
}
// PokerBullQueryResultRawTxCmd 查询命令行
func
PokerBullQueryResultRawTxCmd
()
*
cobra
.
Command
{
cmd
:=
&
cobra
.
Command
{
...
...
plugin/dapp/pokerbull/executor/exec.go
View file @
c18f93fb
...
...
@@ -26,3 +26,9 @@ func (c *PokerBull) Exec_Quit(payload *pkt.PBGameQuit, tx *types.Transaction, in
action
:=
NewAction
(
c
,
tx
,
index
)
return
action
.
GameQuit
(
payload
)
}
// Exec_Play 已匹配玩家直接开始游戏
func
(
c
*
PokerBull
)
Exec_Play
(
payload
*
pkt
.
PBGamePlay
,
tx
*
types
.
Transaction
,
index
int
)
(
*
types
.
Receipt
,
error
)
{
action
:=
NewAction
(
c
,
tx
,
index
)
return
action
.
GamePlay
(
payload
)
}
plugin/dapp/pokerbull/executor/exec_local.go
View file @
c18f93fb
...
...
@@ -57,7 +57,7 @@ func (c *PokerBull) execLocal(receipt *types.ReceiptData) (*types.LocalDBSet, er
dbSet
:=
&
types
.
LocalDBSet
{}
for
i
:=
0
;
i
<
len
(
receipt
.
Logs
);
i
++
{
item
:=
receipt
.
Logs
[
i
]
if
item
.
Ty
==
pkt
.
TyLogPBGameStart
||
item
.
Ty
==
pkt
.
TyLogPBGameContinue
||
item
.
Ty
==
pkt
.
TyLogPBGameQuit
{
if
item
.
Ty
==
pkt
.
TyLogPBGameStart
||
item
.
Ty
==
pkt
.
TyLogPBGameContinue
||
item
.
Ty
==
pkt
.
TyLogPBGameQuit
||
item
.
Ty
==
pkt
.
TyLogPBGamePlay
{
var
Gamelog
pkt
.
ReceiptPBGame
err
:=
types
.
Decode
(
item
.
Log
,
&
Gamelog
)
if
err
!=
nil
{
...
...
@@ -84,3 +84,8 @@ func (c *PokerBull) ExecLocal_Continue(payload *pkt.PBGameContinue, tx *types.Tr
func
(
c
*
PokerBull
)
ExecLocal_Quit
(
payload
*
pkt
.
PBGameQuit
,
tx
*
types
.
Transaction
,
receiptData
*
types
.
ReceiptData
,
index
int
)
(
*
types
.
LocalDBSet
,
error
)
{
return
c
.
execLocal
(
receiptData
)
}
// ExecLocal_Play 已匹配游戏交易local执行
func
(
c
*
PokerBull
)
ExecLocal_Play
(
payload
*
pkt
.
PBGamePlay
,
tx
*
types
.
Transaction
,
receiptData
*
types
.
ReceiptData
,
index
int
)
(
*
types
.
LocalDBSet
,
error
)
{
return
c
.
execLocal
(
receiptData
)
}
\ No newline at end of file
plugin/dapp/pokerbull/executor/pokerbulldb.go
View file @
c18f93fb
...
...
@@ -5,7 +5,6 @@
package
executor
import
(
"errors"
"fmt"
"sort"
"strconv"
...
...
@@ -17,6 +16,7 @@ import (
"github.com/33cn/chain33/types"
pkt
"github.com/33cn/plugin/plugin/dapp/pokerbull/types"
"time"
"strings"
)
// Action 斗牛action结构
...
...
@@ -184,6 +184,8 @@ func (action *Action) GetReceiptLog(game *pkt.PokerBull) *types.ReceiptLog {
log
.
Ty
=
pkt
.
TyLogPBGameContinue
}
else
if
game
.
Status
==
pkt
.
PBGameActionQuit
{
log
.
Ty
=
pkt
.
TyLogPBGameQuit
}
else
if
game
.
Status
==
pkt
.
PBGameActionPlay
{
log
.
Ty
=
pkt
.
TyLogPBGamePlay
}
r
.
GameId
=
game
.
GameId
...
...
@@ -328,11 +330,11 @@ func (action *Action) settleDealerAccount(lastAddress string, game *pkt.PokerBul
result
:=
action
.
calculateDealer
(
game
)
for
_
,
hand
:=
range
result
.
Hands
{
// 最后一名玩家没有冻结
if
hand
.
Address
!=
lastAddress
{
if
lastAddress
!=
""
&&
hand
.
Address
!=
lastAddress
{
receipt
,
err
:=
action
.
coinsAccount
.
ExecActive
(
hand
.
Address
,
action
.
execaddr
,
game
.
GetValue
()
*
PokerbullLeverageMax
)
if
err
!=
nil
{
logger
.
Error
(
"GameSettleDealer.ExecActive"
,
"
addr"
,
hand
.
Address
,
"execaddr"
,
action
.
execaddr
,
"amount"
,
game
.
GetValue
()
,
"err"
,
err
)
logger
.
Error
(
"GameSettleDealer.ExecActive"
,
"
GameID"
,
game
.
GetGameId
(),
"addr"
,
hand
.
Address
,
"e
xecaddr"
,
action
.
execaddr
,
"amount"
,
game
.
GetValue
(),
"e
rr"
,
err
)
return
nil
,
nil
,
err
}
logs
=
append
(
logs
,
receipt
.
Logs
...
)
...
...
@@ -347,16 +349,16 @@ func (action *Action) settleDealerAccount(lastAddress string, game *pkt.PokerBul
receipt
,
err
=
action
.
coinsAccount
.
ExecTransfer
(
result
.
Dealer
,
hand
.
Address
,
action
.
execaddr
,
game
.
GetValue
()
*
int64
(
hand
.
Leverage
))
if
err
!=
nil
{
action
.
coinsAccount
.
ExecFrozen
(
hand
.
Address
,
action
.
execaddr
,
game
.
GetValue
())
// rollback
logger
.
Error
(
"GameSettleDealer.ExecTransfer"
,
"
addr"
,
hand
.
Address
,
"execaddr"
,
action
.
execaddr
,
"amount"
,
game
.
GetValue
()
*
int64
(
hand
.
Leverage
),
"err"
,
err
)
logger
.
Error
(
"GameSettleDealer.ExecTransfer"
,
"
GameID"
,
game
.
GetGameId
(),
"addr"
,
hand
.
Address
,
"
execaddr"
,
action
.
execaddr
,
"
amount"
,
game
.
GetValue
()
*
int64
(
hand
.
Leverage
),
"err"
,
err
)
return
nil
,
nil
,
err
}
}
else
{
receipt
,
err
=
action
.
coinsAccount
.
ExecTransfer
(
hand
.
Address
,
result
.
Dealer
,
action
.
execaddr
,
game
.
GetValue
()
*
int64
(
result
.
DealerLeverage
))
if
err
!=
nil
{
action
.
coinsAccount
.
ExecFrozen
(
hand
.
Address
,
action
.
execaddr
,
game
.
GetValue
())
// rollback
logger
.
Error
(
"GameSettleDealer.ExecTransfer"
,
"
addr"
,
hand
.
Address
,
"execaddr"
,
action
.
execaddr
,
"amount"
,
game
.
GetValue
()
*
int64
(
result
.
DealerLeverage
),
"err"
,
err
)
logger
.
Error
(
"GameSettleDealer.ExecTransfer"
,
"
GameID"
,
game
.
GetGameId
(),
"addr"
,
hand
.
Address
,
"
execaddr"
,
action
.
execaddr
,
"
amount"
,
game
.
GetValue
()
*
int64
(
result
.
DealerLeverage
),
"err"
,
err
)
return
nil
,
nil
,
err
}
}
...
...
@@ -376,11 +378,11 @@ func (action *Action) settleDefaultAccount(lastAddress string, game *pkt.PokerBu
for
_
,
player
:=
range
game
.
Players
{
// 最后一名玩家没有冻结
if
player
.
Address
!=
lastAddress
{
if
lastAddress
!=
""
&&
player
.
Address
!=
lastAddress
{
receipt
,
err
:=
action
.
coinsAccount
.
ExecActive
(
player
.
GetAddress
(),
action
.
execaddr
,
game
.
GetValue
()
*
PokerbullLeverageMax
)
if
err
!=
nil
{
logger
.
Error
(
"GameSettleDefault.ExecActive"
,
"
addr"
,
player
.
GetAddress
(),
"execaddr"
,
action
.
execaddr
,
"amount"
,
game
.
GetValue
()
*
PokerbullLeverageMax
,
"err"
,
err
)
logger
.
Error
(
"GameSettleDefault.ExecActive"
,
"
GameID"
,
game
.
GetGameId
(),
"addr"
,
player
.
GetAddress
()
,
"
execaddr"
,
action
.
execaddr
,
"
amount"
,
game
.
GetValue
()
*
PokerbullLeverageMax
,
"err"
,
err
)
return
nil
,
nil
,
err
}
logs
=
append
(
logs
,
receipt
.
Logs
...
)
...
...
@@ -392,8 +394,8 @@ func (action *Action) settleDefaultAccount(lastAddress string, game *pkt.PokerBu
receipt
,
err
:=
action
.
coinsAccount
.
ExecTransfer
(
player
.
Address
,
result
.
Winner
,
action
.
execaddr
,
game
.
GetValue
()
/**int64(result.Leverage)*/
)
//TODO Dealer:暂时不支持倍数
if
err
!=
nil
{
action
.
coinsAccount
.
ExecFrozen
(
result
.
Winner
,
action
.
execaddr
,
game
.
GetValue
())
// rollback
logger
.
Error
(
"GameSettleDefault.ExecTransfer"
,
"
addr"
,
result
.
Winner
,
"execaddr"
,
action
.
execadd
r
,
"amount"
,
game
.
GetValue
()
/**int64(result.Leverage)*/
,
"err"
,
err
)
//TODO Dealer:暂时不支持倍数
logger
.
Error
(
"GameSettleDefault.ExecTransfer"
,
"
GameID"
,
game
.
GetGameId
(),
"addr"
,
result
.
Winne
r
,
"
execaddr"
,
action
.
execaddr
,
"
amount"
,
game
.
GetValue
()
/**int64(result.Leverage)*/
,
"err"
,
err
)
//TODO Dealer:暂时不支持倍数
return
nil
,
nil
,
err
}
logs
=
append
(
logs
,
receipt
.
Logs
...
)
...
...
@@ -439,8 +441,8 @@ func (action *Action) settleAccount(lastAddress string, game *pkt.PokerBull) ([]
}
func
(
action
*
Action
)
genTxRnd
(
txhash
[]
byte
)
(
int64
,
error
)
{
randbyte
:=
make
([]
byte
,
7
)
for
i
:=
0
;
i
<
7
;
i
++
{
randbyte
:=
make
([]
byte
,
6
)
for
i
:=
0
;
i
<
6
;
i
++
{
randbyte
[
i
]
=
txhash
[
i
]
}
...
...
@@ -453,15 +455,35 @@ func (action *Action) genTxRnd(txhash []byte) (int64, error) {
return
randint
,
nil
}
func
(
action
*
Action
)
checkDupPlayerAddress
(
id
string
,
pbPlayers
[]
*
pkt
.
PBPlayer
)
error
{
func
(
action
*
Action
)
genTxRnds
(
txhash
[]
byte
,
playnum
int32
)
([]
int64
,
error
)
{
rands
:=
make
([]
int64
,
playnum
)
for
i
:=
0
;
i
<
int
(
playnum
);
i
++
{
randbyte
:=
make
([]
byte
,
6
)
for
j
:=
0
;
j
<
6
;
j
++
{
randbyte
[
j
]
=
txhash
[
i
*
6
+
j
]
}
randstr
:=
common
.
ToHex
(
randbyte
)
randint
,
err
:=
strconv
.
ParseInt
(
randstr
,
0
,
64
)
if
err
!=
nil
{
return
nil
,
err
}
rands
[
i
]
=
randint
}
return
rands
,
nil
}
func
(
action
*
Action
)
checkPlayerAddressExist
(
pbPlayers
[]
*
pkt
.
PBPlayer
)
bool
{
for
_
,
player
:=
range
pbPlayers
{
if
action
.
fromaddr
==
player
.
Address
{
logger
.
Error
(
"Poker bull game start"
,
"addr"
,
action
.
fromaddr
,
"execaddr"
,
action
.
execaddr
,
"Already in a game"
,
id
)
return
errors
.
New
(
"Address is already in a game"
)
return
true
}
}
return
nil
return
false
}
// 新建一局游戏
...
...
@@ -476,8 +498,7 @@ func (action *Action) newGame(gameID string, start *pkt.PBGameStart) (*pkt.Poker
//TODO 庄家检查闲家数量倍数的资金
if
pkt
.
DefaultStyle
==
pkt
.
PlayStyleDealer
{
if
!
action
.
CheckExecAccountBalance
(
action
.
fromaddr
,
start
.
GetValue
()
*
PokerbullLeverageMax
*
int64
(
start
.
PlayerNum
-
1
),
0
)
{
logger
.
Error
(
"GameStart"
,
"addr"
,
action
.
fromaddr
,
"execaddr"
,
action
.
execaddr
,
"id"
,
gameID
,
"err"
,
types
.
ErrNoBalance
)
logger
.
Error
(
"GameStart"
,
"GameID"
,
gameID
,
"addr"
,
action
.
fromaddr
,
"execaddr"
,
action
.
execaddr
,
"err"
,
types
.
ErrNoBalance
)
return
nil
,
types
.
ErrNoBalance
}
}
...
...
@@ -510,7 +531,8 @@ func (action *Action) selectGameFromIds(ids []string, value int64) *pkt.PokerBul
id
:=
ids
[
num
]
game
,
err
:=
action
.
readGame
(
id
)
if
err
!=
nil
{
logger
.
Error
(
"Poker bull game start"
,
"addr"
,
action
.
fromaddr
,
"execaddr"
,
action
.
execaddr
,
"get game failed"
,
id
,
"err"
,
err
)
logger
.
Error
(
"Poker bull game start"
,
"GameID"
,
id
,
"addr"
,
action
.
fromaddr
,
"execaddr"
,
action
.
execaddr
,
"get game failed"
,
"err"
,
err
)
continue
}
...
...
@@ -520,19 +542,22 @@ func (action *Action) selectGameFromIds(ids []string, value int64) *pkt.PokerBul
}
//不能自己和自己玩
if
action
.
checkDupPlayerAddress
(
id
,
game
.
Players
)
!=
nil
{
if
action
.
checkPlayerAddressExist
(
game
.
Players
)
{
logger
.
Info
(
fmt
.
Sprintf
(
"Player %s already exist in game %s"
,
action
.
fromaddr
,
id
))
continue
}
//选择合适赌注的游戏
if
value
==
0
&&
game
.
GetValue
()
!=
pkt
.
MinPlayValue
{
if
!
action
.
CheckExecAccountBalance
(
action
.
fromaddr
,
game
.
GetValue
(),
0
)
{
logger
.
Error
(
"GameStart"
,
"addr"
,
action
.
fromaddr
,
"execaddr"
,
action
.
execaddr
,
"id"
,
id
,
"err"
,
types
.
ErrNoBalance
)
logger
.
Error
(
"GameStart"
,
"GameID"
,
id
,
"addr"
,
action
.
fromaddr
,
"execaddr"
,
action
.
execaddr
,
"err"
,
types
.
ErrNoBalance
)
continue
}
}
gameRet
=
game
logger
.
Info
(
fmt
.
Sprintf
(
"Match a new game %s for player %s"
,
id
,
action
.
fromaddr
))
break
}
return
gameRet
...
...
@@ -570,7 +595,7 @@ func (action *Action) GameStart(start *pkt.PBGameStart) (*types.Receipt, error)
gameID
:=
common
.
ToHex
(
action
.
txhash
)
if
!
action
.
CheckExecAccountBalance
(
action
.
fromaddr
,
start
.
GetValue
()
*
PokerbullLeverageMax
,
0
)
{
logger
.
Error
(
"GameStart"
,
"
addr"
,
action
.
fromaddr
,
"execaddr"
,
action
.
execaddr
,
"id"
,
gameID
,
"err"
,
types
.
ErrNoBalance
)
logger
.
Error
(
"GameStart"
,
"
GameID"
,
gameID
,
"addr"
,
action
.
fromaddr
,
"execaddr"
,
action
.
execaddr
,
"err"
,
types
.
ErrNoBalance
)
return
nil
,
types
.
ErrNoBalance
}
...
...
@@ -600,7 +625,6 @@ func (action *Action) GameStart(start *pkt.PBGameStart) (*types.Receipt, error)
return
nil
,
err
}
}
logger
.
Info
(
fmt
.
Sprintf
(
"Match a new game %s for player %s"
,
game
.
GameId
,
action
.
fromaddr
))
}
//发牌随机数取txhash
...
...
@@ -636,7 +660,8 @@ func (action *Action) GameStart(start *pkt.PBGameStart) (*types.Receipt, error)
logger
.
Info
(
fmt
.
Sprintf
(
"Game waiting: %s round: %d"
,
game
.
GameId
,
game
.
Round
))
receipt
,
err
:=
action
.
coinsAccount
.
ExecFrozen
(
action
.
fromaddr
,
action
.
execaddr
,
start
.
GetValue
()
*
PokerbullLeverageMax
)
//冻结子账户资金, 最后一位玩家不需要冻结
if
err
!=
nil
{
logger
.
Error
(
"GameCreate.ExecFrozen"
,
"addr"
,
action
.
fromaddr
,
"execaddr"
,
action
.
execaddr
,
"amount"
,
start
.
GetValue
(),
"err"
,
err
.
Error
())
logger
.
Error
(
"GameCreate.ExecFrozen"
,
"GameID"
,
gameID
,
"addr"
,
action
.
fromaddr
,
"execaddr"
,
action
.
execaddr
,
"amount"
,
start
.
GetValue
(),
"err"
,
err
.
Error
())
return
nil
,
err
}
logs
=
append
(
logs
,
receipt
.
Logs
...
)
...
...
@@ -675,14 +700,14 @@ func (action *Action) GameContinue(pbcontinue *pkt.PBGameContinue) (*types.Recei
game
,
err
:=
action
.
readGame
(
pbcontinue
.
GetGameId
())
if
err
!=
nil
{
logger
.
Error
(
"GameContinue"
,
"
addr"
,
action
.
fromaddr
,
"execaddr"
,
action
.
execaddr
,
"get game failed, gameID
"
,
pbcontinue
.
GetGameId
()
,
"err"
,
err
)
logger
.
Error
(
"GameContinue"
,
"
GameID"
,
pbcontinue
.
GetGameId
(),
"addr"
,
action
.
fromaddr
,
"execaddr
"
,
action
.
execaddr
,
"get game failed"
,
"err"
,
err
)
return
nil
,
err
}
if
game
.
Status
!=
pkt
.
PBGameActionContinue
{
logger
.
Error
(
"GameContinue"
,
"
addr"
,
action
.
fromaddr
,
"execaddr"
,
action
.
execaddr
,
"Status error, gameID
"
,
pbcontinue
.
GetGameId
()
)
logger
.
Error
(
"GameContinue"
,
"
GameID"
,
pbcontinue
.
GetGameId
(),
"addr"
,
action
.
fromaddr
,
"execaddr
"
,
action
.
execaddr
,
"Status error"
)
return
nil
,
err
}
logger
.
Info
(
fmt
.
Sprintf
(
"Continue pokerbull game %s from %s"
,
game
.
GameId
,
action
.
fromaddr
))
...
...
@@ -693,21 +718,21 @@ func (action *Action) GameContinue(pbcontinue *pkt.PBGameContinue) (*types.Recei
checkValue
=
checkValue
*
int64
(
game
.
PlayerNum
-
1
)
}
if
!
action
.
CheckExecAccountBalance
(
action
.
fromaddr
,
checkValue
,
0
)
{
logger
.
Error
(
"GameContinue"
,
"
addr"
,
action
.
fromaddr
,
"execaddr"
,
action
.
execaddr
,
"id
"
,
pbcontinue
.
GetGameId
()
,
"err"
,
types
.
ErrNoBalance
)
logger
.
Error
(
"GameContinue"
,
"
GameID"
,
pbcontinue
.
GetGameId
(),
"addr"
,
action
.
fromaddr
,
"execaddr
"
,
action
.
execaddr
,
"err"
,
types
.
ErrNoBalance
)
return
nil
,
types
.
ErrNoBalance
}
// 寻找对应玩家
pbplayer
:=
getPlayerFromAddress
(
game
.
Players
,
action
.
fromaddr
)
if
pbplayer
==
nil
{
logger
.
Error
(
"GameContinue"
,
"
addr"
,
action
.
fromaddr
,
"execaddr"
,
action
.
execaddr
,
"get game player failed
"
,
pbcontinue
.
GetGameId
()
,
"err"
,
types
.
ErrNotFound
)
logger
.
Error
(
"GameContinue"
,
"
GameID"
,
pbcontinue
.
GetGameId
(),
"addr"
,
action
.
fromaddr
,
"execaddr
"
,
action
.
execaddr
,
"get game player failed"
,
"err"
,
types
.
ErrNotFound
)
return
nil
,
types
.
ErrNotFound
}
if
pbplayer
.
Ready
{
logger
.
Error
(
"GameContinue"
,
"
addr"
,
action
.
fromaddr
,
"execaddr"
,
action
.
execaddr
,
"player has been ready
"
,
pbcontinue
.
GetGameId
(),
"player"
,
pbplayer
.
Address
)
logger
.
Error
(
"GameContinue"
,
"
GameID"
,
pbcontinue
.
GetGameId
(),
"addr"
,
action
.
fromaddr
,
"execaddr
"
,
action
.
execaddr
,
"player has been ready"
)
return
nil
,
fmt
.
Errorf
(
"player %s has been ready"
,
pbplayer
.
Address
)
}
...
...
@@ -733,14 +758,15 @@ func (action *Action) GameContinue(pbcontinue *pkt.PBGameContinue) (*types.Recei
game
.
IsWaiting
=
false
game
.
PreStatus
=
pkt
.
PBGameActionContinue
}
else
{
logger
.
Info
(
fmt
.
Sprintf
(
"Game waiting: %s round: %d"
,
game
.
GameId
))
logger
.
Info
(
fmt
.
Sprintf
(
"Game waiting: %s round: %d"
,
game
.
GameId
,
game
.
Round
))
// 回合数加一次
if
!
game
.
IsWaiting
{
game
.
Round
++
}
receipt
,
err
:=
action
.
coinsAccount
.
ExecFrozen
(
action
.
fromaddr
,
action
.
execaddr
,
game
.
GetValue
()
*
PokerbullLeverageMax
)
//冻结子账户资金,最后一位玩家不需要冻结
if
err
!=
nil
{
logger
.
Error
(
"GameCreate.ExecFrozen"
,
"addr"
,
action
.
fromaddr
,
"execaddr"
,
action
.
execaddr
,
"amount"
,
game
.
GetValue
(),
"err"
,
err
.
Error
())
logger
.
Error
(
"GameCreate.ExecFrozen"
,
"GameID"
,
pbcontinue
.
GetGameId
(),
"addr"
,
action
.
fromaddr
,
"execaddr"
,
action
.
execaddr
,
"amount"
,
game
.
GetValue
(),
"err"
,
err
.
Error
())
return
nil
,
err
}
logs
=
append
(
logs
,
receipt
.
Logs
...
)
...
...
@@ -760,21 +786,30 @@ func (action *Action) GameQuit(pbend *pkt.PBGameQuit) (*types.Receipt, error) {
var
logs
[]
*
types
.
ReceiptLog
var
kv
[]
*
types
.
KeyValue
logger
.
Info
(
fmt
.
Sprintf
(
"Quit pokerbull game %s"
,
pbend
.
GameId
))
game
,
err
:=
action
.
readGame
(
pbend
.
GetGameId
())
if
err
!=
nil
{
logger
.
Error
(
"GameEnd"
,
"
addr"
,
action
.
fromaddr
,
"execaddr"
,
action
.
execaddr
,
"get game failed
"
,
pbend
.
GetGameId
()
,
"err"
,
err
)
logger
.
Error
(
"GameEnd"
,
"
GameID"
,
pbend
.
GetGameId
(),
"addr"
,
action
.
fromaddr
,
"execaddr
"
,
action
.
execaddr
,
"get game failed"
,
"err"
,
err
)
return
nil
,
err
}
if
!
action
.
checkPlayerAddressExist
(
game
.
Players
)
{
if
action
.
fromaddr
!=
pkt
.
PlatformSignAddress
{
logger
.
Error
(
"GameEnd"
,
"GameID"
,
pbend
.
GetGameId
(),
"addr"
,
action
.
fromaddr
,
"execaddr"
,
action
.
execaddr
,
"err"
,
"permission denied"
)
return
nil
,
fmt
.
Errorf
(
"permission denied"
)
}
}
// 如果游戏没有开始,激活冻结账户
if
game
.
IsWaiting
{
if
game
.
Status
==
pkt
.
PBGameActionStart
{
for
_
,
player
:=
range
game
.
Players
{
receipt
,
err
:=
action
.
coinsAccount
.
ExecActive
(
player
.
Address
,
action
.
execaddr
,
game
.
GetValue
()
*
PokerbullLeverageMax
)
if
err
!=
nil
{
logger
.
Error
(
"GameSettleDealer.ExecActive"
,
"
addr"
,
player
.
Address
,
"execaddr"
,
action
.
execaddr
,
"amount"
,
game
.
GetValue
()
,
"err"
,
err
)
logger
.
Error
(
"GameSettleDealer.ExecActive"
,
"
GameID"
,
pbend
.
GetGameId
(),
"addr"
,
player
.
Address
,
"e
xecaddr"
,
action
.
execaddr
,
"amount"
,
game
.
GetValue
(),
"e
rr"
,
err
)
continue
}
logs
=
append
(
logs
,
receipt
.
Logs
...
)
...
...
@@ -788,8 +823,8 @@ func (action *Action) GameQuit(pbend *pkt.PBGameQuit) (*types.Receipt, error) {
receipt
,
err
:=
action
.
coinsAccount
.
ExecActive
(
player
.
Address
,
action
.
execaddr
,
game
.
GetValue
()
*
PokerbullLeverageMax
)
if
err
!=
nil
{
logger
.
Error
(
"GameSettleDealer.ExecActive"
,
"
addr"
,
player
.
Address
,
"execaddr"
,
action
.
execaddr
,
"amount"
,
game
.
GetValue
()
,
"err"
,
err
)
logger
.
Error
(
"GameSettleDealer.ExecActive"
,
"
GameID"
,
pbend
.
GetGameId
(),
"addr"
,
player
.
Address
,
"e
xecaddr"
,
action
.
execaddr
,
"amount"
,
game
.
GetValue
(),
"e
rr"
,
err
)
continue
}
logs
=
append
(
logs
,
receipt
.
Logs
...
)
...
...
@@ -811,6 +846,121 @@ func (action *Action) GameQuit(pbend *pkt.PBGameQuit) (*types.Receipt, error) {
return
&
types
.
Receipt
{
Ty
:
types
.
ExecOk
,
KV
:
kv
,
Logs
:
logs
},
nil
}
// GamePlay 已匹配玩家直接游戏
func
(
action
*
Action
)
GamePlay
(
pbplay
*
pkt
.
PBGamePlay
)
(
*
types
.
Receipt
,
error
)
{
var
logs
[]
*
types
.
ReceiptLog
var
kv
[]
*
types
.
KeyValue
logger
.
Info
(
fmt
.
Sprintf
(
"Play pokerbull game %s, player:%s"
,
pbplay
.
GameId
,
strings
.
Join
(
pbplay
.
Address
,
","
)))
// 校验签名地址
if
action
.
fromaddr
!=
pkt
.
PlatformSignAddress
{
logger
.
Error
(
"Pokerbull game play"
,
"GameID"
,
pbplay
.
GetGameId
(),
"round"
,
pbplay
.
Round
,
"value"
,
pbplay
.
Value
,
"players"
,
strings
.
Join
(
pbplay
.
Address
,
","
),
"err"
,
"permission denied"
)
return
nil
,
fmt
.
Errorf
(
"game signing address not support"
)
}
// 检查玩家人数
if
len
(
pbplay
.
Address
)
<
pkt
.
MinPlayerNum
||
len
(
pbplay
.
Address
)
>
pkt
.
MaxPlayerNum
{
logger
.
Error
(
"Pokerbull game play"
,
"GameID"
,
pbplay
.
GetGameId
(),
"round"
,
pbplay
.
Round
,
"value"
,
pbplay
.
Value
,
"players"
,
strings
.
Join
(
pbplay
.
Address
,
","
),
"err"
,
"invalid player number"
)
return
nil
,
fmt
.
Errorf
(
"Invalid player number"
)
}
// 检查玩家地址余额
for
_
,
addr
:=
range
pbplay
.
Address
{
if
!
action
.
CheckExecAccountBalance
(
addr
,
pbplay
.
GetValue
()
*
PokerbullLeverageMax
,
0
)
{
logger
.
Error
(
"GamePlay"
,
"addr"
,
addr
,
"execaddr"
,
action
.
execaddr
,
"id"
,
pbplay
.
GetGameId
(),
"err"
,
types
.
ErrNoBalance
)
return
nil
,
types
.
ErrNoBalance
}
}
// 游戏存在则校验游戏状态,不存在则创建游戏
game
,
_
:=
action
.
readGame
(
pbplay
.
GetGameId
())
if
game
!=
nil
{
if
game
.
Status
==
pkt
.
PBGameActionQuit
{
logger
.
Error
(
"Pokerbull game play"
,
"GameID"
,
pbplay
.
GetGameId
(),
"round"
,
pbplay
.
Round
,
"value"
,
pbplay
.
Value
,
"players"
,
strings
.
Join
(
pbplay
.
Address
,
","
),
"err"
,
"already game over"
)
return
nil
,
fmt
.
Errorf
(
"already game over"
)
}
if
game
.
Round
+
1
!=
pbplay
.
Round
{
logger
.
Error
(
"Pokerbull game play"
,
"GameID"
,
pbplay
.
GetGameId
(),
"round"
,
pbplay
.
Round
,
"value"
,
pbplay
.
Value
,
"players"
,
strings
.
Join
(
pbplay
.
Address
,
","
),
"err"
,
"game round error"
)
return
nil
,
fmt
.
Errorf
(
"game round error"
)
}
if
game
.
Value
!=
pbplay
.
Value
{
logger
.
Error
(
"Pokerbull game play"
,
"GameID"
,
pbplay
.
GetGameId
(),
"round"
,
pbplay
.
Round
,
"value"
,
pbplay
.
Value
,
"players"
,
strings
.
Join
(
pbplay
.
Address
,
","
),
"err"
,
"game value error"
)
return
nil
,
fmt
.
Errorf
(
"game value error"
)
}
// 获取发牌随机数
rands
,
err
:=
action
.
genTxRnds
(
action
.
txhash
,
game
.
PlayerNum
)
if
err
!=
nil
{
logger
.
Error
(
"Pokerbull game play"
,
"GameID"
,
pbplay
.
GetGameId
(),
"round"
,
pbplay
.
Round
,
"value"
,
pbplay
.
Value
,
"players"
,
strings
.
Join
(
pbplay
.
Address
,
","
),
"err"
,
err
)
return
nil
,
err
}
// 更新玩家信息
for
i
,
player
:=
range
game
.
Players
{
player
.
TxHash
=
rands
[
i
]
player
.
MatchTime
=
time
.
Unix
(
action
.
blocktime
,
0
)
.
Format
(
"2006-01-02 15:04:05"
)
}
game
.
Round
++
game
.
Status
=
pkt
.
PBGameActionContinue
// 更新游戏状态
game
.
PreStatus
=
pkt
.
PBGameActionContinue
}
else
{
gameNew
,
err
:=
action
.
newGame
(
pbplay
.
GameId
,
&
pkt
.
PBGameStart
{
Value
:
pbplay
.
Value
,
PlayerNum
:
int32
(
len
(
pbplay
.
Address
))})
if
err
!=
nil
{
logger
.
Error
(
"Pokerbull game play"
,
"GameID"
,
pbplay
.
GetGameId
(),
"round"
,
pbplay
.
Round
,
"value"
,
pbplay
.
Value
,
"players"
,
strings
.
Join
(
pbplay
.
Address
,
","
),
"err"
,
err
)
return
nil
,
err
}
game
=
gameNew
// 获取发牌随机数
rands
,
err
:=
action
.
genTxRnds
(
action
.
txhash
,
game
.
PlayerNum
)
if
err
!=
nil
{
logger
.
Error
(
"Pokerbull game play"
,
"GameID"
,
pbplay
.
GetGameId
(),
"round"
,
pbplay
.
Round
,
"value"
,
pbplay
.
Value
,
"players"
,
strings
.
Join
(
pbplay
.
Address
,
","
),
"err"
,
err
)
return
nil
,
err
}
// 创建玩家信息
for
i
,
addr
:=
range
pbplay
.
Address
{
player
:=
&
pkt
.
PBPlayer
{
Address
:
addr
,
TxHash
:
rands
[
i
],
MatchTime
:
time
.
Unix
(
action
.
blocktime
,
0
)
.
Format
(
"2006-01-02 15:04:05"
),
}
game
.
Players
=
append
(
game
.
Players
,
player
)
}
game
.
Status
=
pkt
.
PBGameActionContinue
// 更新游戏状态
game
.
PreStatus
=
pkt
.
PBGameActionStart
}
logger
.
Info
(
fmt
.
Sprintf
(
"Game starting: %s round: %d"
,
game
.
GameId
,
game
.
Round
))
logsH
,
kvH
,
err
:=
action
.
settleAccount
(
""
,
game
)
if
err
!=
nil
{
return
nil
,
err
}
logs
=
append
(
logs
,
logsH
...
)
kv
=
append
(
kv
,
kvH
...
)
game
.
PrevIndex
=
game
.
Index
game
.
Index
=
action
.
getIndex
(
game
)
game
.
IsWaiting
=
false
receiptLog
:=
action
.
GetReceiptLog
(
game
)
logs
=
append
(
logs
,
receiptLog
)
kv
=
append
(
kv
,
action
.
saveGame
(
game
)
...
)
return
&
types
.
Receipt
{
Ty
:
types
.
ExecOk
,
KV
:
kv
,
Logs
:
logs
},
nil
}
// HandSlice 一手牌
type
HandSlice
[]
*
pkt
.
PBHand
...
...
plugin/dapp/pokerbull/proto/pokerbull.proto
View file @
c18f93fb
...
...
@@ -64,6 +64,7 @@ message PBGameAction {
PBGameContinue
continue
=
2
;
PBGameQuit
quit
=
3
;
PBGameQuery
query
=
4
;
PBGamePlay
play
=
5
;
}
int32
ty
=
10
;
}
...
...
@@ -89,6 +90,14 @@ message PBGameQuery {
string
gameId
=
1
;
}
//已匹配玩家直接游戏
message
PBGamePlay
{
string
gameId
=
1
;
//游戏id
int32
round
=
2
;
//当前游戏回合数
int64
value
=
3
;
//当前游戏赌注
repeated
string
address
=
4
;
//玩家地址
}
//根据状态和游戏人数查找
message
QueryPBGameListByStatusAndPlayerNum
{
int32
status
=
1
;
...
...
plugin/dapp/pokerbull/rpc/jrpc_channel_test.go
View file @
c18f93fb
...
...
@@ -97,7 +97,7 @@ func testQuitRawTxCmd(t *testing.T, jrpc *jsonclient.JSONClient) error {
payload
:=
&
pty
.
PBGameQuit
{
GameId
:
"123"
}
params
:=
&
rpctypes
.
CreateTxIn
{
Execer
:
types
.
ExecName
(
pty
.
PokerBullX
),
ActionName
:
pty
.
Create
q
uitTx
,
ActionName
:
pty
.
Create
Q
uitTx
,
Payload
:
types
.
MustPBToJSON
(
payload
),
}
var
res
string
...
...
plugin/dapp/pokerbull/types/const.go
View file @
c18f93fb
...
...
@@ -12,6 +12,7 @@ const (
PBGameActionContinue
PBGameActionQuit
PBGameActionQuery
PBGameActionPlay
)
const
(
...
...
@@ -30,6 +31,8 @@ const (
TyLogPBGameQuit
=
723
// TyLogPBGameQuery log for query PBgame
TyLogPBGameQuery
=
724
// TyLogPBGamePlay log for play PBgame
TyLogPBGamePlay
=
725
)
//包的名字可以通过配置文件来配置
...
...
@@ -56,8 +59,10 @@ const (
CreateStartTx
=
"Start"
// CreateContinueTx 创建继续交易
CreateContinueTx
=
"Continue"
// CreatequitTx 创建退出交易
CreatequitTx
=
"Quit"
// CreateQuitTx 创建退出交易
CreateQuitTx
=
"Quit"
// CreatePlayTx 创建已匹配玩家交易
CreatePlayTx
=
"Play"
)
const
(
...
...
@@ -67,6 +72,8 @@ const (
DefaultCount
=
int32
(
20
)
// MaxPlayerNum 最大玩家数
MaxPlayerNum
=
5
// MinPlayerNum 最小玩家数
MinPlayerNum
=
2
// MinPlayValue 最小赌注
MinPlayValue
=
10
*
types
.
Coin
// DefaultStyle 默认游戏类型
...
...
@@ -81,4 +88,6 @@ const (
DeveloperFee
=
int64
(
0.005
*
float64
(
types
.
Coin
))
// WinnerReturn 赢家回报率
WinnerReturn
=
types
.
Coin
-
DeveloperFee
// PlatformSignAddress 平台签名地址
PlatformSignAddress
=
"1Geb4ppNiAwMKKyrJgcis3JA57FkqsXvdR"
)
plugin/dapp/pokerbull/types/pokerbull.pb.go
View file @
c18f93fb
...
...
@@ -467,6 +467,7 @@ type PBGameAction struct {
// *PBGameAction_Continue
// *PBGameAction_Quit
// *PBGameAction_Query
// *PBGameAction_Play
Value
isPBGameAction_Value
`protobuf_oneof:"value"`
Ty
int32
`protobuf:"varint,10,opt,name=ty,proto3" json:"ty,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
...
...
@@ -519,6 +520,10 @@ type PBGameAction_Query struct {
Query
*
PBGameQuery
`protobuf:"bytes,4,opt,name=query,proto3,oneof"`
}
type
PBGameAction_Play
struct
{
Play
*
PBGamePlay
`protobuf:"bytes,5,opt,name=play,proto3,oneof"`
}
func
(
*
PBGameAction_Start
)
isPBGameAction_Value
()
{}
func
(
*
PBGameAction_Continue
)
isPBGameAction_Value
()
{}
...
...
@@ -527,6 +532,8 @@ func (*PBGameAction_Quit) isPBGameAction_Value() {}
func
(
*
PBGameAction_Query
)
isPBGameAction_Value
()
{}
func
(
*
PBGameAction_Play
)
isPBGameAction_Value
()
{}
func
(
m
*
PBGameAction
)
GetValue
()
isPBGameAction_Value
{
if
m
!=
nil
{
return
m
.
Value
...
...
@@ -562,6 +569,13 @@ func (m *PBGameAction) GetQuery() *PBGameQuery {
return
nil
}
func
(
m
*
PBGameAction
)
GetPlay
()
*
PBGamePlay
{
if
x
,
ok
:=
m
.
GetValue
()
.
(
*
PBGameAction_Play
);
ok
{
return
x
.
Play
}
return
nil
}
func
(
m
*
PBGameAction
)
GetTy
()
int32
{
if
m
!=
nil
{
return
m
.
Ty
...
...
@@ -576,6 +590,7 @@ func (*PBGameAction) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer)
(
*
PBGameAction_Continue
)(
nil
),
(
*
PBGameAction_Quit
)(
nil
),
(
*
PBGameAction_Query
)(
nil
),
(
*
PBGameAction_Play
)(
nil
),
}
}
...
...
@@ -603,6 +618,11 @@ func _PBGameAction_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
if
err
:=
b
.
EncodeMessage
(
x
.
Query
);
err
!=
nil
{
return
err
}
case
*
PBGameAction_Play
:
b
.
EncodeVarint
(
5
<<
3
|
proto
.
WireBytes
)
if
err
:=
b
.
EncodeMessage
(
x
.
Play
);
err
!=
nil
{
return
err
}
case
nil
:
default
:
return
fmt
.
Errorf
(
"PBGameAction.Value has unexpected type %T"
,
x
)
...
...
@@ -645,6 +665,14 @@ func _PBGameAction_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.B
err
:=
b
.
DecodeMessage
(
msg
)
m
.
Value
=
&
PBGameAction_Query
{
msg
}
return
true
,
err
case
5
:
// value.play
if
wire
!=
proto
.
WireBytes
{
return
true
,
proto
.
ErrInternalBadWireType
}
msg
:=
new
(
PBGamePlay
)
err
:=
b
.
DecodeMessage
(
msg
)
m
.
Value
=
&
PBGameAction_Play
{
msg
}
return
true
,
err
default
:
return
false
,
nil
}
...
...
@@ -674,6 +702,11 @@ func _PBGameAction_OneofSizer(msg proto.Message) (n int) {
n
+=
1
// tag and wire
n
+=
proto
.
SizeVarint
(
uint64
(
s
))
n
+=
s
case
*
PBGameAction_Play
:
s
:=
proto
.
Size
(
x
.
Play
)
n
+=
1
// tag and wire
n
+=
proto
.
SizeVarint
(
uint64
(
s
))
n
+=
s
case
nil
:
default
:
panic
(
fmt
.
Sprintf
(
"proto: unexpected type %T in oneof"
,
x
))
...
...
@@ -849,6 +882,70 @@ func (m *PBGameQuery) GetGameId() string {
return
""
}
//已匹配玩家直接游戏
type
PBGamePlay
struct
{
GameId
string
`protobuf:"bytes,1,opt,name=gameId,proto3" json:"gameId,omitempty"`
Round
int32
`protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"`
Value
int64
`protobuf:"varint,3,opt,name=value,proto3" json:"value,omitempty"`
Address
[]
string
`protobuf:"bytes,4,rep,name=address,proto3" json:"address,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
PBGamePlay
)
Reset
()
{
*
m
=
PBGamePlay
{}
}
func
(
m
*
PBGamePlay
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
PBGamePlay
)
ProtoMessage
()
{}
func
(
*
PBGamePlay
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_8d22e4ee2313e311
,
[]
int
{
10
}
}
func
(
m
*
PBGamePlay
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_PBGamePlay
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
PBGamePlay
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_PBGamePlay
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
PBGamePlay
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_PBGamePlay
.
Merge
(
m
,
src
)
}
func
(
m
*
PBGamePlay
)
XXX_Size
()
int
{
return
xxx_messageInfo_PBGamePlay
.
Size
(
m
)
}
func
(
m
*
PBGamePlay
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_PBGamePlay
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_PBGamePlay
proto
.
InternalMessageInfo
func
(
m
*
PBGamePlay
)
GetGameId
()
string
{
if
m
!=
nil
{
return
m
.
GameId
}
return
""
}
func
(
m
*
PBGamePlay
)
GetRound
()
int32
{
if
m
!=
nil
{
return
m
.
Round
}
return
0
}
func
(
m
*
PBGamePlay
)
GetValue
()
int64
{
if
m
!=
nil
{
return
m
.
Value
}
return
0
}
func
(
m
*
PBGamePlay
)
GetAddress
()
[]
string
{
if
m
!=
nil
{
return
m
.
Address
}
return
nil
}
//根据状态和游戏人数查找
type
QueryPBGameListByStatusAndPlayerNum
struct
{
Status
int32
`protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
...
...
@@ -863,7 +960,7 @@ func (m *QueryPBGameListByStatusAndPlayerNum) Reset() { *m = QueryPBGame
func
(
m
*
QueryPBGameListByStatusAndPlayerNum
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
QueryPBGameListByStatusAndPlayerNum
)
ProtoMessage
()
{}
func
(
*
QueryPBGameListByStatusAndPlayerNum
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_8d22e4ee2313e311
,
[]
int
{
1
0
}
return
fileDescriptor_8d22e4ee2313e311
,
[]
int
{
1
1
}
}
func
(
m
*
QueryPBGameListByStatusAndPlayerNum
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
...
@@ -919,7 +1016,7 @@ func (m *PBGameRecord) Reset() { *m = PBGameRecord{} }
func
(
m
*
PBGameRecord
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
PBGameRecord
)
ProtoMessage
()
{}
func
(
*
PBGameRecord
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_8d22e4ee2313e311
,
[]
int
{
1
1
}
return
fileDescriptor_8d22e4ee2313e311
,
[]
int
{
1
2
}
}
func
(
m
*
PBGameRecord
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
...
@@ -973,7 +1070,7 @@ func (m *PBGameIndexRecord) Reset() { *m = PBGameIndexRecord{} }
func
(
m
*
PBGameIndexRecord
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
PBGameIndexRecord
)
ProtoMessage
()
{}
func
(
*
PBGameIndexRecord
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_8d22e4ee2313e311
,
[]
int
{
1
2
}
return
fileDescriptor_8d22e4ee2313e311
,
[]
int
{
1
3
}
}
func
(
m
*
PBGameIndexRecord
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
...
@@ -1019,7 +1116,7 @@ func (m *PBGameRecords) Reset() { *m = PBGameRecords{} }
func
(
m
*
PBGameRecords
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
PBGameRecords
)
ProtoMessage
()
{}
func
(
*
PBGameRecords
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_8d22e4ee2313e311
,
[]
int
{
1
3
}
return
fileDescriptor_8d22e4ee2313e311
,
[]
int
{
1
4
}
}
func
(
m
*
PBGameRecords
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
...
@@ -1058,7 +1155,7 @@ func (m *PBGameIndexRecords) Reset() { *m = PBGameIndexRecords{} }
func
(
m
*
PBGameIndexRecords
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
PBGameIndexRecords
)
ProtoMessage
()
{}
func
(
*
PBGameIndexRecords
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_8d22e4ee2313e311
,
[]
int
{
1
4
}
return
fileDescriptor_8d22e4ee2313e311
,
[]
int
{
1
5
}
}
func
(
m
*
PBGameIndexRecords
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
...
@@ -1100,7 +1197,7 @@ func (m *QueryPBGameInfo) Reset() { *m = QueryPBGameInfo{} }
func
(
m
*
QueryPBGameInfo
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
QueryPBGameInfo
)
ProtoMessage
()
{}
func
(
*
QueryPBGameInfo
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_8d22e4ee2313e311
,
[]
int
{
1
5
}
return
fileDescriptor_8d22e4ee2313e311
,
[]
int
{
1
6
}
}
func
(
m
*
QueryPBGameInfo
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
...
@@ -1160,7 +1257,7 @@ func (m *ReplyPBGame) Reset() { *m = ReplyPBGame{} }
func
(
m
*
ReplyPBGame
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReplyPBGame
)
ProtoMessage
()
{}
func
(
*
ReplyPBGame
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_8d22e4ee2313e311
,
[]
int
{
1
6
}
return
fileDescriptor_8d22e4ee2313e311
,
[]
int
{
1
7
}
}
func
(
m
*
ReplyPBGame
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
...
@@ -1199,7 +1296,7 @@ func (m *QueryPBGameInfos) Reset() { *m = QueryPBGameInfos{} }
func
(
m
*
QueryPBGameInfos
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
QueryPBGameInfos
)
ProtoMessage
()
{}
func
(
*
QueryPBGameInfos
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_8d22e4ee2313e311
,
[]
int
{
1
7
}
return
fileDescriptor_8d22e4ee2313e311
,
[]
int
{
1
8
}
}
func
(
m
*
QueryPBGameInfos
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
...
@@ -1238,7 +1335,7 @@ func (m *ReplyPBGameList) Reset() { *m = ReplyPBGameList{} }
func
(
m
*
ReplyPBGameList
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReplyPBGameList
)
ProtoMessage
()
{}
func
(
*
ReplyPBGameList
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_8d22e4ee2313e311
,
[]
int
{
1
8
}
return
fileDescriptor_8d22e4ee2313e311
,
[]
int
{
1
9
}
}
func
(
m
*
ReplyPBGameList
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
...
@@ -1279,7 +1376,7 @@ func (m *QueryPBGameByRound) Reset() { *m = QueryPBGameByRound{} }
func
(
m
*
QueryPBGameByRound
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
QueryPBGameByRound
)
ProtoMessage
()
{}
func
(
*
QueryPBGameByRound
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_8d22e4ee2313e311
,
[]
int
{
19
}
return
fileDescriptor_8d22e4ee2313e311
,
[]
int
{
20
}
}
func
(
m
*
QueryPBGameByRound
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
...
@@ -1332,7 +1429,7 @@ func (m *ReplyPBGameByRound) Reset() { *m = ReplyPBGameByRound{} }
func
(
m
*
ReplyPBGameByRound
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReplyPBGameByRound
)
ProtoMessage
()
{}
func
(
*
ReplyPBGameByRound
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_8d22e4ee2313e311
,
[]
int
{
2
0
}
return
fileDescriptor_8d22e4ee2313e311
,
[]
int
{
2
1
}
}
func
(
m
*
ReplyPBGameByRound
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
...
@@ -1423,7 +1520,7 @@ func (m *ReceiptPBGame) Reset() { *m = ReceiptPBGame{} }
func
(
m
*
ReceiptPBGame
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReceiptPBGame
)
ProtoMessage
()
{}
func
(
*
ReceiptPBGame
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_8d22e4ee2313e311
,
[]
int
{
2
1
}
return
fileDescriptor_8d22e4ee2313e311
,
[]
int
{
2
2
}
}
func
(
m
*
ReceiptPBGame
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
...
@@ -1534,7 +1631,7 @@ func (m *PBStartTxReq) Reset() { *m = PBStartTxReq{} }
func
(
m
*
PBStartTxReq
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
PBStartTxReq
)
ProtoMessage
()
{}
func
(
*
PBStartTxReq
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_8d22e4ee2313e311
,
[]
int
{
2
2
}
return
fileDescriptor_8d22e4ee2313e311
,
[]
int
{
2
3
}
}
func
(
m
*
PBStartTxReq
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
...
@@ -1588,7 +1685,7 @@ func (m *PBContinueTxReq) Reset() { *m = PBContinueTxReq{} }
func
(
m
*
PBContinueTxReq
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
PBContinueTxReq
)
ProtoMessage
()
{}
func
(
*
PBContinueTxReq
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_8d22e4ee2313e311
,
[]
int
{
2
3
}
return
fileDescriptor_8d22e4ee2313e311
,
[]
int
{
2
4
}
}
func
(
m
*
PBContinueTxReq
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
...
@@ -1635,7 +1732,7 @@ func (m *PBQuitTxReq) Reset() { *m = PBQuitTxReq{} }
func
(
m
*
PBQuitTxReq
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
PBQuitTxReq
)
ProtoMessage
()
{}
func
(
*
PBQuitTxReq
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_8d22e4ee2313e311
,
[]
int
{
2
4
}
return
fileDescriptor_8d22e4ee2313e311
,
[]
int
{
2
5
}
}
func
(
m
*
PBQuitTxReq
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
...
@@ -1682,7 +1779,7 @@ func (m *PBQueryReq) Reset() { *m = PBQueryReq{} }
func
(
m
*
PBQueryReq
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
PBQueryReq
)
ProtoMessage
()
{}
func
(
*
PBQueryReq
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_8d22e4ee2313e311
,
[]
int
{
2
5
}
return
fileDescriptor_8d22e4ee2313e311
,
[]
int
{
2
6
}
}
func
(
m
*
PBQueryReq
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
...
@@ -1728,6 +1825,7 @@ func init() {
proto
.
RegisterType
((
*
PBGameContinue
)(
nil
),
"types.PBGameContinue"
)
proto
.
RegisterType
((
*
PBGameQuit
)(
nil
),
"types.PBGameQuit"
)
proto
.
RegisterType
((
*
PBGameQuery
)(
nil
),
"types.PBGameQuery"
)
proto
.
RegisterType
((
*
PBGamePlay
)(
nil
),
"types.PBGamePlay"
)
proto
.
RegisterType
((
*
QueryPBGameListByStatusAndPlayerNum
)(
nil
),
"types.QueryPBGameListByStatusAndPlayerNum"
)
proto
.
RegisterType
((
*
PBGameRecord
)(
nil
),
"types.PBGameRecord"
)
proto
.
RegisterType
((
*
PBGameIndexRecord
)(
nil
),
"types.PBGameIndexRecord"
)
...
...
@@ -1749,71 +1847,73 @@ func init() {
func
init
()
{
proto
.
RegisterFile
(
"pokerbull.proto"
,
fileDescriptor_8d22e4ee2313e311
)
}
var
fileDescriptor_8d22e4ee2313e311
=
[]
byte
{
// 1045 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0x9c
,
0x56
,
0x5f
,
0x6f
,
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0x9d
,
0x0f
,
0x28
,
0xdf
,
0x6c
,
0x08
,
0xa4
,
0xa0
,
0x6b
,
0xf9
,
0xc6
,
0x65
,
0xfc
,
0xee
,
0xff
,
0x0c
,
0x07
,
0x72
,
0x04
,
0xce
,
0x3b
,
0xae
,
0x79
,
0x56
,
0x7c
,
0x06
,
0xdf
,
0xc3
,
0x68
,
0x31
,
0xd3
,
0xa3
,
0x42
,
0x06
,
0xee
,
0x3a
,
0x00
,
0xb5
,
0xd8
,
0xae
,
0x17
,
0x7f
,
0x27
,
0x66
,
0xc3
,
0x15
,
0xbe
,
0x2a
,
0xf7
,
0x5b
,
0xf8
,
0xad
,
0x98
,
0x16
,
0x78
,
0x45
,
0xf6
,
0x5a
,
0xf7
,
0xd6
,
0xc3
,
0x5f
,
0x8c
,
0xf3
,
0x7f
,
0x03
,
0x00
,
0x00
,
0xff
,
0xff
,
0xb4
,
0x58
,
0xec
,
0xbf
,
0x75
,
0x0c
,
0x00
,
0x00
,
}
plugin/dapp/pokerbull/types/types.go
View file @
c18f93fb
...
...
@@ -46,6 +46,7 @@ func (t *PokerBullType) GetTypeMap() map[string]int32 {
"Continue"
:
PBGameActionContinue
,
"Quit"
:
PBGameActionQuit
,
"Query"
:
PBGameActionQuery
,
"Play"
:
PBGameActionPlay
,
}
}
...
...
@@ -56,5 +57,6 @@ func (t *PokerBullType) GetLogMap() map[int64]*types.LogInfo {
TyLogPBGameContinue
:
{
Ty
:
reflect
.
TypeOf
(
ReceiptPBGame
{}),
Name
:
"TyLogPBGameContinue"
},
TyLogPBGameQuit
:
{
Ty
:
reflect
.
TypeOf
(
ReceiptPBGame
{}),
Name
:
"TyLogPBGameQuit"
},
TyLogPBGameQuery
:
{
Ty
:
reflect
.
TypeOf
(
ReceiptPBGame
{}),
Name
:
"TyLogPBGameQuery"
},
TyLogPBGamePlay
:
{
Ty
:
reflect
.
TypeOf
(
ReceiptPBGame
{}),
Name
:
"TyLogPBGamePlay"
},
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment