Commit f2dc03fd authored by pengjun's avatar pengjun

#627 add user balance query api

parent 749115d7
...@@ -360,6 +360,38 @@ func CollateralizeQueryPrice(cmd *cobra.Command, args []string) { ...@@ -360,6 +360,38 @@ func CollateralizeQueryPrice(cmd *cobra.Command, args []string) {
ctx.Run() ctx.Run()
} }
func CollateralizeQueryUserBalanceCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "balance",
Short: "Query user balance",
Run: CollateralizeQueryUserBalance,
}
addCollateralizeQueryBalanceFlags(cmd)
return cmd
}
func addCollateralizeQueryBalanceFlags(cmd *cobra.Command) {
cmd.Flags().StringP("address", "a", "", "address")
cmd.MarkFlagRequired("address")
}
func CollateralizeQueryUserBalance(cmd *cobra.Command, args []string) {
rpcLaddr, _ := cmd.Flags().GetString("rpc_laddr")
addr, _ := cmd.Flags().GetString("address")
var params rpctypes.Query4Jrpc
params.Execer = pkt.CollateralizeX
params.FuncName = "CollateralizeUserBalance"
req := &pkt.ReqCollateralizeRecordByAddr{
Addr: addr,
}
params.Payload = types.MustPBToJSON(req)
var res pkt.RepCollateralizeUserBalance
ctx := jsonrpc.NewRPCCtx(rpcLaddr, "Chain33.Query", params, &res)
ctx.Run()
}
// CollateralizeQueryCmd 查询命令行 // CollateralizeQueryCmd 查询命令行
func CollateralizeQueryCmd() *cobra.Command { func CollateralizeQueryCmd() *cobra.Command {
cmd := &cobra.Command{ cmd := &cobra.Command{
...@@ -371,6 +403,7 @@ func CollateralizeQueryCmd() *cobra.Command { ...@@ -371,6 +403,7 @@ func CollateralizeQueryCmd() *cobra.Command {
cmd.AddCommand( cmd.AddCommand(
CollateralizeQueryCfgCmd(), CollateralizeQueryCfgCmd(),
CollateralizeQueryPriceCmd(), CollateralizeQueryPriceCmd(),
CollateralizeQueryUserBalanceCmd(),
) )
return cmd return cmd
} }
......
...@@ -314,6 +314,11 @@ func TestCollateralize(t *testing.T) { ...@@ -314,6 +314,11 @@ func TestCollateralize(t *testing.T) {
types.Encode(&pkt.ReqCollateralizeRecordByAddr{Addr: string(Nodes[1]), Status: 1})) types.Encode(&pkt.ReqCollateralizeRecordByAddr{Addr: string(Nodes[1]), Status: 1}))
assert.Nil(t, err) assert.Nil(t, err)
assert.NotNil(t, res) assert.NotNil(t, res)
// query collateralize user balance
res, err = exec.Query("CollateralizeUserBalance",
types.Encode(&pkt.ReqCollateralizeRecordByAddr{Addr: string(Nodes[1]), Status: 1}))
assert.Nil(t, err)
assert.Equal(t, int64(100), res.(*pkt.RepCollateralizeUserBalance).Balance)
// collateralize append // collateralize append
p5 := &pkt.CollateralizeAppendTx{ p5 := &pkt.CollateralizeAppendTx{
...@@ -406,6 +411,11 @@ func TestCollateralize(t *testing.T) { ...@@ -406,6 +411,11 @@ func TestCollateralize(t *testing.T) {
types.Encode(&pkt.ReqCollateralizeRecordByAddr{Addr: string(Nodes[1]), Status: 6})) types.Encode(&pkt.ReqCollateralizeRecordByAddr{Addr: string(Nodes[1]), Status: 6}))
assert.Nil(t, err) assert.Nil(t, err)
assert.NotNil(t, res) assert.NotNil(t, res)
// query collateralize user balance
res, err = exec.Query("CollateralizeUserBalance",
types.Encode(&pkt.ReqCollateralizeRecordByAddr{Addr: string(Nodes[1]), Status: 1}))
assert.Nil(t, err)
assert.Equal(t, int64(0), res.(*pkt.RepCollateralizeUserBalance).Balance)
// collateralize liquidate // collateralize liquidate
p7 := &pkt.CollateralizeBorrowTx{ p7 := &pkt.CollateralizeBorrowTx{
......
...@@ -21,7 +21,7 @@ import ( ...@@ -21,7 +21,7 @@ import (
const ( const (
ListDESC = int32(0) // list降序 ListDESC = int32(0) // list降序
ListASC = int32(1) // list升序 ListASC = int32(1) // list升序
DefultCount = int32(20) // 默认一次取多少条记录 DefaultCount = int32(20) // 默认一次取多少条记录
MaxCount = int32(100) // 最多取100条 MaxCount = int32(100) // 最多取100条
) )
...@@ -1172,7 +1172,7 @@ func queryCollateralizeByStatus(localdb dbm.KVDB, status int32, collID string) ( ...@@ -1172,7 +1172,7 @@ func queryCollateralizeByStatus(localdb dbm.KVDB, status int32, collID string) (
CollateralizeId: collID, CollateralizeId: collID,
Status: status, Status: status,
} }
rows, err := query.List("status", data, primary, DefultCount, ListDESC) rows, err := query.List("status", data, primary, DefaultCount, ListDESC)
if err != nil { if err != nil {
clog.Debug("queryCollateralizeByStatus.List", "error", err) clog.Debug("queryCollateralizeByStatus.List", "error", err)
return nil, err return nil, err
...@@ -1201,13 +1201,13 @@ func queryCollateralizeByAddr(localdb dbm.KVDB, addr string, status int32, collI ...@@ -1201,13 +1201,13 @@ func queryCollateralizeByAddr(localdb dbm.KVDB, addr string, status int32, collI
var rows []*table.Row var rows []*table.Row
var err error var err error
if status == 0 { if status == 0 {
rows, err = query.List("addr", data, primary, DefultCount, ListDESC) rows, err = query.List("addr", data, primary, DefaultCount, ListDESC)
if err != nil { if err != nil {
clog.Debug("queryCollateralizeByAddr.List", "index", "addr", "error", err) clog.Debug("queryCollateralizeByAddr.List", "index", "addr", "error", err)
return nil, err return nil, err
} }
} else { } else {
rows, err = query.List("addr_status", data, primary, DefultCount, ListDESC) rows, err = query.List("addr_status", data, primary, DefaultCount, ListDESC)
if err != nil { if err != nil {
clog.Debug("queryCollateralizeByAddr.List", "index", "addr_status", "error", err) clog.Debug("queryCollateralizeByAddr.List", "index", "addr_status", "error", err)
return nil, err return nil, err
...@@ -1260,19 +1260,19 @@ func queryCollateralizeRecordByAddr(db dbm.KV, localdb dbm.KVDB, addr string, st ...@@ -1260,19 +1260,19 @@ func queryCollateralizeRecordByAddr(db dbm.KV, localdb dbm.KVDB, addr string, st
var rows []*table.Row var rows []*table.Row
var err error var err error
if len(collID) != 0 { if len(collID) != 0 {
rows, err = query.List("id_addr", data, primary, DefultCount, ListDESC) rows, err = query.List("id_addr", data, primary, DefaultCount, ListDESC)
if err != nil { if err != nil {
clog.Debug("queryCollateralizeRecordByAddr.List", "index", "id_addr", "error", err) clog.Debug("queryCollateralizeRecordByAddr.List", "index", "id_addr", "error", err)
return nil, err return nil, err
} }
} else if status != 0 { } else if status != 0 {
rows, err = query.List("addr_status", data, primary, DefultCount, ListDESC) rows, err = query.List("addr_status", data, primary, DefaultCount, ListDESC)
if err != nil { if err != nil {
clog.Debug("queryCollateralizeRecordByAddr.List", "index", "addr_status", "error", err) clog.Debug("queryCollateralizeRecordByAddr.List", "index", "addr_status", "error", err)
return nil, err return nil, err
} }
} else { } else {
rows, err = query.List("addr", data, primary, DefultCount, ListDESC) rows, err = query.List("addr", data, primary, DefaultCount, ListDESC)
if err != nil { if err != nil {
clog.Debug("queryCollateralizeRecordByAddr.List", "index", "addr", "error", err) clog.Debug("queryCollateralizeRecordByAddr.List", "index", "addr", "error", err)
return nil, err return nil, err
...@@ -1307,13 +1307,13 @@ func queryCollateralizeRecordByStatus(db dbm.KV, localdb dbm.KVDB, status int32, ...@@ -1307,13 +1307,13 @@ func queryCollateralizeRecordByStatus(db dbm.KV, localdb dbm.KVDB, status int32,
var rows []*table.Row var rows []*table.Row
var err error var err error
if len(collID) == 0 { if len(collID) == 0 {
rows, err = query.List("status", data, primary, DefultCount, ListDESC) rows, err = query.List("status", data, primary, DefaultCount, ListDESC)
if err != nil { if err != nil {
clog.Debug("queryCollateralizeRecordByStatus.List", "index", "status", "error", err) clog.Debug("queryCollateralizeRecordByStatus.List", "index", "status", "error", err)
return nil, err return nil, err
} }
} else { } else {
rows, err = query.List("id_status", data, primary, DefultCount, ListDESC) rows, err = query.List("id_status", data, primary, DefaultCount, ListDESC)
if err != nil { if err != nil {
clog.Debug("queryCollateralizeRecordByStatus.List", "index", "id_status", "error", err) clog.Debug("queryCollateralizeRecordByStatus.List", "index", "id_status", "error", err)
return nil, err return nil, err
...@@ -1332,3 +1332,67 @@ func queryCollateralizeRecordByStatus(db dbm.KV, localdb dbm.KVDB, status int32, ...@@ -1332,3 +1332,67 @@ func queryCollateralizeRecordByStatus(db dbm.KV, localdb dbm.KVDB, status int32,
return records, nil return records, nil
} }
func queryCollateralizeUserBalanceStatus(db dbm.KV, localdb dbm.KVDB, addr string, status int32) (int64, error) {
var totalBalance int64
query := pty.NewRecordTable(localdb).GetQuery(localdb)
var primary []byte
var data = &pty.ReceiptCollateralize{
AccountAddr: addr,
Status: status,
}
var rows []*table.Row
var err error
for {
rows, err = query.List("addr_status", data, primary, DefaultCount, ListDESC)
if err != nil {
clog.Debug("queryCollateralizeRecordByAddr.List", "index", "addr", "error", err)
return -1, err
}
for _, row := range rows {
record, err := queryCollateralizeRecordByID(db, row.Data.(*pty.ReceiptCollateralize).CollateralizeId, row.Data.(*pty.ReceiptCollateralize).RecordId)
if err != nil {
clog.Debug("queryCollateralizeRecordByStatus.queryCollateralizeRecordByID", "error", err)
continue
}
totalBalance += record.DebtValue
}
if len(rows) < int(DefaultCount) {
break
}
primary = []byte(rows[DefaultCount-1].Data.(*pty.ReceiptCollateralize).RecordId)
}
return totalBalance,nil
}
func queryCollateralizeUserBalance(db dbm.KV, localdb dbm.KVDB, addr string) (int64, error) {
var totalBalance int64
balance, err := queryCollateralizeUserBalanceStatus(db, localdb, addr, pty.CollateralizeUserStatusCreate)
if err != nil {
clog.Error("queryCollateralizeUserBalance", "err", err)
} else {
totalBalance += balance
}
balance, err = queryCollateralizeUserBalanceStatus(db, localdb, addr, pty.CollateralizeUserStatusWarning)
if err != nil {
clog.Error("queryCollateralizeUserBalance", "err", err)
} else {
totalBalance += balance
}
balance, err = queryCollateralizeUserBalanceStatus(db, localdb, addr, pty.CollateralizeUserStatusExpire)
if err != nil {
clog.Error("queryCollateralizeUserBalance", "err", err)
} else {
totalBalance += balance
}
return totalBalance, nil
}
\ No newline at end of file
...@@ -167,3 +167,13 @@ func (c *Collateralize) Query_CollateralizePrice(req *pty.ReqCollateralizeRecord ...@@ -167,3 +167,13 @@ func (c *Collateralize) Query_CollateralizePrice(req *pty.ReqCollateralizeRecord
return &pty.RepCollateralizePrice{Price: price}, nil return &pty.RepCollateralizePrice{Price: price}, nil
} }
func (c *Collateralize) Query_CollateralizeUserBalance(req *pty.ReqCollateralizeRecordByAddr) (types.Message, error) {
balance, err := queryCollateralizeUserBalance(c.GetStateDB(), c.GetLocalDB(), req.Addr)
if err != nil {
clog.Error("Query_CollateralizeRecordByAddr", "get collateralize record error", err)
return nil, err
}
return &pty.RepCollateralizeUserBalance{Balance:balance}, nil
}
...@@ -215,3 +215,8 @@ message RepCollateralizeConfig { ...@@ -215,3 +215,8 @@ message RepCollateralizeConfig {
message RepCollateralizePrice { message RepCollateralizePrice {
int64 price = 1; //当前抵押物最新价格 int64 price = 1; //当前抵押物最新价格
} }
// 返回用户借贷总额
message RepCollateralizeUserBalance {
int64 balance = 1; //返回用户借贷总额
}
\ No newline at end of file
...@@ -5,9 +5,7 @@ package types ...@@ -5,9 +5,7 @@ package types
import ( import (
fmt "fmt" fmt "fmt"
proto "github.com/golang/protobuf/proto" proto "github.com/golang/protobuf/proto"
math "math" math "math"
) )
...@@ -20,7 +18,7 @@ var _ = math.Inf ...@@ -20,7 +18,7 @@ var _ = math.Inf
// is compatible with the proto package it is being compiled against. // is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the // A compilation error at this line likely means your copy of the
// proto package needs to be updated. // proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// 放贷信息 // 放贷信息
type Collateralize struct { type Collateralize struct {
...@@ -48,16 +46,17 @@ func (m *Collateralize) Reset() { *m = Collateralize{} } ...@@ -48,16 +46,17 @@ func (m *Collateralize) Reset() { *m = Collateralize{} }
func (m *Collateralize) String() string { return proto.CompactTextString(m) } func (m *Collateralize) String() string { return proto.CompactTextString(m) }
func (*Collateralize) ProtoMessage() {} func (*Collateralize) ProtoMessage() {}
func (*Collateralize) Descriptor() ([]byte, []int) { func (*Collateralize) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_20087f687fb00ba3, []int{0} return fileDescriptor_a988fb4a61381972, []int{0}
} }
func (m *Collateralize) XXX_Unmarshal(b []byte) error { func (m *Collateralize) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Collateralize.Unmarshal(m, b) return xxx_messageInfo_Collateralize.Unmarshal(m, b)
} }
func (m *Collateralize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *Collateralize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Collateralize.Marshal(b, m, deterministic) return xxx_messageInfo_Collateralize.Marshal(b, m, deterministic)
} }
func (dst *Collateralize) XXX_Merge(src proto.Message) { func (m *Collateralize) XXX_Merge(src proto.Message) {
xxx_messageInfo_Collateralize.Merge(dst, src) xxx_messageInfo_Collateralize.Merge(m, src)
} }
func (m *Collateralize) XXX_Size() int { func (m *Collateralize) XXX_Size() int {
return xxx_messageInfo_Collateralize.Size(m) return xxx_messageInfo_Collateralize.Size(m)
...@@ -196,16 +195,17 @@ func (m *BorrowRecord) Reset() { *m = BorrowRecord{} } ...@@ -196,16 +195,17 @@ func (m *BorrowRecord) Reset() { *m = BorrowRecord{} }
func (m *BorrowRecord) String() string { return proto.CompactTextString(m) } func (m *BorrowRecord) String() string { return proto.CompactTextString(m) }
func (*BorrowRecord) ProtoMessage() {} func (*BorrowRecord) ProtoMessage() {}
func (*BorrowRecord) Descriptor() ([]byte, []int) { func (*BorrowRecord) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_20087f687fb00ba3, []int{1} return fileDescriptor_a988fb4a61381972, []int{1}
} }
func (m *BorrowRecord) XXX_Unmarshal(b []byte) error { func (m *BorrowRecord) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BorrowRecord.Unmarshal(m, b) return xxx_messageInfo_BorrowRecord.Unmarshal(m, b)
} }
func (m *BorrowRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *BorrowRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BorrowRecord.Marshal(b, m, deterministic) return xxx_messageInfo_BorrowRecord.Marshal(b, m, deterministic)
} }
func (dst *BorrowRecord) XXX_Merge(src proto.Message) { func (m *BorrowRecord) XXX_Merge(src proto.Message) {
xxx_messageInfo_BorrowRecord.Merge(dst, src) xxx_messageInfo_BorrowRecord.Merge(m, src)
} }
func (m *BorrowRecord) XXX_Size() int { func (m *BorrowRecord) XXX_Size() int {
return xxx_messageInfo_BorrowRecord.Size(m) return xxx_messageInfo_BorrowRecord.Size(m)
...@@ -315,16 +315,17 @@ func (m *AssetPriceRecord) Reset() { *m = AssetPriceRecord{} } ...@@ -315,16 +315,17 @@ func (m *AssetPriceRecord) Reset() { *m = AssetPriceRecord{} }
func (m *AssetPriceRecord) String() string { return proto.CompactTextString(m) } func (m *AssetPriceRecord) String() string { return proto.CompactTextString(m) }
func (*AssetPriceRecord) ProtoMessage() {} func (*AssetPriceRecord) ProtoMessage() {}
func (*AssetPriceRecord) Descriptor() ([]byte, []int) { func (*AssetPriceRecord) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_20087f687fb00ba3, []int{2} return fileDescriptor_a988fb4a61381972, []int{2}
} }
func (m *AssetPriceRecord) XXX_Unmarshal(b []byte) error { func (m *AssetPriceRecord) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AssetPriceRecord.Unmarshal(m, b) return xxx_messageInfo_AssetPriceRecord.Unmarshal(m, b)
} }
func (m *AssetPriceRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *AssetPriceRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AssetPriceRecord.Marshal(b, m, deterministic) return xxx_messageInfo_AssetPriceRecord.Marshal(b, m, deterministic)
} }
func (dst *AssetPriceRecord) XXX_Merge(src proto.Message) { func (m *AssetPriceRecord) XXX_Merge(src proto.Message) {
xxx_messageInfo_AssetPriceRecord.Merge(dst, src) xxx_messageInfo_AssetPriceRecord.Merge(m, src)
} }
func (m *AssetPriceRecord) XXX_Size() int { func (m *AssetPriceRecord) XXX_Size() int {
return xxx_messageInfo_AssetPriceRecord.Size(m) return xxx_messageInfo_AssetPriceRecord.Size(m)
...@@ -384,16 +385,17 @@ func (m *CollateralizeAction) Reset() { *m = CollateralizeAction{} } ...@@ -384,16 +385,17 @@ func (m *CollateralizeAction) Reset() { *m = CollateralizeAction{} }
func (m *CollateralizeAction) String() string { return proto.CompactTextString(m) } func (m *CollateralizeAction) String() string { return proto.CompactTextString(m) }
func (*CollateralizeAction) ProtoMessage() {} func (*CollateralizeAction) ProtoMessage() {}
func (*CollateralizeAction) Descriptor() ([]byte, []int) { func (*CollateralizeAction) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_20087f687fb00ba3, []int{3} return fileDescriptor_a988fb4a61381972, []int{3}
} }
func (m *CollateralizeAction) XXX_Unmarshal(b []byte) error { func (m *CollateralizeAction) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CollateralizeAction.Unmarshal(m, b) return xxx_messageInfo_CollateralizeAction.Unmarshal(m, b)
} }
func (m *CollateralizeAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *CollateralizeAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CollateralizeAction.Marshal(b, m, deterministic) return xxx_messageInfo_CollateralizeAction.Marshal(b, m, deterministic)
} }
func (dst *CollateralizeAction) XXX_Merge(src proto.Message) { func (m *CollateralizeAction) XXX_Merge(src proto.Message) {
xxx_messageInfo_CollateralizeAction.Merge(dst, src) xxx_messageInfo_CollateralizeAction.Merge(m, src)
} }
func (m *CollateralizeAction) XXX_Size() int { func (m *CollateralizeAction) XXX_Size() int {
return xxx_messageInfo_CollateralizeAction.Size(m) return xxx_messageInfo_CollateralizeAction.Size(m)
...@@ -513,9 +515,9 @@ func (m *CollateralizeAction) GetTy() int32 { ...@@ -513,9 +515,9 @@ func (m *CollateralizeAction) GetTy() int32 {
return 0 return 0
} }
// XXX_OneofFuncs is for the internal use of the proto package. // XXX_OneofWrappers is for the internal use of the proto package.
func (*CollateralizeAction) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { func (*CollateralizeAction) XXX_OneofWrappers() []interface{} {
return _CollateralizeAction_OneofMarshaler, _CollateralizeAction_OneofUnmarshaler, _CollateralizeAction_OneofSizer, []interface{}{ return []interface{}{
(*CollateralizeAction_Create)(nil), (*CollateralizeAction_Create)(nil),
(*CollateralizeAction_Borrow)(nil), (*CollateralizeAction_Borrow)(nil),
(*CollateralizeAction_Repay)(nil), (*CollateralizeAction_Repay)(nil),
...@@ -526,162 +528,6 @@ func (*CollateralizeAction) XXX_OneofFuncs() (func(msg proto.Message, b *proto.B ...@@ -526,162 +528,6 @@ func (*CollateralizeAction) XXX_OneofFuncs() (func(msg proto.Message, b *proto.B
} }
} }
func _CollateralizeAction_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*CollateralizeAction)
// value
switch x := m.Value.(type) {
case *CollateralizeAction_Create:
b.EncodeVarint(1<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Create); err != nil {
return err
}
case *CollateralizeAction_Borrow:
b.EncodeVarint(2<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Borrow); err != nil {
return err
}
case *CollateralizeAction_Repay:
b.EncodeVarint(3<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Repay); err != nil {
return err
}
case *CollateralizeAction_Append:
b.EncodeVarint(4<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Append); err != nil {
return err
}
case *CollateralizeAction_Feed:
b.EncodeVarint(5<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Feed); err != nil {
return err
}
case *CollateralizeAction_Retrieve:
b.EncodeVarint(6<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Retrieve); err != nil {
return err
}
case *CollateralizeAction_Manage:
b.EncodeVarint(7<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Manage); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("CollateralizeAction.Value has unexpected type %T", x)
}
return nil
}
func _CollateralizeAction_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*CollateralizeAction)
switch tag {
case 1: // value.create
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(CollateralizeCreate)
err := b.DecodeMessage(msg)
m.Value = &CollateralizeAction_Create{msg}
return true, err
case 2: // value.borrow
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(CollateralizeBorrow)
err := b.DecodeMessage(msg)
m.Value = &CollateralizeAction_Borrow{msg}
return true, err
case 3: // value.repay
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(CollateralizeRepay)
err := b.DecodeMessage(msg)
m.Value = &CollateralizeAction_Repay{msg}
return true, err
case 4: // value.append
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(CollateralizeAppend)
err := b.DecodeMessage(msg)
m.Value = &CollateralizeAction_Append{msg}
return true, err
case 5: // value.feed
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(CollateralizeFeed)
err := b.DecodeMessage(msg)
m.Value = &CollateralizeAction_Feed{msg}
return true, err
case 6: // value.retrieve
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(CollateralizeRetrieve)
err := b.DecodeMessage(msg)
m.Value = &CollateralizeAction_Retrieve{msg}
return true, err
case 7: // value.manage
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(CollateralizeManage)
err := b.DecodeMessage(msg)
m.Value = &CollateralizeAction_Manage{msg}
return true, err
default:
return false, nil
}
}
func _CollateralizeAction_OneofSizer(msg proto.Message) (n int) {
m := msg.(*CollateralizeAction)
// value
switch x := m.Value.(type) {
case *CollateralizeAction_Create:
s := proto.Size(x.Create)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *CollateralizeAction_Borrow:
s := proto.Size(x.Borrow)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *CollateralizeAction_Repay:
s := proto.Size(x.Repay)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *CollateralizeAction_Append:
s := proto.Size(x.Append)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *CollateralizeAction_Feed:
s := proto.Size(x.Feed)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *CollateralizeAction_Retrieve:
s := proto.Size(x.Retrieve)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *CollateralizeAction_Manage:
s := proto.Size(x.Manage)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
type CollateralizeManage struct { type CollateralizeManage struct {
DebtCeiling int64 `protobuf:"varint,1,opt,name=debtCeiling,proto3" json:"debtCeiling,omitempty"` DebtCeiling int64 `protobuf:"varint,1,opt,name=debtCeiling,proto3" json:"debtCeiling,omitempty"`
LiquidationRatio int64 `protobuf:"varint,2,opt,name=liquidationRatio,proto3" json:"liquidationRatio,omitempty"` LiquidationRatio int64 `protobuf:"varint,2,opt,name=liquidationRatio,proto3" json:"liquidationRatio,omitempty"`
...@@ -698,16 +544,17 @@ func (m *CollateralizeManage) Reset() { *m = CollateralizeManage{} } ...@@ -698,16 +544,17 @@ func (m *CollateralizeManage) Reset() { *m = CollateralizeManage{} }
func (m *CollateralizeManage) String() string { return proto.CompactTextString(m) } func (m *CollateralizeManage) String() string { return proto.CompactTextString(m) }
func (*CollateralizeManage) ProtoMessage() {} func (*CollateralizeManage) ProtoMessage() {}
func (*CollateralizeManage) Descriptor() ([]byte, []int) { func (*CollateralizeManage) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_20087f687fb00ba3, []int{4} return fileDescriptor_a988fb4a61381972, []int{4}
} }
func (m *CollateralizeManage) XXX_Unmarshal(b []byte) error { func (m *CollateralizeManage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CollateralizeManage.Unmarshal(m, b) return xxx_messageInfo_CollateralizeManage.Unmarshal(m, b)
} }
func (m *CollateralizeManage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *CollateralizeManage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CollateralizeManage.Marshal(b, m, deterministic) return xxx_messageInfo_CollateralizeManage.Marshal(b, m, deterministic)
} }
func (dst *CollateralizeManage) XXX_Merge(src proto.Message) { func (m *CollateralizeManage) XXX_Merge(src proto.Message) {
xxx_messageInfo_CollateralizeManage.Merge(dst, src) xxx_messageInfo_CollateralizeManage.Merge(m, src)
} }
func (m *CollateralizeManage) XXX_Size() int { func (m *CollateralizeManage) XXX_Size() int {
return xxx_messageInfo_CollateralizeManage.Size(m) return xxx_messageInfo_CollateralizeManage.Size(m)
...@@ -771,16 +618,17 @@ func (m *CollateralizeAddr) Reset() { *m = CollateralizeAddr{} } ...@@ -771,16 +618,17 @@ func (m *CollateralizeAddr) Reset() { *m = CollateralizeAddr{} }
func (m *CollateralizeAddr) String() string { return proto.CompactTextString(m) } func (m *CollateralizeAddr) String() string { return proto.CompactTextString(m) }
func (*CollateralizeAddr) ProtoMessage() {} func (*CollateralizeAddr) ProtoMessage() {}
func (*CollateralizeAddr) Descriptor() ([]byte, []int) { func (*CollateralizeAddr) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_20087f687fb00ba3, []int{5} return fileDescriptor_a988fb4a61381972, []int{5}
} }
func (m *CollateralizeAddr) XXX_Unmarshal(b []byte) error { func (m *CollateralizeAddr) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CollateralizeAddr.Unmarshal(m, b) return xxx_messageInfo_CollateralizeAddr.Unmarshal(m, b)
} }
func (m *CollateralizeAddr) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *CollateralizeAddr) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CollateralizeAddr.Marshal(b, m, deterministic) return xxx_messageInfo_CollateralizeAddr.Marshal(b, m, deterministic)
} }
func (dst *CollateralizeAddr) XXX_Merge(src proto.Message) { func (m *CollateralizeAddr) XXX_Merge(src proto.Message) {
xxx_messageInfo_CollateralizeAddr.Merge(dst, src) xxx_messageInfo_CollateralizeAddr.Merge(m, src)
} }
func (m *CollateralizeAddr) XXX_Size() int { func (m *CollateralizeAddr) XXX_Size() int {
return xxx_messageInfo_CollateralizeAddr.Size(m) return xxx_messageInfo_CollateralizeAddr.Size(m)
...@@ -810,16 +658,17 @@ func (m *CollateralizeCreate) Reset() { *m = CollateralizeCreate{} } ...@@ -810,16 +658,17 @@ func (m *CollateralizeCreate) Reset() { *m = CollateralizeCreate{} }
func (m *CollateralizeCreate) String() string { return proto.CompactTextString(m) } func (m *CollateralizeCreate) String() string { return proto.CompactTextString(m) }
func (*CollateralizeCreate) ProtoMessage() {} func (*CollateralizeCreate) ProtoMessage() {}
func (*CollateralizeCreate) Descriptor() ([]byte, []int) { func (*CollateralizeCreate) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_20087f687fb00ba3, []int{6} return fileDescriptor_a988fb4a61381972, []int{6}
} }
func (m *CollateralizeCreate) XXX_Unmarshal(b []byte) error { func (m *CollateralizeCreate) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CollateralizeCreate.Unmarshal(m, b) return xxx_messageInfo_CollateralizeCreate.Unmarshal(m, b)
} }
func (m *CollateralizeCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *CollateralizeCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CollateralizeCreate.Marshal(b, m, deterministic) return xxx_messageInfo_CollateralizeCreate.Marshal(b, m, deterministic)
} }
func (dst *CollateralizeCreate) XXX_Merge(src proto.Message) { func (m *CollateralizeCreate) XXX_Merge(src proto.Message) {
xxx_messageInfo_CollateralizeCreate.Merge(dst, src) xxx_messageInfo_CollateralizeCreate.Merge(m, src)
} }
func (m *CollateralizeCreate) XXX_Size() int { func (m *CollateralizeCreate) XXX_Size() int {
return xxx_messageInfo_CollateralizeCreate.Size(m) return xxx_messageInfo_CollateralizeCreate.Size(m)
...@@ -850,16 +699,17 @@ func (m *CollateralizeBorrow) Reset() { *m = CollateralizeBorrow{} } ...@@ -850,16 +699,17 @@ func (m *CollateralizeBorrow) Reset() { *m = CollateralizeBorrow{} }
func (m *CollateralizeBorrow) String() string { return proto.CompactTextString(m) } func (m *CollateralizeBorrow) String() string { return proto.CompactTextString(m) }
func (*CollateralizeBorrow) ProtoMessage() {} func (*CollateralizeBorrow) ProtoMessage() {}
func (*CollateralizeBorrow) Descriptor() ([]byte, []int) { func (*CollateralizeBorrow) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_20087f687fb00ba3, []int{7} return fileDescriptor_a988fb4a61381972, []int{7}
} }
func (m *CollateralizeBorrow) XXX_Unmarshal(b []byte) error { func (m *CollateralizeBorrow) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CollateralizeBorrow.Unmarshal(m, b) return xxx_messageInfo_CollateralizeBorrow.Unmarshal(m, b)
} }
func (m *CollateralizeBorrow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *CollateralizeBorrow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CollateralizeBorrow.Marshal(b, m, deterministic) return xxx_messageInfo_CollateralizeBorrow.Marshal(b, m, deterministic)
} }
func (dst *CollateralizeBorrow) XXX_Merge(src proto.Message) { func (m *CollateralizeBorrow) XXX_Merge(src proto.Message) {
xxx_messageInfo_CollateralizeBorrow.Merge(dst, src) xxx_messageInfo_CollateralizeBorrow.Merge(m, src)
} }
func (m *CollateralizeBorrow) XXX_Size() int { func (m *CollateralizeBorrow) XXX_Size() int {
return xxx_messageInfo_CollateralizeBorrow.Size(m) return xxx_messageInfo_CollateralizeBorrow.Size(m)
...@@ -897,16 +747,17 @@ func (m *CollateralizeRepay) Reset() { *m = CollateralizeRepay{} } ...@@ -897,16 +747,17 @@ func (m *CollateralizeRepay) Reset() { *m = CollateralizeRepay{} }
func (m *CollateralizeRepay) String() string { return proto.CompactTextString(m) } func (m *CollateralizeRepay) String() string { return proto.CompactTextString(m) }
func (*CollateralizeRepay) ProtoMessage() {} func (*CollateralizeRepay) ProtoMessage() {}
func (*CollateralizeRepay) Descriptor() ([]byte, []int) { func (*CollateralizeRepay) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_20087f687fb00ba3, []int{8} return fileDescriptor_a988fb4a61381972, []int{8}
} }
func (m *CollateralizeRepay) XXX_Unmarshal(b []byte) error { func (m *CollateralizeRepay) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CollateralizeRepay.Unmarshal(m, b) return xxx_messageInfo_CollateralizeRepay.Unmarshal(m, b)
} }
func (m *CollateralizeRepay) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *CollateralizeRepay) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CollateralizeRepay.Marshal(b, m, deterministic) return xxx_messageInfo_CollateralizeRepay.Marshal(b, m, deterministic)
} }
func (dst *CollateralizeRepay) XXX_Merge(src proto.Message) { func (m *CollateralizeRepay) XXX_Merge(src proto.Message) {
xxx_messageInfo_CollateralizeRepay.Merge(dst, src) xxx_messageInfo_CollateralizeRepay.Merge(m, src)
} }
func (m *CollateralizeRepay) XXX_Size() int { func (m *CollateralizeRepay) XXX_Size() int {
return xxx_messageInfo_CollateralizeRepay.Size(m) return xxx_messageInfo_CollateralizeRepay.Size(m)
...@@ -945,16 +796,17 @@ func (m *CollateralizeAppend) Reset() { *m = CollateralizeAppend{} } ...@@ -945,16 +796,17 @@ func (m *CollateralizeAppend) Reset() { *m = CollateralizeAppend{} }
func (m *CollateralizeAppend) String() string { return proto.CompactTextString(m) } func (m *CollateralizeAppend) String() string { return proto.CompactTextString(m) }
func (*CollateralizeAppend) ProtoMessage() {} func (*CollateralizeAppend) ProtoMessage() {}
func (*CollateralizeAppend) Descriptor() ([]byte, []int) { func (*CollateralizeAppend) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_20087f687fb00ba3, []int{9} return fileDescriptor_a988fb4a61381972, []int{9}
} }
func (m *CollateralizeAppend) XXX_Unmarshal(b []byte) error { func (m *CollateralizeAppend) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CollateralizeAppend.Unmarshal(m, b) return xxx_messageInfo_CollateralizeAppend.Unmarshal(m, b)
} }
func (m *CollateralizeAppend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *CollateralizeAppend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CollateralizeAppend.Marshal(b, m, deterministic) return xxx_messageInfo_CollateralizeAppend.Marshal(b, m, deterministic)
} }
func (dst *CollateralizeAppend) XXX_Merge(src proto.Message) { func (m *CollateralizeAppend) XXX_Merge(src proto.Message) {
xxx_messageInfo_CollateralizeAppend.Merge(dst, src) xxx_messageInfo_CollateralizeAppend.Merge(m, src)
} }
func (m *CollateralizeAppend) XXX_Size() int { func (m *CollateralizeAppend) XXX_Size() int {
return xxx_messageInfo_CollateralizeAppend.Size(m) return xxx_messageInfo_CollateralizeAppend.Size(m)
...@@ -1000,16 +852,17 @@ func (m *CollateralizeFeed) Reset() { *m = CollateralizeFeed{} } ...@@ -1000,16 +852,17 @@ func (m *CollateralizeFeed) Reset() { *m = CollateralizeFeed{} }
func (m *CollateralizeFeed) String() string { return proto.CompactTextString(m) } func (m *CollateralizeFeed) String() string { return proto.CompactTextString(m) }
func (*CollateralizeFeed) ProtoMessage() {} func (*CollateralizeFeed) ProtoMessage() {}
func (*CollateralizeFeed) Descriptor() ([]byte, []int) { func (*CollateralizeFeed) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_20087f687fb00ba3, []int{10} return fileDescriptor_a988fb4a61381972, []int{10}
} }
func (m *CollateralizeFeed) XXX_Unmarshal(b []byte) error { func (m *CollateralizeFeed) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CollateralizeFeed.Unmarshal(m, b) return xxx_messageInfo_CollateralizeFeed.Unmarshal(m, b)
} }
func (m *CollateralizeFeed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *CollateralizeFeed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CollateralizeFeed.Marshal(b, m, deterministic) return xxx_messageInfo_CollateralizeFeed.Marshal(b, m, deterministic)
} }
func (dst *CollateralizeFeed) XXX_Merge(src proto.Message) { func (m *CollateralizeFeed) XXX_Merge(src proto.Message) {
xxx_messageInfo_CollateralizeFeed.Merge(dst, src) xxx_messageInfo_CollateralizeFeed.Merge(m, src)
} }
func (m *CollateralizeFeed) XXX_Size() int { func (m *CollateralizeFeed) XXX_Size() int {
return xxx_messageInfo_CollateralizeFeed.Size(m) return xxx_messageInfo_CollateralizeFeed.Size(m)
...@@ -1054,16 +907,17 @@ func (m *CollateralizeRetrieve) Reset() { *m = CollateralizeRetrieve{} } ...@@ -1054,16 +907,17 @@ func (m *CollateralizeRetrieve) Reset() { *m = CollateralizeRetrieve{} }
func (m *CollateralizeRetrieve) String() string { return proto.CompactTextString(m) } func (m *CollateralizeRetrieve) String() string { return proto.CompactTextString(m) }
func (*CollateralizeRetrieve) ProtoMessage() {} func (*CollateralizeRetrieve) ProtoMessage() {}
func (*CollateralizeRetrieve) Descriptor() ([]byte, []int) { func (*CollateralizeRetrieve) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_20087f687fb00ba3, []int{11} return fileDescriptor_a988fb4a61381972, []int{11}
} }
func (m *CollateralizeRetrieve) XXX_Unmarshal(b []byte) error { func (m *CollateralizeRetrieve) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CollateralizeRetrieve.Unmarshal(m, b) return xxx_messageInfo_CollateralizeRetrieve.Unmarshal(m, b)
} }
func (m *CollateralizeRetrieve) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *CollateralizeRetrieve) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CollateralizeRetrieve.Marshal(b, m, deterministic) return xxx_messageInfo_CollateralizeRetrieve.Marshal(b, m, deterministic)
} }
func (dst *CollateralizeRetrieve) XXX_Merge(src proto.Message) { func (m *CollateralizeRetrieve) XXX_Merge(src proto.Message) {
xxx_messageInfo_CollateralizeRetrieve.Merge(dst, src) xxx_messageInfo_CollateralizeRetrieve.Merge(m, src)
} }
func (m *CollateralizeRetrieve) XXX_Size() int { func (m *CollateralizeRetrieve) XXX_Size() int {
return xxx_messageInfo_CollateralizeRetrieve.Size(m) return xxx_messageInfo_CollateralizeRetrieve.Size(m)
...@@ -1103,16 +957,17 @@ func (m *ReceiptCollateralize) Reset() { *m = ReceiptCollateralize{} } ...@@ -1103,16 +957,17 @@ func (m *ReceiptCollateralize) Reset() { *m = ReceiptCollateralize{} }
func (m *ReceiptCollateralize) String() string { return proto.CompactTextString(m) } func (m *ReceiptCollateralize) String() string { return proto.CompactTextString(m) }
func (*ReceiptCollateralize) ProtoMessage() {} func (*ReceiptCollateralize) ProtoMessage() {}
func (*ReceiptCollateralize) Descriptor() ([]byte, []int) { func (*ReceiptCollateralize) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_20087f687fb00ba3, []int{12} return fileDescriptor_a988fb4a61381972, []int{12}
} }
func (m *ReceiptCollateralize) XXX_Unmarshal(b []byte) error { func (m *ReceiptCollateralize) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReceiptCollateralize.Unmarshal(m, b) return xxx_messageInfo_ReceiptCollateralize.Unmarshal(m, b)
} }
func (m *ReceiptCollateralize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ReceiptCollateralize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReceiptCollateralize.Marshal(b, m, deterministic) return xxx_messageInfo_ReceiptCollateralize.Marshal(b, m, deterministic)
} }
func (dst *ReceiptCollateralize) XXX_Merge(src proto.Message) { func (m *ReceiptCollateralize) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReceiptCollateralize.Merge(dst, src) xxx_messageInfo_ReceiptCollateralize.Merge(m, src)
} }
func (m *ReceiptCollateralize) XXX_Size() int { func (m *ReceiptCollateralize) XXX_Size() int {
return xxx_messageInfo_ReceiptCollateralize.Size(m) return xxx_messageInfo_ReceiptCollateralize.Size(m)
...@@ -1163,16 +1018,17 @@ func (m *CollateralizeRecords) Reset() { *m = CollateralizeRecords{} } ...@@ -1163,16 +1018,17 @@ func (m *CollateralizeRecords) Reset() { *m = CollateralizeRecords{} }
func (m *CollateralizeRecords) String() string { return proto.CompactTextString(m) } func (m *CollateralizeRecords) String() string { return proto.CompactTextString(m) }
func (*CollateralizeRecords) ProtoMessage() {} func (*CollateralizeRecords) ProtoMessage() {}
func (*CollateralizeRecords) Descriptor() ([]byte, []int) { func (*CollateralizeRecords) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_20087f687fb00ba3, []int{13} return fileDescriptor_a988fb4a61381972, []int{13}
} }
func (m *CollateralizeRecords) XXX_Unmarshal(b []byte) error { func (m *CollateralizeRecords) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CollateralizeRecords.Unmarshal(m, b) return xxx_messageInfo_CollateralizeRecords.Unmarshal(m, b)
} }
func (m *CollateralizeRecords) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *CollateralizeRecords) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CollateralizeRecords.Marshal(b, m, deterministic) return xxx_messageInfo_CollateralizeRecords.Marshal(b, m, deterministic)
} }
func (dst *CollateralizeRecords) XXX_Merge(src proto.Message) { func (m *CollateralizeRecords) XXX_Merge(src proto.Message) {
xxx_messageInfo_CollateralizeRecords.Merge(dst, src) xxx_messageInfo_CollateralizeRecords.Merge(m, src)
} }
func (m *CollateralizeRecords) XXX_Size() int { func (m *CollateralizeRecords) XXX_Size() int {
return xxx_messageInfo_CollateralizeRecords.Size(m) return xxx_messageInfo_CollateralizeRecords.Size(m)
...@@ -1202,16 +1058,17 @@ func (m *ReqCollateralizeInfo) Reset() { *m = ReqCollateralizeInfo{} } ...@@ -1202,16 +1058,17 @@ func (m *ReqCollateralizeInfo) Reset() { *m = ReqCollateralizeInfo{} }
func (m *ReqCollateralizeInfo) String() string { return proto.CompactTextString(m) } func (m *ReqCollateralizeInfo) String() string { return proto.CompactTextString(m) }
func (*ReqCollateralizeInfo) ProtoMessage() {} func (*ReqCollateralizeInfo) ProtoMessage() {}
func (*ReqCollateralizeInfo) Descriptor() ([]byte, []int) { func (*ReqCollateralizeInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_20087f687fb00ba3, []int{14} return fileDescriptor_a988fb4a61381972, []int{14}
} }
func (m *ReqCollateralizeInfo) XXX_Unmarshal(b []byte) error { func (m *ReqCollateralizeInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqCollateralizeInfo.Unmarshal(m, b) return xxx_messageInfo_ReqCollateralizeInfo.Unmarshal(m, b)
} }
func (m *ReqCollateralizeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ReqCollateralizeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqCollateralizeInfo.Marshal(b, m, deterministic) return xxx_messageInfo_ReqCollateralizeInfo.Marshal(b, m, deterministic)
} }
func (dst *ReqCollateralizeInfo) XXX_Merge(src proto.Message) { func (m *ReqCollateralizeInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqCollateralizeInfo.Merge(dst, src) xxx_messageInfo_ReqCollateralizeInfo.Merge(m, src)
} }
func (m *ReqCollateralizeInfo) XXX_Size() int { func (m *ReqCollateralizeInfo) XXX_Size() int {
return xxx_messageInfo_ReqCollateralizeInfo.Size(m) return xxx_messageInfo_ReqCollateralizeInfo.Size(m)
...@@ -1251,16 +1108,17 @@ func (m *RepCollateralizeCurrentInfo) Reset() { *m = RepCollateralizeCur ...@@ -1251,16 +1108,17 @@ func (m *RepCollateralizeCurrentInfo) Reset() { *m = RepCollateralizeCur
func (m *RepCollateralizeCurrentInfo) String() string { return proto.CompactTextString(m) } func (m *RepCollateralizeCurrentInfo) String() string { return proto.CompactTextString(m) }
func (*RepCollateralizeCurrentInfo) ProtoMessage() {} func (*RepCollateralizeCurrentInfo) ProtoMessage() {}
func (*RepCollateralizeCurrentInfo) Descriptor() ([]byte, []int) { func (*RepCollateralizeCurrentInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_20087f687fb00ba3, []int{15} return fileDescriptor_a988fb4a61381972, []int{15}
} }
func (m *RepCollateralizeCurrentInfo) XXX_Unmarshal(b []byte) error { func (m *RepCollateralizeCurrentInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RepCollateralizeCurrentInfo.Unmarshal(m, b) return xxx_messageInfo_RepCollateralizeCurrentInfo.Unmarshal(m, b)
} }
func (m *RepCollateralizeCurrentInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *RepCollateralizeCurrentInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RepCollateralizeCurrentInfo.Marshal(b, m, deterministic) return xxx_messageInfo_RepCollateralizeCurrentInfo.Marshal(b, m, deterministic)
} }
func (dst *RepCollateralizeCurrentInfo) XXX_Merge(src proto.Message) { func (m *RepCollateralizeCurrentInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_RepCollateralizeCurrentInfo.Merge(dst, src) xxx_messageInfo_RepCollateralizeCurrentInfo.Merge(m, src)
} }
func (m *RepCollateralizeCurrentInfo) XXX_Size() int { func (m *RepCollateralizeCurrentInfo) XXX_Size() int {
return xxx_messageInfo_RepCollateralizeCurrentInfo.Size(m) return xxx_messageInfo_RepCollateralizeCurrentInfo.Size(m)
...@@ -1360,16 +1218,17 @@ func (m *ReqCollateralizeInfos) Reset() { *m = ReqCollateralizeInfos{} } ...@@ -1360,16 +1218,17 @@ func (m *ReqCollateralizeInfos) Reset() { *m = ReqCollateralizeInfos{} }
func (m *ReqCollateralizeInfos) String() string { return proto.CompactTextString(m) } func (m *ReqCollateralizeInfos) String() string { return proto.CompactTextString(m) }
func (*ReqCollateralizeInfos) ProtoMessage() {} func (*ReqCollateralizeInfos) ProtoMessage() {}
func (*ReqCollateralizeInfos) Descriptor() ([]byte, []int) { func (*ReqCollateralizeInfos) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_20087f687fb00ba3, []int{16} return fileDescriptor_a988fb4a61381972, []int{16}
} }
func (m *ReqCollateralizeInfos) XXX_Unmarshal(b []byte) error { func (m *ReqCollateralizeInfos) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqCollateralizeInfos.Unmarshal(m, b) return xxx_messageInfo_ReqCollateralizeInfos.Unmarshal(m, b)
} }
func (m *ReqCollateralizeInfos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ReqCollateralizeInfos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqCollateralizeInfos.Marshal(b, m, deterministic) return xxx_messageInfo_ReqCollateralizeInfos.Marshal(b, m, deterministic)
} }
func (dst *ReqCollateralizeInfos) XXX_Merge(src proto.Message) { func (m *ReqCollateralizeInfos) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqCollateralizeInfos.Merge(dst, src) xxx_messageInfo_ReqCollateralizeInfos.Merge(m, src)
} }
func (m *ReqCollateralizeInfos) XXX_Size() int { func (m *ReqCollateralizeInfos) XXX_Size() int {
return xxx_messageInfo_ReqCollateralizeInfos.Size(m) return xxx_messageInfo_ReqCollateralizeInfos.Size(m)
...@@ -1399,16 +1258,17 @@ func (m *RepCollateralizeCurrentInfos) Reset() { *m = RepCollateralizeCu ...@@ -1399,16 +1258,17 @@ func (m *RepCollateralizeCurrentInfos) Reset() { *m = RepCollateralizeCu
func (m *RepCollateralizeCurrentInfos) String() string { return proto.CompactTextString(m) } func (m *RepCollateralizeCurrentInfos) String() string { return proto.CompactTextString(m) }
func (*RepCollateralizeCurrentInfos) ProtoMessage() {} func (*RepCollateralizeCurrentInfos) ProtoMessage() {}
func (*RepCollateralizeCurrentInfos) Descriptor() ([]byte, []int) { func (*RepCollateralizeCurrentInfos) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_20087f687fb00ba3, []int{17} return fileDescriptor_a988fb4a61381972, []int{17}
} }
func (m *RepCollateralizeCurrentInfos) XXX_Unmarshal(b []byte) error { func (m *RepCollateralizeCurrentInfos) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RepCollateralizeCurrentInfos.Unmarshal(m, b) return xxx_messageInfo_RepCollateralizeCurrentInfos.Unmarshal(m, b)
} }
func (m *RepCollateralizeCurrentInfos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *RepCollateralizeCurrentInfos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RepCollateralizeCurrentInfos.Marshal(b, m, deterministic) return xxx_messageInfo_RepCollateralizeCurrentInfos.Marshal(b, m, deterministic)
} }
func (dst *RepCollateralizeCurrentInfos) XXX_Merge(src proto.Message) { func (m *RepCollateralizeCurrentInfos) XXX_Merge(src proto.Message) {
xxx_messageInfo_RepCollateralizeCurrentInfos.Merge(dst, src) xxx_messageInfo_RepCollateralizeCurrentInfos.Merge(m, src)
} }
func (m *RepCollateralizeCurrentInfos) XXX_Size() int { func (m *RepCollateralizeCurrentInfos) XXX_Size() int {
return xxx_messageInfo_RepCollateralizeCurrentInfos.Size(m) return xxx_messageInfo_RepCollateralizeCurrentInfos.Size(m)
...@@ -1439,16 +1299,17 @@ func (m *ReqCollateralizeByStatus) Reset() { *m = ReqCollateralizeByStat ...@@ -1439,16 +1299,17 @@ func (m *ReqCollateralizeByStatus) Reset() { *m = ReqCollateralizeByStat
func (m *ReqCollateralizeByStatus) String() string { return proto.CompactTextString(m) } func (m *ReqCollateralizeByStatus) String() string { return proto.CompactTextString(m) }
func (*ReqCollateralizeByStatus) ProtoMessage() {} func (*ReqCollateralizeByStatus) ProtoMessage() {}
func (*ReqCollateralizeByStatus) Descriptor() ([]byte, []int) { func (*ReqCollateralizeByStatus) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_20087f687fb00ba3, []int{18} return fileDescriptor_a988fb4a61381972, []int{18}
} }
func (m *ReqCollateralizeByStatus) XXX_Unmarshal(b []byte) error { func (m *ReqCollateralizeByStatus) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqCollateralizeByStatus.Unmarshal(m, b) return xxx_messageInfo_ReqCollateralizeByStatus.Unmarshal(m, b)
} }
func (m *ReqCollateralizeByStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ReqCollateralizeByStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqCollateralizeByStatus.Marshal(b, m, deterministic) return xxx_messageInfo_ReqCollateralizeByStatus.Marshal(b, m, deterministic)
} }
func (dst *ReqCollateralizeByStatus) XXX_Merge(src proto.Message) { func (m *ReqCollateralizeByStatus) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqCollateralizeByStatus.Merge(dst, src) xxx_messageInfo_ReqCollateralizeByStatus.Merge(m, src)
} }
func (m *ReqCollateralizeByStatus) XXX_Size() int { func (m *ReqCollateralizeByStatus) XXX_Size() int {
return xxx_messageInfo_ReqCollateralizeByStatus.Size(m) return xxx_messageInfo_ReqCollateralizeByStatus.Size(m)
...@@ -1487,16 +1348,17 @@ func (m *ReqCollateralizeByAddr) Reset() { *m = ReqCollateralizeByAddr{} ...@@ -1487,16 +1348,17 @@ func (m *ReqCollateralizeByAddr) Reset() { *m = ReqCollateralizeByAddr{}
func (m *ReqCollateralizeByAddr) String() string { return proto.CompactTextString(m) } func (m *ReqCollateralizeByAddr) String() string { return proto.CompactTextString(m) }
func (*ReqCollateralizeByAddr) ProtoMessage() {} func (*ReqCollateralizeByAddr) ProtoMessage() {}
func (*ReqCollateralizeByAddr) Descriptor() ([]byte, []int) { func (*ReqCollateralizeByAddr) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_20087f687fb00ba3, []int{19} return fileDescriptor_a988fb4a61381972, []int{19}
} }
func (m *ReqCollateralizeByAddr) XXX_Unmarshal(b []byte) error { func (m *ReqCollateralizeByAddr) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqCollateralizeByAddr.Unmarshal(m, b) return xxx_messageInfo_ReqCollateralizeByAddr.Unmarshal(m, b)
} }
func (m *ReqCollateralizeByAddr) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ReqCollateralizeByAddr) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqCollateralizeByAddr.Marshal(b, m, deterministic) return xxx_messageInfo_ReqCollateralizeByAddr.Marshal(b, m, deterministic)
} }
func (dst *ReqCollateralizeByAddr) XXX_Merge(src proto.Message) { func (m *ReqCollateralizeByAddr) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqCollateralizeByAddr.Merge(dst, src) xxx_messageInfo_ReqCollateralizeByAddr.Merge(m, src)
} }
func (m *ReqCollateralizeByAddr) XXX_Size() int { func (m *ReqCollateralizeByAddr) XXX_Size() int {
return xxx_messageInfo_ReqCollateralizeByAddr.Size(m) return xxx_messageInfo_ReqCollateralizeByAddr.Size(m)
...@@ -1540,16 +1402,17 @@ func (m *RepCollateralizeIDs) Reset() { *m = RepCollateralizeIDs{} } ...@@ -1540,16 +1402,17 @@ func (m *RepCollateralizeIDs) Reset() { *m = RepCollateralizeIDs{} }
func (m *RepCollateralizeIDs) String() string { return proto.CompactTextString(m) } func (m *RepCollateralizeIDs) String() string { return proto.CompactTextString(m) }
func (*RepCollateralizeIDs) ProtoMessage() {} func (*RepCollateralizeIDs) ProtoMessage() {}
func (*RepCollateralizeIDs) Descriptor() ([]byte, []int) { func (*RepCollateralizeIDs) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_20087f687fb00ba3, []int{20} return fileDescriptor_a988fb4a61381972, []int{20}
} }
func (m *RepCollateralizeIDs) XXX_Unmarshal(b []byte) error { func (m *RepCollateralizeIDs) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RepCollateralizeIDs.Unmarshal(m, b) return xxx_messageInfo_RepCollateralizeIDs.Unmarshal(m, b)
} }
func (m *RepCollateralizeIDs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *RepCollateralizeIDs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RepCollateralizeIDs.Marshal(b, m, deterministic) return xxx_messageInfo_RepCollateralizeIDs.Marshal(b, m, deterministic)
} }
func (dst *RepCollateralizeIDs) XXX_Merge(src proto.Message) { func (m *RepCollateralizeIDs) XXX_Merge(src proto.Message) {
xxx_messageInfo_RepCollateralizeIDs.Merge(dst, src) xxx_messageInfo_RepCollateralizeIDs.Merge(m, src)
} }
func (m *RepCollateralizeIDs) XXX_Size() int { func (m *RepCollateralizeIDs) XXX_Size() int {
return xxx_messageInfo_RepCollateralizeIDs.Size(m) return xxx_messageInfo_RepCollateralizeIDs.Size(m)
...@@ -1582,16 +1445,17 @@ func (m *ReqCollateralizeRecordByAddr) Reset() { *m = ReqCollateralizeRe ...@@ -1582,16 +1445,17 @@ func (m *ReqCollateralizeRecordByAddr) Reset() { *m = ReqCollateralizeRe
func (m *ReqCollateralizeRecordByAddr) String() string { return proto.CompactTextString(m) } func (m *ReqCollateralizeRecordByAddr) String() string { return proto.CompactTextString(m) }
func (*ReqCollateralizeRecordByAddr) ProtoMessage() {} func (*ReqCollateralizeRecordByAddr) ProtoMessage() {}
func (*ReqCollateralizeRecordByAddr) Descriptor() ([]byte, []int) { func (*ReqCollateralizeRecordByAddr) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_20087f687fb00ba3, []int{21} return fileDescriptor_a988fb4a61381972, []int{21}
} }
func (m *ReqCollateralizeRecordByAddr) XXX_Unmarshal(b []byte) error { func (m *ReqCollateralizeRecordByAddr) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqCollateralizeRecordByAddr.Unmarshal(m, b) return xxx_messageInfo_ReqCollateralizeRecordByAddr.Unmarshal(m, b)
} }
func (m *ReqCollateralizeRecordByAddr) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ReqCollateralizeRecordByAddr) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqCollateralizeRecordByAddr.Marshal(b, m, deterministic) return xxx_messageInfo_ReqCollateralizeRecordByAddr.Marshal(b, m, deterministic)
} }
func (dst *ReqCollateralizeRecordByAddr) XXX_Merge(src proto.Message) { func (m *ReqCollateralizeRecordByAddr) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqCollateralizeRecordByAddr.Merge(dst, src) xxx_messageInfo_ReqCollateralizeRecordByAddr.Merge(m, src)
} }
func (m *ReqCollateralizeRecordByAddr) XXX_Size() int { func (m *ReqCollateralizeRecordByAddr) XXX_Size() int {
return xxx_messageInfo_ReqCollateralizeRecordByAddr.Size(m) return xxx_messageInfo_ReqCollateralizeRecordByAddr.Size(m)
...@@ -1644,16 +1508,17 @@ func (m *ReqCollateralizeRecordByStatus) Reset() { *m = ReqCollateralize ...@@ -1644,16 +1508,17 @@ func (m *ReqCollateralizeRecordByStatus) Reset() { *m = ReqCollateralize
func (m *ReqCollateralizeRecordByStatus) String() string { return proto.CompactTextString(m) } func (m *ReqCollateralizeRecordByStatus) String() string { return proto.CompactTextString(m) }
func (*ReqCollateralizeRecordByStatus) ProtoMessage() {} func (*ReqCollateralizeRecordByStatus) ProtoMessage() {}
func (*ReqCollateralizeRecordByStatus) Descriptor() ([]byte, []int) { func (*ReqCollateralizeRecordByStatus) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_20087f687fb00ba3, []int{22} return fileDescriptor_a988fb4a61381972, []int{22}
} }
func (m *ReqCollateralizeRecordByStatus) XXX_Unmarshal(b []byte) error { func (m *ReqCollateralizeRecordByStatus) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqCollateralizeRecordByStatus.Unmarshal(m, b) return xxx_messageInfo_ReqCollateralizeRecordByStatus.Unmarshal(m, b)
} }
func (m *ReqCollateralizeRecordByStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ReqCollateralizeRecordByStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqCollateralizeRecordByStatus.Marshal(b, m, deterministic) return xxx_messageInfo_ReqCollateralizeRecordByStatus.Marshal(b, m, deterministic)
} }
func (dst *ReqCollateralizeRecordByStatus) XXX_Merge(src proto.Message) { func (m *ReqCollateralizeRecordByStatus) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqCollateralizeRecordByStatus.Merge(dst, src) xxx_messageInfo_ReqCollateralizeRecordByStatus.Merge(m, src)
} }
func (m *ReqCollateralizeRecordByStatus) XXX_Size() int { func (m *ReqCollateralizeRecordByStatus) XXX_Size() int {
return xxx_messageInfo_ReqCollateralizeRecordByStatus.Size(m) return xxx_messageInfo_ReqCollateralizeRecordByStatus.Size(m)
...@@ -1697,16 +1562,17 @@ func (m *RepCollateralizeRecords) Reset() { *m = RepCollateralizeRecords ...@@ -1697,16 +1562,17 @@ func (m *RepCollateralizeRecords) Reset() { *m = RepCollateralizeRecords
func (m *RepCollateralizeRecords) String() string { return proto.CompactTextString(m) } func (m *RepCollateralizeRecords) String() string { return proto.CompactTextString(m) }
func (*RepCollateralizeRecords) ProtoMessage() {} func (*RepCollateralizeRecords) ProtoMessage() {}
func (*RepCollateralizeRecords) Descriptor() ([]byte, []int) { func (*RepCollateralizeRecords) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_20087f687fb00ba3, []int{23} return fileDescriptor_a988fb4a61381972, []int{23}
} }
func (m *RepCollateralizeRecords) XXX_Unmarshal(b []byte) error { func (m *RepCollateralizeRecords) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RepCollateralizeRecords.Unmarshal(m, b) return xxx_messageInfo_RepCollateralizeRecords.Unmarshal(m, b)
} }
func (m *RepCollateralizeRecords) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *RepCollateralizeRecords) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RepCollateralizeRecords.Marshal(b, m, deterministic) return xxx_messageInfo_RepCollateralizeRecords.Marshal(b, m, deterministic)
} }
func (dst *RepCollateralizeRecords) XXX_Merge(src proto.Message) { func (m *RepCollateralizeRecords) XXX_Merge(src proto.Message) {
xxx_messageInfo_RepCollateralizeRecords.Merge(dst, src) xxx_messageInfo_RepCollateralizeRecords.Merge(m, src)
} }
func (m *RepCollateralizeRecords) XXX_Size() int { func (m *RepCollateralizeRecords) XXX_Size() int {
return xxx_messageInfo_RepCollateralizeRecords.Size(m) return xxx_messageInfo_RepCollateralizeRecords.Size(m)
...@@ -1737,16 +1603,17 @@ func (m *ReqCollateralizeRecord) Reset() { *m = ReqCollateralizeRecord{} ...@@ -1737,16 +1603,17 @@ func (m *ReqCollateralizeRecord) Reset() { *m = ReqCollateralizeRecord{}
func (m *ReqCollateralizeRecord) String() string { return proto.CompactTextString(m) } func (m *ReqCollateralizeRecord) String() string { return proto.CompactTextString(m) }
func (*ReqCollateralizeRecord) ProtoMessage() {} func (*ReqCollateralizeRecord) ProtoMessage() {}
func (*ReqCollateralizeRecord) Descriptor() ([]byte, []int) { func (*ReqCollateralizeRecord) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_20087f687fb00ba3, []int{24} return fileDescriptor_a988fb4a61381972, []int{24}
} }
func (m *ReqCollateralizeRecord) XXX_Unmarshal(b []byte) error { func (m *ReqCollateralizeRecord) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqCollateralizeRecord.Unmarshal(m, b) return xxx_messageInfo_ReqCollateralizeRecord.Unmarshal(m, b)
} }
func (m *ReqCollateralizeRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ReqCollateralizeRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqCollateralizeRecord.Marshal(b, m, deterministic) return xxx_messageInfo_ReqCollateralizeRecord.Marshal(b, m, deterministic)
} }
func (dst *ReqCollateralizeRecord) XXX_Merge(src proto.Message) { func (m *ReqCollateralizeRecord) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqCollateralizeRecord.Merge(dst, src) xxx_messageInfo_ReqCollateralizeRecord.Merge(m, src)
} }
func (m *ReqCollateralizeRecord) XXX_Size() int { func (m *ReqCollateralizeRecord) XXX_Size() int {
return xxx_messageInfo_ReqCollateralizeRecord.Size(m) return xxx_messageInfo_ReqCollateralizeRecord.Size(m)
...@@ -1783,16 +1650,17 @@ func (m *RepCollateralizeRecord) Reset() { *m = RepCollateralizeRecord{} ...@@ -1783,16 +1650,17 @@ func (m *RepCollateralizeRecord) Reset() { *m = RepCollateralizeRecord{}
func (m *RepCollateralizeRecord) String() string { return proto.CompactTextString(m) } func (m *RepCollateralizeRecord) String() string { return proto.CompactTextString(m) }
func (*RepCollateralizeRecord) ProtoMessage() {} func (*RepCollateralizeRecord) ProtoMessage() {}
func (*RepCollateralizeRecord) Descriptor() ([]byte, []int) { func (*RepCollateralizeRecord) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_20087f687fb00ba3, []int{25} return fileDescriptor_a988fb4a61381972, []int{25}
} }
func (m *RepCollateralizeRecord) XXX_Unmarshal(b []byte) error { func (m *RepCollateralizeRecord) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RepCollateralizeRecord.Unmarshal(m, b) return xxx_messageInfo_RepCollateralizeRecord.Unmarshal(m, b)
} }
func (m *RepCollateralizeRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *RepCollateralizeRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RepCollateralizeRecord.Marshal(b, m, deterministic) return xxx_messageInfo_RepCollateralizeRecord.Marshal(b, m, deterministic)
} }
func (dst *RepCollateralizeRecord) XXX_Merge(src proto.Message) { func (m *RepCollateralizeRecord) XXX_Merge(src proto.Message) {
xxx_messageInfo_RepCollateralizeRecord.Merge(dst, src) xxx_messageInfo_RepCollateralizeRecord.Merge(m, src)
} }
func (m *RepCollateralizeRecord) XXX_Size() int { func (m *RepCollateralizeRecord) XXX_Size() int {
return xxx_messageInfo_RepCollateralizeRecord.Size(m) return xxx_messageInfo_RepCollateralizeRecord.Size(m)
...@@ -1828,16 +1696,17 @@ func (m *RepCollateralizeConfig) Reset() { *m = RepCollateralizeConfig{} ...@@ -1828,16 +1696,17 @@ func (m *RepCollateralizeConfig) Reset() { *m = RepCollateralizeConfig{}
func (m *RepCollateralizeConfig) String() string { return proto.CompactTextString(m) } func (m *RepCollateralizeConfig) String() string { return proto.CompactTextString(m) }
func (*RepCollateralizeConfig) ProtoMessage() {} func (*RepCollateralizeConfig) ProtoMessage() {}
func (*RepCollateralizeConfig) Descriptor() ([]byte, []int) { func (*RepCollateralizeConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_20087f687fb00ba3, []int{26} return fileDescriptor_a988fb4a61381972, []int{26}
} }
func (m *RepCollateralizeConfig) XXX_Unmarshal(b []byte) error { func (m *RepCollateralizeConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RepCollateralizeConfig.Unmarshal(m, b) return xxx_messageInfo_RepCollateralizeConfig.Unmarshal(m, b)
} }
func (m *RepCollateralizeConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *RepCollateralizeConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RepCollateralizeConfig.Marshal(b, m, deterministic) return xxx_messageInfo_RepCollateralizeConfig.Marshal(b, m, deterministic)
} }
func (dst *RepCollateralizeConfig) XXX_Merge(src proto.Message) { func (m *RepCollateralizeConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_RepCollateralizeConfig.Merge(dst, src) xxx_messageInfo_RepCollateralizeConfig.Merge(m, src)
} }
func (m *RepCollateralizeConfig) XXX_Size() int { func (m *RepCollateralizeConfig) XXX_Size() int {
return xxx_messageInfo_RepCollateralizeConfig.Size(m) return xxx_messageInfo_RepCollateralizeConfig.Size(m)
...@@ -1909,16 +1778,17 @@ func (m *RepCollateralizePrice) Reset() { *m = RepCollateralizePrice{} } ...@@ -1909,16 +1778,17 @@ func (m *RepCollateralizePrice) Reset() { *m = RepCollateralizePrice{} }
func (m *RepCollateralizePrice) String() string { return proto.CompactTextString(m) } func (m *RepCollateralizePrice) String() string { return proto.CompactTextString(m) }
func (*RepCollateralizePrice) ProtoMessage() {} func (*RepCollateralizePrice) ProtoMessage() {}
func (*RepCollateralizePrice) Descriptor() ([]byte, []int) { func (*RepCollateralizePrice) Descriptor() ([]byte, []int) {
return fileDescriptor_collateralize_20087f687fb00ba3, []int{27} return fileDescriptor_a988fb4a61381972, []int{27}
} }
func (m *RepCollateralizePrice) XXX_Unmarshal(b []byte) error { func (m *RepCollateralizePrice) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RepCollateralizePrice.Unmarshal(m, b) return xxx_messageInfo_RepCollateralizePrice.Unmarshal(m, b)
} }
func (m *RepCollateralizePrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *RepCollateralizePrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RepCollateralizePrice.Marshal(b, m, deterministic) return xxx_messageInfo_RepCollateralizePrice.Marshal(b, m, deterministic)
} }
func (dst *RepCollateralizePrice) XXX_Merge(src proto.Message) { func (m *RepCollateralizePrice) XXX_Merge(src proto.Message) {
xxx_messageInfo_RepCollateralizePrice.Merge(dst, src) xxx_messageInfo_RepCollateralizePrice.Merge(m, src)
} }
func (m *RepCollateralizePrice) XXX_Size() int { func (m *RepCollateralizePrice) XXX_Size() int {
return xxx_messageInfo_RepCollateralizePrice.Size(m) return xxx_messageInfo_RepCollateralizePrice.Size(m)
...@@ -1936,6 +1806,46 @@ func (m *RepCollateralizePrice) GetPrice() int64 { ...@@ -1936,6 +1806,46 @@ func (m *RepCollateralizePrice) GetPrice() int64 {
return 0 return 0
} }
// 返回用户借贷总量
type RepCollateralizeUserBalance struct {
Balance int64 `protobuf:"varint,1,opt,name=balance,proto3" json:"balance,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RepCollateralizeUserBalance) Reset() { *m = RepCollateralizeUserBalance{} }
func (m *RepCollateralizeUserBalance) String() string { return proto.CompactTextString(m) }
func (*RepCollateralizeUserBalance) ProtoMessage() {}
func (*RepCollateralizeUserBalance) Descriptor() ([]byte, []int) {
return fileDescriptor_a988fb4a61381972, []int{28}
}
func (m *RepCollateralizeUserBalance) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RepCollateralizeUserBalance.Unmarshal(m, b)
}
func (m *RepCollateralizeUserBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RepCollateralizeUserBalance.Marshal(b, m, deterministic)
}
func (m *RepCollateralizeUserBalance) XXX_Merge(src proto.Message) {
xxx_messageInfo_RepCollateralizeUserBalance.Merge(m, src)
}
func (m *RepCollateralizeUserBalance) XXX_Size() int {
return xxx_messageInfo_RepCollateralizeUserBalance.Size(m)
}
func (m *RepCollateralizeUserBalance) XXX_DiscardUnknown() {
xxx_messageInfo_RepCollateralizeUserBalance.DiscardUnknown(m)
}
var xxx_messageInfo_RepCollateralizeUserBalance proto.InternalMessageInfo
func (m *RepCollateralizeUserBalance) GetBalance() int64 {
if m != nil {
return m.Balance
}
return 0
}
func init() { func init() {
proto.RegisterType((*Collateralize)(nil), "types.Collateralize") proto.RegisterType((*Collateralize)(nil), "types.Collateralize")
proto.RegisterType((*BorrowRecord)(nil), "types.BorrowRecord") proto.RegisterType((*BorrowRecord)(nil), "types.BorrowRecord")
...@@ -1965,85 +1875,87 @@ func init() { ...@@ -1965,85 +1875,87 @@ func init() {
proto.RegisterType((*RepCollateralizeRecord)(nil), "types.RepCollateralizeRecord") proto.RegisterType((*RepCollateralizeRecord)(nil), "types.RepCollateralizeRecord")
proto.RegisterType((*RepCollateralizeConfig)(nil), "types.RepCollateralizeConfig") proto.RegisterType((*RepCollateralizeConfig)(nil), "types.RepCollateralizeConfig")
proto.RegisterType((*RepCollateralizePrice)(nil), "types.RepCollateralizePrice") proto.RegisterType((*RepCollateralizePrice)(nil), "types.RepCollateralizePrice")
} proto.RegisterType((*RepCollateralizeUserBalance)(nil), "types.RepCollateralizeUserBalance")
}
func init() { proto.RegisterFile("collateralize.proto", fileDescriptor_collateralize_20087f687fb00ba3) }
func init() { proto.RegisterFile("collateralize.proto", fileDescriptor_a988fb4a61381972) }
var fileDescriptor_collateralize_20087f687fb00ba3 = []byte{
// 1197 bytes of a gzipped FileDescriptorProto var fileDescriptor_a988fb4a61381972 = []byte{
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x58, 0x4d, 0x6f, 0xe4, 0x44, // 1208 bytes of a gzipped FileDescriptorProto
0x13, 0x8e, 0xc7, 0xf3, 0x91, 0xa9, 0x49, 0xb2, 0xd9, 0x4e, 0x36, 0xaf, 0xdf, 0xdd, 0x28, 0x1a, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x58, 0x5b, 0x6f, 0xdc, 0x44,
0xb5, 0x90, 0x88, 0x80, 0x8d, 0x44, 0x16, 0x10, 0x0b, 0x17, 0x92, 0xc9, 0xae, 0x32, 0x88, 0x95, 0x14, 0x8e, 0xd7, 0x7b, 0xc9, 0x9e, 0x4d, 0xd2, 0x74, 0x92, 0x06, 0xd3, 0x46, 0xd1, 0x6a, 0x84,
0x90, 0x59, 0x10, 0xe2, 0x4b, 0xf2, 0xd8, 0x9d, 0x60, 0xc9, 0x19, 0x3b, 0x76, 0x4f, 0x60, 0x38, 0x44, 0x04, 0x34, 0x12, 0x29,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0x7f, 0xeb, 0xd4, 0xe3, 0x9c, 0xc4, 0xb3, 0xf3, 0xf0, 0xe2, 0x7f, 0x3b, 0xac, 0x55, 0x3a,
0x03, 0xff, 0x57, 0x52, 0xcc, 0x00, 0x48, 0x03, 0x2e, 0x66, 0x7d, 0xf9, 0x97, 0x93, 0x47, 0x7f, 0x60, 0x5f, 0xef, 0x80, 0xc6, 0x18, 0x37, 0xa8, 0x8f, 0x71, 0xf7, 0x45, 0x13, 0xd2, 0xd5, 0xc0,
0x07, 0x00, 0x00, 0xff, 0xff, 0x4f, 0x5a, 0x9f, 0x55, 0x50, 0x11, 0x00, 0x00, 0xff, 0x95, 0x14, 0x33, 0x00, 0xca, 0x80, 0x0b, 0xfa, 0x7e, 0xfd, 0x8d, 0x79, 0x96, 0xb1, 0xb4,
0x81, 0x89, 0xa5, 0x31, 0x99, 0xf6, 0xe5, 0x9f, 0x5c, 0x1e, 0xfc, 0x1b, 0x00, 0x00, 0xff, 0xff,
0x0c, 0xfe, 0xe3, 0xa0, 0x89, 0x11, 0x00, 0x00,
} }
...@@ -291,6 +291,38 @@ func IssuanceQueryPrice(cmd *cobra.Command, args []string) { ...@@ -291,6 +291,38 @@ func IssuanceQueryPrice(cmd *cobra.Command, args []string) {
ctx.Run() ctx.Run()
} }
func IssuanceQueryUserBalanceCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "balance",
Short: "Query user balance",
Run: IssuanceQueryUserBalance,
}
addIssuanceQueryBalanceFlags(cmd)
return cmd
}
func addIssuanceQueryBalanceFlags(cmd *cobra.Command) {
cmd.Flags().StringP("address", "a", "", "address")
cmd.MarkFlagRequired("address")
}
func IssuanceQueryUserBalance(cmd *cobra.Command, args []string) {
rpcLaddr, _ := cmd.Flags().GetString("rpc_laddr")
addr, _ := cmd.Flags().GetString("address")
var params rpctypes.Query4Jrpc
params.Execer = pkt.IssuanceX
params.FuncName = "IssuanceUserBalance"
req := &pkt.ReqIssuanceRecords{
Addr: addr,
}
params.Payload = types.MustPBToJSON(req)
var res pkt.RepIssuanceUserBalance
ctx := jsonrpc.NewRPCCtx(rpcLaddr, "Chain33.Query", params, &res)
ctx.Run()
}
// IssuanceQueryCmd 查询命令行 // IssuanceQueryCmd 查询命令行
func IssuanceQueryCmd() *cobra.Command { func IssuanceQueryCmd() *cobra.Command {
cmd := &cobra.Command{ cmd := &cobra.Command{
...@@ -301,6 +333,7 @@ func IssuanceQueryCmd() *cobra.Command { ...@@ -301,6 +333,7 @@ func IssuanceQueryCmd() *cobra.Command {
addIssuanceQueryFlags(cmd) addIssuanceQueryFlags(cmd)
cmd.AddCommand( cmd.AddCommand(
IssuacneQueryPriceCmd(), IssuacneQueryPriceCmd(),
IssuanceQueryUserBalanceCmd(),
) )
return cmd return cmd
} }
...@@ -319,21 +352,11 @@ func IssuanceQuery(cmd *cobra.Command, args []string) { ...@@ -319,21 +352,11 @@ func IssuanceQuery(cmd *cobra.Command, args []string) {
issuanceID, _ := cmd.Flags().GetString("issuanceID") issuanceID, _ := cmd.Flags().GetString("issuanceID")
address, _ := cmd.Flags().GetString("address") address, _ := cmd.Flags().GetString("address")
statusStr, _ := cmd.Flags().GetString("status") statusStr, _ := cmd.Flags().GetString("status")
// indexstr, _ := cmd.Flags().GetString("index")
issuanceIDs, _ := cmd.Flags().GetString("issuanceIDs") issuanceIDs, _ := cmd.Flags().GetString("issuanceIDs")
debtID, _ := cmd.Flags().GetString("debtID") debtID, _ := cmd.Flags().GetString("debtID")
var params rpctypes.Query4Jrpc var params rpctypes.Query4Jrpc
params.Execer = pkt.IssuanceX params.Execer = pkt.IssuanceX
//if indexstr != "" {
// index, err := strconv.ParseInt(indexstr, 10, 64)
// if err != nil {
// fmt.Println(err)
// cmd.Help()
// return
// }
// req.Index = index
//}
var status int64 var status int64
var err error var err error
......
...@@ -291,6 +291,11 @@ func TestIssuance(t *testing.T) { ...@@ -291,6 +291,11 @@ func TestIssuance(t *testing.T) {
types.Encode(&pkt.ReqIssuanceRecords{Addr: string(Nodes[1]), Status: 1})) types.Encode(&pkt.ReqIssuanceRecords{Addr: string(Nodes[1]), Status: 1}))
assert.Nil(t, err) assert.Nil(t, err)
assert.NotNil(t, res) assert.NotNil(t, res)
// query issuance user balance
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)
// issuance repay // issuance repay
p5 := &pkt.IssuanceRepayTx{ p5 := &pkt.IssuanceRepayTx{
...@@ -336,6 +341,11 @@ func TestIssuance(t *testing.T) { ...@@ -336,6 +341,11 @@ func TestIssuance(t *testing.T) {
types.Encode(&pkt.ReqIssuanceRecords{Addr: string(Nodes[1]), Status: 6})) types.Encode(&pkt.ReqIssuanceRecords{Addr: string(Nodes[1]), Status: 6}))
assert.Nil(t, err) assert.Nil(t, err)
assert.NotNil(t, res) assert.NotNil(t, res)
// query issuance user balance
res, err = exec.Query("IssuanceUserBalance",
types.Encode(&pkt.ReqIssuanceRecords{Addr: string(Nodes[1]), Status: 1}))
assert.Nil(t, err)
assert.Equal(t, int64(0), res.(*pkt.RepIssuanceUserBalance).Balance)
// issuance liquidate // issuance liquidate
p6 := &pkt.IssuanceDebtTx{ p6 := &pkt.IssuanceDebtTx{
......
...@@ -19,7 +19,7 @@ import ( ...@@ -19,7 +19,7 @@ import (
const ( const (
ListDESC = int32(0) // list降序 ListDESC = int32(0) // list降序
ListASC = int32(1) // list升序 ListASC = int32(1) // list升序
DefultCount = int32(20) // 默认一次取多少条记录 DefaultCount = int32(20) // 默认一次取多少条记录
MaxCount = int32(100) // 最多取100条 MaxCount = int32(100) // 最多取100条
) )
...@@ -973,7 +973,7 @@ func queryIssuanceByStatus(localdb dbm.KVDB, status int32, issuanceID string) ([ ...@@ -973,7 +973,7 @@ func queryIssuanceByStatus(localdb dbm.KVDB, status int32, issuanceID string) ([
IssuanceId: issuanceID, IssuanceId: issuanceID,
Status: status, Status: status,
} }
rows, err := query.List("status", data, primary, DefultCount, ListDESC) rows, err := query.List("status", data, primary, DefaultCount, ListDESC)
if err != nil { if err != nil {
clog.Error("queryIssuanceByStatus.List", "error", err) clog.Error("queryIssuanceByStatus.List", "error", err)
return nil, err return nil, err
...@@ -1021,7 +1021,7 @@ func queryIssuanceRecordsByStatus(db dbm.KV, localdb dbm.KVDB, status int32, deb ...@@ -1021,7 +1021,7 @@ func queryIssuanceRecordsByStatus(db dbm.KV, localdb dbm.KVDB, status int32, deb
var data = &pty.ReceiptIssuance{ var data = &pty.ReceiptIssuance{
Status: status, Status: status,
} }
rows, err := query.List("status", data, primary, DefultCount, ListDESC) rows, err := query.List("status", data, primary, DefaultCount, ListDESC)
if err != nil { if err != nil {
clog.Error("queryIssuanceRecordsByStatus.List", "index", "status", "error", err) clog.Error("queryIssuanceRecordsByStatus.List", "index", "status", "error", err)
return nil, err return nil, err
...@@ -1056,13 +1056,13 @@ func queryIssuanceRecordByAddr(db dbm.KV, localdb dbm.KVDB, addr string, status ...@@ -1056,13 +1056,13 @@ func queryIssuanceRecordByAddr(db dbm.KV, localdb dbm.KVDB, addr string, status
var rows []*table.Row var rows []*table.Row
var err error var err error
if status == 0 { if status == 0 {
rows, err = query.List("addr", data, primary, DefultCount, ListDESC) rows, err = query.List("addr", data, primary, DefaultCount, ListDESC)
if err != nil { if err != nil {
clog.Error("queryIssuanceRecordByAddr.List", "index", "addr", "error", err) clog.Error("queryIssuanceRecordByAddr.List", "index", "addr", "error", err)
return nil, err return nil, err
} }
} else { } else {
rows, err = query.List("addr_status", data, primary, DefultCount, ListDESC) rows, err = query.List("addr_status", data, primary, DefaultCount, ListDESC)
if err != nil { if err != nil {
clog.Error("queryIssuanceRecordByAddr.List", "index", "addr_status", "error", err) clog.Error("queryIssuanceRecordByAddr.List", "index", "addr_status", "error", err)
return nil, err return nil, err
...@@ -1081,3 +1081,67 @@ func queryIssuanceRecordByAddr(db dbm.KV, localdb dbm.KVDB, addr string, status ...@@ -1081,3 +1081,67 @@ func queryIssuanceRecordByAddr(db dbm.KV, localdb dbm.KVDB, addr string, status
return records, nil return records, nil
} }
func queryIssuanceUserBalanceStatus(db dbm.KV, localdb dbm.KVDB, addr string, status int32) (int64, error) {
var totalBalance int64
query := pty.NewRecordTable(localdb).GetQuery(localdb)
var primary []byte
var data = &pty.ReceiptIssuance{
AccountAddr: addr,
Status: status,
}
var rows []*table.Row
var err error
for {
rows, err = query.List("addr_status", data, primary, DefaultCount, ListDESC)
if err != nil {
clog.Debug("queryIssuanceRecordByAddr.List", "index", "addr", "error", err)
return -1, err
}
for _, row := range rows {
record, err := queryIssuanceRecordByID(db, row.Data.(*pty.ReceiptIssuance).IssuanceId, row.Data.(*pty.ReceiptIssuance).DebtId)
if err != nil {
clog.Debug("queryIssuanceRecordByStatus.queryIssuanceRecordByID", "error", err)
continue
}
totalBalance += record.DebtValue
}
if len(rows) < int(DefaultCount) {
break
}
primary = []byte(rows[DefaultCount-1].Data.(*pty.ReceiptIssuance).DebtId)
}
return totalBalance,nil
}
func queryIssuanceUserBalance(db dbm.KV, localdb dbm.KVDB, addr string) (int64, error) {
var totalBalance int64
balance, err := queryIssuanceUserBalanceStatus(db, localdb, addr, pty.IssuanceUserStatusCreate)
if err != nil {
clog.Error("queryIssuanceUserBalance", "err", err)
} else {
totalBalance += balance
}
balance, err = queryIssuanceUserBalanceStatus(db, localdb, addr, pty.IssuanceUserStatusWarning)
if err != nil {
clog.Error("queryIssuanceUserBalance", "err", err)
} else {
totalBalance += balance
}
balance, err = queryIssuanceUserBalanceStatus(db, localdb, addr, pty.IssuanceUserStatusExpire)
if err != nil {
clog.Error("queryIssuanceUserBalance", "err", err)
} else {
totalBalance += balance
}
return totalBalance, nil
}
\ No newline at end of file
...@@ -116,9 +116,19 @@ func (c *Issuance) Query_IssuanceRecordsByStatus(req *pty.ReqIssuanceRecords) (t ...@@ -116,9 +116,19 @@ func (c *Issuance) Query_IssuanceRecordsByStatus(req *pty.ReqIssuanceRecords) (t
func (c *Issuance) Query_IssuancePrice(req *pty.ReqIssuanceRecords) (types.Message, error) { func (c *Issuance) Query_IssuancePrice(req *pty.ReqIssuanceRecords) (types.Message, error) {
price, err := getLatestPrice(c.GetStateDB()) price, err := getLatestPrice(c.GetStateDB())
if err != nil { if err != nil {
clog.Error("Query_CollateralizePrice", "error", err) clog.Error("Query_IssuancePrice", "error", err)
return nil, err return nil, err
} }
return &pty.RepIssuancePrice{Price: price}, nil return &pty.RepIssuancePrice{Price: price}, nil
} }
func (c *Issuance) Query_IssuanceUserBalance(req *pty.ReqIssuanceRecords) (types.Message, error) {
balance, err := queryIssuanceUserBalance(c.GetStateDB(), c.GetLocalDB(), req.Addr)
if err != nil {
clog.Error("Query_IssuanceRecordByAddr", "get issuance record error", err)
return nil, err
}
return &pty.RepIssuanceUserBalance{Balance:balance}, nil
}
\ No newline at end of file
...@@ -173,3 +173,8 @@ message RepIssuanceDebtInfo { ...@@ -173,3 +173,8 @@ message RepIssuanceDebtInfo {
message RepIssuancePrice { message RepIssuancePrice {
int64 price = 1; //当前抵押物最新价格 int64 price = 1; //当前抵押物最新价格
} }
// 返回用户发行总额
message RepIssuanceUserBalance {
int64 balance = 1; //返回用户发行总额
}
\ No newline at end of file
...@@ -5,9 +5,7 @@ package types ...@@ -5,9 +5,7 @@ package types
import ( import (
fmt "fmt" fmt "fmt"
proto "github.com/golang/protobuf/proto" proto "github.com/golang/protobuf/proto"
math "math" math "math"
) )
...@@ -20,7 +18,7 @@ var _ = math.Inf ...@@ -20,7 +18,7 @@ var _ = math.Inf
// is compatible with the proto package it is being compiled against. // is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the // A compilation error at this line likely means your copy of the
// proto package needs to be updated. // proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// 发行信息 // 发行信息
type Issuance struct { type Issuance struct {
...@@ -48,16 +46,17 @@ func (m *Issuance) Reset() { *m = Issuance{} } ...@@ -48,16 +46,17 @@ func (m *Issuance) Reset() { *m = Issuance{} }
func (m *Issuance) String() string { return proto.CompactTextString(m) } func (m *Issuance) String() string { return proto.CompactTextString(m) }
func (*Issuance) ProtoMessage() {} func (*Issuance) ProtoMessage() {}
func (*Issuance) Descriptor() ([]byte, []int) { func (*Issuance) Descriptor() ([]byte, []int) {
return fileDescriptor_issuance_e0dc6f257f1d6c63, []int{0} return fileDescriptor_7110f4228953d675, []int{0}
} }
func (m *Issuance) XXX_Unmarshal(b []byte) error { func (m *Issuance) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Issuance.Unmarshal(m, b) return xxx_messageInfo_Issuance.Unmarshal(m, b)
} }
func (m *Issuance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *Issuance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Issuance.Marshal(b, m, deterministic) return xxx_messageInfo_Issuance.Marshal(b, m, deterministic)
} }
func (dst *Issuance) XXX_Merge(src proto.Message) { func (m *Issuance) XXX_Merge(src proto.Message) {
xxx_messageInfo_Issuance.Merge(dst, src) xxx_messageInfo_Issuance.Merge(m, src)
} }
func (m *Issuance) XXX_Size() int { func (m *Issuance) XXX_Size() int {
return xxx_messageInfo_Issuance.Size(m) return xxx_messageInfo_Issuance.Size(m)
...@@ -196,16 +195,17 @@ func (m *DebtRecord) Reset() { *m = DebtRecord{} } ...@@ -196,16 +195,17 @@ func (m *DebtRecord) Reset() { *m = DebtRecord{} }
func (m *DebtRecord) String() string { return proto.CompactTextString(m) } func (m *DebtRecord) String() string { return proto.CompactTextString(m) }
func (*DebtRecord) ProtoMessage() {} func (*DebtRecord) ProtoMessage() {}
func (*DebtRecord) Descriptor() ([]byte, []int) { func (*DebtRecord) Descriptor() ([]byte, []int) {
return fileDescriptor_issuance_e0dc6f257f1d6c63, []int{1} return fileDescriptor_7110f4228953d675, []int{1}
} }
func (m *DebtRecord) XXX_Unmarshal(b []byte) error { func (m *DebtRecord) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DebtRecord.Unmarshal(m, b) return xxx_messageInfo_DebtRecord.Unmarshal(m, b)
} }
func (m *DebtRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *DebtRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DebtRecord.Marshal(b, m, deterministic) return xxx_messageInfo_DebtRecord.Marshal(b, m, deterministic)
} }
func (dst *DebtRecord) XXX_Merge(src proto.Message) { func (m *DebtRecord) XXX_Merge(src proto.Message) {
xxx_messageInfo_DebtRecord.Merge(dst, src) xxx_messageInfo_DebtRecord.Merge(m, src)
} }
func (m *DebtRecord) XXX_Size() int { func (m *DebtRecord) XXX_Size() int {
return xxx_messageInfo_DebtRecord.Size(m) return xxx_messageInfo_DebtRecord.Size(m)
...@@ -313,16 +313,17 @@ func (m *IssuanceAssetPriceRecord) Reset() { *m = IssuanceAssetPriceReco ...@@ -313,16 +313,17 @@ func (m *IssuanceAssetPriceRecord) Reset() { *m = IssuanceAssetPriceReco
func (m *IssuanceAssetPriceRecord) String() string { return proto.CompactTextString(m) } func (m *IssuanceAssetPriceRecord) String() string { return proto.CompactTextString(m) }
func (*IssuanceAssetPriceRecord) ProtoMessage() {} func (*IssuanceAssetPriceRecord) ProtoMessage() {}
func (*IssuanceAssetPriceRecord) Descriptor() ([]byte, []int) { func (*IssuanceAssetPriceRecord) Descriptor() ([]byte, []int) {
return fileDescriptor_issuance_e0dc6f257f1d6c63, []int{2} return fileDescriptor_7110f4228953d675, []int{2}
} }
func (m *IssuanceAssetPriceRecord) XXX_Unmarshal(b []byte) error { func (m *IssuanceAssetPriceRecord) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_IssuanceAssetPriceRecord.Unmarshal(m, b) return xxx_messageInfo_IssuanceAssetPriceRecord.Unmarshal(m, b)
} }
func (m *IssuanceAssetPriceRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *IssuanceAssetPriceRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_IssuanceAssetPriceRecord.Marshal(b, m, deterministic) return xxx_messageInfo_IssuanceAssetPriceRecord.Marshal(b, m, deterministic)
} }
func (dst *IssuanceAssetPriceRecord) XXX_Merge(src proto.Message) { func (m *IssuanceAssetPriceRecord) XXX_Merge(src proto.Message) {
xxx_messageInfo_IssuanceAssetPriceRecord.Merge(dst, src) xxx_messageInfo_IssuanceAssetPriceRecord.Merge(m, src)
} }
func (m *IssuanceAssetPriceRecord) XXX_Size() int { func (m *IssuanceAssetPriceRecord) XXX_Size() int {
return xxx_messageInfo_IssuanceAssetPriceRecord.Size(m) return xxx_messageInfo_IssuanceAssetPriceRecord.Size(m)
...@@ -367,16 +368,17 @@ func (m *IssuanceAction) Reset() { *m = IssuanceAction{} } ...@@ -367,16 +368,17 @@ func (m *IssuanceAction) Reset() { *m = IssuanceAction{} }
func (m *IssuanceAction) String() string { return proto.CompactTextString(m) } func (m *IssuanceAction) String() string { return proto.CompactTextString(m) }
func (*IssuanceAction) ProtoMessage() {} func (*IssuanceAction) ProtoMessage() {}
func (*IssuanceAction) Descriptor() ([]byte, []int) { func (*IssuanceAction) Descriptor() ([]byte, []int) {
return fileDescriptor_issuance_e0dc6f257f1d6c63, []int{3} return fileDescriptor_7110f4228953d675, []int{3}
} }
func (m *IssuanceAction) XXX_Unmarshal(b []byte) error { func (m *IssuanceAction) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_IssuanceAction.Unmarshal(m, b) return xxx_messageInfo_IssuanceAction.Unmarshal(m, b)
} }
func (m *IssuanceAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *IssuanceAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_IssuanceAction.Marshal(b, m, deterministic) return xxx_messageInfo_IssuanceAction.Marshal(b, m, deterministic)
} }
func (dst *IssuanceAction) XXX_Merge(src proto.Message) { func (m *IssuanceAction) XXX_Merge(src proto.Message) {
xxx_messageInfo_IssuanceAction.Merge(dst, src) xxx_messageInfo_IssuanceAction.Merge(m, src)
} }
func (m *IssuanceAction) XXX_Size() int { func (m *IssuanceAction) XXX_Size() int {
return xxx_messageInfo_IssuanceAction.Size(m) return xxx_messageInfo_IssuanceAction.Size(m)
...@@ -483,9 +485,9 @@ func (m *IssuanceAction) GetTy() int32 { ...@@ -483,9 +485,9 @@ func (m *IssuanceAction) GetTy() int32 {
return 0 return 0
} }
// XXX_OneofFuncs is for the internal use of the proto package. // XXX_OneofWrappers is for the internal use of the proto package.
func (*IssuanceAction) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { func (*IssuanceAction) XXX_OneofWrappers() []interface{} {
return _IssuanceAction_OneofMarshaler, _IssuanceAction_OneofUnmarshaler, _IssuanceAction_OneofSizer, []interface{}{ return []interface{}{
(*IssuanceAction_Create)(nil), (*IssuanceAction_Create)(nil),
(*IssuanceAction_Debt)(nil), (*IssuanceAction_Debt)(nil),
(*IssuanceAction_Repay)(nil), (*IssuanceAction_Repay)(nil),
...@@ -495,144 +497,6 @@ func (*IssuanceAction) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer ...@@ -495,144 +497,6 @@ func (*IssuanceAction) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer
} }
} }
func _IssuanceAction_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*IssuanceAction)
// value
switch x := m.Value.(type) {
case *IssuanceAction_Create:
b.EncodeVarint(1<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Create); err != nil {
return err
}
case *IssuanceAction_Debt:
b.EncodeVarint(2<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Debt); err != nil {
return err
}
case *IssuanceAction_Repay:
b.EncodeVarint(3<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Repay); err != nil {
return err
}
case *IssuanceAction_Feed:
b.EncodeVarint(4<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Feed); err != nil {
return err
}
case *IssuanceAction_Close:
b.EncodeVarint(5<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Close); err != nil {
return err
}
case *IssuanceAction_Manage:
b.EncodeVarint(6<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Manage); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("IssuanceAction.Value has unexpected type %T", x)
}
return nil
}
func _IssuanceAction_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*IssuanceAction)
switch tag {
case 1: // value.create
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(IssuanceCreate)
err := b.DecodeMessage(msg)
m.Value = &IssuanceAction_Create{msg}
return true, err
case 2: // value.debt
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(IssuanceDebt)
err := b.DecodeMessage(msg)
m.Value = &IssuanceAction_Debt{msg}
return true, err
case 3: // value.repay
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(IssuanceRepay)
err := b.DecodeMessage(msg)
m.Value = &IssuanceAction_Repay{msg}
return true, err
case 4: // value.feed
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(IssuanceFeed)
err := b.DecodeMessage(msg)
m.Value = &IssuanceAction_Feed{msg}
return true, err
case 5: // value.close
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(IssuanceClose)
err := b.DecodeMessage(msg)
m.Value = &IssuanceAction_Close{msg}
return true, err
case 6: // value.manage
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(IssuanceManage)
err := b.DecodeMessage(msg)
m.Value = &IssuanceAction_Manage{msg}
return true, err
default:
return false, nil
}
}
func _IssuanceAction_OneofSizer(msg proto.Message) (n int) {
m := msg.(*IssuanceAction)
// value
switch x := m.Value.(type) {
case *IssuanceAction_Create:
s := proto.Size(x.Create)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *IssuanceAction_Debt:
s := proto.Size(x.Debt)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *IssuanceAction_Repay:
s := proto.Size(x.Repay)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *IssuanceAction_Feed:
s := proto.Size(x.Feed)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *IssuanceAction_Close:
s := proto.Size(x.Close)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *IssuanceAction_Manage:
s := proto.Size(x.Manage)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
type IssuanceManage struct { type IssuanceManage struct {
SuperAddrs []string `protobuf:"bytes,1,rep,name=superAddrs,proto3" json:"superAddrs,omitempty"` SuperAddrs []string `protobuf:"bytes,1,rep,name=superAddrs,proto3" json:"superAddrs,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
...@@ -644,16 +508,17 @@ func (m *IssuanceManage) Reset() { *m = IssuanceManage{} } ...@@ -644,16 +508,17 @@ func (m *IssuanceManage) Reset() { *m = IssuanceManage{} }
func (m *IssuanceManage) String() string { return proto.CompactTextString(m) } func (m *IssuanceManage) String() string { return proto.CompactTextString(m) }
func (*IssuanceManage) ProtoMessage() {} func (*IssuanceManage) ProtoMessage() {}
func (*IssuanceManage) Descriptor() ([]byte, []int) { func (*IssuanceManage) Descriptor() ([]byte, []int) {
return fileDescriptor_issuance_e0dc6f257f1d6c63, []int{4} return fileDescriptor_7110f4228953d675, []int{4}
} }
func (m *IssuanceManage) XXX_Unmarshal(b []byte) error { func (m *IssuanceManage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_IssuanceManage.Unmarshal(m, b) return xxx_messageInfo_IssuanceManage.Unmarshal(m, b)
} }
func (m *IssuanceManage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *IssuanceManage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_IssuanceManage.Marshal(b, m, deterministic) return xxx_messageInfo_IssuanceManage.Marshal(b, m, deterministic)
} }
func (dst *IssuanceManage) XXX_Merge(src proto.Message) { func (m *IssuanceManage) XXX_Merge(src proto.Message) {
xxx_messageInfo_IssuanceManage.Merge(dst, src) xxx_messageInfo_IssuanceManage.Merge(m, src)
} }
func (m *IssuanceManage) XXX_Size() int { func (m *IssuanceManage) XXX_Size() int {
return xxx_messageInfo_IssuanceManage.Size(m) return xxx_messageInfo_IssuanceManage.Size(m)
...@@ -686,16 +551,17 @@ func (m *IssuanceCreate) Reset() { *m = IssuanceCreate{} } ...@@ -686,16 +551,17 @@ func (m *IssuanceCreate) Reset() { *m = IssuanceCreate{} }
func (m *IssuanceCreate) String() string { return proto.CompactTextString(m) } func (m *IssuanceCreate) String() string { return proto.CompactTextString(m) }
func (*IssuanceCreate) ProtoMessage() {} func (*IssuanceCreate) ProtoMessage() {}
func (*IssuanceCreate) Descriptor() ([]byte, []int) { func (*IssuanceCreate) Descriptor() ([]byte, []int) {
return fileDescriptor_issuance_e0dc6f257f1d6c63, []int{5} return fileDescriptor_7110f4228953d675, []int{5}
} }
func (m *IssuanceCreate) XXX_Unmarshal(b []byte) error { func (m *IssuanceCreate) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_IssuanceCreate.Unmarshal(m, b) return xxx_messageInfo_IssuanceCreate.Unmarshal(m, b)
} }
func (m *IssuanceCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *IssuanceCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_IssuanceCreate.Marshal(b, m, deterministic) return xxx_messageInfo_IssuanceCreate.Marshal(b, m, deterministic)
} }
func (dst *IssuanceCreate) XXX_Merge(src proto.Message) { func (m *IssuanceCreate) XXX_Merge(src proto.Message) {
xxx_messageInfo_IssuanceCreate.Merge(dst, src) xxx_messageInfo_IssuanceCreate.Merge(m, src)
} }
func (m *IssuanceCreate) XXX_Size() int { func (m *IssuanceCreate) XXX_Size() int {
return xxx_messageInfo_IssuanceCreate.Size(m) return xxx_messageInfo_IssuanceCreate.Size(m)
...@@ -747,16 +613,17 @@ func (m *IssuanceDebt) Reset() { *m = IssuanceDebt{} } ...@@ -747,16 +613,17 @@ func (m *IssuanceDebt) Reset() { *m = IssuanceDebt{} }
func (m *IssuanceDebt) String() string { return proto.CompactTextString(m) } func (m *IssuanceDebt) String() string { return proto.CompactTextString(m) }
func (*IssuanceDebt) ProtoMessage() {} func (*IssuanceDebt) ProtoMessage() {}
func (*IssuanceDebt) Descriptor() ([]byte, []int) { func (*IssuanceDebt) Descriptor() ([]byte, []int) {
return fileDescriptor_issuance_e0dc6f257f1d6c63, []int{6} return fileDescriptor_7110f4228953d675, []int{6}
} }
func (m *IssuanceDebt) XXX_Unmarshal(b []byte) error { func (m *IssuanceDebt) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_IssuanceDebt.Unmarshal(m, b) return xxx_messageInfo_IssuanceDebt.Unmarshal(m, b)
} }
func (m *IssuanceDebt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *IssuanceDebt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_IssuanceDebt.Marshal(b, m, deterministic) return xxx_messageInfo_IssuanceDebt.Marshal(b, m, deterministic)
} }
func (dst *IssuanceDebt) XXX_Merge(src proto.Message) { func (m *IssuanceDebt) XXX_Merge(src proto.Message) {
xxx_messageInfo_IssuanceDebt.Merge(dst, src) xxx_messageInfo_IssuanceDebt.Merge(m, src)
} }
func (m *IssuanceDebt) XXX_Size() int { func (m *IssuanceDebt) XXX_Size() int {
return xxx_messageInfo_IssuanceDebt.Size(m) return xxx_messageInfo_IssuanceDebt.Size(m)
...@@ -794,16 +661,17 @@ func (m *IssuanceRepay) Reset() { *m = IssuanceRepay{} } ...@@ -794,16 +661,17 @@ func (m *IssuanceRepay) Reset() { *m = IssuanceRepay{} }
func (m *IssuanceRepay) String() string { return proto.CompactTextString(m) } func (m *IssuanceRepay) String() string { return proto.CompactTextString(m) }
func (*IssuanceRepay) ProtoMessage() {} func (*IssuanceRepay) ProtoMessage() {}
func (*IssuanceRepay) Descriptor() ([]byte, []int) { func (*IssuanceRepay) Descriptor() ([]byte, []int) {
return fileDescriptor_issuance_e0dc6f257f1d6c63, []int{7} return fileDescriptor_7110f4228953d675, []int{7}
} }
func (m *IssuanceRepay) XXX_Unmarshal(b []byte) error { func (m *IssuanceRepay) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_IssuanceRepay.Unmarshal(m, b) return xxx_messageInfo_IssuanceRepay.Unmarshal(m, b)
} }
func (m *IssuanceRepay) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *IssuanceRepay) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_IssuanceRepay.Marshal(b, m, deterministic) return xxx_messageInfo_IssuanceRepay.Marshal(b, m, deterministic)
} }
func (dst *IssuanceRepay) XXX_Merge(src proto.Message) { func (m *IssuanceRepay) XXX_Merge(src proto.Message) {
xxx_messageInfo_IssuanceRepay.Merge(dst, src) xxx_messageInfo_IssuanceRepay.Merge(m, src)
} }
func (m *IssuanceRepay) XXX_Size() int { func (m *IssuanceRepay) XXX_Size() int {
return xxx_messageInfo_IssuanceRepay.Size(m) return xxx_messageInfo_IssuanceRepay.Size(m)
...@@ -842,16 +710,17 @@ func (m *IssuanceFeed) Reset() { *m = IssuanceFeed{} } ...@@ -842,16 +710,17 @@ func (m *IssuanceFeed) Reset() { *m = IssuanceFeed{} }
func (m *IssuanceFeed) String() string { return proto.CompactTextString(m) } func (m *IssuanceFeed) String() string { return proto.CompactTextString(m) }
func (*IssuanceFeed) ProtoMessage() {} func (*IssuanceFeed) ProtoMessage() {}
func (*IssuanceFeed) Descriptor() ([]byte, []int) { func (*IssuanceFeed) Descriptor() ([]byte, []int) {
return fileDescriptor_issuance_e0dc6f257f1d6c63, []int{8} return fileDescriptor_7110f4228953d675, []int{8}
} }
func (m *IssuanceFeed) XXX_Unmarshal(b []byte) error { func (m *IssuanceFeed) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_IssuanceFeed.Unmarshal(m, b) return xxx_messageInfo_IssuanceFeed.Unmarshal(m, b)
} }
func (m *IssuanceFeed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *IssuanceFeed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_IssuanceFeed.Marshal(b, m, deterministic) return xxx_messageInfo_IssuanceFeed.Marshal(b, m, deterministic)
} }
func (dst *IssuanceFeed) XXX_Merge(src proto.Message) { func (m *IssuanceFeed) XXX_Merge(src proto.Message) {
xxx_messageInfo_IssuanceFeed.Merge(dst, src) xxx_messageInfo_IssuanceFeed.Merge(m, src)
} }
func (m *IssuanceFeed) XXX_Size() int { func (m *IssuanceFeed) XXX_Size() int {
return xxx_messageInfo_IssuanceFeed.Size(m) return xxx_messageInfo_IssuanceFeed.Size(m)
...@@ -895,16 +764,17 @@ func (m *IssuanceClose) Reset() { *m = IssuanceClose{} } ...@@ -895,16 +764,17 @@ func (m *IssuanceClose) Reset() { *m = IssuanceClose{} }
func (m *IssuanceClose) String() string { return proto.CompactTextString(m) } func (m *IssuanceClose) String() string { return proto.CompactTextString(m) }
func (*IssuanceClose) ProtoMessage() {} func (*IssuanceClose) ProtoMessage() {}
func (*IssuanceClose) Descriptor() ([]byte, []int) { func (*IssuanceClose) Descriptor() ([]byte, []int) {
return fileDescriptor_issuance_e0dc6f257f1d6c63, []int{9} return fileDescriptor_7110f4228953d675, []int{9}
} }
func (m *IssuanceClose) XXX_Unmarshal(b []byte) error { func (m *IssuanceClose) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_IssuanceClose.Unmarshal(m, b) return xxx_messageInfo_IssuanceClose.Unmarshal(m, b)
} }
func (m *IssuanceClose) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *IssuanceClose) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_IssuanceClose.Marshal(b, m, deterministic) return xxx_messageInfo_IssuanceClose.Marshal(b, m, deterministic)
} }
func (dst *IssuanceClose) XXX_Merge(src proto.Message) { func (m *IssuanceClose) XXX_Merge(src proto.Message) {
xxx_messageInfo_IssuanceClose.Merge(dst, src) xxx_messageInfo_IssuanceClose.Merge(m, src)
} }
func (m *IssuanceClose) XXX_Size() int { func (m *IssuanceClose) XXX_Size() int {
return xxx_messageInfo_IssuanceClose.Size(m) return xxx_messageInfo_IssuanceClose.Size(m)
...@@ -937,16 +807,17 @@ func (m *ReceiptIssuance) Reset() { *m = ReceiptIssuance{} } ...@@ -937,16 +807,17 @@ func (m *ReceiptIssuance) Reset() { *m = ReceiptIssuance{} }
func (m *ReceiptIssuance) String() string { return proto.CompactTextString(m) } func (m *ReceiptIssuance) String() string { return proto.CompactTextString(m) }
func (*ReceiptIssuance) ProtoMessage() {} func (*ReceiptIssuance) ProtoMessage() {}
func (*ReceiptIssuance) Descriptor() ([]byte, []int) { func (*ReceiptIssuance) Descriptor() ([]byte, []int) {
return fileDescriptor_issuance_e0dc6f257f1d6c63, []int{10} return fileDescriptor_7110f4228953d675, []int{10}
} }
func (m *ReceiptIssuance) XXX_Unmarshal(b []byte) error { func (m *ReceiptIssuance) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReceiptIssuance.Unmarshal(m, b) return xxx_messageInfo_ReceiptIssuance.Unmarshal(m, b)
} }
func (m *ReceiptIssuance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ReceiptIssuance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReceiptIssuance.Marshal(b, m, deterministic) return xxx_messageInfo_ReceiptIssuance.Marshal(b, m, deterministic)
} }
func (dst *ReceiptIssuance) XXX_Merge(src proto.Message) { func (m *ReceiptIssuance) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReceiptIssuance.Merge(dst, src) xxx_messageInfo_ReceiptIssuance.Merge(m, src)
} }
func (m *ReceiptIssuance) XXX_Size() int { func (m *ReceiptIssuance) XXX_Size() int {
return xxx_messageInfo_ReceiptIssuance.Size(m) return xxx_messageInfo_ReceiptIssuance.Size(m)
...@@ -998,16 +869,17 @@ func (m *ReceiptIssuanceID) Reset() { *m = ReceiptIssuanceID{} } ...@@ -998,16 +869,17 @@ func (m *ReceiptIssuanceID) Reset() { *m = ReceiptIssuanceID{} }
func (m *ReceiptIssuanceID) String() string { return proto.CompactTextString(m) } func (m *ReceiptIssuanceID) String() string { return proto.CompactTextString(m) }
func (*ReceiptIssuanceID) ProtoMessage() {} func (*ReceiptIssuanceID) ProtoMessage() {}
func (*ReceiptIssuanceID) Descriptor() ([]byte, []int) { func (*ReceiptIssuanceID) Descriptor() ([]byte, []int) {
return fileDescriptor_issuance_e0dc6f257f1d6c63, []int{11} return fileDescriptor_7110f4228953d675, []int{11}
} }
func (m *ReceiptIssuanceID) XXX_Unmarshal(b []byte) error { func (m *ReceiptIssuanceID) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReceiptIssuanceID.Unmarshal(m, b) return xxx_messageInfo_ReceiptIssuanceID.Unmarshal(m, b)
} }
func (m *ReceiptIssuanceID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ReceiptIssuanceID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReceiptIssuanceID.Marshal(b, m, deterministic) return xxx_messageInfo_ReceiptIssuanceID.Marshal(b, m, deterministic)
} }
func (dst *ReceiptIssuanceID) XXX_Merge(src proto.Message) { func (m *ReceiptIssuanceID) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReceiptIssuanceID.Merge(dst, src) xxx_messageInfo_ReceiptIssuanceID.Merge(m, src)
} }
func (m *ReceiptIssuanceID) XXX_Size() int { func (m *ReceiptIssuanceID) XXX_Size() int {
return xxx_messageInfo_ReceiptIssuanceID.Size(m) return xxx_messageInfo_ReceiptIssuanceID.Size(m)
...@@ -1044,16 +916,17 @@ func (m *IssuanceRecords) Reset() { *m = IssuanceRecords{} } ...@@ -1044,16 +916,17 @@ func (m *IssuanceRecords) Reset() { *m = IssuanceRecords{} }
func (m *IssuanceRecords) String() string { return proto.CompactTextString(m) } func (m *IssuanceRecords) String() string { return proto.CompactTextString(m) }
func (*IssuanceRecords) ProtoMessage() {} func (*IssuanceRecords) ProtoMessage() {}
func (*IssuanceRecords) Descriptor() ([]byte, []int) { func (*IssuanceRecords) Descriptor() ([]byte, []int) {
return fileDescriptor_issuance_e0dc6f257f1d6c63, []int{12} return fileDescriptor_7110f4228953d675, []int{12}
} }
func (m *IssuanceRecords) XXX_Unmarshal(b []byte) error { func (m *IssuanceRecords) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_IssuanceRecords.Unmarshal(m, b) return xxx_messageInfo_IssuanceRecords.Unmarshal(m, b)
} }
func (m *IssuanceRecords) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *IssuanceRecords) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_IssuanceRecords.Marshal(b, m, deterministic) return xxx_messageInfo_IssuanceRecords.Marshal(b, m, deterministic)
} }
func (dst *IssuanceRecords) XXX_Merge(src proto.Message) { func (m *IssuanceRecords) XXX_Merge(src proto.Message) {
xxx_messageInfo_IssuanceRecords.Merge(dst, src) xxx_messageInfo_IssuanceRecords.Merge(m, src)
} }
func (m *IssuanceRecords) XXX_Size() int { func (m *IssuanceRecords) XXX_Size() int {
return xxx_messageInfo_IssuanceRecords.Size(m) return xxx_messageInfo_IssuanceRecords.Size(m)
...@@ -1083,16 +956,17 @@ func (m *ReqIssuanceInfo) Reset() { *m = ReqIssuanceInfo{} } ...@@ -1083,16 +956,17 @@ func (m *ReqIssuanceInfo) Reset() { *m = ReqIssuanceInfo{} }
func (m *ReqIssuanceInfo) String() string { return proto.CompactTextString(m) } func (m *ReqIssuanceInfo) String() string { return proto.CompactTextString(m) }
func (*ReqIssuanceInfo) ProtoMessage() {} func (*ReqIssuanceInfo) ProtoMessage() {}
func (*ReqIssuanceInfo) Descriptor() ([]byte, []int) { func (*ReqIssuanceInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_issuance_e0dc6f257f1d6c63, []int{13} return fileDescriptor_7110f4228953d675, []int{13}
} }
func (m *ReqIssuanceInfo) XXX_Unmarshal(b []byte) error { func (m *ReqIssuanceInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqIssuanceInfo.Unmarshal(m, b) return xxx_messageInfo_ReqIssuanceInfo.Unmarshal(m, b)
} }
func (m *ReqIssuanceInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ReqIssuanceInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqIssuanceInfo.Marshal(b, m, deterministic) return xxx_messageInfo_ReqIssuanceInfo.Marshal(b, m, deterministic)
} }
func (dst *ReqIssuanceInfo) XXX_Merge(src proto.Message) { func (m *ReqIssuanceInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqIssuanceInfo.Merge(dst, src) xxx_messageInfo_ReqIssuanceInfo.Merge(m, src)
} }
func (m *ReqIssuanceInfo) XXX_Size() int { func (m *ReqIssuanceInfo) XXX_Size() int {
return xxx_messageInfo_ReqIssuanceInfo.Size(m) return xxx_messageInfo_ReqIssuanceInfo.Size(m)
...@@ -1131,16 +1005,17 @@ func (m *RepIssuanceCurrentInfo) Reset() { *m = RepIssuanceCurrentInfo{} ...@@ -1131,16 +1005,17 @@ func (m *RepIssuanceCurrentInfo) Reset() { *m = RepIssuanceCurrentInfo{}
func (m *RepIssuanceCurrentInfo) String() string { return proto.CompactTextString(m) } func (m *RepIssuanceCurrentInfo) String() string { return proto.CompactTextString(m) }
func (*RepIssuanceCurrentInfo) ProtoMessage() {} func (*RepIssuanceCurrentInfo) ProtoMessage() {}
func (*RepIssuanceCurrentInfo) Descriptor() ([]byte, []int) { func (*RepIssuanceCurrentInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_issuance_e0dc6f257f1d6c63, []int{14} return fileDescriptor_7110f4228953d675, []int{14}
} }
func (m *RepIssuanceCurrentInfo) XXX_Unmarshal(b []byte) error { func (m *RepIssuanceCurrentInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RepIssuanceCurrentInfo.Unmarshal(m, b) return xxx_messageInfo_RepIssuanceCurrentInfo.Unmarshal(m, b)
} }
func (m *RepIssuanceCurrentInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *RepIssuanceCurrentInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RepIssuanceCurrentInfo.Marshal(b, m, deterministic) return xxx_messageInfo_RepIssuanceCurrentInfo.Marshal(b, m, deterministic)
} }
func (dst *RepIssuanceCurrentInfo) XXX_Merge(src proto.Message) { func (m *RepIssuanceCurrentInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_RepIssuanceCurrentInfo.Merge(dst, src) xxx_messageInfo_RepIssuanceCurrentInfo.Merge(m, src)
} }
func (m *RepIssuanceCurrentInfo) XXX_Size() int { func (m *RepIssuanceCurrentInfo) XXX_Size() int {
return xxx_messageInfo_RepIssuanceCurrentInfo.Size(m) return xxx_messageInfo_RepIssuanceCurrentInfo.Size(m)
...@@ -1233,16 +1108,17 @@ func (m *ReqIssuanceInfos) Reset() { *m = ReqIssuanceInfos{} } ...@@ -1233,16 +1108,17 @@ func (m *ReqIssuanceInfos) Reset() { *m = ReqIssuanceInfos{} }
func (m *ReqIssuanceInfos) String() string { return proto.CompactTextString(m) } func (m *ReqIssuanceInfos) String() string { return proto.CompactTextString(m) }
func (*ReqIssuanceInfos) ProtoMessage() {} func (*ReqIssuanceInfos) ProtoMessage() {}
func (*ReqIssuanceInfos) Descriptor() ([]byte, []int) { func (*ReqIssuanceInfos) Descriptor() ([]byte, []int) {
return fileDescriptor_issuance_e0dc6f257f1d6c63, []int{15} return fileDescriptor_7110f4228953d675, []int{15}
} }
func (m *ReqIssuanceInfos) XXX_Unmarshal(b []byte) error { func (m *ReqIssuanceInfos) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqIssuanceInfos.Unmarshal(m, b) return xxx_messageInfo_ReqIssuanceInfos.Unmarshal(m, b)
} }
func (m *ReqIssuanceInfos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ReqIssuanceInfos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqIssuanceInfos.Marshal(b, m, deterministic) return xxx_messageInfo_ReqIssuanceInfos.Marshal(b, m, deterministic)
} }
func (dst *ReqIssuanceInfos) XXX_Merge(src proto.Message) { func (m *ReqIssuanceInfos) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqIssuanceInfos.Merge(dst, src) xxx_messageInfo_ReqIssuanceInfos.Merge(m, src)
} }
func (m *ReqIssuanceInfos) XXX_Size() int { func (m *ReqIssuanceInfos) XXX_Size() int {
return xxx_messageInfo_ReqIssuanceInfos.Size(m) return xxx_messageInfo_ReqIssuanceInfos.Size(m)
...@@ -1272,16 +1148,17 @@ func (m *RepIssuanceCurrentInfos) Reset() { *m = RepIssuanceCurrentInfos ...@@ -1272,16 +1148,17 @@ func (m *RepIssuanceCurrentInfos) Reset() { *m = RepIssuanceCurrentInfos
func (m *RepIssuanceCurrentInfos) String() string { return proto.CompactTextString(m) } func (m *RepIssuanceCurrentInfos) String() string { return proto.CompactTextString(m) }
func (*RepIssuanceCurrentInfos) ProtoMessage() {} func (*RepIssuanceCurrentInfos) ProtoMessage() {}
func (*RepIssuanceCurrentInfos) Descriptor() ([]byte, []int) { func (*RepIssuanceCurrentInfos) Descriptor() ([]byte, []int) {
return fileDescriptor_issuance_e0dc6f257f1d6c63, []int{16} return fileDescriptor_7110f4228953d675, []int{16}
} }
func (m *RepIssuanceCurrentInfos) XXX_Unmarshal(b []byte) error { func (m *RepIssuanceCurrentInfos) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RepIssuanceCurrentInfos.Unmarshal(m, b) return xxx_messageInfo_RepIssuanceCurrentInfos.Unmarshal(m, b)
} }
func (m *RepIssuanceCurrentInfos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *RepIssuanceCurrentInfos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RepIssuanceCurrentInfos.Marshal(b, m, deterministic) return xxx_messageInfo_RepIssuanceCurrentInfos.Marshal(b, m, deterministic)
} }
func (dst *RepIssuanceCurrentInfos) XXX_Merge(src proto.Message) { func (m *RepIssuanceCurrentInfos) XXX_Merge(src proto.Message) {
xxx_messageInfo_RepIssuanceCurrentInfos.Merge(dst, src) xxx_messageInfo_RepIssuanceCurrentInfos.Merge(m, src)
} }
func (m *RepIssuanceCurrentInfos) XXX_Size() int { func (m *RepIssuanceCurrentInfos) XXX_Size() int {
return xxx_messageInfo_RepIssuanceCurrentInfos.Size(m) return xxx_messageInfo_RepIssuanceCurrentInfos.Size(m)
...@@ -1312,16 +1189,17 @@ func (m *ReqIssuanceByStatus) Reset() { *m = ReqIssuanceByStatus{} } ...@@ -1312,16 +1189,17 @@ func (m *ReqIssuanceByStatus) Reset() { *m = ReqIssuanceByStatus{} }
func (m *ReqIssuanceByStatus) String() string { return proto.CompactTextString(m) } func (m *ReqIssuanceByStatus) String() string { return proto.CompactTextString(m) }
func (*ReqIssuanceByStatus) ProtoMessage() {} func (*ReqIssuanceByStatus) ProtoMessage() {}
func (*ReqIssuanceByStatus) Descriptor() ([]byte, []int) { func (*ReqIssuanceByStatus) Descriptor() ([]byte, []int) {
return fileDescriptor_issuance_e0dc6f257f1d6c63, []int{17} return fileDescriptor_7110f4228953d675, []int{17}
} }
func (m *ReqIssuanceByStatus) XXX_Unmarshal(b []byte) error { func (m *ReqIssuanceByStatus) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqIssuanceByStatus.Unmarshal(m, b) return xxx_messageInfo_ReqIssuanceByStatus.Unmarshal(m, b)
} }
func (m *ReqIssuanceByStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ReqIssuanceByStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqIssuanceByStatus.Marshal(b, m, deterministic) return xxx_messageInfo_ReqIssuanceByStatus.Marshal(b, m, deterministic)
} }
func (dst *ReqIssuanceByStatus) XXX_Merge(src proto.Message) { func (m *ReqIssuanceByStatus) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqIssuanceByStatus.Merge(dst, src) xxx_messageInfo_ReqIssuanceByStatus.Merge(m, src)
} }
func (m *ReqIssuanceByStatus) XXX_Size() int { func (m *ReqIssuanceByStatus) XXX_Size() int {
return xxx_messageInfo_ReqIssuanceByStatus.Size(m) return xxx_messageInfo_ReqIssuanceByStatus.Size(m)
...@@ -1358,16 +1236,17 @@ func (m *RepIssuanceIDs) Reset() { *m = RepIssuanceIDs{} } ...@@ -1358,16 +1236,17 @@ func (m *RepIssuanceIDs) Reset() { *m = RepIssuanceIDs{} }
func (m *RepIssuanceIDs) String() string { return proto.CompactTextString(m) } func (m *RepIssuanceIDs) String() string { return proto.CompactTextString(m) }
func (*RepIssuanceIDs) ProtoMessage() {} func (*RepIssuanceIDs) ProtoMessage() {}
func (*RepIssuanceIDs) Descriptor() ([]byte, []int) { func (*RepIssuanceIDs) Descriptor() ([]byte, []int) {
return fileDescriptor_issuance_e0dc6f257f1d6c63, []int{18} return fileDescriptor_7110f4228953d675, []int{18}
} }
func (m *RepIssuanceIDs) XXX_Unmarshal(b []byte) error { func (m *RepIssuanceIDs) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RepIssuanceIDs.Unmarshal(m, b) return xxx_messageInfo_RepIssuanceIDs.Unmarshal(m, b)
} }
func (m *RepIssuanceIDs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *RepIssuanceIDs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RepIssuanceIDs.Marshal(b, m, deterministic) return xxx_messageInfo_RepIssuanceIDs.Marshal(b, m, deterministic)
} }
func (dst *RepIssuanceIDs) XXX_Merge(src proto.Message) { func (m *RepIssuanceIDs) XXX_Merge(src proto.Message) {
xxx_messageInfo_RepIssuanceIDs.Merge(dst, src) xxx_messageInfo_RepIssuanceIDs.Merge(m, src)
} }
func (m *RepIssuanceIDs) XXX_Size() int { func (m *RepIssuanceIDs) XXX_Size() int {
return xxx_messageInfo_RepIssuanceIDs.Size(m) return xxx_messageInfo_RepIssuanceIDs.Size(m)
...@@ -1400,16 +1279,17 @@ func (m *ReqIssuanceRecords) Reset() { *m = ReqIssuanceRecords{} } ...@@ -1400,16 +1279,17 @@ func (m *ReqIssuanceRecords) Reset() { *m = ReqIssuanceRecords{} }
func (m *ReqIssuanceRecords) String() string { return proto.CompactTextString(m) } func (m *ReqIssuanceRecords) String() string { return proto.CompactTextString(m) }
func (*ReqIssuanceRecords) ProtoMessage() {} func (*ReqIssuanceRecords) ProtoMessage() {}
func (*ReqIssuanceRecords) Descriptor() ([]byte, []int) { func (*ReqIssuanceRecords) Descriptor() ([]byte, []int) {
return fileDescriptor_issuance_e0dc6f257f1d6c63, []int{19} return fileDescriptor_7110f4228953d675, []int{19}
} }
func (m *ReqIssuanceRecords) XXX_Unmarshal(b []byte) error { func (m *ReqIssuanceRecords) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqIssuanceRecords.Unmarshal(m, b) return xxx_messageInfo_ReqIssuanceRecords.Unmarshal(m, b)
} }
func (m *ReqIssuanceRecords) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ReqIssuanceRecords) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqIssuanceRecords.Marshal(b, m, deterministic) return xxx_messageInfo_ReqIssuanceRecords.Marshal(b, m, deterministic)
} }
func (dst *ReqIssuanceRecords) XXX_Merge(src proto.Message) { func (m *ReqIssuanceRecords) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqIssuanceRecords.Merge(dst, src) xxx_messageInfo_ReqIssuanceRecords.Merge(m, src)
} }
func (m *ReqIssuanceRecords) XXX_Size() int { func (m *ReqIssuanceRecords) XXX_Size() int {
return xxx_messageInfo_ReqIssuanceRecords.Size(m) return xxx_messageInfo_ReqIssuanceRecords.Size(m)
...@@ -1460,16 +1340,17 @@ func (m *RepIssuanceRecords) Reset() { *m = RepIssuanceRecords{} } ...@@ -1460,16 +1340,17 @@ func (m *RepIssuanceRecords) Reset() { *m = RepIssuanceRecords{} }
func (m *RepIssuanceRecords) String() string { return proto.CompactTextString(m) } func (m *RepIssuanceRecords) String() string { return proto.CompactTextString(m) }
func (*RepIssuanceRecords) ProtoMessage() {} func (*RepIssuanceRecords) ProtoMessage() {}
func (*RepIssuanceRecords) Descriptor() ([]byte, []int) { func (*RepIssuanceRecords) Descriptor() ([]byte, []int) {
return fileDescriptor_issuance_e0dc6f257f1d6c63, []int{20} return fileDescriptor_7110f4228953d675, []int{20}
} }
func (m *RepIssuanceRecords) XXX_Unmarshal(b []byte) error { func (m *RepIssuanceRecords) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RepIssuanceRecords.Unmarshal(m, b) return xxx_messageInfo_RepIssuanceRecords.Unmarshal(m, b)
} }
func (m *RepIssuanceRecords) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *RepIssuanceRecords) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RepIssuanceRecords.Marshal(b, m, deterministic) return xxx_messageInfo_RepIssuanceRecords.Marshal(b, m, deterministic)
} }
func (dst *RepIssuanceRecords) XXX_Merge(src proto.Message) { func (m *RepIssuanceRecords) XXX_Merge(src proto.Message) {
xxx_messageInfo_RepIssuanceRecords.Merge(dst, src) xxx_messageInfo_RepIssuanceRecords.Merge(m, src)
} }
func (m *RepIssuanceRecords) XXX_Size() int { func (m *RepIssuanceRecords) XXX_Size() int {
return xxx_messageInfo_RepIssuanceRecords.Size(m) return xxx_messageInfo_RepIssuanceRecords.Size(m)
...@@ -1499,16 +1380,17 @@ func (m *RepIssuanceDebtInfo) Reset() { *m = RepIssuanceDebtInfo{} } ...@@ -1499,16 +1380,17 @@ func (m *RepIssuanceDebtInfo) Reset() { *m = RepIssuanceDebtInfo{} }
func (m *RepIssuanceDebtInfo) String() string { return proto.CompactTextString(m) } func (m *RepIssuanceDebtInfo) String() string { return proto.CompactTextString(m) }
func (*RepIssuanceDebtInfo) ProtoMessage() {} func (*RepIssuanceDebtInfo) ProtoMessage() {}
func (*RepIssuanceDebtInfo) Descriptor() ([]byte, []int) { func (*RepIssuanceDebtInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_issuance_e0dc6f257f1d6c63, []int{21} return fileDescriptor_7110f4228953d675, []int{21}
} }
func (m *RepIssuanceDebtInfo) XXX_Unmarshal(b []byte) error { func (m *RepIssuanceDebtInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RepIssuanceDebtInfo.Unmarshal(m, b) return xxx_messageInfo_RepIssuanceDebtInfo.Unmarshal(m, b)
} }
func (m *RepIssuanceDebtInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *RepIssuanceDebtInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RepIssuanceDebtInfo.Marshal(b, m, deterministic) return xxx_messageInfo_RepIssuanceDebtInfo.Marshal(b, m, deterministic)
} }
func (dst *RepIssuanceDebtInfo) XXX_Merge(src proto.Message) { func (m *RepIssuanceDebtInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_RepIssuanceDebtInfo.Merge(dst, src) xxx_messageInfo_RepIssuanceDebtInfo.Merge(m, src)
} }
func (m *RepIssuanceDebtInfo) XXX_Size() int { func (m *RepIssuanceDebtInfo) XXX_Size() int {
return xxx_messageInfo_RepIssuanceDebtInfo.Size(m) return xxx_messageInfo_RepIssuanceDebtInfo.Size(m)
...@@ -1538,16 +1420,17 @@ func (m *RepIssuancePrice) Reset() { *m = RepIssuancePrice{} } ...@@ -1538,16 +1420,17 @@ func (m *RepIssuancePrice) Reset() { *m = RepIssuancePrice{} }
func (m *RepIssuancePrice) String() string { return proto.CompactTextString(m) } func (m *RepIssuancePrice) String() string { return proto.CompactTextString(m) }
func (*RepIssuancePrice) ProtoMessage() {} func (*RepIssuancePrice) ProtoMessage() {}
func (*RepIssuancePrice) Descriptor() ([]byte, []int) { func (*RepIssuancePrice) Descriptor() ([]byte, []int) {
return fileDescriptor_issuance_e0dc6f257f1d6c63, []int{22} return fileDescriptor_7110f4228953d675, []int{22}
} }
func (m *RepIssuancePrice) XXX_Unmarshal(b []byte) error { func (m *RepIssuancePrice) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RepIssuancePrice.Unmarshal(m, b) return xxx_messageInfo_RepIssuancePrice.Unmarshal(m, b)
} }
func (m *RepIssuancePrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *RepIssuancePrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RepIssuancePrice.Marshal(b, m, deterministic) return xxx_messageInfo_RepIssuancePrice.Marshal(b, m, deterministic)
} }
func (dst *RepIssuancePrice) XXX_Merge(src proto.Message) { func (m *RepIssuancePrice) XXX_Merge(src proto.Message) {
xxx_messageInfo_RepIssuancePrice.Merge(dst, src) xxx_messageInfo_RepIssuancePrice.Merge(m, src)
} }
func (m *RepIssuancePrice) XXX_Size() int { func (m *RepIssuancePrice) XXX_Size() int {
return xxx_messageInfo_RepIssuancePrice.Size(m) return xxx_messageInfo_RepIssuancePrice.Size(m)
...@@ -1565,6 +1448,46 @@ func (m *RepIssuancePrice) GetPrice() int64 { ...@@ -1565,6 +1448,46 @@ func (m *RepIssuancePrice) GetPrice() int64 {
return 0 return 0
} }
// 返回用户发行总额
type RepIssuanceUserBalance struct {
Balance int64 `protobuf:"varint,1,opt,name=balance,proto3" json:"balance,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RepIssuanceUserBalance) Reset() { *m = RepIssuanceUserBalance{} }
func (m *RepIssuanceUserBalance) String() string { return proto.CompactTextString(m) }
func (*RepIssuanceUserBalance) ProtoMessage() {}
func (*RepIssuanceUserBalance) Descriptor() ([]byte, []int) {
return fileDescriptor_7110f4228953d675, []int{23}
}
func (m *RepIssuanceUserBalance) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RepIssuanceUserBalance.Unmarshal(m, b)
}
func (m *RepIssuanceUserBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RepIssuanceUserBalance.Marshal(b, m, deterministic)
}
func (m *RepIssuanceUserBalance) XXX_Merge(src proto.Message) {
xxx_messageInfo_RepIssuanceUserBalance.Merge(m, src)
}
func (m *RepIssuanceUserBalance) XXX_Size() int {
return xxx_messageInfo_RepIssuanceUserBalance.Size(m)
}
func (m *RepIssuanceUserBalance) XXX_DiscardUnknown() {
xxx_messageInfo_RepIssuanceUserBalance.DiscardUnknown(m)
}
var xxx_messageInfo_RepIssuanceUserBalance proto.InternalMessageInfo
func (m *RepIssuanceUserBalance) GetBalance() int64 {
if m != nil {
return m.Balance
}
return 0
}
func init() { func init() {
proto.RegisterType((*Issuance)(nil), "types.Issuance") proto.RegisterType((*Issuance)(nil), "types.Issuance")
proto.RegisterType((*DebtRecord)(nil), "types.DebtRecord") proto.RegisterType((*DebtRecord)(nil), "types.DebtRecord")
...@@ -1589,75 +1512,77 @@ func init() { ...@@ -1589,75 +1512,77 @@ func init() {
proto.RegisterType((*RepIssuanceRecords)(nil), "types.RepIssuanceRecords") proto.RegisterType((*RepIssuanceRecords)(nil), "types.RepIssuanceRecords")
proto.RegisterType((*RepIssuanceDebtInfo)(nil), "types.RepIssuanceDebtInfo") proto.RegisterType((*RepIssuanceDebtInfo)(nil), "types.RepIssuanceDebtInfo")
proto.RegisterType((*RepIssuancePrice)(nil), "types.RepIssuancePrice") proto.RegisterType((*RepIssuancePrice)(nil), "types.RepIssuancePrice")
} proto.RegisterType((*RepIssuanceUserBalance)(nil), "types.RepIssuanceUserBalance")
}
func init() { proto.RegisterFile("issuance.proto", fileDescriptor_issuance_e0dc6f257f1d6c63) }
func init() { proto.RegisterFile("issuance.proto", fileDescriptor_7110f4228953d675) }
var fileDescriptor_issuance_e0dc6f257f1d6c63 = []byte{
// 1026 bytes of a gzipped FileDescriptorProto var fileDescriptor_7110f4228953d675 = []byte{
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0xcd, 0x6e, 0xe3, 0x36, // 1041 bytes of a gzipped FileDescriptorProto
0x10, 0x8e, 0x24, 0xcb, 0x3f, 0xe3, 0xc4, 0xc9, 0x72, 0xb7, 0xa9, 0x50, 0xb4, 0x0b, 0x83, 0xe8, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0x5f, 0x6f, 0xe3, 0x44,
0xc1, 0xdb, 0x16, 0xd9, 0x6d, 0x52, 0x14, 0xe8, 0xad, 0x49, 0xdc, 0x36, 0x46, 0xbb, 0x45, 0xc1, 0x10, 0xaf, 0xed, 0x38, 0x7f, 0x26, 0x6d, 0xda, 0xdb, 0x3b, 0x8a, 0x85, 0xe0, 0x14, 0xad, 0x78,
0x2e, 0x16, 0xbd, 0x2a, 0x12, 0x77, 0x21, 0x40, 0xb1, 0xb4, 0x12, 0x1d, 0xac, 0xcf, 0x7d, 0x87, 0xc8, 0x01, 0xea, 0x1d, 0x29, 0x42, 0xe2, 0x8d, 0xb6, 0x01, 0x1a, 0xc1, 0x21, 0x64, 0x8e, 0x13,
0x1e, 0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 0x68, 0xc7, 0x67, 0x66, 0x5b, 0x3f, 0xdf, 0x62,
0xd0, 0x19, 0xf2, 0xde, 0x7a, 0x50, 0x9f, 0x36, 0x6d, 0x33, 0x54, 0xa3, 0x44, 0x2d, 0x6e, 0xfb, 0xbe, 0x2a, 0xbb, 0xe9, 0xca, 0x42, 0x78, 0x06, 0x7d, 0x85, 0xd0, 0x43, 0x78, 0x87, 0x0b, 0x0d,
0xf2, 0x1f, 0x86, 0x8b, 0xff, 0x03, 0x00, 0x00, 0xff, 0xff, 0x58, 0x59, 0x7e, 0xaa, 0x42, 0x0c, 0xa0, 0x33, 0xe4, 0xbd, 0xf5, 0xa0, 0x3e, 0x6d, 0xda, 0x66, 0xa8, 0x46, 0x89, 0x5a, 0xd0, 0x79,
0x00, 0x00, 0xa7, 0xee, 0x7e, 0xe3, 0xac, 0x6e, 0x6a, 0xc7, 0x52, 0xbb, 0xd7, 0x51, 0xfb, 0x4d, 0x5f, 0xfe,
0x93, 0x71, 0xfe, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x57, 0x52, 0x66, 0x8a, 0x76, 0x0c, 0x00,
0x00,
} }
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