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
745335fe
Commit
745335fe
authored
Sep 03, 2019
by
vipwzw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto ci
parent
a2bd1eb4
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
1495 additions
and
368 deletions
+1495
-368
boardaction_test.go
plugin/dapp/autonomy/executor/boardaction_test.go
+8
-8
autonomy.pb.go
plugin/dapp/autonomy/types/autonomy.pb.go
+107
-108
board.pb.go
plugin/dapp/autonomy/types/board.pb.go
+255
-47
change.pb.go
plugin/dapp/autonomy/types/change.pb.go
+278
-48
lcommon.pb.go
plugin/dapp/autonomy/types/lcommon.pb.go
+148
-28
project.pb.go
plugin/dapp/autonomy/types/project.pb.go
+288
-58
rule.pb.go
plugin/dapp/autonomy/types/rule.pb.go
+411
-71
No files found.
plugin/dapp/autonomy/executor/boardaction_test.go
View file @
745335fe
...
...
@@ -188,43 +188,43 @@ func TestPropBoard(t *testing.T) {
opts
:=
[]
*
auty
.
ProposalBoard
{
{
// ErrRepeatAddr
Update
:
true
,
Update
:
true
,
Boards
:
[]
string
{
"18e1nfiux7aVSfN2zYUZhbidMRokbBSPA6"
,
"18e1nfiux7aVSfN2zYUZhbidMRokbBSPA6"
},
StartBlockHeight
:
env
.
blockHeight
+
5
,
EndBlockHeight
:
env
.
blockHeight
+
startEndBlockPeriod
+
10
,
},
{
// ErrRepeatAddr
Update
:
true
,
Update
:
true
,
Boards
:
[]
string
{
"18e1nfiux7aVSfN2zYUZhbidMRokbBSPA6"
,
AddrA
},
StartBlockHeight
:
env
.
blockHeight
+
5
,
EndBlockHeight
:
env
.
blockHeight
+
startEndBlockPeriod
+
10
,
},
{
// ErrBoardNumber
Update
:
true
,
Update
:
true
,
StartBlockHeight
:
env
.
blockHeight
+
5
,
EndBlockHeight
:
env
.
blockHeight
+
startEndBlockPeriod
+
10
,
},
{
// 正常
Update
:
true
,
Update
:
true
,
Boards
:
[]
string
{
"18e1nfiux7aVSfN2zYUZhbidMRokbBSPA6"
},
StartBlockHeight
:
env
.
blockHeight
+
5
,
EndBlockHeight
:
env
.
blockHeight
+
startEndBlockPeriod
+
10
,
},
{
// ErrRepeatAddr
Update
:
false
,
Update
:
false
,
Boards
:
[]
string
{
"18e1nfiux7aVSfN2zYUZhbidMRokbBSPA6"
,
"18e1nfiux7aVSfN2zYUZhbidMRokbBSPA6"
},
StartBlockHeight
:
env
.
blockHeight
+
5
,
EndBlockHeight
:
env
.
blockHeight
+
startEndBlockPeriod
+
10
,
},
{
// ErrBoardNumber
Update
:
false
,
Update
:
false
,
Boards
:
[]
string
{
"18e1nfiux7aVSfN2zYUZhbidMRokbBSPA6"
,
AddrA
},
StartBlockHeight
:
env
.
blockHeight
+
5
,
EndBlockHeight
:
env
.
blockHeight
+
startEndBlockPeriod
+
10
,
},
{
// 正常
Update
:
false
,
Update
:
false
,
Boards
:
boards
,
StartBlockHeight
:
env
.
blockHeight
+
5
,
EndBlockHeight
:
env
.
blockHeight
+
startEndBlockPeriod
+
10
,
...
...
@@ -626,7 +626,7 @@ func TestCopyAutonomyProposalBoard(t *testing.T) {
assert
.
Nil
(
t
,
copyAutonomyProposalBoard
(
nil
))
cur
:=
&
auty
.
AutonomyProposalBoard
{
PropBoard
:
&
auty
.
ProposalBoard
{
Year
:
1900
,
Month
:
1
},
Board
:
&
auty
.
ActiveBoard
{
Boards
:
[]
string
{
"111"
,
"112"
},
Revboards
:
[]
string
{
"113"
,
"114"
}},
Board
:
&
auty
.
ActiveBoard
{
Boards
:
[]
string
{
"111"
,
"112"
},
Revboards
:
[]
string
{
"113"
,
"114"
}},
CurRule
:
&
auty
.
RuleConfig
{
BoardApproveRatio
:
100
},
VoteResult
:
&
auty
.
VoteResult
{
TotalVotes
:
100
},
Status
:
2
,
...
...
plugin/dapp/autonomy/types/autonomy.pb.go
View file @
745335fe
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: autonomy.proto
/*
Package types is a generated protocol buffer package.
It is generated from these files:
autonomy.proto
board.proto
change.proto
lcommon.proto
project.proto
rule.proto
It has these top-level messages:
AutonomyAction
AutonomyProposalBoard
ProposalBoard
RevokeProposalBoard
VoteProposalBoard
TerminateProposalBoard
ReceiptProposalBoard
LocalProposalBoard
ReqQueryProposalBoard
ReplyQueryProposalBoard
AutonomyProposalChange
ProposalChange
Change
RevokeProposalChange
VoteProposalChange
TerminateProposalChange
ReceiptProposalChange
LocalProposalChange
ReqQueryProposalChange
ReplyQueryProposalChange
VoteResult
PublicVote
VotesRecord
RuleConfig
ActiveBoard
AutonomyProposalProject
ProposalProject
RevokeProposalProject
VoteProposalProject
PubVoteProposalProject
TerminateProposalProject
ReceiptProposalProject
LocalProposalProject
ReqQueryProposalProject
ReplyQueryProposalProject
AutonomyProposalRule
ProposalRule
RevokeProposalRule
VoteProposalRule
TerminateProposalRule
ReceiptProposalRule
LocalProposalRule
ReqQueryProposalRule
ReplyQueryProposalRule
TransferFund
Comment
ReceiptProposalComment
ReqQueryProposalComment
RelationCmt
ReplyQueryProposalComment
*/
package
types
import
proto
"github.com/golang/protobuf/proto"
import
fmt
"fmt"
import
math
"math"
import
(
fmt
"fmt"
proto
"github.com/golang/protobuf/proto"
math
"math"
)
// Reference imports to suppress errors if they are not otherwise used.
var
_
=
proto
.
Marshal
...
...
@@ -104,94 +45,152 @@ type AutonomyAction struct {
// *AutonomyAction_VotePropChange
// *AutonomyAction_TmintPropChange
Value
isAutonomyAction_Value
`protobuf_oneof:"value"`
Ty
int32
`protobuf:"varint,20,opt,name=ty" json:"ty,omitempty"`
Ty
int32
`protobuf:"varint,20,opt,name=ty,proto3" json:"ty,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
AutonomyAction
)
Reset
()
{
*
m
=
AutonomyAction
{}
}
func
(
m
*
AutonomyAction
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
AutonomyAction
)
ProtoMessage
()
{}
func
(
*
AutonomyAction
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor0
,
[]
int
{
0
}
}
func
(
*
AutonomyAction
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_autonomy_a527d25057c6879d
,
[]
int
{
0
}
}
func
(
m
*
AutonomyAction
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_AutonomyAction
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
AutonomyAction
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_AutonomyAction
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
AutonomyAction
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_AutonomyAction
.
Merge
(
dst
,
src
)
}
func
(
m
*
AutonomyAction
)
XXX_Size
()
int
{
return
xxx_messageInfo_AutonomyAction
.
Size
(
m
)
}
func
(
m
*
AutonomyAction
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_AutonomyAction
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_AutonomyAction
proto
.
InternalMessageInfo
type
isAutonomyAction_Value
interface
{
isAutonomyAction_Value
()
}
type
AutonomyAction_PropBoard
struct
{
PropBoard
*
ProposalBoard
`protobuf:"bytes,1,opt,name=propBoard,oneof"`
PropBoard
*
ProposalBoard
`protobuf:"bytes,1,opt,name=propBoard,
proto3,
oneof"`
}
type
AutonomyAction_RvkPropBoard
struct
{
RvkPropBoard
*
RevokeProposalBoard
`protobuf:"bytes,2,opt,name=rvkPropBoard,oneof"`
RvkPropBoard
*
RevokeProposalBoard
`protobuf:"bytes,2,opt,name=rvkPropBoard,
proto3,
oneof"`
}
type
AutonomyAction_VotePropBoard
struct
{
VotePropBoard
*
VoteProposalBoard
`protobuf:"bytes,3,opt,name=votePropBoard,oneof"`
VotePropBoard
*
VoteProposalBoard
`protobuf:"bytes,3,opt,name=votePropBoard,
proto3,
oneof"`
}
type
AutonomyAction_TmintPropBoard
struct
{
TmintPropBoard
*
TerminateProposalBoard
`protobuf:"bytes,4,opt,name=tmintPropBoard,oneof"`
TmintPropBoard
*
TerminateProposalBoard
`protobuf:"bytes,4,opt,name=tmintPropBoard,
proto3,
oneof"`
}
type
AutonomyAction_PropProject
struct
{
PropProject
*
ProposalProject
`protobuf:"bytes,5,opt,name=propProject,oneof"`
PropProject
*
ProposalProject
`protobuf:"bytes,5,opt,name=propProject,
proto3,
oneof"`
}
type
AutonomyAction_RvkPropProject
struct
{
RvkPropProject
*
RevokeProposalProject
`protobuf:"bytes,6,opt,name=rvkPropProject,oneof"`
RvkPropProject
*
RevokeProposalProject
`protobuf:"bytes,6,opt,name=rvkPropProject,
proto3,
oneof"`
}
type
AutonomyAction_VotePropProject
struct
{
VotePropProject
*
VoteProposalProject
`protobuf:"bytes,7,opt,name=votePropProject,oneof"`
VotePropProject
*
VoteProposalProject
`protobuf:"bytes,7,opt,name=votePropProject,
proto3,
oneof"`
}
type
AutonomyAction_PubVotePropProject
struct
{
PubVotePropProject
*
PubVoteProposalProject
`protobuf:"bytes,8,opt,name=pubVotePropProject,oneof"`
PubVotePropProject
*
PubVoteProposalProject
`protobuf:"bytes,8,opt,name=pubVotePropProject,
proto3,
oneof"`
}
type
AutonomyAction_TmintPropProject
struct
{
TmintPropProject
*
TerminateProposalProject
`protobuf:"bytes,9,opt,name=tmintPropProject,oneof"`
TmintPropProject
*
TerminateProposalProject
`protobuf:"bytes,9,opt,name=tmintPropProject,
proto3,
oneof"`
}
type
AutonomyAction_PropRule
struct
{
PropRule
*
ProposalRule
`protobuf:"bytes,10,opt,name=propRule,oneof"`
PropRule
*
ProposalRule
`protobuf:"bytes,10,opt,name=propRule,
proto3,
oneof"`
}
type
AutonomyAction_RvkPropRule
struct
{
RvkPropRule
*
RevokeProposalRule
`protobuf:"bytes,11,opt,name=rvkPropRule,oneof"`
RvkPropRule
*
RevokeProposalRule
`protobuf:"bytes,11,opt,name=rvkPropRule,
proto3,
oneof"`
}
type
AutonomyAction_VotePropRule
struct
{
VotePropRule
*
VoteProposalRule
`protobuf:"bytes,12,opt,name=votePropRule,oneof"`
VotePropRule
*
VoteProposalRule
`protobuf:"bytes,12,opt,name=votePropRule,
proto3,
oneof"`
}
type
AutonomyAction_TmintPropRule
struct
{
TmintPropRule
*
TerminateProposalRule
`protobuf:"bytes,13,opt,name=tmintPropRule,oneof"`
TmintPropRule
*
TerminateProposalRule
`protobuf:"bytes,13,opt,name=tmintPropRule,
proto3,
oneof"`
}
type
AutonomyAction_Transfer
struct
{
Transfer
*
TransferFund
`protobuf:"bytes,14,opt,name=transfer,oneof"`
Transfer
*
TransferFund
`protobuf:"bytes,14,opt,name=transfer,
proto3,
oneof"`
}
type
AutonomyAction_CommentProp
struct
{
CommentProp
*
Comment
`protobuf:"bytes,15,opt,name=commentProp,oneof"`
CommentProp
*
Comment
`protobuf:"bytes,15,opt,name=commentProp,
proto3,
oneof"`
}
type
AutonomyAction_PropChange
struct
{
PropChange
*
ProposalChange
`protobuf:"bytes,16,opt,name=propChange,oneof"`
PropChange
*
ProposalChange
`protobuf:"bytes,16,opt,name=propChange,
proto3,
oneof"`
}
type
AutonomyAction_RvkPropChange
struct
{
RvkPropChange
*
RevokeProposalChange
`protobuf:"bytes,17,opt,name=rvkPropChange,oneof"`
RvkPropChange
*
RevokeProposalChange
`protobuf:"bytes,17,opt,name=rvkPropChange,
proto3,
oneof"`
}
type
AutonomyAction_VotePropChange
struct
{
VotePropChange
*
VoteProposalChange
`protobuf:"bytes,18,opt,name=votePropChange,oneof"`
VotePropChange
*
VoteProposalChange
`protobuf:"bytes,18,opt,name=votePropChange,
proto3,
oneof"`
}
type
AutonomyAction_TmintPropChange
struct
{
TmintPropChange
*
TerminateProposalChange
`protobuf:"bytes,19,opt,name=tmintPropChange,oneof"`
TmintPropChange
*
TerminateProposalChange
`protobuf:"bytes,19,opt,name=tmintPropChange,
proto3,
oneof"`
}
func
(
*
AutonomyAction_PropBoard
)
isAutonomyAction_Value
()
{}
func
(
*
AutonomyAction_RvkPropBoard
)
isAutonomyAction_Value
()
{}
func
(
*
AutonomyAction_VotePropBoard
)
isAutonomyAction_Value
()
{}
func
(
*
AutonomyAction_TmintPropBoard
)
isAutonomyAction_Value
()
{}
func
(
*
AutonomyAction_PropProject
)
isAutonomyAction_Value
()
{}
func
(
*
AutonomyAction_RvkPropProject
)
isAutonomyAction_Value
()
{}
func
(
*
AutonomyAction_VotePropProject
)
isAutonomyAction_Value
()
{}
func
(
*
AutonomyAction_PubVotePropProject
)
isAutonomyAction_Value
()
{}
func
(
*
AutonomyAction_TmintPropProject
)
isAutonomyAction_Value
()
{}
func
(
*
AutonomyAction_PropRule
)
isAutonomyAction_Value
()
{}
func
(
*
AutonomyAction_RvkPropRule
)
isAutonomyAction_Value
()
{}
func
(
*
AutonomyAction_VotePropRule
)
isAutonomyAction_Value
()
{}
func
(
*
AutonomyAction_TmintPropRule
)
isAutonomyAction_Value
()
{}
func
(
*
AutonomyAction_Transfer
)
isAutonomyAction_Value
()
{}
func
(
*
AutonomyAction_CommentProp
)
isAutonomyAction_Value
()
{}
func
(
*
AutonomyAction_PropChange
)
isAutonomyAction_Value
()
{}
func
(
*
AutonomyAction_RvkPropChange
)
isAutonomyAction_Value
()
{}
func
(
*
AutonomyAction_VotePropChange
)
isAutonomyAction_Value
()
{}
func
(
*
AutonomyAction_TmintPropChange
)
isAutonomyAction_Value
()
{}
func
(
m
*
AutonomyAction
)
GetValue
()
isAutonomyAction_Value
{
...
...
@@ -638,97 +637,97 @@ func _AutonomyAction_OneofSizer(msg proto.Message) (n int) {
switch
x
:=
m
.
Value
.
(
type
)
{
case
*
AutonomyAction_PropBoard
:
s
:=
proto
.
Size
(
x
.
PropBoard
)
n
+=
proto
.
SizeVarint
(
1
<<
3
|
proto
.
WireBytes
)
n
+=
1
// tag and wire
n
+=
proto
.
SizeVarint
(
uint64
(
s
))
n
+=
s
case
*
AutonomyAction_RvkPropBoard
:
s
:=
proto
.
Size
(
x
.
RvkPropBoard
)
n
+=
proto
.
SizeVarint
(
2
<<
3
|
proto
.
WireBytes
)
n
+=
1
// tag and wire
n
+=
proto
.
SizeVarint
(
uint64
(
s
))
n
+=
s
case
*
AutonomyAction_VotePropBoard
:
s
:=
proto
.
Size
(
x
.
VotePropBoard
)
n
+=
proto
.
SizeVarint
(
3
<<
3
|
proto
.
WireBytes
)
n
+=
1
// tag and wire
n
+=
proto
.
SizeVarint
(
uint64
(
s
))
n
+=
s
case
*
AutonomyAction_TmintPropBoard
:
s
:=
proto
.
Size
(
x
.
TmintPropBoard
)
n
+=
proto
.
SizeVarint
(
4
<<
3
|
proto
.
WireBytes
)
n
+=
1
// tag and wire
n
+=
proto
.
SizeVarint
(
uint64
(
s
))
n
+=
s
case
*
AutonomyAction_PropProject
:
s
:=
proto
.
Size
(
x
.
PropProject
)
n
+=
proto
.
SizeVarint
(
5
<<
3
|
proto
.
WireBytes
)
n
+=
1
// tag and wire
n
+=
proto
.
SizeVarint
(
uint64
(
s
))
n
+=
s
case
*
AutonomyAction_RvkPropProject
:
s
:=
proto
.
Size
(
x
.
RvkPropProject
)
n
+=
proto
.
SizeVarint
(
6
<<
3
|
proto
.
WireBytes
)
n
+=
1
// tag and wire
n
+=
proto
.
SizeVarint
(
uint64
(
s
))
n
+=
s
case
*
AutonomyAction_VotePropProject
:
s
:=
proto
.
Size
(
x
.
VotePropProject
)
n
+=
proto
.
SizeVarint
(
7
<<
3
|
proto
.
WireBytes
)
n
+=
1
// tag and wire
n
+=
proto
.
SizeVarint
(
uint64
(
s
))
n
+=
s
case
*
AutonomyAction_PubVotePropProject
:
s
:=
proto
.
Size
(
x
.
PubVotePropProject
)
n
+=
proto
.
SizeVarint
(
8
<<
3
|
proto
.
WireBytes
)
n
+=
1
// tag and wire
n
+=
proto
.
SizeVarint
(
uint64
(
s
))
n
+=
s
case
*
AutonomyAction_TmintPropProject
:
s
:=
proto
.
Size
(
x
.
TmintPropProject
)
n
+=
proto
.
SizeVarint
(
9
<<
3
|
proto
.
WireBytes
)
n
+=
1
// tag and wire
n
+=
proto
.
SizeVarint
(
uint64
(
s
))
n
+=
s
case
*
AutonomyAction_PropRule
:
s
:=
proto
.
Size
(
x
.
PropRule
)
n
+=
proto
.
SizeVarint
(
10
<<
3
|
proto
.
WireBytes
)
n
+=
1
// tag and wire
n
+=
proto
.
SizeVarint
(
uint64
(
s
))
n
+=
s
case
*
AutonomyAction_RvkPropRule
:
s
:=
proto
.
Size
(
x
.
RvkPropRule
)
n
+=
proto
.
SizeVarint
(
11
<<
3
|
proto
.
WireBytes
)
n
+=
1
// tag and wire
n
+=
proto
.
SizeVarint
(
uint64
(
s
))
n
+=
s
case
*
AutonomyAction_VotePropRule
:
s
:=
proto
.
Size
(
x
.
VotePropRule
)
n
+=
proto
.
SizeVarint
(
12
<<
3
|
proto
.
WireBytes
)
n
+=
1
// tag and wire
n
+=
proto
.
SizeVarint
(
uint64
(
s
))
n
+=
s
case
*
AutonomyAction_TmintPropRule
:
s
:=
proto
.
Size
(
x
.
TmintPropRule
)
n
+=
proto
.
SizeVarint
(
13
<<
3
|
proto
.
WireBytes
)
n
+=
1
// tag and wire
n
+=
proto
.
SizeVarint
(
uint64
(
s
))
n
+=
s
case
*
AutonomyAction_Transfer
:
s
:=
proto
.
Size
(
x
.
Transfer
)
n
+=
proto
.
SizeVarint
(
14
<<
3
|
proto
.
WireBytes
)
n
+=
1
// tag and wire
n
+=
proto
.
SizeVarint
(
uint64
(
s
))
n
+=
s
case
*
AutonomyAction_CommentProp
:
s
:=
proto
.
Size
(
x
.
CommentProp
)
n
+=
proto
.
SizeVarint
(
15
<<
3
|
proto
.
WireBytes
)
n
+=
1
// tag and wire
n
+=
proto
.
SizeVarint
(
uint64
(
s
))
n
+=
s
case
*
AutonomyAction_PropChange
:
s
:=
proto
.
Size
(
x
.
PropChange
)
n
+=
proto
.
SizeVarint
(
16
<<
3
|
proto
.
WireBytes
)
n
+=
2
// tag and wire
n
+=
proto
.
SizeVarint
(
uint64
(
s
))
n
+=
s
case
*
AutonomyAction_RvkPropChange
:
s
:=
proto
.
Size
(
x
.
RvkPropChange
)
n
+=
proto
.
SizeVarint
(
17
<<
3
|
proto
.
WireBytes
)
n
+=
2
// tag and wire
n
+=
proto
.
SizeVarint
(
uint64
(
s
))
n
+=
s
case
*
AutonomyAction_VotePropChange
:
s
:=
proto
.
Size
(
x
.
VotePropChange
)
n
+=
proto
.
SizeVarint
(
18
<<
3
|
proto
.
WireBytes
)
n
+=
2
// tag and wire
n
+=
proto
.
SizeVarint
(
uint64
(
s
))
n
+=
s
case
*
AutonomyAction_TmintPropChange
:
s
:=
proto
.
Size
(
x
.
TmintPropChange
)
n
+=
proto
.
SizeVarint
(
19
<<
3
|
proto
.
WireBytes
)
n
+=
2
// tag and wire
n
+=
proto
.
SizeVarint
(
uint64
(
s
))
n
+=
s
case
nil
:
...
...
@@ -742,9 +741,9 @@ func init() {
proto
.
RegisterType
((
*
AutonomyAction
)(
nil
),
"types.AutonomyAction"
)
}
func
init
()
{
proto
.
RegisterFile
(
"autonomy.proto"
,
fileDescriptor
0
)
}
func
init
()
{
proto
.
RegisterFile
(
"autonomy.proto"
,
fileDescriptor
_autonomy_a527d25057c6879d
)
}
var
fileDescriptor
0
=
[]
byte
{
var
fileDescriptor
_autonomy_a527d25057c6879d
=
[]
byte
{
// 504 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0x74
,
0x94
,
0x4d
,
0x6f
,
0xd3
,
0x40
,
0x10
,
0x40
,
0xd3
,
0x40
,
0xfa
,
0x31
,
0x8e
,
0x9d
,
0x32
,
0x2d
,
0x60
,
0xc2
,
0x57
,
0xc5
,
0xa9
,
0xa7
,
...
...
plugin/dapp/autonomy/types/board.pb.go
View file @
745335fe
...
...
@@ -3,35 +3,67 @@
package
types
import
proto
"github.com/golang/protobuf/proto"
import
fmt
"fmt"
import
math
"math"
import
(
fmt
"fmt"
proto
"github.com/golang/protobuf/proto"
math
"math"
)
// Reference imports to suppress errors if they are not otherwise used.
var
_
=
proto
.
Marshal
var
_
=
fmt
.
Errorf
var
_
=
math
.
Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const
_
=
proto
.
ProtoPackageIsVersion2
// please upgrade the proto package
type
AutonomyProposalBoard
struct
{
PropBoard
*
ProposalBoard
`protobuf:"bytes,1,opt,name=propBoard" json:"propBoard,omitempty"`
PropBoard
*
ProposalBoard
`protobuf:"bytes,1,opt,name=propBoard
,proto3
" json:"propBoard,omitempty"`
// 投票该提案的规则
CurRule
*
RuleConfig
`protobuf:"bytes,2,opt,name=curRule" json:"curRule,omitempty"`
CurRule
*
RuleConfig
`protobuf:"bytes,2,opt,name=curRule
,proto3
" json:"curRule,omitempty"`
// 投票董事会
Board
*
ActiveBoard
`protobuf:"bytes,3,opt,name=board" json:"board,omitempty"`
Board
*
ActiveBoard
`protobuf:"bytes,3,opt,name=board
,proto3
" json:"board,omitempty"`
// 全体持票人投票结果
VoteResult
*
VoteResult
`protobuf:"bytes,4,opt,name=voteResult" json:"voteResult,omitempty"`
VoteResult
*
VoteResult
`protobuf:"bytes,4,opt,name=voteResult
,proto3
" json:"voteResult,omitempty"`
// 状态
Status
int32
`protobuf:"varint,5,opt,name=status" json:"status,omitempty"`
Address
string
`protobuf:"bytes,6,opt,name=address" json:"address,omitempty"`
Height
int64
`protobuf:"varint,7,opt,name=height" json:"height,omitempty"`
Index
int32
`protobuf:"varint,8,opt,name=index" json:"index,omitempty"`
ProposalID
string
`protobuf:"bytes,9,opt,name=proposalID" json:"proposalID,omitempty"`
Status
int32
`protobuf:"varint,5,opt,name=status,proto3" json:"status,omitempty"`
Address
string
`protobuf:"bytes,6,opt,name=address,proto3" json:"address,omitempty"`
Height
int64
`protobuf:"varint,7,opt,name=height,proto3" json:"height,omitempty"`
Index
int32
`protobuf:"varint,8,opt,name=index,proto3" json:"index,omitempty"`
ProposalID
string
`protobuf:"bytes,9,opt,name=proposalID,proto3" json:"proposalID,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
AutonomyProposalBoard
)
Reset
()
{
*
m
=
AutonomyProposalBoard
{}
}
func
(
m
*
AutonomyProposalBoard
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
AutonomyProposalBoard
)
ProtoMessage
()
{}
func
(
*
AutonomyProposalBoard
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor1
,
[]
int
{
0
}
}
func
(
*
AutonomyProposalBoard
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_board_32b30cbe96ccf177
,
[]
int
{
0
}
}
func
(
m
*
AutonomyProposalBoard
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_AutonomyProposalBoard
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
AutonomyProposalBoard
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_AutonomyProposalBoard
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
AutonomyProposalBoard
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_AutonomyProposalBoard
.
Merge
(
dst
,
src
)
}
func
(
m
*
AutonomyProposalBoard
)
XXX_Size
()
int
{
return
xxx_messageInfo_AutonomyProposalBoard
.
Size
(
m
)
}
func
(
m
*
AutonomyProposalBoard
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_AutonomyProposalBoard
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_AutonomyProposalBoard
proto
.
InternalMessageInfo
func
(
m
*
AutonomyProposalBoard
)
GetPropBoard
()
*
ProposalBoard
{
if
m
!=
nil
{
...
...
@@ -99,23 +131,45 @@ func (m *AutonomyProposalBoard) GetProposalID() string {
// action
type
ProposalBoard
struct
{
// 提案时间
Year
int32
`protobuf:"varint,1,opt,name=year" json:"year,omitempty"`
Month
int32
`protobuf:"varint,2,opt,name=month" json:"month,omitempty"`
Day
int32
`protobuf:"varint,3,opt,name=day" json:"day,omitempty"`
Year
int32
`protobuf:"varint,1,opt,name=year
,proto3
" json:"year,omitempty"`
Month
int32
`protobuf:"varint,2,opt,name=month
,proto3
" json:"month,omitempty"`
Day
int32
`protobuf:"varint,3,opt,name=day
,proto3
" json:"day,omitempty"`
// 是否更新
Update
bool
`protobuf:"varint,4,opt,name=update" json:"update,omitempty"`
Update
bool
`protobuf:"varint,4,opt,name=update
,proto3
" json:"update,omitempty"`
// 提案董事会成员
Boards
[]
string
`protobuf:"bytes,5,rep,name=boards" json:"boards,omitempty"`
Boards
[]
string
`protobuf:"bytes,5,rep,name=boards
,proto3
" json:"boards,omitempty"`
// 投票相关
StartBlockHeight
int64
`protobuf:"varint,6,opt,name=startBlockHeight" json:"startBlockHeight,omitempty"`
EndBlockHeight
int64
`protobuf:"varint,7,opt,name=endBlockHeight" json:"endBlockHeight,omitempty"`
RealEndBlockHeight
int64
`protobuf:"varint,8,opt,name=realEndBlockHeight" json:"realEndBlockHeight,omitempty"`
StartBlockHeight
int64
`protobuf:"varint,6,opt,name=startBlockHeight,proto3" json:"startBlockHeight,omitempty"`
EndBlockHeight
int64
`protobuf:"varint,7,opt,name=endBlockHeight,proto3" json:"endBlockHeight,omitempty"`
RealEndBlockHeight
int64
`protobuf:"varint,8,opt,name=realEndBlockHeight,proto3" json:"realEndBlockHeight,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
ProposalBoard
)
Reset
()
{
*
m
=
ProposalBoard
{}
}
func
(
m
*
ProposalBoard
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ProposalBoard
)
ProtoMessage
()
{}
func
(
*
ProposalBoard
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor1
,
[]
int
{
1
}
}
func
(
*
ProposalBoard
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_board_32b30cbe96ccf177
,
[]
int
{
1
}
}
func
(
m
*
ProposalBoard
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_ProposalBoard
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
ProposalBoard
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_ProposalBoard
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
ProposalBoard
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ProposalBoard
.
Merge
(
dst
,
src
)
}
func
(
m
*
ProposalBoard
)
XXX_Size
()
int
{
return
xxx_messageInfo_ProposalBoard
.
Size
(
m
)
}
func
(
m
*
ProposalBoard
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_ProposalBoard
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_ProposalBoard
proto
.
InternalMessageInfo
func
(
m
*
ProposalBoard
)
GetYear
()
int32
{
if
m
!=
nil
{
...
...
@@ -174,13 +228,35 @@ func (m *ProposalBoard) GetRealEndBlockHeight() int64 {
}
type
RevokeProposalBoard
struct
{
ProposalID
string
`protobuf:"bytes,1,opt,name=proposalID" json:"proposalID,omitempty"`
ProposalID
string
`protobuf:"bytes,1,opt,name=proposalID,proto3" json:"proposalID,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
RevokeProposalBoard
)
Reset
()
{
*
m
=
RevokeProposalBoard
{}
}
func
(
m
*
RevokeProposalBoard
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
RevokeProposalBoard
)
ProtoMessage
()
{}
func
(
*
RevokeProposalBoard
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor1
,
[]
int
{
2
}
}
func
(
*
RevokeProposalBoard
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_board_32b30cbe96ccf177
,
[]
int
{
2
}
}
func
(
m
*
RevokeProposalBoard
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_RevokeProposalBoard
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
RevokeProposalBoard
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_RevokeProposalBoard
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
RevokeProposalBoard
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_RevokeProposalBoard
.
Merge
(
dst
,
src
)
}
func
(
m
*
RevokeProposalBoard
)
XXX_Size
()
int
{
return
xxx_messageInfo_RevokeProposalBoard
.
Size
(
m
)
}
func
(
m
*
RevokeProposalBoard
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_RevokeProposalBoard
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_RevokeProposalBoard
proto
.
InternalMessageInfo
func
(
m
*
RevokeProposalBoard
)
GetProposalID
()
string
{
if
m
!=
nil
{
...
...
@@ -190,15 +266,37 @@ func (m *RevokeProposalBoard) GetProposalID() string {
}
type
VoteProposalBoard
struct
{
ProposalID
string
`protobuf:"bytes,1,opt,name=proposalID" json:"proposalID,omitempty"`
Approve
bool
`protobuf:"varint,2,opt,name=approve" json:"approve,omitempty"`
OriginAddr
[]
string
`protobuf:"bytes,3,rep,name=originAddr" json:"originAddr,omitempty"`
ProposalID
string
`protobuf:"bytes,1,opt,name=proposalID,proto3" json:"proposalID,omitempty"`
Approve
bool
`protobuf:"varint,2,opt,name=approve,proto3" json:"approve,omitempty"`
OriginAddr
[]
string
`protobuf:"bytes,3,rep,name=originAddr,proto3" json:"originAddr,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
VoteProposalBoard
)
Reset
()
{
*
m
=
VoteProposalBoard
{}
}
func
(
m
*
VoteProposalBoard
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
VoteProposalBoard
)
ProtoMessage
()
{}
func
(
*
VoteProposalBoard
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor1
,
[]
int
{
3
}
}
func
(
*
VoteProposalBoard
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_board_32b30cbe96ccf177
,
[]
int
{
3
}
}
func
(
m
*
VoteProposalBoard
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_VoteProposalBoard
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
VoteProposalBoard
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_VoteProposalBoard
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
VoteProposalBoard
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_VoteProposalBoard
.
Merge
(
dst
,
src
)
}
func
(
m
*
VoteProposalBoard
)
XXX_Size
()
int
{
return
xxx_messageInfo_VoteProposalBoard
.
Size
(
m
)
}
func
(
m
*
VoteProposalBoard
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_VoteProposalBoard
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_VoteProposalBoard
proto
.
InternalMessageInfo
func
(
m
*
VoteProposalBoard
)
GetProposalID
()
string
{
if
m
!=
nil
{
...
...
@@ -222,13 +320,35 @@ func (m *VoteProposalBoard) GetOriginAddr() []string {
}
type
TerminateProposalBoard
struct
{
ProposalID
string
`protobuf:"bytes,1,opt,name=proposalID" json:"proposalID,omitempty"`
ProposalID
string
`protobuf:"bytes,1,opt,name=proposalID,proto3" json:"proposalID,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
TerminateProposalBoard
)
Reset
()
{
*
m
=
TerminateProposalBoard
{}
}
func
(
m
*
TerminateProposalBoard
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
TerminateProposalBoard
)
ProtoMessage
()
{}
func
(
*
TerminateProposalBoard
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor1
,
[]
int
{
4
}
}
func
(
*
TerminateProposalBoard
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_board_32b30cbe96ccf177
,
[]
int
{
4
}
}
func
(
m
*
TerminateProposalBoard
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_TerminateProposalBoard
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
TerminateProposalBoard
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_TerminateProposalBoard
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
TerminateProposalBoard
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_TerminateProposalBoard
.
Merge
(
dst
,
src
)
}
func
(
m
*
TerminateProposalBoard
)
XXX_Size
()
int
{
return
xxx_messageInfo_TerminateProposalBoard
.
Size
(
m
)
}
func
(
m
*
TerminateProposalBoard
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_TerminateProposalBoard
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_TerminateProposalBoard
proto
.
InternalMessageInfo
func
(
m
*
TerminateProposalBoard
)
GetProposalID
()
string
{
if
m
!=
nil
{
...
...
@@ -239,14 +359,36 @@ func (m *TerminateProposalBoard) GetProposalID() string {
// receipt
type
ReceiptProposalBoard
struct
{
Prev
*
AutonomyProposalBoard
`protobuf:"bytes,1,opt,name=prev" json:"prev,omitempty"`
Current
*
AutonomyProposalBoard
`protobuf:"bytes,2,opt,name=current" json:"current,omitempty"`
Prev
*
AutonomyProposalBoard
`protobuf:"bytes,1,opt,name=prev,proto3" json:"prev,omitempty"`
Current
*
AutonomyProposalBoard
`protobuf:"bytes,2,opt,name=current,proto3" json:"current,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
ReceiptProposalBoard
)
Reset
()
{
*
m
=
ReceiptProposalBoard
{}
}
func
(
m
*
ReceiptProposalBoard
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReceiptProposalBoard
)
ProtoMessage
()
{}
func
(
*
ReceiptProposalBoard
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor1
,
[]
int
{
5
}
}
func
(
*
ReceiptProposalBoard
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_board_32b30cbe96ccf177
,
[]
int
{
5
}
}
func
(
m
*
ReceiptProposalBoard
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_ReceiptProposalBoard
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
ReceiptProposalBoard
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_ReceiptProposalBoard
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
ReceiptProposalBoard
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReceiptProposalBoard
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReceiptProposalBoard
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReceiptProposalBoard
.
Size
(
m
)
}
func
(
m
*
ReceiptProposalBoard
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_ReceiptProposalBoard
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_ReceiptProposalBoard
proto
.
InternalMessageInfo
func
(
m
*
ReceiptProposalBoard
)
GetPrev
()
*
AutonomyProposalBoard
{
if
m
!=
nil
{
...
...
@@ -263,14 +405,36 @@ func (m *ReceiptProposalBoard) GetCurrent() *AutonomyProposalBoard {
}
type
LocalProposalBoard
struct
{
PropBd
*
AutonomyProposalBoard
`protobuf:"bytes,1,opt,name=propBd" json:"propBd,omitempty"`
Comments
[]
string
`protobuf:"bytes,2,rep,name=comments" json:"comments,omitempty"`
PropBd
*
AutonomyProposalBoard
`protobuf:"bytes,1,opt,name=propBd,proto3" json:"propBd,omitempty"`
Comments
[]
string
`protobuf:"bytes,2,rep,name=comments,proto3" json:"comments,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
LocalProposalBoard
)
Reset
()
{
*
m
=
LocalProposalBoard
{}
}
func
(
m
*
LocalProposalBoard
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
LocalProposalBoard
)
ProtoMessage
()
{}
func
(
*
LocalProposalBoard
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor1
,
[]
int
{
6
}
}
func
(
*
LocalProposalBoard
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_board_32b30cbe96ccf177
,
[]
int
{
6
}
}
func
(
m
*
LocalProposalBoard
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_LocalProposalBoard
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
LocalProposalBoard
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_LocalProposalBoard
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
LocalProposalBoard
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_LocalProposalBoard
.
Merge
(
dst
,
src
)
}
func
(
m
*
LocalProposalBoard
)
XXX_Size
()
int
{
return
xxx_messageInfo_LocalProposalBoard
.
Size
(
m
)
}
func
(
m
*
LocalProposalBoard
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_LocalProposalBoard
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_LocalProposalBoard
proto
.
InternalMessageInfo
func
(
m
*
LocalProposalBoard
)
GetPropBd
()
*
AutonomyProposalBoard
{
if
m
!=
nil
{
...
...
@@ -288,18 +452,40 @@ func (m *LocalProposalBoard) GetComments() []string {
// query
type
ReqQueryProposalBoard
struct
{
Status
int32
`protobuf:"varint,1,opt,name=status" json:"status,omitempty"`
Addr
string
`protobuf:"bytes,2,opt,name=addr" json:"addr,omitempty"`
Count
int32
`protobuf:"varint,3,opt,name=count" json:"count,omitempty"`
Direction
int32
`protobuf:"varint,4,opt,name=direction" json:"direction,omitempty"`
Height
int64
`protobuf:"varint,5,opt,name=height" json:"height,omitempty"`
Index
int32
`protobuf:"varint,6,opt,name=index" json:"index,omitempty"`
Status
int32
`protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
Addr
string
`protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
Count
int32
`protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
Direction
int32
`protobuf:"varint,4,opt,name=direction,proto3" json:"direction,omitempty"`
Height
int64
`protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"`
Index
int32
`protobuf:"varint,6,opt,name=index,proto3" json:"index,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
ReqQueryProposalBoard
)
Reset
()
{
*
m
=
ReqQueryProposalBoard
{}
}
func
(
m
*
ReqQueryProposalBoard
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReqQueryProposalBoard
)
ProtoMessage
()
{}
func
(
*
ReqQueryProposalBoard
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor1
,
[]
int
{
7
}
}
func
(
*
ReqQueryProposalBoard
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_board_32b30cbe96ccf177
,
[]
int
{
7
}
}
func
(
m
*
ReqQueryProposalBoard
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_ReqQueryProposalBoard
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
ReqQueryProposalBoard
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_ReqQueryProposalBoard
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
ReqQueryProposalBoard
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReqQueryProposalBoard
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReqQueryProposalBoard
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReqQueryProposalBoard
.
Size
(
m
)
}
func
(
m
*
ReqQueryProposalBoard
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_ReqQueryProposalBoard
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_ReqQueryProposalBoard
proto
.
InternalMessageInfo
func
(
m
*
ReqQueryProposalBoard
)
GetStatus
()
int32
{
if
m
!=
nil
{
...
...
@@ -344,13 +530,35 @@ func (m *ReqQueryProposalBoard) GetIndex() int32 {
}
type
ReplyQueryProposalBoard
struct
{
PropBoards
[]
*
AutonomyProposalBoard
`protobuf:"bytes,1,rep,name=propBoards" json:"propBoards,omitempty"`
PropBoards
[]
*
AutonomyProposalBoard
`protobuf:"bytes,1,rep,name=propBoards,proto3" json:"propBoards,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
ReplyQueryProposalBoard
)
Reset
()
{
*
m
=
ReplyQueryProposalBoard
{}
}
func
(
m
*
ReplyQueryProposalBoard
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReplyQueryProposalBoard
)
ProtoMessage
()
{}
func
(
*
ReplyQueryProposalBoard
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor1
,
[]
int
{
8
}
}
func
(
*
ReplyQueryProposalBoard
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_board_32b30cbe96ccf177
,
[]
int
{
8
}
}
func
(
m
*
ReplyQueryProposalBoard
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_ReplyQueryProposalBoard
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
ReplyQueryProposalBoard
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_ReplyQueryProposalBoard
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
ReplyQueryProposalBoard
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReplyQueryProposalBoard
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReplyQueryProposalBoard
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReplyQueryProposalBoard
.
Size
(
m
)
}
func
(
m
*
ReplyQueryProposalBoard
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_ReplyQueryProposalBoard
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_ReplyQueryProposalBoard
proto
.
InternalMessageInfo
func
(
m
*
ReplyQueryProposalBoard
)
GetPropBoards
()
[]
*
AutonomyProposalBoard
{
if
m
!=
nil
{
...
...
@@ -371,9 +579,9 @@ func init() {
proto
.
RegisterType
((
*
ReplyQueryProposalBoard
)(
nil
),
"types.ReplyQueryProposalBoard"
)
}
func
init
()
{
proto
.
RegisterFile
(
"board.proto"
,
fileDescriptor
1
)
}
func
init
()
{
proto
.
RegisterFile
(
"board.proto"
,
fileDescriptor
_board_32b30cbe96ccf177
)
}
var
fileDescriptor
1
=
[]
byte
{
var
fileDescriptor
_board_32b30cbe96ccf177
=
[]
byte
{
// 587 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0x94
,
0x54
,
0x4d
,
0x6f
,
0xd4
,
0x30
,
0x10
,
0x55
,
0x9a
,
0x4d
,
0xba
,
0x99
,
0xaa
,
0xa8
,
0x35
,
0x6d
,
0xb1
,
0xaa
,
0x0a
,
0xad
,
0x72
,
0x40
,
...
...
plugin/dapp/autonomy/types/change.pb.go
View file @
745335fe
...
...
@@ -3,35 +3,67 @@
package
types
import
proto
"github.com/golang/protobuf/proto"
import
fmt
"fmt"
import
math
"math"
import
(
fmt
"fmt"
proto
"github.com/golang/protobuf/proto"
math
"math"
)
// Reference imports to suppress errors if they are not otherwise used.
var
_
=
proto
.
Marshal
var
_
=
fmt
.
Errorf
var
_
=
math
.
Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const
_
=
proto
.
ProtoPackageIsVersion2
// please upgrade the proto package
type
AutonomyProposalChange
struct
{
PropChange
*
ProposalChange
`protobuf:"bytes,1,opt,name=propChange" json:"propChange,omitempty"`
PropChange
*
ProposalChange
`protobuf:"bytes,1,opt,name=propChange
,proto3
" json:"propChange,omitempty"`
// 投票该提案的规则
CurRule
*
RuleConfig
`protobuf:"bytes,2,opt,name=curRule" json:"curRule,omitempty"`
CurRule
*
RuleConfig
`protobuf:"bytes,2,opt,name=curRule
,proto3
" json:"curRule,omitempty"`
// 投票董事会
Board
*
ActiveBoard
`protobuf:"bytes,3,opt,name=board" json:"board,omitempty"`
Board
*
ActiveBoard
`protobuf:"bytes,3,opt,name=board
,proto3
" json:"board,omitempty"`
// 全体持票人投票结果
VoteResult
*
VoteResult
`protobuf:"bytes,4,opt,name=voteResult" json:"voteResult,omitempty"`
VoteResult
*
VoteResult
`protobuf:"bytes,4,opt,name=voteResult
,proto3
" json:"voteResult,omitempty"`
// 状态
Status
int32
`protobuf:"varint,5,opt,name=status" json:"status,omitempty"`
Address
string
`protobuf:"bytes,6,opt,name=address" json:"address,omitempty"`
Height
int64
`protobuf:"varint,7,opt,name=height" json:"height,omitempty"`
Index
int32
`protobuf:"varint,8,opt,name=index" json:"index,omitempty"`
ProposalID
string
`protobuf:"bytes,9,opt,name=proposalID" json:"proposalID,omitempty"`
Status
int32
`protobuf:"varint,5,opt,name=status,proto3" json:"status,omitempty"`
Address
string
`protobuf:"bytes,6,opt,name=address,proto3" json:"address,omitempty"`
Height
int64
`protobuf:"varint,7,opt,name=height,proto3" json:"height,omitempty"`
Index
int32
`protobuf:"varint,8,opt,name=index,proto3" json:"index,omitempty"`
ProposalID
string
`protobuf:"bytes,9,opt,name=proposalID,proto3" json:"proposalID,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
AutonomyProposalChange
)
Reset
()
{
*
m
=
AutonomyProposalChange
{}
}
func
(
m
*
AutonomyProposalChange
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
AutonomyProposalChange
)
ProtoMessage
()
{}
func
(
*
AutonomyProposalChange
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor2
,
[]
int
{
0
}
}
func
(
*
AutonomyProposalChange
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_change_bc1669622d095f31
,
[]
int
{
0
}
}
func
(
m
*
AutonomyProposalChange
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_AutonomyProposalChange
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
AutonomyProposalChange
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_AutonomyProposalChange
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
AutonomyProposalChange
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_AutonomyProposalChange
.
Merge
(
dst
,
src
)
}
func
(
m
*
AutonomyProposalChange
)
XXX_Size
()
int
{
return
xxx_messageInfo_AutonomyProposalChange
.
Size
(
m
)
}
func
(
m
*
AutonomyProposalChange
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_AutonomyProposalChange
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_AutonomyProposalChange
proto
.
InternalMessageInfo
func
(
m
*
AutonomyProposalChange
)
GetPropChange
()
*
ProposalChange
{
if
m
!=
nil
{
...
...
@@ -99,21 +131,43 @@ func (m *AutonomyProposalChange) GetProposalID() string {
// action
type
ProposalChange
struct
{
// 提案时间
Year
int32
`protobuf:"varint,1,opt,name=year" json:"year,omitempty"`
Month
int32
`protobuf:"varint,2,opt,name=month" json:"month,omitempty"`
Day
int32
`protobuf:"varint,3,opt,name=day" json:"day,omitempty"`
Year
int32
`protobuf:"varint,1,opt,name=year
,proto3
" json:"year,omitempty"`
Month
int32
`protobuf:"varint,2,opt,name=month
,proto3
" json:"month,omitempty"`
Day
int32
`protobuf:"varint,3,opt,name=day
,proto3
" json:"day,omitempty"`
// 修改董事会成员
Changes
[]
*
Change
`protobuf:"bytes,4,rep,name=changes" json:"changes,omitempty"`
Changes
[]
*
Change
`protobuf:"bytes,4,rep,name=changes
,proto3
" json:"changes,omitempty"`
// 投票相关
StartBlockHeight
int64
`protobuf:"varint,5,opt,name=startBlockHeight" json:"startBlockHeight,omitempty"`
EndBlockHeight
int64
`protobuf:"varint,6,opt,name=endBlockHeight" json:"endBlockHeight,omitempty"`
RealEndBlockHeight
int64
`protobuf:"varint,7,opt,name=realEndBlockHeight" json:"realEndBlockHeight,omitempty"`
StartBlockHeight
int64
`protobuf:"varint,5,opt,name=startBlockHeight,proto3" json:"startBlockHeight,omitempty"`
EndBlockHeight
int64
`protobuf:"varint,6,opt,name=endBlockHeight,proto3" json:"endBlockHeight,omitempty"`
RealEndBlockHeight
int64
`protobuf:"varint,7,opt,name=realEndBlockHeight,proto3" json:"realEndBlockHeight,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
ProposalChange
)
Reset
()
{
*
m
=
ProposalChange
{}
}
func
(
m
*
ProposalChange
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ProposalChange
)
ProtoMessage
()
{}
func
(
*
ProposalChange
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor2
,
[]
int
{
1
}
}
func
(
*
ProposalChange
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_change_bc1669622d095f31
,
[]
int
{
1
}
}
func
(
m
*
ProposalChange
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_ProposalChange
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
ProposalChange
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_ProposalChange
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
ProposalChange
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ProposalChange
.
Merge
(
dst
,
src
)
}
func
(
m
*
ProposalChange
)
XXX_Size
()
int
{
return
xxx_messageInfo_ProposalChange
.
Size
(
m
)
}
func
(
m
*
ProposalChange
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_ProposalChange
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_ProposalChange
proto
.
InternalMessageInfo
func
(
m
*
ProposalChange
)
GetYear
()
int32
{
if
m
!=
nil
{
...
...
@@ -166,14 +220,36 @@ func (m *ProposalChange) GetRealEndBlockHeight() int64 {
type
Change
struct
{
// 1 取消 0 恢复
Cancel
bool
`protobuf:"varint,1,opt,name=cancel" json:"cancel,omitempty"`
Addr
string
`protobuf:"bytes,2,opt,name=addr" json:"addr,omitempty"`
Cancel
bool
`protobuf:"varint,1,opt,name=cancel,proto3" json:"cancel,omitempty"`
Addr
string
`protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
Change
)
Reset
()
{
*
m
=
Change
{}
}
func
(
m
*
Change
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
Change
)
ProtoMessage
()
{}
func
(
*
Change
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor2
,
[]
int
{
2
}
}
func
(
*
Change
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_change_bc1669622d095f31
,
[]
int
{
2
}
}
func
(
m
*
Change
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_Change
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
Change
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_Change
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
Change
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_Change
.
Merge
(
dst
,
src
)
}
func
(
m
*
Change
)
XXX_Size
()
int
{
return
xxx_messageInfo_Change
.
Size
(
m
)
}
func
(
m
*
Change
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_Change
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_Change
proto
.
InternalMessageInfo
func
(
m
*
Change
)
GetCancel
()
bool
{
if
m
!=
nil
{
...
...
@@ -190,13 +266,35 @@ func (m *Change) GetAddr() string {
}
type
RevokeProposalChange
struct
{
ProposalID
string
`protobuf:"bytes,1,opt,name=proposalID" json:"proposalID,omitempty"`
ProposalID
string
`protobuf:"bytes,1,opt,name=proposalID,proto3" json:"proposalID,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
RevokeProposalChange
)
Reset
()
{
*
m
=
RevokeProposalChange
{}
}
func
(
m
*
RevokeProposalChange
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
RevokeProposalChange
)
ProtoMessage
()
{}
func
(
*
RevokeProposalChange
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor2
,
[]
int
{
3
}
}
func
(
*
RevokeProposalChange
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_change_bc1669622d095f31
,
[]
int
{
3
}
}
func
(
m
*
RevokeProposalChange
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_RevokeProposalChange
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
RevokeProposalChange
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_RevokeProposalChange
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
RevokeProposalChange
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_RevokeProposalChange
.
Merge
(
dst
,
src
)
}
func
(
m
*
RevokeProposalChange
)
XXX_Size
()
int
{
return
xxx_messageInfo_RevokeProposalChange
.
Size
(
m
)
}
func
(
m
*
RevokeProposalChange
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_RevokeProposalChange
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_RevokeProposalChange
proto
.
InternalMessageInfo
func
(
m
*
RevokeProposalChange
)
GetProposalID
()
string
{
if
m
!=
nil
{
...
...
@@ -206,14 +304,36 @@ func (m *RevokeProposalChange) GetProposalID() string {
}
type
VoteProposalChange
struct
{
ProposalID
string
`protobuf:"bytes,1,opt,name=proposalID" json:"proposalID,omitempty"`
Approve
bool
`protobuf:"varint,2,opt,name=approve" json:"approve,omitempty"`
ProposalID
string
`protobuf:"bytes,1,opt,name=proposalID,proto3" json:"proposalID,omitempty"`
Approve
bool
`protobuf:"varint,2,opt,name=approve,proto3" json:"approve,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
VoteProposalChange
)
Reset
()
{
*
m
=
VoteProposalChange
{}
}
func
(
m
*
VoteProposalChange
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
VoteProposalChange
)
ProtoMessage
()
{}
func
(
*
VoteProposalChange
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor2
,
[]
int
{
4
}
}
func
(
*
VoteProposalChange
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_change_bc1669622d095f31
,
[]
int
{
4
}
}
func
(
m
*
VoteProposalChange
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_VoteProposalChange
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
VoteProposalChange
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_VoteProposalChange
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
VoteProposalChange
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_VoteProposalChange
.
Merge
(
dst
,
src
)
}
func
(
m
*
VoteProposalChange
)
XXX_Size
()
int
{
return
xxx_messageInfo_VoteProposalChange
.
Size
(
m
)
}
func
(
m
*
VoteProposalChange
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_VoteProposalChange
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_VoteProposalChange
proto
.
InternalMessageInfo
func
(
m
*
VoteProposalChange
)
GetProposalID
()
string
{
if
m
!=
nil
{
...
...
@@ -230,13 +350,35 @@ func (m *VoteProposalChange) GetApprove() bool {
}
type
TerminateProposalChange
struct
{
ProposalID
string
`protobuf:"bytes,1,opt,name=proposalID" json:"proposalID,omitempty"`
ProposalID
string
`protobuf:"bytes,1,opt,name=proposalID,proto3" json:"proposalID,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
TerminateProposalChange
)
Reset
()
{
*
m
=
TerminateProposalChange
{}
}
func
(
m
*
TerminateProposalChange
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
TerminateProposalChange
)
ProtoMessage
()
{}
func
(
*
TerminateProposalChange
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor2
,
[]
int
{
5
}
}
func
(
*
TerminateProposalChange
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_change_bc1669622d095f31
,
[]
int
{
5
}
}
func
(
m
*
TerminateProposalChange
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_TerminateProposalChange
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
TerminateProposalChange
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_TerminateProposalChange
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
TerminateProposalChange
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_TerminateProposalChange
.
Merge
(
dst
,
src
)
}
func
(
m
*
TerminateProposalChange
)
XXX_Size
()
int
{
return
xxx_messageInfo_TerminateProposalChange
.
Size
(
m
)
}
func
(
m
*
TerminateProposalChange
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_TerminateProposalChange
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_TerminateProposalChange
proto
.
InternalMessageInfo
func
(
m
*
TerminateProposalChange
)
GetProposalID
()
string
{
if
m
!=
nil
{
...
...
@@ -247,14 +389,36 @@ func (m *TerminateProposalChange) GetProposalID() string {
// receipt
type
ReceiptProposalChange
struct
{
Prev
*
AutonomyProposalChange
`protobuf:"bytes,1,opt,name=prev" json:"prev,omitempty"`
Current
*
AutonomyProposalChange
`protobuf:"bytes,2,opt,name=current" json:"current,omitempty"`
Prev
*
AutonomyProposalChange
`protobuf:"bytes,1,opt,name=prev,proto3" json:"prev,omitempty"`
Current
*
AutonomyProposalChange
`protobuf:"bytes,2,opt,name=current,proto3" json:"current,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
ReceiptProposalChange
)
Reset
()
{
*
m
=
ReceiptProposalChange
{}
}
func
(
m
*
ReceiptProposalChange
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReceiptProposalChange
)
ProtoMessage
()
{}
func
(
*
ReceiptProposalChange
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor2
,
[]
int
{
6
}
}
func
(
*
ReceiptProposalChange
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_change_bc1669622d095f31
,
[]
int
{
6
}
}
func
(
m
*
ReceiptProposalChange
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_ReceiptProposalChange
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
ReceiptProposalChange
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_ReceiptProposalChange
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
ReceiptProposalChange
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReceiptProposalChange
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReceiptProposalChange
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReceiptProposalChange
.
Size
(
m
)
}
func
(
m
*
ReceiptProposalChange
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_ReceiptProposalChange
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_ReceiptProposalChange
proto
.
InternalMessageInfo
func
(
m
*
ReceiptProposalChange
)
GetPrev
()
*
AutonomyProposalChange
{
if
m
!=
nil
{
...
...
@@ -271,14 +435,36 @@ func (m *ReceiptProposalChange) GetCurrent() *AutonomyProposalChange {
}
type
LocalProposalChange
struct
{
PropBd
*
AutonomyProposalChange
`protobuf:"bytes,1,opt,name=propBd" json:"propBd,omitempty"`
Comments
[]
string
`protobuf:"bytes,2,rep,name=comments" json:"comments,omitempty"`
PropBd
*
AutonomyProposalChange
`protobuf:"bytes,1,opt,name=propBd,proto3" json:"propBd,omitempty"`
Comments
[]
string
`protobuf:"bytes,2,rep,name=comments,proto3" json:"comments,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
LocalProposalChange
)
Reset
()
{
*
m
=
LocalProposalChange
{}
}
func
(
m
*
LocalProposalChange
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
LocalProposalChange
)
ProtoMessage
()
{}
func
(
*
LocalProposalChange
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor2
,
[]
int
{
7
}
}
func
(
*
LocalProposalChange
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_change_bc1669622d095f31
,
[]
int
{
7
}
}
func
(
m
*
LocalProposalChange
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_LocalProposalChange
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
LocalProposalChange
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_LocalProposalChange
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
LocalProposalChange
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_LocalProposalChange
.
Merge
(
dst
,
src
)
}
func
(
m
*
LocalProposalChange
)
XXX_Size
()
int
{
return
xxx_messageInfo_LocalProposalChange
.
Size
(
m
)
}
func
(
m
*
LocalProposalChange
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_LocalProposalChange
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_LocalProposalChange
proto
.
InternalMessageInfo
func
(
m
*
LocalProposalChange
)
GetPropBd
()
*
AutonomyProposalChange
{
if
m
!=
nil
{
...
...
@@ -296,18 +482,40 @@ func (m *LocalProposalChange) GetComments() []string {
// query
type
ReqQueryProposalChange
struct
{
Status
int32
`protobuf:"varint,1,opt,name=status" json:"status,omitempty"`
Addr
string
`protobuf:"bytes,2,opt,name=addr" json:"addr,omitempty"`
Count
int32
`protobuf:"varint,3,opt,name=count" json:"count,omitempty"`
Direction
int32
`protobuf:"varint,4,opt,name=direction" json:"direction,omitempty"`
Height
int64
`protobuf:"varint,5,opt,name=height" json:"height,omitempty"`
Index
int32
`protobuf:"varint,6,opt,name=index" json:"index,omitempty"`
Status
int32
`protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
Addr
string
`protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
Count
int32
`protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
Direction
int32
`protobuf:"varint,4,opt,name=direction,proto3" json:"direction,omitempty"`
Height
int64
`protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"`
Index
int32
`protobuf:"varint,6,opt,name=index,proto3" json:"index,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
ReqQueryProposalChange
)
Reset
()
{
*
m
=
ReqQueryProposalChange
{}
}
func
(
m
*
ReqQueryProposalChange
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReqQueryProposalChange
)
ProtoMessage
()
{}
func
(
*
ReqQueryProposalChange
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor2
,
[]
int
{
8
}
}
func
(
*
ReqQueryProposalChange
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_change_bc1669622d095f31
,
[]
int
{
8
}
}
func
(
m
*
ReqQueryProposalChange
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_ReqQueryProposalChange
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
ReqQueryProposalChange
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_ReqQueryProposalChange
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
ReqQueryProposalChange
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReqQueryProposalChange
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReqQueryProposalChange
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReqQueryProposalChange
.
Size
(
m
)
}
func
(
m
*
ReqQueryProposalChange
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_ReqQueryProposalChange
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_ReqQueryProposalChange
proto
.
InternalMessageInfo
func
(
m
*
ReqQueryProposalChange
)
GetStatus
()
int32
{
if
m
!=
nil
{
...
...
@@ -352,13 +560,35 @@ func (m *ReqQueryProposalChange) GetIndex() int32 {
}
type
ReplyQueryProposalChange
struct
{
PropChanges
[]
*
AutonomyProposalChange
`protobuf:"bytes,1,rep,name=propChanges" json:"propChanges,omitempty"`
PropChanges
[]
*
AutonomyProposalChange
`protobuf:"bytes,1,rep,name=propChanges,proto3" json:"propChanges,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
ReplyQueryProposalChange
)
Reset
()
{
*
m
=
ReplyQueryProposalChange
{}
}
func
(
m
*
ReplyQueryProposalChange
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReplyQueryProposalChange
)
ProtoMessage
()
{}
func
(
*
ReplyQueryProposalChange
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor2
,
[]
int
{
9
}
}
func
(
*
ReplyQueryProposalChange
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_change_bc1669622d095f31
,
[]
int
{
9
}
}
func
(
m
*
ReplyQueryProposalChange
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_ReplyQueryProposalChange
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
ReplyQueryProposalChange
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_ReplyQueryProposalChange
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
ReplyQueryProposalChange
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReplyQueryProposalChange
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReplyQueryProposalChange
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReplyQueryProposalChange
.
Size
(
m
)
}
func
(
m
*
ReplyQueryProposalChange
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_ReplyQueryProposalChange
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_ReplyQueryProposalChange
proto
.
InternalMessageInfo
func
(
m
*
ReplyQueryProposalChange
)
GetPropChanges
()
[]
*
AutonomyProposalChange
{
if
m
!=
nil
{
...
...
@@ -380,9 +610,9 @@ func init() {
proto
.
RegisterType
((
*
ReplyQueryProposalChange
)(
nil
),
"types.ReplyQueryProposalChange"
)
}
func
init
()
{
proto
.
RegisterFile
(
"change.proto"
,
fileDescriptor
2
)
}
func
init
()
{
proto
.
RegisterFile
(
"change.proto"
,
fileDescriptor
_change_bc1669622d095f31
)
}
var
fileDescriptor
2
=
[]
byte
{
var
fileDescriptor
_change_bc1669622d095f31
=
[]
byte
{
// 596 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0x94
,
0x54
,
0x4d
,
0x6f
,
0xd4
,
0x30
,
0x10
,
0x55
,
0x9a
,
0x4d
,
0x76
,
0x77
,
0x4a
,
0xab
,
0x62
,
0xda
,
0xc5
,
0xaa
,
0x00
,
0x45
,
0x39
,
0x40
,
...
...
plugin/dapp/autonomy/types/lcommon.pb.go
View file @
745335fe
...
...
@@ -3,30 +3,62 @@
package
types
import
proto
"github.com/golang/protobuf/proto"
import
fmt
"fmt"
import
math
"math"
import
(
fmt
"fmt"
proto
"github.com/golang/protobuf/proto"
math
"math"
)
// Reference imports to suppress errors if they are not otherwise used.
var
_
=
proto
.
Marshal
var
_
=
fmt
.
Errorf
var
_
=
math
.
Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const
_
=
proto
.
ProtoPackageIsVersion2
// please upgrade the proto package
type
VoteResult
struct
{
// 总票数
TotalVotes
int32
`protobuf:"varint,1,opt,name=totalVotes" json:"totalVotes,omitempty"`
TotalVotes
int32
`protobuf:"varint,1,opt,name=totalVotes
,proto3
" json:"totalVotes,omitempty"`
// 赞成票
ApproveVotes
int32
`protobuf:"varint,2,opt,name=approveVotes" json:"approveVotes,omitempty"`
ApproveVotes
int32
`protobuf:"varint,2,opt,name=approveVotes
,proto3
" json:"approveVotes,omitempty"`
// 反对票
OpposeVotes
int32
`protobuf:"varint,3,opt,name=opposeVotes" json:"opposeVotes,omitempty"`
OpposeVotes
int32
`protobuf:"varint,3,opt,name=opposeVotes
,proto3
" json:"opposeVotes,omitempty"`
// 是否通过
Pass
bool
`protobuf:"varint,4,opt,name=pass" json:"pass,omitempty"`
Pass
bool
`protobuf:"varint,4,opt,name=pass,proto3" json:"pass,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
VoteResult
)
Reset
()
{
*
m
=
VoteResult
{}
}
func
(
m
*
VoteResult
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
VoteResult
)
ProtoMessage
()
{}
func
(
*
VoteResult
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor3
,
[]
int
{
0
}
}
func
(
*
VoteResult
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_lcommon_46832911ed0f42f1
,
[]
int
{
0
}
}
func
(
m
*
VoteResult
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_VoteResult
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
VoteResult
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_VoteResult
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
VoteResult
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_VoteResult
.
Merge
(
dst
,
src
)
}
func
(
m
*
VoteResult
)
XXX_Size
()
int
{
return
xxx_messageInfo_VoteResult
.
Size
(
m
)
}
func
(
m
*
VoteResult
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_VoteResult
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_VoteResult
proto
.
InternalMessageInfo
func
(
m
*
VoteResult
)
GetTotalVotes
()
int32
{
if
m
!=
nil
{
...
...
@@ -58,19 +90,41 @@ func (m *VoteResult) GetPass() bool {
type
PublicVote
struct
{
// 是否需要公示
Publicity
bool
`protobuf:"varint,1,opt,name=publicity" json:"publicity,omitempty"`
Publicity
bool
`protobuf:"varint,1,opt,name=publicity
,proto3
" json:"publicity,omitempty"`
// 总票数
TotalVotes
int32
`protobuf:"varint,2,opt,name=totalVotes" json:"totalVotes,omitempty"`
TotalVotes
int32
`protobuf:"varint,2,opt,name=totalVotes
,proto3
" json:"totalVotes,omitempty"`
// 全体持票人反对票
OpposeVotes
int32
`protobuf:"varint,3,opt,name=opposeVotes" json:"opposeVotes,omitempty"`
OpposeVotes
int32
`protobuf:"varint,3,opt,name=opposeVotes
,proto3
" json:"opposeVotes,omitempty"`
// 是否通过
PubPass
bool
`protobuf:"varint,4,opt,name=pubPass" json:"pubPass,omitempty"`
PubPass
bool
`protobuf:"varint,4,opt,name=pubPass,proto3" json:"pubPass,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
PublicVote
)
Reset
()
{
*
m
=
PublicVote
{}
}
func
(
m
*
PublicVote
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
PublicVote
)
ProtoMessage
()
{}
func
(
*
PublicVote
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor3
,
[]
int
{
1
}
}
func
(
*
PublicVote
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_lcommon_46832911ed0f42f1
,
[]
int
{
1
}
}
func
(
m
*
PublicVote
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_PublicVote
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
PublicVote
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_PublicVote
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
PublicVote
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_PublicVote
.
Merge
(
dst
,
src
)
}
func
(
m
*
PublicVote
)
XXX_Size
()
int
{
return
xxx_messageInfo_PublicVote
.
Size
(
m
)
}
func
(
m
*
PublicVote
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_PublicVote
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_PublicVote
proto
.
InternalMessageInfo
func
(
m
*
PublicVote
)
GetPublicity
()
bool
{
if
m
!=
nil
{
...
...
@@ -101,13 +155,35 @@ func (m *PublicVote) GetPubPass() bool {
}
type
VotesRecord
struct
{
Address
[]
string
`protobuf:"bytes,1,rep,name=address" json:"address,omitempty"`
Address
[]
string
`protobuf:"bytes,1,rep,name=address,proto3" json:"address,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
VotesRecord
)
Reset
()
{
*
m
=
VotesRecord
{}
}
func
(
m
*
VotesRecord
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
VotesRecord
)
ProtoMessage
()
{}
func
(
*
VotesRecord
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor3
,
[]
int
{
2
}
}
func
(
*
VotesRecord
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_lcommon_46832911ed0f42f1
,
[]
int
{
2
}
}
func
(
m
*
VotesRecord
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_VotesRecord
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
VotesRecord
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_VotesRecord
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
VotesRecord
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_VotesRecord
.
Merge
(
dst
,
src
)
}
func
(
m
*
VotesRecord
)
XXX_Size
()
int
{
return
xxx_messageInfo_VotesRecord
.
Size
(
m
)
}
func
(
m
*
VotesRecord
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_VotesRecord
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_VotesRecord
proto
.
InternalMessageInfo
func
(
m
*
VotesRecord
)
GetAddress
()
[]
string
{
if
m
!=
nil
{
...
...
@@ -118,21 +194,43 @@ func (m *VotesRecord) GetAddress() []string {
type
RuleConfig
struct
{
// 董事会成员赞成率,以%为单位,只保留整数部分
BoardApproveRatio
int32
`protobuf:"varint,1,opt,name=boardApproveRatio" json:"boardApproveRatio,omitempty"`
BoardApproveRatio
int32
`protobuf:"varint,1,opt,name=boardApproveRatio
,proto3
" json:"boardApproveRatio,omitempty"`
// 全体持票人否决率
PubOpposeRatio
int32
`protobuf:"varint,2,opt,name=pubOpposeRatio" json:"pubOpposeRatio,omitempty"`
PubOpposeRatio
int32
`protobuf:"varint,2,opt,name=pubOpposeRatio
,proto3
" json:"pubOpposeRatio,omitempty"`
// 提案金额
ProposalAmount
int64
`protobuf:"varint,3,opt,name=proposalAmount" json:"proposalAmount,omitempty"`
ProposalAmount
int64
`protobuf:"varint,3,opt,name=proposalAmount
,proto3
" json:"proposalAmount,omitempty"`
// 重大项目公示金额阈值
LargeProjectAmount
int64
`protobuf:"varint,4,opt,name=largeProjectAmount" json:"largeProjectAmount,omitempty"`
LargeProjectAmount
int64
`protobuf:"varint,4,opt,name=largeProjectAmount
,proto3
" json:"largeProjectAmount,omitempty"`
// 重大项目公示时间(以区块数为单位)
PublicPeriod
int32
`protobuf:"varint,5,opt,name=publicPeriod" json:"publicPeriod,omitempty"`
PublicPeriod
int32
`protobuf:"varint,5,opt,name=publicPeriod,proto3" json:"publicPeriod,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
RuleConfig
)
Reset
()
{
*
m
=
RuleConfig
{}
}
func
(
m
*
RuleConfig
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
RuleConfig
)
ProtoMessage
()
{}
func
(
*
RuleConfig
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor3
,
[]
int
{
3
}
}
func
(
*
RuleConfig
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_lcommon_46832911ed0f42f1
,
[]
int
{
3
}
}
func
(
m
*
RuleConfig
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_RuleConfig
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
RuleConfig
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_RuleConfig
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
RuleConfig
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_RuleConfig
.
Merge
(
dst
,
src
)
}
func
(
m
*
RuleConfig
)
XXX_Size
()
int
{
return
xxx_messageInfo_RuleConfig
.
Size
(
m
)
}
func
(
m
*
RuleConfig
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_RuleConfig
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_RuleConfig
proto
.
InternalMessageInfo
func
(
m
*
RuleConfig
)
GetBoardApproveRatio
()
int32
{
if
m
!=
nil
{
...
...
@@ -170,16 +268,38 @@ func (m *RuleConfig) GetPublicPeriod() int32 {
}
type
ActiveBoard
struct
{
Boards
[]
string
`protobuf:"bytes,1,rep,name=boards" json:"boards,omitempty"`
Revboards
[]
string
`protobuf:"bytes,2,rep,name=revboards" json:"revboards,omitempty"`
Amount
int64
`protobuf:"varint,3,opt,name=amount" json:"amount,omitempty"`
StartHeight
int64
`protobuf:"varint,4,opt,name=startHeight" json:"startHeight,omitempty"`
Boards
[]
string
`protobuf:"bytes,1,rep,name=boards,proto3" json:"boards,omitempty"`
Revboards
[]
string
`protobuf:"bytes,2,rep,name=revboards,proto3" json:"revboards,omitempty"`
Amount
int64
`protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
StartHeight
int64
`protobuf:"varint,4,opt,name=startHeight,proto3" json:"startHeight,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
ActiveBoard
)
Reset
()
{
*
m
=
ActiveBoard
{}
}
func
(
m
*
ActiveBoard
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ActiveBoard
)
ProtoMessage
()
{}
func
(
*
ActiveBoard
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor3
,
[]
int
{
4
}
}
func
(
*
ActiveBoard
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_lcommon_46832911ed0f42f1
,
[]
int
{
4
}
}
func
(
m
*
ActiveBoard
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_ActiveBoard
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
ActiveBoard
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_ActiveBoard
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
ActiveBoard
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ActiveBoard
.
Merge
(
dst
,
src
)
}
func
(
m
*
ActiveBoard
)
XXX_Size
()
int
{
return
xxx_messageInfo_ActiveBoard
.
Size
(
m
)
}
func
(
m
*
ActiveBoard
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_ActiveBoard
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_ActiveBoard
proto
.
InternalMessageInfo
func
(
m
*
ActiveBoard
)
GetBoards
()
[]
string
{
if
m
!=
nil
{
...
...
@@ -217,9 +337,9 @@ func init() {
proto
.
RegisterType
((
*
ActiveBoard
)(
nil
),
"types.ActiveBoard"
)
}
func
init
()
{
proto
.
RegisterFile
(
"lcommon.proto"
,
fileDescriptor
3
)
}
func
init
()
{
proto
.
RegisterFile
(
"lcommon.proto"
,
fileDescriptor
_lcommon_46832911ed0f42f1
)
}
var
fileDescriptor
3
=
[]
byte
{
var
fileDescriptor
_lcommon_46832911ed0f42f1
=
[]
byte
{
// 352 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0x84
,
0x92
,
0xbf
,
0x4e
,
0xe3
,
0x40
,
0x10
,
0x87
,
0xe5
,
0xfc
,
0xbb
,
0x64
,
0x72
,
0x77
,
0xd2
,
0x6d
,
0x71
,
0x72
,
0x81
,
0x50
,
0xe4
,
0x02
,
...
...
plugin/dapp/autonomy/types/project.pb.go
View file @
745335fe
...
...
@@ -3,37 +3,69 @@
package
types
import
proto
"github.com/golang/protobuf/proto"
import
fmt
"fmt"
import
math
"math"
import
(
fmt
"fmt"
proto
"github.com/golang/protobuf/proto"
math
"math"
)
// Reference imports to suppress errors if they are not otherwise used.
var
_
=
proto
.
Marshal
var
_
=
fmt
.
Errorf
var
_
=
math
.
Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const
_
=
proto
.
ProtoPackageIsVersion2
// please upgrade the proto package
type
AutonomyProposalProject
struct
{
PropProject
*
ProposalProject
`protobuf:"bytes,1,opt,name=propProject" json:"propProject,omitempty"`
PropProject
*
ProposalProject
`protobuf:"bytes,1,opt,name=propProject
,proto3
" json:"propProject,omitempty"`
// 投票该提案的规则
CurRule
*
RuleConfig
`protobuf:"bytes,2,opt,name=curRule" json:"curRule,omitempty"`
CurRule
*
RuleConfig
`protobuf:"bytes,2,opt,name=curRule
,proto3
" json:"curRule,omitempty"`
// 投票该提案的董事会成员
Boards
[]
string
`protobuf:"bytes,3,rep,name=boards" json:"boards,omitempty"`
Boards
[]
string
`protobuf:"bytes,3,rep,name=boards
,proto3
" json:"boards,omitempty"`
// 董事会投票结果
BoardVoteRes
*
VoteResult
`protobuf:"bytes,4,opt,name=boardVoteRes" json:"boardVoteRes,omitempty"`
BoardVoteRes
*
VoteResult
`protobuf:"bytes,4,opt,name=boardVoteRes
,proto3
" json:"boardVoteRes,omitempty"`
// 公示投票
PubVote
*
PublicVote
`protobuf:"bytes,5,opt,name=pubVote" json:"pubVote,omitempty"`
PubVote
*
PublicVote
`protobuf:"bytes,5,opt,name=pubVote
,proto3
" json:"pubVote,omitempty"`
// 状态
Status
int32
`protobuf:"varint,6,opt,name=status" json:"status,omitempty"`
Address
string
`protobuf:"bytes,7,opt,name=address" json:"address,omitempty"`
Height
int64
`protobuf:"varint,8,opt,name=height" json:"height,omitempty"`
Index
int32
`protobuf:"varint,9,opt,name=index" json:"index,omitempty"`
ProposalID
string
`protobuf:"bytes,10,opt,name=proposalID" json:"proposalID,omitempty"`
Status
int32
`protobuf:"varint,6,opt,name=status,proto3" json:"status,omitempty"`
Address
string
`protobuf:"bytes,7,opt,name=address,proto3" json:"address,omitempty"`
Height
int64
`protobuf:"varint,8,opt,name=height,proto3" json:"height,omitempty"`
Index
int32
`protobuf:"varint,9,opt,name=index,proto3" json:"index,omitempty"`
ProposalID
string
`protobuf:"bytes,10,opt,name=proposalID,proto3" json:"proposalID,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
AutonomyProposalProject
)
Reset
()
{
*
m
=
AutonomyProposalProject
{}
}
func
(
m
*
AutonomyProposalProject
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
AutonomyProposalProject
)
ProtoMessage
()
{}
func
(
*
AutonomyProposalProject
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor4
,
[]
int
{
0
}
}
func
(
*
AutonomyProposalProject
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_project_56f3f85d427589c6
,
[]
int
{
0
}
}
func
(
m
*
AutonomyProposalProject
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_AutonomyProposalProject
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
AutonomyProposalProject
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_AutonomyProposalProject
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
AutonomyProposalProject
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_AutonomyProposalProject
.
Merge
(
dst
,
src
)
}
func
(
m
*
AutonomyProposalProject
)
XXX_Size
()
int
{
return
xxx_messageInfo_AutonomyProposalProject
.
Size
(
m
)
}
func
(
m
*
AutonomyProposalProject
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_AutonomyProposalProject
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_AutonomyProposalProject
proto
.
InternalMessageInfo
func
(
m
*
AutonomyProposalProject
)
GetPropProject
()
*
ProposalProject
{
if
m
!=
nil
{
...
...
@@ -107,30 +139,52 @@ func (m *AutonomyProposalProject) GetProposalID() string {
type
ProposalProject
struct
{
// 提案时间
Year
int32
`protobuf:"varint,1,opt,name=year" json:"year,omitempty"`
Month
int32
`protobuf:"varint,2,opt,name=month" json:"month,omitempty"`
Day
int32
`protobuf:"varint,3,opt,name=day" json:"day,omitempty"`
Year
int32
`protobuf:"varint,1,opt,name=year
,proto3
" json:"year,omitempty"`
Month
int32
`protobuf:"varint,2,opt,name=month
,proto3
" json:"month,omitempty"`
Day
int32
`protobuf:"varint,3,opt,name=day
,proto3
" json:"day,omitempty"`
// 项目相关
FirstStage
string
`protobuf:"bytes,4,opt,name=firstStage" json:"firstStage,omitempty"`
LastStage
string
`protobuf:"bytes,5,opt,name=lastStage" json:"lastStage,omitempty"`
Production
string
`protobuf:"bytes,6,opt,name=production" json:"production,omitempty"`
Description
string
`protobuf:"bytes,7,opt,name=description" json:"description,omitempty"`
Contractor
string
`protobuf:"bytes,8,opt,name=contractor" json:"contractor,omitempty"`
Amount
int64
`protobuf:"varint,9,opt,name=amount" json:"amount,omitempty"`
AmountDetail
string
`protobuf:"bytes,10,opt,name=amountDetail" json:"amountDetail,omitempty"`
FirstStage
string
`protobuf:"bytes,4,opt,name=firstStage
,proto3
" json:"firstStage,omitempty"`
LastStage
string
`protobuf:"bytes,5,opt,name=lastStage
,proto3
" json:"lastStage,omitempty"`
Production
string
`protobuf:"bytes,6,opt,name=production
,proto3
" json:"production,omitempty"`
Description
string
`protobuf:"bytes,7,opt,name=description
,proto3
" json:"description,omitempty"`
Contractor
string
`protobuf:"bytes,8,opt,name=contractor
,proto3
" json:"contractor,omitempty"`
Amount
int64
`protobuf:"varint,9,opt,name=amount
,proto3
" json:"amount,omitempty"`
AmountDetail
string
`protobuf:"bytes,10,opt,name=amountDetail
,proto3
" json:"amountDetail,omitempty"`
// 支付相关
ToAddr
string
`protobuf:"bytes,11,opt,name=toAddr" json:"toAddr,omitempty"`
ToAddr
string
`protobuf:"bytes,11,opt,name=toAddr
,proto3
" json:"toAddr,omitempty"`
// 投票相关
StartBlockHeight
int64
`protobuf:"varint,12,opt,name=startBlockHeight" json:"startBlockHeight,omitempty"`
EndBlockHeight
int64
`protobuf:"varint,13,opt,name=endBlockHeight" json:"endBlockHeight,omitempty"`
RealEndBlockHeight
int64
`protobuf:"varint,14,opt,name=realEndBlockHeight" json:"realEndBlockHeight,omitempty"`
ProjectNeedBlockNum
int32
`protobuf:"varint,15,opt,name=projectNeedBlockNum" json:"projectNeedBlockNum,omitempty"`
StartBlockHeight
int64
`protobuf:"varint,12,opt,name=startBlockHeight,proto3" json:"startBlockHeight,omitempty"`
EndBlockHeight
int64
`protobuf:"varint,13,opt,name=endBlockHeight,proto3" json:"endBlockHeight,omitempty"`
RealEndBlockHeight
int64
`protobuf:"varint,14,opt,name=realEndBlockHeight,proto3" json:"realEndBlockHeight,omitempty"`
ProjectNeedBlockNum
int32
`protobuf:"varint,15,opt,name=projectNeedBlockNum,proto3" json:"projectNeedBlockNum,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
ProposalProject
)
Reset
()
{
*
m
=
ProposalProject
{}
}
func
(
m
*
ProposalProject
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ProposalProject
)
ProtoMessage
()
{}
func
(
*
ProposalProject
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor4
,
[]
int
{
1
}
}
func
(
*
ProposalProject
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_project_56f3f85d427589c6
,
[]
int
{
1
}
}
func
(
m
*
ProposalProject
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_ProposalProject
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
ProposalProject
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_ProposalProject
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
ProposalProject
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ProposalProject
.
Merge
(
dst
,
src
)
}
func
(
m
*
ProposalProject
)
XXX_Size
()
int
{
return
xxx_messageInfo_ProposalProject
.
Size
(
m
)
}
func
(
m
*
ProposalProject
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_ProposalProject
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_ProposalProject
proto
.
InternalMessageInfo
func
(
m
*
ProposalProject
)
GetYear
()
int32
{
if
m
!=
nil
{
...
...
@@ -238,13 +292,35 @@ func (m *ProposalProject) GetProjectNeedBlockNum() int32 {
}
type
RevokeProposalProject
struct
{
ProposalID
string
`protobuf:"bytes,1,opt,name=proposalID" json:"proposalID,omitempty"`
ProposalID
string
`protobuf:"bytes,1,opt,name=proposalID,proto3" json:"proposalID,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
RevokeProposalProject
)
Reset
()
{
*
m
=
RevokeProposalProject
{}
}
func
(
m
*
RevokeProposalProject
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
RevokeProposalProject
)
ProtoMessage
()
{}
func
(
*
RevokeProposalProject
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor4
,
[]
int
{
2
}
}
func
(
*
RevokeProposalProject
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_project_56f3f85d427589c6
,
[]
int
{
2
}
}
func
(
m
*
RevokeProposalProject
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_RevokeProposalProject
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
RevokeProposalProject
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_RevokeProposalProject
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
RevokeProposalProject
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_RevokeProposalProject
.
Merge
(
dst
,
src
)
}
func
(
m
*
RevokeProposalProject
)
XXX_Size
()
int
{
return
xxx_messageInfo_RevokeProposalProject
.
Size
(
m
)
}
func
(
m
*
RevokeProposalProject
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_RevokeProposalProject
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_RevokeProposalProject
proto
.
InternalMessageInfo
func
(
m
*
RevokeProposalProject
)
GetProposalID
()
string
{
if
m
!=
nil
{
...
...
@@ -254,14 +330,36 @@ func (m *RevokeProposalProject) GetProposalID() string {
}
type
VoteProposalProject
struct
{
ProposalID
string
`protobuf:"bytes,1,opt,name=proposalID" json:"proposalID,omitempty"`
Approve
bool
`protobuf:"varint,2,opt,name=approve" json:"approve,omitempty"`
ProposalID
string
`protobuf:"bytes,1,opt,name=proposalID,proto3" json:"proposalID,omitempty"`
Approve
bool
`protobuf:"varint,2,opt,name=approve,proto3" json:"approve,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
VoteProposalProject
)
Reset
()
{
*
m
=
VoteProposalProject
{}
}
func
(
m
*
VoteProposalProject
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
VoteProposalProject
)
ProtoMessage
()
{}
func
(
*
VoteProposalProject
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor4
,
[]
int
{
3
}
}
func
(
*
VoteProposalProject
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_project_56f3f85d427589c6
,
[]
int
{
3
}
}
func
(
m
*
VoteProposalProject
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_VoteProposalProject
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
VoteProposalProject
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_VoteProposalProject
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
VoteProposalProject
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_VoteProposalProject
.
Merge
(
dst
,
src
)
}
func
(
m
*
VoteProposalProject
)
XXX_Size
()
int
{
return
xxx_messageInfo_VoteProposalProject
.
Size
(
m
)
}
func
(
m
*
VoteProposalProject
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_VoteProposalProject
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_VoteProposalProject
proto
.
InternalMessageInfo
func
(
m
*
VoteProposalProject
)
GetProposalID
()
string
{
if
m
!=
nil
{
...
...
@@ -278,15 +376,37 @@ func (m *VoteProposalProject) GetApprove() bool {
}
type
PubVoteProposalProject
struct
{
ProposalID
string
`protobuf:"bytes,1,opt,name=proposalID" json:"proposalID,omitempty"`
Oppose
bool
`protobuf:"varint,2,opt,name=oppose" json:"oppose,omitempty"`
OriginAddr
[]
string
`protobuf:"bytes,3,rep,name=originAddr" json:"originAddr,omitempty"`
ProposalID
string
`protobuf:"bytes,1,opt,name=proposalID,proto3" json:"proposalID,omitempty"`
Oppose
bool
`protobuf:"varint,2,opt,name=oppose,proto3" json:"oppose,omitempty"`
OriginAddr
[]
string
`protobuf:"bytes,3,rep,name=originAddr,proto3" json:"originAddr,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
PubVoteProposalProject
)
Reset
()
{
*
m
=
PubVoteProposalProject
{}
}
func
(
m
*
PubVoteProposalProject
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
PubVoteProposalProject
)
ProtoMessage
()
{}
func
(
*
PubVoteProposalProject
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor4
,
[]
int
{
4
}
}
func
(
*
PubVoteProposalProject
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_project_56f3f85d427589c6
,
[]
int
{
4
}
}
func
(
m
*
PubVoteProposalProject
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_PubVoteProposalProject
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
PubVoteProposalProject
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_PubVoteProposalProject
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
PubVoteProposalProject
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_PubVoteProposalProject
.
Merge
(
dst
,
src
)
}
func
(
m
*
PubVoteProposalProject
)
XXX_Size
()
int
{
return
xxx_messageInfo_PubVoteProposalProject
.
Size
(
m
)
}
func
(
m
*
PubVoteProposalProject
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_PubVoteProposalProject
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_PubVoteProposalProject
proto
.
InternalMessageInfo
func
(
m
*
PubVoteProposalProject
)
GetProposalID
()
string
{
if
m
!=
nil
{
...
...
@@ -310,13 +430,35 @@ func (m *PubVoteProposalProject) GetOriginAddr() []string {
}
type
TerminateProposalProject
struct
{
ProposalID
string
`protobuf:"bytes,1,opt,name=proposalID" json:"proposalID,omitempty"`
ProposalID
string
`protobuf:"bytes,1,opt,name=proposalID,proto3" json:"proposalID,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
TerminateProposalProject
)
Reset
()
{
*
m
=
TerminateProposalProject
{}
}
func
(
m
*
TerminateProposalProject
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
TerminateProposalProject
)
ProtoMessage
()
{}
func
(
*
TerminateProposalProject
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor4
,
[]
int
{
5
}
}
func
(
*
TerminateProposalProject
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_project_56f3f85d427589c6
,
[]
int
{
5
}
}
func
(
m
*
TerminateProposalProject
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_TerminateProposalProject
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
TerminateProposalProject
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_TerminateProposalProject
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
TerminateProposalProject
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_TerminateProposalProject
.
Merge
(
dst
,
src
)
}
func
(
m
*
TerminateProposalProject
)
XXX_Size
()
int
{
return
xxx_messageInfo_TerminateProposalProject
.
Size
(
m
)
}
func
(
m
*
TerminateProposalProject
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_TerminateProposalProject
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_TerminateProposalProject
proto
.
InternalMessageInfo
func
(
m
*
TerminateProposalProject
)
GetProposalID
()
string
{
if
m
!=
nil
{
...
...
@@ -327,14 +469,36 @@ func (m *TerminateProposalProject) GetProposalID() string {
// receipt
type
ReceiptProposalProject
struct
{
Prev
*
AutonomyProposalProject
`protobuf:"bytes,1,opt,name=prev" json:"prev,omitempty"`
Current
*
AutonomyProposalProject
`protobuf:"bytes,2,opt,name=current" json:"current,omitempty"`
Prev
*
AutonomyProposalProject
`protobuf:"bytes,1,opt,name=prev,proto3" json:"prev,omitempty"`
Current
*
AutonomyProposalProject
`protobuf:"bytes,2,opt,name=current,proto3" json:"current,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
ReceiptProposalProject
)
Reset
()
{
*
m
=
ReceiptProposalProject
{}
}
func
(
m
*
ReceiptProposalProject
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReceiptProposalProject
)
ProtoMessage
()
{}
func
(
*
ReceiptProposalProject
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor4
,
[]
int
{
6
}
}
func
(
*
ReceiptProposalProject
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_project_56f3f85d427589c6
,
[]
int
{
6
}
}
func
(
m
*
ReceiptProposalProject
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_ReceiptProposalProject
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
ReceiptProposalProject
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_ReceiptProposalProject
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
ReceiptProposalProject
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReceiptProposalProject
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReceiptProposalProject
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReceiptProposalProject
.
Size
(
m
)
}
func
(
m
*
ReceiptProposalProject
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_ReceiptProposalProject
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_ReceiptProposalProject
proto
.
InternalMessageInfo
func
(
m
*
ReceiptProposalProject
)
GetPrev
()
*
AutonomyProposalProject
{
if
m
!=
nil
{
...
...
@@ -351,14 +515,36 @@ func (m *ReceiptProposalProject) GetCurrent() *AutonomyProposalProject {
}
type
LocalProposalProject
struct
{
PropPrj
*
AutonomyProposalProject
`protobuf:"bytes,1,opt,name=propPrj" json:"propPrj,omitempty"`
Comments
[]
string
`protobuf:"bytes,2,rep,name=comments" json:"comments,omitempty"`
PropPrj
*
AutonomyProposalProject
`protobuf:"bytes,1,opt,name=propPrj,proto3" json:"propPrj,omitempty"`
Comments
[]
string
`protobuf:"bytes,2,rep,name=comments,proto3" json:"comments,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
LocalProposalProject
)
Reset
()
{
*
m
=
LocalProposalProject
{}
}
func
(
m
*
LocalProposalProject
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
LocalProposalProject
)
ProtoMessage
()
{}
func
(
*
LocalProposalProject
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor4
,
[]
int
{
7
}
}
func
(
*
LocalProposalProject
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_project_56f3f85d427589c6
,
[]
int
{
7
}
}
func
(
m
*
LocalProposalProject
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_LocalProposalProject
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
LocalProposalProject
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_LocalProposalProject
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
LocalProposalProject
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_LocalProposalProject
.
Merge
(
dst
,
src
)
}
func
(
m
*
LocalProposalProject
)
XXX_Size
()
int
{
return
xxx_messageInfo_LocalProposalProject
.
Size
(
m
)
}
func
(
m
*
LocalProposalProject
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_LocalProposalProject
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_LocalProposalProject
proto
.
InternalMessageInfo
func
(
m
*
LocalProposalProject
)
GetPropPrj
()
*
AutonomyProposalProject
{
if
m
!=
nil
{
...
...
@@ -376,18 +562,40 @@ func (m *LocalProposalProject) GetComments() []string {
// query
type
ReqQueryProposalProject
struct
{
Status
int32
`protobuf:"varint,1,opt,name=status" json:"status,omitempty"`
Addr
string
`protobuf:"bytes,2,opt,name=addr" json:"addr,omitempty"`
Count
int32
`protobuf:"varint,3,opt,name=count" json:"count,omitempty"`
Direction
int32
`protobuf:"varint,4,opt,name=direction" json:"direction,omitempty"`
Height
int64
`protobuf:"varint,5,opt,name=height" json:"height,omitempty"`
Index
int32
`protobuf:"varint,6,opt,name=index" json:"index,omitempty"`
Status
int32
`protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
Addr
string
`protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
Count
int32
`protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
Direction
int32
`protobuf:"varint,4,opt,name=direction,proto3" json:"direction,omitempty"`
Height
int64
`protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"`
Index
int32
`protobuf:"varint,6,opt,name=index,proto3" json:"index,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
ReqQueryProposalProject
)
Reset
()
{
*
m
=
ReqQueryProposalProject
{}
}
func
(
m
*
ReqQueryProposalProject
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReqQueryProposalProject
)
ProtoMessage
()
{}
func
(
*
ReqQueryProposalProject
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor4
,
[]
int
{
8
}
}
func
(
*
ReqQueryProposalProject
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_project_56f3f85d427589c6
,
[]
int
{
8
}
}
func
(
m
*
ReqQueryProposalProject
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_ReqQueryProposalProject
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
ReqQueryProposalProject
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_ReqQueryProposalProject
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
ReqQueryProposalProject
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReqQueryProposalProject
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReqQueryProposalProject
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReqQueryProposalProject
.
Size
(
m
)
}
func
(
m
*
ReqQueryProposalProject
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_ReqQueryProposalProject
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_ReqQueryProposalProject
proto
.
InternalMessageInfo
func
(
m
*
ReqQueryProposalProject
)
GetStatus
()
int32
{
if
m
!=
nil
{
...
...
@@ -432,13 +640,35 @@ func (m *ReqQueryProposalProject) GetIndex() int32 {
}
type
ReplyQueryProposalProject
struct
{
PropProjects
[]
*
AutonomyProposalProject
`protobuf:"bytes,1,rep,name=propProjects" json:"propProjects,omitempty"`
PropProjects
[]
*
AutonomyProposalProject
`protobuf:"bytes,1,rep,name=propProjects,proto3" json:"propProjects,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
ReplyQueryProposalProject
)
Reset
()
{
*
m
=
ReplyQueryProposalProject
{}
}
func
(
m
*
ReplyQueryProposalProject
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReplyQueryProposalProject
)
ProtoMessage
()
{}
func
(
*
ReplyQueryProposalProject
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor4
,
[]
int
{
9
}
}
func
(
*
ReplyQueryProposalProject
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_project_56f3f85d427589c6
,
[]
int
{
9
}
}
func
(
m
*
ReplyQueryProposalProject
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_ReplyQueryProposalProject
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
ReplyQueryProposalProject
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_ReplyQueryProposalProject
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
ReplyQueryProposalProject
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReplyQueryProposalProject
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReplyQueryProposalProject
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReplyQueryProposalProject
.
Size
(
m
)
}
func
(
m
*
ReplyQueryProposalProject
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_ReplyQueryProposalProject
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_ReplyQueryProposalProject
proto
.
InternalMessageInfo
func
(
m
*
ReplyQueryProposalProject
)
GetPropProjects
()
[]
*
AutonomyProposalProject
{
if
m
!=
nil
{
...
...
@@ -460,9 +690,9 @@ func init() {
proto
.
RegisterType
((
*
ReplyQueryProposalProject
)(
nil
),
"types.ReplyQueryProposalProject"
)
}
func
init
()
{
proto
.
RegisterFile
(
"project.proto"
,
fileDescriptor
4
)
}
func
init
()
{
proto
.
RegisterFile
(
"project.proto"
,
fileDescriptor
_project_56f3f85d427589c6
)
}
var
fileDescriptor
4
=
[]
byte
{
var
fileDescriptor
_project_56f3f85d427589c6
=
[]
byte
{
// 713 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0x94
,
0x55
,
0x5f
,
0x6f
,
0xd3
,
0x3e
,
0x14
,
0x55
,
0x96
,
0xa6
,
0x5d
,
0x6f
,
0xbb
,
0x3f
,
0x3f
,
0x6f
,
0xbf
,
0xce
,
0x4c
,
0x68
,
0xaa
,
0xf2
,
...
...
plugin/dapp/autonomy/types/rule.pb.go
View file @
745335fe
...
...
@@ -3,32 +3,64 @@
package
types
import
proto
"github.com/golang/protobuf/proto"
import
fmt
"fmt"
import
math
"math"
import
(
fmt
"fmt"
proto
"github.com/golang/protobuf/proto"
math
"math"
)
// Reference imports to suppress errors if they are not otherwise used.
var
_
=
proto
.
Marshal
var
_
=
fmt
.
Errorf
var
_
=
math
.
Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const
_
=
proto
.
ProtoPackageIsVersion2
// please upgrade the proto package
type
AutonomyProposalRule
struct
{
PropRule
*
ProposalRule
`protobuf:"bytes,1,opt,name=propRule" json:"propRule,omitempty"`
CurRule
*
RuleConfig
`protobuf:"bytes,2,opt,name=curRule" json:"curRule,omitempty"`
PropRule
*
ProposalRule
`protobuf:"bytes,1,opt,name=propRule
,proto3
" json:"propRule,omitempty"`
CurRule
*
RuleConfig
`protobuf:"bytes,2,opt,name=curRule
,proto3
" json:"curRule,omitempty"`
// 全体持票人投票结果
VoteResult
*
VoteResult
`protobuf:"bytes,3,opt,name=voteResult" json:"voteResult,omitempty"`
VoteResult
*
VoteResult
`protobuf:"bytes,3,opt,name=voteResult
,proto3
" json:"voteResult,omitempty"`
// 状态
Status
int32
`protobuf:"varint,4,opt,name=status" json:"status,omitempty"`
Address
string
`protobuf:"bytes,5,opt,name=address" json:"address,omitempty"`
Height
int64
`protobuf:"varint,6,opt,name=height" json:"height,omitempty"`
Index
int32
`protobuf:"varint,7,opt,name=index" json:"index,omitempty"`
ProposalID
string
`protobuf:"bytes,8,opt,name=proposalID" json:"proposalID,omitempty"`
Status
int32
`protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"`
Address
string
`protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"`
Height
int64
`protobuf:"varint,6,opt,name=height,proto3" json:"height,omitempty"`
Index
int32
`protobuf:"varint,7,opt,name=index,proto3" json:"index,omitempty"`
ProposalID
string
`protobuf:"bytes,8,opt,name=proposalID,proto3" json:"proposalID,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
AutonomyProposalRule
)
Reset
()
{
*
m
=
AutonomyProposalRule
{}
}
func
(
m
*
AutonomyProposalRule
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
AutonomyProposalRule
)
ProtoMessage
()
{}
func
(
*
AutonomyProposalRule
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor5
,
[]
int
{
0
}
}
func
(
*
AutonomyProposalRule
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_rule_2ed9cd03418a949e
,
[]
int
{
0
}
}
func
(
m
*
AutonomyProposalRule
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_AutonomyProposalRule
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
AutonomyProposalRule
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_AutonomyProposalRule
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
AutonomyProposalRule
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_AutonomyProposalRule
.
Merge
(
dst
,
src
)
}
func
(
m
*
AutonomyProposalRule
)
XXX_Size
()
int
{
return
xxx_messageInfo_AutonomyProposalRule
.
Size
(
m
)
}
func
(
m
*
AutonomyProposalRule
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_AutonomyProposalRule
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_AutonomyProposalRule
proto
.
InternalMessageInfo
func
(
m
*
AutonomyProposalRule
)
GetPropRule
()
*
ProposalRule
{
if
m
!=
nil
{
...
...
@@ -88,21 +120,43 @@ func (m *AutonomyProposalRule) GetProposalID() string {
type
ProposalRule
struct
{
// 提案时间
Year
int32
`protobuf:"varint,1,opt,name=year" json:"year,omitempty"`
Month
int32
`protobuf:"varint,2,opt,name=month" json:"month,omitempty"`
Day
int32
`protobuf:"varint,3,opt,name=day" json:"day,omitempty"`
Year
int32
`protobuf:"varint,1,opt,name=year
,proto3
" json:"year,omitempty"`
Month
int32
`protobuf:"varint,2,opt,name=month
,proto3
" json:"month,omitempty"`
Day
int32
`protobuf:"varint,3,opt,name=day
,proto3
" json:"day,omitempty"`
// 规则可修改项,如果某项不修改则置为-1
RuleCfg
*
RuleConfig
`protobuf:"bytes,4,opt,name=ruleCfg" json:"ruleCfg,omitempty"`
RuleCfg
*
RuleConfig
`protobuf:"bytes,4,opt,name=ruleCfg
,proto3
" json:"ruleCfg,omitempty"`
// 投票相关
StartBlockHeight
int64
`protobuf:"varint,5,opt,name=startBlockHeight" json:"startBlockHeight,omitempty"`
EndBlockHeight
int64
`protobuf:"varint,6,opt,name=endBlockHeight" json:"endBlockHeight,omitempty"`
RealEndBlockHeight
int64
`protobuf:"varint,7,opt,name=realEndBlockHeight" json:"realEndBlockHeight,omitempty"`
StartBlockHeight
int64
`protobuf:"varint,5,opt,name=startBlockHeight,proto3" json:"startBlockHeight,omitempty"`
EndBlockHeight
int64
`protobuf:"varint,6,opt,name=endBlockHeight,proto3" json:"endBlockHeight,omitempty"`
RealEndBlockHeight
int64
`protobuf:"varint,7,opt,name=realEndBlockHeight,proto3" json:"realEndBlockHeight,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
ProposalRule
)
Reset
()
{
*
m
=
ProposalRule
{}
}
func
(
m
*
ProposalRule
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ProposalRule
)
ProtoMessage
()
{}
func
(
*
ProposalRule
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor5
,
[]
int
{
1
}
}
func
(
*
ProposalRule
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_rule_2ed9cd03418a949e
,
[]
int
{
1
}
}
func
(
m
*
ProposalRule
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_ProposalRule
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
ProposalRule
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_ProposalRule
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
ProposalRule
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ProposalRule
.
Merge
(
dst
,
src
)
}
func
(
m
*
ProposalRule
)
XXX_Size
()
int
{
return
xxx_messageInfo_ProposalRule
.
Size
(
m
)
}
func
(
m
*
ProposalRule
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_ProposalRule
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_ProposalRule
proto
.
InternalMessageInfo
func
(
m
*
ProposalRule
)
GetYear
()
int32
{
if
m
!=
nil
{
...
...
@@ -154,13 +208,35 @@ func (m *ProposalRule) GetRealEndBlockHeight() int64 {
}
type
RevokeProposalRule
struct
{
ProposalID
string
`protobuf:"bytes,1,opt,name=proposalID" json:"proposalID,omitempty"`
ProposalID
string
`protobuf:"bytes,1,opt,name=proposalID,proto3" json:"proposalID,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
RevokeProposalRule
)
Reset
()
{
*
m
=
RevokeProposalRule
{}
}
func
(
m
*
RevokeProposalRule
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
RevokeProposalRule
)
ProtoMessage
()
{}
func
(
*
RevokeProposalRule
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor5
,
[]
int
{
2
}
}
func
(
*
RevokeProposalRule
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_rule_2ed9cd03418a949e
,
[]
int
{
2
}
}
func
(
m
*
RevokeProposalRule
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_RevokeProposalRule
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
RevokeProposalRule
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_RevokeProposalRule
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
RevokeProposalRule
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_RevokeProposalRule
.
Merge
(
dst
,
src
)
}
func
(
m
*
RevokeProposalRule
)
XXX_Size
()
int
{
return
xxx_messageInfo_RevokeProposalRule
.
Size
(
m
)
}
func
(
m
*
RevokeProposalRule
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_RevokeProposalRule
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_RevokeProposalRule
proto
.
InternalMessageInfo
func
(
m
*
RevokeProposalRule
)
GetProposalID
()
string
{
if
m
!=
nil
{
...
...
@@ -170,15 +246,37 @@ func (m *RevokeProposalRule) GetProposalID() string {
}
type
VoteProposalRule
struct
{
ProposalID
string
`protobuf:"bytes,1,opt,name=proposalID" json:"proposalID,omitempty"`
Approve
bool
`protobuf:"varint,2,opt,name=approve" json:"approve,omitempty"`
OriginAddr
[]
string
`protobuf:"bytes,3,rep,name=originAddr" json:"originAddr,omitempty"`
ProposalID
string
`protobuf:"bytes,1,opt,name=proposalID,proto3" json:"proposalID,omitempty"`
Approve
bool
`protobuf:"varint,2,opt,name=approve,proto3" json:"approve,omitempty"`
OriginAddr
[]
string
`protobuf:"bytes,3,rep,name=originAddr,proto3" json:"originAddr,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
VoteProposalRule
)
Reset
()
{
*
m
=
VoteProposalRule
{}
}
func
(
m
*
VoteProposalRule
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
VoteProposalRule
)
ProtoMessage
()
{}
func
(
*
VoteProposalRule
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor5
,
[]
int
{
3
}
}
func
(
*
VoteProposalRule
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_rule_2ed9cd03418a949e
,
[]
int
{
3
}
}
func
(
m
*
VoteProposalRule
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_VoteProposalRule
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
VoteProposalRule
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_VoteProposalRule
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
VoteProposalRule
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_VoteProposalRule
.
Merge
(
dst
,
src
)
}
func
(
m
*
VoteProposalRule
)
XXX_Size
()
int
{
return
xxx_messageInfo_VoteProposalRule
.
Size
(
m
)
}
func
(
m
*
VoteProposalRule
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_VoteProposalRule
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_VoteProposalRule
proto
.
InternalMessageInfo
func
(
m
*
VoteProposalRule
)
GetProposalID
()
string
{
if
m
!=
nil
{
...
...
@@ -202,13 +300,35 @@ func (m *VoteProposalRule) GetOriginAddr() []string {
}
type
TerminateProposalRule
struct
{
ProposalID
string
`protobuf:"bytes,1,opt,name=proposalID" json:"proposalID,omitempty"`
ProposalID
string
`protobuf:"bytes,1,opt,name=proposalID,proto3" json:"proposalID,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
TerminateProposalRule
)
Reset
()
{
*
m
=
TerminateProposalRule
{}
}
func
(
m
*
TerminateProposalRule
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
TerminateProposalRule
)
ProtoMessage
()
{}
func
(
*
TerminateProposalRule
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor5
,
[]
int
{
4
}
}
func
(
*
TerminateProposalRule
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_rule_2ed9cd03418a949e
,
[]
int
{
4
}
}
func
(
m
*
TerminateProposalRule
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_TerminateProposalRule
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
TerminateProposalRule
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_TerminateProposalRule
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
TerminateProposalRule
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_TerminateProposalRule
.
Merge
(
dst
,
src
)
}
func
(
m
*
TerminateProposalRule
)
XXX_Size
()
int
{
return
xxx_messageInfo_TerminateProposalRule
.
Size
(
m
)
}
func
(
m
*
TerminateProposalRule
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_TerminateProposalRule
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_TerminateProposalRule
proto
.
InternalMessageInfo
func
(
m
*
TerminateProposalRule
)
GetProposalID
()
string
{
if
m
!=
nil
{
...
...
@@ -219,14 +339,36 @@ func (m *TerminateProposalRule) GetProposalID() string {
// receipt
type
ReceiptProposalRule
struct
{
Prev
*
AutonomyProposalRule
`protobuf:"bytes,1,opt,name=prev" json:"prev,omitempty"`
Current
*
AutonomyProposalRule
`protobuf:"bytes,2,opt,name=current" json:"current,omitempty"`
Prev
*
AutonomyProposalRule
`protobuf:"bytes,1,opt,name=prev,proto3" json:"prev,omitempty"`
Current
*
AutonomyProposalRule
`protobuf:"bytes,2,opt,name=current,proto3" json:"current,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
ReceiptProposalRule
)
Reset
()
{
*
m
=
ReceiptProposalRule
{}
}
func
(
m
*
ReceiptProposalRule
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReceiptProposalRule
)
ProtoMessage
()
{}
func
(
*
ReceiptProposalRule
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor5
,
[]
int
{
5
}
}
func
(
*
ReceiptProposalRule
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_rule_2ed9cd03418a949e
,
[]
int
{
5
}
}
func
(
m
*
ReceiptProposalRule
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_ReceiptProposalRule
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
ReceiptProposalRule
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_ReceiptProposalRule
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
ReceiptProposalRule
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReceiptProposalRule
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReceiptProposalRule
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReceiptProposalRule
.
Size
(
m
)
}
func
(
m
*
ReceiptProposalRule
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_ReceiptProposalRule
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_ReceiptProposalRule
proto
.
InternalMessageInfo
func
(
m
*
ReceiptProposalRule
)
GetPrev
()
*
AutonomyProposalRule
{
if
m
!=
nil
{
...
...
@@ -243,14 +385,36 @@ func (m *ReceiptProposalRule) GetCurrent() *AutonomyProposalRule {
}
type
LocalProposalRule
struct
{
PropRule
*
AutonomyProposalRule
`protobuf:"bytes,1,opt,name=propRule" json:"propRule,omitempty"`
Comments
[]
string
`protobuf:"bytes,2,rep,name=comments" json:"comments,omitempty"`
PropRule
*
AutonomyProposalRule
`protobuf:"bytes,1,opt,name=propRule,proto3" json:"propRule,omitempty"`
Comments
[]
string
`protobuf:"bytes,2,rep,name=comments,proto3" json:"comments,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
LocalProposalRule
)
Reset
()
{
*
m
=
LocalProposalRule
{}
}
func
(
m
*
LocalProposalRule
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
LocalProposalRule
)
ProtoMessage
()
{}
func
(
*
LocalProposalRule
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor5
,
[]
int
{
6
}
}
func
(
*
LocalProposalRule
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_rule_2ed9cd03418a949e
,
[]
int
{
6
}
}
func
(
m
*
LocalProposalRule
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_LocalProposalRule
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
LocalProposalRule
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_LocalProposalRule
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
LocalProposalRule
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_LocalProposalRule
.
Merge
(
dst
,
src
)
}
func
(
m
*
LocalProposalRule
)
XXX_Size
()
int
{
return
xxx_messageInfo_LocalProposalRule
.
Size
(
m
)
}
func
(
m
*
LocalProposalRule
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_LocalProposalRule
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_LocalProposalRule
proto
.
InternalMessageInfo
func
(
m
*
LocalProposalRule
)
GetPropRule
()
*
AutonomyProposalRule
{
if
m
!=
nil
{
...
...
@@ -268,18 +432,40 @@ func (m *LocalProposalRule) GetComments() []string {
// query
type
ReqQueryProposalRule
struct
{
Status
int32
`protobuf:"varint,1,opt,name=status" json:"status,omitempty"`
Addr
string
`protobuf:"bytes,2,opt,name=addr" json:"addr,omitempty"`
Count
int32
`protobuf:"varint,3,opt,name=count" json:"count,omitempty"`
Direction
int32
`protobuf:"varint,4,opt,name=direction" json:"direction,omitempty"`
Height
int64
`protobuf:"varint,5,opt,name=height" json:"height,omitempty"`
Index
int32
`protobuf:"varint,6,opt,name=index" json:"index,omitempty"`
Status
int32
`protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
Addr
string
`protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
Count
int32
`protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
Direction
int32
`protobuf:"varint,4,opt,name=direction,proto3" json:"direction,omitempty"`
Height
int64
`protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"`
Index
int32
`protobuf:"varint,6,opt,name=index,proto3" json:"index,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
ReqQueryProposalRule
)
Reset
()
{
*
m
=
ReqQueryProposalRule
{}
}
func
(
m
*
ReqQueryProposalRule
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReqQueryProposalRule
)
ProtoMessage
()
{}
func
(
*
ReqQueryProposalRule
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor5
,
[]
int
{
7
}
}
func
(
*
ReqQueryProposalRule
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_rule_2ed9cd03418a949e
,
[]
int
{
7
}
}
func
(
m
*
ReqQueryProposalRule
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_ReqQueryProposalRule
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
ReqQueryProposalRule
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_ReqQueryProposalRule
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
ReqQueryProposalRule
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReqQueryProposalRule
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReqQueryProposalRule
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReqQueryProposalRule
.
Size
(
m
)
}
func
(
m
*
ReqQueryProposalRule
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_ReqQueryProposalRule
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_ReqQueryProposalRule
proto
.
InternalMessageInfo
func
(
m
*
ReqQueryProposalRule
)
GetStatus
()
int32
{
if
m
!=
nil
{
...
...
@@ -324,13 +510,35 @@ func (m *ReqQueryProposalRule) GetIndex() int32 {
}
type
ReplyQueryProposalRule
struct
{
PropRules
[]
*
AutonomyProposalRule
`protobuf:"bytes,1,rep,name=propRules" json:"propRules,omitempty"`
PropRules
[]
*
AutonomyProposalRule
`protobuf:"bytes,1,rep,name=propRules,proto3" json:"propRules,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
ReplyQueryProposalRule
)
Reset
()
{
*
m
=
ReplyQueryProposalRule
{}
}
func
(
m
*
ReplyQueryProposalRule
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReplyQueryProposalRule
)
ProtoMessage
()
{}
func
(
*
ReplyQueryProposalRule
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor5
,
[]
int
{
8
}
}
func
(
*
ReplyQueryProposalRule
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_rule_2ed9cd03418a949e
,
[]
int
{
8
}
}
func
(
m
*
ReplyQueryProposalRule
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_ReplyQueryProposalRule
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
ReplyQueryProposalRule
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_ReplyQueryProposalRule
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
ReplyQueryProposalRule
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReplyQueryProposalRule
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReplyQueryProposalRule
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReplyQueryProposalRule
.
Size
(
m
)
}
func
(
m
*
ReplyQueryProposalRule
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_ReplyQueryProposalRule
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_ReplyQueryProposalRule
proto
.
InternalMessageInfo
func
(
m
*
ReplyQueryProposalRule
)
GetPropRules
()
[]
*
AutonomyProposalRule
{
if
m
!=
nil
{
...
...
@@ -341,14 +549,36 @@ func (m *ReplyQueryProposalRule) GetPropRules() []*AutonomyProposalRule {
// TransferFund action
type
TransferFund
struct
{
Amount
int64
`protobuf:"varint,1,opt,name=amount" json:"amount,omitempty"`
Note
string
`protobuf:"bytes,2,opt,name=note" json:"note,omitempty"`
Amount
int64
`protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
Note
string
`protobuf:"bytes,2,opt,name=note,proto3" json:"note,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
TransferFund
)
Reset
()
{
*
m
=
TransferFund
{}
}
func
(
m
*
TransferFund
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
TransferFund
)
ProtoMessage
()
{}
func
(
*
TransferFund
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor5
,
[]
int
{
9
}
}
func
(
*
TransferFund
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_rule_2ed9cd03418a949e
,
[]
int
{
9
}
}
func
(
m
*
TransferFund
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_TransferFund
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
TransferFund
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_TransferFund
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
TransferFund
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_TransferFund
.
Merge
(
dst
,
src
)
}
func
(
m
*
TransferFund
)
XXX_Size
()
int
{
return
xxx_messageInfo_TransferFund
.
Size
(
m
)
}
func
(
m
*
TransferFund
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_TransferFund
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_TransferFund
proto
.
InternalMessageInfo
func
(
m
*
TransferFund
)
GetAmount
()
int64
{
if
m
!=
nil
{
...
...
@@ -366,15 +596,37 @@ func (m *TransferFund) GetNote() string {
// Comment action
type
Comment
struct
{
ProposalID
string
`protobuf:"bytes,1,opt,name=proposalID" json:"proposalID,omitempty"`
RepHash
string
`protobuf:"bytes,2,opt,name=repHash" json:"repHash,omitempty"`
Comment
string
`protobuf:"bytes,3,opt,name=comment" json:"comment,omitempty"`
ProposalID
string
`protobuf:"bytes,1,opt,name=proposalID,proto3" json:"proposalID,omitempty"`
RepHash
string
`protobuf:"bytes,2,opt,name=repHash,proto3" json:"repHash,omitempty"`
Comment
string
`protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
Comment
)
Reset
()
{
*
m
=
Comment
{}
}
func
(
m
*
Comment
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
Comment
)
ProtoMessage
()
{}
func
(
*
Comment
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor5
,
[]
int
{
10
}
}
func
(
*
Comment
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_rule_2ed9cd03418a949e
,
[]
int
{
10
}
}
func
(
m
*
Comment
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_Comment
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
Comment
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_Comment
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
Comment
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_Comment
.
Merge
(
dst
,
src
)
}
func
(
m
*
Comment
)
XXX_Size
()
int
{
return
xxx_messageInfo_Comment
.
Size
(
m
)
}
func
(
m
*
Comment
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_Comment
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_Comment
proto
.
InternalMessageInfo
func
(
m
*
Comment
)
GetProposalID
()
string
{
if
m
!=
nil
{
...
...
@@ -398,16 +650,38 @@ func (m *Comment) GetComment() string {
}
type
ReceiptProposalComment
struct
{
Cmt
*
Comment
`protobuf:"bytes,1,opt,name=cmt" json:"cmt,omitempty"`
Height
int64
`protobuf:"varint,2,opt,name=height" json:"height,omitempty"`
Index
int32
`protobuf:"varint,3,opt,name=index" json:"index,omitempty"`
Hash
string
`protobuf:"bytes,4,opt,name=hash" json:"hash,omitempty"`
Cmt
*
Comment
`protobuf:"bytes,1,opt,name=cmt,proto3" json:"cmt,omitempty"`
Height
int64
`protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
Index
int32
`protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"`
Hash
string
`protobuf:"bytes,4,opt,name=hash,proto3" json:"hash,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
ReceiptProposalComment
)
Reset
()
{
*
m
=
ReceiptProposalComment
{}
}
func
(
m
*
ReceiptProposalComment
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReceiptProposalComment
)
ProtoMessage
()
{}
func
(
*
ReceiptProposalComment
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor5
,
[]
int
{
11
}
}
func
(
*
ReceiptProposalComment
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_rule_2ed9cd03418a949e
,
[]
int
{
11
}
}
func
(
m
*
ReceiptProposalComment
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_ReceiptProposalComment
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
ReceiptProposalComment
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_ReceiptProposalComment
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
ReceiptProposalComment
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReceiptProposalComment
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReceiptProposalComment
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReceiptProposalComment
.
Size
(
m
)
}
func
(
m
*
ReceiptProposalComment
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_ReceiptProposalComment
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_ReceiptProposalComment
proto
.
InternalMessageInfo
func
(
m
*
ReceiptProposalComment
)
GetCmt
()
*
Comment
{
if
m
!=
nil
{
...
...
@@ -439,17 +713,39 @@ func (m *ReceiptProposalComment) GetHash() string {
// query
type
ReqQueryProposalComment
struct
{
ProposalID
string
`protobuf:"bytes,1,opt,name=proposalID" json:"proposalID,omitempty"`
Count
int32
`protobuf:"varint,2,opt,name=count" json:"count,omitempty"`
Direction
int32
`protobuf:"varint,3,opt,name=direction" json:"direction,omitempty"`
Height
int64
`protobuf:"varint,4,opt,name=height" json:"height,omitempty"`
Index
int32
`protobuf:"varint,5,opt,name=index" json:"index,omitempty"`
ProposalID
string
`protobuf:"bytes,1,opt,name=proposalID,proto3" json:"proposalID,omitempty"`
Count
int32
`protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
Direction
int32
`protobuf:"varint,3,opt,name=direction,proto3" json:"direction,omitempty"`
Height
int64
`protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"`
Index
int32
`protobuf:"varint,5,opt,name=index,proto3" json:"index,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
ReqQueryProposalComment
)
Reset
()
{
*
m
=
ReqQueryProposalComment
{}
}
func
(
m
*
ReqQueryProposalComment
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReqQueryProposalComment
)
ProtoMessage
()
{}
func
(
*
ReqQueryProposalComment
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor5
,
[]
int
{
12
}
}
func
(
*
ReqQueryProposalComment
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_rule_2ed9cd03418a949e
,
[]
int
{
12
}
}
func
(
m
*
ReqQueryProposalComment
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_ReqQueryProposalComment
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
ReqQueryProposalComment
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_ReqQueryProposalComment
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
ReqQueryProposalComment
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReqQueryProposalComment
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReqQueryProposalComment
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReqQueryProposalComment
.
Size
(
m
)
}
func
(
m
*
ReqQueryProposalComment
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_ReqQueryProposalComment
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_ReqQueryProposalComment
proto
.
InternalMessageInfo
func
(
m
*
ReqQueryProposalComment
)
GetProposalID
()
string
{
if
m
!=
nil
{
...
...
@@ -487,17 +783,39 @@ func (m *ReqQueryProposalComment) GetIndex() int32 {
}
type
RelationCmt
struct
{
RepHash
string
`protobuf:"bytes,1,opt,name=repHash" json:"repHash,omitempty"`
Comment
string
`protobuf:"bytes,2,opt,name=comment" json:"comment,omitempty"`
Height
int64
`protobuf:"varint,3,opt,name=height" json:"height,omitempty"`
Index
int32
`protobuf:"varint,4,opt,name=index" json:"index,omitempty"`
Hash
string
`protobuf:"bytes,5,opt,name=hash" json:"hash,omitempty"`
RepHash
string
`protobuf:"bytes,1,opt,name=repHash,proto3" json:"repHash,omitempty"`
Comment
string
`protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
Height
int64
`protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
Index
int32
`protobuf:"varint,4,opt,name=index,proto3" json:"index,omitempty"`
Hash
string
`protobuf:"bytes,5,opt,name=hash,proto3" json:"hash,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
RelationCmt
)
Reset
()
{
*
m
=
RelationCmt
{}
}
func
(
m
*
RelationCmt
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
RelationCmt
)
ProtoMessage
()
{}
func
(
*
RelationCmt
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor5
,
[]
int
{
13
}
}
func
(
*
RelationCmt
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_rule_2ed9cd03418a949e
,
[]
int
{
13
}
}
func
(
m
*
RelationCmt
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_RelationCmt
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
RelationCmt
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_RelationCmt
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
RelationCmt
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_RelationCmt
.
Merge
(
dst
,
src
)
}
func
(
m
*
RelationCmt
)
XXX_Size
()
int
{
return
xxx_messageInfo_RelationCmt
.
Size
(
m
)
}
func
(
m
*
RelationCmt
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_RelationCmt
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_RelationCmt
proto
.
InternalMessageInfo
func
(
m
*
RelationCmt
)
GetRepHash
()
string
{
if
m
!=
nil
{
...
...
@@ -535,13 +853,35 @@ func (m *RelationCmt) GetHash() string {
}
type
ReplyQueryProposalComment
struct
{
RltCmt
[]
*
RelationCmt
`protobuf:"bytes,1,rep,name=rltCmt" json:"rltCmt,omitempty"`
RltCmt
[]
*
RelationCmt
`protobuf:"bytes,1,rep,name=rltCmt,proto3" json:"rltCmt,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
ReplyQueryProposalComment
)
Reset
()
{
*
m
=
ReplyQueryProposalComment
{}
}
func
(
m
*
ReplyQueryProposalComment
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReplyQueryProposalComment
)
ProtoMessage
()
{}
func
(
*
ReplyQueryProposalComment
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor5
,
[]
int
{
14
}
}
func
(
*
ReplyQueryProposalComment
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_rule_2ed9cd03418a949e
,
[]
int
{
14
}
}
func
(
m
*
ReplyQueryProposalComment
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_ReplyQueryProposalComment
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
ReplyQueryProposalComment
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_ReplyQueryProposalComment
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
dst
*
ReplyQueryProposalComment
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReplyQueryProposalComment
.
Merge
(
dst
,
src
)
}
func
(
m
*
ReplyQueryProposalComment
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReplyQueryProposalComment
.
Size
(
m
)
}
func
(
m
*
ReplyQueryProposalComment
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_ReplyQueryProposalComment
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_ReplyQueryProposalComment
proto
.
InternalMessageInfo
func
(
m
*
ReplyQueryProposalComment
)
GetRltCmt
()
[]
*
RelationCmt
{
if
m
!=
nil
{
...
...
@@ -568,9 +908,9 @@ func init() {
proto
.
RegisterType
((
*
ReplyQueryProposalComment
)(
nil
),
"types.ReplyQueryProposalComment"
)
}
func
init
()
{
proto
.
RegisterFile
(
"rule.proto"
,
fileDescriptor
5
)
}
func
init
()
{
proto
.
RegisterFile
(
"rule.proto"
,
fileDescriptor
_rule_2ed9cd03418a949e
)
}
var
fileDescriptor
5
=
[]
byte
{
var
fileDescriptor
_rule_2ed9cd03418a949e
=
[]
byte
{
// 733 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0x94
,
0x55
,
0x4d
,
0x6f
,
0xd4
,
0x3a
,
0x14
,
0x55
,
0x26
,
0xc9
,
0x7c
,
0xdc
,
0xf6
,
0x55
,
0xad
,
0xdb
,
0xd7
,
0x97
,
0xd7
,
0xf7
,
0x84
,
0x46
,
...
...
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