// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.26.0
// 	protoc        v3.9.1
// source: receipt4l2.proto

package types

import (
	reflect "reflect"
	sync "sync"

	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
)

const (
	// Verify that this generated code is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	// Verify that runtime/protoimpl is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

type AccountTokenBalanceReceipt struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	AccountId     uint64 `protobuf:"varint,1,opt,name=accountId,proto3" json:"accountId,omitempty"`    //accountId其实就是叶子的totalIndex
	EthAddress    string `protobuf:"bytes,2,opt,name=ethAddress,proto3" json:"ethAddress,omitempty"`   //账户对应的以太坊地址
	Chain33Addr   string `protobuf:"bytes,3,opt,name=chain33Addr,proto3" json:"chain33Addr,omitempty"` //chain33地址
	TokenId       uint64 `protobuf:"varint,4,opt,name=tokenId,proto3" json:"tokenId,omitempty"`        //叶子下拥有的tokenId
	BalanceBefore string `protobuf:"bytes,5,opt,name=balanceBefore,proto3" json:"balanceBefore,omitempty"`
	BalanceAfter  string `protobuf:"bytes,6,opt,name=balanceAfter,proto3" json:"balanceAfter,omitempty"`
}

func (x *AccountTokenBalanceReceipt) Reset() {
	*x = AccountTokenBalanceReceipt{}
	if protoimpl.UnsafeEnabled {
		mi := &file_receipt4l2_proto_msgTypes[0]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *AccountTokenBalanceReceipt) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*AccountTokenBalanceReceipt) ProtoMessage() {}

func (x *AccountTokenBalanceReceipt) ProtoReflect() protoreflect.Message {
	mi := &file_receipt4l2_proto_msgTypes[0]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use AccountTokenBalanceReceipt.ProtoReflect.Descriptor instead.
func (*AccountTokenBalanceReceipt) Descriptor() ([]byte, []int) {
	return file_receipt4l2_proto_rawDescGZIP(), []int{0}
}

func (x *AccountTokenBalanceReceipt) GetAccountId() uint64 {
	if x != nil {
		return x.AccountId
	}
	return 0
}

func (x *AccountTokenBalanceReceipt) GetEthAddress() string {
	if x != nil {
		return x.EthAddress
	}
	return ""
}

func (x *AccountTokenBalanceReceipt) GetChain33Addr() string {
	if x != nil {
		return x.Chain33Addr
	}
	return ""
}

func (x *AccountTokenBalanceReceipt) GetTokenId() uint64 {
	if x != nil {
		return x.TokenId
	}
	return 0
}

func (x *AccountTokenBalanceReceipt) GetBalanceBefore() string {
	if x != nil {
		return x.BalanceBefore
	}
	return ""
}

func (x *AccountTokenBalanceReceipt) GetBalanceAfter() string {
	if x != nil {
		return x.BalanceAfter
	}
	return ""
}

type TransferReceipt4L2 struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	From *AccountTokenBalanceReceipt `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	To   *AccountTokenBalanceReceipt `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
}

func (x *TransferReceipt4L2) Reset() {
	*x = TransferReceipt4L2{}
	if protoimpl.UnsafeEnabled {
		mi := &file_receipt4l2_proto_msgTypes[1]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *TransferReceipt4L2) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*TransferReceipt4L2) ProtoMessage() {}

func (x *TransferReceipt4L2) ProtoReflect() protoreflect.Message {
	mi := &file_receipt4l2_proto_msgTypes[1]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use TransferReceipt4L2.ProtoReflect.Descriptor instead.
func (*TransferReceipt4L2) Descriptor() ([]byte, []int) {
	return file_receipt4l2_proto_rawDescGZIP(), []int{1}
}

func (x *TransferReceipt4L2) GetFrom() *AccountTokenBalanceReceipt {
	if x != nil {
		return x.From
	}
	return nil
}

func (x *TransferReceipt4L2) GetTo() *AccountTokenBalanceReceipt {
	if x != nil {
		return x.To
	}
	return nil
}

type SetPubKeyReceipt struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	AccountId uint64    `protobuf:"varint,1,opt,name=accountId,proto3" json:"accountId,omitempty"`
	PubKey    *ZkPubKey `protobuf:"bytes,2,opt,name=pubKey,proto3" json:"pubKey,omitempty"`
	PubKeyTy  uint64    `protobuf:"varint,3,opt,name=pubKeyTy,proto3" json:"pubKeyTy,omitempty"`
}

func (x *SetPubKeyReceipt) Reset() {
	*x = SetPubKeyReceipt{}
	if protoimpl.UnsafeEnabled {
		mi := &file_receipt4l2_proto_msgTypes[2]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *SetPubKeyReceipt) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*SetPubKeyReceipt) ProtoMessage() {}

func (x *SetPubKeyReceipt) ProtoReflect() protoreflect.Message {
	mi := &file_receipt4l2_proto_msgTypes[2]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use SetPubKeyReceipt.ProtoReflect.Descriptor instead.
func (*SetPubKeyReceipt) Descriptor() ([]byte, []int) {
	return file_receipt4l2_proto_rawDescGZIP(), []int{2}
}

func (x *SetPubKeyReceipt) GetAccountId() uint64 {
	if x != nil {
		return x.AccountId
	}
	return 0
}

func (x *SetPubKeyReceipt) GetPubKey() *ZkPubKey {
	if x != nil {
		return x.PubKey
	}
	return nil
}

func (x *SetPubKeyReceipt) GetPubKeyTy() uint64 {
	if x != nil {
		return x.PubKeyTy
	}
	return 0
}

var File_receipt4l2_proto protoreflect.FileDescriptor

var file_receipt4l2_proto_rawDesc = []byte{
	0x0a, 0x10, 0x72, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x34, 0x6c, 0x32, 0x2e, 0x70, 0x72, 0x6f,
	0x74, 0x6f, 0x12, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x1a, 0x0d, 0x77, 0x69, 0x74, 0x6e, 0x65,
	0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe0, 0x01, 0x0a, 0x1a, 0x41, 0x63, 0x63,
	0x6f, 0x75, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65,
	0x52, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75,
	0x6e, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f,
	0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x65, 0x74, 0x68, 0x41, 0x64, 0x64, 0x72,
	0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x65, 0x74, 0x68, 0x41, 0x64,
	0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x33, 0x33,
	0x41, 0x64, 0x64, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x68, 0x61, 0x69,
	0x6e, 0x33, 0x33, 0x41, 0x64, 0x64, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
	0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x49,
	0x64, 0x12, 0x24, 0x0a, 0x0d, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x42, 0x65, 0x66, 0x6f,
	0x72, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63,
	0x65, 0x42, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x62, 0x61, 0x6c, 0x61, 0x6e,
	0x63, 0x65, 0x41, 0x66, 0x74, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x62,
	0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x41, 0x66, 0x74, 0x65, 0x72, 0x22, 0x7e, 0x0a, 0x12, 0x54,
	0x72, 0x61, 0x6e, 0x73, 0x66, 0x65, 0x72, 0x52, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x34, 0x6c,
	0x32, 0x12, 0x35, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
	0x21, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x54,
	0x6f, 0x6b, 0x65, 0x6e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69,
	0x70, 0x74, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x31, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x02,
	0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x41, 0x63, 0x63,
	0x6f, 0x75, 0x6e, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65,
	0x52, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x52, 0x02, 0x74, 0x6f, 0x22, 0x75, 0x0a, 0x10, 0x53,
	0x65, 0x74, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x63, 0x65, 0x69, 0x70, 0x74, 0x12,
	0x1c, 0x0a, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01,
	0x28, 0x04, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x27, 0x0a,
	0x06, 0x70, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e,
	0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x5a, 0x6b, 0x50, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x52, 0x06,
	0x70, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x75, 0x62, 0x4b, 0x65, 0x79,
	0x54, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x70, 0x75, 0x62, 0x4b, 0x65, 0x79,
	0x54, 0x79, 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2e, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06,
	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}

var (
	file_receipt4l2_proto_rawDescOnce sync.Once
	file_receipt4l2_proto_rawDescData = file_receipt4l2_proto_rawDesc
)

func file_receipt4l2_proto_rawDescGZIP() []byte {
	file_receipt4l2_proto_rawDescOnce.Do(func() {
		file_receipt4l2_proto_rawDescData = protoimpl.X.CompressGZIP(file_receipt4l2_proto_rawDescData)
	})
	return file_receipt4l2_proto_rawDescData
}

var file_receipt4l2_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_receipt4l2_proto_goTypes = []interface{}{
	(*AccountTokenBalanceReceipt)(nil), // 0: types.AccountTokenBalanceReceipt
	(*TransferReceipt4L2)(nil),         // 1: types.TransferReceipt4l2
	(*SetPubKeyReceipt)(nil),           // 2: types.SetPubKeyReceipt
	(*ZkPubKey)(nil),                   // 3: types.ZkPubKey
}
var file_receipt4l2_proto_depIdxs = []int32{
	0, // 0: types.TransferReceipt4l2.from:type_name -> types.AccountTokenBalanceReceipt
	0, // 1: types.TransferReceipt4l2.to:type_name -> types.AccountTokenBalanceReceipt
	3, // 2: types.SetPubKeyReceipt.pubKey:type_name -> types.ZkPubKey
	3, // [3:3] is the sub-list for method output_type
	3, // [3:3] is the sub-list for method input_type
	3, // [3:3] is the sub-list for extension type_name
	3, // [3:3] is the sub-list for extension extendee
	0, // [0:3] is the sub-list for field type_name
}

func init() { file_receipt4l2_proto_init() }
func file_receipt4l2_proto_init() {
	if File_receipt4l2_proto != nil {
		return
	}
	file_witness_proto_init()
	if !protoimpl.UnsafeEnabled {
		file_receipt4l2_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*AccountTokenBalanceReceipt); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
		file_receipt4l2_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*TransferReceipt4L2); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
		file_receipt4l2_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*SetPubKeyReceipt); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: file_receipt4l2_proto_rawDesc,
			NumEnums:      0,
			NumMessages:   3,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_receipt4l2_proto_goTypes,
		DependencyIndexes: file_receipt4l2_proto_depIdxs,
		MessageInfos:      file_receipt4l2_proto_msgTypes,
	}.Build()
	File_receipt4l2_proto = out.File
	file_receipt4l2_proto_rawDesc = nil
	file_receipt4l2_proto_goTypes = nil
	file_receipt4l2_proto_depIdxs = nil
}
