Unverified Commit cf38751f authored by vipwzw's avatar vipwzw Committed by GitHub

Merge pull request #113 from harrylee2015/addExecName

reset exector name
parents 748d60d9 61b903f8
......@@ -52,6 +52,11 @@ func NewType() *EvmType {
return c
}
// GetName 获取执行器名称
func (evm *EvmType) GetName() string {
return ExecutorName
}
// GetPayload 获取消息负载结构
func (evm *EvmType) GetPayload() types.Message {
return &EVMContractAction{}
......
......@@ -42,6 +42,11 @@ type GameType struct {
types.ExecTypeBase
}
// GetName 获取执行器名称
func (gt *GameType) GetName() string {
return GameX
}
// GetLogMap get log
func (gt *GameType) GetLogMap() map[int64]*types.LogInfo {
return map[int64]*types.LogInfo{
......
......@@ -35,6 +35,11 @@ func NewType() *HashlockType {
return c
}
// GetName 获取执行器名称
func (hashlock *HashlockType) GetName() string {
return HashlockX
}
// GetPayload method
func (hashlock *HashlockType) GetPayload() types.Message {
return &HashlockAction{}
......
......@@ -35,6 +35,11 @@ func NewType() *LotteryType {
return c
}
// GetName 获取执行器名称
func (lottery *LotteryType) GetName() string {
return LotteryX
}
// GetLogMap method
func (lottery *LotteryType) GetLogMap() map[int64]*types.LogInfo {
return map[int64]*types.LogInfo{
......
......@@ -29,6 +29,11 @@ func NewType() *NormType {
return c
}
// GetName 获取执行器名称
func (norm *NormType) GetName() string {
return NormX
}
// GetPayload method
func (norm *NormType) GetPayload() types.Message {
return &NormAction{}
......
......@@ -42,6 +42,11 @@ func NewType() *ParacrossType {
return c
}
// GetName 获取执行器名称
func (p *ParacrossType) GetName() string {
return ParaX
}
// GetLogMap get receipt log map
func (p *ParacrossType) GetLogMap() map[int64]*types.LogInfo {
return map[int64]*types.LogInfo{
......
......@@ -29,6 +29,11 @@ func NewType() *PokerBullType {
return c
}
// GetName 获取执行器名称
func (t *PokerBullType) GetName() string {
return PokerBullX
}
// GetPayload 获取payload
func (t *PokerBullType) GetPayload() types.Message {
return &PBGameAction{}
......
......@@ -31,6 +31,11 @@ func NewType() *TokenType {
return c
}
// GetName 获取执行器名称
func (t *TokenType) GetName() string {
return TokenX
}
// GetPayload 获取token action
func (t *TokenType) GetPayload() types.Message {
return &TokenAction{}
......
......@@ -43,6 +43,11 @@ type UnfreezeType struct {
types.ExecTypeBase
}
// GetName 获取执行器名称
func (u *UnfreezeType) GetName() string {
return UnfreezeX
}
// GetLogMap 获得日志类型列表
func (u *UnfreezeType) GetLogMap() map[int64]*types.LogInfo {
return map[int64]*types.LogInfo{
......
......@@ -29,6 +29,11 @@ func NewType() *ValNodeType {
return c
}
// GetName 获取执行器名称
func (t *ValNodeType) GetName() string {
return ValNodeX
}
// GetPayload method
func (t *ValNodeType) GetPayload() types.Message {
return &ValNodeAction{}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment