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
34bc0575
Commit
34bc0575
authored
Dec 04, 2019
by
pengjun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#627 add rpc-test
parent
1a2863b7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
cmd.go
plugin/dapp/collateralize/commands/cmd.go
+1
-1
test-rpc.sh
plugin/dapp/issuance/cmd/test/test-rpc.sh
+0
-0
cmd.go
plugin/dapp/issuance/commands/cmd.go
+5
-5
issuance.proto
plugin/dapp/issuance/proto/issuance.proto
+1
-1
No files found.
plugin/dapp/collateralize/commands/cmd.go
View file @
34bc0575
...
@@ -218,7 +218,7 @@ func CollateralizePriceFeed(cmd *cobra.Command, args []string) {
...
@@ -218,7 +218,7 @@ func CollateralizePriceFeed(cmd *cobra.Command, args []string) {
}
}
rpcLaddr
,
_
:=
cmd
.
Flags
()
.
GetString
(
"rpc_laddr"
)
rpcLaddr
,
_
:=
cmd
.
Flags
()
.
GetString
(
"rpc_laddr"
)
price
,
_
:=
cmd
.
Flags
()
.
GetFloat
32
(
"price"
)
price
,
_
:=
cmd
.
Flags
()
.
GetFloat
64
(
"price"
)
volume
,
_
:=
cmd
.
Flags
()
.
GetUint64
(
"volume"
)
volume
,
_
:=
cmd
.
Flags
()
.
GetUint64
(
"volume"
)
params
:=
&
rpctypes
.
CreateTxIn
{
params
:=
&
rpctypes
.
CreateTxIn
{
...
...
plugin/dapp/issuance/cmd/test/test-rpc.sh
0 → 100644
View file @
34bc0575
This diff is collapsed.
Click to expand it.
plugin/dapp/issuance/commands/cmd.go
View file @
34bc0575
...
@@ -46,8 +46,8 @@ func addIssuanceCreateFlags(cmd *cobra.Command) {
...
@@ -46,8 +46,8 @@ func addIssuanceCreateFlags(cmd *cobra.Command) {
cmd
.
Flags
()
.
Float64P
(
"balance"
,
"b"
,
0
,
"balance"
)
cmd
.
Flags
()
.
Float64P
(
"balance"
,
"b"
,
0
,
"balance"
)
cmd
.
MarkFlagRequired
(
"balance"
)
cmd
.
MarkFlagRequired
(
"balance"
)
cmd
.
Flags
()
.
Float64P
(
"debtCeiling"
,
"d"
,
0
,
"debtCeiling"
)
cmd
.
Flags
()
.
Float64P
(
"debtCeiling"
,
"d"
,
0
,
"debtCeiling"
)
cmd
.
Flags
()
.
Float
32
P
(
"liquidationRatio"
,
"l"
,
0
,
"liquidationRatio"
)
cmd
.
Flags
()
.
Float
64
P
(
"liquidationRatio"
,
"l"
,
0
,
"liquidationRatio"
)
cmd
.
Flags
()
.
Float32
P
(
"period"
,
"p"
,
0
,
"period"
)
cmd
.
Flags
()
.
Uint64
P
(
"period"
,
"p"
,
0
,
"period"
)
}
}
func
IssuanceCreate
(
cmd
*
cobra
.
Command
,
args
[]
string
)
{
func
IssuanceCreate
(
cmd
*
cobra
.
Command
,
args
[]
string
)
{
...
@@ -60,7 +60,7 @@ func IssuanceCreate(cmd *cobra.Command, args []string) {
...
@@ -60,7 +60,7 @@ func IssuanceCreate(cmd *cobra.Command, args []string) {
rpcLaddr
,
_
:=
cmd
.
Flags
()
.
GetString
(
"rpc_laddr"
)
rpcLaddr
,
_
:=
cmd
.
Flags
()
.
GetString
(
"rpc_laddr"
)
balance
,
_
:=
cmd
.
Flags
()
.
GetFloat64
(
"balance"
)
balance
,
_
:=
cmd
.
Flags
()
.
GetFloat64
(
"balance"
)
debtCeiling
,
_
:=
cmd
.
Flags
()
.
GetFloat64
(
"debtCeiling"
)
debtCeiling
,
_
:=
cmd
.
Flags
()
.
GetFloat64
(
"debtCeiling"
)
liquidationRatio
,
_
:=
cmd
.
Flags
()
.
GetFloat
32
(
"liquidationRatio"
)
liquidationRatio
,
_
:=
cmd
.
Flags
()
.
GetFloat
64
(
"liquidationRatio"
)
period
,
_
:=
cmd
.
Flags
()
.
GetUint64
(
"period"
)
period
,
_
:=
cmd
.
Flags
()
.
GetUint64
(
"period"
)
params
:=
&
rpctypes
.
CreateTxIn
{
params
:=
&
rpctypes
.
CreateTxIn
{
...
@@ -167,7 +167,7 @@ func IssuancePriceFeedRawTxCmd() *cobra.Command {
...
@@ -167,7 +167,7 @@ func IssuancePriceFeedRawTxCmd() *cobra.Command {
}
}
func
addIssuancePriceFeedFlags
(
cmd
*
cobra
.
Command
)
{
func
addIssuancePriceFeedFlags
(
cmd
*
cobra
.
Command
)
{
cmd
.
Flags
()
.
Float
32
P
(
"price"
,
"p"
,
0
,
"price"
)
cmd
.
Flags
()
.
Float
64
P
(
"price"
,
"p"
,
0
,
"price"
)
cmd
.
MarkFlagRequired
(
"price"
)
cmd
.
MarkFlagRequired
(
"price"
)
cmd
.
Flags
()
.
Uint64P
(
"volume"
,
"v"
,
0
,
"volume"
)
cmd
.
Flags
()
.
Uint64P
(
"volume"
,
"v"
,
0
,
"volume"
)
cmd
.
MarkFlagRequired
(
"volume"
)
cmd
.
MarkFlagRequired
(
"volume"
)
...
@@ -181,7 +181,7 @@ func IssuancePriceFeed(cmd *cobra.Command, args []string) {
...
@@ -181,7 +181,7 @@ func IssuancePriceFeed(cmd *cobra.Command, args []string) {
}
}
rpcLaddr
,
_
:=
cmd
.
Flags
()
.
GetString
(
"rpc_laddr"
)
rpcLaddr
,
_
:=
cmd
.
Flags
()
.
GetString
(
"rpc_laddr"
)
price
,
_
:=
cmd
.
Flags
()
.
GetFloat
32
(
"price"
)
price
,
_
:=
cmd
.
Flags
()
.
GetFloat
64
(
"price"
)
volume
,
_
:=
cmd
.
Flags
()
.
GetUint64
(
"volume"
)
volume
,
_
:=
cmd
.
Flags
()
.
GetUint64
(
"volume"
)
params
:=
&
rpctypes
.
CreateTxIn
{
params
:=
&
rpctypes
.
CreateTxIn
{
...
...
plugin/dapp/issuance/proto/issuance.proto
View file @
34bc0575
...
@@ -13,7 +13,7 @@ message Issuance {
...
@@ -13,7 +13,7 @@ message Issuance {
repeated
DebtRecord
debtRecords
=
7
;
//大户抵押记录
repeated
DebtRecord
debtRecords
=
7
;
//大户抵押记录
repeated
DebtRecord
invalidRecords
=
8
;
//大户抵押记录
repeated
DebtRecord
invalidRecords
=
8
;
//大户抵押记录
int32
status
=
9
;
//当期发行的状态,是否关闭
int32
status
=
9
;
//当期发行的状态,是否关闭
double
latestLiquidationPrice
=
10
;
//最高清算价格
double
latestLiquidationPrice
=
10
;
//最高清算价格
int64
period
=
11
;
//发行最大期限
int64
period
=
11
;
//发行最大期限
int64
latestExpireTime
=
12
;
//最近超期时间
int64
latestExpireTime
=
12
;
//最近超期时间
int64
createTime
=
13
;
//创建时间
int64
createTime
=
13
;
//创建时间
...
...
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