diff --git a/api/initia/intertx/v1/tx.pulsar.go b/api/initia/intertx/v1/tx.pulsar.go index aa11eb1e..f390335b 100644 --- a/api/initia/intertx/v1/tx.pulsar.go +++ b/api/initia/intertx/v1/tx.pulsar.go @@ -7,6 +7,7 @@ import ( fmt "fmt" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" + types "github.com/cosmos/ibc-go/v8/modules/core/04-channel/types" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoiface "google.golang.org/protobuf/runtime/protoiface" protoimpl "google.golang.org/protobuf/runtime/protoimpl" @@ -21,6 +22,7 @@ var ( fd_MsgRegisterAccount_owner protoreflect.FieldDescriptor fd_MsgRegisterAccount_connection_id protoreflect.FieldDescriptor fd_MsgRegisterAccount_version protoreflect.FieldDescriptor + fd_MsgRegisterAccount_ordering protoreflect.FieldDescriptor ) func init() { @@ -29,6 +31,7 @@ func init() { fd_MsgRegisterAccount_owner = md_MsgRegisterAccount.Fields().ByName("owner") fd_MsgRegisterAccount_connection_id = md_MsgRegisterAccount.Fields().ByName("connection_id") fd_MsgRegisterAccount_version = md_MsgRegisterAccount.Fields().ByName("version") + fd_MsgRegisterAccount_ordering = md_MsgRegisterAccount.Fields().ByName("ordering") } var _ protoreflect.Message = (*fastReflection_MsgRegisterAccount)(nil) @@ -114,6 +117,12 @@ func (x *fastReflection_MsgRegisterAccount) Range(f func(protoreflect.FieldDescr return } } + if x.Ordering != 0 { + value := protoreflect.ValueOfEnum((protoreflect.EnumNumber)(x.Ordering)) + if !f(fd_MsgRegisterAccount_ordering, value) { + return + } + } } // Has reports whether a field is populated. @@ -135,6 +144,8 @@ func (x *fastReflection_MsgRegisterAccount) Has(fd protoreflect.FieldDescriptor) return x.ConnectionId != "" case "initia.intertx.v1.MsgRegisterAccount.version": return x.Version != "" + case "initia.intertx.v1.MsgRegisterAccount.ordering": + return x.Ordering != 0 default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.intertx.v1.MsgRegisterAccount")) @@ -157,6 +168,8 @@ func (x *fastReflection_MsgRegisterAccount) Clear(fd protoreflect.FieldDescripto x.ConnectionId = "" case "initia.intertx.v1.MsgRegisterAccount.version": x.Version = "" + case "initia.intertx.v1.MsgRegisterAccount.ordering": + x.Ordering = 0 default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.intertx.v1.MsgRegisterAccount")) @@ -182,6 +195,9 @@ func (x *fastReflection_MsgRegisterAccount) Get(descriptor protoreflect.FieldDes case "initia.intertx.v1.MsgRegisterAccount.version": value := x.Version return protoreflect.ValueOfString(value) + case "initia.intertx.v1.MsgRegisterAccount.ordering": + value := x.Ordering + return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.intertx.v1.MsgRegisterAccount")) @@ -208,6 +224,8 @@ func (x *fastReflection_MsgRegisterAccount) Set(fd protoreflect.FieldDescriptor, x.ConnectionId = value.Interface().(string) case "initia.intertx.v1.MsgRegisterAccount.version": x.Version = value.Interface().(string) + case "initia.intertx.v1.MsgRegisterAccount.ordering": + x.Ordering = (types.Order)(value.Enum()) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.intertx.v1.MsgRegisterAccount")) @@ -234,6 +252,8 @@ func (x *fastReflection_MsgRegisterAccount) Mutable(fd protoreflect.FieldDescrip panic(fmt.Errorf("field connection_id of message initia.intertx.v1.MsgRegisterAccount is not mutable")) case "initia.intertx.v1.MsgRegisterAccount.version": panic(fmt.Errorf("field version of message initia.intertx.v1.MsgRegisterAccount is not mutable")) + case "initia.intertx.v1.MsgRegisterAccount.ordering": + panic(fmt.Errorf("field ordering of message initia.intertx.v1.MsgRegisterAccount is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.intertx.v1.MsgRegisterAccount")) @@ -253,6 +273,8 @@ func (x *fastReflection_MsgRegisterAccount) NewField(fd protoreflect.FieldDescri return protoreflect.ValueOfString("") case "initia.intertx.v1.MsgRegisterAccount.version": return protoreflect.ValueOfString("") + case "initia.intertx.v1.MsgRegisterAccount.ordering": + return protoreflect.ValueOfEnum(0) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.intertx.v1.MsgRegisterAccount")) @@ -334,6 +356,9 @@ func (x *fastReflection_MsgRegisterAccount) ProtoMethods() *protoiface.Methods { if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } + if x.Ordering != 0 { + n += 1 + runtime.Sov(uint64(x.Ordering)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -363,6 +388,11 @@ func (x *fastReflection_MsgRegisterAccount) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if x.Ordering != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Ordering)) + i-- + dAtA[i] = 0x20 + } if len(x.Version) > 0 { i -= len(x.Version) copy(dAtA[i:], x.Version) @@ -529,6 +559,25 @@ func (x *fastReflection_MsgRegisterAccount) ProtoMethods() *protoiface.Methods { } x.Version = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 4: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Ordering", wireType) + } + x.Ordering = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.Ordering |= types.Order(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -1858,9 +1907,10 @@ type MsgRegisterAccount struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` - ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"` - Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` + Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` + ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"` + Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` + Ordering types.Order `protobuf:"varint,4,opt,name=ordering,proto3,enum=ibc.core.channel.v1.Order" json:"ordering,omitempty"` } func (x *MsgRegisterAccount) Reset() { @@ -1904,6 +1954,13 @@ func (x *MsgRegisterAccount) GetVersion() string { return "" } +func (x *MsgRegisterAccount) GetOrdering() types.Order { + if x != nil { + return x.Ordering + } + return types.Order(0) +} + // MsgRegisterAccountResponse defines the response for Msg/RegisterAccount type MsgRegisterAccountResponse struct { state protoimpl.MessageState @@ -2021,59 +2078,65 @@ var file_initia_intertx_v1_tx_proto_rawDesc = []byte{ 0x31, 0x2f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb6, 0x01, 0x0a, - 0x12, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x3d, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x18, 0xf2, 0xde, 0x1f, 0x14, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x63, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x22, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x3a, 0x31, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, - 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x8a, 0xe7, 0xb0, 0x2a, 0x1a, 0x69, 0x6e, 0x74, 0x65, 0x72, - 0x74, 0x78, 0x2f, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x41, 0x63, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x1c, 0x0a, 0x1a, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0xb6, 0x01, 0x0a, 0x0b, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, - 0x74, 0x54, 0x78, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x3d, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x18, 0xf2, 0xde, 0x1f, 0x14, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x63, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x22, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x03, 0x6d, 0x73, 0x67, - 0x3a, 0x2a, 0x88, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x05, 0x6f, - 0x77, 0x6e, 0x65, 0x72, 0x8a, 0xe7, 0xb0, 0x2a, 0x13, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x74, 0x78, - 0x2f, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x54, 0x78, 0x22, 0x15, 0x0a, 0x13, + 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x69, 0x62, + 0x63, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2f, 0x76, + 0x31, 0x2f, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, + 0xee, 0x01, 0x0a, 0x12, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x41, + 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x3d, 0x0a, 0x0d, + 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x42, 0x18, 0xf2, 0xde, 0x1f, 0x14, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x63, + 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x22, 0x52, 0x0c, 0x63, + 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x76, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x69, 0x6e, + 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x69, 0x62, 0x63, 0x2e, 0x63, 0x6f, + 0x72, 0x65, 0x2e, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, + 0x64, 0x65, 0x72, 0x52, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x3a, 0x31, 0x88, + 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x05, 0x6f, 0x77, 0x6e, 0x65, + 0x72, 0x8a, 0xe7, 0xb0, 0x2a, 0x1a, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x74, 0x78, 0x2f, 0x4d, 0x73, + 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x22, 0x1c, 0x0a, 0x1a, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x41, + 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xb6, + 0x01, 0x0a, 0x0b, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x54, 0x78, 0x12, 0x14, + 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, + 0x77, 0x6e, 0x65, 0x72, 0x12, 0x3d, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xf2, 0xde, 0x1f, + 0x14, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x69, 0x64, 0x22, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x3a, 0x2a, 0x88, 0xa0, 0x1f, + 0x00, 0xe8, 0xa0, 0x1f, 0x00, 0x82, 0xe7, 0xb0, 0x2a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x8a, + 0xe7, 0xb0, 0x2a, 0x13, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x74, 0x78, 0x2f, 0x4d, 0x73, 0x67, 0x53, + 0x75, 0x62, 0x6d, 0x69, 0x74, 0x54, 0x78, 0x22, 0x15, 0x0a, 0x13, 0x4d, 0x73, 0x67, 0x53, 0x75, + 0x62, 0x6d, 0x69, 0x74, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xc9, + 0x01, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x67, 0x0a, 0x0f, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x25, 0x2e, 0x69, 0x6e, 0x69, 0x74, + 0x69, 0x61, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, + 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x1a, 0x2d, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x74, + 0x78, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, + 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x52, 0x0a, 0x08, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x54, 0x78, 0x12, 0x1e, 0x2e, 0x69, 0x6e, + 0x69, 0x74, 0x69, 0x61, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x2e, + 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x54, 0x78, 0x1a, 0x26, 0x2e, 0x69, 0x6e, + 0x69, 0x74, 0x69, 0x61, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x54, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x32, 0xc9, 0x01, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x67, 0x0a, 0x0f, 0x52, - 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x25, - 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x74, 0x78, 0x2e, - 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x41, 0x63, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x1a, 0x2d, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x69, - 0x6e, 0x74, 0x65, 0x72, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, - 0x69, 0x73, 0x74, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x52, 0x0a, 0x08, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x54, 0x78, - 0x12, 0x1e, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x74, - 0x78, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x54, 0x78, - 0x1a, 0x26, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x74, - 0x78, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x54, 0x78, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, - 0xc5, 0x01, 0x0a, 0x15, 0x63, 0x6f, 0x6d, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x69, - 0x6e, 0x74, 0x65, 0x72, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x69, 0x6e, 0x69, - 0x74, 0x69, 0x61, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x69, - 0x6e, 0x74, 0x65, 0x72, 0x74, 0x78, 0x2f, 0x76, 0x31, 0x3b, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x74, - 0x78, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x49, 0x49, 0x58, 0xaa, 0x02, 0x11, 0x49, 0x6e, 0x69, 0x74, - 0x69, 0x61, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x74, 0x78, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x11, - 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x5c, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x74, 0x78, 0x5c, 0x56, - 0x31, 0xe2, 0x02, 0x1d, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x5c, 0x49, 0x6e, 0x74, 0x65, 0x72, - 0x74, 0x78, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0xea, 0x02, 0x13, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x3a, 0x3a, 0x49, 0x6e, 0x74, 0x65, - 0x72, 0x74, 0x78, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0xc5, 0x01, 0x0a, 0x15, 0x63, + 0x6f, 0x6d, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x74, + 0x78, 0x2e, 0x76, 0x31, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, + 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x69, 0x6e, 0x69, 0x74, + 0x69, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x74, + 0x78, 0x2f, 0x76, 0x31, 0x3b, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x74, 0x78, 0x76, 0x31, 0xa2, 0x02, + 0x03, 0x49, 0x49, 0x58, 0xaa, 0x02, 0x11, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x49, 0x6e, + 0x74, 0x65, 0x72, 0x74, 0x78, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x11, 0x49, 0x6e, 0x69, 0x74, 0x69, + 0x61, 0x5c, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x74, 0x78, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1d, 0x49, + 0x6e, 0x69, 0x74, 0x69, 0x61, 0x5c, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x74, 0x78, 0x5c, 0x56, 0x31, + 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x13, 0x49, + 0x6e, 0x69, 0x74, 0x69, 0x61, 0x3a, 0x3a, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x74, 0x78, 0x3a, 0x3a, + 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -2094,19 +2157,21 @@ var file_initia_intertx_v1_tx_proto_goTypes = []interface{}{ (*MsgRegisterAccountResponse)(nil), // 1: initia.intertx.v1.MsgRegisterAccountResponse (*MsgSubmitTx)(nil), // 2: initia.intertx.v1.MsgSubmitTx (*MsgSubmitTxResponse)(nil), // 3: initia.intertx.v1.MsgSubmitTxResponse - (*anypb.Any)(nil), // 4: google.protobuf.Any + (types.Order)(0), // 4: ibc.core.channel.v1.Order + (*anypb.Any)(nil), // 5: google.protobuf.Any } var file_initia_intertx_v1_tx_proto_depIdxs = []int32{ - 4, // 0: initia.intertx.v1.MsgSubmitTx.msg:type_name -> google.protobuf.Any - 0, // 1: initia.intertx.v1.Msg.RegisterAccount:input_type -> initia.intertx.v1.MsgRegisterAccount - 2, // 2: initia.intertx.v1.Msg.SubmitTx:input_type -> initia.intertx.v1.MsgSubmitTx - 1, // 3: initia.intertx.v1.Msg.RegisterAccount:output_type -> initia.intertx.v1.MsgRegisterAccountResponse - 3, // 4: initia.intertx.v1.Msg.SubmitTx:output_type -> initia.intertx.v1.MsgSubmitTxResponse - 3, // [3:5] is the sub-list for method output_type - 1, // [1:3] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name + 4, // 0: initia.intertx.v1.MsgRegisterAccount.ordering:type_name -> ibc.core.channel.v1.Order + 5, // 1: initia.intertx.v1.MsgSubmitTx.msg:type_name -> google.protobuf.Any + 0, // 2: initia.intertx.v1.Msg.RegisterAccount:input_type -> initia.intertx.v1.MsgRegisterAccount + 2, // 3: initia.intertx.v1.Msg.SubmitTx:input_type -> initia.intertx.v1.MsgSubmitTx + 1, // 4: initia.intertx.v1.Msg.RegisterAccount:output_type -> initia.intertx.v1.MsgRegisterAccountResponse + 3, // 5: initia.intertx.v1.Msg.SubmitTx:output_type -> initia.intertx.v1.MsgSubmitTxResponse + 4, // [4:6] is the sub-list for method output_type + 2, // [2:4] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name } func init() { file_initia_intertx_v1_tx_proto_init() } diff --git a/api/initia/move/v1/genesis.pulsar.go b/api/initia/move/v1/genesis.pulsar.go index a246b56b..c834d5b0 100644 --- a/api/initia/move/v1/genesis.pulsar.go +++ b/api/initia/move/v1/genesis.pulsar.go @@ -114,7 +114,7 @@ func (x *_GenesisState_4_list) IsValid() bool { var _ protoreflect.List = (*_GenesisState_5_list)(nil) type _GenesisState_5_list struct { - list *[]*Resource + list *[]*Checksum } func (x *_GenesisState_5_list) Len() int { @@ -130,18 +130,18 @@ func (x *_GenesisState_5_list) Get(i int) protoreflect.Value { func (x *_GenesisState_5_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Resource) + concreteValue := valueUnwrapped.Interface().(*Checksum) (*x.list)[i] = concreteValue } func (x *_GenesisState_5_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Resource) + concreteValue := valueUnwrapped.Interface().(*Checksum) *x.list = append(*x.list, concreteValue) } func (x *_GenesisState_5_list) AppendMutable() protoreflect.Value { - v := new(Resource) + v := new(Checksum) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } @@ -154,7 +154,7 @@ func (x *_GenesisState_5_list) Truncate(n int) { } func (x *_GenesisState_5_list) NewElement() protoreflect.Value { - v := new(Resource) + v := new(Checksum) return protoreflect.ValueOfMessage(v.ProtoReflect()) } @@ -165,7 +165,7 @@ func (x *_GenesisState_5_list) IsValid() bool { var _ protoreflect.List = (*_GenesisState_6_list)(nil) type _GenesisState_6_list struct { - list *[]*TableInfo + list *[]*Resource } func (x *_GenesisState_6_list) Len() int { @@ -181,18 +181,18 @@ func (x *_GenesisState_6_list) Get(i int) protoreflect.Value { func (x *_GenesisState_6_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*TableInfo) + concreteValue := valueUnwrapped.Interface().(*Resource) (*x.list)[i] = concreteValue } func (x *_GenesisState_6_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*TableInfo) + concreteValue := valueUnwrapped.Interface().(*Resource) *x.list = append(*x.list, concreteValue) } func (x *_GenesisState_6_list) AppendMutable() protoreflect.Value { - v := new(TableInfo) + v := new(Resource) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } @@ -205,7 +205,7 @@ func (x *_GenesisState_6_list) Truncate(n int) { } func (x *_GenesisState_6_list) NewElement() protoreflect.Value { - v := new(TableInfo) + v := new(Resource) return protoreflect.ValueOfMessage(v.ProtoReflect()) } @@ -216,7 +216,7 @@ func (x *_GenesisState_6_list) IsValid() bool { var _ protoreflect.List = (*_GenesisState_7_list)(nil) type _GenesisState_7_list struct { - list *[]*TableEntry + list *[]*TableInfo } func (x *_GenesisState_7_list) Len() int { @@ -232,18 +232,18 @@ func (x *_GenesisState_7_list) Get(i int) protoreflect.Value { func (x *_GenesisState_7_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*TableEntry) + concreteValue := valueUnwrapped.Interface().(*TableInfo) (*x.list)[i] = concreteValue } func (x *_GenesisState_7_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*TableEntry) + concreteValue := valueUnwrapped.Interface().(*TableInfo) *x.list = append(*x.list, concreteValue) } func (x *_GenesisState_7_list) AppendMutable() protoreflect.Value { - v := new(TableEntry) + v := new(TableInfo) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } @@ -256,7 +256,7 @@ func (x *_GenesisState_7_list) Truncate(n int) { } func (x *_GenesisState_7_list) NewElement() protoreflect.Value { - v := new(TableEntry) + v := new(TableInfo) return protoreflect.ValueOfMessage(v.ProtoReflect()) } @@ -267,7 +267,7 @@ func (x *_GenesisState_7_list) IsValid() bool { var _ protoreflect.List = (*_GenesisState_8_list)(nil) type _GenesisState_8_list struct { - list *[]*DexPair + list *[]*TableEntry } func (x *_GenesisState_8_list) Len() int { @@ -283,18 +283,18 @@ func (x *_GenesisState_8_list) Get(i int) protoreflect.Value { func (x *_GenesisState_8_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*DexPair) + concreteValue := valueUnwrapped.Interface().(*TableEntry) (*x.list)[i] = concreteValue } func (x *_GenesisState_8_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*DexPair) + concreteValue := valueUnwrapped.Interface().(*TableEntry) *x.list = append(*x.list, concreteValue) } func (x *_GenesisState_8_list) AppendMutable() protoreflect.Value { - v := new(DexPair) + v := new(TableEntry) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } @@ -307,7 +307,7 @@ func (x *_GenesisState_8_list) Truncate(n int) { } func (x *_GenesisState_8_list) NewElement() protoreflect.Value { - v := new(DexPair) + v := new(TableEntry) return protoreflect.ValueOfMessage(v.ProtoReflect()) } @@ -315,12 +315,64 @@ func (x *_GenesisState_8_list) IsValid() bool { return x.list != nil } +var _ protoreflect.List = (*_GenesisState_9_list)(nil) + +type _GenesisState_9_list struct { + list *[]*DexPair +} + +func (x *_GenesisState_9_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_9_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_9_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*DexPair) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_9_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*DexPair) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_9_list) AppendMutable() protoreflect.Value { + v := new(DexPair) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_9_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_9_list) NewElement() protoreflect.Value { + v := new(DexPair) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_9_list) IsValid() bool { + return x.list != nil +} + var ( md_GenesisState protoreflect.MessageDescriptor fd_GenesisState_params protoreflect.FieldDescriptor fd_GenesisState_execution_counter protoreflect.FieldDescriptor fd_GenesisState_stdlibs protoreflect.FieldDescriptor fd_GenesisState_modules protoreflect.FieldDescriptor + fd_GenesisState_checksums protoreflect.FieldDescriptor fd_GenesisState_resources protoreflect.FieldDescriptor fd_GenesisState_table_infos protoreflect.FieldDescriptor fd_GenesisState_table_entries protoreflect.FieldDescriptor @@ -334,6 +386,7 @@ func init() { fd_GenesisState_execution_counter = md_GenesisState.Fields().ByName("execution_counter") fd_GenesisState_stdlibs = md_GenesisState.Fields().ByName("stdlibs") fd_GenesisState_modules = md_GenesisState.Fields().ByName("modules") + fd_GenesisState_checksums = md_GenesisState.Fields().ByName("checksums") fd_GenesisState_resources = md_GenesisState.Fields().ByName("resources") fd_GenesisState_table_infos = md_GenesisState.Fields().ByName("table_infos") fd_GenesisState_table_entries = md_GenesisState.Fields().ByName("table_entries") @@ -429,26 +482,32 @@ func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, return } } + if len(x.Checksums) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_5_list{list: &x.Checksums}) + if !f(fd_GenesisState_checksums, value) { + return + } + } if len(x.Resources) != 0 { - value := protoreflect.ValueOfList(&_GenesisState_5_list{list: &x.Resources}) + value := protoreflect.ValueOfList(&_GenesisState_6_list{list: &x.Resources}) if !f(fd_GenesisState_resources, value) { return } } if len(x.TableInfos) != 0 { - value := protoreflect.ValueOfList(&_GenesisState_6_list{list: &x.TableInfos}) + value := protoreflect.ValueOfList(&_GenesisState_7_list{list: &x.TableInfos}) if !f(fd_GenesisState_table_infos, value) { return } } if len(x.TableEntries) != 0 { - value := protoreflect.ValueOfList(&_GenesisState_7_list{list: &x.TableEntries}) + value := protoreflect.ValueOfList(&_GenesisState_8_list{list: &x.TableEntries}) if !f(fd_GenesisState_table_entries, value) { return } } if len(x.DexPairs) != 0 { - value := protoreflect.ValueOfList(&_GenesisState_8_list{list: &x.DexPairs}) + value := protoreflect.ValueOfList(&_GenesisState_9_list{list: &x.DexPairs}) if !f(fd_GenesisState_dex_pairs, value) { return } @@ -476,6 +535,8 @@ func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool return len(x.Stdlibs) != 0 case "initia.move.v1.GenesisState.modules": return len(x.Modules) != 0 + case "initia.move.v1.GenesisState.checksums": + return len(x.Checksums) != 0 case "initia.move.v1.GenesisState.resources": return len(x.Resources) != 0 case "initia.move.v1.GenesisState.table_infos": @@ -508,6 +569,8 @@ func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) { x.Stdlibs = nil case "initia.move.v1.GenesisState.modules": x.Modules = nil + case "initia.move.v1.GenesisState.checksums": + x.Checksums = nil case "initia.move.v1.GenesisState.resources": x.Resources = nil case "initia.move.v1.GenesisState.table_infos": @@ -550,29 +613,35 @@ func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescripto } listValue := &_GenesisState_4_list{list: &x.Modules} return protoreflect.ValueOfList(listValue) + case "initia.move.v1.GenesisState.checksums": + if len(x.Checksums) == 0 { + return protoreflect.ValueOfList(&_GenesisState_5_list{}) + } + listValue := &_GenesisState_5_list{list: &x.Checksums} + return protoreflect.ValueOfList(listValue) case "initia.move.v1.GenesisState.resources": if len(x.Resources) == 0 { - return protoreflect.ValueOfList(&_GenesisState_5_list{}) + return protoreflect.ValueOfList(&_GenesisState_6_list{}) } - listValue := &_GenesisState_5_list{list: &x.Resources} + listValue := &_GenesisState_6_list{list: &x.Resources} return protoreflect.ValueOfList(listValue) case "initia.move.v1.GenesisState.table_infos": if len(x.TableInfos) == 0 { - return protoreflect.ValueOfList(&_GenesisState_6_list{}) + return protoreflect.ValueOfList(&_GenesisState_7_list{}) } - listValue := &_GenesisState_6_list{list: &x.TableInfos} + listValue := &_GenesisState_7_list{list: &x.TableInfos} return protoreflect.ValueOfList(listValue) case "initia.move.v1.GenesisState.table_entries": if len(x.TableEntries) == 0 { - return protoreflect.ValueOfList(&_GenesisState_7_list{}) + return protoreflect.ValueOfList(&_GenesisState_8_list{}) } - listValue := &_GenesisState_7_list{list: &x.TableEntries} + listValue := &_GenesisState_8_list{list: &x.TableEntries} return protoreflect.ValueOfList(listValue) case "initia.move.v1.GenesisState.dex_pairs": if len(x.DexPairs) == 0 { - return protoreflect.ValueOfList(&_GenesisState_8_list{}) + return protoreflect.ValueOfList(&_GenesisState_9_list{}) } - listValue := &_GenesisState_8_list{list: &x.DexPairs} + listValue := &_GenesisState_9_list{list: &x.DexPairs} return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { @@ -606,21 +675,25 @@ func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value lv := value.List() clv := lv.(*_GenesisState_4_list) x.Modules = *clv.list - case "initia.move.v1.GenesisState.resources": + case "initia.move.v1.GenesisState.checksums": lv := value.List() clv := lv.(*_GenesisState_5_list) + x.Checksums = *clv.list + case "initia.move.v1.GenesisState.resources": + lv := value.List() + clv := lv.(*_GenesisState_6_list) x.Resources = *clv.list case "initia.move.v1.GenesisState.table_infos": lv := value.List() - clv := lv.(*_GenesisState_6_list) + clv := lv.(*_GenesisState_7_list) x.TableInfos = *clv.list case "initia.move.v1.GenesisState.table_entries": lv := value.List() - clv := lv.(*_GenesisState_7_list) + clv := lv.(*_GenesisState_8_list) x.TableEntries = *clv.list case "initia.move.v1.GenesisState.dex_pairs": lv := value.List() - clv := lv.(*_GenesisState_8_list) + clv := lv.(*_GenesisState_9_list) x.DexPairs = *clv.list default: if fd.IsExtension() { @@ -659,29 +732,35 @@ func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) p } value := &_GenesisState_4_list{list: &x.Modules} return protoreflect.ValueOfList(value) + case "initia.move.v1.GenesisState.checksums": + if x.Checksums == nil { + x.Checksums = []*Checksum{} + } + value := &_GenesisState_5_list{list: &x.Checksums} + return protoreflect.ValueOfList(value) case "initia.move.v1.GenesisState.resources": if x.Resources == nil { x.Resources = []*Resource{} } - value := &_GenesisState_5_list{list: &x.Resources} + value := &_GenesisState_6_list{list: &x.Resources} return protoreflect.ValueOfList(value) case "initia.move.v1.GenesisState.table_infos": if x.TableInfos == nil { x.TableInfos = []*TableInfo{} } - value := &_GenesisState_6_list{list: &x.TableInfos} + value := &_GenesisState_7_list{list: &x.TableInfos} return protoreflect.ValueOfList(value) case "initia.move.v1.GenesisState.table_entries": if x.TableEntries == nil { x.TableEntries = []*TableEntry{} } - value := &_GenesisState_7_list{list: &x.TableEntries} + value := &_GenesisState_8_list{list: &x.TableEntries} return protoreflect.ValueOfList(value) case "initia.move.v1.GenesisState.dex_pairs": if x.DexPairs == nil { x.DexPairs = []*DexPair{} } - value := &_GenesisState_8_list{list: &x.DexPairs} + value := &_GenesisState_9_list{list: &x.DexPairs} return protoreflect.ValueOfList(value) case "initia.move.v1.GenesisState.execution_counter": panic(fmt.Errorf("field execution_counter of message initia.move.v1.GenesisState is not mutable")) @@ -709,18 +788,21 @@ func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) case "initia.move.v1.GenesisState.modules": list := []*Module{} return protoreflect.ValueOfList(&_GenesisState_4_list{list: &list}) + case "initia.move.v1.GenesisState.checksums": + list := []*Checksum{} + return protoreflect.ValueOfList(&_GenesisState_5_list{list: &list}) case "initia.move.v1.GenesisState.resources": list := []*Resource{} - return protoreflect.ValueOfList(&_GenesisState_5_list{list: &list}) + return protoreflect.ValueOfList(&_GenesisState_6_list{list: &list}) case "initia.move.v1.GenesisState.table_infos": list := []*TableInfo{} - return protoreflect.ValueOfList(&_GenesisState_6_list{list: &list}) + return protoreflect.ValueOfList(&_GenesisState_7_list{list: &list}) case "initia.move.v1.GenesisState.table_entries": list := []*TableEntry{} - return protoreflect.ValueOfList(&_GenesisState_7_list{list: &list}) + return protoreflect.ValueOfList(&_GenesisState_8_list{list: &list}) case "initia.move.v1.GenesisState.dex_pairs": list := []*DexPair{} - return protoreflect.ValueOfList(&_GenesisState_8_list{list: &list}) + return protoreflect.ValueOfList(&_GenesisState_9_list{list: &list}) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.GenesisState")) @@ -809,6 +891,12 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { n += 1 + l + runtime.Sov(uint64(l)) } } + if len(x.Checksums) > 0 { + for _, e := range x.Checksums { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } if len(x.Resources) > 0 { for _, e := range x.Resources { l = options.Size(e) @@ -875,7 +963,7 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x42 + dAtA[i] = 0x4a } } if len(x.TableEntries) > 0 { @@ -891,7 +979,7 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x3a + dAtA[i] = 0x42 } } if len(x.TableInfos) > 0 { @@ -907,7 +995,7 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x32 + dAtA[i] = 0x3a } } if len(x.Resources) > 0 { @@ -923,6 +1011,22 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- + dAtA[i] = 0x32 + } + } + if len(x.Checksums) > 0 { + for iNdEx := len(x.Checksums) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Checksums[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- dAtA[i] = 0x2a } } @@ -1141,6 +1245,40 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { } iNdEx = postIndex case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Checksums", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Checksums = append(x.Checksums, &Checksum{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Checksums[len(x.Checksums)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 6: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType) } @@ -1174,7 +1312,7 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex - case 6: + case 7: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TableInfos", wireType) } @@ -1208,7 +1346,7 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex - case 7: + case 8: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TableEntries", wireType) } @@ -1242,7 +1380,7 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex - case 8: + case 9: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DexPairs", wireType) } @@ -1334,10 +1472,11 @@ type GenesisState struct { ExecutionCounter uint64 `protobuf:"varint,2,opt,name=execution_counter,json=executionCounter,proto3" json:"execution_counter,omitempty"` Stdlibs [][]byte `protobuf:"bytes,3,rep,name=stdlibs,proto3" json:"stdlibs,omitempty"` Modules []*Module `protobuf:"bytes,4,rep,name=modules,proto3" json:"modules,omitempty"` - Resources []*Resource `protobuf:"bytes,5,rep,name=resources,proto3" json:"resources,omitempty"` - TableInfos []*TableInfo `protobuf:"bytes,6,rep,name=table_infos,json=tableInfos,proto3" json:"table_infos,omitempty"` - TableEntries []*TableEntry `protobuf:"bytes,7,rep,name=table_entries,json=tableEntries,proto3" json:"table_entries,omitempty"` - DexPairs []*DexPair `protobuf:"bytes,8,rep,name=dex_pairs,json=dexPairs,proto3" json:"dex_pairs,omitempty"` + Checksums []*Checksum `protobuf:"bytes,5,rep,name=checksums,proto3" json:"checksums,omitempty"` + Resources []*Resource `protobuf:"bytes,6,rep,name=resources,proto3" json:"resources,omitempty"` + TableInfos []*TableInfo `protobuf:"bytes,7,rep,name=table_infos,json=tableInfos,proto3" json:"table_infos,omitempty"` + TableEntries []*TableEntry `protobuf:"bytes,8,rep,name=table_entries,json=tableEntries,proto3" json:"table_entries,omitempty"` + DexPairs []*DexPair `protobuf:"bytes,9,rep,name=dex_pairs,json=dexPairs,proto3" json:"dex_pairs,omitempty"` } func (x *GenesisState) Reset() { @@ -1388,6 +1527,13 @@ func (x *GenesisState) GetModules() []*Module { return nil } +func (x *GenesisState) GetChecksums() []*Checksum { + if x != nil { + return x.Checksums + } + return nil +} + func (x *GenesisState) GetResources() []*Resource { if x != nil { return x.Resources @@ -1426,7 +1572,7 @@ var file_initia_move_v1_genesis_proto_rawDesc = []byte{ 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x22, 0x90, 0x05, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, + 0x6f, 0x74, 0x6f, 0x22, 0xea, 0x05, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x39, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, @@ -1444,42 +1590,47 @@ var file_initia_move_v1_genesis_proto_rawDesc = []byte{ 0x64, 0x75, 0x6c, 0x65, 0x42, 0x1e, 0xc8, 0xde, 0x1f, 0x00, 0xea, 0xde, 0x1f, 0x11, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x73, 0x2c, 0x6f, 0x6d, 0x69, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x79, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x07, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x58, 0x0a, - 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, + 0x09, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x20, 0xc8, 0xde, 0x1f, 0x00, - 0xea, 0xde, 0x1f, 0x13, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2c, 0x6f, 0x6d, - 0x69, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x79, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x09, 0x72, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x5e, 0x0a, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, - 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x69, - 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, - 0x62, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x22, 0xc8, 0xde, 0x1f, 0x00, 0xea, 0xde, 0x1f, - 0x15, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x73, 0x2c, 0x6f, 0x6d, 0x69, - 0x74, 0x65, 0x6d, 0x70, 0x74, 0x79, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0a, 0x74, 0x61, 0x62, - 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x12, 0x65, 0x0a, 0x0d, 0x74, 0x61, 0x62, 0x6c, 0x65, - 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x24, 0xc8, 0xde, 0x1f, 0x00, - 0xea, 0xde, 0x1f, 0x17, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, - 0x73, 0x2c, 0x6f, 0x6d, 0x69, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x79, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, - 0x52, 0x0c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, 0x56, - 0x0a, 0x09, 0x64, 0x65, 0x78, 0x5f, 0x70, 0x61, 0x69, 0x72, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x17, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, - 0x76, 0x31, 0x2e, 0x44, 0x65, 0x78, 0x50, 0x61, 0x69, 0x72, 0x42, 0x20, 0xc8, 0xde, 0x1f, 0x00, - 0xea, 0xde, 0x1f, 0x13, 0x64, 0x65, 0x78, 0x5f, 0x70, 0x61, 0x69, 0x72, 0x73, 0x2c, 0x6f, 0x6d, - 0x69, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x79, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x08, 0x64, 0x65, - 0x78, 0x50, 0x61, 0x69, 0x72, 0x73, 0x42, 0xb5, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x69, - 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x47, - 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x37, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, - 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x61, 0x70, 0x69, - 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x76, 0x31, 0x3b, - 0x6d, 0x6f, 0x76, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x49, 0x4d, 0x58, 0xaa, 0x02, 0x0e, 0x49, - 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x4d, 0x6f, 0x76, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0e, - 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x5c, 0x4d, 0x6f, 0x76, 0x65, 0x5c, 0x56, 0x31, 0xe2, 0x02, - 0x1a, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x5c, 0x4d, 0x6f, 0x76, 0x65, 0x5c, 0x56, 0x31, 0x5c, - 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x10, 0x49, 0x6e, - 0x69, 0x74, 0x69, 0x61, 0x3a, 0x3a, 0x4d, 0x6f, 0x76, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x42, 0x20, 0xc8, 0xde, 0x1f, 0x00, + 0xea, 0xde, 0x1f, 0x13, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x73, 0x2c, 0x6f, 0x6d, + 0x69, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x79, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x09, 0x63, 0x68, + 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x73, 0x12, 0x58, 0x0a, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x69, 0x6e, 0x69, + 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x42, 0x20, 0xc8, 0xde, 0x1f, 0x00, 0xea, 0xde, 0x1f, 0x13, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2c, 0x6f, 0x6d, 0x69, 0x74, 0x65, 0x6d, 0x70, 0x74, + 0x79, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x73, 0x12, 0x5e, 0x0a, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x73, + 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, + 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x6e, 0x66, + 0x6f, 0x42, 0x22, 0xc8, 0xde, 0x1f, 0x00, 0xea, 0xde, 0x1f, 0x15, 0x74, 0x61, 0x62, 0x6c, 0x65, + 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x73, 0x2c, 0x6f, 0x6d, 0x69, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x79, + 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, + 0x73, 0x12, 0x65, 0x0a, 0x0d, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x69, + 0x65, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, + 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x42, 0x24, 0xc8, 0xde, 0x1f, 0x00, 0xea, 0xde, 0x1f, 0x17, 0x74, 0x61, + 0x62, 0x6c, 0x65, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x2c, 0x6f, 0x6d, 0x69, 0x74, + 0x65, 0x6d, 0x70, 0x74, 0x79, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0c, 0x74, 0x61, 0x62, 0x6c, + 0x65, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, 0x56, 0x0a, 0x09, 0x64, 0x65, 0x78, 0x5f, + 0x70, 0x61, 0x69, 0x72, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x69, 0x6e, + 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x78, + 0x50, 0x61, 0x69, 0x72, 0x42, 0x20, 0xc8, 0xde, 0x1f, 0x00, 0xea, 0xde, 0x1f, 0x13, 0x64, 0x65, + 0x78, 0x5f, 0x70, 0x61, 0x69, 0x72, 0x73, 0x2c, 0x6f, 0x6d, 0x69, 0x74, 0x65, 0x6d, 0x70, 0x74, + 0x79, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x08, 0x64, 0x65, 0x78, 0x50, 0x61, 0x69, 0x72, 0x73, + 0x42, 0xb5, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, + 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, + 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, + 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, + 0x61, 0x2f, 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x6d, 0x6f, 0x76, 0x65, 0x76, 0x31, + 0xa2, 0x02, 0x03, 0x49, 0x4d, 0x58, 0xaa, 0x02, 0x0e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, + 0x4d, 0x6f, 0x76, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, + 0x5c, 0x4d, 0x6f, 0x76, 0x65, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1a, 0x49, 0x6e, 0x69, 0x74, 0x69, + 0x61, 0x5c, 0x4d, 0x6f, 0x76, 0x65, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x10, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x3a, 0x3a, + 0x4d, 0x6f, 0x76, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1499,23 +1650,25 @@ var file_initia_move_v1_genesis_proto_goTypes = []interface{}{ (*GenesisState)(nil), // 0: initia.move.v1.GenesisState (*Params)(nil), // 1: initia.move.v1.Params (*Module)(nil), // 2: initia.move.v1.Module - (*Resource)(nil), // 3: initia.move.v1.Resource - (*TableInfo)(nil), // 4: initia.move.v1.TableInfo - (*TableEntry)(nil), // 5: initia.move.v1.TableEntry - (*DexPair)(nil), // 6: initia.move.v1.DexPair + (*Checksum)(nil), // 3: initia.move.v1.Checksum + (*Resource)(nil), // 4: initia.move.v1.Resource + (*TableInfo)(nil), // 5: initia.move.v1.TableInfo + (*TableEntry)(nil), // 6: initia.move.v1.TableEntry + (*DexPair)(nil), // 7: initia.move.v1.DexPair } var file_initia_move_v1_genesis_proto_depIdxs = []int32{ 1, // 0: initia.move.v1.GenesisState.params:type_name -> initia.move.v1.Params 2, // 1: initia.move.v1.GenesisState.modules:type_name -> initia.move.v1.Module - 3, // 2: initia.move.v1.GenesisState.resources:type_name -> initia.move.v1.Resource - 4, // 3: initia.move.v1.GenesisState.table_infos:type_name -> initia.move.v1.TableInfo - 5, // 4: initia.move.v1.GenesisState.table_entries:type_name -> initia.move.v1.TableEntry - 6, // 5: initia.move.v1.GenesisState.dex_pairs:type_name -> initia.move.v1.DexPair - 6, // [6:6] is the sub-list for method output_type - 6, // [6:6] is the sub-list for method input_type - 6, // [6:6] is the sub-list for extension type_name - 6, // [6:6] is the sub-list for extension extendee - 0, // [0:6] is the sub-list for field type_name + 3, // 2: initia.move.v1.GenesisState.checksums:type_name -> initia.move.v1.Checksum + 4, // 3: initia.move.v1.GenesisState.resources:type_name -> initia.move.v1.Resource + 5, // 4: initia.move.v1.GenesisState.table_infos:type_name -> initia.move.v1.TableInfo + 6, // 5: initia.move.v1.GenesisState.table_entries:type_name -> initia.move.v1.TableEntry + 7, // 6: initia.move.v1.GenesisState.dex_pairs:type_name -> initia.move.v1.DexPair + 7, // [7:7] is the sub-list for method output_type + 7, // [7:7] is the sub-list for method input_type + 7, // [7:7] is the sub-list for extension type_name + 7, // [7:7] is the sub-list for extension extendee + 0, // [0:7] is the sub-list for field type_name } func init() { file_initia_move_v1_genesis_proto_init() } diff --git a/api/initia/move/v1/types.pulsar.go b/api/initia/move/v1/types.pulsar.go index 8ce550e2..e60406cf 100644 --- a/api/initia/move/v1/types.pulsar.go +++ b/api/initia/move/v1/types.pulsar.go @@ -2004,6 +2004,556 @@ func (x *fastReflection_Module) ProtoMethods() *protoiface.Methods { } } +var ( + md_Checksum protoreflect.MessageDescriptor + fd_Checksum_address protoreflect.FieldDescriptor + fd_Checksum_module_name protoreflect.FieldDescriptor + fd_Checksum_checksum protoreflect.FieldDescriptor +) + +func init() { + file_initia_move_v1_types_proto_init() + md_Checksum = File_initia_move_v1_types_proto.Messages().ByName("Checksum") + fd_Checksum_address = md_Checksum.Fields().ByName("address") + fd_Checksum_module_name = md_Checksum.Fields().ByName("module_name") + fd_Checksum_checksum = md_Checksum.Fields().ByName("checksum") +} + +var _ protoreflect.Message = (*fastReflection_Checksum)(nil) + +type fastReflection_Checksum Checksum + +func (x *Checksum) ProtoReflect() protoreflect.Message { + return (*fastReflection_Checksum)(x) +} + +func (x *Checksum) slowProtoReflect() protoreflect.Message { + mi := &file_initia_move_v1_types_proto_msgTypes[3] + 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) +} + +var _fastReflection_Checksum_messageType fastReflection_Checksum_messageType +var _ protoreflect.MessageType = fastReflection_Checksum_messageType{} + +type fastReflection_Checksum_messageType struct{} + +func (x fastReflection_Checksum_messageType) Zero() protoreflect.Message { + return (*fastReflection_Checksum)(nil) +} +func (x fastReflection_Checksum_messageType) New() protoreflect.Message { + return new(fastReflection_Checksum) +} +func (x fastReflection_Checksum_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_Checksum +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_Checksum) Descriptor() protoreflect.MessageDescriptor { + return md_Checksum +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_Checksum) Type() protoreflect.MessageType { + return _fastReflection_Checksum_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_Checksum) New() protoreflect.Message { + return new(fastReflection_Checksum) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_Checksum) Interface() protoreflect.ProtoMessage { + return (*Checksum)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_Checksum) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Address != "" { + value := protoreflect.ValueOfString(x.Address) + if !f(fd_Checksum_address, value) { + return + } + } + if x.ModuleName != "" { + value := protoreflect.ValueOfString(x.ModuleName) + if !f(fd_Checksum_module_name, value) { + return + } + } + if len(x.Checksum) != 0 { + value := protoreflect.ValueOfBytes(x.Checksum) + if !f(fd_Checksum_checksum, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_Checksum) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "initia.move.v1.Checksum.address": + return x.Address != "" + case "initia.move.v1.Checksum.module_name": + return x.ModuleName != "" + case "initia.move.v1.Checksum.checksum": + return len(x.Checksum) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.Checksum")) + } + panic(fmt.Errorf("message initia.move.v1.Checksum does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Checksum) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "initia.move.v1.Checksum.address": + x.Address = "" + case "initia.move.v1.Checksum.module_name": + x.ModuleName = "" + case "initia.move.v1.Checksum.checksum": + x.Checksum = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.Checksum")) + } + panic(fmt.Errorf("message initia.move.v1.Checksum does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_Checksum) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "initia.move.v1.Checksum.address": + value := x.Address + return protoreflect.ValueOfString(value) + case "initia.move.v1.Checksum.module_name": + value := x.ModuleName + return protoreflect.ValueOfString(value) + case "initia.move.v1.Checksum.checksum": + value := x.Checksum + return protoreflect.ValueOfBytes(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.Checksum")) + } + panic(fmt.Errorf("message initia.move.v1.Checksum does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Checksum) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "initia.move.v1.Checksum.address": + x.Address = value.Interface().(string) + case "initia.move.v1.Checksum.module_name": + x.ModuleName = value.Interface().(string) + case "initia.move.v1.Checksum.checksum": + x.Checksum = value.Bytes() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.Checksum")) + } + panic(fmt.Errorf("message initia.move.v1.Checksum does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Checksum) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "initia.move.v1.Checksum.address": + panic(fmt.Errorf("field address of message initia.move.v1.Checksum is not mutable")) + case "initia.move.v1.Checksum.module_name": + panic(fmt.Errorf("field module_name of message initia.move.v1.Checksum is not mutable")) + case "initia.move.v1.Checksum.checksum": + panic(fmt.Errorf("field checksum of message initia.move.v1.Checksum is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.Checksum")) + } + panic(fmt.Errorf("message initia.move.v1.Checksum does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_Checksum) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "initia.move.v1.Checksum.address": + return protoreflect.ValueOfString("") + case "initia.move.v1.Checksum.module_name": + return protoreflect.ValueOfString("") + case "initia.move.v1.Checksum.checksum": + return protoreflect.ValueOfBytes(nil) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.Checksum")) + } + panic(fmt.Errorf("message initia.move.v1.Checksum does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_Checksum) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in initia.move.v1.Checksum", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_Checksum) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Checksum) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_Checksum) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_Checksum) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*Checksum) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Address) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.ModuleName) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Checksum) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*Checksum) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Checksum) > 0 { + i -= len(x.Checksum) + copy(dAtA[i:], x.Checksum) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Checksum))) + i-- + dAtA[i] = 0x1a + } + if len(x.ModuleName) > 0 { + i -= len(x.ModuleName) + copy(dAtA[i:], x.ModuleName) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ModuleName))) + i-- + dAtA[i] = 0x12 + } + if len(x.Address) > 0 { + i -= len(x.Address) + copy(dAtA[i:], x.Address) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*Checksum) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Checksum: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Checksum: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ModuleName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.ModuleName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Checksum", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Checksum = append(x.Checksum[:0], dAtA[iNdEx:postIndex]...) + if x.Checksum == nil { + x.Checksum = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + var ( md_Resource protoreflect.MessageDescriptor fd_Resource_address protoreflect.FieldDescriptor @@ -2030,7 +2580,7 @@ func (x *Resource) ProtoReflect() protoreflect.Message { } func (x *Resource) slowProtoReflect() protoreflect.Message { - mi := &file_initia_move_v1_types_proto_msgTypes[3] + mi := &file_initia_move_v1_types_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2642,7 +3192,7 @@ func (x *TableInfo) ProtoReflect() protoreflect.Message { } func (x *TableInfo) slowProtoReflect() protoreflect.Message { - mi := &file_initia_move_v1_types_proto_msgTypes[4] + mi := &file_initia_move_v1_types_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3194,7 +3744,7 @@ func (x *TableEntry) ProtoReflect() protoreflect.Message { } func (x *TableEntry) slowProtoReflect() protoreflect.Message { - mi := &file_initia_move_v1_types_proto_msgTypes[5] + mi := &file_initia_move_v1_types_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3866,7 +4416,7 @@ func (x *UpgradePolicyProto) ProtoReflect() protoreflect.Message { } func (x *UpgradePolicyProto) slowProtoReflect() protoreflect.Message { - mi := &file_initia_move_v1_types_proto_msgTypes[6] + mi := &file_initia_move_v1_types_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4272,7 +4822,7 @@ func (x *DexPair) ProtoReflect() protoreflect.Message { } func (x *DexPair) slowProtoReflect() protoreflect.Message { - mi := &file_initia_move_v1_types_proto_msgTypes[7] + mi := &file_initia_move_v1_types_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4804,7 +5354,7 @@ func (x *ExecuteAuthorizationItem) ProtoReflect() protoreflect.Message { } func (x *ExecuteAuthorizationItem) slowProtoReflect() protoreflect.Message { - mi := &file_initia_move_v1_types_proto_msgTypes[8] + mi := &file_initia_move_v1_types_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5544,7 +6094,6 @@ func (x *RawParams) GetScriptEnabled() bool { } // Module is data for the uploaded contract move code -// ex) 0000000000000000000000000000000000000001/0/BasicCoin type Module struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -5612,8 +6161,59 @@ func (x *Module) GetUpgradePolicy() UpgradePolicy { return UpgradePolicy_UNSPECIFIED } +// Checksum is checksum of the uploaded contract move code +type Checksum struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + ModuleName string `protobuf:"bytes,2,opt,name=module_name,json=moduleName,proto3" json:"module_name,omitempty"` + Checksum []byte `protobuf:"bytes,3,opt,name=checksum,proto3" json:"checksum,omitempty"` +} + +func (x *Checksum) Reset() { + *x = Checksum{} + if protoimpl.UnsafeEnabled { + mi := &file_initia_move_v1_types_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Checksum) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Checksum) ProtoMessage() {} + +// Deprecated: Use Checksum.ProtoReflect.Descriptor instead. +func (*Checksum) Descriptor() ([]byte, []int) { + return file_initia_move_v1_types_proto_rawDescGZIP(), []int{3} +} + +func (x *Checksum) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +func (x *Checksum) GetModuleName() string { + if x != nil { + return x.ModuleName + } + return "" +} + +func (x *Checksum) GetChecksum() []byte { + if x != nil { + return x.Checksum + } + return nil +} + // Resource is data for the stored move resource -// ex) 0000000000000000000000000000000000000002/2/0x1::BasicCoin::Coin<0x1::BasicCoin::Initia> type Resource struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -5628,7 +6228,7 @@ type Resource struct { func (x *Resource) Reset() { *x = Resource{} if protoimpl.UnsafeEnabled { - mi := &file_initia_move_v1_types_proto_msgTypes[3] + mi := &file_initia_move_v1_types_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5642,7 +6242,7 @@ func (*Resource) ProtoMessage() {} // Deprecated: Use Resource.ProtoReflect.Descriptor instead. func (*Resource) Descriptor() ([]byte, []int) { - return file_initia_move_v1_types_proto_rawDescGZIP(), []int{3} + return file_initia_move_v1_types_proto_rawDescGZIP(), []int{4} } func (x *Resource) GetAddress() string { @@ -5687,7 +6287,7 @@ type TableInfo struct { func (x *TableInfo) Reset() { *x = TableInfo{} if protoimpl.UnsafeEnabled { - mi := &file_initia_move_v1_types_proto_msgTypes[4] + mi := &file_initia_move_v1_types_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5701,7 +6301,7 @@ func (*TableInfo) ProtoMessage() {} // Deprecated: Use TableInfo.ProtoReflect.Descriptor instead. func (*TableInfo) Descriptor() ([]byte, []int) { - return file_initia_move_v1_types_proto_rawDescGZIP(), []int{4} + return file_initia_move_v1_types_proto_rawDescGZIP(), []int{5} } func (x *TableInfo) GetAddress() string { @@ -5741,7 +6341,7 @@ type TableEntry struct { func (x *TableEntry) Reset() { *x = TableEntry{} if protoimpl.UnsafeEnabled { - mi := &file_initia_move_v1_types_proto_msgTypes[5] + mi := &file_initia_move_v1_types_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5755,7 +6355,7 @@ func (*TableEntry) ProtoMessage() {} // Deprecated: Use TableEntry.ProtoReflect.Descriptor instead. func (*TableEntry) Descriptor() ([]byte, []int) { - return file_initia_move_v1_types_proto_rawDescGZIP(), []int{5} + return file_initia_move_v1_types_proto_rawDescGZIP(), []int{6} } func (x *TableEntry) GetAddress() string { @@ -5805,7 +6405,7 @@ type UpgradePolicyProto struct { func (x *UpgradePolicyProto) Reset() { *x = UpgradePolicyProto{} if protoimpl.UnsafeEnabled { - mi := &file_initia_move_v1_types_proto_msgTypes[6] + mi := &file_initia_move_v1_types_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5819,7 +6419,7 @@ func (*UpgradePolicyProto) ProtoMessage() {} // Deprecated: Use UpgradePolicyProto.ProtoReflect.Descriptor instead. func (*UpgradePolicyProto) Descriptor() ([]byte, []int) { - return file_initia_move_v1_types_proto_rawDescGZIP(), []int{6} + return file_initia_move_v1_types_proto_rawDescGZIP(), []int{7} } func (x *UpgradePolicyProto) GetPolicy() UpgradePolicy { @@ -5843,7 +6443,7 @@ type DexPair struct { func (x *DexPair) Reset() { *x = DexPair{} if protoimpl.UnsafeEnabled { - mi := &file_initia_move_v1_types_proto_msgTypes[7] + mi := &file_initia_move_v1_types_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5857,7 +6457,7 @@ func (*DexPair) ProtoMessage() {} // Deprecated: Use DexPair.ProtoReflect.Descriptor instead. func (*DexPair) Descriptor() ([]byte, []int) { - return file_initia_move_v1_types_proto_rawDescGZIP(), []int{7} + return file_initia_move_v1_types_proto_rawDescGZIP(), []int{8} } func (x *DexPair) GetMetadataQuote() string { @@ -5891,7 +6491,7 @@ type ExecuteAuthorizationItem struct { func (x *ExecuteAuthorizationItem) Reset() { *x = ExecuteAuthorizationItem{} if protoimpl.UnsafeEnabled { - mi := &file_initia_move_v1_types_proto_msgTypes[8] + mi := &file_initia_move_v1_types_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5905,7 +6505,7 @@ func (*ExecuteAuthorizationItem) ProtoMessage() {} // Deprecated: Use ExecuteAuthorizationItem.ProtoReflect.Descriptor instead. func (*ExecuteAuthorizationItem) Descriptor() ([]byte, []int) { - return file_initia_move_v1_types_proto_rawDescGZIP(), []int{8} + return file_initia_move_v1_types_proto_rawDescGZIP(), []int{9} } func (x *ExecuteAuthorizationItem) GetModuleAddress() string { @@ -5999,67 +6599,73 @@ var file_initia_move_v1_types_proto_rawDesc = []byte{ 0x63, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x0d, 0x75, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, - 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x85, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1d, 0x0a, - 0x0a, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x54, 0x61, 0x67, 0x12, 0x23, 0x0a, 0x0d, - 0x6d, 0x6f, 0x76, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x61, 0x77, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x72, 0x61, 0x77, 0x42, 0x79, 0x74, 0x65, 0x73, 0x22, 0x5f, - 0x0a, 0x09, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x5f, 0x74, 0x79, 0x70, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, - 0x12, 0x1d, 0x0a, 0x0a, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x54, 0x79, 0x70, 0x65, 0x22, - 0x8c, 0x01, 0x0a, 0x0a, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x18, + 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x61, 0x0a, 0x08, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, + 0x75, 0x6d, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1f, 0x0a, 0x0b, + 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0a, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, + 0x08, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x08, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x22, 0x85, 0x01, 0x0a, 0x08, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x54, 0x61, 0x67, 0x12, + 0x23, 0x0a, 0x0d, 0x6d, 0x6f, 0x76, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x61, 0x77, 0x5f, 0x62, 0x79, 0x74, 0x65, + 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x72, 0x61, 0x77, 0x42, 0x79, 0x74, 0x65, + 0x73, 0x22, 0x5f, 0x0a, 0x09, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x12, 0x1b, 0x0a, 0x09, 0x6b, 0x65, 0x79, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x0c, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x1f, 0x0a, - 0x0b, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x0a, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, 0x22, 0x4b, - 0x0a, 0x12, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x50, - 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x35, 0x0a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, - 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x50, 0x6f, 0x6c, - 0x69, 0x63, 0x79, 0x52, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x61, 0x0a, 0x07, 0x44, - 0x65, 0x78, 0x50, 0x61, 0x69, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x5f, 0x71, 0x75, 0x6f, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, - 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x51, 0x75, 0x6f, 0x74, 0x65, 0x12, 0x2f, 0x0a, - 0x0b, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6c, 0x70, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x0e, 0xe2, 0xde, 0x1f, 0x0a, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x4c, 0x50, 0x52, 0x0a, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x4c, 0x70, 0x22, 0x8f, - 0x01, 0x0a, 0x18, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, - 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x25, 0x0a, 0x0e, 0x6d, - 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x41, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x4e, - 0x61, 0x6d, 0x65, 0x12, 0x2b, 0x0a, 0x0e, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, - 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x42, 0x04, 0xc8, 0xde, 0x1f, - 0x01, 0x52, 0x0d, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x73, - 0x2a, 0x3f, 0x0a, 0x0d, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, - 0x79, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, - 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x43, 0x4f, 0x4d, 0x50, 0x41, 0x54, 0x49, 0x42, 0x4c, 0x45, - 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x49, 0x4d, 0x4d, 0x55, 0x54, 0x41, 0x42, 0x4c, 0x45, 0x10, - 0x02, 0x42, 0xbb, 0x01, 0xc8, 0xe1, 0x1e, 0x00, 0xa8, 0xe2, 0x1e, 0x01, 0x0a, 0x12, 0x63, 0x6f, - 0x6d, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, - 0x42, 0x0a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x37, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, - 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x61, 0x70, - 0x69, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x76, 0x31, - 0x3b, 0x6d, 0x6f, 0x76, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x49, 0x4d, 0x58, 0xaa, 0x02, 0x0e, - 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x4d, 0x6f, 0x76, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, - 0x0e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x5c, 0x4d, 0x6f, 0x76, 0x65, 0x5c, 0x56, 0x31, 0xe2, - 0x02, 0x1a, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x5c, 0x4d, 0x6f, 0x76, 0x65, 0x5c, 0x56, 0x31, - 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x10, 0x49, - 0x6e, 0x69, 0x74, 0x69, 0x61, 0x3a, 0x3a, 0x4d, 0x6f, 0x76, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x5f, + 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x54, + 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x54, 0x79, + 0x70, 0x65, 0x22, 0x8c, 0x01, 0x0a, 0x0a, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x6e, 0x74, 0x72, + 0x79, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x6b, + 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6b, 0x65, 0x79, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x6b, 0x65, 0x79, 0x42, 0x79, 0x74, 0x65, 0x73, + 0x12, 0x1f, 0x0a, 0x0b, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x79, 0x74, 0x65, + 0x73, 0x22, 0x4b, 0x0a, 0x12, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x50, 0x6f, 0x6c, 0x69, + 0x63, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x35, 0x0a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, + 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, + 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x61, + 0x0a, 0x07, 0x44, 0x65, 0x78, 0x50, 0x61, 0x69, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x6d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x71, 0x75, 0x6f, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0d, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x51, 0x75, 0x6f, 0x74, 0x65, + 0x12, 0x2f, 0x0a, 0x0b, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6c, 0x70, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0e, 0xe2, 0xde, 0x1f, 0x0a, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x4c, 0x50, 0x52, 0x0a, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x4c, + 0x70, 0x22, 0x8f, 0x01, 0x0a, 0x18, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x41, 0x75, 0x74, + 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x25, + 0x0a, 0x0e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6d, 0x6f, 0x64, 0x75, + 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2b, 0x0a, 0x0e, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x42, 0x04, + 0xc8, 0xde, 0x1f, 0x01, 0x52, 0x0d, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, + 0x6d, 0x65, 0x73, 0x2a, 0x3f, 0x0a, 0x0d, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x50, 0x6f, + 0x6c, 0x69, 0x63, 0x79, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, + 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x43, 0x4f, 0x4d, 0x50, 0x41, 0x54, 0x49, + 0x42, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x49, 0x4d, 0x4d, 0x55, 0x54, 0x41, 0x42, + 0x4c, 0x45, 0x10, 0x02, 0x42, 0xbb, 0x01, 0xc8, 0xe1, 0x1e, 0x00, 0xa8, 0xe2, 0x1e, 0x01, 0x0a, + 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, + 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, + 0x01, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x69, 0x6e, + 0x69, 0x74, 0x69, 0x61, 0x2d, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, + 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, 0x76, 0x65, + 0x2f, 0x76, 0x31, 0x3b, 0x6d, 0x6f, 0x76, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x49, 0x4d, 0x58, + 0xaa, 0x02, 0x0e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x4d, 0x6f, 0x76, 0x65, 0x2e, 0x56, + 0x31, 0xca, 0x02, 0x0e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x5c, 0x4d, 0x6f, 0x76, 0x65, 0x5c, + 0x56, 0x31, 0xe2, 0x02, 0x1a, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x5c, 0x4d, 0x6f, 0x76, 0x65, + 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, + 0x02, 0x10, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x3a, 0x3a, 0x4d, 0x6f, 0x76, 0x65, 0x3a, 0x3a, + 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -6075,18 +6681,19 @@ func file_initia_move_v1_types_proto_rawDescGZIP() []byte { } var file_initia_move_v1_types_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_initia_move_v1_types_proto_msgTypes = make([]protoimpl.MessageInfo, 9) +var file_initia_move_v1_types_proto_msgTypes = make([]protoimpl.MessageInfo, 10) var file_initia_move_v1_types_proto_goTypes = []interface{}{ (UpgradePolicy)(0), // 0: initia.move.v1.UpgradePolicy (*Params)(nil), // 1: initia.move.v1.Params (*RawParams)(nil), // 2: initia.move.v1.RawParams (*Module)(nil), // 3: initia.move.v1.Module - (*Resource)(nil), // 4: initia.move.v1.Resource - (*TableInfo)(nil), // 5: initia.move.v1.TableInfo - (*TableEntry)(nil), // 6: initia.move.v1.TableEntry - (*UpgradePolicyProto)(nil), // 7: initia.move.v1.UpgradePolicyProto - (*DexPair)(nil), // 8: initia.move.v1.DexPair - (*ExecuteAuthorizationItem)(nil), // 9: initia.move.v1.ExecuteAuthorizationItem + (*Checksum)(nil), // 4: initia.move.v1.Checksum + (*Resource)(nil), // 5: initia.move.v1.Resource + (*TableInfo)(nil), // 6: initia.move.v1.TableInfo + (*TableEntry)(nil), // 7: initia.move.v1.TableEntry + (*UpgradePolicyProto)(nil), // 8: initia.move.v1.UpgradePolicyProto + (*DexPair)(nil), // 9: initia.move.v1.DexPair + (*ExecuteAuthorizationItem)(nil), // 10: initia.move.v1.ExecuteAuthorizationItem } var file_initia_move_v1_types_proto_depIdxs = []int32{ 0, // 0: initia.move.v1.Module.upgrade_policy:type_name -> initia.move.v1.UpgradePolicy @@ -6141,7 +6748,7 @@ func file_initia_move_v1_types_proto_init() { } } file_initia_move_v1_types_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Resource); i { + switch v := v.(*Checksum); i { case 0: return &v.state case 1: @@ -6153,7 +6760,7 @@ func file_initia_move_v1_types_proto_init() { } } file_initia_move_v1_types_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TableInfo); i { + switch v := v.(*Resource); i { case 0: return &v.state case 1: @@ -6165,7 +6772,7 @@ func file_initia_move_v1_types_proto_init() { } } file_initia_move_v1_types_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TableEntry); i { + switch v := v.(*TableInfo); i { case 0: return &v.state case 1: @@ -6177,7 +6784,7 @@ func file_initia_move_v1_types_proto_init() { } } file_initia_move_v1_types_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpgradePolicyProto); i { + switch v := v.(*TableEntry); i { case 0: return &v.state case 1: @@ -6189,7 +6796,7 @@ func file_initia_move_v1_types_proto_init() { } } file_initia_move_v1_types_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DexPair); i { + switch v := v.(*UpgradePolicyProto); i { case 0: return &v.state case 1: @@ -6201,6 +6808,18 @@ func file_initia_move_v1_types_proto_init() { } } file_initia_move_v1_types_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DexPair); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_initia_move_v1_types_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ExecuteAuthorizationItem); i { case 0: return &v.state @@ -6219,7 +6838,7 @@ func file_initia_move_v1_types_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_initia_move_v1_types_proto_rawDesc, NumEnums: 1, - NumMessages: 9, + NumMessages: 10, NumExtensions: 0, NumServices: 0, }, diff --git a/api/initia/tx/v1/query.pulsar.go b/api/initia/tx/v1/query.pulsar.go new file mode 100644 index 00000000..87e72112 --- /dev/null +++ b/api/initia/tx/v1/query.pulsar.go @@ -0,0 +1,2044 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package txv1 + +import ( + v1beta1 "cosmossdk.io/api/cosmos/base/v1beta1" + fmt "fmt" + runtime "github.com/cosmos/cosmos-proto/runtime" + _ "github.com/cosmos/gogoproto/gogoproto" + _ "google.golang.org/genproto/googleapis/api/annotations" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_QueryGasPricesRequest protoreflect.MessageDescriptor +) + +func init() { + file_initia_tx_v1_query_proto_init() + md_QueryGasPricesRequest = File_initia_tx_v1_query_proto.Messages().ByName("QueryGasPricesRequest") +} + +var _ protoreflect.Message = (*fastReflection_QueryGasPricesRequest)(nil) + +type fastReflection_QueryGasPricesRequest QueryGasPricesRequest + +func (x *QueryGasPricesRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGasPricesRequest)(x) +} + +func (x *QueryGasPricesRequest) slowProtoReflect() protoreflect.Message { + mi := &file_initia_tx_v1_query_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) +} + +var _fastReflection_QueryGasPricesRequest_messageType fastReflection_QueryGasPricesRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryGasPricesRequest_messageType{} + +type fastReflection_QueryGasPricesRequest_messageType struct{} + +func (x fastReflection_QueryGasPricesRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGasPricesRequest)(nil) +} +func (x fastReflection_QueryGasPricesRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGasPricesRequest) +} +func (x fastReflection_QueryGasPricesRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGasPricesRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryGasPricesRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGasPricesRequest +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_QueryGasPricesRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryGasPricesRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryGasPricesRequest) New() protoreflect.Message { + return new(fastReflection_QueryGasPricesRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryGasPricesRequest) Interface() protoreflect.ProtoMessage { + return (*QueryGasPricesRequest)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_QueryGasPricesRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_QueryGasPricesRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.tx.v1.QueryGasPricesRequest")) + } + panic(fmt.Errorf("message initia.tx.v1.QueryGasPricesRequest does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryGasPricesRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.tx.v1.QueryGasPricesRequest")) + } + panic(fmt.Errorf("message initia.tx.v1.QueryGasPricesRequest does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_QueryGasPricesRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.tx.v1.QueryGasPricesRequest")) + } + panic(fmt.Errorf("message initia.tx.v1.QueryGasPricesRequest does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryGasPricesRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.tx.v1.QueryGasPricesRequest")) + } + panic(fmt.Errorf("message initia.tx.v1.QueryGasPricesRequest does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryGasPricesRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.tx.v1.QueryGasPricesRequest")) + } + panic(fmt.Errorf("message initia.tx.v1.QueryGasPricesRequest does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_QueryGasPricesRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.tx.v1.QueryGasPricesRequest")) + } + panic(fmt.Errorf("message initia.tx.v1.QueryGasPricesRequest does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_QueryGasPricesRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in initia.tx.v1.QueryGasPricesRequest", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_QueryGasPricesRequest) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryGasPricesRequest) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_QueryGasPricesRequest) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_QueryGasPricesRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryGasPricesRequest) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryGasPricesRequest) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*QueryGasPricesRequest) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGasPricesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGasPricesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var _ protoreflect.List = (*_QueryGasPricesResponse_1_list)(nil) + +type _QueryGasPricesResponse_1_list struct { + list *[]*v1beta1.DecCoin +} + +func (x *_QueryGasPricesResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryGasPricesResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryGasPricesResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*v1beta1.DecCoin) + (*x.list)[i] = concreteValue +} + +func (x *_QueryGasPricesResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*v1beta1.DecCoin) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryGasPricesResponse_1_list) AppendMutable() protoreflect.Value { + v := new(v1beta1.DecCoin) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryGasPricesResponse_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryGasPricesResponse_1_list) NewElement() protoreflect.Value { + v := new(v1beta1.DecCoin) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryGasPricesResponse_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_QueryGasPricesResponse protoreflect.MessageDescriptor + fd_QueryGasPricesResponse_gas_prices protoreflect.FieldDescriptor +) + +func init() { + file_initia_tx_v1_query_proto_init() + md_QueryGasPricesResponse = File_initia_tx_v1_query_proto.Messages().ByName("QueryGasPricesResponse") + fd_QueryGasPricesResponse_gas_prices = md_QueryGasPricesResponse.Fields().ByName("gas_prices") +} + +var _ protoreflect.Message = (*fastReflection_QueryGasPricesResponse)(nil) + +type fastReflection_QueryGasPricesResponse QueryGasPricesResponse + +func (x *QueryGasPricesResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGasPricesResponse)(x) +} + +func (x *QueryGasPricesResponse) slowProtoReflect() protoreflect.Message { + mi := &file_initia_tx_v1_query_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) +} + +var _fastReflection_QueryGasPricesResponse_messageType fastReflection_QueryGasPricesResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryGasPricesResponse_messageType{} + +type fastReflection_QueryGasPricesResponse_messageType struct{} + +func (x fastReflection_QueryGasPricesResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGasPricesResponse)(nil) +} +func (x fastReflection_QueryGasPricesResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGasPricesResponse) +} +func (x fastReflection_QueryGasPricesResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGasPricesResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryGasPricesResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGasPricesResponse +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_QueryGasPricesResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryGasPricesResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryGasPricesResponse) New() protoreflect.Message { + return new(fastReflection_QueryGasPricesResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryGasPricesResponse) Interface() protoreflect.ProtoMessage { + return (*QueryGasPricesResponse)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_QueryGasPricesResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.GasPrices) != 0 { + value := protoreflect.ValueOfList(&_QueryGasPricesResponse_1_list{list: &x.GasPrices}) + if !f(fd_QueryGasPricesResponse_gas_prices, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_QueryGasPricesResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "initia.tx.v1.QueryGasPricesResponse.gas_prices": + return len(x.GasPrices) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.tx.v1.QueryGasPricesResponse")) + } + panic(fmt.Errorf("message initia.tx.v1.QueryGasPricesResponse does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryGasPricesResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "initia.tx.v1.QueryGasPricesResponse.gas_prices": + x.GasPrices = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.tx.v1.QueryGasPricesResponse")) + } + panic(fmt.Errorf("message initia.tx.v1.QueryGasPricesResponse does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_QueryGasPricesResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "initia.tx.v1.QueryGasPricesResponse.gas_prices": + if len(x.GasPrices) == 0 { + return protoreflect.ValueOfList(&_QueryGasPricesResponse_1_list{}) + } + listValue := &_QueryGasPricesResponse_1_list{list: &x.GasPrices} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.tx.v1.QueryGasPricesResponse")) + } + panic(fmt.Errorf("message initia.tx.v1.QueryGasPricesResponse does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryGasPricesResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "initia.tx.v1.QueryGasPricesResponse.gas_prices": + lv := value.List() + clv := lv.(*_QueryGasPricesResponse_1_list) + x.GasPrices = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.tx.v1.QueryGasPricesResponse")) + } + panic(fmt.Errorf("message initia.tx.v1.QueryGasPricesResponse does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryGasPricesResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "initia.tx.v1.QueryGasPricesResponse.gas_prices": + if x.GasPrices == nil { + x.GasPrices = []*v1beta1.DecCoin{} + } + value := &_QueryGasPricesResponse_1_list{list: &x.GasPrices} + return protoreflect.ValueOfList(value) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.tx.v1.QueryGasPricesResponse")) + } + panic(fmt.Errorf("message initia.tx.v1.QueryGasPricesResponse does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_QueryGasPricesResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "initia.tx.v1.QueryGasPricesResponse.gas_prices": + list := []*v1beta1.DecCoin{} + return protoreflect.ValueOfList(&_QueryGasPricesResponse_1_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.tx.v1.QueryGasPricesResponse")) + } + panic(fmt.Errorf("message initia.tx.v1.QueryGasPricesResponse does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_QueryGasPricesResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in initia.tx.v1.QueryGasPricesResponse", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_QueryGasPricesResponse) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryGasPricesResponse) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_QueryGasPricesResponse) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_QueryGasPricesResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryGasPricesResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if len(x.GasPrices) > 0 { + for _, e := range x.GasPrices { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryGasPricesResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.GasPrices) > 0 { + for iNdEx := len(x.GasPrices) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.GasPrices[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0xa + } + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*QueryGasPricesResponse) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGasPricesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGasPricesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GasPrices", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.GasPrices = append(x.GasPrices, &v1beta1.DecCoin{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.GasPrices[len(x.GasPrices)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_QueryGasPriceRequest protoreflect.MessageDescriptor + fd_QueryGasPriceRequest_denom protoreflect.FieldDescriptor +) + +func init() { + file_initia_tx_v1_query_proto_init() + md_QueryGasPriceRequest = File_initia_tx_v1_query_proto.Messages().ByName("QueryGasPriceRequest") + fd_QueryGasPriceRequest_denom = md_QueryGasPriceRequest.Fields().ByName("denom") +} + +var _ protoreflect.Message = (*fastReflection_QueryGasPriceRequest)(nil) + +type fastReflection_QueryGasPriceRequest QueryGasPriceRequest + +func (x *QueryGasPriceRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGasPriceRequest)(x) +} + +func (x *QueryGasPriceRequest) slowProtoReflect() protoreflect.Message { + mi := &file_initia_tx_v1_query_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) +} + +var _fastReflection_QueryGasPriceRequest_messageType fastReflection_QueryGasPriceRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryGasPriceRequest_messageType{} + +type fastReflection_QueryGasPriceRequest_messageType struct{} + +func (x fastReflection_QueryGasPriceRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGasPriceRequest)(nil) +} +func (x fastReflection_QueryGasPriceRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGasPriceRequest) +} +func (x fastReflection_QueryGasPriceRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGasPriceRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryGasPriceRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGasPriceRequest +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_QueryGasPriceRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryGasPriceRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryGasPriceRequest) New() protoreflect.Message { + return new(fastReflection_QueryGasPriceRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryGasPriceRequest) Interface() protoreflect.ProtoMessage { + return (*QueryGasPriceRequest)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_QueryGasPriceRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Denom != "" { + value := protoreflect.ValueOfString(x.Denom) + if !f(fd_QueryGasPriceRequest_denom, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_QueryGasPriceRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "initia.tx.v1.QueryGasPriceRequest.denom": + return x.Denom != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.tx.v1.QueryGasPriceRequest")) + } + panic(fmt.Errorf("message initia.tx.v1.QueryGasPriceRequest does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryGasPriceRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "initia.tx.v1.QueryGasPriceRequest.denom": + x.Denom = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.tx.v1.QueryGasPriceRequest")) + } + panic(fmt.Errorf("message initia.tx.v1.QueryGasPriceRequest does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_QueryGasPriceRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "initia.tx.v1.QueryGasPriceRequest.denom": + value := x.Denom + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.tx.v1.QueryGasPriceRequest")) + } + panic(fmt.Errorf("message initia.tx.v1.QueryGasPriceRequest does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryGasPriceRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "initia.tx.v1.QueryGasPriceRequest.denom": + x.Denom = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.tx.v1.QueryGasPriceRequest")) + } + panic(fmt.Errorf("message initia.tx.v1.QueryGasPriceRequest does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryGasPriceRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "initia.tx.v1.QueryGasPriceRequest.denom": + panic(fmt.Errorf("field denom of message initia.tx.v1.QueryGasPriceRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.tx.v1.QueryGasPriceRequest")) + } + panic(fmt.Errorf("message initia.tx.v1.QueryGasPriceRequest does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_QueryGasPriceRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "initia.tx.v1.QueryGasPriceRequest.denom": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.tx.v1.QueryGasPriceRequest")) + } + panic(fmt.Errorf("message initia.tx.v1.QueryGasPriceRequest does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_QueryGasPriceRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in initia.tx.v1.QueryGasPriceRequest", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_QueryGasPriceRequest) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryGasPriceRequest) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_QueryGasPriceRequest) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_QueryGasPriceRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryGasPriceRequest) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Denom) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryGasPriceRequest) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Denom) > 0 { + i -= len(x.Denom) + copy(dAtA[i:], x.Denom) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Denom))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*QueryGasPriceRequest) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGasPriceRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGasPriceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Denom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_QueryGasPriceResponse protoreflect.MessageDescriptor + fd_QueryGasPriceResponse_gas_price protoreflect.FieldDescriptor +) + +func init() { + file_initia_tx_v1_query_proto_init() + md_QueryGasPriceResponse = File_initia_tx_v1_query_proto.Messages().ByName("QueryGasPriceResponse") + fd_QueryGasPriceResponse_gas_price = md_QueryGasPriceResponse.Fields().ByName("gas_price") +} + +var _ protoreflect.Message = (*fastReflection_QueryGasPriceResponse)(nil) + +type fastReflection_QueryGasPriceResponse QueryGasPriceResponse + +func (x *QueryGasPriceResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryGasPriceResponse)(x) +} + +func (x *QueryGasPriceResponse) slowProtoReflect() protoreflect.Message { + mi := &file_initia_tx_v1_query_proto_msgTypes[3] + 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) +} + +var _fastReflection_QueryGasPriceResponse_messageType fastReflection_QueryGasPriceResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryGasPriceResponse_messageType{} + +type fastReflection_QueryGasPriceResponse_messageType struct{} + +func (x fastReflection_QueryGasPriceResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryGasPriceResponse)(nil) +} +func (x fastReflection_QueryGasPriceResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryGasPriceResponse) +} +func (x fastReflection_QueryGasPriceResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGasPriceResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryGasPriceResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryGasPriceResponse +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_QueryGasPriceResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryGasPriceResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryGasPriceResponse) New() protoreflect.Message { + return new(fastReflection_QueryGasPriceResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryGasPriceResponse) Interface() protoreflect.ProtoMessage { + return (*QueryGasPriceResponse)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_QueryGasPriceResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.GasPrice != nil { + value := protoreflect.ValueOfMessage(x.GasPrice.ProtoReflect()) + if !f(fd_QueryGasPriceResponse_gas_price, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_QueryGasPriceResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "initia.tx.v1.QueryGasPriceResponse.gas_price": + return x.GasPrice != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.tx.v1.QueryGasPriceResponse")) + } + panic(fmt.Errorf("message initia.tx.v1.QueryGasPriceResponse does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryGasPriceResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "initia.tx.v1.QueryGasPriceResponse.gas_price": + x.GasPrice = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.tx.v1.QueryGasPriceResponse")) + } + panic(fmt.Errorf("message initia.tx.v1.QueryGasPriceResponse does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_QueryGasPriceResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "initia.tx.v1.QueryGasPriceResponse.gas_price": + value := x.GasPrice + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.tx.v1.QueryGasPriceResponse")) + } + panic(fmt.Errorf("message initia.tx.v1.QueryGasPriceResponse does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryGasPriceResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "initia.tx.v1.QueryGasPriceResponse.gas_price": + x.GasPrice = value.Message().Interface().(*v1beta1.DecCoin) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.tx.v1.QueryGasPriceResponse")) + } + panic(fmt.Errorf("message initia.tx.v1.QueryGasPriceResponse does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryGasPriceResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "initia.tx.v1.QueryGasPriceResponse.gas_price": + if x.GasPrice == nil { + x.GasPrice = new(v1beta1.DecCoin) + } + return protoreflect.ValueOfMessage(x.GasPrice.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.tx.v1.QueryGasPriceResponse")) + } + panic(fmt.Errorf("message initia.tx.v1.QueryGasPriceResponse does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_QueryGasPriceResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "initia.tx.v1.QueryGasPriceResponse.gas_price": + m := new(v1beta1.DecCoin) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.tx.v1.QueryGasPriceResponse")) + } + panic(fmt.Errorf("message initia.tx.v1.QueryGasPriceResponse does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_QueryGasPriceResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in initia.tx.v1.QueryGasPriceResponse", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_QueryGasPriceResponse) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryGasPriceResponse) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_QueryGasPriceResponse) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_QueryGasPriceResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryGasPriceResponse) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.GasPrice != nil { + l = options.Size(x.GasPrice) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*QueryGasPriceResponse) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.GasPrice != nil { + encoded, err := options.Marshal(x.GasPrice) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*QueryGasPriceResponse) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGasPriceResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryGasPriceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GasPrice", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.GasPrice == nil { + x.GasPrice = &v1beta1.DecCoin{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.GasPrice); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: initia/tx/v1/query.proto + +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) +) + +// QueryGasPricesRequest is the request type for the Query/GasPrices RPC method. +type QueryGasPricesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *QueryGasPricesRequest) Reset() { + *x = QueryGasPricesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_initia_tx_v1_query_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryGasPricesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryGasPricesRequest) ProtoMessage() {} + +// Deprecated: Use QueryGasPricesRequest.ProtoReflect.Descriptor instead. +func (*QueryGasPricesRequest) Descriptor() ([]byte, []int) { + return file_initia_tx_v1_query_proto_rawDescGZIP(), []int{0} +} + +// QueryGasPricesResponse is the response type for the Query/GasPrices RPC method. +type QueryGasPricesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + GasPrices []*v1beta1.DecCoin `protobuf:"bytes,1,rep,name=gas_prices,json=gasPrices,proto3" json:"gas_prices,omitempty"` +} + +func (x *QueryGasPricesResponse) Reset() { + *x = QueryGasPricesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_initia_tx_v1_query_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryGasPricesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryGasPricesResponse) ProtoMessage() {} + +// Deprecated: Use QueryGasPricesResponse.ProtoReflect.Descriptor instead. +func (*QueryGasPricesResponse) Descriptor() ([]byte, []int) { + return file_initia_tx_v1_query_proto_rawDescGZIP(), []int{1} +} + +func (x *QueryGasPricesResponse) GetGasPrices() []*v1beta1.DecCoin { + if x != nil { + return x.GasPrices + } + return nil +} + +// QueryGasPriceRequest is the request type for the Query/GasPrice RPC method. +type QueryGasPriceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // denom defines the denomination of the gas price to query. + Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` +} + +func (x *QueryGasPriceRequest) Reset() { + *x = QueryGasPriceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_initia_tx_v1_query_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryGasPriceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryGasPriceRequest) ProtoMessage() {} + +// Deprecated: Use QueryGasPriceRequest.ProtoReflect.Descriptor instead. +func (*QueryGasPriceRequest) Descriptor() ([]byte, []int) { + return file_initia_tx_v1_query_proto_rawDescGZIP(), []int{2} +} + +func (x *QueryGasPriceRequest) GetDenom() string { + if x != nil { + return x.Denom + } + return "" +} + +// QueryGasPriceResponse is the response type for the Query/GasPrice RPC method. +type QueryGasPriceResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + GasPrice *v1beta1.DecCoin `protobuf:"bytes,1,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"` +} + +func (x *QueryGasPriceResponse) Reset() { + *x = QueryGasPriceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_initia_tx_v1_query_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryGasPriceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryGasPriceResponse) ProtoMessage() {} + +// Deprecated: Use QueryGasPriceResponse.ProtoReflect.Descriptor instead. +func (*QueryGasPriceResponse) Descriptor() ([]byte, []int) { + return file_initia_tx_v1_query_proto_rawDescGZIP(), []int{3} +} + +func (x *QueryGasPriceResponse) GetGasPrice() *v1beta1.DecCoin { + if x != nil { + return x.GasPrice + } + return nil +} + +var File_initia_tx_v1_query_proto protoreflect.FileDescriptor + +var file_initia_tx_v1_query_proto_rawDesc = []byte{ + 0x0a, 0x18, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x74, 0x78, 0x2f, 0x76, 0x31, 0x2f, 0x71, + 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x69, 0x6e, 0x69, 0x74, + 0x69, 0x61, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x1a, 0x1e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x63, 0x6f, + 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x17, 0x0a, 0x15, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x61, 0x73, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xa0, 0x01, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, + 0x61, 0x73, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x85, 0x01, 0x0a, 0x0a, 0x67, 0x61, 0x73, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, + 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x63, 0x43, + 0x6f, 0x69, 0x6e, 0x42, 0x48, 0xc8, 0xde, 0x1f, 0x00, 0xf2, 0xde, 0x1f, 0x11, 0x79, 0x61, 0x6d, + 0x6c, 0x3a, 0x22, 0x67, 0x61, 0x73, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x73, 0x22, 0xaa, 0xdf, + 0x1f, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2e, 0x44, 0x65, 0x63, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0x52, 0x09, 0x67, + 0x61, 0x73, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, 0x22, 0x2c, 0x0a, 0x14, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x47, 0x61, 0x73, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x14, 0x0a, 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x22, 0x9b, 0x01, 0x0a, 0x15, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x47, 0x61, 0x73, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x81, 0x01, 0x0a, 0x09, 0x67, 0x61, 0x73, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, + 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x63, 0x43, 0x6f, + 0x69, 0x6e, 0x42, 0x46, 0xc8, 0xde, 0x1f, 0x00, 0xf2, 0xde, 0x1f, 0x10, 0x79, 0x61, 0x6d, 0x6c, + 0x3a, 0x22, 0x67, 0x61, 0x73, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x22, 0xfa, 0xde, 0x1f, 0x2a, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x2e, 0x44, 0x65, 0x63, 0x43, 0x6f, 0x69, 0x6e, 0x52, 0x08, 0x67, 0x61, 0x73, 0x50, + 0x72, 0x69, 0x63, 0x65, 0x32, 0x80, 0x02, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x78, + 0x0a, 0x09, 0x47, 0x61, 0x73, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, 0x12, 0x23, 0x2e, 0x69, 0x6e, + 0x69, 0x74, 0x69, 0x61, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x47, 0x61, 0x73, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x24, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x61, 0x73, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x12, 0x18, + 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x74, 0x78, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x61, + 0x73, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x73, 0x12, 0x7d, 0x0a, 0x08, 0x47, 0x61, 0x73, 0x50, + 0x72, 0x69, 0x63, 0x65, 0x12, 0x22, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x74, 0x78, + 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x61, 0x73, 0x50, 0x72, 0x69, 0x63, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, + 0x61, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x47, 0x61, 0x73, + 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x28, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x12, 0x20, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x74, + 0x78, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x61, 0x73, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x73, 0x2f, + 0x7b, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x42, 0xa5, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, + 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x74, 0x78, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x33, 0x67, 0x69, 0x74, 0x68, + 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2d, 0x6c, 0x61, + 0x62, 0x73, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x69, 0x6e, + 0x69, 0x74, 0x69, 0x61, 0x2f, 0x74, 0x78, 0x2f, 0x76, 0x31, 0x3b, 0x74, 0x78, 0x76, 0x31, 0xa2, + 0x02, 0x03, 0x49, 0x54, 0x58, 0xaa, 0x02, 0x0c, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x54, + 0x78, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0c, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x5c, 0x54, 0x78, + 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x18, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x5c, 0x54, 0x78, 0x5c, + 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, + 0x0e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x3a, 0x3a, 0x54, 0x78, 0x3a, 0x3a, 0x56, 0x31, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_initia_tx_v1_query_proto_rawDescOnce sync.Once + file_initia_tx_v1_query_proto_rawDescData = file_initia_tx_v1_query_proto_rawDesc +) + +func file_initia_tx_v1_query_proto_rawDescGZIP() []byte { + file_initia_tx_v1_query_proto_rawDescOnce.Do(func() { + file_initia_tx_v1_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_initia_tx_v1_query_proto_rawDescData) + }) + return file_initia_tx_v1_query_proto_rawDescData +} + +var file_initia_tx_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_initia_tx_v1_query_proto_goTypes = []interface{}{ + (*QueryGasPricesRequest)(nil), // 0: initia.tx.v1.QueryGasPricesRequest + (*QueryGasPricesResponse)(nil), // 1: initia.tx.v1.QueryGasPricesResponse + (*QueryGasPriceRequest)(nil), // 2: initia.tx.v1.QueryGasPriceRequest + (*QueryGasPriceResponse)(nil), // 3: initia.tx.v1.QueryGasPriceResponse + (*v1beta1.DecCoin)(nil), // 4: cosmos.base.v1beta1.DecCoin +} +var file_initia_tx_v1_query_proto_depIdxs = []int32{ + 4, // 0: initia.tx.v1.QueryGasPricesResponse.gas_prices:type_name -> cosmos.base.v1beta1.DecCoin + 4, // 1: initia.tx.v1.QueryGasPriceResponse.gas_price:type_name -> cosmos.base.v1beta1.DecCoin + 0, // 2: initia.tx.v1.Query.GasPrices:input_type -> initia.tx.v1.QueryGasPricesRequest + 2, // 3: initia.tx.v1.Query.GasPrice:input_type -> initia.tx.v1.QueryGasPriceRequest + 1, // 4: initia.tx.v1.Query.GasPrices:output_type -> initia.tx.v1.QueryGasPricesResponse + 3, // 5: initia.tx.v1.Query.GasPrice:output_type -> initia.tx.v1.QueryGasPriceResponse + 4, // [4:6] is the sub-list for method output_type + 2, // [2:4] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_initia_tx_v1_query_proto_init() } +func file_initia_tx_v1_query_proto_init() { + if File_initia_tx_v1_query_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_initia_tx_v1_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryGasPricesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_initia_tx_v1_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryGasPricesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_initia_tx_v1_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryGasPriceRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_initia_tx_v1_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryGasPriceResponse); 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_initia_tx_v1_query_proto_rawDesc, + NumEnums: 0, + NumMessages: 4, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_initia_tx_v1_query_proto_goTypes, + DependencyIndexes: file_initia_tx_v1_query_proto_depIdxs, + MessageInfos: file_initia_tx_v1_query_proto_msgTypes, + }.Build() + File_initia_tx_v1_query_proto = out.File + file_initia_tx_v1_query_proto_rawDesc = nil + file_initia_tx_v1_query_proto_goTypes = nil + file_initia_tx_v1_query_proto_depIdxs = nil +} diff --git a/api/initia/tx/v1/query_grpc.pb.go b/api/initia/tx/v1/query_grpc.pb.go new file mode 100644 index 00000000..435601c5 --- /dev/null +++ b/api/initia/tx/v1/query_grpc.pb.go @@ -0,0 +1,150 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.3.0 +// - protoc (unknown) +// source: initia/tx/v1/query.proto + +package txv1 + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +const ( + Query_GasPrices_FullMethodName = "/initia.tx.v1.Query/GasPrices" + Query_GasPrice_FullMethodName = "/initia.tx.v1.Query/GasPrice" +) + +// QueryClient is the client API for Query service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type QueryClient interface { + // GasPrices returns the gas prices for the network. + GasPrices(ctx context.Context, in *QueryGasPricesRequest, opts ...grpc.CallOption) (*QueryGasPricesResponse, error) + // GasPrice returns the gas price for the network. + GasPrice(ctx context.Context, in *QueryGasPriceRequest, opts ...grpc.CallOption) (*QueryGasPriceResponse, error) +} + +type queryClient struct { + cc grpc.ClientConnInterface +} + +func NewQueryClient(cc grpc.ClientConnInterface) QueryClient { + return &queryClient{cc} +} + +func (c *queryClient) GasPrices(ctx context.Context, in *QueryGasPricesRequest, opts ...grpc.CallOption) (*QueryGasPricesResponse, error) { + out := new(QueryGasPricesResponse) + err := c.cc.Invoke(ctx, Query_GasPrices_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) GasPrice(ctx context.Context, in *QueryGasPriceRequest, opts ...grpc.CallOption) (*QueryGasPriceResponse, error) { + out := new(QueryGasPriceResponse) + err := c.cc.Invoke(ctx, Query_GasPrice_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// QueryServer is the server API for Query service. +// All implementations must embed UnimplementedQueryServer +// for forward compatibility +type QueryServer interface { + // GasPrices returns the gas prices for the network. + GasPrices(context.Context, *QueryGasPricesRequest) (*QueryGasPricesResponse, error) + // GasPrice returns the gas price for the network. + GasPrice(context.Context, *QueryGasPriceRequest) (*QueryGasPriceResponse, error) + mustEmbedUnimplementedQueryServer() +} + +// UnimplementedQueryServer must be embedded to have forward compatible implementations. +type UnimplementedQueryServer struct { +} + +func (UnimplementedQueryServer) GasPrices(context.Context, *QueryGasPricesRequest) (*QueryGasPricesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GasPrices not implemented") +} +func (UnimplementedQueryServer) GasPrice(context.Context, *QueryGasPriceRequest) (*QueryGasPriceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GasPrice not implemented") +} +func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {} + +// UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to QueryServer will +// result in compilation errors. +type UnsafeQueryServer interface { + mustEmbedUnimplementedQueryServer() +} + +func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer) { + s.RegisterService(&Query_ServiceDesc, srv) +} + +func _Query_GasPrices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryGasPricesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).GasPrices(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_GasPrices_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).GasPrices(ctx, req.(*QueryGasPricesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_GasPrice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryGasPriceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).GasPrice(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_GasPrice_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).GasPrice(ctx, req.(*QueryGasPriceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// Query_ServiceDesc is the grpc.ServiceDesc for Query service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var Query_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "initia.tx.v1.Query", + HandlerType: (*QueryServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GasPrices", + Handler: _Query_GasPrices_Handler, + }, + { + MethodName: "GasPrice", + Handler: _Query_GasPrice_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "initia/tx/v1/query.proto", +} diff --git a/proto/initia/move/v1/genesis.proto b/proto/initia/move/v1/genesis.proto index a6c35233..24bc8537 100644 --- a/proto/initia/move/v1/genesis.proto +++ b/proto/initia/move/v1/genesis.proto @@ -20,22 +20,27 @@ message GenesisState { (gogoproto.nullable) = false, (amino.dont_omitempty) = true ]; - repeated Resource resources = 5 [ + repeated Checksum checksums = 5 [ + (gogoproto.jsontag) = "checksums,omitempty", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; + repeated Resource resources = 6 [ (gogoproto.jsontag) = "resources,omitempty", (gogoproto.nullable) = false, (amino.dont_omitempty) = true ]; - repeated TableInfo table_infos = 6 [ + repeated TableInfo table_infos = 7 [ (gogoproto.jsontag) = "table_infos,omitempty", (gogoproto.nullable) = false, (amino.dont_omitempty) = true ]; - repeated TableEntry table_entries = 7 [ + repeated TableEntry table_entries = 8 [ (gogoproto.jsontag) = "table_entries,omitempty", (gogoproto.nullable) = false, (amino.dont_omitempty) = true ]; - repeated DexPair dex_pairs = 8 [ + repeated DexPair dex_pairs = 9 [ (gogoproto.jsontag) = "dex_pairs,omitempty", (gogoproto.nullable) = false, (amino.dont_omitempty) = true diff --git a/proto/initia/move/v1/types.proto b/proto/initia/move/v1/types.proto index 6abc904f..a0fec2ce 100644 --- a/proto/initia/move/v1/types.proto +++ b/proto/initia/move/v1/types.proto @@ -64,7 +64,6 @@ message RawParams { } // Module is data for the uploaded contract move code -// ex) 0000000000000000000000000000000000000001/0/BasicCoin message Module { string address = 1; string module_name = 2; @@ -73,8 +72,14 @@ message Module { UpgradePolicy upgrade_policy = 5; } +// Checksum is checksum of the uploaded contract move code +message Checksum { + string address = 1; + string module_name = 2; + bytes checksum = 3; +} + // Resource is data for the stored move resource -// ex) 0000000000000000000000000000000000000002/2/0x1::BasicCoin::Coin<0x1::BasicCoin::Initia> message Resource { string address = 1; string struct_tag = 2; diff --git a/x/move/keeper/genesis.go b/x/move/keeper/genesis.go index 4ae2cab7..c1976f47 100644 --- a/x/move/keeper/genesis.go +++ b/x/move/keeper/genesis.go @@ -90,6 +90,17 @@ func (k Keeper) InitGenesis(ctx context.Context, moduleNames []string, genState } } + for _, checksum := range genState.GetChecksums() { + addr, err := types.AccAddressFromString(k.ac, checksum.Address) + if err != nil { + return err + } + + if err := k.SetChecksum(ctx, addr, checksum.ModuleName, checksum.Checksum); err != nil { + return err + } + } + for _, resource := range genState.GetResources() { addr, err := types.AccAddressFromString(k.ac, resource.Address) if err != nil { @@ -140,11 +151,13 @@ func (k Keeper) ExportGenesis(ctx context.Context) *types.GenesisState { } var modules []types.Module + var checksums []types.Checksum var resources []types.Resource var tableEntries []types.TableEntry var tableInfos []types.TableInfo err = k.IterateVMStore(ctx, func( module *types.Module, + checksum *types.Checksum, resource *types.Resource, tableInfo *types.TableInfo, tableEntry *types.TableEntry, @@ -153,6 +166,10 @@ func (k Keeper) ExportGenesis(ctx context.Context) *types.GenesisState { modules = append(modules, *module) } + if checksum != nil { + checksums = append(checksums, *checksum) + } + if resource != nil { resources = append(resources, *resource) } @@ -182,6 +199,7 @@ func (k Keeper) ExportGenesis(ctx context.Context) *types.GenesisState { } genState.Modules = modules + genState.Checksums = checksums genState.Resources = resources genState.TableInfos = tableInfos genState.TableEntries = tableEntries diff --git a/x/move/keeper/keeper.go b/x/move/keeper/keeper.go index 4dad8d22..5f2833f0 100644 --- a/x/move/keeper/keeper.go +++ b/x/move/keeper/keeper.go @@ -221,6 +221,29 @@ func (k Keeper) SetChecksum( return nil } +// GetChecksum return checksum of module of the given account address and name +func (k Keeper) GetChecksum( + ctx context.Context, + addr vmtypes.AccountAddress, + moduleName string, +) (types.Checksum, error) { + bz, err := types.GetChecksumKey(addr, moduleName) + if err != nil { + return types.Checksum{}, err + } + + checksumBytes, err := k.VMStore.Get(ctx, bz) + if err != nil { + return types.Checksum{}, err + } + + return types.Checksum{ + Address: addr.String(), + ModuleName: moduleName, + Checksum: checksumBytes, + }, nil +} + // SetModule store Module bytes // This function should be used only when InitGenesis func (k Keeper) SetModule( @@ -526,7 +549,7 @@ func (k Keeper) SetTableEntry( } // IterateVMStore iterate VMStore store for genesis export -func (k Keeper) IterateVMStore(ctx context.Context, cb func(*types.Module, *types.Resource, *types.TableInfo, *types.TableEntry)) error { +func (k Keeper) IterateVMStore(ctx context.Context, cb func(*types.Module, *types.Checksum, *types.Resource, *types.TableInfo, *types.TableEntry)) error { err := k.VMStore.Walk(ctx, nil, func(key, value []byte) (stop bool, err error) { cursor := types.AddressBytesLength addrBytes := key[:cursor] @@ -555,6 +578,18 @@ func (k Keeper) IterateVMStore(ctx context.Context, cb func(*types.Module, *type ModuleName: string(moduleName), RawBytes: value, UpgradePolicy: policy, + }, nil, nil, nil, nil) + } else if separator == types.ChecksumSeparator { + // Checksum + moduleName, err := vmtypes.BcsDeserializeIdentifier(key[cursor:]) + if err != nil { + return true, err + } + + cb(nil, &types.Checksum{ + Address: vmAddr.String(), + ModuleName: string(moduleName), + Checksum: value, }, nil, nil, nil) } else if separator == types.ResourceSeparator { // Resource @@ -568,7 +603,7 @@ func (k Keeper) IterateVMStore(ctx context.Context, cb func(*types.Module, *type return true, err } - cb(nil, &types.Resource{ + cb(nil, nil, &types.Resource{ Address: vmAddr.String(), StructTag: structTagStr, RawBytes: value, @@ -590,14 +625,14 @@ func (k Keeper) IterateVMStore(ctx context.Context, cb func(*types.Module, *type return true, err } - cb(nil, nil, &types.TableInfo{ + cb(nil, nil, nil, &types.TableInfo{ Address: vmAddr.String(), KeyType: keyType, ValueType: valueType, }, nil) } else if separator == types.TableEntrySeparator { // Table Entry - cb(nil, nil, nil, &types.TableEntry{ + cb(nil, nil, nil, nil, &types.TableEntry{ Address: vmAddr.String(), KeyBytes: key[cursor:], ValueBytes: value, diff --git a/x/move/keeper/keeper_test.go b/x/move/keeper/keeper_test.go index a885333c..4662c90b 100644 --- a/x/move/keeper/keeper_test.go +++ b/x/move/keeper/keeper_test.go @@ -53,6 +53,28 @@ func TestSetModule(t *testing.T) { }, module) } +func TestGetAndSetChecksum(t *testing.T) { + ctx, input := createDefaultTestInput(t) + + err := input.MoveKeeper.PublishModuleBundle(ctx, + vmtypes.StdAddress, + vmtypes.NewModuleBundle(vmtypes.NewModule(basicCoinModule)), + types.UpgradePolicy_IMMUTABLE, + ) + require.NoError(t, err) + + basicCoinChecksum := types.ModuleBzToChecksum(basicCoinModule) + + checksum, err := input.MoveKeeper.GetChecksum(ctx, vmtypes.StdAddress, "BasicCoin") + require.NoError(t, err) + + require.Equal(t, types.Checksum{ + Address: vmtypes.StdAddress.String(), + ModuleName: "BasicCoin", + Checksum: basicCoinChecksum[:], + }, checksum) +} + func TestGetAndSetResource(t *testing.T) { ctx, input := createDefaultTestInput(t) @@ -155,6 +177,9 @@ func TestIterateVMStore(t *testing.T) { data, err := vmtypes.SerializeUint64(100) require.NoError(t, err) + basicCoinChecksum := types.ModuleBzToChecksum(basicCoinModule) + input.MoveKeeper.SetChecksum(ctx, vmtypes.StdAddress, "BasicCoin", basicCoinChecksum[:]) + input.MoveKeeper.SetResource(ctx, vmtypes.TestAddress, structTag, data) input.MoveKeeper.SetTableInfo(ctx, types.TableInfo{ Address: vmtypes.TestAddress.String(), @@ -166,7 +191,7 @@ func TestIterateVMStore(t *testing.T) { KeyBytes: []byte{1, 2, 3}, ValueBytes: []byte{4, 5, 6}, }) - input.MoveKeeper.IterateVMStore(ctx, func(module *types.Module, resource *types.Resource, tableInfo *types.TableInfo, tableEntry *types.TableEntry) { + input.MoveKeeper.IterateVMStore(ctx, func(module *types.Module, checksum *types.Checksum, resource *types.Resource, tableInfo *types.TableInfo, tableEntry *types.TableEntry) { if module != nil && module.ModuleName == "BasicCoin" { require.Equal(t, types.Module{ Address: "0x1", @@ -176,6 +201,14 @@ func TestIterateVMStore(t *testing.T) { }, *module) } + if checksum != nil && checksum.ModuleName == "BasicCoin" { + require.Equal(t, types.Checksum{ + Address: "0x1", + ModuleName: "BasicCoin", + Checksum: basicCoinChecksum[:], + }, *checksum) + } + if resource != nil && resource.Address == "0x2" { require.Equal(t, types.Resource{ Address: "0x2", diff --git a/x/move/types/genesis.pb.go b/x/move/types/genesis.pb.go index 81430fe7..229588a0 100644 --- a/x/move/types/genesis.pb.go +++ b/x/move/types/genesis.pb.go @@ -30,10 +30,11 @@ type GenesisState struct { ExecutionCounter uint64 `protobuf:"varint,2,opt,name=execution_counter,json=executionCounter,proto3" json:"execution_counter,omitempty" yaml:"execution_counter"` Stdlibs [][]byte `protobuf:"bytes,3,rep,name=stdlibs,proto3" json:"stdlibs,omitempty"` Modules []Module `protobuf:"bytes,4,rep,name=modules,proto3" json:"modules,omitempty"` - Resources []Resource `protobuf:"bytes,5,rep,name=resources,proto3" json:"resources,omitempty"` - TableInfos []TableInfo `protobuf:"bytes,6,rep,name=table_infos,json=tableInfos,proto3" json:"table_infos,omitempty"` - TableEntries []TableEntry `protobuf:"bytes,7,rep,name=table_entries,json=tableEntries,proto3" json:"table_entries,omitempty"` - DexPairs []DexPair `protobuf:"bytes,8,rep,name=dex_pairs,json=dexPairs,proto3" json:"dex_pairs,omitempty"` + Checksums []Checksum `protobuf:"bytes,5,rep,name=checksums,proto3" json:"checksums,omitempty"` + Resources []Resource `protobuf:"bytes,6,rep,name=resources,proto3" json:"resources,omitempty"` + TableInfos []TableInfo `protobuf:"bytes,7,rep,name=table_infos,json=tableInfos,proto3" json:"table_infos,omitempty"` + TableEntries []TableEntry `protobuf:"bytes,8,rep,name=table_entries,json=tableEntries,proto3" json:"table_entries,omitempty"` + DexPairs []DexPair `protobuf:"bytes,9,rep,name=dex_pairs,json=dexPairs,proto3" json:"dex_pairs,omitempty"` } func (m *GenesisState) Reset() { *m = GenesisState{} } @@ -97,6 +98,13 @@ func (m *GenesisState) GetModules() []Module { return nil } +func (m *GenesisState) GetChecksums() []Checksum { + if m != nil { + return m.Checksums + } + return nil +} + func (m *GenesisState) GetResources() []Resource { if m != nil { return m.Resources @@ -132,37 +140,38 @@ func init() { func init() { proto.RegisterFile("initia/move/v1/genesis.proto", fileDescriptor_40442fa21a3f8cef) } var fileDescriptor_40442fa21a3f8cef = []byte{ - // 474 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x92, 0xc1, 0x6e, 0xd3, 0x40, - 0x10, 0x86, 0x63, 0xd2, 0x26, 0xcd, 0x36, 0x20, 0x62, 0x28, 0x5d, 0xa2, 0xca, 0xb1, 0x22, 0x0e, - 0x51, 0x05, 0xb6, 0x0a, 0x27, 0x38, 0x9a, 0x22, 0xd4, 0x03, 0x52, 0x14, 0x10, 0x42, 0x1c, 0x88, - 0xd6, 0xc9, 0x34, 0xac, 0x64, 0xef, 0x5a, 0xbb, 0xeb, 0x28, 0x79, 0x8b, 0x3e, 0x06, 0x47, 0x1e, - 0xa3, 0xc7, 0x1e, 0x39, 0x45, 0x28, 0x39, 0x20, 0x71, 0xe4, 0x09, 0x90, 0x77, 0x37, 0x09, 0x35, - 0xb9, 0x58, 0xa3, 0x99, 0xff, 0xff, 0xfe, 0xf1, 0x6a, 0xd0, 0x09, 0x65, 0x54, 0x51, 0x12, 0xa6, - 0x7c, 0x0a, 0xe1, 0xf4, 0x2c, 0x9c, 0x00, 0x03, 0x49, 0x65, 0x90, 0x09, 0xae, 0xb8, 0x7b, 0xcf, - 0x4c, 0x83, 0x62, 0x1a, 0x4c, 0xcf, 0xda, 0x2d, 0x92, 0x52, 0xc6, 0x43, 0xfd, 0x35, 0x92, 0xf6, - 0xc3, 0x09, 0x9f, 0x70, 0x5d, 0x86, 0x45, 0x65, 0xbb, 0xed, 0x12, 0x56, 0xcd, 0x33, 0xb0, 0xd0, - 0xee, 0xd5, 0x3e, 0x6a, 0xbe, 0x35, 0x31, 0xef, 0x15, 0x51, 0xe0, 0xbe, 0x44, 0xb5, 0x8c, 0x08, - 0x92, 0x4a, 0xec, 0xf8, 0x4e, 0xef, 0xf0, 0xf9, 0xa3, 0xe0, 0x76, 0x6c, 0xd0, 0xd7, 0xd3, 0xa8, - 0x71, 0xbd, 0xe8, 0x54, 0xbe, 0xfd, 0xfa, 0x7e, 0xea, 0x0c, 0xac, 0xc1, 0xbd, 0x40, 0x2d, 0x98, - 0xc1, 0x28, 0x57, 0x94, 0xb3, 0xe1, 0x88, 0xe7, 0x4c, 0x81, 0xc0, 0x77, 0x7c, 0xa7, 0xb7, 0x17, - 0x9d, 0xfc, 0x59, 0x74, 0xf0, 0x9c, 0xa4, 0xc9, 0xab, 0xee, 0x7f, 0x92, 0xee, 0xe0, 0xfe, 0xa6, - 0xf7, 0xda, 0xb4, 0xdc, 0x10, 0xd5, 0xa5, 0x1a, 0x27, 0x34, 0x96, 0xb8, 0xea, 0x57, 0x7b, 0xcd, - 0xe8, 0xe8, 0xf7, 0xa2, 0xd3, 0xb2, 0xad, 0xa7, 0x3c, 0xa5, 0x0a, 0xd2, 0x4c, 0xcd, 0x07, 0x6b, - 0x95, 0xdb, 0x47, 0xf5, 0x94, 0x8f, 0xf3, 0x04, 0x24, 0xde, 0xf3, 0xab, 0xbb, 0xf6, 0x7e, 0xa7, - 0xc7, 0x91, 0x57, 0xec, 0x5d, 0xc0, 0xac, 0x7c, 0x0b, 0x33, 0x3f, 0xb3, 0xc6, 0xb8, 0x9f, 0x50, - 0x43, 0x80, 0xe4, 0xb9, 0x18, 0x81, 0xc4, 0xfb, 0x9a, 0x89, 0xcb, 0xcc, 0x81, 0x15, 0x44, 0xbe, - 0xa5, 0x3e, 0xd8, 0x58, 0xca, 0xdc, 0x2d, 0xcc, 0xfd, 0x82, 0x0e, 0x15, 0x89, 0x13, 0x18, 0x52, - 0x76, 0xc9, 0x25, 0xae, 0x69, 0xf6, 0xe3, 0x32, 0xfb, 0x43, 0x21, 0xb9, 0x60, 0x97, 0x3c, 0xea, - 0x5a, 0xf8, 0xd1, 0x3f, 0xae, 0x32, 0x1e, 0xa9, 0xb5, 0x5c, 0xba, 0x80, 0xee, 0x1a, 0x25, 0x30, - 0x25, 0x28, 0x48, 0x5c, 0xd7, 0x09, 0xed, 0x9d, 0x09, 0x6f, 0x98, 0x12, 0xf3, 0xe8, 0x89, 0x8d, - 0x38, 0xbe, 0x65, 0x2c, 0x87, 0x34, 0xd5, 0xda, 0x41, 0x41, 0xba, 0x1f, 0x51, 0x63, 0x0c, 0xb3, - 0x61, 0x46, 0xa8, 0x90, 0xf8, 0x40, 0x47, 0x1c, 0x97, 0x23, 0xce, 0x61, 0xd6, 0x27, 0x54, 0x6c, - 0xdf, 0x67, 0xe3, 0x28, 0xb3, 0x0f, 0xc6, 0x46, 0x2a, 0xa3, 0xf3, 0xeb, 0xa5, 0xe7, 0xdc, 0x2c, - 0x3d, 0xe7, 0xe7, 0xd2, 0x73, 0xae, 0x56, 0x5e, 0xe5, 0x66, 0xe5, 0x55, 0x7e, 0xac, 0xbc, 0xca, - 0xe7, 0xd3, 0x09, 0x55, 0x5f, 0xf3, 0x38, 0x18, 0xf1, 0x34, 0x34, 0x41, 0xcf, 0x12, 0x12, 0x4b, - 0x5b, 0x87, 0x33, 0x73, 0xe1, 0xfa, 0xbc, 0xe3, 0x9a, 0xbe, 0xef, 0x17, 0x7f, 0x03, 0x00, 0x00, - 0xff, 0xff, 0xc9, 0xe3, 0x77, 0xbd, 0x54, 0x03, 0x00, 0x00, + // 496 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x93, 0xc1, 0x6e, 0xd3, 0x40, + 0x14, 0x45, 0x63, 0xd2, 0x26, 0xcd, 0x34, 0x20, 0x62, 0x28, 0x1d, 0xa2, 0xca, 0x89, 0x22, 0x16, + 0x51, 0x05, 0xb6, 0x0a, 0x2b, 0x58, 0xba, 0x45, 0xa8, 0x0b, 0xa4, 0x28, 0x20, 0x84, 0x58, 0x10, + 0x8d, 0x9d, 0xd7, 0x74, 0x84, 0xed, 0xb1, 0x66, 0xc6, 0x51, 0xf2, 0x17, 0x7c, 0x06, 0x4b, 0x3e, + 0xa3, 0xcb, 0x2e, 0x59, 0x45, 0x28, 0x59, 0x20, 0x75, 0xc9, 0x17, 0x20, 0xcf, 0x4c, 0x1c, 0xea, + 0x66, 0x13, 0x3d, 0xbd, 0x7b, 0xef, 0xb9, 0x13, 0x4b, 0x0f, 0x1d, 0xd1, 0x84, 0x4a, 0x4a, 0xbc, + 0x98, 0x4d, 0xc1, 0x9b, 0x9e, 0x78, 0x13, 0x48, 0x40, 0x50, 0xe1, 0xa6, 0x9c, 0x49, 0x66, 0x3f, + 0xd0, 0xaa, 0x9b, 0xab, 0xee, 0xf4, 0xa4, 0xdd, 0x22, 0x31, 0x4d, 0x98, 0xa7, 0x7e, 0xb5, 0xa5, + 0xfd, 0x78, 0xc2, 0x26, 0x4c, 0x8d, 0x5e, 0x3e, 0x99, 0x6d, 0xbb, 0x84, 0x95, 0xf3, 0x14, 0x0c, + 0xb4, 0x77, 0xb3, 0x8b, 0x9a, 0xef, 0x74, 0xcd, 0x07, 0x49, 0x24, 0xd8, 0xaf, 0x51, 0x2d, 0x25, + 0x9c, 0xc4, 0x02, 0x5b, 0x5d, 0xab, 0xbf, 0xff, 0xf2, 0x89, 0x7b, 0xbb, 0xd6, 0x1d, 0x28, 0xd5, + 0x6f, 0x5c, 0x2d, 0x3a, 0x95, 0x1f, 0x7f, 0x7e, 0x1e, 0x5b, 0x43, 0x13, 0xb0, 0xcf, 0x51, 0x0b, + 0x66, 0x10, 0x66, 0x92, 0xb2, 0x64, 0x14, 0xb2, 0x2c, 0x91, 0xc0, 0xf1, 0xbd, 0xae, 0xd5, 0xdf, + 0xf1, 0x8f, 0xfe, 0x2e, 0x3a, 0x78, 0x4e, 0xe2, 0xe8, 0x4d, 0xef, 0x8e, 0xa5, 0x37, 0x7c, 0x58, + 0xec, 0x4e, 0xf5, 0xca, 0xf6, 0x50, 0x5d, 0xc8, 0x71, 0x44, 0x03, 0x81, 0xab, 0xdd, 0x6a, 0xbf, + 0xe9, 0x1f, 0xdc, 0x2c, 0x3a, 0x2d, 0xb3, 0x7a, 0xce, 0x62, 0x2a, 0x21, 0x4e, 0xe5, 0x7c, 0xb8, + 0x76, 0xd9, 0x03, 0x54, 0x8f, 0xd9, 0x38, 0x8b, 0x40, 0xe0, 0x9d, 0x6e, 0x75, 0xdb, 0xbb, 0xdf, + 0x2b, 0xd9, 0x77, 0xf2, 0x77, 0xe7, 0x30, 0x63, 0xdf, 0xc0, 0xf4, 0x9f, 0x59, 0x63, 0xec, 0xcf, + 0xa8, 0x11, 0x5e, 0x42, 0xf8, 0x4d, 0x64, 0xb1, 0xc0, 0xbb, 0x8a, 0x89, 0xcb, 0xcc, 0x53, 0x63, + 0xf0, 0xbb, 0x86, 0xfa, 0xa8, 0x88, 0x94, 0xb9, 0x1b, 0x58, 0x4e, 0xe6, 0x20, 0x58, 0xc6, 0x43, + 0x10, 0xb8, 0xb6, 0x9d, 0x3c, 0x34, 0x86, 0x0d, 0xb9, 0x88, 0xdc, 0x21, 0x17, 0x8a, 0xfd, 0x15, + 0xed, 0x4b, 0x12, 0x44, 0x30, 0xa2, 0xc9, 0x05, 0x13, 0xb8, 0xae, 0xd8, 0x4f, 0xcb, 0xec, 0x8f, + 0xb9, 0xe5, 0x3c, 0xb9, 0x60, 0x7e, 0xcf, 0xc0, 0x0f, 0xfe, 0x4b, 0x95, 0xf1, 0x48, 0xae, 0xed, + 0xc2, 0x06, 0x74, 0x5f, 0x3b, 0x21, 0x91, 0x9c, 0x82, 0xc0, 0x7b, 0xaa, 0xa1, 0xbd, 0xb5, 0xe1, + 0x6d, 0x22, 0xf9, 0xdc, 0x7f, 0x66, 0x2a, 0x0e, 0x6f, 0x05, 0xcb, 0x25, 0x4d, 0xb9, 0x4e, 0x50, + 0x10, 0xf6, 0x27, 0xd4, 0x18, 0xc3, 0x6c, 0x94, 0x12, 0xca, 0x05, 0x6e, 0xa8, 0x8a, 0xc3, 0x72, + 0xc5, 0x19, 0xcc, 0x06, 0x84, 0xf2, 0xcd, 0xf7, 0x29, 0x12, 0x65, 0xf6, 0xde, 0x58, 0x5b, 0x85, + 0x7f, 0x76, 0xb5, 0x74, 0xac, 0xeb, 0xa5, 0x63, 0xfd, 0x5e, 0x3a, 0xd6, 0xf7, 0x95, 0x53, 0xb9, + 0x5e, 0x39, 0x95, 0x5f, 0x2b, 0xa7, 0xf2, 0xe5, 0x78, 0x42, 0xe5, 0x65, 0x16, 0xb8, 0x21, 0x8b, + 0x3d, 0x5d, 0xf4, 0x22, 0x22, 0x81, 0x30, 0xb3, 0x37, 0xd3, 0xb7, 0xa3, 0x0e, 0x27, 0xa8, 0xa9, + 0xcb, 0x79, 0xf5, 0x2f, 0x00, 0x00, 0xff, 0xff, 0x68, 0x70, 0xec, 0x44, 0xae, 0x03, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { @@ -196,7 +205,7 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintGenesis(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x42 + dAtA[i] = 0x4a } } if len(m.TableEntries) > 0 { @@ -210,7 +219,7 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintGenesis(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x3a + dAtA[i] = 0x42 } } if len(m.TableInfos) > 0 { @@ -224,7 +233,7 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintGenesis(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x32 + dAtA[i] = 0x3a } } if len(m.Resources) > 0 { @@ -238,6 +247,20 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintGenesis(dAtA, i, uint64(size)) } i-- + dAtA[i] = 0x32 + } + } + if len(m.Checksums) > 0 { + for iNdEx := len(m.Checksums) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Checksums[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x2a } } @@ -316,6 +339,12 @@ func (m *GenesisState) Size() (n int) { n += 1 + l + sovGenesis(uint64(l)) } } + if len(m.Checksums) > 0 { + for _, e := range m.Checksums { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } if len(m.Resources) > 0 { for _, e := range m.Resources { l = e.Size() @@ -497,6 +526,40 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { } iNdEx = postIndex case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Checksums", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Checksums = append(m.Checksums, Checksum{}) + if err := m.Checksums[len(m.Checksums)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType) } @@ -530,7 +593,7 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 6: + case 7: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field TableInfos", wireType) } @@ -564,7 +627,7 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 7: + case 8: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field TableEntries", wireType) } @@ -598,7 +661,7 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 8: + case 9: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field DexPairs", wireType) } diff --git a/x/move/types/types.pb.go b/x/move/types/types.pb.go index 60a86da2..7b54db2b 100644 --- a/x/move/types/types.pb.go +++ b/x/move/types/types.pb.go @@ -148,7 +148,6 @@ func (m *RawParams) XXX_DiscardUnknown() { var xxx_messageInfo_RawParams proto.InternalMessageInfo // Module is data for the uploaded contract move code -// ex) 0000000000000000000000000000000000000001/0/BasicCoin type Module struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` ModuleName string `protobuf:"bytes,2,opt,name=module_name,json=moduleName,proto3" json:"module_name,omitempty"` @@ -190,8 +189,47 @@ func (m *Module) XXX_DiscardUnknown() { var xxx_messageInfo_Module proto.InternalMessageInfo +// Checksum is checksum of the uploaded contract move code +type Checksum struct { + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + ModuleName string `protobuf:"bytes,2,opt,name=module_name,json=moduleName,proto3" json:"module_name,omitempty"` + Checksum []byte `protobuf:"bytes,3,opt,name=checksum,proto3" json:"checksum,omitempty"` +} + +func (m *Checksum) Reset() { *m = Checksum{} } +func (m *Checksum) String() string { return proto.CompactTextString(m) } +func (*Checksum) ProtoMessage() {} +func (*Checksum) Descriptor() ([]byte, []int) { + return fileDescriptor_5ab4b0783858a3a5, []int{3} +} +func (m *Checksum) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Checksum) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Checksum.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Checksum) XXX_Merge(src proto.Message) { + xxx_messageInfo_Checksum.Merge(m, src) +} +func (m *Checksum) XXX_Size() int { + return m.Size() +} +func (m *Checksum) XXX_DiscardUnknown() { + xxx_messageInfo_Checksum.DiscardUnknown(m) +} + +var xxx_messageInfo_Checksum proto.InternalMessageInfo + // Resource is data for the stored move resource -// ex) 0000000000000000000000000000000000000002/2/0x1::BasicCoin::Coin<0x1::BasicCoin::Initia> type Resource struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` StructTag string `protobuf:"bytes,2,opt,name=struct_tag,json=structTag,proto3" json:"struct_tag,omitempty"` @@ -203,7 +241,7 @@ func (m *Resource) Reset() { *m = Resource{} } func (m *Resource) String() string { return proto.CompactTextString(m) } func (*Resource) ProtoMessage() {} func (*Resource) Descriptor() ([]byte, []int) { - return fileDescriptor_5ab4b0783858a3a5, []int{3} + return fileDescriptor_5ab4b0783858a3a5, []int{4} } func (m *Resource) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -243,7 +281,7 @@ func (m *TableInfo) Reset() { *m = TableInfo{} } func (m *TableInfo) String() string { return proto.CompactTextString(m) } func (*TableInfo) ProtoMessage() {} func (*TableInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_5ab4b0783858a3a5, []int{4} + return fileDescriptor_5ab4b0783858a3a5, []int{5} } func (m *TableInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -285,7 +323,7 @@ func (m *TableEntry) Reset() { *m = TableEntry{} } func (m *TableEntry) String() string { return proto.CompactTextString(m) } func (*TableEntry) ProtoMessage() {} func (*TableEntry) Descriptor() ([]byte, []int) { - return fileDescriptor_5ab4b0783858a3a5, []int{5} + return fileDescriptor_5ab4b0783858a3a5, []int{6} } func (m *TableEntry) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -323,7 +361,7 @@ func (m *UpgradePolicyProto) Reset() { *m = UpgradePolicyProto{} } func (m *UpgradePolicyProto) String() string { return proto.CompactTextString(m) } func (*UpgradePolicyProto) ProtoMessage() {} func (*UpgradePolicyProto) Descriptor() ([]byte, []int) { - return fileDescriptor_5ab4b0783858a3a5, []int{6} + return fileDescriptor_5ab4b0783858a3a5, []int{7} } func (m *UpgradePolicyProto) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -363,7 +401,7 @@ func (m *DexPair) Reset() { *m = DexPair{} } func (m *DexPair) String() string { return proto.CompactTextString(m) } func (*DexPair) ProtoMessage() {} func (*DexPair) Descriptor() ([]byte, []int) { - return fileDescriptor_5ab4b0783858a3a5, []int{7} + return fileDescriptor_5ab4b0783858a3a5, []int{8} } func (m *DexPair) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -406,7 +444,7 @@ func (m *ExecuteAuthorizationItem) Reset() { *m = ExecuteAuthorizationIt func (m *ExecuteAuthorizationItem) String() string { return proto.CompactTextString(m) } func (*ExecuteAuthorizationItem) ProtoMessage() {} func (*ExecuteAuthorizationItem) Descriptor() ([]byte, []int) { - return fileDescriptor_5ab4b0783858a3a5, []int{8} + return fileDescriptor_5ab4b0783858a3a5, []int{9} } func (m *ExecuteAuthorizationItem) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -440,6 +478,7 @@ func init() { proto.RegisterType((*Params)(nil), "initia.move.v1.Params") proto.RegisterType((*RawParams)(nil), "initia.move.v1.RawParams") proto.RegisterType((*Module)(nil), "initia.move.v1.Module") + proto.RegisterType((*Checksum)(nil), "initia.move.v1.Checksum") proto.RegisterType((*Resource)(nil), "initia.move.v1.Resource") proto.RegisterType((*TableInfo)(nil), "initia.move.v1.TableInfo") proto.RegisterType((*TableEntry)(nil), "initia.move.v1.TableEntry") @@ -451,62 +490,63 @@ func init() { func init() { proto.RegisterFile("initia/move/v1/types.proto", fileDescriptor_5ab4b0783858a3a5) } var fileDescriptor_5ab4b0783858a3a5 = []byte{ - // 874 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x55, 0xbf, 0x8f, 0x1b, 0xc5, - 0x17, 0xf7, 0x9c, 0x73, 0x3f, 0xfc, 0x1c, 0x3b, 0x97, 0x51, 0x8a, 0xcd, 0x45, 0x67, 0x9f, 0xf6, - 0xfb, 0x45, 0x3a, 0x1d, 0xc2, 0x56, 0x40, 0x34, 0x69, 0xd0, 0x39, 0x36, 0xc8, 0xc2, 0x0e, 0x9b, - 0x8d, 0xaf, 0xa1, 0x59, 0x8d, 0x77, 0x27, 0xf6, 0xca, 0xbb, 0x3b, 0xcb, 0xcc, 0xac, 0xef, 0x96, - 0x9e, 0x06, 0x21, 0x81, 0x44, 0x43, 0x99, 0x32, 0x65, 0x4a, 0xfe, 0x01, 0xa4, 0x2b, 0x53, 0x22, - 0x90, 0x2c, 0xf0, 0x15, 0xa1, 0xe6, 0x2f, 0x40, 0x33, 0xb3, 0x3e, 0xb0, 0x22, 0x59, 0xd7, 0xd0, - 0xd1, 0xac, 0x66, 0x3e, 0x9f, 0x8f, 0xde, 0xfb, 0xbc, 0xf7, 0x76, 0x66, 0xe0, 0x20, 0x4c, 0x42, - 0x19, 0x92, 0x76, 0xcc, 0xe6, 0xb4, 0x3d, 0x7f, 0xd8, 0x96, 0x79, 0x4a, 0x45, 0x2b, 0xe5, 0x4c, - 0x32, 0x5c, 0x37, 0x5c, 0x4b, 0x71, 0xad, 0xf9, 0xc3, 0x83, 0xbb, 0x24, 0x0e, 0x13, 0xd6, 0xd6, - 0x5f, 0x23, 0x39, 0xb8, 0x37, 0x61, 0x13, 0xa6, 0x97, 0x6d, 0xb5, 0x32, 0xa8, 0xfd, 0x53, 0x19, - 0x76, 0x1c, 0xc2, 0x49, 0x2c, 0xf0, 0x21, 0xc0, 0x98, 0x08, 0xea, 0x05, 0x34, 0x61, 0xb1, 0x85, - 0x8e, 0xd0, 0x71, 0xc5, 0xad, 0x28, 0xa4, 0xab, 0x00, 0xcc, 0x01, 0x6b, 0x3a, 0x0e, 0x13, 0x6f, - 0x42, 0x84, 0x97, 0xf2, 0xd0, 0xa7, 0xd6, 0x96, 0x92, 0x75, 0x7a, 0x97, 0x8b, 0x66, 0xe9, 0x97, - 0x45, 0xf3, 0x81, 0xcf, 0x44, 0xcc, 0x84, 0x08, 0x66, 0xad, 0x90, 0xb5, 0x63, 0x22, 0xa7, 0xad, - 0x01, 0x9d, 0x10, 0x3f, 0xef, 0x52, 0xff, 0xcf, 0x45, 0xf3, 0x7e, 0x4e, 0xe2, 0xe8, 0x91, 0xfd, - 0x76, 0x18, 0xfb, 0xe5, 0x9b, 0x57, 0x27, 0xc8, 0xbd, 0xa3, 0x98, 0x61, 0x98, 0x7c, 0x42, 0x84, - 0xa3, 0x60, 0xfc, 0x3d, 0x82, 0x43, 0x9f, 0x25, 0x92, 0x13, 0x5f, 0x7a, 0x62, 0x4a, 0x38, 0x0d, - 0x3c, 0x4e, 0xe7, 0x34, 0xc9, 0xa8, 0xc7, 0x89, 0x0c, 0x99, 0x55, 0xd6, 0xf9, 0x9d, 0x9b, 0xe5, - 0xff, 0xbf, 0xc9, 0xbf, 0x31, 0x62, 0x61, 0xe5, 0x60, 0x25, 0x7a, 0xa6, 0x35, 0xae, 0x91, 0xb8, - 0x4a, 0x81, 0xdf, 0x81, 0xba, 0xf0, 0x79, 0x98, 0x4a, 0x8f, 0x26, 0x64, 0x1c, 0xd1, 0xc0, 0xba, - 0x75, 0x84, 0x8e, 0xf7, 0xdc, 0x9a, 0x41, 0x7b, 0x06, 0xc4, 0x4f, 0x01, 0x93, 0x28, 0x62, 0xe7, - 0x34, 0xf0, 0xd2, 0x6c, 0x1c, 0x85, 0x62, 0x4a, 0xb9, 0xb0, 0xb6, 0x8f, 0xca, 0xc7, 0x95, 0x8e, - 0xfd, 0x77, 0x37, 0xde, 0xd6, 0x14, 0x16, 0xee, 0x16, 0x8c, 0x73, 0x4d, 0x3c, 0xb2, 0x7e, 0x78, - 0xd1, 0x2c, 0xfd, 0xf1, 0xa2, 0x89, 0xbe, 0x7e, 0xf3, 0xea, 0xa4, 0xaa, 0x7f, 0x04, 0x33, 0x3c, - 0xfb, 0xd7, 0x2d, 0xa8, 0xb8, 0xe4, 0xfc, 0xbf, 0x51, 0xfe, 0x1b, 0xa3, 0xb4, 0x7f, 0x44, 0xb0, - 0x33, 0x64, 0x41, 0x16, 0x51, 0x6c, 0xc1, 0x2e, 0x09, 0x02, 0x4e, 0x85, 0x28, 0xfa, 0xba, 0xda, - 0xe2, 0x26, 0x54, 0x63, 0xad, 0xf1, 0x12, 0x12, 0x17, 0xed, 0x74, 0xc1, 0x40, 0x4f, 0x48, 0x4c, - 0xf1, 0x3e, 0x94, 0xc9, 0x38, 0x34, 0x75, 0xba, 0x6a, 0x89, 0x1f, 0x40, 0x85, 0x93, 0x73, 0x6f, - 0x9c, 0x4b, 0x2a, 0x74, 0xe6, 0xdb, 0xee, 0x1e, 0x27, 0xe7, 0x1d, 0xb5, 0xc7, 0x5d, 0xa8, 0x67, - 0xe9, 0x84, 0x93, 0x80, 0x7a, 0x29, 0x8b, 0x42, 0x3f, 0xb7, 0xb6, 0x8f, 0xd0, 0x71, 0xfd, 0xfd, - 0xc3, 0xd6, 0xfa, 0x61, 0x6f, 0x9d, 0x19, 0x95, 0xa3, 0x45, 0x6e, 0x2d, 0xfb, 0xe7, 0xd6, 0xfe, - 0x0a, 0xc1, 0x9e, 0x4b, 0x05, 0xcb, 0xb8, 0xbf, 0xc9, 0xfc, 0x21, 0x80, 0x90, 0x3c, 0xf3, 0xa5, - 0x27, 0xc9, 0xa4, 0xf0, 0x5e, 0x31, 0xc8, 0x88, 0x4c, 0xf0, 0xff, 0xa0, 0xa6, 0xb2, 0x79, 0xbc, - 0x88, 0x54, 0x14, 0x71, 0x5b, 0x81, 0xd7, 0xd1, 0x37, 0x55, 0x63, 0x7b, 0x50, 0x19, 0xa9, 0x66, - 0xf6, 0x93, 0xe7, 0x6c, 0x83, 0x8f, 0xfb, 0xb0, 0x37, 0xa3, 0xb9, 0xa7, 0xee, 0xb6, 0xc2, 0xc5, - 0xee, 0x8c, 0xe6, 0xa3, 0x3c, 0xa5, 0xca, 0xe2, 0x9c, 0x44, 0x19, 0x35, 0xa4, 0x31, 0x50, 0xd1, - 0x88, 0xa2, 0xed, 0x6f, 0x10, 0x80, 0xce, 0xd0, 0x4b, 0x24, 0xcf, 0x37, 0xa4, 0xd8, 0x87, 0xf2, - 0x8c, 0xe6, 0x45, 0x74, 0xb5, 0xc4, 0xf7, 0x60, 0x5b, 0xc7, 0x29, 0x82, 0x9a, 0x8d, 0x2a, 0x47, - 0x59, 0x59, 0x2b, 0x67, 0x46, 0x73, 0x33, 0x9c, 0x26, 0x54, 0x8d, 0x19, 0x43, 0x6f, 0x6b, 0xda, - 0xf8, 0x33, 0xf5, 0x7e, 0x0a, 0x78, 0x6d, 0x2e, 0x8e, 0xbe, 0xa7, 0x3f, 0x84, 0x9d, 0x62, 0x96, - 0xe8, 0x26, 0xb3, 0x2c, 0xc4, 0x36, 0x81, 0xdd, 0x2e, 0xbd, 0x70, 0x48, 0xc8, 0xd5, 0x1f, 0x1b, - 0x53, 0x49, 0x02, 0x22, 0x89, 0xf7, 0x45, 0xc6, 0x24, 0x2d, 0xca, 0xab, 0xad, 0xd0, 0xa7, 0x0a, - 0xc4, 0x6d, 0xa8, 0x5e, 0xcb, 0xa2, 0xb4, 0x38, 0xdb, 0xf5, 0xe5, 0xa2, 0x09, 0xc3, 0x02, 0x1e, - 0x38, 0x2e, 0xac, 0x24, 0x83, 0xd4, 0xfe, 0x16, 0x81, 0xd5, 0xbb, 0xa0, 0x7e, 0x26, 0xe9, 0x69, - 0x26, 0xa7, 0x8c, 0x87, 0x5f, 0xaa, 0x13, 0x92, 0xf4, 0x25, 0x8d, 0x75, 0x52, 0xf3, 0x6b, 0xaf, - 0xf7, 0xb4, 0x66, 0xd0, 0xd3, 0x9b, 0x9e, 0x80, 0x77, 0xa1, 0xfe, 0x3c, 0x4b, 0x7c, 0x15, 0x57, - 0x4b, 0x84, 0x55, 0xd6, 0xd7, 0xe1, 0xad, 0xcb, 0x45, 0x13, 0xb9, 0xb5, 0x15, 0xa7, 0xb4, 0xe2, - 0xe4, 0x23, 0xa8, 0xad, 0x75, 0x03, 0xdf, 0x81, 0xea, 0xd9, 0x93, 0x67, 0x4e, 0xef, 0x71, 0xff, - 0xe3, 0x7e, 0xaf, 0xbb, 0x5f, 0xc2, 0x75, 0x80, 0xc7, 0x9f, 0x0d, 0x9d, 0xd3, 0x51, 0xbf, 0x33, - 0xe8, 0xed, 0x23, 0x5c, 0x83, 0x4a, 0x7f, 0x38, 0x3c, 0x1b, 0x9d, 0xaa, 0xed, 0x56, 0x67, 0x70, - 0xf9, 0x7b, 0xa3, 0xf4, 0x72, 0xd9, 0x40, 0x97, 0xcb, 0x06, 0x7a, 0xbd, 0x6c, 0xa0, 0xdf, 0x96, - 0x0d, 0xf4, 0xdd, 0x55, 0xa3, 0xf4, 0xfa, 0xaa, 0x51, 0xfa, 0xf9, 0xaa, 0x51, 0xfa, 0xfc, 0x64, - 0x12, 0xca, 0x69, 0x36, 0x6e, 0xf9, 0x2c, 0x6e, 0x9b, 0x41, 0xbc, 0x17, 0x91, 0xb1, 0x28, 0xd6, - 0xed, 0x0b, 0xf3, 0xd6, 0xea, 0x87, 0x76, 0xbc, 0xa3, 0x1f, 0xcc, 0x0f, 0xfe, 0x0a, 0x00, 0x00, - 0xff, 0xff, 0x71, 0x0f, 0x36, 0x9a, 0x87, 0x07, 0x00, 0x00, + // 894 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x55, 0xbf, 0x6f, 0x23, 0x45, + 0x14, 0xf6, 0xc6, 0x97, 0xc4, 0x7e, 0x8e, 0x7d, 0xb9, 0xd1, 0x15, 0x7b, 0x3e, 0xc5, 0x8e, 0x16, + 0x90, 0xa2, 0x20, 0x6c, 0x1d, 0x88, 0xe6, 0x1a, 0x14, 0xc7, 0x06, 0x59, 0xd8, 0xc7, 0xde, 0x9e, + 0xd3, 0xd0, 0xac, 0xc6, 0xbb, 0x73, 0xf6, 0xca, 0xbb, 0x3b, 0xcb, 0xcc, 0xac, 0x93, 0xa5, 0xa7, + 0x41, 0x48, 0x20, 0xd1, 0x50, 0x5e, 0x79, 0xe5, 0x95, 0xfc, 0x03, 0x48, 0x29, 0xaf, 0x44, 0x20, + 0x59, 0xe0, 0x14, 0x47, 0xcd, 0x5f, 0x80, 0x66, 0x66, 0x1d, 0xb0, 0x22, 0x59, 0x91, 0x10, 0x1d, + 0xcd, 0x6a, 0xde, 0xf7, 0x7d, 0x7a, 0xbf, 0x77, 0x06, 0xea, 0x41, 0x1c, 0x88, 0x00, 0xb7, 0x23, + 0x3a, 0x27, 0xed, 0xf9, 0xa3, 0xb6, 0xc8, 0x12, 0xc2, 0x5b, 0x09, 0xa3, 0x82, 0xa2, 0x9a, 0xe6, + 0x5a, 0x92, 0x6b, 0xcd, 0x1f, 0xd5, 0xef, 0xe1, 0x28, 0x88, 0x69, 0x5b, 0x7d, 0xb5, 0xa4, 0x7e, + 0x7f, 0x42, 0x27, 0x54, 0x1d, 0xdb, 0xf2, 0xa4, 0x51, 0xeb, 0xa7, 0x22, 0xec, 0xd8, 0x98, 0xe1, + 0x88, 0xa3, 0x03, 0x80, 0x31, 0xe6, 0xc4, 0xf5, 0x49, 0x4c, 0x23, 0xd3, 0x38, 0x34, 0x8e, 0xca, + 0x4e, 0x59, 0x22, 0x5d, 0x09, 0x20, 0x06, 0x48, 0xd1, 0x51, 0x10, 0xbb, 0x13, 0xcc, 0xdd, 0x84, + 0x05, 0x1e, 0x31, 0xb7, 0xa4, 0xac, 0xd3, 0xbb, 0x5c, 0x34, 0x0b, 0xbf, 0x2c, 0x9a, 0x0f, 0x3d, + 0xca, 0x23, 0xca, 0xb9, 0x3f, 0x6b, 0x05, 0xb4, 0x1d, 0x61, 0x31, 0x6d, 0x0d, 0xc8, 0x04, 0x7b, + 0x59, 0x97, 0x78, 0x7f, 0x2e, 0x9a, 0x0f, 0x32, 0x1c, 0x85, 0x8f, 0xad, 0x9b, 0x6e, 0xac, 0x97, + 0x6f, 0x5e, 0x1d, 0x1b, 0xce, 0x5d, 0xc9, 0x0c, 0x83, 0xf8, 0x13, 0xcc, 0x6d, 0x09, 0xa3, 0xef, + 0x0d, 0x38, 0xf0, 0x68, 0x2c, 0x18, 0xf6, 0x84, 0xcb, 0xa7, 0x98, 0x11, 0xdf, 0x65, 0x64, 0x4e, + 0xe2, 0x94, 0xb8, 0x0c, 0x8b, 0x80, 0x9a, 0x45, 0x15, 0xdf, 0xbe, 0x5d, 0xfc, 0xb7, 0x75, 0xfc, + 0x8d, 0x1e, 0xf3, 0x54, 0xea, 0x2b, 0xd1, 0x33, 0xa5, 0x71, 0xb4, 0xc4, 0x91, 0x0a, 0xf4, 0x0e, + 0xd4, 0xb8, 0xc7, 0x82, 0x44, 0xb8, 0x24, 0xc6, 0xe3, 0x90, 0xf8, 0xe6, 0x9d, 0x43, 0xe3, 0xa8, + 0xe4, 0x54, 0x35, 0xda, 0xd3, 0x20, 0x7a, 0x0a, 0x08, 0x87, 0x21, 0x3d, 0x27, 0xbe, 0x9b, 0xa4, + 0xe3, 0x30, 0xe0, 0x53, 0xc2, 0xb8, 0xb9, 0x7d, 0x58, 0x3c, 0x2a, 0x77, 0xac, 0xbf, 0xbb, 0x71, + 0x53, 0x93, 0xa7, 0x70, 0x2f, 0x67, 0xec, 0x6b, 0xe2, 0xb1, 0xf9, 0xc3, 0x8b, 0x66, 0xe1, 0x8f, + 0x17, 0x4d, 0xe3, 0xeb, 0x37, 0xaf, 0x8e, 0x2b, 0x6a, 0x11, 0xf4, 0xf0, 0xac, 0x5f, 0xb7, 0xa0, + 0xec, 0xe0, 0xf3, 0xff, 0x47, 0xf9, 0x5f, 0x8c, 0xd2, 0xfa, 0xd1, 0x80, 0x9d, 0x21, 0xf5, 0xd3, + 0x90, 0x20, 0x13, 0x76, 0xb1, 0xef, 0x33, 0xc2, 0x79, 0xde, 0xd7, 0x95, 0x89, 0x9a, 0x50, 0x89, + 0x94, 0xc6, 0x8d, 0x71, 0x94, 0xb7, 0xd3, 0x01, 0x0d, 0x3d, 0xc1, 0x11, 0x41, 0xfb, 0x50, 0xc4, + 0xe3, 0x40, 0xd7, 0xe9, 0xc8, 0x23, 0x7a, 0x08, 0x65, 0x86, 0xcf, 0xdd, 0x71, 0x26, 0x08, 0x57, + 0x91, 0xf7, 0x9c, 0x12, 0xc3, 0xe7, 0x1d, 0x69, 0xa3, 0x2e, 0xd4, 0xd2, 0x64, 0xc2, 0xb0, 0x4f, + 0xdc, 0x84, 0x86, 0x81, 0x97, 0x99, 0xdb, 0x87, 0xc6, 0x51, 0xed, 0xfd, 0x83, 0xd6, 0xfa, 0xcf, + 0xde, 0x3a, 0xd3, 0x2a, 0x5b, 0x89, 0x9c, 0x6a, 0xfa, 0x4f, 0xd3, 0xc2, 0x50, 0x3a, 0x9d, 0x12, + 0x6f, 0xc6, 0xd3, 0xe8, 0xdf, 0xe4, 0x5e, 0x87, 0x92, 0x97, 0xbb, 0x51, 0x05, 0xec, 0x39, 0xd7, + 0xb6, 0xf5, 0x95, 0x01, 0x25, 0x87, 0x70, 0x9a, 0x32, 0x6f, 0x53, 0x7f, 0x0e, 0x00, 0xb8, 0x60, + 0xa9, 0x27, 0x5c, 0x81, 0x27, 0x79, 0x88, 0xb2, 0x46, 0x46, 0x78, 0x82, 0xde, 0x82, 0xaa, 0x2c, + 0xc8, 0x65, 0xb9, 0xa7, 0xbc, 0x4f, 0x7b, 0x12, 0xbc, 0xf6, 0xbe, 0xa9, 0x61, 0x96, 0x0b, 0xe5, + 0x91, 0x9c, 0x57, 0x3f, 0x7e, 0x4e, 0x37, 0xe4, 0xf1, 0x00, 0x4a, 0x33, 0x92, 0xb9, 0xf2, 0xfa, + 0xcc, 0xb3, 0xd8, 0x9d, 0x91, 0x6c, 0x94, 0x25, 0x44, 0xa6, 0x38, 0xc7, 0x61, 0x4a, 0x34, 0xa9, + 0x13, 0x28, 0x2b, 0x44, 0xd2, 0xd6, 0x37, 0x06, 0x80, 0x8a, 0xd0, 0x8b, 0x05, 0xcb, 0x36, 0x84, + 0xd8, 0x87, 0xe2, 0x8c, 0x64, 0xb9, 0x77, 0x79, 0x44, 0xf7, 0x61, 0x5b, 0xf9, 0xc9, 0x9d, 0x6a, + 0x43, 0x96, 0x23, 0x53, 0x59, 0x2b, 0x67, 0x46, 0x32, 0x3d, 0xff, 0x26, 0x54, 0x74, 0x32, 0x9a, + 0xde, 0x56, 0xb4, 0xce, 0x4f, 0xd7, 0xfb, 0x29, 0xa0, 0xb5, 0xd1, 0xdb, 0xea, 0x29, 0xf8, 0x10, + 0x76, 0xf2, 0x75, 0x31, 0x6e, 0xb3, 0x2e, 0xb9, 0xd8, 0xc2, 0xb0, 0xdb, 0x25, 0x17, 0x36, 0x0e, + 0x98, 0xfc, 0x29, 0x22, 0x22, 0xb0, 0x8f, 0x05, 0x76, 0xbf, 0x48, 0xa9, 0x20, 0x79, 0x79, 0xd5, + 0x15, 0xfa, 0x54, 0x82, 0xa8, 0x0d, 0x95, 0x6b, 0x59, 0x98, 0xe4, 0xd7, 0x47, 0x6d, 0xb9, 0x68, + 0xc2, 0x30, 0x87, 0x07, 0xb6, 0x03, 0x2b, 0xc9, 0x20, 0xb1, 0xbe, 0x35, 0xc0, 0xec, 0x5d, 0x10, + 0x2f, 0x15, 0xe4, 0x24, 0x15, 0x53, 0xca, 0x82, 0x2f, 0xe5, 0x4f, 0x18, 0xf7, 0x05, 0x89, 0x54, + 0x50, 0xbd, 0x81, 0xeb, 0x3d, 0xad, 0x6a, 0xf4, 0xe4, 0xb6, 0x8b, 0xfa, 0x2e, 0xd4, 0x9e, 0xa7, + 0xb1, 0x27, 0xfd, 0x2a, 0x09, 0x37, 0x8b, 0xea, 0xc6, 0xbd, 0x73, 0xb9, 0x68, 0x1a, 0x4e, 0x75, + 0xc5, 0x49, 0x2d, 0x3f, 0xfe, 0x08, 0xaa, 0x6b, 0xdd, 0x40, 0x77, 0xa1, 0x72, 0xf6, 0xe4, 0x99, + 0xdd, 0x3b, 0xed, 0x7f, 0xdc, 0xef, 0x75, 0xf7, 0x0b, 0xa8, 0x06, 0x70, 0xfa, 0xd9, 0xd0, 0x3e, + 0x19, 0xf5, 0x3b, 0x83, 0xde, 0xbe, 0x81, 0xaa, 0x50, 0xee, 0x0f, 0x87, 0x67, 0xa3, 0x13, 0x69, + 0x6e, 0x75, 0x06, 0x97, 0xbf, 0x37, 0x0a, 0x2f, 0x97, 0x0d, 0xe3, 0x72, 0xd9, 0x30, 0x5e, 0x2f, + 0x1b, 0xc6, 0x6f, 0xcb, 0x86, 0xf1, 0xdd, 0x55, 0xa3, 0xf0, 0xfa, 0xaa, 0x51, 0xf8, 0xf9, 0xaa, + 0x51, 0xf8, 0xfc, 0x78, 0x12, 0x88, 0x69, 0x3a, 0x6e, 0x79, 0x34, 0x6a, 0xeb, 0x41, 0xbc, 0x17, + 0xe2, 0x31, 0xcf, 0xcf, 0xed, 0x0b, 0xfd, 0x9c, 0xab, 0xb7, 0x7c, 0xbc, 0xa3, 0xde, 0xe4, 0x0f, + 0xfe, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x96, 0x15, 0xb1, 0x79, 0xea, 0x07, 0x00, 0x00, } func (this *Params) Equal(that interface{}) bool { @@ -619,6 +659,36 @@ func (this *Module) Equal(that interface{}) bool { } return true } +func (this *Checksum) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*Checksum) + if !ok { + that2, ok := that.(Checksum) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.Address != that1.Address { + return false + } + if this.ModuleName != that1.ModuleName { + return false + } + if !bytes.Equal(this.Checksum, that1.Checksum) { + return false + } + return true +} func (this *Resource) Equal(that interface{}) bool { if that == nil { return this == nil @@ -989,6 +1059,50 @@ func (m *Module) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *Checksum) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Checksum) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Checksum) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Checksum) > 0 { + i -= len(m.Checksum) + copy(dAtA[i:], m.Checksum) + i = encodeVarintTypes(dAtA, i, uint64(len(m.Checksum))) + i-- + dAtA[i] = 0x1a + } + if len(m.ModuleName) > 0 { + i -= len(m.ModuleName) + copy(dAtA[i:], m.ModuleName) + i = encodeVarintTypes(dAtA, i, uint64(len(m.ModuleName))) + i-- + dAtA[i] = 0x12 + } + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintTypes(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func (m *Resource) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -1338,6 +1452,27 @@ func (m *Module) Size() (n int) { return n } +func (m *Checksum) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Address) + if l > 0 { + n += 1 + l + sovTypes(uint64(l)) + } + l = len(m.ModuleName) + if l > 0 { + n += 1 + l + sovTypes(uint64(l)) + } + l = len(m.Checksum) + if l > 0 { + n += 1 + l + sovTypes(uint64(l)) + } + return n +} + func (m *Resource) Size() (n int) { if m == nil { return 0 @@ -2042,6 +2177,154 @@ func (m *Module) Unmarshal(dAtA []byte) error { } return nil } +func (m *Checksum) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Checksum: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Checksum: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTypes + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTypes + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ModuleName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTypes + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTypes + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ModuleName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Checksum", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthTypes + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthTypes + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Checksum = append(m.Checksum[:0], dAtA[iNdEx:postIndex]...) + if m.Checksum == nil { + m.Checksum = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTypes(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTypes + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *Resource) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0