Commit ec973d22 authored by QM's avatar QM

change board.proto lcommon.proto

parent 6204cb8f
...@@ -59,11 +59,11 @@ func (a *action) getPropBoard(prob *auty.ProposalBoard) (*auty.ActiveBoard, erro ...@@ -59,11 +59,11 @@ func (a *action) getPropBoard(prob *auty.ProposalBoard) (*auty.ActiveBoard, erro
} }
switch prob.BoardUpdate { switch prob.BoardUpdate {
case auty.BoardUpdate_WHOLE: case auty.BoardUpdate_REPLACEALL:
return &auty.ActiveBoard{Boards: prob.Boards}, nil return &auty.ActiveBoard{Boards: prob.Boards}, nil
case auty.BoardUpdate_ADD: case auty.BoardUpdate_ADDBoard:
return a.addPropBoard(prob, mpBd) return a.addPropBoard(prob, mpBd)
case auty.BoardUpdate_DEL: case auty.BoardUpdate_DELBoard:
return a.delPropBoard(prob, mpBd) return a.delPropBoard(prob, mpBd)
default: default:
return nil, errors.Wrapf(types.ErrInvalidParam, "board update param=%d", prob.BoardUpdate) return nil, errors.Wrapf(types.ErrInvalidParam, "board update param=%d", prob.BoardUpdate)
...@@ -366,7 +366,7 @@ func (a *action) votePropBoard(voteProb *auty.VoteProposalBoard) (*types.Receipt ...@@ -366,7 +366,7 @@ func (a *action) votePropBoard(voteProb *auty.VoteProposalBoard) (*types.Receipt
// 更新当前具有权利的董事会成员 // 更新当前具有权利的董事会成员
if cur.VoteResult.Pass { if cur.VoteResult.Pass {
if a.api.GetConfig().IsDappFork(a.height, auty.AutonomyX, auty.ForkAutonomyDelRule) { if a.api.GetConfig().IsDappFork(a.height, auty.AutonomyX, auty.ForkAutonomyDelRule) {
if cur.PropBoard.BoardUpdate == auty.BoardUpdate_WHOLE { if cur.PropBoard.BoardUpdate == auty.BoardUpdate_REPLACEALL {
cur.Board.StartHeight = a.height cur.Board.StartHeight = a.height
} }
} else { } else {
...@@ -476,7 +476,7 @@ func (a *action) tmintPropBoard(tmintProb *auty.TerminateProposalBoard) (*types. ...@@ -476,7 +476,7 @@ func (a *action) tmintPropBoard(tmintProb *auty.TerminateProposalBoard) (*types.
// 更新当前具有权利的董事会成员 // 更新当前具有权利的董事会成员
if cur.VoteResult.Pass { if cur.VoteResult.Pass {
if a.api.GetConfig().IsDappFork(a.height, auty.AutonomyX, auty.ForkAutonomyDelRule) { if a.api.GetConfig().IsDappFork(a.height, auty.AutonomyX, auty.ForkAutonomyDelRule) {
if cur.PropBoard.BoardUpdate == auty.BoardUpdate_WHOLE { if cur.PropBoard.BoardUpdate == auty.BoardUpdate_REPLACEALL {
cur.Board.StartHeight = a.height cur.Board.StartHeight = a.height
} }
} else { } else {
......
...@@ -196,43 +196,43 @@ func TestPropBoard(t *testing.T) { ...@@ -196,43 +196,43 @@ func TestPropBoard(t *testing.T) {
opts := []*auty.ProposalBoard{ opts := []*auty.ProposalBoard{
{ // ErrRepeatAddr { // ErrRepeatAddr
BoardUpdate: auty.BoardUpdate_ADD, BoardUpdate: auty.BoardUpdate_ADDBoard,
Boards: []string{"18e1nfiux7aVSfN2zYUZhbidMRokbBSPA6", "18e1nfiux7aVSfN2zYUZhbidMRokbBSPA6"}, Boards: []string{"18e1nfiux7aVSfN2zYUZhbidMRokbBSPA6", "18e1nfiux7aVSfN2zYUZhbidMRokbBSPA6"},
StartBlockHeight: env.blockHeight + 5, StartBlockHeight: env.blockHeight + 5,
EndBlockHeight: env.blockHeight + startEndBlockPeriod + 10, EndBlockHeight: env.blockHeight + startEndBlockPeriod + 10,
}, },
{ // ErrRepeatAddr { // ErrRepeatAddr
BoardUpdate: auty.BoardUpdate_ADD, BoardUpdate: auty.BoardUpdate_ADDBoard,
Boards: []string{"18e1nfiux7aVSfN2zYUZhbidMRokbBSPA6", AddrA}, Boards: []string{"18e1nfiux7aVSfN2zYUZhbidMRokbBSPA6", AddrA},
StartBlockHeight: env.blockHeight + 5, StartBlockHeight: env.blockHeight + 5,
EndBlockHeight: env.blockHeight + startEndBlockPeriod + 10, EndBlockHeight: env.blockHeight + startEndBlockPeriod + 10,
}, },
{ // ErrBoardNumber { // ErrBoardNumber
BoardUpdate: auty.BoardUpdate_ADD, BoardUpdate: auty.BoardUpdate_ADDBoard,
StartBlockHeight: env.blockHeight + 5, StartBlockHeight: env.blockHeight + 5,
EndBlockHeight: env.blockHeight + startEndBlockPeriod + 10, EndBlockHeight: env.blockHeight + startEndBlockPeriod + 10,
}, },
{ // 正常 { // 正常
BoardUpdate: auty.BoardUpdate_ADD, BoardUpdate: auty.BoardUpdate_ADDBoard,
Boards: []string{"18e1nfiux7aVSfN2zYUZhbidMRokbBSPA6"}, Boards: []string{"18e1nfiux7aVSfN2zYUZhbidMRokbBSPA6"},
StartBlockHeight: env.blockHeight + 5, StartBlockHeight: env.blockHeight + 5,
EndBlockHeight: env.blockHeight + startEndBlockPeriod + 10, EndBlockHeight: env.blockHeight + startEndBlockPeriod + 10,
}, },
{ // ErrRepeatAddr { // ErrRepeatAddr
BoardUpdate: auty.BoardUpdate_WHOLE, BoardUpdate: auty.BoardUpdate_REPLACEALL,
Boards: []string{"18e1nfiux7aVSfN2zYUZhbidMRokbBSPA6", "18e1nfiux7aVSfN2zYUZhbidMRokbBSPA6"}, Boards: []string{"18e1nfiux7aVSfN2zYUZhbidMRokbBSPA6", "18e1nfiux7aVSfN2zYUZhbidMRokbBSPA6"},
StartBlockHeight: env.blockHeight + 5, StartBlockHeight: env.blockHeight + 5,
EndBlockHeight: env.blockHeight + startEndBlockPeriod + 10, EndBlockHeight: env.blockHeight + startEndBlockPeriod + 10,
}, },
{ // ErrBoardNumber { // ErrBoardNumber
BoardUpdate: auty.BoardUpdate_WHOLE, BoardUpdate: auty.BoardUpdate_REPLACEALL,
Boards: []string{"18e1nfiux7aVSfN2zYUZhbidMRokbBSPA6", AddrA}, Boards: []string{"18e1nfiux7aVSfN2zYUZhbidMRokbBSPA6", AddrA},
StartBlockHeight: env.blockHeight + 5, StartBlockHeight: env.blockHeight + 5,
EndBlockHeight: env.blockHeight + startEndBlockPeriod + 10, EndBlockHeight: env.blockHeight + startEndBlockPeriod + 10,
}, },
{ // 正常 { // 正常
BoardUpdate: auty.BoardUpdate_WHOLE, BoardUpdate: auty.BoardUpdate_REPLACEALL,
Boards: boards, Boards: boards,
StartBlockHeight: env.blockHeight + 5, StartBlockHeight: env.blockHeight + 5,
EndBlockHeight: env.blockHeight + startEndBlockPeriod + 10, EndBlockHeight: env.blockHeight + startEndBlockPeriod + 10,
...@@ -292,7 +292,7 @@ func testPropBoard(t *testing.T, env *ExecEnv, exec drivers.Driver, stateDB dbm. ...@@ -292,7 +292,7 @@ func testPropBoard(t *testing.T, env *ExecEnv, exec drivers.Driver, stateDB dbm.
Month: 7, Month: 7,
Day: 10, Day: 10,
Boards: boards, Boards: boards,
BoardUpdate: auty.BoardUpdate_WHOLE, BoardUpdate: auty.BoardUpdate_REPLACEALL,
StartBlockHeight: env.blockHeight + 5, StartBlockHeight: env.blockHeight + 5,
EndBlockHeight: env.blockHeight + startEndBlockPeriod + 10, EndBlockHeight: env.blockHeight + startEndBlockPeriod + 10,
} }
......
...@@ -28,11 +28,11 @@ message AutonomyProposalBoard { ...@@ -28,11 +28,11 @@ message AutonomyProposalBoard {
enum BoardUpdate { enum BoardUpdate {
INV = 0; INV = 0;
//新增 //新增
ADD = 1; ADDBoard = 1;
//剔除 //剔除
DEL = 2; DELBoard = 2;
//整体替换 //整体替换
WHOLE = 3; REPLACEALL = 3;
} }
// action // action
......
...@@ -55,7 +55,7 @@ message RuleConfig { ...@@ -55,7 +55,7 @@ message RuleConfig {
//三种投票选项 //三种投票选项
enum AutonomyVoteOption { enum AutonomyVoteOption {
INVALID = 0; NOJOIN = 0;
//支持 //支持
APPROVE = 1; APPROVE = 1;
//反对 //反对
......
...@@ -25,25 +25,25 @@ type BoardUpdate int32 ...@@ -25,25 +25,25 @@ type BoardUpdate int32
const ( const (
BoardUpdate_INV BoardUpdate = 0 BoardUpdate_INV BoardUpdate = 0
//新增 //新增
BoardUpdate_ADD BoardUpdate = 1 BoardUpdate_ADDBoard BoardUpdate = 1
//剔除 //剔除
BoardUpdate_DEL BoardUpdate = 2 BoardUpdate_DELBoard BoardUpdate = 2
//整体替换 //整体替换
BoardUpdate_WHOLE BoardUpdate = 3 BoardUpdate_REPLACEALL BoardUpdate = 3
) )
var BoardUpdate_name = map[int32]string{ var BoardUpdate_name = map[int32]string{
0: "INV", 0: "INV",
1: "ADD", 1: "ADDBoard",
2: "DEL", 2: "DELBoard",
3: "WHOLE", 3: "REPLACEALL",
} }
var BoardUpdate_value = map[string]int32{ var BoardUpdate_value = map[string]int32{
"INV": 0, "INV": 0,
"ADD": 1, "ADDBoard": 1,
"DEL": 2, "DELBoard": 2,
"WHOLE": 3, "REPLACEALL": 3,
} }
func (x BoardUpdate) String() string { func (x BoardUpdate) String() string {
...@@ -371,7 +371,7 @@ func (m *VoteProposalBoard) GetVoteOption() AutonomyVoteOption { ...@@ -371,7 +371,7 @@ func (m *VoteProposalBoard) GetVoteOption() AutonomyVoteOption {
if m != nil { if m != nil {
return m.VoteOption return m.VoteOption
} }
return AutonomyVoteOption_INVALID return AutonomyVoteOption_NOJOIN
} }
type TerminateProposalBoard struct { type TerminateProposalBoard struct {
...@@ -643,48 +643,48 @@ func init() { ...@@ -643,48 +643,48 @@ func init() {
func init() { proto.RegisterFile("board.proto", fileDescriptor_937f74b042f92c0f) } func init() { proto.RegisterFile("board.proto", fileDescriptor_937f74b042f92c0f) }
var fileDescriptor_937f74b042f92c0f = []byte{ var fileDescriptor_937f74b042f92c0f = []byte{
// 680 bytes of a gzipped FileDescriptorProto // 683 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xd1, 0x4e, 0xdb, 0x4a, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xc1, 0x6e, 0xd3, 0x40,
0x10, 0xbd, 0x8e, 0xe3, 0x24, 0x1e, 0x04, 0x0a, 0x7b, 0x81, 0xeb, 0x8b, 0xd0, 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x9e, 0x36, 0x70, 0xdd, 0x3f, 0xff, 0x13, 0x00,
0x48, 0xf2, 0x04, 0xf2, 0x04, 0x06, 0x00, 0x00, 0x00, 0xff, 0xff, 0xbc, 0x39, 0x74, 0x01, 0x13, 0x06, 0x00, 0x00,
} }
...@@ -357,7 +357,7 @@ func (m *VoteProposalChange) GetVote() AutonomyVoteOption { ...@@ -357,7 +357,7 @@ func (m *VoteProposalChange) GetVote() AutonomyVoteOption {
if m != nil { if m != nil {
return m.Vote return m.Vote
} }
return AutonomyVoteOption_INVALID return AutonomyVoteOption_NOJOIN
} }
type TerminateProposalChange struct { type TerminateProposalChange struct {
......
...@@ -24,7 +24,7 @@ const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package ...@@ -24,7 +24,7 @@ const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type AutonomyVoteOption int32 type AutonomyVoteOption int32
const ( const (
AutonomyVoteOption_INVALID AutonomyVoteOption = 0 AutonomyVoteOption_NOJOIN AutonomyVoteOption = 0
//支持 //支持
AutonomyVoteOption_APPROVE AutonomyVoteOption = 1 AutonomyVoteOption_APPROVE AutonomyVoteOption = 1
//反对 //反对
...@@ -34,14 +34,14 @@ const ( ...@@ -34,14 +34,14 @@ const (
) )
var AutonomyVoteOption_name = map[int32]string{ var AutonomyVoteOption_name = map[int32]string{
0: "INVALID", 0: "NOJOIN",
1: "APPROVE", 1: "APPROVE",
2: "OPPOSE", 2: "OPPOSE",
3: "QUIT", 3: "QUIT",
} }
var AutonomyVoteOption_value = map[string]int32{ var AutonomyVoteOption_value = map[string]int32{
"INVALID": 0, "NOJOIN": 0,
"APPROVE": 1, "APPROVE": 1,
"OPPOSE": 2, "OPPOSE": 2,
"QUIT": 3, "QUIT": 3,
...@@ -407,33 +407,33 @@ func init() { proto.RegisterFile("lcommon.proto", fileDescriptor_d916a933dd8220f ...@@ -407,33 +407,33 @@ func init() { proto.RegisterFile("lcommon.proto", fileDescriptor_d916a933dd8220f
var fileDescriptor_d916a933dd8220ff = []byte{ var fileDescriptor_d916a933dd8220ff = []byte{
// 456 bytes of a gzipped FileDescriptorProto // 456 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x93, 0xcd, 0x8e, 0xd3, 0x30, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x93, 0x4d, 0x8e, 0xd3, 0x40,
0x14, 0x85, 0x49, 0xfa, 0x3b, 0xb7, 0xfc, 0x14, 0x2f, 0x50, 0x17, 0x08, 0x55, 0x59, 0x40, 0x85, 0x10, 0x85, 0xb1, 0xf3, 0x3b, 0x15, 0x7e, 0x42, 0x2d, 0x50, 0x16, 0x08, 0x45, 0x5e, 0x40, 0x84,
0x50, 0x59, 0xf0, 0x04, 0x19, 0x66, 0x24, 0x2a, 0x21, 0x12, 0x0c, 0x74, 0xc1, 0xce, 0x49, 0x4c, 0x50, 0x58, 0x70, 0x02, 0xcf, 0x68, 0x24, 0x86, 0xc5, 0xd8, 0x34, 0x30, 0x0b, 0x76, 0x6d, 0xbb,
0x31, 0x4a, 0x73, 0x8d, 0x7d, 0x53, 0xa9, 0x0b, 0xb6, 0x3c, 0x09, 0x0f, 0xc0, 0x23, 0x22, 0x3b, 0x09, 0x46, 0x8e, 0xab, 0xe9, 0x2e, 0x47, 0xca, 0x82, 0x2d, 0x27, 0xe1, 0x00, 0x1c, 0x11, 0x75,
0x29, 0xcd, 0x64, 0x90, 0xd8, 0xe5, 0x7c, 0xf7, 0x58, 0x3a, 0xf7, 0x5c, 0x05, 0xee, 0x95, 0x39, 0xdb, 0x21, 0x9e, 0x0c, 0x12, 0x3b, 0xd7, 0x57, 0xaf, 0xa5, 0xf7, 0x5e, 0xc9, 0xf0, 0xa0, 0xca,
0xee, 0xf7, 0x58, 0xad, 0xb5, 0x41, 0x42, 0x36, 0xa2, 0xa3, 0x96, 0x36, 0xfa, 0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func (m *VoteProposalProject) GetVote() AutonomyVoteOption { ...@@ -382,7 +382,7 @@ func (m *VoteProposalProject) GetVote() AutonomyVoteOption {
if m != nil { if m != nil {
return m.Vote return m.Vote
} }
return AutonomyVoteOption_INVALID return AutonomyVoteOption_NOJOIN
} }
type PubVoteProposalProject struct { type PubVoteProposalProject struct {
......
...@@ -306,7 +306,7 @@ func (m *VoteProposalRule) GetVote() AutonomyVoteOption { ...@@ -306,7 +306,7 @@ func (m *VoteProposalRule) GetVote() AutonomyVoteOption {
if m != nil { if m != nil {
return m.Vote return m.Vote
} }
return AutonomyVoteOption_INVALID return AutonomyVoteOption_NOJOIN
} }
type TerminateProposalRule struct { type TerminateProposalRule struct {
......
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