local req='{"method":"Chain33.CreateTransaction","params":[{"execer":"'"${EXECTOR}"'", "actionName":"PropBoard", "payload":{"boards": ['"${boards}"'],"startBlockHeight":'"${start}"',"endBlockHeight":'"${end}"'}}]}'
local req='{"method":"Chain33.CreateTransaction","params":[{"execer":"'"${EXECTOR}"'", "actionName":"PropBoard", "payload":{"boardUpdate": 3,"boards": ['"${boards}"'],"startBlockHeight":'"${start}"',"endBlockHeight":'"${end}"'}}]}'
echo"${req}"
echo"${req}"
chain33_Http "$req"${HTTP}'(.error|not) and (.result != null)'"$FUNCNAME"".result"
chain33_Http "$req""${HTTP}"'(.error|not) and (.result != null)'"$FUNCNAME"".result"
local req='{"method":"Chain33.CreateTransaction","params":[{"execer":"'"${EXECTOR}"'", "actionName":"VotePropBoard", "payload":{"proposalID": "'"${ID}"'","approve": true}}]}'
local req='{"method":"Chain33.CreateTransaction","params":[{"execer":"'"${EXECTOR}"'", "actionName":"VotePropBoard", "payload":{"proposalID": "'"${ID}"'","voteOption":1}}]}'
echo"${req}"
echo"${req}"
chain33_Http "$req"${HTTP}'(.error|not) and (.result != null)'"$FUNCNAME"".result"
chain33_Http "$req""${HTTP}"'(.error|not) and (.result != null)'"$FUNCNAME"".result"
local req='{"method":"Chain33.CreateTransaction","params":[{"execer":"'"${EXECTOR}"'", "actionName":"'"${funcName}"'", "payload":{"proposalID": "'"${ID}"'"}}]}'
local req='{"method":"Chain33.CreateTransaction","params":[{"execer":"'"${EXECTOR}"'", "actionName":"'"${funcName}"'", "payload":{"proposalID": "'"${ID}"'"}}]}'
echo"${req}"
echo"${req}"
chain33_Http "$req"${HTTP}'(.error|not) and (.result != null)'"$FUNCNAME"".result"
chain33_Http "$req""${HTTP}"'(.error|not) and (.result != null)'"$FUNCNAME"".result"
local req='{"method":"Chain33.CreateTransaction","params":[{"execer":"'"${EXECTOR}"'", "actionName":"'"${funcName}"'", "payload":{"proposalID": "'"${ID}"'"}}]}'
local req='{"method":"Chain33.CreateTransaction","params":[{"execer":"'"${EXECTOR}"'", "actionName":"'"${funcName}"'", "payload":{"proposalID": "'"${ID}"'"}}]}'
echo"${req}"
echo"${req}"
chain33_Http "$req"${HTTP}'(.error|not) and (.result != null)'"$FUNCNAME"".result"
chain33_Http "$req""${HTTP}"'(.error|not) and (.result != null)'"$FUNCNAME"".result"
local req='{"method":"Chain33.Query","params":[{"execer":"'"${EXECTOR}"'","funcName":"'"${funcName}"'","payload":{"data":"'"${ID}"'"}}]}'
local req='{"method":"Chain33.Query","params":[{"execer":"'"${EXECTOR}"'","funcName":"'"${funcName}"'","payload":{"data":"'"${ID}"'"}}]}'
resok='(.error|not)'
resok='(.error|not)'
chain33_Http "$req"${HTTP}"$resok""$FUNCNAME"
chain33_Http "$req""${HTTP}""$resok""$FUNCNAME"
}
}
listProposal(){
listProposal(){
...
@@ -189,18 +201,19 @@ listProposal() {
...
@@ -189,18 +201,19 @@ listProposal() {
local direct=0
local direct=0
local req='{"method":"Chain33.Query","params":[{"execer":"'"${EXECTOR}"'","funcName":"'"${funcName}"'","payload":{"status":"'"${status}"'", "addr":"'"${addr}"'", "count":1, "direction":"'"${direct}"'"}}]}'
local req='{"method":"Chain33.Query","params":[{"execer":"'"${EXECTOR}"'","funcName":"'"${funcName}"'","payload":{"status":"'"${status}"'", "addr":"'"${addr}"'", "count":1, "direction":"'"${direct}"'"}}]}'
local req='{"method":"Chain33.CreateTransaction","params":[{"execer":"'"${EXECTOR}"'", "actionName":"VotePropProject", "payload":{"proposalID": "'"${ID}"'","approve": true}}]}'
local req='{"method":"Chain33.CreateTransaction","params":[{"execer":"'"${EXECTOR}"'", "actionName":"VotePropProject", "payload":{"proposalID": "'"${ID}"'","vote":1}}]}'
echo"${req}"
echo"${req}"
chain33_Http "$req"${HTTP}'(.error|not) and (.result != null)'"$FUNCNAME"".result"
chain33_Http "$req""${HTTP}"'(.error|not) and (.result != null)'"$FUNCNAME"".result"
local req='{"method":"Chain33.CreateTransaction","params":[{"execer":"'"${EXECTOR}"'", "actionName":"VotePropChange", "payload":{"proposalID": "'"${ID}"'","approve": true}}]}'
local req='{"method":"Chain33.CreateTransaction","params":[{"execer":"'"${EXECTOR}"'", "actionName":"VotePropChange", "payload":{"proposalID": "'"${ID}"'","vote":1}}]}'
echo"${req}"
echo"${req}"
chain33_Http "$req"${HTTP}'(.error|not) and (.result != null)'"$FUNCNAME"".result"
chain33_Http "$req""${HTTP}"'(.error|not) and (.result != null)'"$FUNCNAME"".result"