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
af0948e2
Commit
af0948e2
authored
Dec 31, 2019
by
vipwzw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto ci
parent
f2dc03fd
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
5 additions
and
5 deletions
+5
-5
cmd.go
plugin/dapp/collateralize/commands/cmd.go
+0
-0
collateralizedb.go
plugin/dapp/collateralize/executor/collateralizedb.go
+1
-1
query.go
plugin/dapp/collateralize/executor/query.go
+1
-1
collateralize.pb.go
plugin/dapp/collateralize/types/collateralize.pb.go
+0
-0
cmd.go
plugin/dapp/issuance/commands/cmd.go
+0
-0
issuance_test.go
plugin/dapp/issuance/executor/issuance_test.go
+1
-1
issuancedb.go
plugin/dapp/issuance/executor/issuancedb.go
+1
-1
query.go
plugin/dapp/issuance/executor/query.go
+1
-1
issuance.pb.go
plugin/dapp/issuance/types/issuance.pb.go
+0
-0
No files found.
plugin/dapp/collateralize/commands/cmd.go
View file @
af0948e2
plugin/dapp/collateralize/executor/collateralizedb.go
View file @
af0948e2
...
...
@@ -1367,7 +1367,7 @@ func queryCollateralizeUserBalanceStatus(db dbm.KV, localdb dbm.KVDB, addr strin
primary
=
[]
byte
(
rows
[
DefaultCount
-
1
]
.
Data
.
(
*
pty
.
ReceiptCollateralize
)
.
RecordId
)
}
return
totalBalance
,
nil
return
totalBalance
,
nil
}
func
queryCollateralizeUserBalance
(
db
dbm
.
KV
,
localdb
dbm
.
KVDB
,
addr
string
)
(
int64
,
error
)
{
...
...
plugin/dapp/collateralize/executor/query.go
View file @
af0948e2
...
...
@@ -175,5 +175,5 @@ func (c *Collateralize) Query_CollateralizeUserBalance(req *pty.ReqCollateralize
return
nil
,
err
}
return
&
pty
.
RepCollateralizeUserBalance
{
Balance
:
balance
},
nil
return
&
pty
.
RepCollateralizeUserBalance
{
Balance
:
balance
},
nil
}
plugin/dapp/collateralize/types/collateralize.pb.go
View file @
af0948e2
This diff is collapsed.
Click to expand it.
plugin/dapp/issuance/commands/cmd.go
View file @
af0948e2
plugin/dapp/issuance/executor/issuance_test.go
View file @
af0948e2
...
...
@@ -295,7 +295,7 @@ func TestIssuance(t *testing.T) {
res
,
err
=
exec
.
Query
(
"IssuanceUserBalance"
,
types
.
Encode
(
&
pkt
.
ReqIssuanceRecords
{
Addr
:
string
(
Nodes
[
1
]),
Status
:
1
}))
assert
.
Nil
(
t
,
err
)
assert
.
Equal
(
t
,
100
*
types
.
Coin
,
res
.
(
*
pkt
.
RepIssuanceUserBalance
)
.
Balance
)
assert
.
Equal
(
t
,
100
*
types
.
Coin
,
res
.
(
*
pkt
.
RepIssuanceUserBalance
)
.
Balance
)
// issuance repay
p5
:=
&
pkt
.
IssuanceRepayTx
{
...
...
plugin/dapp/issuance/executor/issuancedb.go
View file @
af0948e2
...
...
@@ -1116,7 +1116,7 @@ func queryIssuanceUserBalanceStatus(db dbm.KV, localdb dbm.KVDB, addr string, st
primary
=
[]
byte
(
rows
[
DefaultCount
-
1
]
.
Data
.
(
*
pty
.
ReceiptIssuance
)
.
DebtId
)
}
return
totalBalance
,
nil
return
totalBalance
,
nil
}
func
queryIssuanceUserBalance
(
db
dbm
.
KV
,
localdb
dbm
.
KVDB
,
addr
string
)
(
int64
,
error
)
{
...
...
plugin/dapp/issuance/executor/query.go
View file @
af0948e2
...
...
@@ -130,5 +130,5 @@ func (c *Issuance) Query_IssuanceUserBalance(req *pty.ReqIssuanceRecords) (types
return
nil
,
err
}
return
&
pty
.
RepIssuanceUserBalance
{
Balance
:
balance
},
nil
return
&
pty
.
RepIssuanceUserBalance
{
Balance
:
balance
},
nil
}
plugin/dapp/issuance/types/issuance.pb.go
View file @
af0948e2
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