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
de68ba63
Commit
de68ba63
authored
Jul 24, 2019
by
liuyuhang
Committed by
33cn
Aug 14, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add transfer
parent
24b2c046
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
268 additions
and
77 deletions
+268
-77
proposal_board.go
plugin/dapp/autonomy/commands/proposal_board.go
+4
-0
proposal_rule.go
plugin/dapp/autonomy/commands/proposal_rule.go
+32
-0
boardaction.go
plugin/dapp/autonomy/executor/boardaction.go
+11
-0
exec.go
plugin/dapp/autonomy/executor/exec.go
+6
-0
projectaction.go
plugin/dapp/autonomy/executor/projectaction.go
+2
-0
ruleaction.go
plugin/dapp/autonomy/executor/ruleaction.go
+28
-1
autonomy.proto
plugin/dapp/autonomy/proto/autonomy.proto
+8
-5
project.proto
plugin/dapp/autonomy/proto/project.proto
+7
-0
jrpc.go
plugin/dapp/autonomy/rpc/jrpc.go
+15
-0
rpc.go
plugin/dapp/autonomy/rpc/rpc.go
+16
-0
autonomy.pb.go
plugin/dapp/autonomy/types/autonomy.pb.go
+60
-27
const.go
plugin/dapp/autonomy/types/const.go
+2
-0
errors.go
plugin/dapp/autonomy/types/errors.go
+2
-0
project.pb.go
plugin/dapp/autonomy/types/project.pb.go
+72
-44
types.go
plugin/dapp/autonomy/types/types.go
+3
-0
No files found.
plugin/dapp/autonomy/commands/proposal_board.go
View file @
de68ba63
...
@@ -51,6 +51,10 @@ func AutonomyCmd() *cobra.Command {
...
@@ -51,6 +51,10 @@ func AutonomyCmd() *cobra.Command {
ShowProposalRuleCmd
(),
ShowProposalRuleCmd
(),
)
)
cmd
.
AddCommand
(
TransferFundCmd
(),
)
return
cmd
return
cmd
}
}
...
...
plugin/dapp/autonomy/commands/proposal_rule.go
View file @
de68ba63
...
@@ -226,4 +226,35 @@ func showProposalRule(cmd *cobra.Command, args []string) {
...
@@ -226,4 +226,35 @@ func showProposalRule(cmd *cobra.Command, args []string) {
ctx
:=
jsonrpc
.
NewRPCCtx
(
rpcLaddr
,
"Chain33.Query"
,
params
,
rep
)
ctx
:=
jsonrpc
.
NewRPCCtx
(
rpcLaddr
,
"Chain33.Query"
,
params
,
rep
)
ctx
.
Run
()
ctx
.
Run
()
}
// TransferFundCmd 资金转入自治系统合约中
func
TransferFundCmd
()
*
cobra
.
Command
{
cmd
:=
&
cobra
.
Command
{
Use
:
"transferFund"
,
Short
:
"transfer fund"
,
Run
:
transferFund
,
}
addTransferFundflags
(
cmd
)
return
cmd
}
func
addTransferFundflags
(
cmd
*
cobra
.
Command
)
{
cmd
.
Flags
()
.
Int64P
(
"amount"
,
"a"
,
0
,
"amount"
)
cmd
.
MarkFlagRequired
(
"amount"
)
cmd
.
Flags
()
.
StringP
(
"note"
,
"n"
,
""
,
"note"
)
}
func
transferFund
(
cmd
*
cobra
.
Command
,
args
[]
string
)
{
rpcLaddr
,
_
:=
cmd
.
Flags
()
.
GetString
(
"rpc_laddr"
)
amount
,
_
:=
cmd
.
Flags
()
.
GetInt64
(
"amount"
)
note
,
_
:=
cmd
.
Flags
()
.
GetString
(
"note"
)
params
:=
&
auty
.
TransferFund
{
Amount
:
amount
*
types
.
Coin
,
Note
:
note
,
}
var
res
string
ctx
:=
jsonrpc
.
NewRPCCtx
(
rpcLaddr
,
"autonomy.TransferFundTx"
,
params
,
&
res
)
ctx
.
RunWithoutMarshal
()
}
}
\ No newline at end of file
plugin/dapp/autonomy/executor/boardaction.go
View file @
de68ba63
...
@@ -13,6 +13,7 @@ import (
...
@@ -13,6 +13,7 @@ import (
"github.com/33cn/chain33/client"
"github.com/33cn/chain33/client"
auty
"github.com/33cn/plugin/plugin/dapp/autonomy/types"
auty
"github.com/33cn/plugin/plugin/dapp/autonomy/types"
"github.com/33cn/chain33/common/address"
)
)
const
(
const
(
...
@@ -50,13 +51,23 @@ func newAction(a *Autonomy, tx *types.Transaction, index int32) *action {
...
@@ -50,13 +51,23 @@ func newAction(a *Autonomy, tx *types.Transaction, index int32) *action {
func
(
a
*
action
)
propBoard
(
prob
*
auty
.
ProposalBoard
)
(
*
types
.
Receipt
,
error
)
{
func
(
a
*
action
)
propBoard
(
prob
*
auty
.
ProposalBoard
)
(
*
types
.
Receipt
,
error
)
{
if
len
(
prob
.
Boards
)
>
maxBoards
||
len
(
prob
.
Boards
)
<
minBoards
{
if
len
(
prob
.
Boards
)
>
maxBoards
||
len
(
prob
.
Boards
)
<
minBoards
{
alog
.
Error
(
"propBoard "
,
"proposal boards number is invaild"
,
len
(
prob
.
Boards
))
return
nil
,
types
.
ErrInvalidParam
return
nil
,
types
.
ErrInvalidParam
}
}
if
prob
.
StartBlockHeight
<
a
.
height
||
prob
.
EndBlockHeight
<
a
.
height
{
if
prob
.
StartBlockHeight
<
a
.
height
||
prob
.
EndBlockHeight
<
a
.
height
{
alog
.
Error
(
"propBoard height invaild"
,
"StartBlockHeight"
,
prob
.
StartBlockHeight
,
"EndBlockHeight"
,
prob
.
EndBlockHeight
,
"height"
,
a
.
height
)
return
nil
,
types
.
ErrInvalidParam
return
nil
,
types
.
ErrInvalidParam
}
}
for
_
,
board
:=
range
prob
.
Boards
{
if
err
:=
address
.
CheckAddress
(
board
);
err
!=
nil
{
alog
.
Error
(
"propBoard "
,
"addr"
,
board
,
"check toAddr error"
,
err
)
return
nil
,
types
.
ErrInvalidAddress
}
}
// 获取当前生效提案规则
// 获取当前生效提案规则
rule
,
err
:=
a
.
getActiveRule
()
rule
,
err
:=
a
.
getActiveRule
()
if
err
!=
nil
{
if
err
!=
nil
{
...
...
plugin/dapp/autonomy/executor/exec.go
View file @
de68ba63
...
@@ -88,4 +88,9 @@ func (a *Autonomy) Exec_VotePropRule(payload *auty.VoteProposalRule, tx *types.T
...
@@ -88,4 +88,9 @@ func (a *Autonomy) Exec_VotePropRule(payload *auty.VoteProposalRule, tx *types.T
func
(
a
*
Autonomy
)
Exec_TmintPropRule
(
payload
*
auty
.
TerminateProposalRule
,
tx
*
types
.
Transaction
,
index
int
)
(
*
types
.
Receipt
,
error
)
{
func
(
a
*
Autonomy
)
Exec_TmintPropRule
(
payload
*
auty
.
TerminateProposalRule
,
tx
*
types
.
Transaction
,
index
int
)
(
*
types
.
Receipt
,
error
)
{
action
:=
newAction
(
a
,
tx
,
int32
(
index
))
action
:=
newAction
(
a
,
tx
,
int32
(
index
))
return
action
.
tmintPropRule
(
payload
)
return
action
.
tmintPropRule
(
payload
)
}
func
(
a
*
Autonomy
)
Exec_Transfer
(
payload
*
auty
.
TransferFund
,
tx
*
types
.
Transaction
,
index
int
)
(
*
types
.
Receipt
,
error
)
{
action
:=
newAction
(
a
,
tx
,
int32
(
index
))
return
action
.
transfer
(
payload
)
}
}
\ No newline at end of file
plugin/dapp/autonomy/executor/projectaction.go
View file @
de68ba63
...
@@ -20,6 +20,8 @@ func (a *action) propProject(prob *auty.ProposalProject) (*types.Receipt, error)
...
@@ -20,6 +20,8 @@ func (a *action) propProject(prob *auty.ProposalProject) (*types.Receipt, error)
}
}
if
prob
.
StartBlockHeight
<
a
.
height
||
prob
.
EndBlockHeight
<
a
.
height
||
prob
.
Amount
<=
0
{
if
prob
.
StartBlockHeight
<
a
.
height
||
prob
.
EndBlockHeight
<
a
.
height
||
prob
.
Amount
<=
0
{
alog
.
Error
(
"propProject height or amount invaild"
,
"StartBlockHeight"
,
prob
.
StartBlockHeight
,
"EndBlockHeight"
,
prob
.
EndBlockHeight
,
"height"
,
a
.
height
,
"amount"
,
prob
.
Amount
)
return
nil
,
types
.
ErrInvalidParam
return
nil
,
types
.
ErrInvalidParam
}
}
...
...
plugin/dapp/autonomy/executor/ruleaction.go
View file @
de68ba63
...
@@ -9,6 +9,7 @@ import (
...
@@ -9,6 +9,7 @@ import (
"github.com/33cn/chain33/types"
"github.com/33cn/chain33/types"
auty
"github.com/33cn/plugin/plugin/dapp/autonomy/types"
auty
"github.com/33cn/plugin/plugin/dapp/autonomy/types"
"github.com/33cn/chain33/system/dapp"
)
)
...
@@ -18,10 +19,17 @@ func (a *action) propRule(prob *auty.ProposalRule) (*types.Receipt, error) {
...
@@ -18,10 +19,17 @@ func (a *action) propRule(prob *auty.ProposalRule) (*types.Receipt, error) {
if
prob
.
RuleCfg
==
nil
||
prob
.
RuleCfg
.
BoardAttendRatio
<=
0
&&
prob
.
RuleCfg
.
BoardApproveRatio
<=
0
&&
if
prob
.
RuleCfg
==
nil
||
prob
.
RuleCfg
.
BoardAttendRatio
<=
0
&&
prob
.
RuleCfg
.
BoardApproveRatio
<=
0
&&
prob
.
RuleCfg
.
PubOpposeRatio
<=
0
&&
prob
.
RuleCfg
.
ProposalAmount
<=
0
&&
prob
.
RuleCfg
.
LargeProjectAmount
<=
0
&&
prob
.
RuleCfg
.
PubOpposeRatio
<=
0
&&
prob
.
RuleCfg
.
ProposalAmount
<=
0
&&
prob
.
RuleCfg
.
LargeProjectAmount
<=
0
&&
prob
.
RuleCfg
.
PublicPeriod
<=
0
{
prob
.
RuleCfg
.
PublicPeriod
<=
0
{
alog
.
Error
(
"propRule "
,
"ProposalRule RuleCfg invaild or have no modify param"
,
prob
.
RuleCfg
)
return
nil
,
types
.
ErrInvalidParam
}
if
prob
.
RuleCfg
.
BoardAttendRatio
>
100
||
prob
.
RuleCfg
.
BoardApproveRatio
>
100
||
prob
.
RuleCfg
.
PubOpposeRatio
>
100
{
alog
.
Error
(
"propRule RuleCfg invaild"
,
"BoardAttendRatio"
,
prob
.
RuleCfg
.
BoardAttendRatio
,
"BoardApproveRatio"
,
prob
.
RuleCfg
.
BoardApproveRatio
,
"PubOpposeRatio"
,
prob
.
RuleCfg
.
PubOpposeRatio
)
return
nil
,
types
.
ErrInvalidParam
return
nil
,
types
.
ErrInvalidParam
}
}
if
prob
.
StartBlockHeight
<
a
.
height
||
prob
.
EndBlockHeight
<
a
.
height
{
if
prob
.
StartBlockHeight
<
a
.
height
||
prob
.
EndBlockHeight
<
a
.
height
{
alog
.
Error
(
"propRule height invaild"
,
"StartBlockHeight"
,
prob
.
StartBlockHeight
,
"EndBlockHeight"
,
prob
.
EndBlockHeight
,
"height"
,
a
.
height
)
return
nil
,
types
.
ErrInvalidParam
return
nil
,
types
.
ErrInvalidParam
}
}
...
@@ -297,6 +305,25 @@ func (a *action) tmintPropRule(tmintProb *auty.TerminateProposalRule) (*types.Re
...
@@ -297,6 +305,25 @@ func (a *action) tmintPropRule(tmintProb *auty.TerminateProposalRule) (*types.Re
return
&
types
.
Receipt
{
Ty
:
types
.
ExecOk
,
KV
:
kv
,
Logs
:
logs
},
nil
return
&
types
.
Receipt
{
Ty
:
types
.
ExecOk
,
KV
:
kv
,
Logs
:
logs
},
nil
}
}
func
(
a
*
action
)
transfer
(
tf
*
auty
.
TransferFund
)
(
*
types
.
Receipt
,
error
)
{
if
a
.
execaddr
!=
dapp
.
ExecAddress
(
string
(
auty
.
AutonomyX
))
{
err
:=
auty
.
ErrNoAutonomyExec
alog
.
Error
(
"autonomy transfer "
,
"addr"
,
a
.
fromaddr
,
"execaddr"
,
a
.
execaddr
,
"this exec is not autonomy"
,
err
)
return
nil
,
err
}
var
logs
[]
*
types
.
ReceiptLog
var
kv
[]
*
types
.
KeyValue
receipt
,
err
:=
a
.
coinsAccount
.
ExecTransfer
(
a
.
fromaddr
,
autonomyAddr
,
a
.
execaddr
,
tf
.
Amount
)
if
err
!=
nil
{
alog
.
Error
(
"autonomy transfer "
,
"addr"
,
a
.
fromaddr
,
"amount"
,
tf
.
Amount
,
"ExecTransfer fail"
,
err
)
return
nil
,
err
}
logs
=
append
(
logs
,
receipt
.
Logs
...
)
kv
=
append
(
kv
,
receipt
.
KV
...
)
return
&
types
.
Receipt
{
Ty
:
types
.
ExecOk
,
KV
:
kv
,
Logs
:
logs
},
nil
}
func
(
a
*
action
)
getProposalRule
(
ID
string
)
(
*
auty
.
AutonomyProposalRule
,
error
)
{
func
(
a
*
action
)
getProposalRule
(
ID
string
)
(
*
auty
.
AutonomyProposalRule
,
error
)
{
value
,
err
:=
a
.
db
.
Get
(
propRuleID
(
ID
))
value
,
err
:=
a
.
db
.
Get
(
propRuleID
(
ID
))
if
err
!=
nil
{
if
err
!=
nil
{
...
...
plugin/dapp/autonomy/proto/autonomy.proto
View file @
de68ba63
...
@@ -26,10 +26,12 @@ message AutonomyAction {
...
@@ -26,10 +26,12 @@ message AutonomyAction {
PubVoteProposalProject
pubVotePropProject
=
8
;
PubVoteProposalProject
pubVotePropProject
=
8
;
TerminateProposalProject
tmintPropProject
=
9
;
TerminateProposalProject
tmintPropProject
=
9
;
// 提案规则修改相关
// 提案规则修改相关
ProposalRule
propRule
=
10
;
ProposalRule
propRule
=
10
;
RevokeProposalRule
rvkPropRule
=
11
;
RevokeProposalRule
rvkPropRule
=
11
;
VoteProposalRule
votePropRule
=
12
;
VoteProposalRule
votePropRule
=
12
;
TerminateProposalRule
tmintPropRule
=
13
;
TerminateProposalRule
tmintPropRule
=
13
;
// 发展基金转自治系统合约
TransferFund
transfer
=
14
;
}
}
int32
ty
=
1
4
;
int32
ty
=
1
5
;
}
}
\ No newline at end of file
plugin/dapp/autonomy/proto/project.proto
View file @
de68ba63
...
@@ -90,4 +90,10 @@ message ReqQueryProposalProject {
...
@@ -90,4 +90,10 @@ message ReqQueryProposalProject {
message
ReplyQueryProposalProject
{
message
ReplyQueryProposalProject
{
repeated
AutonomyProposalProject
propProjects
=
1
;
repeated
AutonomyProposalProject
propProjects
=
1
;
}
// TransferFund action
message
TransferFund
{
int64
amount
=
1
;
string
note
=
2
;
}
}
\ No newline at end of file
plugin/dapp/autonomy/rpc/jrpc.go
View file @
de68ba63
...
@@ -185,4 +185,18 @@ func (c *Jrpc) TerminateProposalRuleTx(parm *auty.TerminateProposalRule, result
...
@@ -185,4 +185,18 @@ func (c *Jrpc) TerminateProposalRuleTx(parm *auty.TerminateProposalRule, result
*
result
=
hex
.
EncodeToString
(
reply
.
Data
)
*
result
=
hex
.
EncodeToString
(
reply
.
Data
)
return
nil
return
nil
}
// TransferTx 资金转入自治系统合约中
func
(
c
*
Jrpc
)
TransferFundTx
(
parm
*
auty
.
TransferFund
,
result
*
interface
{})
error
{
if
parm
==
nil
{
return
types
.
ErrInvalidParam
}
reply
,
err
:=
c
.
cli
.
transferFund
(
context
.
Background
(),
parm
)
if
err
!=
nil
{
return
err
}
*
result
=
hex
.
EncodeToString
(
reply
.
Data
)
return
nil
}
}
\ No newline at end of file
plugin/dapp/autonomy/rpc/rpc.go
View file @
de68ba63
...
@@ -207,4 +207,19 @@ func (c *channelClient) terminateProposalRule(ctx context.Context, head *auty.Te
...
@@ -207,4 +207,19 @@ func (c *channelClient) terminateProposalRule(ctx context.Context, head *auty.Te
return
nil
,
err
return
nil
,
err
}
}
return
&
types
.
UnsignTx
{
Data
:
data
},
nil
return
&
types
.
UnsignTx
{
Data
:
data
},
nil
}
func
(
c
*
channelClient
)
transferFund
(
ctx
context
.
Context
,
head
*
auty
.
TransferFund
)
(
*
types
.
UnsignTx
,
error
)
{
val
:=
&
auty
.
AutonomyAction
{
Ty
:
auty
.
AutonomyActionTransfer
,
Value
:
&
auty
.
AutonomyAction_Transfer
{
Transfer
:
head
},
}
tx
:=
&
types
.
Transaction
{
Payload
:
types
.
Encode
(
val
),
}
data
,
err
:=
types
.
FormatTxEncode
(
types
.
ExecName
(
auty
.
AutonomyX
),
tx
)
if
err
!=
nil
{
return
nil
,
err
}
return
&
types
.
UnsignTx
{
Data
:
data
},
nil
}
}
\ No newline at end of file
plugin/dapp/autonomy/types/autonomy.pb.go
View file @
de68ba63
...
@@ -36,6 +36,7 @@ It has these top-level messages:
...
@@ -36,6 +36,7 @@ It has these top-level messages:
LocalProposalProject
LocalProposalProject
ReqQueryProposalProject
ReqQueryProposalProject
ReplyQueryProposalProject
ReplyQueryProposalProject
TransferFund
AutonomyProposalRule
AutonomyProposalRule
ProposalRule
ProposalRule
RevokeProposalRule
RevokeProposalRule
...
@@ -79,8 +80,9 @@ type AutonomyAction struct {
...
@@ -79,8 +80,9 @@ type AutonomyAction struct {
// *AutonomyAction_RvkPropRule
// *AutonomyAction_RvkPropRule
// *AutonomyAction_VotePropRule
// *AutonomyAction_VotePropRule
// *AutonomyAction_TmintPropRule
// *AutonomyAction_TmintPropRule
// *AutonomyAction_Transfer
Value
isAutonomyAction_Value
`protobuf_oneof:"value"`
Value
isAutonomyAction_Value
`protobuf_oneof:"value"`
Ty
int32
`protobuf:"varint,1
4
,opt,name=ty" json:"ty,omitempty"`
Ty
int32
`protobuf:"varint,1
5
,opt,name=ty" json:"ty,omitempty"`
}
}
func
(
m
*
AutonomyAction
)
Reset
()
{
*
m
=
AutonomyAction
{}
}
func
(
m
*
AutonomyAction
)
Reset
()
{
*
m
=
AutonomyAction
{}
}
...
@@ -131,6 +133,9 @@ type AutonomyAction_VotePropRule struct {
...
@@ -131,6 +133,9 @@ type AutonomyAction_VotePropRule struct {
type
AutonomyAction_TmintPropRule
struct
{
type
AutonomyAction_TmintPropRule
struct
{
TmintPropRule
*
TerminateProposalRule
`protobuf:"bytes,13,opt,name=tmintPropRule,oneof"`
TmintPropRule
*
TerminateProposalRule
`protobuf:"bytes,13,opt,name=tmintPropRule,oneof"`
}
}
type
AutonomyAction_Transfer
struct
{
Transfer
*
TransferFund
`protobuf:"bytes,14,opt,name=transfer,oneof"`
}
func
(
*
AutonomyAction_PropBoard
)
isAutonomyAction_Value
()
{}
func
(
*
AutonomyAction_PropBoard
)
isAutonomyAction_Value
()
{}
func
(
*
AutonomyAction_RvkPropBoard
)
isAutonomyAction_Value
()
{}
func
(
*
AutonomyAction_RvkPropBoard
)
isAutonomyAction_Value
()
{}
...
@@ -145,6 +150,7 @@ func (*AutonomyAction_PropRule) isAutonomyAction_Value() {}
...
@@ -145,6 +150,7 @@ func (*AutonomyAction_PropRule) isAutonomyAction_Value() {}
func
(
*
AutonomyAction_RvkPropRule
)
isAutonomyAction_Value
()
{}
func
(
*
AutonomyAction_RvkPropRule
)
isAutonomyAction_Value
()
{}
func
(
*
AutonomyAction_VotePropRule
)
isAutonomyAction_Value
()
{}
func
(
*
AutonomyAction_VotePropRule
)
isAutonomyAction_Value
()
{}
func
(
*
AutonomyAction_TmintPropRule
)
isAutonomyAction_Value
()
{}
func
(
*
AutonomyAction_TmintPropRule
)
isAutonomyAction_Value
()
{}
func
(
*
AutonomyAction_Transfer
)
isAutonomyAction_Value
()
{}
func
(
m
*
AutonomyAction
)
GetValue
()
isAutonomyAction_Value
{
func
(
m
*
AutonomyAction
)
GetValue
()
isAutonomyAction_Value
{
if
m
!=
nil
{
if
m
!=
nil
{
...
@@ -244,6 +250,13 @@ func (m *AutonomyAction) GetTmintPropRule() *TerminateProposalRule {
...
@@ -244,6 +250,13 @@ func (m *AutonomyAction) GetTmintPropRule() *TerminateProposalRule {
return
nil
return
nil
}
}
func
(
m
*
AutonomyAction
)
GetTransfer
()
*
TransferFund
{
if
x
,
ok
:=
m
.
GetValue
()
.
(
*
AutonomyAction_Transfer
);
ok
{
return
x
.
Transfer
}
return
nil
}
func
(
m
*
AutonomyAction
)
GetTy
()
int32
{
func
(
m
*
AutonomyAction
)
GetTy
()
int32
{
if
m
!=
nil
{
if
m
!=
nil
{
return
m
.
Ty
return
m
.
Ty
...
@@ -267,6 +280,7 @@ func (*AutonomyAction) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer
...
@@ -267,6 +280,7 @@ func (*AutonomyAction) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer
(
*
AutonomyAction_RvkPropRule
)(
nil
),
(
*
AutonomyAction_RvkPropRule
)(
nil
),
(
*
AutonomyAction_VotePropRule
)(
nil
),
(
*
AutonomyAction_VotePropRule
)(
nil
),
(
*
AutonomyAction_TmintPropRule
)(
nil
),
(
*
AutonomyAction_TmintPropRule
)(
nil
),
(
*
AutonomyAction_Transfer
)(
nil
),
}
}
}
}
...
@@ -339,6 +353,11 @@ func _AutonomyAction_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
...
@@ -339,6 +353,11 @@ func _AutonomyAction_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
if
err
:=
b
.
EncodeMessage
(
x
.
TmintPropRule
);
err
!=
nil
{
if
err
:=
b
.
EncodeMessage
(
x
.
TmintPropRule
);
err
!=
nil
{
return
err
return
err
}
}
case
*
AutonomyAction_Transfer
:
b
.
EncodeVarint
(
14
<<
3
|
proto
.
WireBytes
)
if
err
:=
b
.
EncodeMessage
(
x
.
Transfer
);
err
!=
nil
{
return
err
}
case
nil
:
case
nil
:
default
:
default
:
return
fmt
.
Errorf
(
"AutonomyAction.Value has unexpected type %T"
,
x
)
return
fmt
.
Errorf
(
"AutonomyAction.Value has unexpected type %T"
,
x
)
...
@@ -453,6 +472,14 @@ func _AutonomyAction_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto
...
@@ -453,6 +472,14 @@ func _AutonomyAction_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto
err
:=
b
.
DecodeMessage
(
msg
)
err
:=
b
.
DecodeMessage
(
msg
)
m
.
Value
=
&
AutonomyAction_TmintPropRule
{
msg
}
m
.
Value
=
&
AutonomyAction_TmintPropRule
{
msg
}
return
true
,
err
return
true
,
err
case
14
:
// value.transfer
if
wire
!=
proto
.
WireBytes
{
return
true
,
proto
.
ErrInternalBadWireType
}
msg
:=
new
(
TransferFund
)
err
:=
b
.
DecodeMessage
(
msg
)
m
.
Value
=
&
AutonomyAction_Transfer
{
msg
}
return
true
,
err
default
:
default
:
return
false
,
nil
return
false
,
nil
}
}
...
@@ -527,6 +554,11 @@ func _AutonomyAction_OneofSizer(msg proto.Message) (n int) {
...
@@ -527,6 +554,11 @@ func _AutonomyAction_OneofSizer(msg proto.Message) (n int) {
n
+=
proto
.
SizeVarint
(
13
<<
3
|
proto
.
WireBytes
)
n
+=
proto
.
SizeVarint
(
13
<<
3
|
proto
.
WireBytes
)
n
+=
proto
.
SizeVarint
(
uint64
(
s
))
n
+=
proto
.
SizeVarint
(
uint64
(
s
))
n
+=
s
n
+=
s
case
*
AutonomyAction_Transfer
:
s
:=
proto
.
Size
(
x
.
Transfer
)
n
+=
proto
.
SizeVarint
(
14
<<
3
|
proto
.
WireBytes
)
n
+=
proto
.
SizeVarint
(
uint64
(
s
))
n
+=
s
case
nil
:
case
nil
:
default
:
default
:
panic
(
fmt
.
Sprintf
(
"proto: unexpected type %T in oneof"
,
x
))
panic
(
fmt
.
Sprintf
(
"proto: unexpected type %T in oneof"
,
x
))
...
@@ -541,30 +573,31 @@ func init() {
...
@@ -541,30 +573,31 @@ func init() {
func
init
()
{
proto
.
RegisterFile
(
"autonomy.proto"
,
fileDescriptor0
)
}
func
init
()
{
proto
.
RegisterFile
(
"autonomy.proto"
,
fileDescriptor0
)
}
var
fileDescriptor0
=
[]
byte
{
var
fileDescriptor0
=
[]
byte
{
// 388 bytes of a gzipped FileDescriptorProto
// 407 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0x74
,
0x93
,
0x4b
,
0x6b
,
0xe2
,
0x50
,
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0x74
,
0x93
,
0x4b
,
0x6b
,
0xf2
,
0x40
,
0x14
,
0x80
,
0xd5
,
0x99
,
0xf8
,
0x38
,
0x31
,
0x99
,
0xe1
,
0xcc
,
0x30
,
0x93
,
0x91
,
0x19
,
0x46
,
0xba
,
0x14
,
0x40
,
0xd5
,
0xef
,
0x8b
,
0x8f
,
0x1b
,
0x13
,
0xc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
0x8e
,
0x57
,
0x12
,
0x1d
,
0x42
,
0x1b
,
0x91
,
0x1d
,
0x21
,
0x78
,
0x43
,
0xf9
,
0x7d
,
0x4f
,
0x8e
,
0x97
,
0x12
,
0x15
,
0x4a
,
0xce
,
0xe6
,
0xcc
,
0x3a
,
0x32
,
0x75
,
0xec
,
0x71
,
0x7b
,
0x62
,
0x78
,
0x1d
,
0x99
,
0x2e
,
0x7b
,
0x60
,
0x24
,
0x7e
,
0x10
,
0xf5
,
0x0f
,
0x5f
,
0x84
,
0x59
,
0xa6
,
0x72
,
0xf6
,
0x52
,
0x3e
,
0x9e
,
0x87
,
0x7e
,
0xf2
,
0xdf
,
0xcc
,
0xb3
,
0x6d
,
0x97
,
0x3e
,
0xcc
,
0xdb
,
0x8f
,
0x00
,
0x00
,
0x00
,
0xff
,
0xff
,
0x5a
,
0xbe
,
0x86
,
0xe9
,
0xd6
,
0xd0
,
0x84
,
0x06
,
0x8f
,
0xad
,
0xde
,
0xa0
,
0x3e
,
0xd4
,
0x9c
,
0x06
,
0x8f
,
0x67
,
0x2d
,
0xd0
,
0xd9
,
0x03
,
0x00
,
0x00
,
0x22
,
0xd7
,
0x0b
,
0xc9
,
0xba
,
0x29
,
0xde
,
0xe5
,
0xa7
,
0xdf
,
0x00
,
0x00
,
0x00
,
0xff
,
0xff
,
0x95
,
0x75
,
0xd2
,
0x7a
,
0x0c
,
0x04
,
0x00
,
0x00
,
}
}
plugin/dapp/autonomy/types/const.go
View file @
de68ba63
...
@@ -22,6 +22,8 @@ const (
...
@@ -22,6 +22,8 @@ const (
AutonomyActionVotePropRule
AutonomyActionVotePropRule
AutonomyActionTmintPropRule
AutonomyActionTmintPropRule
AutonomyActionTransfer
//log for autonomy
//log for autonomy
TyLogPropBoard
=
2101
TyLogPropBoard
=
2101
TyLogRvkPropBoard
=
2102
TyLogRvkPropBoard
=
2102
...
...
plugin/dapp/autonomy/types/errors.go
View file @
de68ba63
...
@@ -21,4 +21,6 @@ var (
...
@@ -21,4 +21,6 @@ var (
ErrTerminatePeriod
=
errors
.
New
(
"ErrTerminatePeriod"
)
ErrTerminatePeriod
=
errors
.
New
(
"ErrTerminatePeriod"
)
// ErrNoActiveBoard 没有有效董事会
// ErrNoActiveBoard 没有有效董事会
ErrNoActiveBoard
=
errors
.
New
(
"ErrNoActiveBoard"
)
ErrNoActiveBoard
=
errors
.
New
(
"ErrNoActiveBoard"
)
// ErrNoAutonomyExec 非Autonomy执行器
ErrNoAutonomyExec
=
errors
.
New
(
"ErrNoAutonomyExec"
)
)
)
plugin/dapp/autonomy/types/project.pb.go
View file @
de68ba63
...
@@ -416,6 +416,31 @@ func (m *ReplyQueryProposalProject) GetPropProjects() []*AutonomyProposalProject
...
@@ -416,6 +416,31 @@ func (m *ReplyQueryProposalProject) GetPropProjects() []*AutonomyProposalProject
return
nil
return
nil
}
}
// 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"`
}
func
(
m
*
TransferFund
)
Reset
()
{
*
m
=
TransferFund
{}
}
func
(
m
*
TransferFund
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
TransferFund
)
ProtoMessage
()
{}
func
(
*
TransferFund
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor3
,
[]
int
{
10
}
}
func
(
m
*
TransferFund
)
GetAmount
()
int64
{
if
m
!=
nil
{
return
m
.
Amount
}
return
0
}
func
(
m
*
TransferFund
)
GetNote
()
string
{
if
m
!=
nil
{
return
m
.
Note
}
return
""
}
func
init
()
{
func
init
()
{
proto
.
RegisterType
((
*
AutonomyProposalProject
)(
nil
),
"types.AutonomyProposalProject"
)
proto
.
RegisterType
((
*
AutonomyProposalProject
)(
nil
),
"types.AutonomyProposalProject"
)
proto
.
RegisterType
((
*
ProposalProject
)(
nil
),
"types.ProposalProject"
)
proto
.
RegisterType
((
*
ProposalProject
)(
nil
),
"types.ProposalProject"
)
...
@@ -427,53 +452,56 @@ func init() {
...
@@ -427,53 +452,56 @@ func init() {
proto
.
RegisterType
((
*
LocalProposalProject
)(
nil
),
"types.LocalProposalProject"
)
proto
.
RegisterType
((
*
LocalProposalProject
)(
nil
),
"types.LocalProposalProject"
)
proto
.
RegisterType
((
*
ReqQueryProposalProject
)(
nil
),
"types.ReqQueryProposalProject"
)
proto
.
RegisterType
((
*
ReqQueryProposalProject
)(
nil
),
"types.ReqQueryProposalProject"
)
proto
.
RegisterType
((
*
ReplyQueryProposalProject
)(
nil
),
"types.ReplyQueryProposalProject"
)
proto
.
RegisterType
((
*
ReplyQueryProposalProject
)(
nil
),
"types.ReplyQueryProposalProject"
)
proto
.
RegisterType
((
*
TransferFund
)(
nil
),
"types.TransferFund"
)
}
}
func
init
()
{
proto
.
RegisterFile
(
"project.proto"
,
fileDescriptor3
)
}
func
init
()
{
proto
.
RegisterFile
(
"project.proto"
,
fileDescriptor3
)
}
var
fileDescriptor3
=
[]
byte
{
var
fileDescriptor3
=
[]
byte
{
// 686 bytes of a gzipped FileDescriptorProto
// 714 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0x94
,
0x55
,
0x4d
,
0x6f
,
0x13
,
0x3b
,
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0x94
,
0x55
,
0x4d
,
0x6f
,
0xdb
,
0x38
,
0x14
,
0x55
,
0x3a
,
0x99
,
0xa4
,
0xb9
,
0x49
,
0x3f
,
0x9e
,
0xdb
,
0x97
,
0xfa
,
0x55
,
0x4f
,
0x55
,
0x34
,
0x10
,
0x85
,
0x2c
,
0xcb
,
0x8e
,
0xc7
,
0xce
,
0xc7
,
0x32
,
0x59
,
0x87
,
0x1b
,
0x2c
,
0x02
,
0x43
,
0x87
,
0x8b
,
0xa7
,
0xe8
,
0x21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
,
0x7b
,
0x6c
,
0x7a
,
0xc9
,
0x33
,
0x69
,
0xd1
,
0x9f
,
0xc9
,
0x93
,
0xc0
,
0xa0
,
0x16
,
0xdd
,
0xe6
,
0x47
,
0xf8
,
0x0f
,
0xd8
,
0x74
,
0xc3
,
0x13
,
0x1e
,
0xc1
,
0xe0
,
0x5c
,
0x9f
,
0x01
,
0x00
,
0x00
,
0xff
,
0xff
,
0x2e
,
0x98
,
0xa5
,
0xae
,
0x73
,
0x06
,
0x00
,
0x00
,
0x45
,
0x79
,
0x71
,
0xc1
,
0xd5
,
0xcb
,
0x32
,
0x4f
,
0x6a
,
0x31
,
0xe0
,
0x35
,
0x62
,
0x80
,
0x40
,
0x3b
,
0x37
,
0xc1
,
0xdc
,
0xc2
,
0x6b
,
0x81
,
0xeb
,
0x59
,
0x07
,
0xff
,
0x88
,
0x9e
,
0xfc
,
0x08
,
0x00
,
0x00
,
0xff
,
0xff
,
0x20
,
0x2a
,
0x06
,
0x3d
,
0xaf
,
0x06
,
0x00
,
0x00
,
}
}
plugin/dapp/autonomy/types/types.go
View file @
de68ba63
...
@@ -88,5 +88,7 @@ func (a *AutonomyType) GetTypeMap() map[string]int32 {
...
@@ -88,5 +88,7 @@ func (a *AutonomyType) GetTypeMap() map[string]int32 {
"RvkPropRule"
:
AutonomyActionRvkPropRule
,
"RvkPropRule"
:
AutonomyActionRvkPropRule
,
"VotePropRule"
:
AutonomyActionVotePropRule
,
"VotePropRule"
:
AutonomyActionVotePropRule
,
"TmintPropRule"
:
AutonomyActionTmintPropRule
,
"TmintPropRule"
:
AutonomyActionTmintPropRule
,
"Transfer"
:
AutonomyActionTransfer
,
}
}
}
}
\ No newline at end of file
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