diff --git a/api/initia/move/v1/types.pulsar.go b/api/initia/move/v1/types.pulsar.go index f6268661..c74f3dc9 100644 --- a/api/initia/move/v1/types.pulsar.go +++ b/api/initia/move/v1/types.pulsar.go @@ -16,7 +16,6 @@ import ( var ( md_Params protoreflect.MessageDescriptor - fd_Params_max_module_size protoreflect.FieldDescriptor fd_Params_base_denom protoreflect.FieldDescriptor fd_Params_base_min_gas_price protoreflect.FieldDescriptor fd_Params_arbitrary_enabled protoreflect.FieldDescriptor @@ -26,7 +25,6 @@ var ( func init() { file_initia_move_v1_types_proto_init() md_Params = File_initia_move_v1_types_proto.Messages().ByName("Params") - fd_Params_max_module_size = md_Params.Fields().ByName("max_module_size") fd_Params_base_denom = md_Params.Fields().ByName("base_denom") fd_Params_base_min_gas_price = md_Params.Fields().ByName("base_min_gas_price") fd_Params_arbitrary_enabled = md_Params.Fields().ByName("arbitrary_enabled") @@ -98,12 +96,6 @@ func (x *fastReflection_Params) Interface() protoreflect.ProtoMessage { // While iterating, mutating operations may only be performed // on the current field descriptor. func (x *fastReflection_Params) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.MaxModuleSize != uint64(0) { - value := protoreflect.ValueOfUint64(x.MaxModuleSize) - if !f(fd_Params_max_module_size, value) { - return - } - } if x.BaseDenom != "" { value := protoreflect.ValueOfString(x.BaseDenom) if !f(fd_Params_base_denom, value) { @@ -143,8 +135,6 @@ func (x *fastReflection_Params) Range(f func(protoreflect.FieldDescriptor, proto // a repeated field is populated if it is non-empty. func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "initia.move.v1.Params.max_module_size": - return x.MaxModuleSize != uint64(0) case "initia.move.v1.Params.base_denom": return x.BaseDenom != "" case "initia.move.v1.Params.base_min_gas_price": @@ -169,8 +159,6 @@ func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Params) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "initia.move.v1.Params.max_module_size": - x.MaxModuleSize = uint64(0) case "initia.move.v1.Params.base_denom": x.BaseDenom = "" case "initia.move.v1.Params.base_min_gas_price": @@ -195,9 +183,6 @@ func (x *fastReflection_Params) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_Params) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "initia.move.v1.Params.max_module_size": - value := x.MaxModuleSize - return protoreflect.ValueOfUint64(value) case "initia.move.v1.Params.base_denom": value := x.BaseDenom return protoreflect.ValueOfString(value) @@ -230,8 +215,6 @@ func (x *fastReflection_Params) Get(descriptor protoreflect.FieldDescriptor) pro // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Params) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "initia.move.v1.Params.max_module_size": - x.MaxModuleSize = value.Uint() case "initia.move.v1.Params.base_denom": x.BaseDenom = value.Interface().(string) case "initia.move.v1.Params.base_min_gas_price": @@ -260,8 +243,6 @@ func (x *fastReflection_Params) Set(fd protoreflect.FieldDescriptor, value proto // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Params) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "initia.move.v1.Params.max_module_size": - panic(fmt.Errorf("field max_module_size of message initia.move.v1.Params is not mutable")) case "initia.move.v1.Params.base_denom": panic(fmt.Errorf("field base_denom of message initia.move.v1.Params is not mutable")) case "initia.move.v1.Params.base_min_gas_price": @@ -283,8 +264,6 @@ func (x *fastReflection_Params) Mutable(fd protoreflect.FieldDescriptor) protore // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_Params) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "initia.move.v1.Params.max_module_size": - return protoreflect.ValueOfUint64(uint64(0)) case "initia.move.v1.Params.base_denom": return protoreflect.ValueOfString("") case "initia.move.v1.Params.base_min_gas_price": @@ -362,9 +341,6 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - if x.MaxModuleSize != 0 { - n += 1 + runtime.Sov(uint64(x.MaxModuleSize)) - } l = len(x.BaseDenom) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) @@ -414,7 +390,7 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], x.ContractSharedRevenueRatio) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ContractSharedRevenueRatio))) i-- - dAtA[i] = 0x2a + dAtA[i] = 0x22 } if x.ArbitraryEnabled { i-- @@ -424,26 +400,21 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { dAtA[i] = 0 } i-- - dAtA[i] = 0x20 + dAtA[i] = 0x18 } if len(x.BaseMinGasPrice) > 0 { i -= len(x.BaseMinGasPrice) copy(dAtA[i:], x.BaseMinGasPrice) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BaseMinGasPrice))) i-- - dAtA[i] = 0x1a + dAtA[i] = 0x12 } if len(x.BaseDenom) > 0 { i -= len(x.BaseDenom) copy(dAtA[i:], x.BaseDenom) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BaseDenom))) i-- - dAtA[i] = 0x12 - } - if x.MaxModuleSize != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.MaxModuleSize)) - i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -495,25 +466,6 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { } switch fieldNum { case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MaxModuleSize", wireType) - } - x.MaxModuleSize = 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.MaxModuleSize |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BaseDenom", wireType) } @@ -545,7 +497,7 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { } x.BaseDenom = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 2: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BaseMinGasPrice", wireType) } @@ -577,7 +529,7 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { } x.BaseMinGasPrice = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: + case 3: if wireType != 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ArbitraryEnabled", wireType) } @@ -597,7 +549,7 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { } } x.ArbitraryEnabled = bool(v != 0) - case 5: + case 4: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ContractSharedRevenueRatio", wireType) } @@ -666,7 +618,6 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { var ( md_RawParams protoreflect.MessageDescriptor - fd_RawParams_max_module_size protoreflect.FieldDescriptor fd_RawParams_base_denom protoreflect.FieldDescriptor fd_RawParams_base_min_gas_price protoreflect.FieldDescriptor fd_RawParams_contract_shared_revenue_ratio protoreflect.FieldDescriptor @@ -675,7 +626,6 @@ var ( func init() { file_initia_move_v1_types_proto_init() md_RawParams = File_initia_move_v1_types_proto.Messages().ByName("RawParams") - fd_RawParams_max_module_size = md_RawParams.Fields().ByName("max_module_size") fd_RawParams_base_denom = md_RawParams.Fields().ByName("base_denom") fd_RawParams_base_min_gas_price = md_RawParams.Fields().ByName("base_min_gas_price") fd_RawParams_contract_shared_revenue_ratio = md_RawParams.Fields().ByName("contract_shared_revenue_ratio") @@ -746,12 +696,6 @@ func (x *fastReflection_RawParams) Interface() protoreflect.ProtoMessage { // While iterating, mutating operations may only be performed // on the current field descriptor. func (x *fastReflection_RawParams) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.MaxModuleSize != uint64(0) { - value := protoreflect.ValueOfUint64(x.MaxModuleSize) - if !f(fd_RawParams_max_module_size, value) { - return - } - } if x.BaseDenom != "" { value := protoreflect.ValueOfString(x.BaseDenom) if !f(fd_RawParams_base_denom, value) { @@ -785,8 +729,6 @@ func (x *fastReflection_RawParams) Range(f func(protoreflect.FieldDescriptor, pr // a repeated field is populated if it is non-empty. func (x *fastReflection_RawParams) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "initia.move.v1.RawParams.max_module_size": - return x.MaxModuleSize != uint64(0) case "initia.move.v1.RawParams.base_denom": return x.BaseDenom != "" case "initia.move.v1.RawParams.base_min_gas_price": @@ -809,8 +751,6 @@ func (x *fastReflection_RawParams) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_RawParams) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "initia.move.v1.RawParams.max_module_size": - x.MaxModuleSize = uint64(0) case "initia.move.v1.RawParams.base_denom": x.BaseDenom = "" case "initia.move.v1.RawParams.base_min_gas_price": @@ -833,9 +773,6 @@ func (x *fastReflection_RawParams) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_RawParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "initia.move.v1.RawParams.max_module_size": - value := x.MaxModuleSize - return protoreflect.ValueOfUint64(value) case "initia.move.v1.RawParams.base_denom": value := x.BaseDenom return protoreflect.ValueOfString(value) @@ -865,8 +802,6 @@ func (x *fastReflection_RawParams) Get(descriptor protoreflect.FieldDescriptor) // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_RawParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "initia.move.v1.RawParams.max_module_size": - x.MaxModuleSize = value.Uint() case "initia.move.v1.RawParams.base_denom": x.BaseDenom = value.Interface().(string) case "initia.move.v1.RawParams.base_min_gas_price": @@ -893,8 +828,6 @@ func (x *fastReflection_RawParams) Set(fd protoreflect.FieldDescriptor, value pr // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_RawParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "initia.move.v1.RawParams.max_module_size": - panic(fmt.Errorf("field max_module_size of message initia.move.v1.RawParams is not mutable")) case "initia.move.v1.RawParams.base_denom": panic(fmt.Errorf("field base_denom of message initia.move.v1.RawParams is not mutable")) case "initia.move.v1.RawParams.base_min_gas_price": @@ -914,8 +847,6 @@ func (x *fastReflection_RawParams) Mutable(fd protoreflect.FieldDescriptor) prot // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_RawParams) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "initia.move.v1.RawParams.max_module_size": - return protoreflect.ValueOfUint64(uint64(0)) case "initia.move.v1.RawParams.base_denom": return protoreflect.ValueOfString("") case "initia.move.v1.RawParams.base_min_gas_price": @@ -991,9 +922,6 @@ func (x *fastReflection_RawParams) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - if x.MaxModuleSize != 0 { - n += 1 + runtime.Sov(uint64(x.MaxModuleSize)) - } l = len(x.BaseDenom) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) @@ -1040,26 +968,21 @@ func (x *fastReflection_RawParams) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], x.ContractSharedRevenueRatio) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ContractSharedRevenueRatio))) i-- - dAtA[i] = 0x2a + dAtA[i] = 0x1a } if len(x.BaseMinGasPrice) > 0 { i -= len(x.BaseMinGasPrice) copy(dAtA[i:], x.BaseMinGasPrice) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BaseMinGasPrice))) i-- - dAtA[i] = 0x1a + dAtA[i] = 0x12 } if len(x.BaseDenom) > 0 { i -= len(x.BaseDenom) copy(dAtA[i:], x.BaseDenom) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BaseDenom))) i-- - dAtA[i] = 0x12 - } - if x.MaxModuleSize != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.MaxModuleSize)) - i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -1111,25 +1034,6 @@ func (x *fastReflection_RawParams) ProtoMethods() *protoiface.Methods { } switch fieldNum { case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MaxModuleSize", wireType) - } - x.MaxModuleSize = 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.MaxModuleSize |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BaseDenom", wireType) } @@ -1161,7 +1065,7 @@ func (x *fastReflection_RawParams) ProtoMethods() *protoiface.Methods { } x.BaseDenom = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 2: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BaseMinGasPrice", wireType) } @@ -1193,7 +1097,7 @@ func (x *fastReflection_RawParams) ProtoMethods() *protoiface.Methods { } x.BaseMinGasPrice = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 5: + case 3: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ContractSharedRevenueRatio", wireType) } @@ -5339,12 +5243,11 @@ type Params struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - MaxModuleSize uint64 `protobuf:"varint,1,opt,name=max_module_size,json=maxModuleSize,proto3" json:"max_module_size,omitempty"` - BaseDenom string `protobuf:"bytes,2,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty"` - BaseMinGasPrice string `protobuf:"bytes,3,opt,name=base_min_gas_price,json=baseMinGasPrice,proto3" json:"base_min_gas_price,omitempty"` - ArbitraryEnabled bool `protobuf:"varint,4,opt,name=arbitrary_enabled,json=arbitraryEnabled,proto3" json:"arbitrary_enabled,omitempty"` + BaseDenom string `protobuf:"bytes,1,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty"` + BaseMinGasPrice string `protobuf:"bytes,2,opt,name=base_min_gas_price,json=baseMinGasPrice,proto3" json:"base_min_gas_price,omitempty"` + ArbitraryEnabled bool `protobuf:"varint,3,opt,name=arbitrary_enabled,json=arbitraryEnabled,proto3" json:"arbitrary_enabled,omitempty"` // CSR: Percentage of fees distributed to developers - ContractSharedRevenueRatio string `protobuf:"bytes,5,opt,name=contract_shared_revenue_ratio,json=contractSharedRevenueRatio,proto3" json:"contract_shared_revenue_ratio,omitempty"` + ContractSharedRevenueRatio string `protobuf:"bytes,4,opt,name=contract_shared_revenue_ratio,json=contractSharedRevenueRatio,proto3" json:"contract_shared_revenue_ratio,omitempty"` } func (x *Params) Reset() { @@ -5367,13 +5270,6 @@ func (*Params) Descriptor() ([]byte, []int) { return file_initia_move_v1_types_proto_rawDescGZIP(), []int{0} } -func (x *Params) GetMaxModuleSize() uint64 { - if x != nil { - return x.MaxModuleSize - } - return 0 -} - func (x *Params) GetBaseDenom() string { if x != nil { return x.BaseDenom @@ -5408,11 +5304,10 @@ type RawParams struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - MaxModuleSize uint64 `protobuf:"varint,1,opt,name=max_module_size,json=maxModuleSize,proto3" json:"max_module_size,omitempty"` - BaseDenom string `protobuf:"bytes,2,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty"` - BaseMinGasPrice string `protobuf:"bytes,3,opt,name=base_min_gas_price,json=baseMinGasPrice,proto3" json:"base_min_gas_price,omitempty"` + BaseDenom string `protobuf:"bytes,1,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty"` + BaseMinGasPrice string `protobuf:"bytes,2,opt,name=base_min_gas_price,json=baseMinGasPrice,proto3" json:"base_min_gas_price,omitempty"` // CSR: Percentage of fees distributed to developers - ContractSharedRevenueRatio string `protobuf:"bytes,5,opt,name=contract_shared_revenue_ratio,json=contractSharedRevenueRatio,proto3" json:"contract_shared_revenue_ratio,omitempty"` + ContractSharedRevenueRatio string `protobuf:"bytes,3,opt,name=contract_shared_revenue_ratio,json=contractSharedRevenueRatio,proto3" json:"contract_shared_revenue_ratio,omitempty"` } func (x *RawParams) Reset() { @@ -5435,13 +5330,6 @@ func (*RawParams) Descriptor() ([]byte, []int) { return file_initia_move_v1_types_proto_rawDescGZIP(), []int{1} } -func (x *RawParams) GetMaxModuleSize() uint64 { - if x != nil { - return x.MaxModuleSize - } - return 0 -} - func (x *RawParams) GetBaseDenom() string { if x != nil { return x.BaseDenom @@ -5857,41 +5745,36 @@ var file_initia_move_v1_types_proto_rawDesc = []byte{ 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 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, 0x22, 0xb6, 0x03, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, - 0x12, 0x26, 0x0a, 0x0f, 0x6d, 0x61, 0x78, 0x5f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x73, - 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6d, 0x61, 0x78, 0x4d, 0x6f, - 0x64, 0x75, 0x6c, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x61, 0x73, 0x65, - 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x62, 0x61, - 0x73, 0x65, 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x12, 0x7d, 0x0a, 0x12, 0x62, 0x61, 0x73, 0x65, 0x5f, - 0x6d, 0x69, 0x6e, 0x5f, 0x67, 0x61, 0x73, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x50, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x26, 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, 0xf2, 0xde, 0x1f, 0x19, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x62, 0x61, 0x73, - 0x65, 0x5f, 0x6d, 0x69, 0x6e, 0x5f, 0x67, 0x61, 0x73, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x22, - 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0f, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x69, 0x6e, 0x47, 0x61, - 0x73, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x2b, 0x0a, 0x11, 0x61, 0x72, 0x62, 0x69, 0x74, 0x72, - 0x61, 0x72, 0x79, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x10, 0x61, 0x72, 0x62, 0x69, 0x74, 0x72, 0x61, 0x72, 0x79, 0x45, 0x6e, 0x61, 0x62, - 0x6c, 0x65, 0x64, 0x12, 0x9e, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, - 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x76, 0x65, 0x6e, 0x75, 0x65, 0x5f, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x5b, 0xc8, 0xde, 0x1f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8e, 0x03, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, + 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x62, 0x61, 0x73, 0x65, 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x12, + 0x7d, 0x0a, 0x12, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x6d, 0x69, 0x6e, 0x5f, 0x67, 0x61, 0x73, 0x5f, + 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x50, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x26, 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, 0xf2, 0xde, 0x1f, 0x24, 0x79, - 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x73, 0x68, - 0x61, 0x72, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x76, 0x65, 0x6e, 0x75, 0x65, 0x5f, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x22, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x1a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, - 0x63, 0x74, 0x53, 0x68, 0x61, 0x72, 0x65, 0x64, 0x52, 0x65, 0x76, 0x65, 0x6e, 0x75, 0x65, 0x52, - 0x61, 0x74, 0x69, 0x6f, 0x3a, 0x18, 0x98, 0xa0, 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x01, 0x8a, 0xe7, - 0xb0, 0x2a, 0x0b, 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0xf2, - 0x02, 0x0a, 0x09, 0x52, 0x61, 0x77, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x26, 0x0a, 0x0f, - 0x6d, 0x61, 0x78, 0x5f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6d, 0x61, 0x78, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, - 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x64, 0x65, 0x6e, - 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x62, 0x61, 0x73, 0x65, 0x44, 0x65, + 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x44, 0x65, 0x63, 0xf2, 0xde, 0x1f, 0x19, 0x79, + 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x6d, 0x69, 0x6e, 0x5f, 0x67, 0x61, + 0x73, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x22, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0f, 0x62, + 0x61, 0x73, 0x65, 0x4d, 0x69, 0x6e, 0x47, 0x61, 0x73, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x2b, + 0x0a, 0x11, 0x61, 0x72, 0x62, 0x69, 0x74, 0x72, 0x61, 0x72, 0x79, 0x5f, 0x65, 0x6e, 0x61, 0x62, + 0x6c, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x61, 0x72, 0x62, 0x69, 0x74, + 0x72, 0x61, 0x72, 0x79, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x9e, 0x01, 0x0a, 0x1d, + 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x5f, + 0x72, 0x65, 0x76, 0x65, 0x6e, 0x75, 0x65, 0x5f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x42, 0x5b, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x26, 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, 0xf2, 0xde, 0x1f, 0x24, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x63, 0x6f, 0x6e, + 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x76, + 0x65, 0x6e, 0x75, 0x65, 0x5f, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x22, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, + 0x52, 0x1a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x53, 0x68, 0x61, 0x72, 0x65, 0x64, + 0x52, 0x65, 0x76, 0x65, 0x6e, 0x75, 0x65, 0x52, 0x61, 0x74, 0x69, 0x6f, 0x3a, 0x18, 0x98, 0xa0, + 0x1f, 0x00, 0xe8, 0xa0, 0x1f, 0x01, 0x8a, 0xe7, 0xb0, 0x2a, 0x0b, 0x6d, 0x6f, 0x76, 0x65, 0x2f, + 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0xca, 0x02, 0x0a, 0x09, 0x52, 0x61, 0x77, 0x50, 0x61, + 0x72, 0x61, 0x6d, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x64, 0x65, 0x6e, + 0x6f, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x62, 0x61, 0x73, 0x65, 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x12, 0x7d, 0x0a, 0x12, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x6d, 0x69, 0x6e, 0x5f, - 0x67, 0x61, 0x73, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x67, 0x61, 0x73, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x50, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x26, 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, 0xf2, @@ -5900,7 +5783,7 @@ var file_initia_move_v1_types_proto_rawDesc = []byte{ 0x01, 0x52, 0x0f, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x69, 0x6e, 0x47, 0x61, 0x73, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x9e, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x76, 0x65, 0x6e, 0x75, 0x65, 0x5f, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x5b, 0xc8, 0xde, 0x1f, 0x00, + 0x61, 0x74, 0x69, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x5b, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x26, 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, 0xf2, 0xde, 0x1f, 0x24, 0x79, 0x61, diff --git a/proto/initia/gov/v1/gov.proto b/proto/initia/gov/v1/gov.proto index 9ca6e42a..eb0c40eb 100644 --- a/proto/initia/gov/v1/gov.proto +++ b/proto/initia/gov/v1/gov.proto @@ -24,10 +24,12 @@ message Params { // Maximum period for Atom holders to deposit on a proposal. Initial value: 2 // months. - google.protobuf.Duration max_deposit_period = 2 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true, (gogoproto.stdduration) = true]; + google.protobuf.Duration max_deposit_period = 2 + [(gogoproto.nullable) = false, (amino.dont_omitempty) = true, (gogoproto.stdduration) = true]; // Duration of the voting period. - google.protobuf.Duration voting_period = 3 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true, (gogoproto.stdduration) = true]; + google.protobuf.Duration voting_period = 3 + [(gogoproto.nullable) = false, (amino.dont_omitempty) = true, (gogoproto.stdduration) = true]; // Minimum percentage of total stake needed to vote for a result to be // considered valid. @@ -57,5 +59,6 @@ message Params { [(gogoproto.nullable) = false, (amino.dont_omitempty) = true]; // Tally interval for emergency proposal. - google.protobuf.Duration emergency_tally_interval = 17 [(gogoproto.stdduration) = true, (gogoproto.nullable) = false, (amino.dont_omitempty) = true]; + google.protobuf.Duration emergency_tally_interval = 17 + [(gogoproto.stdduration) = true, (gogoproto.nullable) = false, (amino.dont_omitempty) = true]; } diff --git a/proto/initia/move/v1/types.proto b/proto/initia/move/v1/types.proto index 47fa9af7..306b2293 100644 --- a/proto/initia/move/v1/types.proto +++ b/proto/initia/move/v1/types.proto @@ -14,18 +14,17 @@ message Params { option (gogoproto.equal) = true; option (gogoproto.goproto_stringer) = false; - uint64 max_module_size = 1; - string base_denom = 2; - string base_min_gas_price = 3 [ + string base_denom = 1; + string base_min_gas_price = 2 [ (gogoproto.moretags) = "yaml:\"base_min_gas_price\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false, (amino.dont_omitempty) = true ]; - bool arbitrary_enabled = 4; + bool arbitrary_enabled = 3; // CSR: Percentage of fees distributed to developers - string contract_shared_revenue_ratio = 5 [ + string contract_shared_revenue_ratio = 4 [ (gogoproto.moretags) = "yaml:\"contract_shared_revenue_ratio\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false, @@ -35,9 +34,8 @@ message Params { // RawParams defines the raw params to store. message RawParams { - uint64 max_module_size = 1; - string base_denom = 2; - string base_min_gas_price = 3 [ + string base_denom = 1; + string base_min_gas_price = 2 [ (gogoproto.moretags) = "yaml:\"base_min_gas_price\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false, @@ -45,7 +43,7 @@ message RawParams { ]; // CSR: Percentage of fees distributed to developers - string contract_shared_revenue_ratio = 5 [ + string contract_shared_revenue_ratio = 3 [ (gogoproto.moretags) = "yaml:\"contract_shared_revenue_ratio\"", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false, diff --git a/x/move/types/params.go b/x/move/types/params.go index 8545c4e1..cf055fc2 100644 --- a/x/move/types/params.go +++ b/x/move/types/params.go @@ -13,7 +13,6 @@ import ( // Default parameter values const ( DefaultBaseDenom = "uinit" - DefaultMaxModuleSize = uint64(10 * 1024) // 10KB DefaultArbitraryEnabled = true ) @@ -32,7 +31,6 @@ const ( // DefaultParams returns default move parameters func DefaultParams() Params { return Params{ - MaxModuleSize: DefaultMaxModuleSize, BaseDenom: DefaultBaseDenom, BaseMinGasPrice: DefaultBaseMinGasPrice, ArbitraryEnabled: DefaultArbitraryEnabled, @@ -50,10 +48,6 @@ func (p Params) String() string { // Validate performs basic validation on move parameters func (p Params) Validate() error { - if err := validateMaxModuleSize(p.MaxModuleSize); err != nil { - return errors.Wrap(err, "invalid module size") - } - if err := validateBaseDenom(p.BaseDenom); err != nil { return errors.Wrap(err, "invalid base_denom") } @@ -76,7 +70,6 @@ func (p Params) Validate() error { // ToRaw return RawParams from the Params func (p Params) ToRaw() RawParams { return RawParams{ - MaxModuleSize: p.MaxModuleSize, BaseDenom: p.BaseDenom, BaseMinGasPrice: p.BaseMinGasPrice, ContractSharedRevenueRatio: p.ContractSharedRevenueRatio, @@ -86,7 +79,6 @@ func (p Params) ToRaw() RawParams { // ToParams return Params from the RawParams func (p RawParams) ToParams(allowArbitrary bool) Params { return Params{ - MaxModuleSize: p.MaxModuleSize, BaseDenom: p.BaseDenom, BaseMinGasPrice: p.BaseMinGasPrice, ArbitraryEnabled: allowArbitrary, @@ -120,23 +112,6 @@ func validateBaseMinGasPrice(i interface{}) error { return nil } -func validateMaxModuleSize(i interface{}) error { - v, ok := i.(uint64) - if !ok { - return fmt.Errorf("invalid parameter type: %T", i) - } - - if v < 1024 { - return fmt.Errorf("MaxModuleSize should be bigger than 1KB") - } - - if v > 1024*1024 { - return fmt.Errorf("MaxModuleSize should be smaller than 1MB") - } - - return nil -} - func validateArbitraryEnabled(i interface{}) error { _, ok := i.(bool) if !ok { diff --git a/x/move/types/params_test.go b/x/move/types/params_test.go index ee0a5af8..b4bffb63 100644 --- a/x/move/types/params_test.go +++ b/x/move/types/params_test.go @@ -12,13 +12,12 @@ func TestParams(t *testing.T) { p1 := DefaultParams() require.NoError(t, p1.Validate()) - p1.MaxModuleSize = 1000 - err := p1.Validate() - require.Error(t, err) + p1.ContractSharedRevenueRatio = sdk.OneDec().Neg() + require.Error(t, p1.Validate()) p2 := DefaultParams() p2.BaseDenom = "v#ksdjf" - err = p2.Validate() + err := p2.Validate() require.Error(t, err) p3 := DefaultParams() @@ -26,3 +25,18 @@ func TestParams(t *testing.T) { err = p3.Validate() require.Error(t, err) } + +func TestRawParams(t *testing.T) { + p1 := DefaultParams() + require.NoError(t, p1.Validate()) + + p1.ContractSharedRevenueRatio = sdk.OneDec() + p1.BaseDenom = "venusinthemorning" + p1.BaseMinGasPrice = sdk.OneDec() + require.NoError(t, p1.Validate()) + + rp := p1.ToRaw() + p2 := rp.ToParams(p1.ArbitraryEnabled) + require.NoError(t, p2.Validate()) + require.Equal(t, p1, p2) +} diff --git a/x/move/types/types.pb.go b/x/move/types/types.pb.go index 5c94be82..8b00b8b1 100644 --- a/x/move/types/types.pb.go +++ b/x/move/types/types.pb.go @@ -67,12 +67,11 @@ func (UpgradePolicy) EnumDescriptor() ([]byte, []int) { // Params defines the set of move parameters. type Params struct { - MaxModuleSize uint64 `protobuf:"varint,1,opt,name=max_module_size,json=maxModuleSize,proto3" json:"max_module_size,omitempty"` - BaseDenom string `protobuf:"bytes,2,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty"` - BaseMinGasPrice github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=base_min_gas_price,json=baseMinGasPrice,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"base_min_gas_price" yaml:"base_min_gas_price"` - ArbitraryEnabled bool `protobuf:"varint,4,opt,name=arbitrary_enabled,json=arbitraryEnabled,proto3" json:"arbitrary_enabled,omitempty"` + BaseDenom string `protobuf:"bytes,1,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty"` + BaseMinGasPrice github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=base_min_gas_price,json=baseMinGasPrice,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"base_min_gas_price" yaml:"base_min_gas_price"` + ArbitraryEnabled bool `protobuf:"varint,3,opt,name=arbitrary_enabled,json=arbitraryEnabled,proto3" json:"arbitrary_enabled,omitempty"` // CSR: Percentage of fees distributed to developers - ContractSharedRevenueRatio github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,5,opt,name=contract_shared_revenue_ratio,json=contractSharedRevenueRatio,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"contract_shared_revenue_ratio" yaml:"contract_shared_revenue_ratio"` + ContractSharedRevenueRatio github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,4,opt,name=contract_shared_revenue_ratio,json=contractSharedRevenueRatio,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"contract_shared_revenue_ratio" yaml:"contract_shared_revenue_ratio"` } func (m *Params) Reset() { *m = Params{} } @@ -109,11 +108,10 @@ var xxx_messageInfo_Params proto.InternalMessageInfo // RawParams defines the raw params to store. type RawParams struct { - MaxModuleSize uint64 `protobuf:"varint,1,opt,name=max_module_size,json=maxModuleSize,proto3" json:"max_module_size,omitempty"` - BaseDenom string `protobuf:"bytes,2,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty"` - BaseMinGasPrice github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=base_min_gas_price,json=baseMinGasPrice,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"base_min_gas_price" yaml:"base_min_gas_price"` + BaseDenom string `protobuf:"bytes,1,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty"` + BaseMinGasPrice github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=base_min_gas_price,json=baseMinGasPrice,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"base_min_gas_price" yaml:"base_min_gas_price"` // CSR: Percentage of fees distributed to developers - ContractSharedRevenueRatio github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,5,opt,name=contract_shared_revenue_ratio,json=contractSharedRevenueRatio,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"contract_shared_revenue_ratio" yaml:"contract_shared_revenue_ratio"` + ContractSharedRevenueRatio github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=contract_shared_revenue_ratio,json=contractSharedRevenueRatio,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"contract_shared_revenue_ratio" yaml:"contract_shared_revenue_ratio"` } func (m *RawParams) Reset() { *m = RawParams{} } @@ -453,61 +451,60 @@ func init() { func init() { proto.RegisterFile("initia/move/v1/types.proto", fileDescriptor_5ab4b0783858a3a5) } var fileDescriptor_5ab4b0783858a3a5 = []byte{ - // 862 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x55, 0xcf, 0x6f, 0x1b, 0x45, - 0x18, 0xf5, 0xc4, 0xf9, 0xb5, 0x5f, 0x6a, 0x37, 0x1d, 0xf5, 0xb0, 0x0d, 0x8a, 0x37, 0x5a, 0xa0, - 0x8a, 0x52, 0xd5, 0x56, 0x41, 0x5c, 0x2a, 0x71, 0xb0, 0x49, 0x84, 0x2c, 0x62, 0x30, 0x53, 0xf7, - 0x00, 0x1c, 0x56, 0xe3, 0xdd, 0xa9, 0xb3, 0xb2, 0x77, 0xc7, 0xcc, 0xcc, 0x3a, 0xde, 0x48, 0x1c, - 0xb9, 0x20, 0x24, 0x38, 0x72, 0x42, 0x3d, 0xf6, 0xd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, 0x9c, 0xd7, 0xd0, 0x8b, 0x79, 0x0d, 0xfd, 0x31, 0xaf, 0xa1, 0x1f, 0xaf, 0x6a, 0xa5, 0x17, - 0x57, 0xb5, 0xd2, 0x6f, 0x57, 0xb5, 0xd2, 0x97, 0x47, 0xaf, 0x3d, 0x23, 0xb6, 0x0d, 0xf7, 0x47, - 0xb4, 0x2f, 0x8b, 0x75, 0x63, 0x6a, 0xbf, 0xb8, 0xe6, 0x39, 0xe9, 0x6f, 0x9a, 0xcf, 0xe6, 0xfb, - 0x7f, 0x07, 0x00, 0x00, 0xff, 0xff, 0x19, 0x19, 0xce, 0xad, 0x8d, 0x07, 0x00, 0x00, + // 840 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x55, 0xbf, 0x8f, 0x1b, 0x45, + 0x18, 0xf5, 0x9c, 0x73, 0x3f, 0xf6, 0xbb, 0xd8, 0x38, 0xab, 0x14, 0x9b, 0x43, 0xe7, 0x3d, 0x2d, + 0x3f, 0x74, 0xba, 0x28, 0xb6, 0x02, 0xa2, 0x89, 0x44, 0x61, 0x73, 0x27, 0x64, 0x71, 0x06, 0x33, + 0x38, 0x05, 0x50, 0xac, 0xc6, 0xbb, 0x13, 0xdf, 0xca, 0xde, 0x1d, 0x33, 0x33, 0xeb, 0xbb, 0x45, + 0xa2, 0xa4, 0x41, 0x08, 0x28, 0xa9, 0x50, 0xca, 0x94, 0x29, 0xf9, 0x13, 0x2c, 0xaa, 0x94, 0x88, + 0xc2, 0x02, 0x5f, 0x11, 0x6a, 0xfe, 0x02, 0x34, 0x3f, 0x7c, 0x8a, 0x85, 0x64, 0x8e, 0x0a, 0xa5, + 0xb1, 0x67, 0xde, 0x7b, 0xfa, 0xbe, 0xb7, 0xef, 0x9b, 0x9d, 0x85, 0xbd, 0x24, 0x4b, 0x64, 0x42, + 0x9a, 0x29, 0x9b, 0xd2, 0xe6, 0xf4, 0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0x61, 0x58, 0x4a, 0x4e, 0x27, 0xc1, 0xf7, 0x08, + 0xbc, 0x93, 0x0b, 0x1a, 0xe5, 0x92, 0xb6, 0x72, 0x79, 0xc6, 0x78, 0xf2, 0xa5, 0x3a, 0xfa, 0x59, + 0x47, 0xd2, 0x54, 0x37, 0x35, 0x47, 0x6a, 0x35, 0xd3, 0x8a, 0x41, 0x5b, 0xd7, 0x3d, 0x79, 0x77, + 0xa1, 0xfa, 0x28, 0xcf, 0x22, 0x55, 0x57, 0x4b, 0x84, 0x57, 0x3e, 0x28, 0x1f, 0x3a, 0xed, 0x1b, + 0xb3, 0xb9, 0x8f, 0x70, 0x65, 0xc9, 0x29, 0xad, 0x38, 0x7a, 0x17, 0x2a, 0x2b, 0x69, 0xb8, 0x15, + 0x70, 0x5a, 0xb8, 0xdd, 0xe9, 0xe3, 0x16, 0xfe, 0xb4, 0x56, 0x72, 0xab, 0x00, 0xef, 0x7d, 0xd4, + 0xed, 0xb5, 0xfa, 0x9d, 0xf6, 0xe9, 0x49, 0x0d, 0x29, 0xba, 0xd3, 0xed, 0x3e, 0xec, 0xb7, 0xd4, + 0x76, 0xa3, 0x7d, 0x3a, 0xfb, 0xa3, 0x5e, 0x7a, 0xb2, 0xa8, 0xa3, 0xd9, 0xa2, 0x8e, 0x9e, 0x2d, + 0xea, 0xe8, 0xf7, 0x45, 0x1d, 0xfd, 0x70, 0x59, 0x2f, 0x3d, 0xbb, 0xac, 0x97, 0x7e, 0xbd, 0xac, + 0x97, 0x3e, 0x3b, 0x7a, 0xe1, 0x1a, 0x31, 0x63, 0xb8, 0x37, 0x26, 0x03, 0x61, 0xd7, 0xcd, 0x0b, + 0xf3, 0x85, 0xd4, 0xd7, 0xc9, 0x60, 0x4b, 0x7f, 0xe6, 0xde, 0xfe, 0x3b, 0x00, 0x00, 0xff, 0xff, + 0x07, 0xb1, 0xee, 0xba, 0x3d, 0x07, 0x00, 0x00, } func (this *Params) Equal(that interface{}) bool { @@ -529,9 +526,6 @@ func (this *Params) Equal(that interface{}) bool { } else if this == nil { return false } - if this.MaxModuleSize != that1.MaxModuleSize { - return false - } if this.BaseDenom != that1.BaseDenom { return false } @@ -565,9 +559,6 @@ func (this *RawParams) Equal(that interface{}) bool { } else if this == nil { return false } - if this.MaxModuleSize != that1.MaxModuleSize { - return false - } if this.BaseDenom != that1.BaseDenom { return false } @@ -829,7 +820,7 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintTypes(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x2a + dAtA[i] = 0x22 if m.ArbitraryEnabled { i-- if m.ArbitraryEnabled { @@ -838,7 +829,7 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0 } i-- - dAtA[i] = 0x20 + dAtA[i] = 0x18 } { size := m.BaseMinGasPrice.Size() @@ -849,18 +840,13 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintTypes(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x1a + dAtA[i] = 0x12 if len(m.BaseDenom) > 0 { i -= len(m.BaseDenom) copy(dAtA[i:], m.BaseDenom) i = encodeVarintTypes(dAtA, i, uint64(len(m.BaseDenom))) i-- - dAtA[i] = 0x12 - } - if m.MaxModuleSize != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.MaxModuleSize)) - i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } return len(dAtA) - i, nil } @@ -894,7 +880,7 @@ func (m *RawParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintTypes(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x2a + dAtA[i] = 0x1a { size := m.BaseMinGasPrice.Size() i -= size @@ -904,18 +890,13 @@ func (m *RawParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintTypes(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x1a + dAtA[i] = 0x12 if len(m.BaseDenom) > 0 { i -= len(m.BaseDenom) copy(dAtA[i:], m.BaseDenom) i = encodeVarintTypes(dAtA, i, uint64(len(m.BaseDenom))) i-- - dAtA[i] = 0x12 - } - if m.MaxModuleSize != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.MaxModuleSize)) - i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } return len(dAtA) - i, nil } @@ -1257,9 +1238,6 @@ func (m *Params) Size() (n int) { } var l int _ = l - if m.MaxModuleSize != 0 { - n += 1 + sovTypes(uint64(m.MaxModuleSize)) - } l = len(m.BaseDenom) if l > 0 { n += 1 + l + sovTypes(uint64(l)) @@ -1280,9 +1258,6 @@ func (m *RawParams) Size() (n int) { } var l int _ = l - if m.MaxModuleSize != 0 { - n += 1 + sovTypes(uint64(m.MaxModuleSize)) - } l = len(m.BaseDenom) if l > 0 { n += 1 + l + sovTypes(uint64(l)) @@ -1485,25 +1460,6 @@ func (m *Params) Unmarshal(dAtA []byte) error { } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxModuleSize", wireType) - } - m.MaxModuleSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MaxModuleSize |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field BaseDenom", wireType) } @@ -1535,7 +1491,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { } m.BaseDenom = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field BaseMinGasPrice", wireType) } @@ -1569,7 +1525,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 4: + case 3: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field ArbitraryEnabled", wireType) } @@ -1589,7 +1545,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { } } m.ArbitraryEnabled = bool(v != 0) - case 5: + case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ContractSharedRevenueRatio", wireType) } @@ -1674,25 +1630,6 @@ func (m *RawParams) Unmarshal(dAtA []byte) error { } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxModuleSize", wireType) - } - m.MaxModuleSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MaxModuleSize |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field BaseDenom", wireType) } @@ -1724,7 +1661,7 @@ func (m *RawParams) Unmarshal(dAtA []byte) error { } m.BaseDenom = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field BaseMinGasPrice", wireType) } @@ -1758,7 +1695,7 @@ func (m *RawParams) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 5: + case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ContractSharedRevenueRatio", wireType) }