// Code generated by protoc-gen-go. DO NOT EDIT.
// source: token.proto

package types

import (
	context "context"
	fmt "fmt"
	math "math"

	types "github.com/33cn/chain33/types"
	proto "github.com/golang/protobuf/proto"
	grpc "google.golang.org/grpc"
	codes "google.golang.org/grpc/codes"
	status "google.golang.org/grpc/status"
)

// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf

// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package

// action
type TokenAction struct {
	// Types that are valid to be assigned to Value:
	//	*TokenAction_TokenPreCreate
	//	*TokenAction_TokenFinishCreate
	//	*TokenAction_TokenRevokeCreate
	//	*TokenAction_Transfer
	//	*TokenAction_Withdraw
	//	*TokenAction_Genesis
	//	*TokenAction_TransferToExec
	//	*TokenAction_TokenMint
	//	*TokenAction_TokenBurn
	Value                isTokenAction_Value `protobuf_oneof:"value"`
	Ty                   int32               `protobuf:"varint,7,opt,name=Ty,proto3" json:"Ty,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

func (m *TokenAction) Reset()         { *m = TokenAction{} }
func (m *TokenAction) String() string { return proto.CompactTextString(m) }
func (*TokenAction) ProtoMessage()    {}
func (*TokenAction) Descriptor() ([]byte, []int) {
	return fileDescriptor_3aff0bcd502840ab, []int{0}
}

func (m *TokenAction) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_TokenAction.Unmarshal(m, b)
}
func (m *TokenAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_TokenAction.Marshal(b, m, deterministic)
}
func (m *TokenAction) XXX_Merge(src proto.Message) {
	xxx_messageInfo_TokenAction.Merge(m, src)
}
func (m *TokenAction) XXX_Size() int {
	return xxx_messageInfo_TokenAction.Size(m)
}
func (m *TokenAction) XXX_DiscardUnknown() {
	xxx_messageInfo_TokenAction.DiscardUnknown(m)
}

var xxx_messageInfo_TokenAction proto.InternalMessageInfo

type isTokenAction_Value interface {
	isTokenAction_Value()
}

type TokenAction_TokenPreCreate struct {
	TokenPreCreate *TokenPreCreate `protobuf:"bytes,1,opt,name=tokenPreCreate,proto3,oneof"`
}

type TokenAction_TokenFinishCreate struct {
	TokenFinishCreate *TokenFinishCreate `protobuf:"bytes,2,opt,name=tokenFinishCreate,proto3,oneof"`
}

type TokenAction_TokenRevokeCreate struct {
	TokenRevokeCreate *TokenRevokeCreate `protobuf:"bytes,3,opt,name=tokenRevokeCreate,proto3,oneof"`
}

type TokenAction_Transfer struct {
	Transfer *types.AssetsTransfer `protobuf:"bytes,4,opt,name=transfer,proto3,oneof"`
}

type TokenAction_Withdraw struct {
	Withdraw *types.AssetsWithdraw `protobuf:"bytes,5,opt,name=withdraw,proto3,oneof"`
}

type TokenAction_Genesis struct {
	Genesis *types.AssetsGenesis `protobuf:"bytes,6,opt,name=genesis,proto3,oneof"`
}

type TokenAction_TransferToExec struct {
	TransferToExec *types.AssetsTransferToExec `protobuf:"bytes,8,opt,name=transferToExec,proto3,oneof"`
}

type TokenAction_TokenMint struct {
	TokenMint *TokenMint `protobuf:"bytes,9,opt,name=tokenMint,proto3,oneof"`
}

type TokenAction_TokenBurn struct {
	TokenBurn *TokenBurn `protobuf:"bytes,10,opt,name=tokenBurn,proto3,oneof"`
}

func (*TokenAction_TokenPreCreate) isTokenAction_Value() {}

func (*TokenAction_TokenFinishCreate) isTokenAction_Value() {}

func (*TokenAction_TokenRevokeCreate) isTokenAction_Value() {}

func (*TokenAction_Transfer) isTokenAction_Value() {}

func (*TokenAction_Withdraw) isTokenAction_Value() {}

func (*TokenAction_Genesis) isTokenAction_Value() {}

func (*TokenAction_TransferToExec) isTokenAction_Value() {}

func (*TokenAction_TokenMint) isTokenAction_Value() {}

func (*TokenAction_TokenBurn) isTokenAction_Value() {}

func (m *TokenAction) GetValue() isTokenAction_Value {
	if m != nil {
		return m.Value
	}
	return nil
}

func (m *TokenAction) GetTokenPreCreate() *TokenPreCreate {
	if x, ok := m.GetValue().(*TokenAction_TokenPreCreate); ok {
		return x.TokenPreCreate
	}
	return nil
}

func (m *TokenAction) GetTokenFinishCreate() *TokenFinishCreate {
	if x, ok := m.GetValue().(*TokenAction_TokenFinishCreate); ok {
		return x.TokenFinishCreate
	}
	return nil
}

func (m *TokenAction) GetTokenRevokeCreate() *TokenRevokeCreate {
	if x, ok := m.GetValue().(*TokenAction_TokenRevokeCreate); ok {
		return x.TokenRevokeCreate
	}
	return nil
}

func (m *TokenAction) GetTransfer() *types.AssetsTransfer {
	if x, ok := m.GetValue().(*TokenAction_Transfer); ok {
		return x.Transfer
	}
	return nil
}

func (m *TokenAction) GetWithdraw() *types.AssetsWithdraw {
	if x, ok := m.GetValue().(*TokenAction_Withdraw); ok {
		return x.Withdraw
	}
	return nil
}

func (m *TokenAction) GetGenesis() *types.AssetsGenesis {
	if x, ok := m.GetValue().(*TokenAction_Genesis); ok {
		return x.Genesis
	}
	return nil
}

func (m *TokenAction) GetTransferToExec() *types.AssetsTransferToExec {
	if x, ok := m.GetValue().(*TokenAction_TransferToExec); ok {
		return x.TransferToExec
	}
	return nil
}

func (m *TokenAction) GetTokenMint() *TokenMint {
	if x, ok := m.GetValue().(*TokenAction_TokenMint); ok {
		return x.TokenMint
	}
	return nil
}

func (m *TokenAction) GetTokenBurn() *TokenBurn {
	if x, ok := m.GetValue().(*TokenAction_TokenBurn); ok {
		return x.TokenBurn
	}
	return nil
}

func (m *TokenAction) GetTy() int32 {
	if m != nil {
		return m.Ty
	}
	return 0
}

// XXX_OneofWrappers is for the internal use of the proto package.
func (*TokenAction) XXX_OneofWrappers() []interface{} {
	return []interface{}{
		(*TokenAction_TokenPreCreate)(nil),
		(*TokenAction_TokenFinishCreate)(nil),
		(*TokenAction_TokenRevokeCreate)(nil),
		(*TokenAction_Transfer)(nil),
		(*TokenAction_Withdraw)(nil),
		(*TokenAction_Genesis)(nil),
		(*TokenAction_TransferToExec)(nil),
		(*TokenAction_TokenMint)(nil),
		(*TokenAction_TokenBurn)(nil),
	}
}

//创建token，支持最大精确度是8位小数,即存入数据库的实际总额需要放大1e8倍
type TokenPreCreate struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Symbol               string   `protobuf:"bytes,2,opt,name=symbol,proto3" json:"symbol,omitempty"`
	Introduction         string   `protobuf:"bytes,3,opt,name=introduction,proto3" json:"introduction,omitempty"`
	Total                int64    `protobuf:"varint,4,opt,name=total,proto3" json:"total,omitempty"`
	Price                int64    `protobuf:"varint,5,opt,name=price,proto3" json:"price,omitempty"`
	Owner                string   `protobuf:"bytes,6,opt,name=owner,proto3" json:"owner,omitempty"`
	Category             int32    `protobuf:"varint,7,opt,name=category,proto3" json:"category,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *TokenPreCreate) Reset()         { *m = TokenPreCreate{} }
func (m *TokenPreCreate) String() string { return proto.CompactTextString(m) }
func (*TokenPreCreate) ProtoMessage()    {}
func (*TokenPreCreate) Descriptor() ([]byte, []int) {
	return fileDescriptor_3aff0bcd502840ab, []int{1}
}

func (m *TokenPreCreate) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_TokenPreCreate.Unmarshal(m, b)
}
func (m *TokenPreCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_TokenPreCreate.Marshal(b, m, deterministic)
}
func (m *TokenPreCreate) XXX_Merge(src proto.Message) {
	xxx_messageInfo_TokenPreCreate.Merge(m, src)
}
func (m *TokenPreCreate) XXX_Size() int {
	return xxx_messageInfo_TokenPreCreate.Size(m)
}
func (m *TokenPreCreate) XXX_DiscardUnknown() {
	xxx_messageInfo_TokenPreCreate.DiscardUnknown(m)
}

var xxx_messageInfo_TokenPreCreate proto.InternalMessageInfo

func (m *TokenPreCreate) GetName() string {
	if m != nil {
		return m.Name
	}
	return ""
}

func (m *TokenPreCreate) GetSymbol() string {
	if m != nil {
		return m.Symbol
	}
	return ""
}

func (m *TokenPreCreate) GetIntroduction() string {
	if m != nil {
		return m.Introduction
	}
	return ""
}

func (m *TokenPreCreate) GetTotal() int64 {
	if m != nil {
		return m.Total
	}
	return 0
}

func (m *TokenPreCreate) GetPrice() int64 {
	if m != nil {
		return m.Price
	}
	return 0
}

func (m *TokenPreCreate) GetOwner() string {
	if m != nil {
		return m.Owner
	}
	return ""
}

func (m *TokenPreCreate) GetCategory() int32 {
	if m != nil {
		return m.Category
	}
	return 0
}

type TokenFinishCreate struct {
	Symbol               string   `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
	Owner                string   `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *TokenFinishCreate) Reset()         { *m = TokenFinishCreate{} }
func (m *TokenFinishCreate) String() string { return proto.CompactTextString(m) }
func (*TokenFinishCreate) ProtoMessage()    {}
func (*TokenFinishCreate) Descriptor() ([]byte, []int) {
	return fileDescriptor_3aff0bcd502840ab, []int{2}
}

func (m *TokenFinishCreate) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_TokenFinishCreate.Unmarshal(m, b)
}
func (m *TokenFinishCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_TokenFinishCreate.Marshal(b, m, deterministic)
}
func (m *TokenFinishCreate) XXX_Merge(src proto.Message) {
	xxx_messageInfo_TokenFinishCreate.Merge(m, src)
}
func (m *TokenFinishCreate) XXX_Size() int {
	return xxx_messageInfo_TokenFinishCreate.Size(m)
}
func (m *TokenFinishCreate) XXX_DiscardUnknown() {
	xxx_messageInfo_TokenFinishCreate.DiscardUnknown(m)
}

var xxx_messageInfo_TokenFinishCreate proto.InternalMessageInfo

func (m *TokenFinishCreate) GetSymbol() string {
	if m != nil {
		return m.Symbol
	}
	return ""
}

func (m *TokenFinishCreate) GetOwner() string {
	if m != nil {
		return m.Owner
	}
	return ""
}

type TokenRevokeCreate struct {
	Symbol               string   `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
	Owner                string   `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *TokenRevokeCreate) Reset()         { *m = TokenRevokeCreate{} }
func (m *TokenRevokeCreate) String() string { return proto.CompactTextString(m) }
func (*TokenRevokeCreate) ProtoMessage()    {}
func (*TokenRevokeCreate) Descriptor() ([]byte, []int) {
	return fileDescriptor_3aff0bcd502840ab, []int{3}
}

func (m *TokenRevokeCreate) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_TokenRevokeCreate.Unmarshal(m, b)
}
func (m *TokenRevokeCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_TokenRevokeCreate.Marshal(b, m, deterministic)
}
func (m *TokenRevokeCreate) XXX_Merge(src proto.Message) {
	xxx_messageInfo_TokenRevokeCreate.Merge(m, src)
}
func (m *TokenRevokeCreate) XXX_Size() int {
	return xxx_messageInfo_TokenRevokeCreate.Size(m)
}
func (m *TokenRevokeCreate) XXX_DiscardUnknown() {
	xxx_messageInfo_TokenRevokeCreate.DiscardUnknown(m)
}

var xxx_messageInfo_TokenRevokeCreate proto.InternalMessageInfo

func (m *TokenRevokeCreate) GetSymbol() string {
	if m != nil {
		return m.Symbol
	}
	return ""
}

func (m *TokenRevokeCreate) GetOwner() string {
	if m != nil {
		return m.Owner
	}
	return ""
}

type TokenMint struct {
	Symbol               string   `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
	Amount               int64    `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *TokenMint) Reset()         { *m = TokenMint{} }
func (m *TokenMint) String() string { return proto.CompactTextString(m) }
func (*TokenMint) ProtoMessage()    {}
func (*TokenMint) Descriptor() ([]byte, []int) {
	return fileDescriptor_3aff0bcd502840ab, []int{4}
}

func (m *TokenMint) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_TokenMint.Unmarshal(m, b)
}
func (m *TokenMint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_TokenMint.Marshal(b, m, deterministic)
}
func (m *TokenMint) XXX_Merge(src proto.Message) {
	xxx_messageInfo_TokenMint.Merge(m, src)
}
func (m *TokenMint) XXX_Size() int {
	return xxx_messageInfo_TokenMint.Size(m)
}
func (m *TokenMint) XXX_DiscardUnknown() {
	xxx_messageInfo_TokenMint.DiscardUnknown(m)
}

var xxx_messageInfo_TokenMint proto.InternalMessageInfo

func (m *TokenMint) GetSymbol() string {
	if m != nil {
		return m.Symbol
	}
	return ""
}

func (m *TokenMint) GetAmount() int64 {
	if m != nil {
		return m.Amount
	}
	return 0
}

type TokenBurn struct {
	Symbol               string   `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
	Amount               int64    `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *TokenBurn) Reset()         { *m = TokenBurn{} }
func (m *TokenBurn) String() string { return proto.CompactTextString(m) }
func (*TokenBurn) ProtoMessage()    {}
func (*TokenBurn) Descriptor() ([]byte, []int) {
	return fileDescriptor_3aff0bcd502840ab, []int{5}
}

func (m *TokenBurn) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_TokenBurn.Unmarshal(m, b)
}
func (m *TokenBurn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_TokenBurn.Marshal(b, m, deterministic)
}
func (m *TokenBurn) XXX_Merge(src proto.Message) {
	xxx_messageInfo_TokenBurn.Merge(m, src)
}
func (m *TokenBurn) XXX_Size() int {
	return xxx_messageInfo_TokenBurn.Size(m)
}
func (m *TokenBurn) XXX_DiscardUnknown() {
	xxx_messageInfo_TokenBurn.DiscardUnknown(m)
}

var xxx_messageInfo_TokenBurn proto.InternalMessageInfo

func (m *TokenBurn) GetSymbol() string {
	if m != nil {
		return m.Symbol
	}
	return ""
}

func (m *TokenBurn) GetAmount() int64 {
	if m != nil {
		return m.Amount
	}
	return 0
}

// state db
type Token struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Symbol               string   `protobuf:"bytes,2,opt,name=symbol,proto3" json:"symbol,omitempty"`
	Introduction         string   `protobuf:"bytes,3,opt,name=introduction,proto3" json:"introduction,omitempty"`
	Total                int64    `protobuf:"varint,4,opt,name=total,proto3" json:"total,omitempty"`
	Price                int64    `protobuf:"varint,5,opt,name=price,proto3" json:"price,omitempty"`
	Owner                string   `protobuf:"bytes,6,opt,name=owner,proto3" json:"owner,omitempty"`
	Creator              string   `protobuf:"bytes,7,opt,name=creator,proto3" json:"creator,omitempty"`
	Status               int32    `protobuf:"varint,8,opt,name=status,proto3" json:"status,omitempty"`
	Category             int32    `protobuf:"varint,9,opt,name=category,proto3" json:"category,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *Token) Reset()         { *m = Token{} }
func (m *Token) String() string { return proto.CompactTextString(m) }
func (*Token) ProtoMessage()    {}
func (*Token) Descriptor() ([]byte, []int) {
	return fileDescriptor_3aff0bcd502840ab, []int{6}
}

func (m *Token) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_Token.Unmarshal(m, b)
}
func (m *Token) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_Token.Marshal(b, m, deterministic)
}
func (m *Token) XXX_Merge(src proto.Message) {
	xxx_messageInfo_Token.Merge(m, src)
}
func (m *Token) XXX_Size() int {
	return xxx_messageInfo_Token.Size(m)
}
func (m *Token) XXX_DiscardUnknown() {
	xxx_messageInfo_Token.DiscardUnknown(m)
}

var xxx_messageInfo_Token proto.InternalMessageInfo

func (m *Token) GetName() string {
	if m != nil {
		return m.Name
	}
	return ""
}

func (m *Token) GetSymbol() string {
	if m != nil {
		return m.Symbol
	}
	return ""
}

func (m *Token) GetIntroduction() string {
	if m != nil {
		return m.Introduction
	}
	return ""
}

func (m *Token) GetTotal() int64 {
	if m != nil {
		return m.Total
	}
	return 0
}

func (m *Token) GetPrice() int64 {
	if m != nil {
		return m.Price
	}
	return 0
}

func (m *Token) GetOwner() string {
	if m != nil {
		return m.Owner
	}
	return ""
}

func (m *Token) GetCreator() string {
	if m != nil {
		return m.Creator
	}
	return ""
}

func (m *Token) GetStatus() int32 {
	if m != nil {
		return m.Status
	}
	return 0
}

func (m *Token) GetCategory() int32 {
	if m != nil {
		return m.Category
	}
	return 0
}

// log
type ReceiptToken struct {
	Symbol               string   `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
	Owner                string   `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
	Status               int32    `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *ReceiptToken) Reset()         { *m = ReceiptToken{} }
func (m *ReceiptToken) String() string { return proto.CompactTextString(m) }
func (*ReceiptToken) ProtoMessage()    {}
func (*ReceiptToken) Descriptor() ([]byte, []int) {
	return fileDescriptor_3aff0bcd502840ab, []int{7}
}

func (m *ReceiptToken) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_ReceiptToken.Unmarshal(m, b)
}
func (m *ReceiptToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_ReceiptToken.Marshal(b, m, deterministic)
}
func (m *ReceiptToken) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ReceiptToken.Merge(m, src)
}
func (m *ReceiptToken) XXX_Size() int {
	return xxx_messageInfo_ReceiptToken.Size(m)
}
func (m *ReceiptToken) XXX_DiscardUnknown() {
	xxx_messageInfo_ReceiptToken.DiscardUnknown(m)
}

var xxx_messageInfo_ReceiptToken proto.InternalMessageInfo

func (m *ReceiptToken) GetSymbol() string {
	if m != nil {
		return m.Symbol
	}
	return ""
}

func (m *ReceiptToken) GetOwner() string {
	if m != nil {
		return m.Owner
	}
	return ""
}

func (m *ReceiptToken) GetStatus() int32 {
	if m != nil {
		return m.Status
	}
	return 0
}

type ReceiptTokenAmount struct {
	Prev                 *Token   `protobuf:"bytes,1,opt,name=prev,proto3" json:"prev,omitempty"`
	Current              *Token   `protobuf:"bytes,2,opt,name=current,proto3" json:"current,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *ReceiptTokenAmount) Reset()         { *m = ReceiptTokenAmount{} }
func (m *ReceiptTokenAmount) String() string { return proto.CompactTextString(m) }
func (*ReceiptTokenAmount) ProtoMessage()    {}
func (*ReceiptTokenAmount) Descriptor() ([]byte, []int) {
	return fileDescriptor_3aff0bcd502840ab, []int{8}
}

func (m *ReceiptTokenAmount) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_ReceiptTokenAmount.Unmarshal(m, b)
}
func (m *ReceiptTokenAmount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_ReceiptTokenAmount.Marshal(b, m, deterministic)
}
func (m *ReceiptTokenAmount) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ReceiptTokenAmount.Merge(m, src)
}
func (m *ReceiptTokenAmount) XXX_Size() int {
	return xxx_messageInfo_ReceiptTokenAmount.Size(m)
}
func (m *ReceiptTokenAmount) XXX_DiscardUnknown() {
	xxx_messageInfo_ReceiptTokenAmount.DiscardUnknown(m)
}

var xxx_messageInfo_ReceiptTokenAmount proto.InternalMessageInfo

func (m *ReceiptTokenAmount) GetPrev() *Token {
	if m != nil {
		return m.Prev
	}
	return nil
}

func (m *ReceiptTokenAmount) GetCurrent() *Token {
	if m != nil {
		return m.Current
	}
	return nil
}

// local
type LocalToken struct {
	Name                string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Symbol              string `protobuf:"bytes,2,opt,name=symbol,proto3" json:"symbol,omitempty"`
	Introduction        string `protobuf:"bytes,3,opt,name=introduction,proto3" json:"introduction,omitempty"`
	Total               int64  `protobuf:"varint,4,opt,name=total,proto3" json:"total,omitempty"`
	Price               int64  `protobuf:"varint,5,opt,name=price,proto3" json:"price,omitempty"`
	Owner               string `protobuf:"bytes,6,opt,name=owner,proto3" json:"owner,omitempty"`
	Creator             string `protobuf:"bytes,7,opt,name=creator,proto3" json:"creator,omitempty"`
	Status              int32  `protobuf:"varint,8,opt,name=status,proto3" json:"status,omitempty"`
	CreatedHeight       int64  `protobuf:"varint,9,opt,name=createdHeight,proto3" json:"createdHeight,omitempty"`
	CreatedTime         int64  `protobuf:"varint,10,opt,name=createdTime,proto3" json:"createdTime,omitempty"`
	PrepareCreateHeight int64  `protobuf:"varint,11,opt,name=prepareCreateHeight,proto3" json:"prepareCreateHeight,omitempty"`
	PrepareCreateTime   int64  `protobuf:"varint,12,opt,name=prepareCreateTime,proto3" json:"prepareCreateTime,omitempty"`
	Precision           int32  `protobuf:"varint,13,opt,name=precision,proto3" json:"precision,omitempty"`
	// 如果需要这个项可以单独做一个域存储
	TotalTransferTimes   int64    `protobuf:"varint,14,opt,name=totalTransferTimes,proto3" json:"totalTransferTimes,omitempty"`
	RevokedHeight        int64    `protobuf:"varint,15,opt,name=revokedHeight,proto3" json:"revokedHeight,omitempty"`
	RevokedTime          int64    `protobuf:"varint,16,opt,name=revokedTime,proto3" json:"revokedTime,omitempty"`
	Category             int32    `protobuf:"varint,17,opt,name=category,proto3" json:"category,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *LocalToken) Reset()         { *m = LocalToken{} }
func (m *LocalToken) String() string { return proto.CompactTextString(m) }
func (*LocalToken) ProtoMessage()    {}
func (*LocalToken) Descriptor() ([]byte, []int) {
	return fileDescriptor_3aff0bcd502840ab, []int{9}
}

func (m *LocalToken) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_LocalToken.Unmarshal(m, b)
}
func (m *LocalToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_LocalToken.Marshal(b, m, deterministic)
}
func (m *LocalToken) XXX_Merge(src proto.Message) {
	xxx_messageInfo_LocalToken.Merge(m, src)
}
func (m *LocalToken) XXX_Size() int {
	return xxx_messageInfo_LocalToken.Size(m)
}
func (m *LocalToken) XXX_DiscardUnknown() {
	xxx_messageInfo_LocalToken.DiscardUnknown(m)
}

var xxx_messageInfo_LocalToken proto.InternalMessageInfo

func (m *LocalToken) GetName() string {
	if m != nil {
		return m.Name
	}
	return ""
}

func (m *LocalToken) GetSymbol() string {
	if m != nil {
		return m.Symbol
	}
	return ""
}

func (m *LocalToken) GetIntroduction() string {
	if m != nil {
		return m.Introduction
	}
	return ""
}

func (m *LocalToken) GetTotal() int64 {
	if m != nil {
		return m.Total
	}
	return 0
}

func (m *LocalToken) GetPrice() int64 {
	if m != nil {
		return m.Price
	}
	return 0
}

func (m *LocalToken) GetOwner() string {
	if m != nil {
		return m.Owner
	}
	return ""
}

func (m *LocalToken) GetCreator() string {
	if m != nil {
		return m.Creator
	}
	return ""
}

func (m *LocalToken) GetStatus() int32 {
	if m != nil {
		return m.Status
	}
	return 0
}

func (m *LocalToken) GetCreatedHeight() int64 {
	if m != nil {
		return m.CreatedHeight
	}
	return 0
}

func (m *LocalToken) GetCreatedTime() int64 {
	if m != nil {
		return m.CreatedTime
	}
	return 0
}

func (m *LocalToken) GetPrepareCreateHeight() int64 {
	if m != nil {
		return m.PrepareCreateHeight
	}
	return 0
}

func (m *LocalToken) GetPrepareCreateTime() int64 {
	if m != nil {
		return m.PrepareCreateTime
	}
	return 0
}

func (m *LocalToken) GetPrecision() int32 {
	if m != nil {
		return m.Precision
	}
	return 0
}

func (m *LocalToken) GetTotalTransferTimes() int64 {
	if m != nil {
		return m.TotalTransferTimes
	}
	return 0
}

func (m *LocalToken) GetRevokedHeight() int64 {
	if m != nil {
		return m.RevokedHeight
	}
	return 0
}

func (m *LocalToken) GetRevokedTime() int64 {
	if m != nil {
		return m.RevokedTime
	}
	return 0
}

func (m *LocalToken) GetCategory() int32 {
	if m != nil {
		return m.Category
	}
	return 0
}

type LocalLogs struct {
	Symbol               string   `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
	TxIndex              string   `protobuf:"bytes,2,opt,name=txIndex,proto3" json:"txIndex,omitempty"`
	ActionType           int32    `protobuf:"varint,3,opt,name=actionType,proto3" json:"actionType,omitempty"`
	TxHash               string   `protobuf:"bytes,4,opt,name=txHash,proto3" json:"txHash,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *LocalLogs) Reset()         { *m = LocalLogs{} }
func (m *LocalLogs) String() string { return proto.CompactTextString(m) }
func (*LocalLogs) ProtoMessage()    {}
func (*LocalLogs) Descriptor() ([]byte, []int) {
	return fileDescriptor_3aff0bcd502840ab, []int{10}
}

func (m *LocalLogs) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_LocalLogs.Unmarshal(m, b)
}
func (m *LocalLogs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_LocalLogs.Marshal(b, m, deterministic)
}
func (m *LocalLogs) XXX_Merge(src proto.Message) {
	xxx_messageInfo_LocalLogs.Merge(m, src)
}
func (m *LocalLogs) XXX_Size() int {
	return xxx_messageInfo_LocalLogs.Size(m)
}
func (m *LocalLogs) XXX_DiscardUnknown() {
	xxx_messageInfo_LocalLogs.DiscardUnknown(m)
}

var xxx_messageInfo_LocalLogs proto.InternalMessageInfo

func (m *LocalLogs) GetSymbol() string {
	if m != nil {
		return m.Symbol
	}
	return ""
}

func (m *LocalLogs) GetTxIndex() string {
	if m != nil {
		return m.TxIndex
	}
	return ""
}

func (m *LocalLogs) GetActionType() int32 {
	if m != nil {
		return m.ActionType
	}
	return 0
}

func (m *LocalLogs) GetTxHash() string {
	if m != nil {
		return m.TxHash
	}
	return ""
}

// query
type ReqTokens struct {
	QueryAll             bool     `protobuf:"varint,1,opt,name=queryAll,proto3" json:"queryAll,omitempty"`
	Status               int32    `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
	Tokens               []string `protobuf:"bytes,3,rep,name=tokens,proto3" json:"tokens,omitempty"`
	SymbolOnly           bool     `protobuf:"varint,4,opt,name=symbolOnly,proto3" json:"symbolOnly,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *ReqTokens) Reset()         { *m = ReqTokens{} }
func (m *ReqTokens) String() string { return proto.CompactTextString(m) }
func (*ReqTokens) ProtoMessage()    {}
func (*ReqTokens) Descriptor() ([]byte, []int) {
	return fileDescriptor_3aff0bcd502840ab, []int{11}
}

func (m *ReqTokens) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_ReqTokens.Unmarshal(m, b)
}
func (m *ReqTokens) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_ReqTokens.Marshal(b, m, deterministic)
}
func (m *ReqTokens) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ReqTokens.Merge(m, src)
}
func (m *ReqTokens) XXX_Size() int {
	return xxx_messageInfo_ReqTokens.Size(m)
}
func (m *ReqTokens) XXX_DiscardUnknown() {
	xxx_messageInfo_ReqTokens.DiscardUnknown(m)
}

var xxx_messageInfo_ReqTokens proto.InternalMessageInfo

func (m *ReqTokens) GetQueryAll() bool {
	if m != nil {
		return m.QueryAll
	}
	return false
}

func (m *ReqTokens) GetStatus() int32 {
	if m != nil {
		return m.Status
	}
	return 0
}

func (m *ReqTokens) GetTokens() []string {
	if m != nil {
		return m.Tokens
	}
	return nil
}

func (m *ReqTokens) GetSymbolOnly() bool {
	if m != nil {
		return m.SymbolOnly
	}
	return false
}

type ReplyTokens struct {
	Tokens               []*LocalToken `protobuf:"bytes,1,rep,name=tokens,proto3" json:"tokens,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (m *ReplyTokens) Reset()         { *m = ReplyTokens{} }
func (m *ReplyTokens) String() string { return proto.CompactTextString(m) }
func (*ReplyTokens) ProtoMessage()    {}
func (*ReplyTokens) Descriptor() ([]byte, []int) {
	return fileDescriptor_3aff0bcd502840ab, []int{12}
}

func (m *ReplyTokens) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_ReplyTokens.Unmarshal(m, b)
}
func (m *ReplyTokens) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_ReplyTokens.Marshal(b, m, deterministic)
}
func (m *ReplyTokens) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ReplyTokens.Merge(m, src)
}
func (m *ReplyTokens) XXX_Size() int {
	return xxx_messageInfo_ReplyTokens.Size(m)
}
func (m *ReplyTokens) XXX_DiscardUnknown() {
	xxx_messageInfo_ReplyTokens.DiscardUnknown(m)
}

var xxx_messageInfo_ReplyTokens proto.InternalMessageInfo

func (m *ReplyTokens) GetTokens() []*LocalToken {
	if m != nil {
		return m.Tokens
	}
	return nil
}

type TokenRecv struct {
	Token                string   `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	Recv                 int64    `protobuf:"varint,2,opt,name=recv,proto3" json:"recv,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *TokenRecv) Reset()         { *m = TokenRecv{} }
func (m *TokenRecv) String() string { return proto.CompactTextString(m) }
func (*TokenRecv) ProtoMessage()    {}
func (*TokenRecv) Descriptor() ([]byte, []int) {
	return fileDescriptor_3aff0bcd502840ab, []int{13}
}

func (m *TokenRecv) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_TokenRecv.Unmarshal(m, b)
}
func (m *TokenRecv) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_TokenRecv.Marshal(b, m, deterministic)
}
func (m *TokenRecv) XXX_Merge(src proto.Message) {
	xxx_messageInfo_TokenRecv.Merge(m, src)
}
func (m *TokenRecv) XXX_Size() int {
	return xxx_messageInfo_TokenRecv.Size(m)
}
func (m *TokenRecv) XXX_DiscardUnknown() {
	xxx_messageInfo_TokenRecv.DiscardUnknown(m)
}

var xxx_messageInfo_TokenRecv proto.InternalMessageInfo

func (m *TokenRecv) GetToken() string {
	if m != nil {
		return m.Token
	}
	return ""
}

func (m *TokenRecv) GetRecv() int64 {
	if m != nil {
		return m.Recv
	}
	return 0
}

type ReplyAddrRecvForTokens struct {
	TokenRecvs           []*TokenRecv `protobuf:"bytes,1,rep,name=tokenRecvs,proto3" json:"tokenRecvs,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (m *ReplyAddrRecvForTokens) Reset()         { *m = ReplyAddrRecvForTokens{} }
func (m *ReplyAddrRecvForTokens) String() string { return proto.CompactTextString(m) }
func (*ReplyAddrRecvForTokens) ProtoMessage()    {}
func (*ReplyAddrRecvForTokens) Descriptor() ([]byte, []int) {
	return fileDescriptor_3aff0bcd502840ab, []int{14}
}

func (m *ReplyAddrRecvForTokens) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_ReplyAddrRecvForTokens.Unmarshal(m, b)
}
func (m *ReplyAddrRecvForTokens) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_ReplyAddrRecvForTokens.Marshal(b, m, deterministic)
}
func (m *ReplyAddrRecvForTokens) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ReplyAddrRecvForTokens.Merge(m, src)
}
func (m *ReplyAddrRecvForTokens) XXX_Size() int {
	return xxx_messageInfo_ReplyAddrRecvForTokens.Size(m)
}
func (m *ReplyAddrRecvForTokens) XXX_DiscardUnknown() {
	xxx_messageInfo_ReplyAddrRecvForTokens.DiscardUnknown(m)
}

var xxx_messageInfo_ReplyAddrRecvForTokens proto.InternalMessageInfo

func (m *ReplyAddrRecvForTokens) GetTokenRecvs() []*TokenRecv {
	if m != nil {
		return m.TokenRecvs
	}
	return nil
}

type ReqTokenBalance struct {
	Addresses            []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"`
	TokenSymbol          string   `protobuf:"bytes,2,opt,name=tokenSymbol,proto3" json:"tokenSymbol,omitempty"`
	Execer               string   `protobuf:"bytes,3,opt,name=execer,proto3" json:"execer,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *ReqTokenBalance) Reset()         { *m = ReqTokenBalance{} }
func (m *ReqTokenBalance) String() string { return proto.CompactTextString(m) }
func (*ReqTokenBalance) ProtoMessage()    {}
func (*ReqTokenBalance) Descriptor() ([]byte, []int) {
	return fileDescriptor_3aff0bcd502840ab, []int{15}
}

func (m *ReqTokenBalance) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_ReqTokenBalance.Unmarshal(m, b)
}
func (m *ReqTokenBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_ReqTokenBalance.Marshal(b, m, deterministic)
}
func (m *ReqTokenBalance) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ReqTokenBalance.Merge(m, src)
}
func (m *ReqTokenBalance) XXX_Size() int {
	return xxx_messageInfo_ReqTokenBalance.Size(m)
}
func (m *ReqTokenBalance) XXX_DiscardUnknown() {
	xxx_messageInfo_ReqTokenBalance.DiscardUnknown(m)
}

var xxx_messageInfo_ReqTokenBalance proto.InternalMessageInfo

func (m *ReqTokenBalance) GetAddresses() []string {
	if m != nil {
		return m.Addresses
	}
	return nil
}

func (m *ReqTokenBalance) GetTokenSymbol() string {
	if m != nil {
		return m.TokenSymbol
	}
	return ""
}

func (m *ReqTokenBalance) GetExecer() string {
	if m != nil {
		return m.Execer
	}
	return ""
}

type ReqAccountTokenAssets struct {
	Address              string   `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Execer               string   `protobuf:"bytes,2,opt,name=execer,proto3" json:"execer,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *ReqAccountTokenAssets) Reset()         { *m = ReqAccountTokenAssets{} }
func (m *ReqAccountTokenAssets) String() string { return proto.CompactTextString(m) }
func (*ReqAccountTokenAssets) ProtoMessage()    {}
func (*ReqAccountTokenAssets) Descriptor() ([]byte, []int) {
	return fileDescriptor_3aff0bcd502840ab, []int{16}
}

func (m *ReqAccountTokenAssets) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_ReqAccountTokenAssets.Unmarshal(m, b)
}
func (m *ReqAccountTokenAssets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_ReqAccountTokenAssets.Marshal(b, m, deterministic)
}
func (m *ReqAccountTokenAssets) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ReqAccountTokenAssets.Merge(m, src)
}
func (m *ReqAccountTokenAssets) XXX_Size() int {
	return xxx_messageInfo_ReqAccountTokenAssets.Size(m)
}
func (m *ReqAccountTokenAssets) XXX_DiscardUnknown() {
	xxx_messageInfo_ReqAccountTokenAssets.DiscardUnknown(m)
}

var xxx_messageInfo_ReqAccountTokenAssets proto.InternalMessageInfo

func (m *ReqAccountTokenAssets) GetAddress() string {
	if m != nil {
		return m.Address
	}
	return ""
}

func (m *ReqAccountTokenAssets) GetExecer() string {
	if m != nil {
		return m.Execer
	}
	return ""
}

type TokenAsset struct {
	Symbol               string         `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
	Account              *types.Account `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (m *TokenAsset) Reset()         { *m = TokenAsset{} }
func (m *TokenAsset) String() string { return proto.CompactTextString(m) }
func (*TokenAsset) ProtoMessage()    {}
func (*TokenAsset) Descriptor() ([]byte, []int) {
	return fileDescriptor_3aff0bcd502840ab, []int{17}
}

func (m *TokenAsset) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_TokenAsset.Unmarshal(m, b)
}
func (m *TokenAsset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_TokenAsset.Marshal(b, m, deterministic)
}
func (m *TokenAsset) XXX_Merge(src proto.Message) {
	xxx_messageInfo_TokenAsset.Merge(m, src)
}
func (m *TokenAsset) XXX_Size() int {
	return xxx_messageInfo_TokenAsset.Size(m)
}
func (m *TokenAsset) XXX_DiscardUnknown() {
	xxx_messageInfo_TokenAsset.DiscardUnknown(m)
}

var xxx_messageInfo_TokenAsset proto.InternalMessageInfo

func (m *TokenAsset) GetSymbol() string {
	if m != nil {
		return m.Symbol
	}
	return ""
}

func (m *TokenAsset) GetAccount() *types.Account {
	if m != nil {
		return m.Account
	}
	return nil
}

type ReplyAccountTokenAssets struct {
	TokenAssets          []*TokenAsset `protobuf:"bytes,1,rep,name=tokenAssets,proto3" json:"tokenAssets,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (m *ReplyAccountTokenAssets) Reset()         { *m = ReplyAccountTokenAssets{} }
func (m *ReplyAccountTokenAssets) String() string { return proto.CompactTextString(m) }
func (*ReplyAccountTokenAssets) ProtoMessage()    {}
func (*ReplyAccountTokenAssets) Descriptor() ([]byte, []int) {
	return fileDescriptor_3aff0bcd502840ab, []int{18}
}

func (m *ReplyAccountTokenAssets) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_ReplyAccountTokenAssets.Unmarshal(m, b)
}
func (m *ReplyAccountTokenAssets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_ReplyAccountTokenAssets.Marshal(b, m, deterministic)
}
func (m *ReplyAccountTokenAssets) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ReplyAccountTokenAssets.Merge(m, src)
}
func (m *ReplyAccountTokenAssets) XXX_Size() int {
	return xxx_messageInfo_ReplyAccountTokenAssets.Size(m)
}
func (m *ReplyAccountTokenAssets) XXX_DiscardUnknown() {
	xxx_messageInfo_ReplyAccountTokenAssets.DiscardUnknown(m)
}

var xxx_messageInfo_ReplyAccountTokenAssets proto.InternalMessageInfo

func (m *ReplyAccountTokenAssets) GetTokenAssets() []*TokenAsset {
	if m != nil {
		return m.TokenAssets
	}
	return nil
}

type ReqAddrTokens struct {
	Addr                 string   `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	Status               int32    `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
	Token                []string `protobuf:"bytes,3,rep,name=token,proto3" json:"token,omitempty"`
	Direction            int32    `protobuf:"varint,4,opt,name=direction,proto3" json:"direction,omitempty"`
	Count                int32    `protobuf:"varint,5,opt,name=count,proto3" json:"count,omitempty"`
	FromKey              string   `protobuf:"bytes,6,opt,name=fromKey,proto3" json:"fromKey,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *ReqAddrTokens) Reset()         { *m = ReqAddrTokens{} }
func (m *ReqAddrTokens) String() string { return proto.CompactTextString(m) }
func (*ReqAddrTokens) ProtoMessage()    {}
func (*ReqAddrTokens) Descriptor() ([]byte, []int) {
	return fileDescriptor_3aff0bcd502840ab, []int{19}
}

func (m *ReqAddrTokens) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_ReqAddrTokens.Unmarshal(m, b)
}
func (m *ReqAddrTokens) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_ReqAddrTokens.Marshal(b, m, deterministic)
}
func (m *ReqAddrTokens) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ReqAddrTokens.Merge(m, src)
}
func (m *ReqAddrTokens) XXX_Size() int {
	return xxx_messageInfo_ReqAddrTokens.Size(m)
}
func (m *ReqAddrTokens) XXX_DiscardUnknown() {
	xxx_messageInfo_ReqAddrTokens.DiscardUnknown(m)
}

var xxx_messageInfo_ReqAddrTokens proto.InternalMessageInfo

func (m *ReqAddrTokens) GetAddr() string {
	if m != nil {
		return m.Addr
	}
	return ""
}

func (m *ReqAddrTokens) GetStatus() int32 {
	if m != nil {
		return m.Status
	}
	return 0
}

func (m *ReqAddrTokens) GetToken() []string {
	if m != nil {
		return m.Token
	}
	return nil
}

func (m *ReqAddrTokens) GetDirection() int32 {
	if m != nil {
		return m.Direction
	}
	return 0
}

func (m *ReqAddrTokens) GetCount() int32 {
	if m != nil {
		return m.Count
	}
	return 0
}

func (m *ReqAddrTokens) GetFromKey() string {
	if m != nil {
		return m.FromKey
	}
	return ""
}

type ReqTokenTx struct {
	Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
	//表示取所有/from/to/其他的hash列表
	Flag                 int32    `protobuf:"varint,2,opt,name=flag,proto3" json:"flag,omitempty"`
	Count                int32    `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
	Direction            int32    `protobuf:"varint,4,opt,name=direction,proto3" json:"direction,omitempty"`
	Height               int64    `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"`
	Index                int64    `protobuf:"varint,6,opt,name=index,proto3" json:"index,omitempty"`
	Addr                 string   `protobuf:"bytes,7,opt,name=addr,proto3" json:"addr,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *ReqTokenTx) Reset()         { *m = ReqTokenTx{} }
func (m *ReqTokenTx) String() string { return proto.CompactTextString(m) }
func (*ReqTokenTx) ProtoMessage()    {}
func (*ReqTokenTx) Descriptor() ([]byte, []int) {
	return fileDescriptor_3aff0bcd502840ab, []int{20}
}

func (m *ReqTokenTx) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_ReqTokenTx.Unmarshal(m, b)
}
func (m *ReqTokenTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_ReqTokenTx.Marshal(b, m, deterministic)
}
func (m *ReqTokenTx) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ReqTokenTx.Merge(m, src)
}
func (m *ReqTokenTx) XXX_Size() int {
	return xxx_messageInfo_ReqTokenTx.Size(m)
}
func (m *ReqTokenTx) XXX_DiscardUnknown() {
	xxx_messageInfo_ReqTokenTx.DiscardUnknown(m)
}

var xxx_messageInfo_ReqTokenTx proto.InternalMessageInfo

func (m *ReqTokenTx) GetSymbol() string {
	if m != nil {
		return m.Symbol
	}
	return ""
}

func (m *ReqTokenTx) GetFlag() int32 {
	if m != nil {
		return m.Flag
	}
	return 0
}

func (m *ReqTokenTx) GetCount() int32 {
	if m != nil {
		return m.Count
	}
	return 0
}

func (m *ReqTokenTx) GetDirection() int32 {
	if m != nil {
		return m.Direction
	}
	return 0
}

func (m *ReqTokenTx) GetHeight() int64 {
	if m != nil {
		return m.Height
	}
	return 0
}

func (m *ReqTokenTx) GetIndex() int64 {
	if m != nil {
		return m.Index
	}
	return 0
}

func (m *ReqTokenTx) GetAddr() string {
	if m != nil {
		return m.Addr
	}
	return ""
}

type ReplyTokenLogs struct {
	Logs                 []*LocalLogs `protobuf:"bytes,1,rep,name=logs,proto3" json:"logs,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (m *ReplyTokenLogs) Reset()         { *m = ReplyTokenLogs{} }
func (m *ReplyTokenLogs) String() string { return proto.CompactTextString(m) }
func (*ReplyTokenLogs) ProtoMessage()    {}
func (*ReplyTokenLogs) Descriptor() ([]byte, []int) {
	return fileDescriptor_3aff0bcd502840ab, []int{21}
}

func (m *ReplyTokenLogs) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_ReplyTokenLogs.Unmarshal(m, b)
}
func (m *ReplyTokenLogs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_ReplyTokenLogs.Marshal(b, m, deterministic)
}
func (m *ReplyTokenLogs) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ReplyTokenLogs.Merge(m, src)
}
func (m *ReplyTokenLogs) XXX_Size() int {
	return xxx_messageInfo_ReplyTokenLogs.Size(m)
}
func (m *ReplyTokenLogs) XXX_DiscardUnknown() {
	xxx_messageInfo_ReplyTokenLogs.DiscardUnknown(m)
}

var xxx_messageInfo_ReplyTokenLogs proto.InternalMessageInfo

func (m *ReplyTokenLogs) GetLogs() []*LocalLogs {
	if m != nil {
		return m.Logs
	}
	return nil
}

func init() {
	proto.RegisterType((*TokenAction)(nil), "types.TokenAction")
	proto.RegisterType((*TokenPreCreate)(nil), "types.TokenPreCreate")
	proto.RegisterType((*TokenFinishCreate)(nil), "types.TokenFinishCreate")
	proto.RegisterType((*TokenRevokeCreate)(nil), "types.TokenRevokeCreate")
	proto.RegisterType((*TokenMint)(nil), "types.TokenMint")
	proto.RegisterType((*TokenBurn)(nil), "types.TokenBurn")
	proto.RegisterType((*Token)(nil), "types.Token")
	proto.RegisterType((*ReceiptToken)(nil), "types.ReceiptToken")
	proto.RegisterType((*ReceiptTokenAmount)(nil), "types.ReceiptTokenAmount")
	proto.RegisterType((*LocalToken)(nil), "types.LocalToken")
	proto.RegisterType((*LocalLogs)(nil), "types.LocalLogs")
	proto.RegisterType((*ReqTokens)(nil), "types.ReqTokens")
	proto.RegisterType((*ReplyTokens)(nil), "types.ReplyTokens")
	proto.RegisterType((*TokenRecv)(nil), "types.TokenRecv")
	proto.RegisterType((*ReplyAddrRecvForTokens)(nil), "types.ReplyAddrRecvForTokens")
	proto.RegisterType((*ReqTokenBalance)(nil), "types.ReqTokenBalance")
	proto.RegisterType((*ReqAccountTokenAssets)(nil), "types.ReqAccountTokenAssets")
	proto.RegisterType((*TokenAsset)(nil), "types.TokenAsset")
	proto.RegisterType((*ReplyAccountTokenAssets)(nil), "types.ReplyAccountTokenAssets")
	proto.RegisterType((*ReqAddrTokens)(nil), "types.ReqAddrTokens")
	proto.RegisterType((*ReqTokenTx)(nil), "types.ReqTokenTx")
	proto.RegisterType((*ReplyTokenLogs)(nil), "types.ReplyTokenLogs")
}

func init() {
	proto.RegisterFile("token.proto", fileDescriptor_3aff0bcd502840ab)
}

var fileDescriptor_3aff0bcd502840ab = []byte{
	// 1115 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x57, 0xdd, 0x6a, 0xe3, 0xc6,
	0x17, 0xb7, 0x2d, 0x7f, 0x44, 0xc7, 0x89, 0x13, 0xcf, 0x7f, 0x37, 0x7f, 0x91, 0x2e, 0x8b, 0x11,
	0x4b, 0x49, 0xa1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xaf, 0x75, 0x38, 0x50, 0xb9, 0x46, 0x51, 0xd1, 0x19, 0x06, 0x4d, 0x95, 0x54, 0xb1,
	0x32, 0xd5, 0xf7, 0x4e, 0x22, 0x96, 0x4c, 0xd0, 0x3c, 0x34, 0x4c, 0x78, 0x01, 0x6e, 0x14, 0x0b,
	0xd4, 0x5b, 0xb4, 0xa9, 0x17, 0x41, 0xa9, 0x50, 0x31, 0x3a, 0xd3, 0x16, 0x59, 0xb4, 0xa0, 0x2a,
	0x7b, 0x23, 0xd2, 0xd9, 0x77, 0xb8, 0x32, 0xeb, 0xb2, 0x10, 0xfd, 0xdf, 0xeb, 0x00, 0x45, 0xe3,
	0xc7, 0xcb, 0x9d, 0x25, 0x64, 0xd0, 0xbc, 0x99, 0x06, 0x13, 0x73, 0x41, 0xfa, 0x5e, 0x1f, 0xe5,
	0xd8, 0x47, 0xfd, 0xf3, 0xf5, 0x8e, 0xa1, 0x7d, 0xab, 0x17, 0x8e, 0x5e, 0xe6, 0x46, 0x52, 0x58,
	0x31, 0x2d, 0x81, 0xb6, 0xde, 0xf1, 0x24, 0x94, 0xc5, 0xea, 0xac, 0x8b, 0xe5, 0x7f, 0x0e, 0xbd,
	0xf5, 0x94, 0xd1, 0x6a, 0x79, 0x05, 0xcd, 0x69, 0x3a, 0xd9, 0xa4, 0x79, 0xb9, 0x7a, 0x38, 0x59,
	0x2f, 0xae, 0x4d, 0x31, 0xd9, 0x57, 0x70, 0xf8, 0x06, 0x65, 0x85, 0xe9, 0xc7, 0x26, 0x66, 0x63,
	0x02, 0x4e, 0x0e, 0xab, 0x3c, 0xc9, 0xfd, 0xda, 0x87, 0x36, 0xfd, 0x5d, 0xb9, 0xfc, 0x3b, 0x00,
	0x00, 0xff, 0xff, 0xe2, 0xae, 0x58, 0x34, 0xe6, 0x0c, 0x00, 0x00,
}

// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConnInterface

// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion6

// TokenClient is the client API for Token service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type TokenClient interface {
	// token 对外提供服务的接口
	//区块链接口
	GetTokenBalance(ctx context.Context, in *ReqTokenBalance, opts ...grpc.CallOption) (*types.Accounts, error)
}

type tokenClient struct {
	cc grpc.ClientConnInterface
}

func NewTokenClient(cc grpc.ClientConnInterface) TokenClient {
	return &tokenClient{cc}
}

func (c *tokenClient) GetTokenBalance(ctx context.Context, in *ReqTokenBalance, opts ...grpc.CallOption) (*types.Accounts, error) {
	out := new(types.Accounts)
	err := c.cc.Invoke(ctx, "/types.token/GetTokenBalance", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// TokenServer is the server API for Token service.
type TokenServer interface {
	// token 对外提供服务的接口
	//区块链接口
	GetTokenBalance(context.Context, *ReqTokenBalance) (*types.Accounts, error)
}

// UnimplementedTokenServer can be embedded to have forward compatible implementations.
type UnimplementedTokenServer struct {
}

func (*UnimplementedTokenServer) GetTokenBalance(ctx context.Context, req *ReqTokenBalance) (*types.Accounts, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetTokenBalance not implemented")
}

func RegisterTokenServer(s *grpc.Server, srv TokenServer) {
	s.RegisterService(&_Token_serviceDesc, srv)
}

func _Token_GetTokenBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ReqTokenBalance)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(TokenServer).GetTokenBalance(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/types.token/GetTokenBalance",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(TokenServer).GetTokenBalance(ctx, req.(*ReqTokenBalance))
	}
	return interceptor(ctx, in, info, handler)
}

var _Token_serviceDesc = grpc.ServiceDesc{
	ServiceName: "types.token",
	HandlerType: (*TokenServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetTokenBalance",
			Handler:    _Token_GetTokenBalance_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "token.proto",
}
