Commit 5d527518 authored by vipwzw's avatar vipwzw

auto ci

parent 3ffe01ad
...@@ -348,7 +348,6 @@ func jsonOutput(resp types.Message) { ...@@ -348,7 +348,6 @@ func jsonOutput(resp types.Message) {
fmt.Println(buf.String()) fmt.Println(buf.String())
} }
func listUnfreezeCmd() *cobra.Command { func listUnfreezeCmd() *cobra.Command {
cmd := &cobra.Command{ cmd := &cobra.Command{
Use: "list", Use: "list",
...@@ -359,7 +358,6 @@ func listUnfreezeCmd() *cobra.Command { ...@@ -359,7 +358,6 @@ func listUnfreezeCmd() *cobra.Command {
cmd.Flags().Int32P("count", "", 10, "list count") cmd.Flags().Int32P("count", "", 10, "list count")
cmd.Flags().Int32P("direction", "d", 0, "list direction: 0/1") cmd.Flags().Int32P("direction", "d", 0, "list direction: 0/1")
cmd.Flags().StringP("create", "c", "", "list by creator") cmd.Flags().StringP("create", "c", "", "list by creator")
cmd.Flags().StringP("beneficiary", "b", "", "list by beneficiary") cmd.Flags().StringP("beneficiary", "b", "", "list by beneficiary")
......
...@@ -5,9 +5,9 @@ ...@@ -5,9 +5,9 @@
package executor package executor
import ( import (
"github.com/33cn/chain33/system/dapp"
"github.com/33cn/chain33/types" "github.com/33cn/chain33/types"
uf "github.com/33cn/plugin/plugin/dapp/unfreeze/types" uf "github.com/33cn/plugin/plugin/dapp/unfreeze/types"
"github.com/33cn/chain33/system/dapp"
) )
func (u *Unfreeze) execDelLocal(receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error) { func (u *Unfreeze) execDelLocal(receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error) {
......
...@@ -5,9 +5,9 @@ ...@@ -5,9 +5,9 @@
package executor package executor
import ( import (
"github.com/33cn/chain33/system/dapp"
"github.com/33cn/chain33/types" "github.com/33cn/chain33/types"
uf "github.com/33cn/plugin/plugin/dapp/unfreeze/types" uf "github.com/33cn/plugin/plugin/dapp/unfreeze/types"
"github.com/33cn/chain33/system/dapp"
) )
func (u *Unfreeze) execLocal(receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error) { func (u *Unfreeze) execLocal(receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error) {
......
...@@ -77,7 +77,7 @@ func NewAddrTable(kvdb dbm.KV) *table.Table { ...@@ -77,7 +77,7 @@ func NewAddrTable(kvdb dbm.KV) *table.Table {
return t return t
} }
func update(ldb *table.Table, unfreeze *pty.Unfreeze) (error) { func update(ldb *table.Table, unfreeze *pty.Unfreeze) error {
xs, err := ldb.ListIndex("id", []byte(unfreeze.UnfreezeID), nil, 1, 0) xs, err := ldb.ListIndex("id", []byte(unfreeze.UnfreezeID), nil, 1, 0)
if err != nil || len(xs) != 1 { if err != nil || len(xs) != 1 {
return nil return nil
...@@ -91,7 +91,6 @@ func update(ldb *table.Table, unfreeze *pty.Unfreeze) (error) { ...@@ -91,7 +91,6 @@ func update(ldb *table.Table, unfreeze *pty.Unfreeze) (error) {
return ldb.Update([]byte(u.TxIndex), u) return ldb.Update([]byte(u.TxIndex), u)
} }
func list(db dbm.KVDB, indexName string, data *pty.LocalUnfreeze, count, direction int32) ([]*table.Row, error) { func list(db dbm.KVDB, indexName string, data *pty.LocalUnfreeze, count, direction int32) ([]*table.Row, error) {
query := NewAddrTable(db).GetQuery(db) query := NewAddrTable(db).GetQuery(db)
var primary []byte var primary []byte
......
...@@ -97,7 +97,6 @@ func withdraw(unfreeze *pty.Unfreeze, frozen int64) (*pty.Unfreeze, int64) { ...@@ -97,7 +97,6 @@ func withdraw(unfreeze *pty.Unfreeze, frozen int64) (*pty.Unfreeze, int64) {
return unfreeze, amount return unfreeze, amount
} }
type fixAmountV2 struct { type fixAmountV2 struct {
} }
......
...@@ -8,9 +8,9 @@ import ( ...@@ -8,9 +8,9 @@ import (
"time" "time"
dbm "github.com/33cn/chain33/common/db" dbm "github.com/33cn/chain33/common/db"
"github.com/33cn/chain33/common/db/table"
"github.com/33cn/chain33/types" "github.com/33cn/chain33/types"
pty "github.com/33cn/plugin/plugin/dapp/unfreeze/types" pty "github.com/33cn/plugin/plugin/dapp/unfreeze/types"
"github.com/33cn/chain33/common/db/table"
) )
// Query_GetUnfreezeWithdraw 查询合约可提币量 // Query_GetUnfreezeWithdraw 查询合约可提币量
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment