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
ce3d7e92
Commit
ce3d7e92
authored
Jul 26, 2019
by
liuyuhang
Committed by
33cn
Aug 14, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add proposal ID to message
parent
89b26ba9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
54 additions
and
149 deletions
+54
-149
proposal_board.go
plugin/dapp/autonomy/commands/proposal_board.go
+3
-3
proposal_project.go
plugin/dapp/autonomy/commands/proposal_project.go
+3
-3
proposal_rule.go
plugin/dapp/autonomy/commands/proposal_rule.go
+6
-6
boardaction.go
plugin/dapp/autonomy/executor/boardaction.go
+1
-0
projectaction.go
plugin/dapp/autonomy/executor/projectaction.go
+1
-0
ruleaction.go
plugin/dapp/autonomy/executor/ruleaction.go
+1
-0
board.proto
plugin/dapp/autonomy/proto/board.proto
+1
-0
project.proto
plugin/dapp/autonomy/proto/project.proto
+1
-0
rule.proto
plugin/dapp/autonomy/proto/rule.proto
+1
-0
autonomy.pb.go
plugin/dapp/autonomy/types/autonomy.pb.go
+0
-0
board.pb.go
plugin/dapp/autonomy/types/board.pb.go
+0
-0
lcommon.pb.go
plugin/dapp/autonomy/types/lcommon.pb.go
+36
-137
project.pb.go
plugin/dapp/autonomy/types/project.pb.go
+0
-0
rule.pb.go
plugin/dapp/autonomy/types/rule.pb.go
+0
-0
No files found.
plugin/dapp/autonomy/commands/proposal_board.go
View file @
ce3d7e92
...
@@ -219,9 +219,9 @@ func addShowProposalBoardflags(cmd *cobra.Command) {
...
@@ -219,9 +219,9 @@ func addShowProposalBoardflags(cmd *cobra.Command) {
cmd
.
Flags
()
.
StringP
(
"proposalID"
,
"p"
,
""
,
"proposal ID"
)
cmd
.
Flags
()
.
StringP
(
"proposalID"
,
"p"
,
""
,
"proposal ID"
)
cmd
.
Flags
()
.
Uint32P
(
"status"
,
"s"
,
0
,
"status"
)
cmd
.
Flags
()
.
Uint32P
(
"status"
,
"s"
,
0
,
"status"
)
cmd
.
Flags
()
.
Int32P
(
"count"
,
"c"
,
0
,
"count
"
)
cmd
.
Flags
()
.
Int32P
(
"count"
,
"c"
,
1
,
"count, default is 1
"
)
cmd
.
Flags
()
.
Int32P
(
"direction"
,
"d"
,
0
,
"direction
"
)
cmd
.
Flags
()
.
Int32P
(
"direction"
,
"d"
,
-
1
,
"direction, default is reserve
"
)
cmd
.
Flags
()
.
Int64P
(
"index"
,
"i"
,
0
,
"index
"
)
cmd
.
Flags
()
.
Int64P
(
"index"
,
"i"
,
-
1
,
"index, default is -1
"
)
}
}
func
showProposalBoard
(
cmd
*
cobra
.
Command
,
args
[]
string
)
{
func
showProposalBoard
(
cmd
*
cobra
.
Command
,
args
[]
string
)
{
...
...
plugin/dapp/autonomy/commands/proposal_project.go
View file @
ce3d7e92
...
@@ -239,9 +239,9 @@ func addShowProposalProjectflags(cmd *cobra.Command) {
...
@@ -239,9 +239,9 @@ func addShowProposalProjectflags(cmd *cobra.Command) {
cmd
.
Flags
()
.
StringP
(
"proposalID"
,
"p"
,
""
,
"proposal ID"
)
cmd
.
Flags
()
.
StringP
(
"proposalID"
,
"p"
,
""
,
"proposal ID"
)
cmd
.
Flags
()
.
Uint32P
(
"status"
,
"s"
,
0
,
"status"
)
cmd
.
Flags
()
.
Uint32P
(
"status"
,
"s"
,
0
,
"status"
)
cmd
.
Flags
()
.
Int32P
(
"count"
,
"c"
,
0
,
"count
"
)
cmd
.
Flags
()
.
Int32P
(
"count"
,
"c"
,
1
,
"count, default is 1
"
)
cmd
.
Flags
()
.
Int32P
(
"direction"
,
"d"
,
0
,
"direction
"
)
cmd
.
Flags
()
.
Int32P
(
"direction"
,
"d"
,
-
1
,
"direction, default is reserve
"
)
cmd
.
Flags
()
.
Int64P
(
"index"
,
"i"
,
0
,
"index
"
)
cmd
.
Flags
()
.
Int64P
(
"index"
,
"i"
,
-
1
,
"index, default is -1
"
)
}
}
func
showProposalProject
(
cmd
*
cobra
.
Command
,
args
[]
string
)
{
func
showProposalProject
(
cmd
*
cobra
.
Command
,
args
[]
string
)
{
...
...
plugin/dapp/autonomy/commands/proposal_rule.go
View file @
ce3d7e92
...
@@ -189,9 +189,9 @@ func addShowProposalRuleflags(cmd *cobra.Command) {
...
@@ -189,9 +189,9 @@ func addShowProposalRuleflags(cmd *cobra.Command) {
cmd
.
Flags
()
.
StringP
(
"proposalID"
,
"p"
,
""
,
"proposal ID"
)
cmd
.
Flags
()
.
StringP
(
"proposalID"
,
"p"
,
""
,
"proposal ID"
)
cmd
.
Flags
()
.
Uint32P
(
"status"
,
"s"
,
0
,
"status"
)
cmd
.
Flags
()
.
Uint32P
(
"status"
,
"s"
,
0
,
"status"
)
cmd
.
Flags
()
.
Int32P
(
"count"
,
"c"
,
0
,
"count
"
)
cmd
.
Flags
()
.
Int32P
(
"count"
,
"c"
,
1
,
"count, default is 1
"
)
cmd
.
Flags
()
.
Int32P
(
"direction"
,
"d"
,
0
,
"direction
"
)
cmd
.
Flags
()
.
Int32P
(
"direction"
,
"d"
,
-
1
,
"direction, default is reserve
"
)
cmd
.
Flags
()
.
Int64P
(
"index"
,
"i"
,
0
,
"index
"
)
cmd
.
Flags
()
.
Int64P
(
"index"
,
"i"
,
-
1
,
"index, default is -1
"
)
}
}
func
showProposalRule
(
cmd
*
cobra
.
Command
,
args
[]
string
)
{
func
showProposalRule
(
cmd
*
cobra
.
Command
,
args
[]
string
)
{
...
@@ -308,9 +308,9 @@ func ShowProposalCommentCmd() *cobra.Command {
...
@@ -308,9 +308,9 @@ func ShowProposalCommentCmd() *cobra.Command {
func
addShowProposalCommentflags
(
cmd
*
cobra
.
Command
)
{
func
addShowProposalCommentflags
(
cmd
*
cobra
.
Command
)
{
cmd
.
Flags
()
.
StringP
(
"proposalID"
,
"p"
,
""
,
"proposal ID"
)
cmd
.
Flags
()
.
StringP
(
"proposalID"
,
"p"
,
""
,
"proposal ID"
)
cmd
.
MarkFlagRequired
(
"proposalID"
)
cmd
.
MarkFlagRequired
(
"proposalID"
)
cmd
.
Flags
()
.
Int32P
(
"count"
,
"c"
,
0
,
"count
"
)
cmd
.
Flags
()
.
Int32P
(
"count"
,
"c"
,
1
,
"count, default is 1
"
)
cmd
.
Flags
()
.
Int32P
(
"direction"
,
"d"
,
0
,
"direction
"
)
cmd
.
Flags
()
.
Int32P
(
"direction"
,
"d"
,
-
1
,
"direction, default is reserve
"
)
cmd
.
Flags
()
.
Int64P
(
"index"
,
"i"
,
0
,
"index
"
)
cmd
.
Flags
()
.
Int64P
(
"index"
,
"i"
,
-
1
,
"index, default is -1
"
)
}
}
func
showProposalComment
(
cmd
*
cobra
.
Command
,
args
[]
string
)
{
func
showProposalComment
(
cmd
*
cobra
.
Command
,
args
[]
string
)
{
...
...
plugin/dapp/autonomy/executor/boardaction.go
View file @
ce3d7e92
...
@@ -95,6 +95,7 @@ func (a *action) propBoard(prob *auty.ProposalBoard) (*types.Receipt, error) {
...
@@ -95,6 +95,7 @@ func (a *action) propBoard(prob *auty.ProposalBoard) (*types.Receipt, error) {
Address
:
a
.
fromaddr
,
Address
:
a
.
fromaddr
,
Height
:
a
.
height
,
Height
:
a
.
height
,
Index
:
a
.
index
,
Index
:
a
.
index
,
ProposalID
:
common
.
ToHex
(
a
.
txhash
),
}
}
kv
=
append
(
kv
,
&
types
.
KeyValue
{
Key
:
propBoardID
(
common
.
ToHex
(
a
.
txhash
)),
Value
:
types
.
Encode
(
cur
)})
kv
=
append
(
kv
,
&
types
.
KeyValue
{
Key
:
propBoardID
(
common
.
ToHex
(
a
.
txhash
)),
Value
:
types
.
Encode
(
cur
)})
...
...
plugin/dapp/autonomy/executor/projectaction.go
View file @
ce3d7e92
...
@@ -72,6 +72,7 @@ func (a *action) propProject(prob *auty.ProposalProject) (*types.Receipt, error)
...
@@ -72,6 +72,7 @@ func (a *action) propProject(prob *auty.ProposalProject) (*types.Receipt, error)
Address
:
a
.
fromaddr
,
Address
:
a
.
fromaddr
,
Height
:
a
.
height
,
Height
:
a
.
height
,
Index
:
a
.
index
,
Index
:
a
.
index
,
ProposalID
:
common
.
ToHex
(
a
.
txhash
),
}
}
kv
=
append
(
kv
,
&
types
.
KeyValue
{
Key
:
propProjectID
(
common
.
ToHex
(
a
.
txhash
)),
Value
:
types
.
Encode
(
cur
)})
kv
=
append
(
kv
,
&
types
.
KeyValue
{
Key
:
propProjectID
(
common
.
ToHex
(
a
.
txhash
)),
Value
:
types
.
Encode
(
cur
)})
receiptLog
:=
getProjectReceiptLog
(
nil
,
cur
,
auty
.
TyLogPropProject
)
receiptLog
:=
getProjectReceiptLog
(
nil
,
cur
,
auty
.
TyLogPropProject
)
...
...
plugin/dapp/autonomy/executor/ruleaction.go
View file @
ce3d7e92
...
@@ -58,6 +58,7 @@ func (a *action) propRule(prob *auty.ProposalRule) (*types.Receipt, error) {
...
@@ -58,6 +58,7 @@ func (a *action) propRule(prob *auty.ProposalRule) (*types.Receipt, error) {
Address
:
a
.
fromaddr
,
Address
:
a
.
fromaddr
,
Height
:
a
.
height
,
Height
:
a
.
height
,
Index
:
a
.
index
,
Index
:
a
.
index
,
ProposalID
:
common
.
ToHex
(
a
.
txhash
),
}
}
key
:=
propRuleID
(
common
.
ToHex
(
a
.
txhash
))
key
:=
propRuleID
(
common
.
ToHex
(
a
.
txhash
))
...
...
plugin/dapp/autonomy/proto/board.proto
View file @
ce3d7e92
...
@@ -20,6 +20,7 @@ message AutonomyProposalBoard {
...
@@ -20,6 +20,7 @@ message AutonomyProposalBoard {
string
address
=
5
;
string
address
=
5
;
int64
height
=
6
;
int64
height
=
6
;
int32
index
=
7
;
int32
index
=
7
;
string
proposalID
=
8
;
}
}
// action
// action
...
...
plugin/dapp/autonomy/proto/project.proto
View file @
ce3d7e92
...
@@ -23,6 +23,7 @@ message AutonomyProposalProject {
...
@@ -23,6 +23,7 @@ message AutonomyProposalProject {
string
address
=
7
;
string
address
=
7
;
int64
height
=
8
;
int64
height
=
8
;
int32
index
=
9
;
int32
index
=
9
;
string
proposalID
=
10
;
}
}
message
ProposalProject
{
message
ProposalProject
{
...
...
plugin/dapp/autonomy/proto/rule.proto
View file @
ce3d7e92
...
@@ -18,6 +18,7 @@ message AutonomyProposalRule {
...
@@ -18,6 +18,7 @@ message AutonomyProposalRule {
string
address
=
5
;
string
address
=
5
;
int64
height
=
6
;
int64
height
=
6
;
int32
index
=
7
;
int32
index
=
7
;
string
proposalID
=
8
;
}
}
message
ProposalRule
{
message
ProposalRule
{
...
...
plugin/dapp/autonomy/types/autonomy.pb.go
View file @
ce3d7e92
This diff is collapsed.
Click to expand it.
plugin/dapp/autonomy/types/board.pb.go
View file @
ce3d7e92
This diff is collapsed.
Click to expand it.
plugin/dapp/autonomy/types/lcommon.pb.go
View file @
ce3d7e92
This diff is collapsed.
Click to expand it.
plugin/dapp/autonomy/types/project.pb.go
View file @
ce3d7e92
This diff is collapsed.
Click to expand it.
plugin/dapp/autonomy/types/rule.pb.go
View file @
ce3d7e92
This diff is collapsed.
Click to expand it.
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