github.com/amazechain/amc@v0.1.3/api/protocol/state/state.pb.go (about)

     1  // Copyright 2022 The AmazeChain Authors
     2  // This file is part of the AmazeChain library.
     3  //
     4  // The AmazeChain library is free software: you can redistribute it and/or modify
     5  // it under the terms of the GNU Lesser General Public License as published by
     6  // the Free Software Foundation, either version 3 of the License, or
     7  // (at your option) any later version.
     8  //
     9  // The AmazeChain library is distributed in the hope that it will be useful,
    10  // but WITHOUT ANY WARRANTY; without even the implied warranty of
    11  // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    12  // GNU Lesser General Public License for more details.
    13  //
    14  // You should have received a copy of the GNU Lesser General Public License
    15  // along with the AmazeChain library. If not, see <http://www.gnu.org/licenses/>.
    16  
    17  // Code generated by protoc-gen-go. DO NOT EDIT.
    18  // versions:
    19  // 	protoc-gen-go v1.28.0
    20  // 	protoc        v3.20.0
    21  // source: state.proto
    22  
    23  package state
    24  
    25  import (
    26  	types_pb "github.com/amazechain/amc/api/protocol/types_pb"
    27  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    28  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    29  	reflect "reflect"
    30  	sync "sync"
    31  )
    32  
    33  const (
    34  	// Verify that this generated code is sufficiently up-to-date.
    35  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    36  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    37  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    38  )
    39  
    40  type HashMap struct {
    41  	state         protoimpl.MessageState
    42  	sizeCache     protoimpl.SizeCache
    43  	unknownFields protoimpl.UnknownFields
    44  
    45  	Key   *types_pb.H256 `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
    46  	Value *types_pb.H256 `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
    47  }
    48  
    49  func (x *HashMap) Reset() {
    50  	*x = HashMap{}
    51  	if protoimpl.UnsafeEnabled {
    52  		mi := &file_state_proto_msgTypes[0]
    53  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    54  		ms.StoreMessageInfo(mi)
    55  	}
    56  }
    57  
    58  func (x *HashMap) String() string {
    59  	return protoimpl.X.MessageStringOf(x)
    60  }
    61  
    62  func (*HashMap) ProtoMessage() {}
    63  
    64  func (x *HashMap) ProtoReflect() protoreflect.Message {
    65  	mi := &file_state_proto_msgTypes[0]
    66  	if protoimpl.UnsafeEnabled && x != nil {
    67  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    68  		if ms.LoadMessageInfo() == nil {
    69  			ms.StoreMessageInfo(mi)
    70  		}
    71  		return ms
    72  	}
    73  	return mi.MessageOf(x)
    74  }
    75  
    76  // Deprecated: Use HashMap.ProtoReflect.Descriptor instead.
    77  func (*HashMap) Descriptor() ([]byte, []int) {
    78  	return file_state_proto_rawDescGZIP(), []int{0}
    79  }
    80  
    81  func (x *HashMap) GetKey() *types_pb.H256 {
    82  	if x != nil {
    83  		return x.Key
    84  	}
    85  	return nil
    86  }
    87  
    88  func (x *HashMap) GetValue() *types_pb.H256 {
    89  	if x != nil {
    90  		return x.Value
    91  	}
    92  	return nil
    93  }
    94  
    95  type Account struct {
    96  	state         protoimpl.MessageState
    97  	sizeCache     protoimpl.SizeCache
    98  	unknownFields protoimpl.UnknownFields
    99  
   100  	Initialised bool           `protobuf:"varint,1,opt,name=Initialised,proto3" json:"Initialised,omitempty"`
   101  	Nonce       uint64         `protobuf:"varint,2,opt,name=Nonce,proto3" json:"Nonce,omitempty"`
   102  	Balance     *types_pb.H256 `protobuf:"bytes,3,opt,name=Balance,proto3" json:"Balance,omitempty"`
   103  	Root        *types_pb.H256 `protobuf:"bytes,4,opt,name=Root,proto3" json:"Root,omitempty"`
   104  	CodeHash    *types_pb.H256 `protobuf:"bytes,5,opt,name=CodeHash,proto3" json:"CodeHash,omitempty"`
   105  	Incarnation uint64         `protobuf:"varint,6,opt,name=Incarnation,proto3" json:"Incarnation,omitempty"`
   106  }
   107  
   108  func (x *Account) Reset() {
   109  	*x = Account{}
   110  	if protoimpl.UnsafeEnabled {
   111  		mi := &file_state_proto_msgTypes[1]
   112  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   113  		ms.StoreMessageInfo(mi)
   114  	}
   115  }
   116  
   117  func (x *Account) String() string {
   118  	return protoimpl.X.MessageStringOf(x)
   119  }
   120  
   121  func (*Account) ProtoMessage() {}
   122  
   123  func (x *Account) ProtoReflect() protoreflect.Message {
   124  	mi := &file_state_proto_msgTypes[1]
   125  	if protoimpl.UnsafeEnabled && x != nil {
   126  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   127  		if ms.LoadMessageInfo() == nil {
   128  			ms.StoreMessageInfo(mi)
   129  		}
   130  		return ms
   131  	}
   132  	return mi.MessageOf(x)
   133  }
   134  
   135  // Deprecated: Use Account.ProtoReflect.Descriptor instead.
   136  func (*Account) Descriptor() ([]byte, []int) {
   137  	return file_state_proto_rawDescGZIP(), []int{1}
   138  }
   139  
   140  func (x *Account) GetInitialised() bool {
   141  	if x != nil {
   142  		return x.Initialised
   143  	}
   144  	return false
   145  }
   146  
   147  func (x *Account) GetNonce() uint64 {
   148  	if x != nil {
   149  		return x.Nonce
   150  	}
   151  	return 0
   152  }
   153  
   154  func (x *Account) GetBalance() *types_pb.H256 {
   155  	if x != nil {
   156  		return x.Balance
   157  	}
   158  	return nil
   159  }
   160  
   161  func (x *Account) GetRoot() *types_pb.H256 {
   162  	if x != nil {
   163  		return x.Root
   164  	}
   165  	return nil
   166  }
   167  
   168  func (x *Account) GetCodeHash() *types_pb.H256 {
   169  	if x != nil {
   170  		return x.CodeHash
   171  	}
   172  	return nil
   173  }
   174  
   175  func (x *Account) GetIncarnation() uint64 {
   176  	if x != nil {
   177  		return x.Incarnation
   178  	}
   179  	return 0
   180  }
   181  
   182  var File_state_proto protoreflect.FileDescriptor
   183  
   184  var file_state_proto_rawDesc = []byte{
   185  	0x0a, 0x0b, 0x73, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x73,
   186  	0x74, 0x61, 0x74, 0x65, 0x5f, 0x70, 0x62, 0x1a, 0x14, 0x74, 0x79, 0x70, 0x65, 0x73, 0x5f, 0x70,
   187  	0x62, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x51, 0x0a,
   188  	0x07, 0x48, 0x61, 0x73, 0x68, 0x4d, 0x61, 0x70, 0x12, 0x20, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18,
   189  	0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x5f, 0x70, 0x62,
   190  	0x2e, 0x48, 0x32, 0x35, 0x36, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x24, 0x0a, 0x05, 0x76, 0x61,
   191  	0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x74, 0x79, 0x70, 0x65,
   192  	0x73, 0x5f, 0x70, 0x62, 0x2e, 0x48, 0x32, 0x35, 0x36, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
   193  	0x22, 0xdd, 0x01, 0x0a, 0x07, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x20, 0x0a, 0x0b,
   194  	0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x73, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
   195  	0x08, 0x52, 0x0b, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x73, 0x65, 0x64, 0x12, 0x14,
   196  	0x0a, 0x05, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x4e,
   197  	0x6f, 0x6e, 0x63, 0x65, 0x12, 0x28, 0x0a, 0x07, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x18,
   198  	0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x5f, 0x70, 0x62,
   199  	0x2e, 0x48, 0x32, 0x35, 0x36, 0x52, 0x07, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x22,
   200  	0x0a, 0x04, 0x52, 0x6f, 0x6f, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x74,
   201  	0x79, 0x70, 0x65, 0x73, 0x5f, 0x70, 0x62, 0x2e, 0x48, 0x32, 0x35, 0x36, 0x52, 0x04, 0x52, 0x6f,
   202  	0x6f, 0x74, 0x12, 0x2a, 0x0a, 0x08, 0x43, 0x6f, 0x64, 0x65, 0x48, 0x61, 0x73, 0x68, 0x18, 0x05,
   203  	0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x5f, 0x70, 0x62, 0x2e,
   204  	0x48, 0x32, 0x35, 0x36, 0x52, 0x08, 0x43, 0x6f, 0x64, 0x65, 0x48, 0x61, 0x73, 0x68, 0x12, 0x20,
   205  	0x0a, 0x0b, 0x49, 0x6e, 0x63, 0x61, 0x72, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20,
   206  	0x01, 0x28, 0x04, 0x52, 0x0b, 0x49, 0x6e, 0x63, 0x61, 0x72, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e,
   207  	0x42, 0x2e, 0x5a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61,
   208  	0x6d, 0x61, 0x7a, 0x65, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x61, 0x6d, 0x63, 0x2f, 0x61, 0x70,
   209  	0x69, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x65,
   210  	0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   211  }
   212  
   213  var (
   214  	file_state_proto_rawDescOnce sync.Once
   215  	file_state_proto_rawDescData = file_state_proto_rawDesc
   216  )
   217  
   218  func file_state_proto_rawDescGZIP() []byte {
   219  	file_state_proto_rawDescOnce.Do(func() {
   220  		file_state_proto_rawDescData = protoimpl.X.CompressGZIP(file_state_proto_rawDescData)
   221  	})
   222  	return file_state_proto_rawDescData
   223  }
   224  
   225  var file_state_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   226  var file_state_proto_goTypes = []interface{}{
   227  	(*HashMap)(nil),       // 0: state_pb.HashMap
   228  	(*Account)(nil),       // 1: state_pb.Account
   229  	(*types_pb.H256)(nil), // 2: types_pb.H256
   230  }
   231  var file_state_proto_depIdxs = []int32{
   232  	2, // 0: state_pb.HashMap.key:type_name -> types_pb.H256
   233  	2, // 1: state_pb.HashMap.value:type_name -> types_pb.H256
   234  	2, // 2: state_pb.Account.Balance:type_name -> types_pb.H256
   235  	2, // 3: state_pb.Account.Root:type_name -> types_pb.H256
   236  	2, // 4: state_pb.Account.CodeHash:type_name -> types_pb.H256
   237  	5, // [5:5] is the sub-list for method output_type
   238  	5, // [5:5] is the sub-list for method input_type
   239  	5, // [5:5] is the sub-list for extension type_name
   240  	5, // [5:5] is the sub-list for extension extendee
   241  	0, // [0:5] is the sub-list for field type_name
   242  }
   243  
   244  func init() { file_state_proto_init() }
   245  func file_state_proto_init() {
   246  	if File_state_proto != nil {
   247  		return
   248  	}
   249  	if !protoimpl.UnsafeEnabled {
   250  		file_state_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   251  			switch v := v.(*HashMap); i {
   252  			case 0:
   253  				return &v.state
   254  			case 1:
   255  				return &v.sizeCache
   256  			case 2:
   257  				return &v.unknownFields
   258  			default:
   259  				return nil
   260  			}
   261  		}
   262  		file_state_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   263  			switch v := v.(*Account); i {
   264  			case 0:
   265  				return &v.state
   266  			case 1:
   267  				return &v.sizeCache
   268  			case 2:
   269  				return &v.unknownFields
   270  			default:
   271  				return nil
   272  			}
   273  		}
   274  	}
   275  	type x struct{}
   276  	out := protoimpl.TypeBuilder{
   277  		File: protoimpl.DescBuilder{
   278  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   279  			RawDescriptor: file_state_proto_rawDesc,
   280  			NumEnums:      0,
   281  			NumMessages:   2,
   282  			NumExtensions: 0,
   283  			NumServices:   0,
   284  		},
   285  		GoTypes:           file_state_proto_goTypes,
   286  		DependencyIndexes: file_state_proto_depIdxs,
   287  		MessageInfos:      file_state_proto_msgTypes,
   288  	}.Build()
   289  	File_state_proto = out.File
   290  	file_state_proto_rawDesc = nil
   291  	file_state_proto_goTypes = nil
   292  	file_state_proto_depIdxs = nil
   293  }