From e8418d453e232aecba8cbbfe3a84779832e13bc0 Mon Sep 17 00:00:00 2001 From: sh-cha Date: Thu, 20 Mar 2025 18:07:32 +0900 Subject: [PATCH 01/14] eip1559 fee checker --- api/initia/move/v1/genesis.pulsar.go | 167 ++- api/initia/move/v1/query.pulsar.go | 1381 +++++++++++++++++++---- api/initia/move/v1/query_grpc.pb.go | 71 +- api/initia/move/v1/tx.pulsar.go | 1238 +++++++++++++++++--- api/initia/move/v1/tx_grpc.pb.go | 67 +- api/initia/move/v1/types.pulsar.go | 746 +++++++++++- api/initia/mstaking/v1/query.pulsar.go | 1335 +++++++++++++++++++--- api/initia/mstaking/v1/query_grpc.pb.go | 67 +- app/blocksdk.go | 2 +- app/modules.go | 1 + proto/initia/move/v1/genesis.proto | 5 + proto/initia/move/v1/query.proto | 13 + proto/initia/move/v1/tx.proto | 23 + proto/initia/move/v1/types.proto | 13 + x/move/abci.go | 9 + x/move/abci_test.go | 80 ++ x/move/ante/fee.go | 21 +- x/move/ante/fee_test.go | 82 ++ x/move/common_test.go | 7 + x/move/keeper/ante.go | 25 + x/move/keeper/common_test.go | 9 + x/move/keeper/dex.go | 1 - x/move/keeper/eip1559.go | 60 + x/move/keeper/eip1559_test.go | 58 + x/move/keeper/genesis.go | 12 + x/move/keeper/keeper.go | 9 + x/move/keeper/msg_server.go | 18 + x/move/keeper/msg_server_test.go | 24 + x/move/keeper/querier.go | 12 + x/move/keeper/querier_test.go | 13 + x/move/module.go | 5 + x/move/types/eip1559_params.go | 64 ++ x/move/types/exported.go | 1 + x/move/types/genesis.go | 1 + x/move/types/genesis.pb.go | 138 ++- x/move/types/keys.go | 3 +- x/move/types/query.pb.go | 527 +++++++-- x/move/types/query.pb.gw.go | 65 ++ x/move/types/tx.pb.go | 527 +++++++-- x/move/types/types.pb.go | 435 ++++++- 40 files changed, 6456 insertions(+), 879 deletions(-) create mode 100644 x/move/keeper/ante.go create mode 100644 x/move/keeper/eip1559.go create mode 100644 x/move/keeper/eip1559_test.go create mode 100644 x/move/types/eip1559_params.go diff --git a/api/initia/move/v1/genesis.pulsar.go b/api/initia/move/v1/genesis.pulsar.go index c834d5b0a..e5f60cd5e 100644 --- a/api/initia/move/v1/genesis.pulsar.go +++ b/api/initia/move/v1/genesis.pulsar.go @@ -377,6 +377,7 @@ var ( fd_GenesisState_table_infos protoreflect.FieldDescriptor fd_GenesisState_table_entries protoreflect.FieldDescriptor fd_GenesisState_dex_pairs protoreflect.FieldDescriptor + fd_GenesisState_eip1559_feeparams protoreflect.FieldDescriptor ) func init() { @@ -391,6 +392,7 @@ func init() { fd_GenesisState_table_infos = md_GenesisState.Fields().ByName("table_infos") fd_GenesisState_table_entries = md_GenesisState.Fields().ByName("table_entries") fd_GenesisState_dex_pairs = md_GenesisState.Fields().ByName("dex_pairs") + fd_GenesisState_eip1559_feeparams = md_GenesisState.Fields().ByName("eip1559_feeparams") } var _ protoreflect.Message = (*fastReflection_GenesisState)(nil) @@ -512,6 +514,12 @@ func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, return } } + if x.Eip1559Feeparams != nil { + value := protoreflect.ValueOfMessage(x.Eip1559Feeparams.ProtoReflect()) + if !f(fd_GenesisState_eip1559_feeparams, value) { + return + } + } } // Has reports whether a field is populated. @@ -545,6 +553,8 @@ func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool return len(x.TableEntries) != 0 case "initia.move.v1.GenesisState.dex_pairs": return len(x.DexPairs) != 0 + case "initia.move.v1.GenesisState.eip1559_feeparams": + return x.Eip1559Feeparams != nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.GenesisState")) @@ -579,6 +589,8 @@ func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) { x.TableEntries = nil case "initia.move.v1.GenesisState.dex_pairs": x.DexPairs = nil + case "initia.move.v1.GenesisState.eip1559_feeparams": + x.Eip1559Feeparams = nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.GenesisState")) @@ -643,6 +655,9 @@ func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescripto } listValue := &_GenesisState_9_list{list: &x.DexPairs} return protoreflect.ValueOfList(listValue) + case "initia.move.v1.GenesisState.eip1559_feeparams": + value := x.Eip1559Feeparams + return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.GenesisState")) @@ -695,6 +710,8 @@ func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value lv := value.List() clv := lv.(*_GenesisState_9_list) x.DexPairs = *clv.list + case "initia.move.v1.GenesisState.eip1559_feeparams": + x.Eip1559Feeparams = value.Message().Interface().(*EIP1559FeeParams) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.GenesisState")) @@ -762,6 +779,11 @@ func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) p } value := &_GenesisState_9_list{list: &x.DexPairs} return protoreflect.ValueOfList(value) + case "initia.move.v1.GenesisState.eip1559_feeparams": + if x.Eip1559Feeparams == nil { + x.Eip1559Feeparams = new(EIP1559FeeParams) + } + return protoreflect.ValueOfMessage(x.Eip1559Feeparams.ProtoReflect()) case "initia.move.v1.GenesisState.execution_counter": panic(fmt.Errorf("field execution_counter of message initia.move.v1.GenesisState is not mutable")) default: @@ -803,6 +825,9 @@ func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) case "initia.move.v1.GenesisState.dex_pairs": list := []*DexPair{} return protoreflect.ValueOfList(&_GenesisState_9_list{list: &list}) + case "initia.move.v1.GenesisState.eip1559_feeparams": + m := new(EIP1559FeeParams) + return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.GenesisState")) @@ -921,6 +946,10 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { n += 1 + l + runtime.Sov(uint64(l)) } } + if x.Eip1559Feeparams != nil { + l = options.Size(x.Eip1559Feeparams) + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -950,6 +979,20 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if x.Eip1559Feeparams != nil { + encoded, err := options.Marshal(x.Eip1559Feeparams) + 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] = 0x52 + } if len(x.DexPairs) > 0 { for iNdEx := len(x.DexPairs) - 1; iNdEx >= 0; iNdEx-- { encoded, err := options.Marshal(x.DexPairs[iNdEx]) @@ -1414,6 +1457,42 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex + case 10: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Eip1559Feeparams", 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.Eip1559Feeparams == nil { + x.Eip1559Feeparams = &EIP1559FeeParams{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Eip1559Feeparams); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -1468,15 +1547,16 @@ type GenesisState struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` - 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"` - 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"` + Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` + 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"` + 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"` + Eip1559Feeparams *EIP1559FeeParams `protobuf:"bytes,10,opt,name=eip1559_feeparams,json=eip1559Feeparams,proto3" json:"eip1559_feeparams,omitempty"` } func (x *GenesisState) Reset() { @@ -1562,6 +1642,13 @@ func (x *GenesisState) GetDexPairs() []*DexPair { return nil } +func (x *GenesisState) GetEip1559Feeparams() *EIP1559FeeParams { + if x != nil { + return x.Eip1559Feeparams + } + return nil +} + var File_initia_move_v1_genesis_proto protoreflect.FileDescriptor var file_initia_move_v1_genesis_proto_rawDesc = []byte{ @@ -1572,7 +1659,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, 0xea, 0x05, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, + 0x6f, 0x74, 0x6f, 0x22, 0xe3, 0x06, 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, @@ -1619,18 +1706,26 @@ var file_initia_move_v1_genesis_proto_rawDesc = []byte{ 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, + 0x12, 0x77, 0x0a, 0x11, 0x65, 0x69, 0x70, 0x31, 0x35, 0x35, 0x39, 0x5f, 0x66, 0x65, 0x65, 0x70, + 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x69, 0x6e, + 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x49, 0x50, + 0x31, 0x35, 0x35, 0x39, 0x46, 0x65, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x28, 0xc8, + 0xde, 0x1f, 0x00, 0xea, 0xde, 0x1f, 0x1b, 0x65, 0x69, 0x70, 0x31, 0x35, 0x35, 0x39, 0x5f, 0x66, + 0x65, 0x65, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2c, 0x6f, 0x6d, 0x69, 0x74, 0x65, 0x6d, 0x70, + 0x74, 0x79, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x10, 0x65, 0x69, 0x70, 0x31, 0x35, 0x35, 0x39, + 0x46, 0x65, 0x65, 0x70, 0x61, 0x72, 0x61, 0x6d, 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 ( @@ -1647,14 +1742,15 @@ func file_initia_move_v1_genesis_proto_rawDescGZIP() []byte { var file_initia_move_v1_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 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 - (*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 + (*GenesisState)(nil), // 0: initia.move.v1.GenesisState + (*Params)(nil), // 1: initia.move.v1.Params + (*Module)(nil), // 2: initia.move.v1.Module + (*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 + (*EIP1559FeeParams)(nil), // 8: initia.move.v1.EIP1559FeeParams } var file_initia_move_v1_genesis_proto_depIdxs = []int32{ 1, // 0: initia.move.v1.GenesisState.params:type_name -> initia.move.v1.Params @@ -1664,11 +1760,12 @@ var file_initia_move_v1_genesis_proto_depIdxs = []int32{ 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 + 8, // 7: initia.move.v1.GenesisState.eip1559_feeparams:type_name -> initia.move.v1.EIP1559FeeParams + 8, // [8:8] is the sub-list for method output_type + 8, // [8:8] is the sub-list for method input_type + 8, // [8:8] is the sub-list for extension type_name + 8, // [8:8] is the sub-list for extension extendee + 0, // [0:8] is the sub-list for field type_name } func init() { file_initia_move_v1_genesis_proto_init() } diff --git a/api/initia/move/v1/query.pulsar.go b/api/initia/move/v1/query.pulsar.go index 7d66fd19f..73b9c3635 100644 --- a/api/initia/move/v1/query.pulsar.go +++ b/api/initia/move/v1/query.pulsar.go @@ -16827,6 +16827,797 @@ func (x *fastReflection_QueryDenomResponse) ProtoMethods() *protoiface.Methods { } } +var ( + md_QueryEIP1559FeeParamsRequest protoreflect.MessageDescriptor +) + +func init() { + file_initia_move_v1_query_proto_init() + md_QueryEIP1559FeeParamsRequest = File_initia_move_v1_query_proto.Messages().ByName("QueryEIP1559FeeParamsRequest") +} + +var _ protoreflect.Message = (*fastReflection_QueryEIP1559FeeParamsRequest)(nil) + +type fastReflection_QueryEIP1559FeeParamsRequest QueryEIP1559FeeParamsRequest + +func (x *QueryEIP1559FeeParamsRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryEIP1559FeeParamsRequest)(x) +} + +func (x *QueryEIP1559FeeParamsRequest) slowProtoReflect() protoreflect.Message { + mi := &file_initia_move_v1_query_proto_msgTypes[33] + 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_QueryEIP1559FeeParamsRequest_messageType fastReflection_QueryEIP1559FeeParamsRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryEIP1559FeeParamsRequest_messageType{} + +type fastReflection_QueryEIP1559FeeParamsRequest_messageType struct{} + +func (x fastReflection_QueryEIP1559FeeParamsRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryEIP1559FeeParamsRequest)(nil) +} +func (x fastReflection_QueryEIP1559FeeParamsRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryEIP1559FeeParamsRequest) +} +func (x fastReflection_QueryEIP1559FeeParamsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryEIP1559FeeParamsRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryEIP1559FeeParamsRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryEIP1559FeeParamsRequest +} + +// 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_QueryEIP1559FeeParamsRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryEIP1559FeeParamsRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryEIP1559FeeParamsRequest) New() protoreflect.Message { + return new(fastReflection_QueryEIP1559FeeParamsRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryEIP1559FeeParamsRequest) Interface() protoreflect.ProtoMessage { + return (*QueryEIP1559FeeParamsRequest)(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_QueryEIP1559FeeParamsRequest) 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_QueryEIP1559FeeParamsRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.QueryEIP1559FeeParamsRequest")) + } + panic(fmt.Errorf("message initia.move.v1.QueryEIP1559FeeParamsRequest 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_QueryEIP1559FeeParamsRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.QueryEIP1559FeeParamsRequest")) + } + panic(fmt.Errorf("message initia.move.v1.QueryEIP1559FeeParamsRequest 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_QueryEIP1559FeeParamsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.QueryEIP1559FeeParamsRequest")) + } + panic(fmt.Errorf("message initia.move.v1.QueryEIP1559FeeParamsRequest 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_QueryEIP1559FeeParamsRequest) 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.move.v1.QueryEIP1559FeeParamsRequest")) + } + panic(fmt.Errorf("message initia.move.v1.QueryEIP1559FeeParamsRequest 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_QueryEIP1559FeeParamsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.QueryEIP1559FeeParamsRequest")) + } + panic(fmt.Errorf("message initia.move.v1.QueryEIP1559FeeParamsRequest 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_QueryEIP1559FeeParamsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.QueryEIP1559FeeParamsRequest")) + } + panic(fmt.Errorf("message initia.move.v1.QueryEIP1559FeeParamsRequest 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_QueryEIP1559FeeParamsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in initia.move.v1.QueryEIP1559FeeParamsRequest", 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_QueryEIP1559FeeParamsRequest) 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_QueryEIP1559FeeParamsRequest) 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_QueryEIP1559FeeParamsRequest) 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_QueryEIP1559FeeParamsRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryEIP1559FeeParamsRequest) + 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().(*QueryEIP1559FeeParamsRequest) + 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().(*QueryEIP1559FeeParamsRequest) + 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: QueryEIP1559FeeParamsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryEIP1559FeeParamsRequest: 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 ( + md_QueryEIP1559FeeParamsResponse protoreflect.MessageDescriptor + fd_QueryEIP1559FeeParamsResponse_eip1559_feeparams protoreflect.FieldDescriptor +) + +func init() { + file_initia_move_v1_query_proto_init() + md_QueryEIP1559FeeParamsResponse = File_initia_move_v1_query_proto.Messages().ByName("QueryEIP1559FeeParamsResponse") + fd_QueryEIP1559FeeParamsResponse_eip1559_feeparams = md_QueryEIP1559FeeParamsResponse.Fields().ByName("eip1559_feeparams") +} + +var _ protoreflect.Message = (*fastReflection_QueryEIP1559FeeParamsResponse)(nil) + +type fastReflection_QueryEIP1559FeeParamsResponse QueryEIP1559FeeParamsResponse + +func (x *QueryEIP1559FeeParamsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryEIP1559FeeParamsResponse)(x) +} + +func (x *QueryEIP1559FeeParamsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_initia_move_v1_query_proto_msgTypes[34] + 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_QueryEIP1559FeeParamsResponse_messageType fastReflection_QueryEIP1559FeeParamsResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryEIP1559FeeParamsResponse_messageType{} + +type fastReflection_QueryEIP1559FeeParamsResponse_messageType struct{} + +func (x fastReflection_QueryEIP1559FeeParamsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryEIP1559FeeParamsResponse)(nil) +} +func (x fastReflection_QueryEIP1559FeeParamsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryEIP1559FeeParamsResponse) +} +func (x fastReflection_QueryEIP1559FeeParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryEIP1559FeeParamsResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryEIP1559FeeParamsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryEIP1559FeeParamsResponse +} + +// 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_QueryEIP1559FeeParamsResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryEIP1559FeeParamsResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryEIP1559FeeParamsResponse) New() protoreflect.Message { + return new(fastReflection_QueryEIP1559FeeParamsResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryEIP1559FeeParamsResponse) Interface() protoreflect.ProtoMessage { + return (*QueryEIP1559FeeParamsResponse)(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_QueryEIP1559FeeParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Eip1559Feeparams != nil { + value := protoreflect.ValueOfMessage(x.Eip1559Feeparams.ProtoReflect()) + if !f(fd_QueryEIP1559FeeParamsResponse_eip1559_feeparams, 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_QueryEIP1559FeeParamsResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "initia.move.v1.QueryEIP1559FeeParamsResponse.eip1559_feeparams": + return x.Eip1559Feeparams != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.QueryEIP1559FeeParamsResponse")) + } + panic(fmt.Errorf("message initia.move.v1.QueryEIP1559FeeParamsResponse 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_QueryEIP1559FeeParamsResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "initia.move.v1.QueryEIP1559FeeParamsResponse.eip1559_feeparams": + x.Eip1559Feeparams = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.QueryEIP1559FeeParamsResponse")) + } + panic(fmt.Errorf("message initia.move.v1.QueryEIP1559FeeParamsResponse 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_QueryEIP1559FeeParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "initia.move.v1.QueryEIP1559FeeParamsResponse.eip1559_feeparams": + value := x.Eip1559Feeparams + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.QueryEIP1559FeeParamsResponse")) + } + panic(fmt.Errorf("message initia.move.v1.QueryEIP1559FeeParamsResponse 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_QueryEIP1559FeeParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "initia.move.v1.QueryEIP1559FeeParamsResponse.eip1559_feeparams": + x.Eip1559Feeparams = value.Message().Interface().(*EIP1559FeeParams) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.QueryEIP1559FeeParamsResponse")) + } + panic(fmt.Errorf("message initia.move.v1.QueryEIP1559FeeParamsResponse 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_QueryEIP1559FeeParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "initia.move.v1.QueryEIP1559FeeParamsResponse.eip1559_feeparams": + if x.Eip1559Feeparams == nil { + x.Eip1559Feeparams = new(EIP1559FeeParams) + } + return protoreflect.ValueOfMessage(x.Eip1559Feeparams.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.QueryEIP1559FeeParamsResponse")) + } + panic(fmt.Errorf("message initia.move.v1.QueryEIP1559FeeParamsResponse 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_QueryEIP1559FeeParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "initia.move.v1.QueryEIP1559FeeParamsResponse.eip1559_feeparams": + m := new(EIP1559FeeParams) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.QueryEIP1559FeeParamsResponse")) + } + panic(fmt.Errorf("message initia.move.v1.QueryEIP1559FeeParamsResponse 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_QueryEIP1559FeeParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in initia.move.v1.QueryEIP1559FeeParamsResponse", 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_QueryEIP1559FeeParamsResponse) 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_QueryEIP1559FeeParamsResponse) 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_QueryEIP1559FeeParamsResponse) 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_QueryEIP1559FeeParamsResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryEIP1559FeeParamsResponse) + 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.Eip1559Feeparams != nil { + l = options.Size(x.Eip1559Feeparams) + 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().(*QueryEIP1559FeeParamsResponse) + 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.Eip1559Feeparams != nil { + encoded, err := options.Marshal(x.Eip1559Feeparams) + 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().(*QueryEIP1559FeeParamsResponse) + 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: QueryEIP1559FeeParamsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryEIP1559FeeParamsResponse: 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 Eip1559Feeparams", 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.Eip1559Feeparams == nil { + x.Eip1559Feeparams = &EIP1559FeeParams{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Eip1559Feeparams); 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 @@ -18309,6 +19100,69 @@ func (x *QueryDenomResponse) GetDenom() string { return "" } +// QueryEIP1559FeeParamsRequest is the request type for the Query/EIP1559FeeParams RPC method. +type QueryEIP1559FeeParamsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *QueryEIP1559FeeParamsRequest) Reset() { + *x = QueryEIP1559FeeParamsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_initia_move_v1_query_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryEIP1559FeeParamsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryEIP1559FeeParamsRequest) ProtoMessage() {} + +// Deprecated: Use QueryEIP1559FeeParamsRequest.ProtoReflect.Descriptor instead. +func (*QueryEIP1559FeeParamsRequest) Descriptor() ([]byte, []int) { + return file_initia_move_v1_query_proto_rawDescGZIP(), []int{33} +} + +// QueryEIP1559FeeParamsResponse is the response type for the Query/EIP1559FeeParams RPC method. +type QueryEIP1559FeeParamsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Eip1559Feeparams *EIP1559FeeParams `protobuf:"bytes,1,opt,name=eip1559_feeparams,json=eip1559Feeparams,proto3" json:"eip1559_feeparams,omitempty"` +} + +func (x *QueryEIP1559FeeParamsResponse) Reset() { + *x = QueryEIP1559FeeParamsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_initia_move_v1_query_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryEIP1559FeeParamsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryEIP1559FeeParamsResponse) ProtoMessage() {} + +// Deprecated: Use QueryEIP1559FeeParamsResponse.ProtoReflect.Descriptor instead. +func (*QueryEIP1559FeeParamsResponse) Descriptor() ([]byte, []int) { + return file_initia_move_v1_query_proto_rawDescGZIP(), []int{34} +} + +func (x *QueryEIP1559FeeParamsResponse) GetEip1559Feeparams() *EIP1559FeeParams { + if x != nil { + return x.Eip1559Feeparams + } + return nil +} + var File_initia_move_v1_query_proto protoreflect.FileDescriptor var file_initia_move_v1_query_proto_rawDesc = []byte{ @@ -18531,160 +19385,179 @@ var file_initia_move_v1_query_proto_rawDesc = []byte{ 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x2a, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, - 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x32, 0xc5, 0x11, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, - 0x93, 0x01, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x22, 0x2e, 0x69, 0x6e, 0x69, - 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, - 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x40, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3a, 0x12, 0x38, 0x2f, 0x69, 0x6e, - 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x2f, - 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x73, 0x2f, 0x7b, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, - 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x12, 0x88, 0x01, 0x0a, 0x07, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, - 0x73, 0x12, 0x23, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, - 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, - 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4d, 0x6f, 0x64, - 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x32, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x2c, 0x12, 0x2a, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, - 0x76, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x7b, - 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x73, - 0x12, 0x9b, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x24, 0x2e, - 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x42, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x3c, 0x12, 0x3a, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, 0x76, 0x65, - 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, - 0x2f, 0x62, 0x79, 0x5f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x5f, 0x74, 0x61, 0x67, 0x12, 0x90, - 0x01, 0x0a, 0x09, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x25, 0x2e, 0x69, + 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x22, 0x1e, 0x0a, 0x1c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x49, + 0x50, 0x31, 0x35, 0x35, 0x39, 0x46, 0x65, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x74, 0x0a, 0x1d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x49, + 0x50, 0x31, 0x35, 0x35, 0x39, 0x46, 0x65, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x11, 0x65, 0x69, 0x70, 0x31, 0x35, 0x35, + 0x39, 0x5f, 0x66, 0x65, 0x65, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x20, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x45, 0x49, 0x50, 0x31, 0x35, 0x35, 0x39, 0x46, 0x65, 0x65, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x10, 0x65, 0x69, 0x70, 0x31, 0x35, + 0x35, 0x39, 0x46, 0x65, 0x65, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x32, 0xe2, 0x12, 0x0a, 0x05, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x93, 0x01, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, + 0x12, 0x22, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, + 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4d, 0x6f, 0x64, 0x75, 0x6c, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x40, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x3a, 0x12, 0x38, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, 0x76, 0x65, 0x2f, + 0x76, 0x31, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x7d, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x73, 0x2f, 0x7b, 0x6d, + 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x12, 0x88, 0x01, 0x0a, 0x07, + 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x23, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, + 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4d, 0x6f, + 0x64, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x34, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x2e, 0x12, 0x2c, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, 0x76, - 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x73, 0x12, 0x84, 0x01, 0x0a, 0x09, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, - 0x25, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, - 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x61, 0x62, - 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 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, - 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x2f, 0x7b, - 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12, 0x9c, 0x01, 0x0a, 0x0a, 0x54, 0x61, 0x62, - 0x6c, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x26, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, - 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x61, - 0x62, 0x6c, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x27, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, - 0x12, 0x35, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x76, - 0x31, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x7d, 0x2f, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x2f, 0x62, 0x79, 0x5f, 0x6b, 0x65, - 0x79, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x12, 0x95, 0x01, 0x0a, 0x0c, 0x54, 0x61, 0x62, 0x6c, - 0x65, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, 0x28, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, - 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, - 0x61, 0x62, 0x6c, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, - 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x6e, - 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x30, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x12, 0x28, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, - 0x6f, 0x76, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x2f, 0x7b, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x2f, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, - 0xc4, 0x01, 0x0a, 0x0a, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x56, 0x69, 0x65, 0x77, 0x12, 0x26, - 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x56, 0x69, 0x65, 0x77, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, - 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x65, 0x67, - 0x61, 0x63, 0x79, 0x56, 0x69, 0x65, 0x77, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x5c, 0x3a, 0x01, 0x2a, 0x22, 0x57, 0x2f, 0x69, 0x6e, 0x69, + 0x65, 0x72, 0x79, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x32, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x12, 0x2a, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x2f, 0x6d, - 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x73, 0x2f, 0x7b, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x6e, - 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, - 0x6d, 0x65, 0x7d, 0x88, 0x02, 0x01, 0x12, 0x6c, 0x0a, 0x04, 0x56, 0x69, 0x65, 0x77, 0x12, 0x20, - 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x69, 0x65, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x21, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x69, 0x65, 0x77, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x1f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x3a, 0x01, 0x2a, 0x22, 0x14, - 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x76, 0x31, 0x2f, - 0x76, 0x69, 0x65, 0x77, 0x12, 0x81, 0x01, 0x0a, 0x09, 0x56, 0x69, 0x65, 0x77, 0x42, 0x61, 0x74, - 0x63, 0x68, 0x12, 0x25, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, - 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x69, 0x65, 0x77, 0x42, 0x61, 0x74, - 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x69, 0x6e, 0x69, 0x74, + 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x9b, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x12, 0x24, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x56, 0x69, 0x65, 0x77, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x3a, 0x01, 0x2a, 0x22, 0x1a, 0x2f, 0x69, - 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x69, - 0x65, 0x77, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x12, 0x7d, 0x0a, 0x08, 0x56, 0x69, 0x65, 0x77, - 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x24, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, - 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x69, 0x65, 0x77, 0x4a, - 0x53, 0x4f, 0x4e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x69, 0x6e, 0x69, - 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x56, 0x69, 0x65, 0x77, 0x4a, 0x53, 0x4f, 0x4e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x3a, 0x01, 0x2a, 0x22, 0x19, 0x2f, 0x69, - 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x69, - 0x65, 0x77, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x12, 0x92, 0x01, 0x0a, 0x0d, 0x56, 0x69, 0x65, 0x77, - 0x4a, 0x53, 0x4f, 0x4e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x12, 0x29, 0x2e, 0x69, 0x6e, 0x69, 0x74, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x42, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3c, 0x12, 0x3a, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, + 0x61, 0x2f, 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x73, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x2f, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x62, 0x79, 0x5f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, + 0x5f, 0x74, 0x61, 0x67, 0x12, 0x90, 0x01, 0x0a, 0x09, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x73, 0x12, 0x25, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x56, 0x69, 0x65, 0x77, 0x4a, 0x53, 0x4f, 0x4e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, - 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x69, 0x65, 0x77, 0x4a, - 0x53, 0x4f, 0x4e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x2a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x3a, 0x01, 0x2a, 0x22, 0x1f, 0x2f, 0x69, 0x6e, - 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x69, 0x65, - 0x77, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x12, 0x81, 0x01, 0x0a, - 0x09, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x41, 0x42, 0x49, 0x12, 0x25, 0x2e, 0x69, 0x6e, 0x69, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x34, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2e, 0x12, 0x2c, 0x2f, 0x69, 0x6e, 0x69, 0x74, + 0x69, 0x61, 0x2f, 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x2f, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x84, 0x01, 0x0a, 0x09, 0x54, 0x61, 0x62, 0x6c, + 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x25, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, + 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x61, 0x62, 0x6c, + 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x69, + 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 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, 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x61, + 0x62, 0x6c, 0x65, 0x73, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12, 0x9c, + 0x01, 0x0a, 0x0a, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x26, 0x2e, + 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, + 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x61, 0x62, 0x6c, + 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3d, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x12, 0x35, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, + 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x2f, 0x7b, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x2f, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, + 0x2f, 0x62, 0x79, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x12, 0x95, 0x01, + 0x0a, 0x0c, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, 0x28, + 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, + 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, + 0x61, 0x62, 0x6c, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x30, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x12, 0x28, 0x2f, 0x69, 0x6e, + 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x61, 0x62, + 0x6c, 0x65, 0x73, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x2f, 0x65, 0x6e, + 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, 0xc4, 0x01, 0x0a, 0x0a, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, + 0x56, 0x69, 0x65, 0x77, 0x12, 0x26, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, + 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x65, 0x67, 0x61, 0x63, + 0x79, 0x56, 0x69, 0x65, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x69, + 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x56, 0x69, 0x65, 0x77, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x5c, 0x3a, 0x01, 0x2a, + 0x22, 0x57, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x76, + 0x31, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x7d, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x73, 0x2f, 0x7b, 0x6d, 0x6f, + 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x76, 0x69, 0x65, 0x77, 0x5f, + 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x66, 0x75, 0x6e, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x88, 0x02, 0x01, 0x12, 0x6c, 0x0a, 0x04, + 0x56, 0x69, 0x65, 0x77, 0x12, 0x20, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, + 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x69, 0x65, 0x77, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, + 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x69, 0x65, + 0x77, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1f, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x19, 0x3a, 0x01, 0x2a, 0x22, 0x14, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, + 0x76, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x69, 0x65, 0x77, 0x12, 0x81, 0x01, 0x0a, 0x09, 0x56, + 0x69, 0x65, 0x77, 0x42, 0x61, 0x74, 0x63, 0x68, 0x12, 0x25, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, + 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, + 0x69, 0x65, 0x77, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x26, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x69, 0x65, 0x77, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x3a, + 0x01, 0x2a, 0x22, 0x1a, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, 0x76, 0x65, + 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x69, 0x65, 0x77, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x12, 0x7d, + 0x0a, 0x08, 0x56, 0x69, 0x65, 0x77, 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x24, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x41, 0x42, 0x49, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x26, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, - 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x41, 0x42, - 0x49, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x1f, 0x3a, 0x01, 0x2a, 0x22, 0x1a, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, - 0x76, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x2f, 0x61, 0x62, 0x69, - 0x12, 0x71, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x22, 0x2e, 0x69, 0x6e, 0x69, + 0x79, 0x56, 0x69, 0x65, 0x77, 0x4a, 0x53, 0x4f, 0x4e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x25, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x69, 0x65, 0x77, 0x4a, 0x53, 0x4f, 0x4e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x3a, + 0x01, 0x2a, 0x22, 0x19, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, 0x76, 0x65, + 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x69, 0x65, 0x77, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x12, 0x92, 0x01, + 0x0a, 0x0d, 0x56, 0x69, 0x65, 0x77, 0x4a, 0x53, 0x4f, 0x4e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x12, + 0x29, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x69, 0x65, 0x77, 0x4a, 0x53, 0x4f, 0x4e, 0x42, 0x61, + 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, - 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x1e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x12, 0x16, 0x2f, 0x69, 0x6e, - 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x72, - 0x61, 0x6d, 0x73, 0x12, 0x79, 0x0a, 0x08, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, - 0x24, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, + 0x79, 0x56, 0x69, 0x65, 0x77, 0x4a, 0x53, 0x4f, 0x4e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x3a, 0x01, + 0x2a, 0x22, 0x1f, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, 0x76, 0x65, 0x2f, + 0x76, 0x31, 0x2f, 0x76, 0x69, 0x65, 0x77, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x2f, 0x62, 0x61, 0x74, + 0x63, 0x68, 0x12, 0x81, 0x01, 0x0a, 0x09, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x41, 0x42, 0x49, + 0x12, 0x25, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x41, 0x42, 0x49, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, + 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x41, 0x42, 0x49, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x3a, 0x01, 0x2a, 0x22, 0x1a, 0x2f, 0x69, 0x6e, 0x69, + 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x2f, 0x61, 0x62, 0x69, 0x12, 0x71, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, + 0x12, 0x22, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, + 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1e, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x18, 0x12, 0x16, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, 0x76, 0x65, 0x2f, + 0x76, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x79, 0x0a, 0x08, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x24, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 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, 0x6d, 0x6f, - 0x76, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x6d, - 0x0a, 0x05, 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x12, 0x21, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, - 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, - 0x6e, 0x6f, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x69, 0x6e, 0x69, - 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1d, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x12, 0x15, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, - 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x42, 0xbb, 0x01, - 0xc8, 0xe1, 0x1e, 0x00, 0xa8, 0xe2, 0x1e, 0x00, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x69, 0x6e, - 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x51, 0x75, - 0x65, 0x72, 0x79, 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, + 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x69, 0x6e, + 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 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, 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x12, 0x6d, 0x0a, 0x05, 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x12, 0x21, 0x2e, + 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x22, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x12, 0x15, 0x2f, 0x69, + 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x65, + 0x6e, 0x6f, 0x6d, 0x12, 0x9a, 0x01, 0x0a, 0x10, 0x45, 0x49, 0x50, 0x31, 0x35, 0x35, 0x39, 0x46, + 0x65, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x2c, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, + 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, + 0x49, 0x50, 0x31, 0x35, 0x35, 0x39, 0x46, 0x65, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, + 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x49, 0x50, + 0x31, 0x35, 0x35, 0x39, 0x46, 0x65, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x12, 0x21, 0x2f, + 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x65, + 0x69, 0x70, 0x31, 0x35, 0x35, 0x39, 0x5f, 0x66, 0x65, 0x65, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, + 0x42, 0xbb, 0x01, 0xc8, 0xe1, 0x1e, 0x00, 0xa8, 0xe2, 0x1e, 0x00, 0x0a, 0x12, 0x63, 0x6f, 0x6d, + 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x42, + 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 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 ( @@ -18699,63 +19572,66 @@ func file_initia_move_v1_query_proto_rawDescGZIP() []byte { return file_initia_move_v1_query_proto_rawDescData } -var file_initia_move_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 33) +var file_initia_move_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 35) var file_initia_move_v1_query_proto_goTypes = []interface{}{ - (*QueryModuleRequest)(nil), // 0: initia.move.v1.QueryModuleRequest - (*QueryModuleResponse)(nil), // 1: initia.move.v1.QueryModuleResponse - (*QueryModulesRequest)(nil), // 2: initia.move.v1.QueryModulesRequest - (*QueryModulesResponse)(nil), // 3: initia.move.v1.QueryModulesResponse - (*QueryResourceRequest)(nil), // 4: initia.move.v1.QueryResourceRequest - (*QueryResourceResponse)(nil), // 5: initia.move.v1.QueryResourceResponse - (*QueryResourcesRequest)(nil), // 6: initia.move.v1.QueryResourcesRequest - (*QueryResourcesResponse)(nil), // 7: initia.move.v1.QueryResourcesResponse - (*QueryTableInfoRequest)(nil), // 8: initia.move.v1.QueryTableInfoRequest - (*QueryTableInfoResponse)(nil), // 9: initia.move.v1.QueryTableInfoResponse - (*QueryTableEntryRequest)(nil), // 10: initia.move.v1.QueryTableEntryRequest - (*QueryTableEntryResponse)(nil), // 11: initia.move.v1.QueryTableEntryResponse - (*QueryTableEntriesRequest)(nil), // 12: initia.move.v1.QueryTableEntriesRequest - (*QueryTableEntriesResponse)(nil), // 13: initia.move.v1.QueryTableEntriesResponse - (*QueryLegacyViewRequest)(nil), // 14: initia.move.v1.QueryLegacyViewRequest - (*QueryLegacyViewResponse)(nil), // 15: initia.move.v1.QueryLegacyViewResponse - (*QueryViewRequest)(nil), // 16: initia.move.v1.QueryViewRequest - (*QueryViewResponse)(nil), // 17: initia.move.v1.QueryViewResponse - (*QueryViewBatchRequest)(nil), // 18: initia.move.v1.QueryViewBatchRequest - (*QueryViewBatchResponse)(nil), // 19: initia.move.v1.QueryViewBatchResponse - (*QueryViewJSONRequest)(nil), // 20: initia.move.v1.QueryViewJSONRequest - (*QueryViewJSONResponse)(nil), // 21: initia.move.v1.QueryViewJSONResponse - (*QueryViewJSONBatchRequest)(nil), // 22: initia.move.v1.QueryViewJSONBatchRequest - (*QueryViewJSONBatchResponse)(nil), // 23: initia.move.v1.QueryViewJSONBatchResponse - (*VMEvent)(nil), // 24: initia.move.v1.VMEvent - (*QueryScriptABIRequest)(nil), // 25: initia.move.v1.QueryScriptABIRequest - (*QueryScriptABIResponse)(nil), // 26: initia.move.v1.QueryScriptABIResponse - (*QueryParamsRequest)(nil), // 27: initia.move.v1.QueryParamsRequest - (*QueryParamsResponse)(nil), // 28: initia.move.v1.QueryParamsResponse - (*QueryMetadataRequest)(nil), // 29: initia.move.v1.QueryMetadataRequest - (*QueryMetadataResponse)(nil), // 30: initia.move.v1.QueryMetadataResponse - (*QueryDenomRequest)(nil), // 31: initia.move.v1.QueryDenomRequest - (*QueryDenomResponse)(nil), // 32: initia.move.v1.QueryDenomResponse - (*Module)(nil), // 33: initia.move.v1.Module - (*v1beta1.PageRequest)(nil), // 34: cosmos.base.query.v1beta1.PageRequest - (*v1beta1.PageResponse)(nil), // 35: cosmos.base.query.v1beta1.PageResponse - (*Resource)(nil), // 36: initia.move.v1.Resource - (*TableInfo)(nil), // 37: initia.move.v1.TableInfo - (*TableEntry)(nil), // 38: initia.move.v1.TableEntry - (*Params)(nil), // 39: initia.move.v1.Params + (*QueryModuleRequest)(nil), // 0: initia.move.v1.QueryModuleRequest + (*QueryModuleResponse)(nil), // 1: initia.move.v1.QueryModuleResponse + (*QueryModulesRequest)(nil), // 2: initia.move.v1.QueryModulesRequest + (*QueryModulesResponse)(nil), // 3: initia.move.v1.QueryModulesResponse + (*QueryResourceRequest)(nil), // 4: initia.move.v1.QueryResourceRequest + (*QueryResourceResponse)(nil), // 5: initia.move.v1.QueryResourceResponse + (*QueryResourcesRequest)(nil), // 6: initia.move.v1.QueryResourcesRequest + (*QueryResourcesResponse)(nil), // 7: initia.move.v1.QueryResourcesResponse + (*QueryTableInfoRequest)(nil), // 8: initia.move.v1.QueryTableInfoRequest + (*QueryTableInfoResponse)(nil), // 9: initia.move.v1.QueryTableInfoResponse + (*QueryTableEntryRequest)(nil), // 10: initia.move.v1.QueryTableEntryRequest + (*QueryTableEntryResponse)(nil), // 11: initia.move.v1.QueryTableEntryResponse + (*QueryTableEntriesRequest)(nil), // 12: initia.move.v1.QueryTableEntriesRequest + (*QueryTableEntriesResponse)(nil), // 13: initia.move.v1.QueryTableEntriesResponse + (*QueryLegacyViewRequest)(nil), // 14: initia.move.v1.QueryLegacyViewRequest + (*QueryLegacyViewResponse)(nil), // 15: initia.move.v1.QueryLegacyViewResponse + (*QueryViewRequest)(nil), // 16: initia.move.v1.QueryViewRequest + (*QueryViewResponse)(nil), // 17: initia.move.v1.QueryViewResponse + (*QueryViewBatchRequest)(nil), // 18: initia.move.v1.QueryViewBatchRequest + (*QueryViewBatchResponse)(nil), // 19: initia.move.v1.QueryViewBatchResponse + (*QueryViewJSONRequest)(nil), // 20: initia.move.v1.QueryViewJSONRequest + (*QueryViewJSONResponse)(nil), // 21: initia.move.v1.QueryViewJSONResponse + (*QueryViewJSONBatchRequest)(nil), // 22: initia.move.v1.QueryViewJSONBatchRequest + (*QueryViewJSONBatchResponse)(nil), // 23: initia.move.v1.QueryViewJSONBatchResponse + (*VMEvent)(nil), // 24: initia.move.v1.VMEvent + (*QueryScriptABIRequest)(nil), // 25: initia.move.v1.QueryScriptABIRequest + (*QueryScriptABIResponse)(nil), // 26: initia.move.v1.QueryScriptABIResponse + (*QueryParamsRequest)(nil), // 27: initia.move.v1.QueryParamsRequest + (*QueryParamsResponse)(nil), // 28: initia.move.v1.QueryParamsResponse + (*QueryMetadataRequest)(nil), // 29: initia.move.v1.QueryMetadataRequest + (*QueryMetadataResponse)(nil), // 30: initia.move.v1.QueryMetadataResponse + (*QueryDenomRequest)(nil), // 31: initia.move.v1.QueryDenomRequest + (*QueryDenomResponse)(nil), // 32: initia.move.v1.QueryDenomResponse + (*QueryEIP1559FeeParamsRequest)(nil), // 33: initia.move.v1.QueryEIP1559FeeParamsRequest + (*QueryEIP1559FeeParamsResponse)(nil), // 34: initia.move.v1.QueryEIP1559FeeParamsResponse + (*Module)(nil), // 35: initia.move.v1.Module + (*v1beta1.PageRequest)(nil), // 36: cosmos.base.query.v1beta1.PageRequest + (*v1beta1.PageResponse)(nil), // 37: cosmos.base.query.v1beta1.PageResponse + (*Resource)(nil), // 38: initia.move.v1.Resource + (*TableInfo)(nil), // 39: initia.move.v1.TableInfo + (*TableEntry)(nil), // 40: initia.move.v1.TableEntry + (*Params)(nil), // 41: initia.move.v1.Params + (*EIP1559FeeParams)(nil), // 42: initia.move.v1.EIP1559FeeParams } var file_initia_move_v1_query_proto_depIdxs = []int32{ - 33, // 0: initia.move.v1.QueryModuleResponse.module:type_name -> initia.move.v1.Module - 34, // 1: initia.move.v1.QueryModulesRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 33, // 2: initia.move.v1.QueryModulesResponse.modules:type_name -> initia.move.v1.Module - 35, // 3: initia.move.v1.QueryModulesResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 36, // 4: initia.move.v1.QueryResourceResponse.resource:type_name -> initia.move.v1.Resource - 34, // 5: initia.move.v1.QueryResourcesRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 36, // 6: initia.move.v1.QueryResourcesResponse.resources:type_name -> initia.move.v1.Resource - 35, // 7: initia.move.v1.QueryResourcesResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 37, // 8: initia.move.v1.QueryTableInfoResponse.table_info:type_name -> initia.move.v1.TableInfo - 38, // 9: initia.move.v1.QueryTableEntryResponse.table_entry:type_name -> initia.move.v1.TableEntry - 34, // 10: initia.move.v1.QueryTableEntriesRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 38, // 11: initia.move.v1.QueryTableEntriesResponse.table_entries:type_name -> initia.move.v1.TableEntry - 35, // 12: initia.move.v1.QueryTableEntriesResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 35, // 0: initia.move.v1.QueryModuleResponse.module:type_name -> initia.move.v1.Module + 36, // 1: initia.move.v1.QueryModulesRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 35, // 2: initia.move.v1.QueryModulesResponse.modules:type_name -> initia.move.v1.Module + 37, // 3: initia.move.v1.QueryModulesResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 38, // 4: initia.move.v1.QueryResourceResponse.resource:type_name -> initia.move.v1.Resource + 36, // 5: initia.move.v1.QueryResourcesRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 38, // 6: initia.move.v1.QueryResourcesResponse.resources:type_name -> initia.move.v1.Resource + 37, // 7: initia.move.v1.QueryResourcesResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 39, // 8: initia.move.v1.QueryTableInfoResponse.table_info:type_name -> initia.move.v1.TableInfo + 40, // 9: initia.move.v1.QueryTableEntryResponse.table_entry:type_name -> initia.move.v1.TableEntry + 36, // 10: initia.move.v1.QueryTableEntriesRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 40, // 11: initia.move.v1.QueryTableEntriesResponse.table_entries:type_name -> initia.move.v1.TableEntry + 37, // 12: initia.move.v1.QueryTableEntriesResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse 24, // 13: initia.move.v1.QueryLegacyViewResponse.events:type_name -> initia.move.v1.VMEvent 24, // 14: initia.move.v1.QueryViewResponse.events:type_name -> initia.move.v1.VMEvent 16, // 15: initia.move.v1.QueryViewBatchRequest.requests:type_name -> initia.move.v1.QueryViewRequest @@ -18763,44 +19639,47 @@ var file_initia_move_v1_query_proto_depIdxs = []int32{ 24, // 17: initia.move.v1.QueryViewJSONResponse.events:type_name -> initia.move.v1.VMEvent 20, // 18: initia.move.v1.QueryViewJSONBatchRequest.requests:type_name -> initia.move.v1.QueryViewJSONRequest 21, // 19: initia.move.v1.QueryViewJSONBatchResponse.responses:type_name -> initia.move.v1.QueryViewJSONResponse - 39, // 20: initia.move.v1.QueryParamsResponse.params:type_name -> initia.move.v1.Params - 0, // 21: initia.move.v1.Query.Module:input_type -> initia.move.v1.QueryModuleRequest - 2, // 22: initia.move.v1.Query.Modules:input_type -> initia.move.v1.QueryModulesRequest - 4, // 23: initia.move.v1.Query.Resource:input_type -> initia.move.v1.QueryResourceRequest - 6, // 24: initia.move.v1.Query.Resources:input_type -> initia.move.v1.QueryResourcesRequest - 8, // 25: initia.move.v1.Query.TableInfo:input_type -> initia.move.v1.QueryTableInfoRequest - 10, // 26: initia.move.v1.Query.TableEntry:input_type -> initia.move.v1.QueryTableEntryRequest - 12, // 27: initia.move.v1.Query.TableEntries:input_type -> initia.move.v1.QueryTableEntriesRequest - 14, // 28: initia.move.v1.Query.LegacyView:input_type -> initia.move.v1.QueryLegacyViewRequest - 16, // 29: initia.move.v1.Query.View:input_type -> initia.move.v1.QueryViewRequest - 18, // 30: initia.move.v1.Query.ViewBatch:input_type -> initia.move.v1.QueryViewBatchRequest - 20, // 31: initia.move.v1.Query.ViewJSON:input_type -> initia.move.v1.QueryViewJSONRequest - 22, // 32: initia.move.v1.Query.ViewJSONBatch:input_type -> initia.move.v1.QueryViewJSONBatchRequest - 25, // 33: initia.move.v1.Query.ScriptABI:input_type -> initia.move.v1.QueryScriptABIRequest - 27, // 34: initia.move.v1.Query.Params:input_type -> initia.move.v1.QueryParamsRequest - 29, // 35: initia.move.v1.Query.Metadata:input_type -> initia.move.v1.QueryMetadataRequest - 31, // 36: initia.move.v1.Query.Denom:input_type -> initia.move.v1.QueryDenomRequest - 1, // 37: initia.move.v1.Query.Module:output_type -> initia.move.v1.QueryModuleResponse - 3, // 38: initia.move.v1.Query.Modules:output_type -> initia.move.v1.QueryModulesResponse - 5, // 39: initia.move.v1.Query.Resource:output_type -> initia.move.v1.QueryResourceResponse - 7, // 40: initia.move.v1.Query.Resources:output_type -> initia.move.v1.QueryResourcesResponse - 9, // 41: initia.move.v1.Query.TableInfo:output_type -> initia.move.v1.QueryTableInfoResponse - 11, // 42: initia.move.v1.Query.TableEntry:output_type -> initia.move.v1.QueryTableEntryResponse - 13, // 43: initia.move.v1.Query.TableEntries:output_type -> initia.move.v1.QueryTableEntriesResponse - 15, // 44: initia.move.v1.Query.LegacyView:output_type -> initia.move.v1.QueryLegacyViewResponse - 17, // 45: initia.move.v1.Query.View:output_type -> initia.move.v1.QueryViewResponse - 19, // 46: initia.move.v1.Query.ViewBatch:output_type -> initia.move.v1.QueryViewBatchResponse - 21, // 47: initia.move.v1.Query.ViewJSON:output_type -> initia.move.v1.QueryViewJSONResponse - 23, // 48: initia.move.v1.Query.ViewJSONBatch:output_type -> initia.move.v1.QueryViewJSONBatchResponse - 26, // 49: initia.move.v1.Query.ScriptABI:output_type -> initia.move.v1.QueryScriptABIResponse - 28, // 50: initia.move.v1.Query.Params:output_type -> initia.move.v1.QueryParamsResponse - 30, // 51: initia.move.v1.Query.Metadata:output_type -> initia.move.v1.QueryMetadataResponse - 32, // 52: initia.move.v1.Query.Denom:output_type -> initia.move.v1.QueryDenomResponse - 37, // [37:53] is the sub-list for method output_type - 21, // [21:37] is the sub-list for method input_type - 21, // [21:21] is the sub-list for extension type_name - 21, // [21:21] is the sub-list for extension extendee - 0, // [0:21] is the sub-list for field type_name + 41, // 20: initia.move.v1.QueryParamsResponse.params:type_name -> initia.move.v1.Params + 42, // 21: initia.move.v1.QueryEIP1559FeeParamsResponse.eip1559_feeparams:type_name -> initia.move.v1.EIP1559FeeParams + 0, // 22: initia.move.v1.Query.Module:input_type -> initia.move.v1.QueryModuleRequest + 2, // 23: initia.move.v1.Query.Modules:input_type -> initia.move.v1.QueryModulesRequest + 4, // 24: initia.move.v1.Query.Resource:input_type -> initia.move.v1.QueryResourceRequest + 6, // 25: initia.move.v1.Query.Resources:input_type -> initia.move.v1.QueryResourcesRequest + 8, // 26: initia.move.v1.Query.TableInfo:input_type -> initia.move.v1.QueryTableInfoRequest + 10, // 27: initia.move.v1.Query.TableEntry:input_type -> initia.move.v1.QueryTableEntryRequest + 12, // 28: initia.move.v1.Query.TableEntries:input_type -> initia.move.v1.QueryTableEntriesRequest + 14, // 29: initia.move.v1.Query.LegacyView:input_type -> initia.move.v1.QueryLegacyViewRequest + 16, // 30: initia.move.v1.Query.View:input_type -> initia.move.v1.QueryViewRequest + 18, // 31: initia.move.v1.Query.ViewBatch:input_type -> initia.move.v1.QueryViewBatchRequest + 20, // 32: initia.move.v1.Query.ViewJSON:input_type -> initia.move.v1.QueryViewJSONRequest + 22, // 33: initia.move.v1.Query.ViewJSONBatch:input_type -> initia.move.v1.QueryViewJSONBatchRequest + 25, // 34: initia.move.v1.Query.ScriptABI:input_type -> initia.move.v1.QueryScriptABIRequest + 27, // 35: initia.move.v1.Query.Params:input_type -> initia.move.v1.QueryParamsRequest + 29, // 36: initia.move.v1.Query.Metadata:input_type -> initia.move.v1.QueryMetadataRequest + 31, // 37: initia.move.v1.Query.Denom:input_type -> initia.move.v1.QueryDenomRequest + 33, // 38: initia.move.v1.Query.EIP1559FeeParams:input_type -> initia.move.v1.QueryEIP1559FeeParamsRequest + 1, // 39: initia.move.v1.Query.Module:output_type -> initia.move.v1.QueryModuleResponse + 3, // 40: initia.move.v1.Query.Modules:output_type -> initia.move.v1.QueryModulesResponse + 5, // 41: initia.move.v1.Query.Resource:output_type -> initia.move.v1.QueryResourceResponse + 7, // 42: initia.move.v1.Query.Resources:output_type -> initia.move.v1.QueryResourcesResponse + 9, // 43: initia.move.v1.Query.TableInfo:output_type -> initia.move.v1.QueryTableInfoResponse + 11, // 44: initia.move.v1.Query.TableEntry:output_type -> initia.move.v1.QueryTableEntryResponse + 13, // 45: initia.move.v1.Query.TableEntries:output_type -> initia.move.v1.QueryTableEntriesResponse + 15, // 46: initia.move.v1.Query.LegacyView:output_type -> initia.move.v1.QueryLegacyViewResponse + 17, // 47: initia.move.v1.Query.View:output_type -> initia.move.v1.QueryViewResponse + 19, // 48: initia.move.v1.Query.ViewBatch:output_type -> initia.move.v1.QueryViewBatchResponse + 21, // 49: initia.move.v1.Query.ViewJSON:output_type -> initia.move.v1.QueryViewJSONResponse + 23, // 50: initia.move.v1.Query.ViewJSONBatch:output_type -> initia.move.v1.QueryViewJSONBatchResponse + 26, // 51: initia.move.v1.Query.ScriptABI:output_type -> initia.move.v1.QueryScriptABIResponse + 28, // 52: initia.move.v1.Query.Params:output_type -> initia.move.v1.QueryParamsResponse + 30, // 53: initia.move.v1.Query.Metadata:output_type -> initia.move.v1.QueryMetadataResponse + 32, // 54: initia.move.v1.Query.Denom:output_type -> initia.move.v1.QueryDenomResponse + 34, // 55: initia.move.v1.Query.EIP1559FeeParams:output_type -> initia.move.v1.QueryEIP1559FeeParamsResponse + 39, // [39:56] is the sub-list for method output_type + 22, // [22:39] is the sub-list for method input_type + 22, // [22:22] is the sub-list for extension type_name + 22, // [22:22] is the sub-list for extension extendee + 0, // [0:22] is the sub-list for field type_name } func init() { file_initia_move_v1_query_proto_init() } @@ -19206,6 +20085,30 @@ func file_initia_move_v1_query_proto_init() { return nil } } + file_initia_move_v1_query_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryEIP1559FeeParamsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_initia_move_v1_query_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryEIP1559FeeParamsResponse); 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{ @@ -19213,7 +20116,7 @@ func file_initia_move_v1_query_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_initia_move_v1_query_proto_rawDesc, NumEnums: 0, - NumMessages: 33, + NumMessages: 35, NumExtensions: 0, NumServices: 1, }, diff --git a/api/initia/move/v1/query_grpc.pb.go b/api/initia/move/v1/query_grpc.pb.go index 104131285..f5fef711c 100644 --- a/api/initia/move/v1/query_grpc.pb.go +++ b/api/initia/move/v1/query_grpc.pb.go @@ -19,22 +19,23 @@ import ( const _ = grpc.SupportPackageIsVersion7 const ( - Query_Module_FullMethodName = "/initia.move.v1.Query/Module" - Query_Modules_FullMethodName = "/initia.move.v1.Query/Modules" - Query_Resource_FullMethodName = "/initia.move.v1.Query/Resource" - Query_Resources_FullMethodName = "/initia.move.v1.Query/Resources" - Query_TableInfo_FullMethodName = "/initia.move.v1.Query/TableInfo" - Query_TableEntry_FullMethodName = "/initia.move.v1.Query/TableEntry" - Query_TableEntries_FullMethodName = "/initia.move.v1.Query/TableEntries" - Query_LegacyView_FullMethodName = "/initia.move.v1.Query/LegacyView" - Query_View_FullMethodName = "/initia.move.v1.Query/View" - Query_ViewBatch_FullMethodName = "/initia.move.v1.Query/ViewBatch" - Query_ViewJSON_FullMethodName = "/initia.move.v1.Query/ViewJSON" - Query_ViewJSONBatch_FullMethodName = "/initia.move.v1.Query/ViewJSONBatch" - Query_ScriptABI_FullMethodName = "/initia.move.v1.Query/ScriptABI" - Query_Params_FullMethodName = "/initia.move.v1.Query/Params" - Query_Metadata_FullMethodName = "/initia.move.v1.Query/Metadata" - Query_Denom_FullMethodName = "/initia.move.v1.Query/Denom" + Query_Module_FullMethodName = "/initia.move.v1.Query/Module" + Query_Modules_FullMethodName = "/initia.move.v1.Query/Modules" + Query_Resource_FullMethodName = "/initia.move.v1.Query/Resource" + Query_Resources_FullMethodName = "/initia.move.v1.Query/Resources" + Query_TableInfo_FullMethodName = "/initia.move.v1.Query/TableInfo" + Query_TableEntry_FullMethodName = "/initia.move.v1.Query/TableEntry" + Query_TableEntries_FullMethodName = "/initia.move.v1.Query/TableEntries" + Query_LegacyView_FullMethodName = "/initia.move.v1.Query/LegacyView" + Query_View_FullMethodName = "/initia.move.v1.Query/View" + Query_ViewBatch_FullMethodName = "/initia.move.v1.Query/ViewBatch" + Query_ViewJSON_FullMethodName = "/initia.move.v1.Query/ViewJSON" + Query_ViewJSONBatch_FullMethodName = "/initia.move.v1.Query/ViewJSONBatch" + Query_ScriptABI_FullMethodName = "/initia.move.v1.Query/ScriptABI" + Query_Params_FullMethodName = "/initia.move.v1.Query/Params" + Query_Metadata_FullMethodName = "/initia.move.v1.Query/Metadata" + Query_Denom_FullMethodName = "/initia.move.v1.Query/Denom" + Query_EIP1559FeeParams_FullMethodName = "/initia.move.v1.Query/EIP1559FeeParams" ) // QueryClient is the client API for Query service. @@ -77,6 +78,8 @@ type QueryClient interface { Metadata(ctx context.Context, in *QueryMetadataRequest, opts ...grpc.CallOption) (*QueryMetadataResponse, error) // Denom converts denom to metadata Denom(ctx context.Context, in *QueryDenomRequest, opts ...grpc.CallOption) (*QueryDenomResponse, error) + // EIP1559FeeParams queries the EIP1559 fee params + EIP1559FeeParams(ctx context.Context, in *QueryEIP1559FeeParamsRequest, opts ...grpc.CallOption) (*QueryEIP1559FeeParamsResponse, error) } type queryClient struct { @@ -232,6 +235,15 @@ func (c *queryClient) Denom(ctx context.Context, in *QueryDenomRequest, opts ... return out, nil } +func (c *queryClient) EIP1559FeeParams(ctx context.Context, in *QueryEIP1559FeeParamsRequest, opts ...grpc.CallOption) (*QueryEIP1559FeeParamsResponse, error) { + out := new(QueryEIP1559FeeParamsResponse) + err := c.cc.Invoke(ctx, Query_EIP1559FeeParams_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 @@ -272,6 +284,8 @@ type QueryServer interface { Metadata(context.Context, *QueryMetadataRequest) (*QueryMetadataResponse, error) // Denom converts denom to metadata Denom(context.Context, *QueryDenomRequest) (*QueryDenomResponse, error) + // EIP1559FeeParams queries the EIP1559 fee params + EIP1559FeeParams(context.Context, *QueryEIP1559FeeParamsRequest) (*QueryEIP1559FeeParamsResponse, error) mustEmbedUnimplementedQueryServer() } @@ -327,6 +341,9 @@ func (UnimplementedQueryServer) Metadata(context.Context, *QueryMetadataRequest) func (UnimplementedQueryServer) Denom(context.Context, *QueryDenomRequest) (*QueryDenomResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Denom not implemented") } +func (UnimplementedQueryServer) EIP1559FeeParams(context.Context, *QueryEIP1559FeeParamsRequest) (*QueryEIP1559FeeParamsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method EIP1559FeeParams not implemented") +} func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {} // UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. @@ -628,6 +645,24 @@ func _Query_Denom_Handler(srv interface{}, ctx context.Context, dec func(interfa return interceptor(ctx, in, info, handler) } +func _Query_EIP1559FeeParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryEIP1559FeeParamsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).EIP1559FeeParams(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_EIP1559FeeParams_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).EIP1559FeeParams(ctx, req.(*QueryEIP1559FeeParamsRequest)) + } + 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) @@ -699,6 +734,10 @@ var Query_ServiceDesc = grpc.ServiceDesc{ MethodName: "Denom", Handler: _Query_Denom_Handler, }, + { + MethodName: "EIP1559FeeParams", + Handler: _Query_EIP1559FeeParams_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "initia/move/v1/query.proto", diff --git a/api/initia/move/v1/tx.pulsar.go b/api/initia/move/v1/tx.pulsar.go index 8d0c6d556..145cef86f 100644 --- a/api/initia/move/v1/tx.pulsar.go +++ b/api/initia/move/v1/tx.pulsar.go @@ -14055,6 +14055,861 @@ func (x *fastReflection_MsgUpdateParamsResponse) ProtoMethods() *protoiface.Meth } } +var ( + md_MsgUpdateEIP1559FeeParams protoreflect.MessageDescriptor + fd_MsgUpdateEIP1559FeeParams_authority protoreflect.FieldDescriptor + fd_MsgUpdateEIP1559FeeParams_eip1559_feeparams protoreflect.FieldDescriptor +) + +func init() { + file_initia_move_v1_tx_proto_init() + md_MsgUpdateEIP1559FeeParams = File_initia_move_v1_tx_proto.Messages().ByName("MsgUpdateEIP1559FeeParams") + fd_MsgUpdateEIP1559FeeParams_authority = md_MsgUpdateEIP1559FeeParams.Fields().ByName("authority") + fd_MsgUpdateEIP1559FeeParams_eip1559_feeparams = md_MsgUpdateEIP1559FeeParams.Fields().ByName("eip1559_feeparams") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdateEIP1559FeeParams)(nil) + +type fastReflection_MsgUpdateEIP1559FeeParams MsgUpdateEIP1559FeeParams + +func (x *MsgUpdateEIP1559FeeParams) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateEIP1559FeeParams)(x) +} + +func (x *MsgUpdateEIP1559FeeParams) slowProtoReflect() protoreflect.Message { + mi := &file_initia_move_v1_tx_proto_msgTypes[26] + 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_MsgUpdateEIP1559FeeParams_messageType fastReflection_MsgUpdateEIP1559FeeParams_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateEIP1559FeeParams_messageType{} + +type fastReflection_MsgUpdateEIP1559FeeParams_messageType struct{} + +func (x fastReflection_MsgUpdateEIP1559FeeParams_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateEIP1559FeeParams)(nil) +} +func (x fastReflection_MsgUpdateEIP1559FeeParams_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateEIP1559FeeParams) +} +func (x fastReflection_MsgUpdateEIP1559FeeParams_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateEIP1559FeeParams +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpdateEIP1559FeeParams) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateEIP1559FeeParams +} + +// 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_MsgUpdateEIP1559FeeParams) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateEIP1559FeeParams_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpdateEIP1559FeeParams) New() protoreflect.Message { + return new(fastReflection_MsgUpdateEIP1559FeeParams) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpdateEIP1559FeeParams) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateEIP1559FeeParams)(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_MsgUpdateEIP1559FeeParams) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Authority != "" { + value := protoreflect.ValueOfString(x.Authority) + if !f(fd_MsgUpdateEIP1559FeeParams_authority, value) { + return + } + } + if x.Eip1559Feeparams != nil { + value := protoreflect.ValueOfMessage(x.Eip1559Feeparams.ProtoReflect()) + if !f(fd_MsgUpdateEIP1559FeeParams_eip1559_feeparams, 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_MsgUpdateEIP1559FeeParams) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "initia.move.v1.MsgUpdateEIP1559FeeParams.authority": + return x.Authority != "" + case "initia.move.v1.MsgUpdateEIP1559FeeParams.eip1559_feeparams": + return x.Eip1559Feeparams != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.MsgUpdateEIP1559FeeParams")) + } + panic(fmt.Errorf("message initia.move.v1.MsgUpdateEIP1559FeeParams 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_MsgUpdateEIP1559FeeParams) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "initia.move.v1.MsgUpdateEIP1559FeeParams.authority": + x.Authority = "" + case "initia.move.v1.MsgUpdateEIP1559FeeParams.eip1559_feeparams": + x.Eip1559Feeparams = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.MsgUpdateEIP1559FeeParams")) + } + panic(fmt.Errorf("message initia.move.v1.MsgUpdateEIP1559FeeParams 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_MsgUpdateEIP1559FeeParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "initia.move.v1.MsgUpdateEIP1559FeeParams.authority": + value := x.Authority + return protoreflect.ValueOfString(value) + case "initia.move.v1.MsgUpdateEIP1559FeeParams.eip1559_feeparams": + value := x.Eip1559Feeparams + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.MsgUpdateEIP1559FeeParams")) + } + panic(fmt.Errorf("message initia.move.v1.MsgUpdateEIP1559FeeParams 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_MsgUpdateEIP1559FeeParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "initia.move.v1.MsgUpdateEIP1559FeeParams.authority": + x.Authority = value.Interface().(string) + case "initia.move.v1.MsgUpdateEIP1559FeeParams.eip1559_feeparams": + x.Eip1559Feeparams = value.Message().Interface().(*EIP1559FeeParams) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.MsgUpdateEIP1559FeeParams")) + } + panic(fmt.Errorf("message initia.move.v1.MsgUpdateEIP1559FeeParams 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_MsgUpdateEIP1559FeeParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "initia.move.v1.MsgUpdateEIP1559FeeParams.eip1559_feeparams": + if x.Eip1559Feeparams == nil { + x.Eip1559Feeparams = new(EIP1559FeeParams) + } + return protoreflect.ValueOfMessage(x.Eip1559Feeparams.ProtoReflect()) + case "initia.move.v1.MsgUpdateEIP1559FeeParams.authority": + panic(fmt.Errorf("field authority of message initia.move.v1.MsgUpdateEIP1559FeeParams is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.MsgUpdateEIP1559FeeParams")) + } + panic(fmt.Errorf("message initia.move.v1.MsgUpdateEIP1559FeeParams 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_MsgUpdateEIP1559FeeParams) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "initia.move.v1.MsgUpdateEIP1559FeeParams.authority": + return protoreflect.ValueOfString("") + case "initia.move.v1.MsgUpdateEIP1559FeeParams.eip1559_feeparams": + m := new(EIP1559FeeParams) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.MsgUpdateEIP1559FeeParams")) + } + panic(fmt.Errorf("message initia.move.v1.MsgUpdateEIP1559FeeParams 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_MsgUpdateEIP1559FeeParams) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in initia.move.v1.MsgUpdateEIP1559FeeParams", 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_MsgUpdateEIP1559FeeParams) 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_MsgUpdateEIP1559FeeParams) 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_MsgUpdateEIP1559FeeParams) 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_MsgUpdateEIP1559FeeParams) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpdateEIP1559FeeParams) + 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.Authority) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Eip1559Feeparams != nil { + l = options.Size(x.Eip1559Feeparams) + 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().(*MsgUpdateEIP1559FeeParams) + 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.Eip1559Feeparams != nil { + encoded, err := options.Marshal(x.Eip1559Feeparams) + 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] = 0x12 + } + if len(x.Authority) > 0 { + i -= len(x.Authority) + copy(dAtA[i:], x.Authority) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) + 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().(*MsgUpdateEIP1559FeeParams) + 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: MsgUpdateEIP1559FeeParams: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateEIP1559FeeParams: 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 Authority", 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.Authority = 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 Eip1559Feeparams", 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.Eip1559Feeparams == nil { + x.Eip1559Feeparams = &EIP1559FeeParams{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Eip1559Feeparams); 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_MsgUpdateEIP1559FeeParamsResponse protoreflect.MessageDescriptor +) + +func init() { + file_initia_move_v1_tx_proto_init() + md_MsgUpdateEIP1559FeeParamsResponse = File_initia_move_v1_tx_proto.Messages().ByName("MsgUpdateEIP1559FeeParamsResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdateEIP1559FeeParamsResponse)(nil) + +type fastReflection_MsgUpdateEIP1559FeeParamsResponse MsgUpdateEIP1559FeeParamsResponse + +func (x *MsgUpdateEIP1559FeeParamsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateEIP1559FeeParamsResponse)(x) +} + +func (x *MsgUpdateEIP1559FeeParamsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_initia_move_v1_tx_proto_msgTypes[27] + 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_MsgUpdateEIP1559FeeParamsResponse_messageType fastReflection_MsgUpdateEIP1559FeeParamsResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateEIP1559FeeParamsResponse_messageType{} + +type fastReflection_MsgUpdateEIP1559FeeParamsResponse_messageType struct{} + +func (x fastReflection_MsgUpdateEIP1559FeeParamsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateEIP1559FeeParamsResponse)(nil) +} +func (x fastReflection_MsgUpdateEIP1559FeeParamsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateEIP1559FeeParamsResponse) +} +func (x fastReflection_MsgUpdateEIP1559FeeParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateEIP1559FeeParamsResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpdateEIP1559FeeParamsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateEIP1559FeeParamsResponse +} + +// 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_MsgUpdateEIP1559FeeParamsResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateEIP1559FeeParamsResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpdateEIP1559FeeParamsResponse) New() protoreflect.Message { + return new(fastReflection_MsgUpdateEIP1559FeeParamsResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpdateEIP1559FeeParamsResponse) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateEIP1559FeeParamsResponse)(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_MsgUpdateEIP1559FeeParamsResponse) 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_MsgUpdateEIP1559FeeParamsResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.MsgUpdateEIP1559FeeParamsResponse")) + } + panic(fmt.Errorf("message initia.move.v1.MsgUpdateEIP1559FeeParamsResponse 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_MsgUpdateEIP1559FeeParamsResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.MsgUpdateEIP1559FeeParamsResponse")) + } + panic(fmt.Errorf("message initia.move.v1.MsgUpdateEIP1559FeeParamsResponse 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_MsgUpdateEIP1559FeeParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.MsgUpdateEIP1559FeeParamsResponse")) + } + panic(fmt.Errorf("message initia.move.v1.MsgUpdateEIP1559FeeParamsResponse 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_MsgUpdateEIP1559FeeParamsResponse) 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.move.v1.MsgUpdateEIP1559FeeParamsResponse")) + } + panic(fmt.Errorf("message initia.move.v1.MsgUpdateEIP1559FeeParamsResponse 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_MsgUpdateEIP1559FeeParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.MsgUpdateEIP1559FeeParamsResponse")) + } + panic(fmt.Errorf("message initia.move.v1.MsgUpdateEIP1559FeeParamsResponse 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_MsgUpdateEIP1559FeeParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.MsgUpdateEIP1559FeeParamsResponse")) + } + panic(fmt.Errorf("message initia.move.v1.MsgUpdateEIP1559FeeParamsResponse 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_MsgUpdateEIP1559FeeParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in initia.move.v1.MsgUpdateEIP1559FeeParamsResponse", 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_MsgUpdateEIP1559FeeParamsResponse) 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_MsgUpdateEIP1559FeeParamsResponse) 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_MsgUpdateEIP1559FeeParamsResponse) 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_MsgUpdateEIP1559FeeParamsResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpdateEIP1559FeeParamsResponse) + 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().(*MsgUpdateEIP1559FeeParamsResponse) + 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().(*MsgUpdateEIP1559FeeParamsResponse) + 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: MsgUpdateEIP1559FeeParamsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateEIP1559FeeParamsResponse: 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, + } +} + // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.0 @@ -15351,6 +16206,81 @@ func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) { return file_initia_move_v1_tx_proto_rawDescGZIP(), []int{25} } +// MsgUpdateEIP1559FeeParams is the Msg/UpdateEIP1559FeeParams request type. +type MsgUpdateEIP1559FeeParams struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // authority is the address that controls the module + // (defaults to x/gov unless overwritten). + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // eip1559_feeparams defines the x/move parameters to update. + Eip1559Feeparams *EIP1559FeeParams `protobuf:"bytes,2,opt,name=eip1559_feeparams,json=eip1559Feeparams,proto3" json:"eip1559_feeparams,omitempty"` +} + +func (x *MsgUpdateEIP1559FeeParams) Reset() { + *x = MsgUpdateEIP1559FeeParams{} + if protoimpl.UnsafeEnabled { + mi := &file_initia_move_v1_tx_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUpdateEIP1559FeeParams) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUpdateEIP1559FeeParams) ProtoMessage() {} + +// Deprecated: Use MsgUpdateEIP1559FeeParams.ProtoReflect.Descriptor instead. +func (*MsgUpdateEIP1559FeeParams) Descriptor() ([]byte, []int) { + return file_initia_move_v1_tx_proto_rawDescGZIP(), []int{26} +} + +func (x *MsgUpdateEIP1559FeeParams) GetAuthority() string { + if x != nil { + return x.Authority + } + return "" +} + +func (x *MsgUpdateEIP1559FeeParams) GetEip1559Feeparams() *EIP1559FeeParams { + if x != nil { + return x.Eip1559Feeparams + } + return nil +} + +// MsgUpdateEIP1559FeeParamsResponse defines the response structure for executing a +// MsgUpdateEIP1559FeeParams message. +type MsgUpdateEIP1559FeeParamsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgUpdateEIP1559FeeParamsResponse) Reset() { + *x = MsgUpdateEIP1559FeeParamsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_initia_move_v1_tx_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUpdateEIP1559FeeParamsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUpdateEIP1559FeeParamsResponse) ProtoMessage() {} + +// Deprecated: Use MsgUpdateEIP1559FeeParamsResponse.ProtoReflect.Descriptor instead. +func (*MsgUpdateEIP1559FeeParamsResponse) Descriptor() ([]byte, []int) { + return file_initia_move_v1_tx_proto_rawDescGZIP(), []int{27} +} + var File_initia_move_v1_tx_proto protoreflect.FileDescriptor var file_initia_move_v1_tx_proto_rawDesc = []byte{ @@ -15575,73 +16505,97 @@ var file_initia_move_v1_tx_proto_rawDesc = []byte{ 0x8a, 0xe7, 0xb0, 0x2a, 0x14, 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x19, 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xbe, 0x08, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x49, 0x0a, 0x07, - 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x12, 0x1a, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, - 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x50, 0x75, 0x62, 0x6c, - 0x69, 0x73, 0x68, 0x1a, 0x22, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x49, 0x0a, 0x07, 0x45, 0x78, 0x65, 0x63, 0x75, - 0x74, 0x65, 0x12, 0x1a, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, - 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x1a, 0x22, - 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x4d, 0x73, 0x67, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x55, 0x0a, 0x0b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x4a, 0x53, 0x4f, - 0x4e, 0x12, 0x1e, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, - 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x4a, 0x53, 0x4f, - 0x4e, 0x1a, 0x26, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, - 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x4a, 0x53, 0x4f, - 0x4e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x06, 0x53, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x12, 0x19, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x1a, 0x21, - 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x4d, 0x73, 0x67, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x52, 0x0a, 0x0a, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x4a, 0x53, 0x4f, 0x4e, 0x12, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xe0, 0x01, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x45, 0x49, 0x50, 0x31, 0x35, 0x35, 0x39, 0x46, 0x65, 0x65, 0x50, 0x61, 0x72, 0x61, + 0x6d, 0x73, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, + 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x58, 0x0a, 0x11, 0x65, 0x69, + 0x70, 0x31, 0x35, 0x35, 0x39, 0x5f, 0x66, 0x65, 0x65, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, + 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x49, 0x50, 0x31, 0x35, 0x35, 0x39, 0x46, 0x65, + 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, + 0x2a, 0x01, 0x52, 0x10, 0x65, 0x69, 0x70, 0x31, 0x35, 0x35, 0x39, 0x46, 0x65, 0x65, 0x70, 0x61, + 0x72, 0x61, 0x6d, 0x73, 0x3a, 0x31, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, + 0x72, 0x69, 0x74, 0x79, 0x8a, 0xe7, 0xb0, 0x2a, 0x1e, 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x4d, 0x73, + 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x45, 0x49, 0x50, 0x31, 0x35, 0x35, 0x39, 0x46, 0x65, + 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x23, 0x0a, 0x21, 0x4d, 0x73, 0x67, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x45, 0x49, 0x50, 0x31, 0x35, 0x35, 0x39, 0x46, 0x65, 0x65, 0x50, 0x61, + 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xb6, 0x09, 0x0a, + 0x03, 0x4d, 0x73, 0x67, 0x12, 0x49, 0x0a, 0x07, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x12, + 0x1a, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, + 0x2e, 0x4d, 0x73, 0x67, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x1a, 0x22, 0x2e, 0x69, 0x6e, + 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, + 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x49, 0x0a, 0x07, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x12, 0x1a, 0x2e, 0x69, 0x6e, 0x69, + 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x45, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x1a, 0x22, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, + 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x45, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x0b, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x65, 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x1e, 0x2e, 0x69, 0x6e, 0x69, 0x74, + 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x65, 0x4a, 0x53, 0x4f, 0x4e, 0x1a, 0x26, 0x2e, 0x69, 0x6e, 0x69, 0x74, + 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x65, 0x4a, 0x53, 0x4f, 0x4e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x46, 0x0a, 0x06, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x12, 0x19, 0x2e, 0x69, 0x6e, + 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, + 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x1a, 0x21, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, + 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x52, 0x0a, 0x0a, 0x53, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x1d, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, + 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x4a, 0x53, 0x4f, 0x4e, 0x1a, 0x25, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, + 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x4a, 0x53, 0x4f, 0x4e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x52, 0x0a, + 0x0a, 0x47, 0x6f, 0x76, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x12, 0x1d, 0x2e, 0x69, 0x6e, + 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, + 0x47, 0x6f, 0x76, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x1a, 0x25, 0x2e, 0x69, 0x6e, 0x69, + 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x47, + 0x6f, 0x76, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x52, 0x0a, 0x0a, 0x47, 0x6f, 0x76, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x12, 0x1d, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x4a, 0x53, 0x4f, 0x4e, 0x1a, 0x25, + 0x2e, 0x4d, 0x73, 0x67, 0x47, 0x6f, 0x76, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x1a, 0x25, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x4d, 0x73, 0x67, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x4a, 0x53, 0x4f, 0x4e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x52, 0x0a, 0x0a, 0x47, 0x6f, 0x76, 0x50, 0x75, 0x62, 0x6c, - 0x69, 0x73, 0x68, 0x12, 0x1d, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x47, 0x6f, 0x76, 0x50, 0x75, 0x62, 0x6c, 0x69, - 0x73, 0x68, 0x1a, 0x25, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, - 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x47, 0x6f, 0x76, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, - 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x52, 0x0a, 0x0a, 0x47, 0x6f, 0x76, - 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x12, 0x1d, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, + 0x4d, 0x73, 0x67, 0x47, 0x6f, 0x76, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5e, 0x0a, 0x0e, 0x47, 0x6f, 0x76, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x65, 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x21, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x47, 0x6f, 0x76, 0x45, - 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x1a, 0x25, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, - 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x47, 0x6f, 0x76, 0x45, 0x78, - 0x65, 0x63, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5e, 0x0a, - 0x0e, 0x47, 0x6f, 0x76, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x4a, 0x53, 0x4f, 0x4e, 0x12, - 0x21, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x4d, 0x73, 0x67, 0x47, 0x6f, 0x76, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x4a, 0x53, - 0x4f, 0x4e, 0x1a, 0x29, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, - 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x47, 0x6f, 0x76, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, - 0x65, 0x4a, 0x53, 0x4f, 0x4e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a, - 0x09, 0x47, 0x6f, 0x76, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x12, 0x1c, 0x2e, 0x69, 0x6e, 0x69, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x4a, 0x53, 0x4f, 0x4e, 0x1a, 0x29, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x47, - 0x6f, 0x76, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x1a, 0x24, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, - 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x47, 0x6f, 0x76, - 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5b, - 0x0a, 0x0d, 0x47, 0x6f, 0x76, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x4a, 0x53, 0x4f, 0x4e, 0x12, - 0x20, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x4d, 0x73, 0x67, 0x47, 0x6f, 0x76, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x4a, 0x53, 0x4f, - 0x4e, 0x1a, 0x28, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, - 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x47, 0x6f, 0x76, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x4a, - 0x53, 0x4f, 0x4e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a, 0x09, 0x57, - 0x68, 0x69, 0x74, 0x65, 0x6c, 0x69, 0x73, 0x74, 0x12, 0x1c, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, - 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x57, 0x68, 0x69, - 0x74, 0x65, 0x6c, 0x69, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, - 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x57, 0x68, 0x69, 0x74, 0x65, - 0x6c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x06, - 0x44, 0x65, 0x6c, 0x69, 0x73, 0x74, 0x12, 0x19, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, - 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, 0x69, 0x73, - 0x74, 0x1a, 0x21, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, - 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x58, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, - 0x72, 0x61, 0x6d, 0x73, 0x12, 0x1f, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, - 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, - 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x27, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, - 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x6f, 0x76, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x4a, 0x53, 0x4f, 0x4e, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a, 0x09, 0x47, 0x6f, 0x76, 0x53, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x12, 0x1c, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x47, 0x6f, 0x76, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x1a, 0x24, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x47, 0x6f, 0x76, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5b, 0x0a, 0x0d, 0x47, 0x6f, 0x76, 0x53, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x20, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, + 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x47, 0x6f, 0x76, 0x53, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x4a, 0x53, 0x4f, 0x4e, 0x1a, 0x28, 0x2e, 0x69, 0x6e, 0x69, 0x74, + 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x47, 0x6f, + 0x76, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x4a, 0x53, 0x4f, 0x4e, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a, 0x09, 0x57, 0x68, 0x69, 0x74, 0x65, 0x6c, 0x69, 0x73, 0x74, + 0x12, 0x1c, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x57, 0x68, 0x69, 0x74, 0x65, 0x6c, 0x69, 0x73, 0x74, 0x1a, 0x24, + 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x4d, 0x73, 0x67, 0x57, 0x68, 0x69, 0x74, 0x65, 0x6c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x69, 0x73, 0x74, 0x12, 0x19, + 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, 0x69, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x69, 0x6e, 0x69, 0x74, + 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x65, + 0x6c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x58, 0x0a, 0x0c, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x1f, 0x2e, 0x69, + 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, + 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x27, 0x2e, + 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, + 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x76, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x45, 0x49, 0x50, 0x31, 0x35, 0x35, 0x39, 0x46, 0x65, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, + 0x12, 0x29, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x45, 0x49, 0x50, 0x31, 0x35, + 0x35, 0x39, 0x46, 0x65, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x31, 0x2e, 0x69, 0x6e, + 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x45, 0x49, 0x50, 0x31, 0x35, 0x35, 0x39, 0x46, 0x65, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0xb4, 0x01, 0xc8, 0xe1, 0x1e, 0x00, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, @@ -15670,72 +16624,78 @@ func file_initia_move_v1_tx_proto_rawDescGZIP() []byte { return file_initia_move_v1_tx_proto_rawDescData } -var file_initia_move_v1_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 26) +var file_initia_move_v1_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 28) var file_initia_move_v1_tx_proto_goTypes = []interface{}{ - (*MsgPublish)(nil), // 0: initia.move.v1.MsgPublish - (*MsgPublishResponse)(nil), // 1: initia.move.v1.MsgPublishResponse - (*MsgExecute)(nil), // 2: initia.move.v1.MsgExecute - (*MsgExecuteResponse)(nil), // 3: initia.move.v1.MsgExecuteResponse - (*MsgExecuteJSON)(nil), // 4: initia.move.v1.MsgExecuteJSON - (*MsgExecuteJSONResponse)(nil), // 5: initia.move.v1.MsgExecuteJSONResponse - (*MsgScript)(nil), // 6: initia.move.v1.MsgScript - (*MsgScriptResponse)(nil), // 7: initia.move.v1.MsgScriptResponse - (*MsgScriptJSON)(nil), // 8: initia.move.v1.MsgScriptJSON - (*MsgScriptJSONResponse)(nil), // 9: initia.move.v1.MsgScriptJSONResponse - (*MsgGovPublish)(nil), // 10: initia.move.v1.MsgGovPublish - (*MsgGovPublishResponse)(nil), // 11: initia.move.v1.MsgGovPublishResponse - (*MsgGovExecute)(nil), // 12: initia.move.v1.MsgGovExecute - (*MsgGovExecuteResponse)(nil), // 13: initia.move.v1.MsgGovExecuteResponse - (*MsgGovExecuteJSON)(nil), // 14: initia.move.v1.MsgGovExecuteJSON - (*MsgGovExecuteJSONResponse)(nil), // 15: initia.move.v1.MsgGovExecuteJSONResponse - (*MsgGovScript)(nil), // 16: initia.move.v1.MsgGovScript - (*MsgGovScriptResponse)(nil), // 17: initia.move.v1.MsgGovScriptResponse - (*MsgGovScriptJSON)(nil), // 18: initia.move.v1.MsgGovScriptJSON - (*MsgGovScriptJSONResponse)(nil), // 19: initia.move.v1.MsgGovScriptJSONResponse - (*MsgWhitelist)(nil), // 20: initia.move.v1.MsgWhitelist - (*MsgWhitelistResponse)(nil), // 21: initia.move.v1.MsgWhitelistResponse - (*MsgDelist)(nil), // 22: initia.move.v1.MsgDelist - (*MsgDelistResponse)(nil), // 23: initia.move.v1.MsgDelistResponse - (*MsgUpdateParams)(nil), // 24: initia.move.v1.MsgUpdateParams - (*MsgUpdateParamsResponse)(nil), // 25: initia.move.v1.MsgUpdateParamsResponse - (UpgradePolicy)(0), // 26: initia.move.v1.UpgradePolicy - (*Params)(nil), // 27: initia.move.v1.Params + (*MsgPublish)(nil), // 0: initia.move.v1.MsgPublish + (*MsgPublishResponse)(nil), // 1: initia.move.v1.MsgPublishResponse + (*MsgExecute)(nil), // 2: initia.move.v1.MsgExecute + (*MsgExecuteResponse)(nil), // 3: initia.move.v1.MsgExecuteResponse + (*MsgExecuteJSON)(nil), // 4: initia.move.v1.MsgExecuteJSON + (*MsgExecuteJSONResponse)(nil), // 5: initia.move.v1.MsgExecuteJSONResponse + (*MsgScript)(nil), // 6: initia.move.v1.MsgScript + (*MsgScriptResponse)(nil), // 7: initia.move.v1.MsgScriptResponse + (*MsgScriptJSON)(nil), // 8: initia.move.v1.MsgScriptJSON + (*MsgScriptJSONResponse)(nil), // 9: initia.move.v1.MsgScriptJSONResponse + (*MsgGovPublish)(nil), // 10: initia.move.v1.MsgGovPublish + (*MsgGovPublishResponse)(nil), // 11: initia.move.v1.MsgGovPublishResponse + (*MsgGovExecute)(nil), // 12: initia.move.v1.MsgGovExecute + (*MsgGovExecuteResponse)(nil), // 13: initia.move.v1.MsgGovExecuteResponse + (*MsgGovExecuteJSON)(nil), // 14: initia.move.v1.MsgGovExecuteJSON + (*MsgGovExecuteJSONResponse)(nil), // 15: initia.move.v1.MsgGovExecuteJSONResponse + (*MsgGovScript)(nil), // 16: initia.move.v1.MsgGovScript + (*MsgGovScriptResponse)(nil), // 17: initia.move.v1.MsgGovScriptResponse + (*MsgGovScriptJSON)(nil), // 18: initia.move.v1.MsgGovScriptJSON + (*MsgGovScriptJSONResponse)(nil), // 19: initia.move.v1.MsgGovScriptJSONResponse + (*MsgWhitelist)(nil), // 20: initia.move.v1.MsgWhitelist + (*MsgWhitelistResponse)(nil), // 21: initia.move.v1.MsgWhitelistResponse + (*MsgDelist)(nil), // 22: initia.move.v1.MsgDelist + (*MsgDelistResponse)(nil), // 23: initia.move.v1.MsgDelistResponse + (*MsgUpdateParams)(nil), // 24: initia.move.v1.MsgUpdateParams + (*MsgUpdateParamsResponse)(nil), // 25: initia.move.v1.MsgUpdateParamsResponse + (*MsgUpdateEIP1559FeeParams)(nil), // 26: initia.move.v1.MsgUpdateEIP1559FeeParams + (*MsgUpdateEIP1559FeeParamsResponse)(nil), // 27: initia.move.v1.MsgUpdateEIP1559FeeParamsResponse + (UpgradePolicy)(0), // 28: initia.move.v1.UpgradePolicy + (*Params)(nil), // 29: initia.move.v1.Params + (*EIP1559FeeParams)(nil), // 30: initia.move.v1.EIP1559FeeParams } var file_initia_move_v1_tx_proto_depIdxs = []int32{ - 26, // 0: initia.move.v1.MsgPublish.upgrade_policy:type_name -> initia.move.v1.UpgradePolicy - 26, // 1: initia.move.v1.MsgGovPublish.upgrade_policy:type_name -> initia.move.v1.UpgradePolicy - 27, // 2: initia.move.v1.MsgUpdateParams.params:type_name -> initia.move.v1.Params - 0, // 3: initia.move.v1.Msg.Publish:input_type -> initia.move.v1.MsgPublish - 2, // 4: initia.move.v1.Msg.Execute:input_type -> initia.move.v1.MsgExecute - 4, // 5: initia.move.v1.Msg.ExecuteJSON:input_type -> initia.move.v1.MsgExecuteJSON - 6, // 6: initia.move.v1.Msg.Script:input_type -> initia.move.v1.MsgScript - 8, // 7: initia.move.v1.Msg.ScriptJSON:input_type -> initia.move.v1.MsgScriptJSON - 10, // 8: initia.move.v1.Msg.GovPublish:input_type -> initia.move.v1.MsgGovPublish - 12, // 9: initia.move.v1.Msg.GovExecute:input_type -> initia.move.v1.MsgGovExecute - 14, // 10: initia.move.v1.Msg.GovExecuteJSON:input_type -> initia.move.v1.MsgGovExecuteJSON - 16, // 11: initia.move.v1.Msg.GovScript:input_type -> initia.move.v1.MsgGovScript - 18, // 12: initia.move.v1.Msg.GovScriptJSON:input_type -> initia.move.v1.MsgGovScriptJSON - 20, // 13: initia.move.v1.Msg.Whitelist:input_type -> initia.move.v1.MsgWhitelist - 22, // 14: initia.move.v1.Msg.Delist:input_type -> initia.move.v1.MsgDelist - 24, // 15: initia.move.v1.Msg.UpdateParams:input_type -> initia.move.v1.MsgUpdateParams - 1, // 16: initia.move.v1.Msg.Publish:output_type -> initia.move.v1.MsgPublishResponse - 3, // 17: initia.move.v1.Msg.Execute:output_type -> initia.move.v1.MsgExecuteResponse - 5, // 18: initia.move.v1.Msg.ExecuteJSON:output_type -> initia.move.v1.MsgExecuteJSONResponse - 7, // 19: initia.move.v1.Msg.Script:output_type -> initia.move.v1.MsgScriptResponse - 9, // 20: initia.move.v1.Msg.ScriptJSON:output_type -> initia.move.v1.MsgScriptJSONResponse - 11, // 21: initia.move.v1.Msg.GovPublish:output_type -> initia.move.v1.MsgGovPublishResponse - 13, // 22: initia.move.v1.Msg.GovExecute:output_type -> initia.move.v1.MsgGovExecuteResponse - 15, // 23: initia.move.v1.Msg.GovExecuteJSON:output_type -> initia.move.v1.MsgGovExecuteJSONResponse - 17, // 24: initia.move.v1.Msg.GovScript:output_type -> initia.move.v1.MsgGovScriptResponse - 19, // 25: initia.move.v1.Msg.GovScriptJSON:output_type -> initia.move.v1.MsgGovScriptJSONResponse - 21, // 26: initia.move.v1.Msg.Whitelist:output_type -> initia.move.v1.MsgWhitelistResponse - 23, // 27: initia.move.v1.Msg.Delist:output_type -> initia.move.v1.MsgDelistResponse - 25, // 28: initia.move.v1.Msg.UpdateParams:output_type -> initia.move.v1.MsgUpdateParamsResponse - 16, // [16:29] is the sub-list for method output_type - 3, // [3:16] is the sub-list for method input_type - 3, // [3:3] is the sub-list for extension type_name - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name + 28, // 0: initia.move.v1.MsgPublish.upgrade_policy:type_name -> initia.move.v1.UpgradePolicy + 28, // 1: initia.move.v1.MsgGovPublish.upgrade_policy:type_name -> initia.move.v1.UpgradePolicy + 29, // 2: initia.move.v1.MsgUpdateParams.params:type_name -> initia.move.v1.Params + 30, // 3: initia.move.v1.MsgUpdateEIP1559FeeParams.eip1559_feeparams:type_name -> initia.move.v1.EIP1559FeeParams + 0, // 4: initia.move.v1.Msg.Publish:input_type -> initia.move.v1.MsgPublish + 2, // 5: initia.move.v1.Msg.Execute:input_type -> initia.move.v1.MsgExecute + 4, // 6: initia.move.v1.Msg.ExecuteJSON:input_type -> initia.move.v1.MsgExecuteJSON + 6, // 7: initia.move.v1.Msg.Script:input_type -> initia.move.v1.MsgScript + 8, // 8: initia.move.v1.Msg.ScriptJSON:input_type -> initia.move.v1.MsgScriptJSON + 10, // 9: initia.move.v1.Msg.GovPublish:input_type -> initia.move.v1.MsgGovPublish + 12, // 10: initia.move.v1.Msg.GovExecute:input_type -> initia.move.v1.MsgGovExecute + 14, // 11: initia.move.v1.Msg.GovExecuteJSON:input_type -> initia.move.v1.MsgGovExecuteJSON + 16, // 12: initia.move.v1.Msg.GovScript:input_type -> initia.move.v1.MsgGovScript + 18, // 13: initia.move.v1.Msg.GovScriptJSON:input_type -> initia.move.v1.MsgGovScriptJSON + 20, // 14: initia.move.v1.Msg.Whitelist:input_type -> initia.move.v1.MsgWhitelist + 22, // 15: initia.move.v1.Msg.Delist:input_type -> initia.move.v1.MsgDelist + 24, // 16: initia.move.v1.Msg.UpdateParams:input_type -> initia.move.v1.MsgUpdateParams + 26, // 17: initia.move.v1.Msg.UpdateEIP1559FeeParams:input_type -> initia.move.v1.MsgUpdateEIP1559FeeParams + 1, // 18: initia.move.v1.Msg.Publish:output_type -> initia.move.v1.MsgPublishResponse + 3, // 19: initia.move.v1.Msg.Execute:output_type -> initia.move.v1.MsgExecuteResponse + 5, // 20: initia.move.v1.Msg.ExecuteJSON:output_type -> initia.move.v1.MsgExecuteJSONResponse + 7, // 21: initia.move.v1.Msg.Script:output_type -> initia.move.v1.MsgScriptResponse + 9, // 22: initia.move.v1.Msg.ScriptJSON:output_type -> initia.move.v1.MsgScriptJSONResponse + 11, // 23: initia.move.v1.Msg.GovPublish:output_type -> initia.move.v1.MsgGovPublishResponse + 13, // 24: initia.move.v1.Msg.GovExecute:output_type -> initia.move.v1.MsgGovExecuteResponse + 15, // 25: initia.move.v1.Msg.GovExecuteJSON:output_type -> initia.move.v1.MsgGovExecuteJSONResponse + 17, // 26: initia.move.v1.Msg.GovScript:output_type -> initia.move.v1.MsgGovScriptResponse + 19, // 27: initia.move.v1.Msg.GovScriptJSON:output_type -> initia.move.v1.MsgGovScriptJSONResponse + 21, // 28: initia.move.v1.Msg.Whitelist:output_type -> initia.move.v1.MsgWhitelistResponse + 23, // 29: initia.move.v1.Msg.Delist:output_type -> initia.move.v1.MsgDelistResponse + 25, // 30: initia.move.v1.Msg.UpdateParams:output_type -> initia.move.v1.MsgUpdateParamsResponse + 27, // 31: initia.move.v1.Msg.UpdateEIP1559FeeParams:output_type -> initia.move.v1.MsgUpdateEIP1559FeeParamsResponse + 18, // [18:32] is the sub-list for method output_type + 4, // [4:18] is the sub-list for method input_type + 4, // [4:4] is the sub-list for extension type_name + 4, // [4:4] is the sub-list for extension extendee + 0, // [0:4] is the sub-list for field type_name } func init() { file_initia_move_v1_tx_proto_init() } @@ -16057,6 +17017,30 @@ func file_initia_move_v1_tx_proto_init() { return nil } } + file_initia_move_v1_tx_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUpdateEIP1559FeeParams); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_initia_move_v1_tx_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUpdateEIP1559FeeParamsResponse); 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{ @@ -16064,7 +17048,7 @@ func file_initia_move_v1_tx_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_initia_move_v1_tx_proto_rawDesc, NumEnums: 0, - NumMessages: 26, + NumMessages: 28, NumExtensions: 0, NumServices: 1, }, diff --git a/api/initia/move/v1/tx_grpc.pb.go b/api/initia/move/v1/tx_grpc.pb.go index b4202523a..78a7e115a 100644 --- a/api/initia/move/v1/tx_grpc.pb.go +++ b/api/initia/move/v1/tx_grpc.pb.go @@ -19,19 +19,20 @@ import ( const _ = grpc.SupportPackageIsVersion7 const ( - Msg_Publish_FullMethodName = "/initia.move.v1.Msg/Publish" - Msg_Execute_FullMethodName = "/initia.move.v1.Msg/Execute" - Msg_ExecuteJSON_FullMethodName = "/initia.move.v1.Msg/ExecuteJSON" - Msg_Script_FullMethodName = "/initia.move.v1.Msg/Script" - Msg_ScriptJSON_FullMethodName = "/initia.move.v1.Msg/ScriptJSON" - Msg_GovPublish_FullMethodName = "/initia.move.v1.Msg/GovPublish" - Msg_GovExecute_FullMethodName = "/initia.move.v1.Msg/GovExecute" - Msg_GovExecuteJSON_FullMethodName = "/initia.move.v1.Msg/GovExecuteJSON" - Msg_GovScript_FullMethodName = "/initia.move.v1.Msg/GovScript" - Msg_GovScriptJSON_FullMethodName = "/initia.move.v1.Msg/GovScriptJSON" - Msg_Whitelist_FullMethodName = "/initia.move.v1.Msg/Whitelist" - Msg_Delist_FullMethodName = "/initia.move.v1.Msg/Delist" - Msg_UpdateParams_FullMethodName = "/initia.move.v1.Msg/UpdateParams" + Msg_Publish_FullMethodName = "/initia.move.v1.Msg/Publish" + Msg_Execute_FullMethodName = "/initia.move.v1.Msg/Execute" + Msg_ExecuteJSON_FullMethodName = "/initia.move.v1.Msg/ExecuteJSON" + Msg_Script_FullMethodName = "/initia.move.v1.Msg/Script" + Msg_ScriptJSON_FullMethodName = "/initia.move.v1.Msg/ScriptJSON" + Msg_GovPublish_FullMethodName = "/initia.move.v1.Msg/GovPublish" + Msg_GovExecute_FullMethodName = "/initia.move.v1.Msg/GovExecute" + Msg_GovExecuteJSON_FullMethodName = "/initia.move.v1.Msg/GovExecuteJSON" + Msg_GovScript_FullMethodName = "/initia.move.v1.Msg/GovScript" + Msg_GovScriptJSON_FullMethodName = "/initia.move.v1.Msg/GovScriptJSON" + Msg_Whitelist_FullMethodName = "/initia.move.v1.Msg/Whitelist" + Msg_Delist_FullMethodName = "/initia.move.v1.Msg/Delist" + Msg_UpdateParams_FullMethodName = "/initia.move.v1.Msg/UpdateParams" + Msg_UpdateEIP1559FeeParams_FullMethodName = "/initia.move.v1.Msg/UpdateEIP1559FeeParams" ) // MsgClient is the client API for Msg service. @@ -72,6 +73,9 @@ type MsgClient interface { // UpdateParams defines an operation for updating the x/move module // parameters. UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) + // UpdateEIP1559FeeParams defines an operation for updating the x/move module + // eip1559 fee params. + UpdateEIP1559FeeParams(ctx context.Context, in *MsgUpdateEIP1559FeeParams, opts ...grpc.CallOption) (*MsgUpdateEIP1559FeeParamsResponse, error) } type msgClient struct { @@ -199,6 +203,15 @@ func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts return out, nil } +func (c *msgClient) UpdateEIP1559FeeParams(ctx context.Context, in *MsgUpdateEIP1559FeeParams, opts ...grpc.CallOption) (*MsgUpdateEIP1559FeeParamsResponse, error) { + out := new(MsgUpdateEIP1559FeeParamsResponse) + err := c.cc.Invoke(ctx, Msg_UpdateEIP1559FeeParams_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // MsgServer is the server API for Msg service. // All implementations must embed UnimplementedMsgServer // for forward compatibility @@ -237,6 +250,9 @@ type MsgServer interface { // UpdateParams defines an operation for updating the x/move module // parameters. UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) + // UpdateEIP1559FeeParams defines an operation for updating the x/move module + // eip1559 fee params. + UpdateEIP1559FeeParams(context.Context, *MsgUpdateEIP1559FeeParams) (*MsgUpdateEIP1559FeeParamsResponse, error) mustEmbedUnimplementedMsgServer() } @@ -283,6 +299,9 @@ func (UnimplementedMsgServer) Delist(context.Context, *MsgDelist) (*MsgDelistRes func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented") } +func (UnimplementedMsgServer) UpdateEIP1559FeeParams(context.Context, *MsgUpdateEIP1559FeeParams) (*MsgUpdateEIP1559FeeParamsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateEIP1559FeeParams not implemented") +} func (UnimplementedMsgServer) mustEmbedUnimplementedMsgServer() {} // UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. @@ -530,6 +549,24 @@ func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(in return interceptor(ctx, in, info, handler) } +func _Msg_UpdateEIP1559FeeParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateEIP1559FeeParams) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpdateEIP1559FeeParams(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_UpdateEIP1559FeeParams_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateEIP1559FeeParams(ctx, req.(*MsgUpdateEIP1559FeeParams)) + } + return interceptor(ctx, in, info, handler) +} + // Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) @@ -589,6 +626,10 @@ var Msg_ServiceDesc = grpc.ServiceDesc{ MethodName: "UpdateParams", Handler: _Msg_UpdateParams_Handler, }, + { + MethodName: "UpdateEIP1559FeeParams", + Handler: _Msg_UpdateEIP1559FeeParams_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "initia/move/v1/tx.proto", diff --git a/api/initia/move/v1/types.pulsar.go b/api/initia/move/v1/types.pulsar.go index 266fc8c68..9357cb13f 100644 --- a/api/initia/move/v1/types.pulsar.go +++ b/api/initia/move/v1/types.pulsar.go @@ -5892,6 +5892,618 @@ func (x *fastReflection_ExecuteAuthorizationItem) ProtoMethods() *protoiface.Met } } +var ( + md_EIP1559FeeParams protoreflect.MessageDescriptor + fd_EIP1559FeeParams_base_fee protoreflect.FieldDescriptor + fd_EIP1559FeeParams_min_base_fee protoreflect.FieldDescriptor + fd_EIP1559FeeParams_max_base_fee protoreflect.FieldDescriptor + fd_EIP1559FeeParams_target_gas protoreflect.FieldDescriptor + fd_EIP1559FeeParams_max_change_rate protoreflect.FieldDescriptor +) + +func init() { + file_initia_move_v1_types_proto_init() + md_EIP1559FeeParams = File_initia_move_v1_types_proto.Messages().ByName("EIP1559FeeParams") + fd_EIP1559FeeParams_base_fee = md_EIP1559FeeParams.Fields().ByName("base_fee") + fd_EIP1559FeeParams_min_base_fee = md_EIP1559FeeParams.Fields().ByName("min_base_fee") + fd_EIP1559FeeParams_max_base_fee = md_EIP1559FeeParams.Fields().ByName("max_base_fee") + fd_EIP1559FeeParams_target_gas = md_EIP1559FeeParams.Fields().ByName("target_gas") + fd_EIP1559FeeParams_max_change_rate = md_EIP1559FeeParams.Fields().ByName("max_change_rate") +} + +var _ protoreflect.Message = (*fastReflection_EIP1559FeeParams)(nil) + +type fastReflection_EIP1559FeeParams EIP1559FeeParams + +func (x *EIP1559FeeParams) ProtoReflect() protoreflect.Message { + return (*fastReflection_EIP1559FeeParams)(x) +} + +func (x *EIP1559FeeParams) slowProtoReflect() protoreflect.Message { + mi := &file_initia_move_v1_types_proto_msgTypes[10] + 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_EIP1559FeeParams_messageType fastReflection_EIP1559FeeParams_messageType +var _ protoreflect.MessageType = fastReflection_EIP1559FeeParams_messageType{} + +type fastReflection_EIP1559FeeParams_messageType struct{} + +func (x fastReflection_EIP1559FeeParams_messageType) Zero() protoreflect.Message { + return (*fastReflection_EIP1559FeeParams)(nil) +} +func (x fastReflection_EIP1559FeeParams_messageType) New() protoreflect.Message { + return new(fastReflection_EIP1559FeeParams) +} +func (x fastReflection_EIP1559FeeParams_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_EIP1559FeeParams +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_EIP1559FeeParams) Descriptor() protoreflect.MessageDescriptor { + return md_EIP1559FeeParams +} + +// 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_EIP1559FeeParams) Type() protoreflect.MessageType { + return _fastReflection_EIP1559FeeParams_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_EIP1559FeeParams) New() protoreflect.Message { + return new(fastReflection_EIP1559FeeParams) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_EIP1559FeeParams) Interface() protoreflect.ProtoMessage { + return (*EIP1559FeeParams)(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_EIP1559FeeParams) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.BaseFee != int64(0) { + value := protoreflect.ValueOfInt64(x.BaseFee) + if !f(fd_EIP1559FeeParams_base_fee, value) { + return + } + } + if x.MinBaseFee != int64(0) { + value := protoreflect.ValueOfInt64(x.MinBaseFee) + if !f(fd_EIP1559FeeParams_min_base_fee, value) { + return + } + } + if x.MaxBaseFee != int64(0) { + value := protoreflect.ValueOfInt64(x.MaxBaseFee) + if !f(fd_EIP1559FeeParams_max_base_fee, value) { + return + } + } + if x.TargetGas != int64(0) { + value := protoreflect.ValueOfInt64(x.TargetGas) + if !f(fd_EIP1559FeeParams_target_gas, value) { + return + } + } + if x.MaxChangeRate != "" { + value := protoreflect.ValueOfString(x.MaxChangeRate) + if !f(fd_EIP1559FeeParams_max_change_rate, 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_EIP1559FeeParams) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "initia.move.v1.EIP1559FeeParams.base_fee": + return x.BaseFee != int64(0) + case "initia.move.v1.EIP1559FeeParams.min_base_fee": + return x.MinBaseFee != int64(0) + case "initia.move.v1.EIP1559FeeParams.max_base_fee": + return x.MaxBaseFee != int64(0) + case "initia.move.v1.EIP1559FeeParams.target_gas": + return x.TargetGas != int64(0) + case "initia.move.v1.EIP1559FeeParams.max_change_rate": + return x.MaxChangeRate != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.EIP1559FeeParams")) + } + panic(fmt.Errorf("message initia.move.v1.EIP1559FeeParams 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_EIP1559FeeParams) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "initia.move.v1.EIP1559FeeParams.base_fee": + x.BaseFee = int64(0) + case "initia.move.v1.EIP1559FeeParams.min_base_fee": + x.MinBaseFee = int64(0) + case "initia.move.v1.EIP1559FeeParams.max_base_fee": + x.MaxBaseFee = int64(0) + case "initia.move.v1.EIP1559FeeParams.target_gas": + x.TargetGas = int64(0) + case "initia.move.v1.EIP1559FeeParams.max_change_rate": + x.MaxChangeRate = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.EIP1559FeeParams")) + } + panic(fmt.Errorf("message initia.move.v1.EIP1559FeeParams 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_EIP1559FeeParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "initia.move.v1.EIP1559FeeParams.base_fee": + value := x.BaseFee + return protoreflect.ValueOfInt64(value) + case "initia.move.v1.EIP1559FeeParams.min_base_fee": + value := x.MinBaseFee + return protoreflect.ValueOfInt64(value) + case "initia.move.v1.EIP1559FeeParams.max_base_fee": + value := x.MaxBaseFee + return protoreflect.ValueOfInt64(value) + case "initia.move.v1.EIP1559FeeParams.target_gas": + value := x.TargetGas + return protoreflect.ValueOfInt64(value) + case "initia.move.v1.EIP1559FeeParams.max_change_rate": + value := x.MaxChangeRate + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.EIP1559FeeParams")) + } + panic(fmt.Errorf("message initia.move.v1.EIP1559FeeParams 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_EIP1559FeeParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "initia.move.v1.EIP1559FeeParams.base_fee": + x.BaseFee = value.Int() + case "initia.move.v1.EIP1559FeeParams.min_base_fee": + x.MinBaseFee = value.Int() + case "initia.move.v1.EIP1559FeeParams.max_base_fee": + x.MaxBaseFee = value.Int() + case "initia.move.v1.EIP1559FeeParams.target_gas": + x.TargetGas = value.Int() + case "initia.move.v1.EIP1559FeeParams.max_change_rate": + x.MaxChangeRate = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.EIP1559FeeParams")) + } + panic(fmt.Errorf("message initia.move.v1.EIP1559FeeParams 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_EIP1559FeeParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "initia.move.v1.EIP1559FeeParams.base_fee": + panic(fmt.Errorf("field base_fee of message initia.move.v1.EIP1559FeeParams is not mutable")) + case "initia.move.v1.EIP1559FeeParams.min_base_fee": + panic(fmt.Errorf("field min_base_fee of message initia.move.v1.EIP1559FeeParams is not mutable")) + case "initia.move.v1.EIP1559FeeParams.max_base_fee": + panic(fmt.Errorf("field max_base_fee of message initia.move.v1.EIP1559FeeParams is not mutable")) + case "initia.move.v1.EIP1559FeeParams.target_gas": + panic(fmt.Errorf("field target_gas of message initia.move.v1.EIP1559FeeParams is not mutable")) + case "initia.move.v1.EIP1559FeeParams.max_change_rate": + panic(fmt.Errorf("field max_change_rate of message initia.move.v1.EIP1559FeeParams is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.EIP1559FeeParams")) + } + panic(fmt.Errorf("message initia.move.v1.EIP1559FeeParams 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_EIP1559FeeParams) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "initia.move.v1.EIP1559FeeParams.base_fee": + return protoreflect.ValueOfInt64(int64(0)) + case "initia.move.v1.EIP1559FeeParams.min_base_fee": + return protoreflect.ValueOfInt64(int64(0)) + case "initia.move.v1.EIP1559FeeParams.max_base_fee": + return protoreflect.ValueOfInt64(int64(0)) + case "initia.move.v1.EIP1559FeeParams.target_gas": + return protoreflect.ValueOfInt64(int64(0)) + case "initia.move.v1.EIP1559FeeParams.max_change_rate": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.EIP1559FeeParams")) + } + panic(fmt.Errorf("message initia.move.v1.EIP1559FeeParams 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_EIP1559FeeParams) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in initia.move.v1.EIP1559FeeParams", 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_EIP1559FeeParams) 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_EIP1559FeeParams) 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_EIP1559FeeParams) 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_EIP1559FeeParams) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*EIP1559FeeParams) + 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.BaseFee != 0 { + n += 1 + runtime.Sov(uint64(x.BaseFee)) + } + if x.MinBaseFee != 0 { + n += 1 + runtime.Sov(uint64(x.MinBaseFee)) + } + if x.MaxBaseFee != 0 { + n += 1 + runtime.Sov(uint64(x.MaxBaseFee)) + } + if x.TargetGas != 0 { + n += 1 + runtime.Sov(uint64(x.TargetGas)) + } + l = len(x.MaxChangeRate) + 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().(*EIP1559FeeParams) + 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.MaxChangeRate) > 0 { + i -= len(x.MaxChangeRate) + copy(dAtA[i:], x.MaxChangeRate) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MaxChangeRate))) + i-- + dAtA[i] = 0x2a + } + if x.TargetGas != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TargetGas)) + i-- + dAtA[i] = 0x20 + } + if x.MaxBaseFee != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.MaxBaseFee)) + i-- + dAtA[i] = 0x18 + } + if x.MinBaseFee != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.MinBaseFee)) + i-- + dAtA[i] = 0x10 + } + if x.BaseFee != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BaseFee)) + i-- + dAtA[i] = 0x8 + } + 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().(*EIP1559FeeParams) + 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: EIP1559FeeParams: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EIP1559FeeParams: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BaseFee", wireType) + } + x.BaseFee = 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.BaseFee |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MinBaseFee", wireType) + } + x.MinBaseFee = 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.MinBaseFee |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MaxBaseFee", wireType) + } + x.MaxBaseFee = 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.MaxBaseFee |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TargetGas", wireType) + } + x.TargetGas = 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.TargetGas |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MaxChangeRate", 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.MaxChangeRate = 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, + } +} + // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.0 @@ -6529,6 +7141,73 @@ func (x *ExecuteAuthorizationItem) GetFunctionNames() []string { return nil } +type EIP1559FeeParams struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BaseFee int64 `protobuf:"varint,1,opt,name=base_fee,json=baseFee,proto3" json:"base_fee,omitempty"` + MinBaseFee int64 `protobuf:"varint,2,opt,name=min_base_fee,json=minBaseFee,proto3" json:"min_base_fee,omitempty"` + MaxBaseFee int64 `protobuf:"varint,3,opt,name=max_base_fee,json=maxBaseFee,proto3" json:"max_base_fee,omitempty"` + TargetGas int64 `protobuf:"varint,4,opt,name=target_gas,json=targetGas,proto3" json:"target_gas,omitempty"` + MaxChangeRate string `protobuf:"bytes,5,opt,name=max_change_rate,json=maxChangeRate,proto3" json:"max_change_rate,omitempty"` +} + +func (x *EIP1559FeeParams) Reset() { + *x = EIP1559FeeParams{} + if protoimpl.UnsafeEnabled { + mi := &file_initia_move_v1_types_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EIP1559FeeParams) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EIP1559FeeParams) ProtoMessage() {} + +// Deprecated: Use EIP1559FeeParams.ProtoReflect.Descriptor instead. +func (*EIP1559FeeParams) Descriptor() ([]byte, []int) { + return file_initia_move_v1_types_proto_rawDescGZIP(), []int{10} +} + +func (x *EIP1559FeeParams) GetBaseFee() int64 { + if x != nil { + return x.BaseFee + } + return 0 +} + +func (x *EIP1559FeeParams) GetMinBaseFee() int64 { + if x != nil { + return x.MinBaseFee + } + return 0 +} + +func (x *EIP1559FeeParams) GetMaxBaseFee() int64 { + if x != nil { + return x.MaxBaseFee + } + return 0 +} + +func (x *EIP1559FeeParams) GetTargetGas() int64 { + if x != nil { + return x.TargetGas + } + return 0 +} + +func (x *EIP1559FeeParams) GetMaxChangeRate() string { + if x != nil { + return x.MaxChangeRate + } + return "" +} + var File_initia_move_v1_types_proto protoreflect.FileDescriptor var file_initia_move_v1_types_proto_rawDesc = []byte{ @@ -6649,23 +7328,39 @@ var file_initia_move_v1_types_proto_rawDesc = []byte{ 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, + 0x6d, 0x65, 0x73, 0x22, 0xfc, 0x01, 0x0a, 0x10, 0x45, 0x49, 0x50, 0x31, 0x35, 0x35, 0x39, 0x46, + 0x65, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x62, 0x61, 0x73, 0x65, + 0x5f, 0x66, 0x65, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x62, 0x61, 0x73, 0x65, + 0x46, 0x65, 0x65, 0x12, 0x20, 0x0a, 0x0c, 0x6d, 0x69, 0x6e, 0x5f, 0x62, 0x61, 0x73, 0x65, 0x5f, + 0x66, 0x65, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6d, 0x69, 0x6e, 0x42, 0x61, + 0x73, 0x65, 0x46, 0x65, 0x65, 0x12, 0x20, 0x0a, 0x0c, 0x6d, 0x61, 0x78, 0x5f, 0x62, 0x61, 0x73, + 0x65, 0x5f, 0x66, 0x65, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6d, 0x61, 0x78, + 0x42, 0x61, 0x73, 0x65, 0x46, 0x65, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, + 0x74, 0x5f, 0x67, 0x61, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x61, 0x72, + 0x67, 0x65, 0x74, 0x47, 0x61, 0x73, 0x12, 0x6a, 0x0a, 0x0f, 0x6d, 0x61, 0x78, 0x5f, 0x63, 0x68, + 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x42, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, + 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, + 0x79, 0x44, 0x65, 0x63, 0xf2, 0xde, 0x1f, 0x16, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6d, 0x61, + 0x78, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x22, 0xa8, 0xe7, + 0xb0, 0x2a, 0x01, 0x52, 0x0d, 0x6d, 0x61, 0x78, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x61, + 0x74, 0x65, 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 ( @@ -6681,7 +7376,7 @@ 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, 10) +var file_initia_move_v1_types_proto_msgTypes = make([]protoimpl.MessageInfo, 11) var file_initia_move_v1_types_proto_goTypes = []interface{}{ (UpgradePolicy)(0), // 0: initia.move.v1.UpgradePolicy (*Params)(nil), // 1: initia.move.v1.Params @@ -6694,6 +7389,7 @@ var file_initia_move_v1_types_proto_goTypes = []interface{}{ (*UpgradePolicyProto)(nil), // 8: initia.move.v1.UpgradePolicyProto (*DexPair)(nil), // 9: initia.move.v1.DexPair (*ExecuteAuthorizationItem)(nil), // 10: initia.move.v1.ExecuteAuthorizationItem + (*EIP1559FeeParams)(nil), // 11: initia.move.v1.EIP1559FeeParams } var file_initia_move_v1_types_proto_depIdxs = []int32{ 0, // 0: initia.move.v1.Module.upgrade_policy:type_name -> initia.move.v1.UpgradePolicy @@ -6831,6 +7527,18 @@ func file_initia_move_v1_types_proto_init() { return nil } } + file_initia_move_v1_types_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EIP1559FeeParams); 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{ @@ -6838,7 +7546,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: 10, + NumMessages: 11, NumExtensions: 0, NumServices: 0, }, diff --git a/api/initia/mstaking/v1/query.pulsar.go b/api/initia/mstaking/v1/query.pulsar.go index 811ad247e..6d43acf0e 100644 --- a/api/initia/mstaking/v1/query.pulsar.go +++ b/api/initia/mstaking/v1/query.pulsar.go @@ -3,6 +3,7 @@ package mstakingv1 import ( v1beta1 "cosmossdk.io/api/cosmos/base/query/v1beta1" + v1beta11 "cosmossdk.io/api/cosmos/base/v1beta1" fmt "fmt" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" @@ -11259,6 +11260,920 @@ func (x *fastReflection_QueryDelegatorValidatorResponse) ProtoMethods() *protoif } } +var ( + md_QueryDelegatorTotalDelegationBalanceRequest protoreflect.MessageDescriptor + fd_QueryDelegatorTotalDelegationBalanceRequest_delegator_addr protoreflect.FieldDescriptor +) + +func init() { + file_initia_mstaking_v1_query_proto_init() + md_QueryDelegatorTotalDelegationBalanceRequest = File_initia_mstaking_v1_query_proto.Messages().ByName("QueryDelegatorTotalDelegationBalanceRequest") + fd_QueryDelegatorTotalDelegationBalanceRequest_delegator_addr = md_QueryDelegatorTotalDelegationBalanceRequest.Fields().ByName("delegator_addr") +} + +var _ protoreflect.Message = (*fastReflection_QueryDelegatorTotalDelegationBalanceRequest)(nil) + +type fastReflection_QueryDelegatorTotalDelegationBalanceRequest QueryDelegatorTotalDelegationBalanceRequest + +func (x *QueryDelegatorTotalDelegationBalanceRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryDelegatorTotalDelegationBalanceRequest)(x) +} + +func (x *QueryDelegatorTotalDelegationBalanceRequest) slowProtoReflect() protoreflect.Message { + mi := &file_initia_mstaking_v1_query_proto_msgTypes[22] + 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_QueryDelegatorTotalDelegationBalanceRequest_messageType fastReflection_QueryDelegatorTotalDelegationBalanceRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryDelegatorTotalDelegationBalanceRequest_messageType{} + +type fastReflection_QueryDelegatorTotalDelegationBalanceRequest_messageType struct{} + +func (x fastReflection_QueryDelegatorTotalDelegationBalanceRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryDelegatorTotalDelegationBalanceRequest)(nil) +} +func (x fastReflection_QueryDelegatorTotalDelegationBalanceRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryDelegatorTotalDelegationBalanceRequest) +} +func (x fastReflection_QueryDelegatorTotalDelegationBalanceRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDelegatorTotalDelegationBalanceRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryDelegatorTotalDelegationBalanceRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDelegatorTotalDelegationBalanceRequest +} + +// 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_QueryDelegatorTotalDelegationBalanceRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryDelegatorTotalDelegationBalanceRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryDelegatorTotalDelegationBalanceRequest) New() protoreflect.Message { + return new(fastReflection_QueryDelegatorTotalDelegationBalanceRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryDelegatorTotalDelegationBalanceRequest) Interface() protoreflect.ProtoMessage { + return (*QueryDelegatorTotalDelegationBalanceRequest)(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_QueryDelegatorTotalDelegationBalanceRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.DelegatorAddr != "" { + value := protoreflect.ValueOfString(x.DelegatorAddr) + if !f(fd_QueryDelegatorTotalDelegationBalanceRequest_delegator_addr, 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_QueryDelegatorTotalDelegationBalanceRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "initia.mstaking.v1.QueryDelegatorTotalDelegationBalanceRequest.delegator_addr": + return x.DelegatorAddr != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.mstaking.v1.QueryDelegatorTotalDelegationBalanceRequest")) + } + panic(fmt.Errorf("message initia.mstaking.v1.QueryDelegatorTotalDelegationBalanceRequest 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_QueryDelegatorTotalDelegationBalanceRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "initia.mstaking.v1.QueryDelegatorTotalDelegationBalanceRequest.delegator_addr": + x.DelegatorAddr = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.mstaking.v1.QueryDelegatorTotalDelegationBalanceRequest")) + } + panic(fmt.Errorf("message initia.mstaking.v1.QueryDelegatorTotalDelegationBalanceRequest 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_QueryDelegatorTotalDelegationBalanceRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "initia.mstaking.v1.QueryDelegatorTotalDelegationBalanceRequest.delegator_addr": + value := x.DelegatorAddr + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.mstaking.v1.QueryDelegatorTotalDelegationBalanceRequest")) + } + panic(fmt.Errorf("message initia.mstaking.v1.QueryDelegatorTotalDelegationBalanceRequest 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_QueryDelegatorTotalDelegationBalanceRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "initia.mstaking.v1.QueryDelegatorTotalDelegationBalanceRequest.delegator_addr": + x.DelegatorAddr = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.mstaking.v1.QueryDelegatorTotalDelegationBalanceRequest")) + } + panic(fmt.Errorf("message initia.mstaking.v1.QueryDelegatorTotalDelegationBalanceRequest 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_QueryDelegatorTotalDelegationBalanceRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "initia.mstaking.v1.QueryDelegatorTotalDelegationBalanceRequest.delegator_addr": + panic(fmt.Errorf("field delegator_addr of message initia.mstaking.v1.QueryDelegatorTotalDelegationBalanceRequest is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.mstaking.v1.QueryDelegatorTotalDelegationBalanceRequest")) + } + panic(fmt.Errorf("message initia.mstaking.v1.QueryDelegatorTotalDelegationBalanceRequest 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_QueryDelegatorTotalDelegationBalanceRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "initia.mstaking.v1.QueryDelegatorTotalDelegationBalanceRequest.delegator_addr": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.mstaking.v1.QueryDelegatorTotalDelegationBalanceRequest")) + } + panic(fmt.Errorf("message initia.mstaking.v1.QueryDelegatorTotalDelegationBalanceRequest 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_QueryDelegatorTotalDelegationBalanceRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in initia.mstaking.v1.QueryDelegatorTotalDelegationBalanceRequest", 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_QueryDelegatorTotalDelegationBalanceRequest) 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_QueryDelegatorTotalDelegationBalanceRequest) 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_QueryDelegatorTotalDelegationBalanceRequest) 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_QueryDelegatorTotalDelegationBalanceRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryDelegatorTotalDelegationBalanceRequest) + 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.DelegatorAddr) + 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().(*QueryDelegatorTotalDelegationBalanceRequest) + 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.DelegatorAddr) > 0 { + i -= len(x.DelegatorAddr) + copy(dAtA[i:], x.DelegatorAddr) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DelegatorAddr))) + 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().(*QueryDelegatorTotalDelegationBalanceRequest) + 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: QueryDelegatorTotalDelegationBalanceRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegatorTotalDelegationBalanceRequest: 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 DelegatorAddr", 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.DelegatorAddr = 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 _ protoreflect.List = (*_QueryDelegatorTotalDelegationBalanceResponse_1_list)(nil) + +type _QueryDelegatorTotalDelegationBalanceResponse_1_list struct { + list *[]*v1beta11.Coin +} + +func (x *_QueryDelegatorTotalDelegationBalanceResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryDelegatorTotalDelegationBalanceResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryDelegatorTotalDelegationBalanceResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*v1beta11.Coin) + (*x.list)[i] = concreteValue +} + +func (x *_QueryDelegatorTotalDelegationBalanceResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*v1beta11.Coin) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryDelegatorTotalDelegationBalanceResponse_1_list) AppendMutable() protoreflect.Value { + v := new(v1beta11.Coin) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryDelegatorTotalDelegationBalanceResponse_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryDelegatorTotalDelegationBalanceResponse_1_list) NewElement() protoreflect.Value { + v := new(v1beta11.Coin) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryDelegatorTotalDelegationBalanceResponse_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_QueryDelegatorTotalDelegationBalanceResponse protoreflect.MessageDescriptor + fd_QueryDelegatorTotalDelegationBalanceResponse_balance protoreflect.FieldDescriptor +) + +func init() { + file_initia_mstaking_v1_query_proto_init() + md_QueryDelegatorTotalDelegationBalanceResponse = File_initia_mstaking_v1_query_proto.Messages().ByName("QueryDelegatorTotalDelegationBalanceResponse") + fd_QueryDelegatorTotalDelegationBalanceResponse_balance = md_QueryDelegatorTotalDelegationBalanceResponse.Fields().ByName("balance") +} + +var _ protoreflect.Message = (*fastReflection_QueryDelegatorTotalDelegationBalanceResponse)(nil) + +type fastReflection_QueryDelegatorTotalDelegationBalanceResponse QueryDelegatorTotalDelegationBalanceResponse + +func (x *QueryDelegatorTotalDelegationBalanceResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryDelegatorTotalDelegationBalanceResponse)(x) +} + +func (x *QueryDelegatorTotalDelegationBalanceResponse) slowProtoReflect() protoreflect.Message { + mi := &file_initia_mstaking_v1_query_proto_msgTypes[23] + 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_QueryDelegatorTotalDelegationBalanceResponse_messageType fastReflection_QueryDelegatorTotalDelegationBalanceResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryDelegatorTotalDelegationBalanceResponse_messageType{} + +type fastReflection_QueryDelegatorTotalDelegationBalanceResponse_messageType struct{} + +func (x fastReflection_QueryDelegatorTotalDelegationBalanceResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryDelegatorTotalDelegationBalanceResponse)(nil) +} +func (x fastReflection_QueryDelegatorTotalDelegationBalanceResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryDelegatorTotalDelegationBalanceResponse) +} +func (x fastReflection_QueryDelegatorTotalDelegationBalanceResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDelegatorTotalDelegationBalanceResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryDelegatorTotalDelegationBalanceResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDelegatorTotalDelegationBalanceResponse +} + +// 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_QueryDelegatorTotalDelegationBalanceResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryDelegatorTotalDelegationBalanceResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryDelegatorTotalDelegationBalanceResponse) New() protoreflect.Message { + return new(fastReflection_QueryDelegatorTotalDelegationBalanceResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryDelegatorTotalDelegationBalanceResponse) Interface() protoreflect.ProtoMessage { + return (*QueryDelegatorTotalDelegationBalanceResponse)(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_QueryDelegatorTotalDelegationBalanceResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Balance) != 0 { + value := protoreflect.ValueOfList(&_QueryDelegatorTotalDelegationBalanceResponse_1_list{list: &x.Balance}) + if !f(fd_QueryDelegatorTotalDelegationBalanceResponse_balance, 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_QueryDelegatorTotalDelegationBalanceResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "initia.mstaking.v1.QueryDelegatorTotalDelegationBalanceResponse.balance": + return len(x.Balance) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.mstaking.v1.QueryDelegatorTotalDelegationBalanceResponse")) + } + panic(fmt.Errorf("message initia.mstaking.v1.QueryDelegatorTotalDelegationBalanceResponse 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_QueryDelegatorTotalDelegationBalanceResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "initia.mstaking.v1.QueryDelegatorTotalDelegationBalanceResponse.balance": + x.Balance = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.mstaking.v1.QueryDelegatorTotalDelegationBalanceResponse")) + } + panic(fmt.Errorf("message initia.mstaking.v1.QueryDelegatorTotalDelegationBalanceResponse 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_QueryDelegatorTotalDelegationBalanceResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "initia.mstaking.v1.QueryDelegatorTotalDelegationBalanceResponse.balance": + if len(x.Balance) == 0 { + return protoreflect.ValueOfList(&_QueryDelegatorTotalDelegationBalanceResponse_1_list{}) + } + listValue := &_QueryDelegatorTotalDelegationBalanceResponse_1_list{list: &x.Balance} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.mstaking.v1.QueryDelegatorTotalDelegationBalanceResponse")) + } + panic(fmt.Errorf("message initia.mstaking.v1.QueryDelegatorTotalDelegationBalanceResponse 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_QueryDelegatorTotalDelegationBalanceResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "initia.mstaking.v1.QueryDelegatorTotalDelegationBalanceResponse.balance": + lv := value.List() + clv := lv.(*_QueryDelegatorTotalDelegationBalanceResponse_1_list) + x.Balance = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.mstaking.v1.QueryDelegatorTotalDelegationBalanceResponse")) + } + panic(fmt.Errorf("message initia.mstaking.v1.QueryDelegatorTotalDelegationBalanceResponse 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_QueryDelegatorTotalDelegationBalanceResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "initia.mstaking.v1.QueryDelegatorTotalDelegationBalanceResponse.balance": + if x.Balance == nil { + x.Balance = []*v1beta11.Coin{} + } + value := &_QueryDelegatorTotalDelegationBalanceResponse_1_list{list: &x.Balance} + return protoreflect.ValueOfList(value) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.mstaking.v1.QueryDelegatorTotalDelegationBalanceResponse")) + } + panic(fmt.Errorf("message initia.mstaking.v1.QueryDelegatorTotalDelegationBalanceResponse 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_QueryDelegatorTotalDelegationBalanceResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "initia.mstaking.v1.QueryDelegatorTotalDelegationBalanceResponse.balance": + list := []*v1beta11.Coin{} + return protoreflect.ValueOfList(&_QueryDelegatorTotalDelegationBalanceResponse_1_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.mstaking.v1.QueryDelegatorTotalDelegationBalanceResponse")) + } + panic(fmt.Errorf("message initia.mstaking.v1.QueryDelegatorTotalDelegationBalanceResponse 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_QueryDelegatorTotalDelegationBalanceResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in initia.mstaking.v1.QueryDelegatorTotalDelegationBalanceResponse", 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_QueryDelegatorTotalDelegationBalanceResponse) 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_QueryDelegatorTotalDelegationBalanceResponse) 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_QueryDelegatorTotalDelegationBalanceResponse) 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_QueryDelegatorTotalDelegationBalanceResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryDelegatorTotalDelegationBalanceResponse) + 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.Balance) > 0 { + for _, e := range x.Balance { + 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().(*QueryDelegatorTotalDelegationBalanceResponse) + 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.Balance) > 0 { + for iNdEx := len(x.Balance) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Balance[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().(*QueryDelegatorTotalDelegationBalanceResponse) + 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: QueryDelegatorTotalDelegationBalanceResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegatorTotalDelegationBalanceResponse: 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 Balance", 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.Balance = append(x.Balance, &v1beta11.Coin{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Balance[len(x.Balance)-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_QueryPoolRequest protoreflect.MessageDescriptor ) @@ -11277,7 +12192,7 @@ func (x *QueryPoolRequest) ProtoReflect() protoreflect.Message { } func (x *QueryPoolRequest) slowProtoReflect() protoreflect.Message { - mi := &file_initia_mstaking_v1_query_proto_msgTypes[22] + mi := &file_initia_mstaking_v1_query_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -11635,7 +12550,7 @@ func (x *QueryPoolResponse) ProtoReflect() protoreflect.Message { } func (x *QueryPoolResponse) slowProtoReflect() protoreflect.Message { - mi := &file_initia_mstaking_v1_query_proto_msgTypes[23] + mi := &file_initia_mstaking_v1_query_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12068,7 +12983,7 @@ func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message { } func (x *QueryParamsRequest) slowProtoReflect() protoreflect.Message { - mi := &file_initia_mstaking_v1_query_proto_msgTypes[24] + mi := &file_initia_mstaking_v1_query_proto_msgTypes[26] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12426,7 +13341,7 @@ func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message { } func (x *QueryParamsResponse) slowProtoReflect() protoreflect.Message { - mi := &file_initia_mstaking_v1_query_proto_msgTypes[25] + mi := &file_initia_mstaking_v1_query_proto_msgTypes[27] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13851,6 +14766,82 @@ func (x *QueryDelegatorValidatorResponse) GetValidator() *Validator { return nil } +// QueryDelegatorTotalDelegationBalanceRequest is request type for the +// Query/DelegatorTotalDelegationBalance RPC method. +type QueryDelegatorTotalDelegationBalanceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // delegator_addr defines the delegator address to query for. + DelegatorAddr string `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3" json:"delegator_addr,omitempty"` +} + +func (x *QueryDelegatorTotalDelegationBalanceRequest) Reset() { + *x = QueryDelegatorTotalDelegationBalanceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_initia_mstaking_v1_query_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryDelegatorTotalDelegationBalanceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryDelegatorTotalDelegationBalanceRequest) ProtoMessage() {} + +// Deprecated: Use QueryDelegatorTotalDelegationBalanceRequest.ProtoReflect.Descriptor instead. +func (*QueryDelegatorTotalDelegationBalanceRequest) Descriptor() ([]byte, []int) { + return file_initia_mstaking_v1_query_proto_rawDescGZIP(), []int{22} +} + +func (x *QueryDelegatorTotalDelegationBalanceRequest) GetDelegatorAddr() string { + if x != nil { + return x.DelegatorAddr + } + return "" +} + +// QueryDelegatorTotalDelegationBalanceResponse is response type for the +// Query/DelegatorTotalDelegationBalance RPC method. +type QueryDelegatorTotalDelegationBalanceResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // balance defines the sum of all the delegations' balance of a delegator. + Balance []*v1beta11.Coin `protobuf:"bytes,1,rep,name=balance,proto3" json:"balance,omitempty"` +} + +func (x *QueryDelegatorTotalDelegationBalanceResponse) Reset() { + *x = QueryDelegatorTotalDelegationBalanceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_initia_mstaking_v1_query_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryDelegatorTotalDelegationBalanceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryDelegatorTotalDelegationBalanceResponse) ProtoMessage() {} + +// Deprecated: Use QueryDelegatorTotalDelegationBalanceResponse.ProtoReflect.Descriptor instead. +func (*QueryDelegatorTotalDelegationBalanceResponse) Descriptor() ([]byte, []int) { + return file_initia_mstaking_v1_query_proto_rawDescGZIP(), []int{23} +} + +func (x *QueryDelegatorTotalDelegationBalanceResponse) GetBalance() []*v1beta11.Coin { + if x != nil { + return x.Balance + } + return nil +} + // QueryPoolRequest is request type for the Query/Pool RPC method. type QueryPoolRequest struct { state protoimpl.MessageState @@ -13861,7 +14852,7 @@ type QueryPoolRequest struct { func (x *QueryPoolRequest) Reset() { *x = QueryPoolRequest{} if protoimpl.UnsafeEnabled { - mi := &file_initia_mstaking_v1_query_proto_msgTypes[22] + mi := &file_initia_mstaking_v1_query_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -13875,7 +14866,7 @@ func (*QueryPoolRequest) ProtoMessage() {} // Deprecated: Use QueryPoolRequest.ProtoReflect.Descriptor instead. func (*QueryPoolRequest) Descriptor() ([]byte, []int) { - return file_initia_mstaking_v1_query_proto_rawDescGZIP(), []int{22} + return file_initia_mstaking_v1_query_proto_rawDescGZIP(), []int{24} } // QueryPoolResponse is response type for the Query/Pool RPC method. @@ -13891,7 +14882,7 @@ type QueryPoolResponse struct { func (x *QueryPoolResponse) Reset() { *x = QueryPoolResponse{} if protoimpl.UnsafeEnabled { - mi := &file_initia_mstaking_v1_query_proto_msgTypes[23] + mi := &file_initia_mstaking_v1_query_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -13905,7 +14896,7 @@ func (*QueryPoolResponse) ProtoMessage() {} // Deprecated: Use QueryPoolResponse.ProtoReflect.Descriptor instead. func (*QueryPoolResponse) Descriptor() ([]byte, []int) { - return file_initia_mstaking_v1_query_proto_rawDescGZIP(), []int{23} + return file_initia_mstaking_v1_query_proto_rawDescGZIP(), []int{25} } func (x *QueryPoolResponse) GetPool() *Pool { @@ -13925,7 +14916,7 @@ type QueryParamsRequest struct { func (x *QueryParamsRequest) Reset() { *x = QueryParamsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_initia_mstaking_v1_query_proto_msgTypes[24] + mi := &file_initia_mstaking_v1_query_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -13939,7 +14930,7 @@ func (*QueryParamsRequest) ProtoMessage() {} // Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead. func (*QueryParamsRequest) Descriptor() ([]byte, []int) { - return file_initia_mstaking_v1_query_proto_rawDescGZIP(), []int{24} + return file_initia_mstaking_v1_query_proto_rawDescGZIP(), []int{26} } // QueryParamsResponse is response type for the Query/Params RPC method. @@ -13955,7 +14946,7 @@ type QueryParamsResponse struct { func (x *QueryParamsResponse) Reset() { *x = QueryParamsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_initia_mstaking_v1_query_proto_msgTypes[25] + mi := &file_initia_mstaking_v1_query_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -13969,7 +14960,7 @@ func (*QueryParamsResponse) ProtoMessage() {} // Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead. func (*QueryParamsResponse) Descriptor() ([]byte, []int) { - return file_initia_mstaking_v1_query_proto_rawDescGZIP(), []int{25} + return file_initia_mstaking_v1_query_proto_rawDescGZIP(), []int{27} } func (x *QueryParamsResponse) GetParams() *Params { @@ -13988,6 +14979,8 @@ var file_initia_mstaking_v1_query_proto_rawDesc = []byte{ 0x67, 0x2e, 0x76, 0x31, 0x1a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 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, @@ -14207,7 +15200,23 @@ var file_initia_mstaking_v1_query_proto_rawDesc = []byte{ 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, - 0x6f, 0x72, 0x22, 0x12, 0x0a, 0x10, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6f, 0x6c, 0x52, + 0x6f, 0x72, 0x22, 0x54, 0x0a, 0x2b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x67, + 0x61, 0x74, 0x6f, 0x72, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, + 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x64, 0x65, 0x6c, 0x65, 0x67, + 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x22, 0xa7, 0x01, 0x0a, 0x2c, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x54, 0x6f, 0x74, 0x61, 0x6c, + 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x77, 0x0a, 0x07, 0x62, 0x61, 0x6c, + 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x43, 0x6f, 0x69, 0x6e, 0x42, 0x42, 0xc8, 0xde, 0x1f, 0x00, 0xf2, 0xde, 0x1f, 0x0e, 0x79, + 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x22, 0xaa, 0xdf, 0x1f, + 0x28, 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, 0x43, 0x6f, 0x69, 0x6e, 0x73, 0x52, 0x07, 0x62, 0x61, 0x6c, 0x61, 0x6e, + 0x63, 0x65, 0x22, 0x12, 0x0a, 0x10, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x47, 0x0a, 0x11, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x32, 0x0a, 0x04, 0x70, 0x6f, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x69, 0x6e, 0x69, 0x74, @@ -14219,7 +15228,7 @@ var file_initia_mstaking_v1_query_proto_rawDesc = []byte{ 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, - 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x32, 0x96, 0x13, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x32, 0x8f, 0x15, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x8d, 0x01, 0x0a, 0x0a, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x2a, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, @@ -14357,36 +15366,52 @@ var file_initia_mstaking_v1_query_proto_rawDesc = []byte{ 0x31, 0x2f, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x2f, 0x7b, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x7d, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x2f, 0x7b, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, - 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x7d, 0x12, 0x75, 0x0a, 0x04, 0x50, 0x6f, 0x6f, - 0x6c, 0x12, 0x24, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x73, 0x74, 0x61, 0x6b, - 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6f, 0x6c, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, - 0x2e, 0x6d, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x50, 0x6f, 0x6f, 0x6c, 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, - 0x6d, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x6f, 0x6f, 0x6c, - 0x12, 0x7d, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x26, 0x2e, 0x69, 0x6e, 0x69, + 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x7d, 0x12, 0xf6, 0x01, 0x0a, 0x1f, 0x44, 0x65, + 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x44, 0x65, 0x6c, 0x65, + 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x3f, 0x2e, + 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2e, + 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, + 0x72, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x40, + 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, + 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, + 0x6f, 0x72, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x50, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4a, 0x12, 0x48, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, + 0x61, 0x2f, 0x6d, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x65, + 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x2f, 0x7b, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, + 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x7d, 0x2f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, + 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x62, 0x61, 0x6c, 0x61, 0x6e, + 0x63, 0x65, 0x12, 0x75, 0x0a, 0x04, 0x50, 0x6f, 0x6f, 0x6c, 0x12, 0x24, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x73, 0x74, 0x61, - 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, - 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x22, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x1c, 0x12, 0x1a, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x73, 0x74, - 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, - 0xcf, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, - 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3f, 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, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x3b, 0x6d, - 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x49, 0x4d, 0x58, 0xaa, - 0x02, 0x12, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x4d, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, - 0x67, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x12, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x5c, 0x4d, 0x73, - 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1e, 0x49, 0x6e, 0x69, 0x74, - 0x69, 0x61, 0x5c, 0x4d, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x5c, 0x56, 0x31, 0x5c, 0x47, - 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x49, 0x6e, 0x69, - 0x74, 0x69, 0x61, 0x3a, 0x3a, 0x4d, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x56, - 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x25, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x73, 0x74, 0x61, 0x6b, 0x69, + 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x6f, 0x6f, 0x6c, 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, 0x6d, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, + 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x6f, 0x6f, 0x6c, 0x12, 0x7d, 0x0a, 0x06, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x12, 0x26, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x73, 0x74, + 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, + 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x69, 0x6e, + 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x12, 0x1a, 0x2f, 0x69, + 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2f, 0x76, + 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0xcf, 0x01, 0x0a, 0x16, 0x63, 0x6f, 0x6d, + 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, + 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, + 0x01, 0x5a, 0x3f, 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, 0x73, 0x74, 0x61, + 0x6b, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x3b, 0x6d, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, + 0x76, 0x31, 0xa2, 0x02, 0x03, 0x49, 0x4d, 0x58, 0xaa, 0x02, 0x12, 0x49, 0x6e, 0x69, 0x74, 0x69, + 0x61, 0x2e, 0x4d, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x12, + 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x5c, 0x4d, 0x73, 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x5c, + 0x56, 0x31, 0xe2, 0x02, 0x1e, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x5c, 0x4d, 0x73, 0x74, 0x61, + 0x6b, 0x69, 0x6e, 0x67, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0xea, 0x02, 0x14, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x3a, 0x3a, 0x4d, 0x73, + 0x74, 0x61, 0x6b, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, } var ( @@ -14401,102 +15426,108 @@ func file_initia_mstaking_v1_query_proto_rawDescGZIP() []byte { return file_initia_mstaking_v1_query_proto_rawDescData } -var file_initia_mstaking_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 26) +var file_initia_mstaking_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 28) var file_initia_mstaking_v1_query_proto_goTypes = []interface{}{ - (*QueryValidatorsRequest)(nil), // 0: initia.mstaking.v1.QueryValidatorsRequest - (*QueryValidatorsResponse)(nil), // 1: initia.mstaking.v1.QueryValidatorsResponse - (*QueryValidatorRequest)(nil), // 2: initia.mstaking.v1.QueryValidatorRequest - (*QueryValidatorResponse)(nil), // 3: initia.mstaking.v1.QueryValidatorResponse - (*QueryValidatorDelegationsRequest)(nil), // 4: initia.mstaking.v1.QueryValidatorDelegationsRequest - (*QueryValidatorDelegationsResponse)(nil), // 5: initia.mstaking.v1.QueryValidatorDelegationsResponse - (*QueryValidatorUnbondingDelegationsRequest)(nil), // 6: initia.mstaking.v1.QueryValidatorUnbondingDelegationsRequest - (*QueryValidatorUnbondingDelegationsResponse)(nil), // 7: initia.mstaking.v1.QueryValidatorUnbondingDelegationsResponse - (*QueryDelegationRequest)(nil), // 8: initia.mstaking.v1.QueryDelegationRequest - (*QueryDelegationResponse)(nil), // 9: initia.mstaking.v1.QueryDelegationResponse - (*QueryUnbondingDelegationRequest)(nil), // 10: initia.mstaking.v1.QueryUnbondingDelegationRequest - (*QueryUnbondingDelegationResponse)(nil), // 11: initia.mstaking.v1.QueryUnbondingDelegationResponse - (*QueryDelegatorDelegationsRequest)(nil), // 12: initia.mstaking.v1.QueryDelegatorDelegationsRequest - (*QueryDelegatorDelegationsResponse)(nil), // 13: initia.mstaking.v1.QueryDelegatorDelegationsResponse - (*QueryDelegatorUnbondingDelegationsRequest)(nil), // 14: initia.mstaking.v1.QueryDelegatorUnbondingDelegationsRequest - (*QueryDelegatorUnbondingDelegationsResponse)(nil), // 15: initia.mstaking.v1.QueryDelegatorUnbondingDelegationsResponse - (*QueryRedelegationsRequest)(nil), // 16: initia.mstaking.v1.QueryRedelegationsRequest - (*QueryRedelegationsResponse)(nil), // 17: initia.mstaking.v1.QueryRedelegationsResponse - (*QueryDelegatorValidatorsRequest)(nil), // 18: initia.mstaking.v1.QueryDelegatorValidatorsRequest - (*QueryDelegatorValidatorsResponse)(nil), // 19: initia.mstaking.v1.QueryDelegatorValidatorsResponse - (*QueryDelegatorValidatorRequest)(nil), // 20: initia.mstaking.v1.QueryDelegatorValidatorRequest - (*QueryDelegatorValidatorResponse)(nil), // 21: initia.mstaking.v1.QueryDelegatorValidatorResponse - (*QueryPoolRequest)(nil), // 22: initia.mstaking.v1.QueryPoolRequest - (*QueryPoolResponse)(nil), // 23: initia.mstaking.v1.QueryPoolResponse - (*QueryParamsRequest)(nil), // 24: initia.mstaking.v1.QueryParamsRequest - (*QueryParamsResponse)(nil), // 25: initia.mstaking.v1.QueryParamsResponse - (*v1beta1.PageRequest)(nil), // 26: cosmos.base.query.v1beta1.PageRequest - (*Validator)(nil), // 27: initia.mstaking.v1.Validator - (*v1beta1.PageResponse)(nil), // 28: cosmos.base.query.v1beta1.PageResponse - (*DelegationResponse)(nil), // 29: initia.mstaking.v1.DelegationResponse - (*UnbondingDelegation)(nil), // 30: initia.mstaking.v1.UnbondingDelegation - (*RedelegationResponse)(nil), // 31: initia.mstaking.v1.RedelegationResponse - (*Pool)(nil), // 32: initia.mstaking.v1.Pool - (*Params)(nil), // 33: initia.mstaking.v1.Params + (*QueryValidatorsRequest)(nil), // 0: initia.mstaking.v1.QueryValidatorsRequest + (*QueryValidatorsResponse)(nil), // 1: initia.mstaking.v1.QueryValidatorsResponse + (*QueryValidatorRequest)(nil), // 2: initia.mstaking.v1.QueryValidatorRequest + (*QueryValidatorResponse)(nil), // 3: initia.mstaking.v1.QueryValidatorResponse + (*QueryValidatorDelegationsRequest)(nil), // 4: initia.mstaking.v1.QueryValidatorDelegationsRequest + (*QueryValidatorDelegationsResponse)(nil), // 5: initia.mstaking.v1.QueryValidatorDelegationsResponse + (*QueryValidatorUnbondingDelegationsRequest)(nil), // 6: initia.mstaking.v1.QueryValidatorUnbondingDelegationsRequest + (*QueryValidatorUnbondingDelegationsResponse)(nil), // 7: initia.mstaking.v1.QueryValidatorUnbondingDelegationsResponse + (*QueryDelegationRequest)(nil), // 8: initia.mstaking.v1.QueryDelegationRequest + (*QueryDelegationResponse)(nil), // 9: initia.mstaking.v1.QueryDelegationResponse + (*QueryUnbondingDelegationRequest)(nil), // 10: initia.mstaking.v1.QueryUnbondingDelegationRequest + (*QueryUnbondingDelegationResponse)(nil), // 11: initia.mstaking.v1.QueryUnbondingDelegationResponse + (*QueryDelegatorDelegationsRequest)(nil), // 12: initia.mstaking.v1.QueryDelegatorDelegationsRequest + (*QueryDelegatorDelegationsResponse)(nil), // 13: initia.mstaking.v1.QueryDelegatorDelegationsResponse + (*QueryDelegatorUnbondingDelegationsRequest)(nil), // 14: initia.mstaking.v1.QueryDelegatorUnbondingDelegationsRequest + (*QueryDelegatorUnbondingDelegationsResponse)(nil), // 15: initia.mstaking.v1.QueryDelegatorUnbondingDelegationsResponse + (*QueryRedelegationsRequest)(nil), // 16: initia.mstaking.v1.QueryRedelegationsRequest + (*QueryRedelegationsResponse)(nil), // 17: initia.mstaking.v1.QueryRedelegationsResponse + (*QueryDelegatorValidatorsRequest)(nil), // 18: initia.mstaking.v1.QueryDelegatorValidatorsRequest + (*QueryDelegatorValidatorsResponse)(nil), // 19: initia.mstaking.v1.QueryDelegatorValidatorsResponse + (*QueryDelegatorValidatorRequest)(nil), // 20: initia.mstaking.v1.QueryDelegatorValidatorRequest + (*QueryDelegatorValidatorResponse)(nil), // 21: initia.mstaking.v1.QueryDelegatorValidatorResponse + (*QueryDelegatorTotalDelegationBalanceRequest)(nil), // 22: initia.mstaking.v1.QueryDelegatorTotalDelegationBalanceRequest + (*QueryDelegatorTotalDelegationBalanceResponse)(nil), // 23: initia.mstaking.v1.QueryDelegatorTotalDelegationBalanceResponse + (*QueryPoolRequest)(nil), // 24: initia.mstaking.v1.QueryPoolRequest + (*QueryPoolResponse)(nil), // 25: initia.mstaking.v1.QueryPoolResponse + (*QueryParamsRequest)(nil), // 26: initia.mstaking.v1.QueryParamsRequest + (*QueryParamsResponse)(nil), // 27: initia.mstaking.v1.QueryParamsResponse + (*v1beta1.PageRequest)(nil), // 28: cosmos.base.query.v1beta1.PageRequest + (*Validator)(nil), // 29: initia.mstaking.v1.Validator + (*v1beta1.PageResponse)(nil), // 30: cosmos.base.query.v1beta1.PageResponse + (*DelegationResponse)(nil), // 31: initia.mstaking.v1.DelegationResponse + (*UnbondingDelegation)(nil), // 32: initia.mstaking.v1.UnbondingDelegation + (*RedelegationResponse)(nil), // 33: initia.mstaking.v1.RedelegationResponse + (*v1beta11.Coin)(nil), // 34: cosmos.base.v1beta1.Coin + (*Pool)(nil), // 35: initia.mstaking.v1.Pool + (*Params)(nil), // 36: initia.mstaking.v1.Params } var file_initia_mstaking_v1_query_proto_depIdxs = []int32{ - 26, // 0: initia.mstaking.v1.QueryValidatorsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 27, // 1: initia.mstaking.v1.QueryValidatorsResponse.validators:type_name -> initia.mstaking.v1.Validator - 28, // 2: initia.mstaking.v1.QueryValidatorsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 27, // 3: initia.mstaking.v1.QueryValidatorResponse.validator:type_name -> initia.mstaking.v1.Validator - 26, // 4: initia.mstaking.v1.QueryValidatorDelegationsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 29, // 5: initia.mstaking.v1.QueryValidatorDelegationsResponse.delegation_responses:type_name -> initia.mstaking.v1.DelegationResponse - 28, // 6: initia.mstaking.v1.QueryValidatorDelegationsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 26, // 7: initia.mstaking.v1.QueryValidatorUnbondingDelegationsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 30, // 8: initia.mstaking.v1.QueryValidatorUnbondingDelegationsResponse.unbonding_responses:type_name -> initia.mstaking.v1.UnbondingDelegation - 28, // 9: initia.mstaking.v1.QueryValidatorUnbondingDelegationsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 29, // 10: initia.mstaking.v1.QueryDelegationResponse.delegation_response:type_name -> initia.mstaking.v1.DelegationResponse - 30, // 11: initia.mstaking.v1.QueryUnbondingDelegationResponse.unbond:type_name -> initia.mstaking.v1.UnbondingDelegation - 26, // 12: initia.mstaking.v1.QueryDelegatorDelegationsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 29, // 13: initia.mstaking.v1.QueryDelegatorDelegationsResponse.delegation_responses:type_name -> initia.mstaking.v1.DelegationResponse - 28, // 14: initia.mstaking.v1.QueryDelegatorDelegationsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 26, // 15: initia.mstaking.v1.QueryDelegatorUnbondingDelegationsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 30, // 16: initia.mstaking.v1.QueryDelegatorUnbondingDelegationsResponse.unbonding_responses:type_name -> initia.mstaking.v1.UnbondingDelegation - 28, // 17: initia.mstaking.v1.QueryDelegatorUnbondingDelegationsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 26, // 18: initia.mstaking.v1.QueryRedelegationsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 31, // 19: initia.mstaking.v1.QueryRedelegationsResponse.redelegation_responses:type_name -> initia.mstaking.v1.RedelegationResponse - 28, // 20: initia.mstaking.v1.QueryRedelegationsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 26, // 21: initia.mstaking.v1.QueryDelegatorValidatorsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 27, // 22: initia.mstaking.v1.QueryDelegatorValidatorsResponse.validators:type_name -> initia.mstaking.v1.Validator - 28, // 23: initia.mstaking.v1.QueryDelegatorValidatorsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 27, // 24: initia.mstaking.v1.QueryDelegatorValidatorResponse.validator:type_name -> initia.mstaking.v1.Validator - 32, // 25: initia.mstaking.v1.QueryPoolResponse.pool:type_name -> initia.mstaking.v1.Pool - 33, // 26: initia.mstaking.v1.QueryParamsResponse.params:type_name -> initia.mstaking.v1.Params - 0, // 27: initia.mstaking.v1.Query.Validators:input_type -> initia.mstaking.v1.QueryValidatorsRequest - 2, // 28: initia.mstaking.v1.Query.Validator:input_type -> initia.mstaking.v1.QueryValidatorRequest - 4, // 29: initia.mstaking.v1.Query.ValidatorDelegations:input_type -> initia.mstaking.v1.QueryValidatorDelegationsRequest - 6, // 30: initia.mstaking.v1.Query.ValidatorUnbondingDelegations:input_type -> initia.mstaking.v1.QueryValidatorUnbondingDelegationsRequest - 8, // 31: initia.mstaking.v1.Query.Delegation:input_type -> initia.mstaking.v1.QueryDelegationRequest - 10, // 32: initia.mstaking.v1.Query.UnbondingDelegation:input_type -> initia.mstaking.v1.QueryUnbondingDelegationRequest - 12, // 33: initia.mstaking.v1.Query.DelegatorDelegations:input_type -> initia.mstaking.v1.QueryDelegatorDelegationsRequest - 14, // 34: initia.mstaking.v1.Query.DelegatorUnbondingDelegations:input_type -> initia.mstaking.v1.QueryDelegatorUnbondingDelegationsRequest - 16, // 35: initia.mstaking.v1.Query.Redelegations:input_type -> initia.mstaking.v1.QueryRedelegationsRequest - 18, // 36: initia.mstaking.v1.Query.DelegatorValidators:input_type -> initia.mstaking.v1.QueryDelegatorValidatorsRequest - 20, // 37: initia.mstaking.v1.Query.DelegatorValidator:input_type -> initia.mstaking.v1.QueryDelegatorValidatorRequest - 22, // 38: initia.mstaking.v1.Query.Pool:input_type -> initia.mstaking.v1.QueryPoolRequest - 24, // 39: initia.mstaking.v1.Query.Params:input_type -> initia.mstaking.v1.QueryParamsRequest - 1, // 40: initia.mstaking.v1.Query.Validators:output_type -> initia.mstaking.v1.QueryValidatorsResponse - 3, // 41: initia.mstaking.v1.Query.Validator:output_type -> initia.mstaking.v1.QueryValidatorResponse - 5, // 42: initia.mstaking.v1.Query.ValidatorDelegations:output_type -> initia.mstaking.v1.QueryValidatorDelegationsResponse - 7, // 43: initia.mstaking.v1.Query.ValidatorUnbondingDelegations:output_type -> initia.mstaking.v1.QueryValidatorUnbondingDelegationsResponse - 9, // 44: initia.mstaking.v1.Query.Delegation:output_type -> initia.mstaking.v1.QueryDelegationResponse - 11, // 45: initia.mstaking.v1.Query.UnbondingDelegation:output_type -> initia.mstaking.v1.QueryUnbondingDelegationResponse - 13, // 46: initia.mstaking.v1.Query.DelegatorDelegations:output_type -> initia.mstaking.v1.QueryDelegatorDelegationsResponse - 15, // 47: initia.mstaking.v1.Query.DelegatorUnbondingDelegations:output_type -> initia.mstaking.v1.QueryDelegatorUnbondingDelegationsResponse - 17, // 48: initia.mstaking.v1.Query.Redelegations:output_type -> initia.mstaking.v1.QueryRedelegationsResponse - 19, // 49: initia.mstaking.v1.Query.DelegatorValidators:output_type -> initia.mstaking.v1.QueryDelegatorValidatorsResponse - 21, // 50: initia.mstaking.v1.Query.DelegatorValidator:output_type -> initia.mstaking.v1.QueryDelegatorValidatorResponse - 23, // 51: initia.mstaking.v1.Query.Pool:output_type -> initia.mstaking.v1.QueryPoolResponse - 25, // 52: initia.mstaking.v1.Query.Params:output_type -> initia.mstaking.v1.QueryParamsResponse - 40, // [40:53] is the sub-list for method output_type - 27, // [27:40] is the sub-list for method input_type - 27, // [27:27] is the sub-list for extension type_name - 27, // [27:27] is the sub-list for extension extendee - 0, // [0:27] is the sub-list for field type_name + 28, // 0: initia.mstaking.v1.QueryValidatorsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 29, // 1: initia.mstaking.v1.QueryValidatorsResponse.validators:type_name -> initia.mstaking.v1.Validator + 30, // 2: initia.mstaking.v1.QueryValidatorsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 29, // 3: initia.mstaking.v1.QueryValidatorResponse.validator:type_name -> initia.mstaking.v1.Validator + 28, // 4: initia.mstaking.v1.QueryValidatorDelegationsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 31, // 5: initia.mstaking.v1.QueryValidatorDelegationsResponse.delegation_responses:type_name -> initia.mstaking.v1.DelegationResponse + 30, // 6: initia.mstaking.v1.QueryValidatorDelegationsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 28, // 7: initia.mstaking.v1.QueryValidatorUnbondingDelegationsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 32, // 8: initia.mstaking.v1.QueryValidatorUnbondingDelegationsResponse.unbonding_responses:type_name -> initia.mstaking.v1.UnbondingDelegation + 30, // 9: initia.mstaking.v1.QueryValidatorUnbondingDelegationsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 31, // 10: initia.mstaking.v1.QueryDelegationResponse.delegation_response:type_name -> initia.mstaking.v1.DelegationResponse + 32, // 11: initia.mstaking.v1.QueryUnbondingDelegationResponse.unbond:type_name -> initia.mstaking.v1.UnbondingDelegation + 28, // 12: initia.mstaking.v1.QueryDelegatorDelegationsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 31, // 13: initia.mstaking.v1.QueryDelegatorDelegationsResponse.delegation_responses:type_name -> initia.mstaking.v1.DelegationResponse + 30, // 14: initia.mstaking.v1.QueryDelegatorDelegationsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 28, // 15: initia.mstaking.v1.QueryDelegatorUnbondingDelegationsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 32, // 16: initia.mstaking.v1.QueryDelegatorUnbondingDelegationsResponse.unbonding_responses:type_name -> initia.mstaking.v1.UnbondingDelegation + 30, // 17: initia.mstaking.v1.QueryDelegatorUnbondingDelegationsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 28, // 18: initia.mstaking.v1.QueryRedelegationsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 33, // 19: initia.mstaking.v1.QueryRedelegationsResponse.redelegation_responses:type_name -> initia.mstaking.v1.RedelegationResponse + 30, // 20: initia.mstaking.v1.QueryRedelegationsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 28, // 21: initia.mstaking.v1.QueryDelegatorValidatorsRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 29, // 22: initia.mstaking.v1.QueryDelegatorValidatorsResponse.validators:type_name -> initia.mstaking.v1.Validator + 30, // 23: initia.mstaking.v1.QueryDelegatorValidatorsResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 29, // 24: initia.mstaking.v1.QueryDelegatorValidatorResponse.validator:type_name -> initia.mstaking.v1.Validator + 34, // 25: initia.mstaking.v1.QueryDelegatorTotalDelegationBalanceResponse.balance:type_name -> cosmos.base.v1beta1.Coin + 35, // 26: initia.mstaking.v1.QueryPoolResponse.pool:type_name -> initia.mstaking.v1.Pool + 36, // 27: initia.mstaking.v1.QueryParamsResponse.params:type_name -> initia.mstaking.v1.Params + 0, // 28: initia.mstaking.v1.Query.Validators:input_type -> initia.mstaking.v1.QueryValidatorsRequest + 2, // 29: initia.mstaking.v1.Query.Validator:input_type -> initia.mstaking.v1.QueryValidatorRequest + 4, // 30: initia.mstaking.v1.Query.ValidatorDelegations:input_type -> initia.mstaking.v1.QueryValidatorDelegationsRequest + 6, // 31: initia.mstaking.v1.Query.ValidatorUnbondingDelegations:input_type -> initia.mstaking.v1.QueryValidatorUnbondingDelegationsRequest + 8, // 32: initia.mstaking.v1.Query.Delegation:input_type -> initia.mstaking.v1.QueryDelegationRequest + 10, // 33: initia.mstaking.v1.Query.UnbondingDelegation:input_type -> initia.mstaking.v1.QueryUnbondingDelegationRequest + 12, // 34: initia.mstaking.v1.Query.DelegatorDelegations:input_type -> initia.mstaking.v1.QueryDelegatorDelegationsRequest + 14, // 35: initia.mstaking.v1.Query.DelegatorUnbondingDelegations:input_type -> initia.mstaking.v1.QueryDelegatorUnbondingDelegationsRequest + 16, // 36: initia.mstaking.v1.Query.Redelegations:input_type -> initia.mstaking.v1.QueryRedelegationsRequest + 18, // 37: initia.mstaking.v1.Query.DelegatorValidators:input_type -> initia.mstaking.v1.QueryDelegatorValidatorsRequest + 20, // 38: initia.mstaking.v1.Query.DelegatorValidator:input_type -> initia.mstaking.v1.QueryDelegatorValidatorRequest + 22, // 39: initia.mstaking.v1.Query.DelegatorTotalDelegationBalance:input_type -> initia.mstaking.v1.QueryDelegatorTotalDelegationBalanceRequest + 24, // 40: initia.mstaking.v1.Query.Pool:input_type -> initia.mstaking.v1.QueryPoolRequest + 26, // 41: initia.mstaking.v1.Query.Params:input_type -> initia.mstaking.v1.QueryParamsRequest + 1, // 42: initia.mstaking.v1.Query.Validators:output_type -> initia.mstaking.v1.QueryValidatorsResponse + 3, // 43: initia.mstaking.v1.Query.Validator:output_type -> initia.mstaking.v1.QueryValidatorResponse + 5, // 44: initia.mstaking.v1.Query.ValidatorDelegations:output_type -> initia.mstaking.v1.QueryValidatorDelegationsResponse + 7, // 45: initia.mstaking.v1.Query.ValidatorUnbondingDelegations:output_type -> initia.mstaking.v1.QueryValidatorUnbondingDelegationsResponse + 9, // 46: initia.mstaking.v1.Query.Delegation:output_type -> initia.mstaking.v1.QueryDelegationResponse + 11, // 47: initia.mstaking.v1.Query.UnbondingDelegation:output_type -> initia.mstaking.v1.QueryUnbondingDelegationResponse + 13, // 48: initia.mstaking.v1.Query.DelegatorDelegations:output_type -> initia.mstaking.v1.QueryDelegatorDelegationsResponse + 15, // 49: initia.mstaking.v1.Query.DelegatorUnbondingDelegations:output_type -> initia.mstaking.v1.QueryDelegatorUnbondingDelegationsResponse + 17, // 50: initia.mstaking.v1.Query.Redelegations:output_type -> initia.mstaking.v1.QueryRedelegationsResponse + 19, // 51: initia.mstaking.v1.Query.DelegatorValidators:output_type -> initia.mstaking.v1.QueryDelegatorValidatorsResponse + 21, // 52: initia.mstaking.v1.Query.DelegatorValidator:output_type -> initia.mstaking.v1.QueryDelegatorValidatorResponse + 23, // 53: initia.mstaking.v1.Query.DelegatorTotalDelegationBalance:output_type -> initia.mstaking.v1.QueryDelegatorTotalDelegationBalanceResponse + 25, // 54: initia.mstaking.v1.Query.Pool:output_type -> initia.mstaking.v1.QueryPoolResponse + 27, // 55: initia.mstaking.v1.Query.Params:output_type -> initia.mstaking.v1.QueryParamsResponse + 42, // [42:56] is the sub-list for method output_type + 28, // [28:42] is the sub-list for method input_type + 28, // [28:28] is the sub-list for extension type_name + 28, // [28:28] is the sub-list for extension extendee + 0, // [0:28] is the sub-list for field type_name } func init() { file_initia_mstaking_v1_query_proto_init() } @@ -14771,7 +15802,7 @@ func file_initia_mstaking_v1_query_proto_init() { } } file_initia_mstaking_v1_query_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryPoolRequest); i { + switch v := v.(*QueryDelegatorTotalDelegationBalanceRequest); i { case 0: return &v.state case 1: @@ -14783,7 +15814,7 @@ func file_initia_mstaking_v1_query_proto_init() { } } file_initia_mstaking_v1_query_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryPoolResponse); i { + switch v := v.(*QueryDelegatorTotalDelegationBalanceResponse); i { case 0: return &v.state case 1: @@ -14795,7 +15826,7 @@ func file_initia_mstaking_v1_query_proto_init() { } } file_initia_mstaking_v1_query_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryParamsRequest); i { + switch v := v.(*QueryPoolRequest); i { case 0: return &v.state case 1: @@ -14807,6 +15838,30 @@ func file_initia_mstaking_v1_query_proto_init() { } } file_initia_mstaking_v1_query_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryPoolResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_initia_mstaking_v1_query_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryParamsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_initia_mstaking_v1_query_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryParamsResponse); i { case 0: return &v.state @@ -14825,7 +15880,7 @@ func file_initia_mstaking_v1_query_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_initia_mstaking_v1_query_proto_rawDesc, NumEnums: 0, - NumMessages: 26, + NumMessages: 28, NumExtensions: 0, NumServices: 1, }, diff --git a/api/initia/mstaking/v1/query_grpc.pb.go b/api/initia/mstaking/v1/query_grpc.pb.go index c007b3611..ebb2fdcb5 100644 --- a/api/initia/mstaking/v1/query_grpc.pb.go +++ b/api/initia/mstaking/v1/query_grpc.pb.go @@ -19,19 +19,20 @@ import ( const _ = grpc.SupportPackageIsVersion7 const ( - Query_Validators_FullMethodName = "/initia.mstaking.v1.Query/Validators" - Query_Validator_FullMethodName = "/initia.mstaking.v1.Query/Validator" - Query_ValidatorDelegations_FullMethodName = "/initia.mstaking.v1.Query/ValidatorDelegations" - Query_ValidatorUnbondingDelegations_FullMethodName = "/initia.mstaking.v1.Query/ValidatorUnbondingDelegations" - Query_Delegation_FullMethodName = "/initia.mstaking.v1.Query/Delegation" - Query_UnbondingDelegation_FullMethodName = "/initia.mstaking.v1.Query/UnbondingDelegation" - Query_DelegatorDelegations_FullMethodName = "/initia.mstaking.v1.Query/DelegatorDelegations" - Query_DelegatorUnbondingDelegations_FullMethodName = "/initia.mstaking.v1.Query/DelegatorUnbondingDelegations" - Query_Redelegations_FullMethodName = "/initia.mstaking.v1.Query/Redelegations" - Query_DelegatorValidators_FullMethodName = "/initia.mstaking.v1.Query/DelegatorValidators" - Query_DelegatorValidator_FullMethodName = "/initia.mstaking.v1.Query/DelegatorValidator" - Query_Pool_FullMethodName = "/initia.mstaking.v1.Query/Pool" - Query_Params_FullMethodName = "/initia.mstaking.v1.Query/Params" + Query_Validators_FullMethodName = "/initia.mstaking.v1.Query/Validators" + Query_Validator_FullMethodName = "/initia.mstaking.v1.Query/Validator" + Query_ValidatorDelegations_FullMethodName = "/initia.mstaking.v1.Query/ValidatorDelegations" + Query_ValidatorUnbondingDelegations_FullMethodName = "/initia.mstaking.v1.Query/ValidatorUnbondingDelegations" + Query_Delegation_FullMethodName = "/initia.mstaking.v1.Query/Delegation" + Query_UnbondingDelegation_FullMethodName = "/initia.mstaking.v1.Query/UnbondingDelegation" + Query_DelegatorDelegations_FullMethodName = "/initia.mstaking.v1.Query/DelegatorDelegations" + Query_DelegatorUnbondingDelegations_FullMethodName = "/initia.mstaking.v1.Query/DelegatorUnbondingDelegations" + Query_Redelegations_FullMethodName = "/initia.mstaking.v1.Query/Redelegations" + Query_DelegatorValidators_FullMethodName = "/initia.mstaking.v1.Query/DelegatorValidators" + Query_DelegatorValidator_FullMethodName = "/initia.mstaking.v1.Query/DelegatorValidator" + Query_DelegatorTotalDelegationBalance_FullMethodName = "/initia.mstaking.v1.Query/DelegatorTotalDelegationBalance" + Query_Pool_FullMethodName = "/initia.mstaking.v1.Query/Pool" + Query_Params_FullMethodName = "/initia.mstaking.v1.Query/Params" ) // QueryClient is the client API for Query service. @@ -64,6 +65,9 @@ type QueryClient interface { // DelegatorValidator queries validator info for given delegator validator // pair. DelegatorValidator(ctx context.Context, in *QueryDelegatorValidatorRequest, opts ...grpc.CallOption) (*QueryDelegatorValidatorResponse, error) + // DelegatorTotalDelegationBalance queries sum of all the delegations' balance of a + // delegator. + DelegatorTotalDelegationBalance(ctx context.Context, in *QueryDelegatorTotalDelegationBalanceRequest, opts ...grpc.CallOption) (*QueryDelegatorTotalDelegationBalanceResponse, error) // Pool queries the pool info. Pool(ctx context.Context, in *QueryPoolRequest, opts ...grpc.CallOption) (*QueryPoolResponse, error) // Parameters queries the staking parameters. @@ -177,6 +181,15 @@ func (c *queryClient) DelegatorValidator(ctx context.Context, in *QueryDelegator return out, nil } +func (c *queryClient) DelegatorTotalDelegationBalance(ctx context.Context, in *QueryDelegatorTotalDelegationBalanceRequest, opts ...grpc.CallOption) (*QueryDelegatorTotalDelegationBalanceResponse, error) { + out := new(QueryDelegatorTotalDelegationBalanceResponse) + err := c.cc.Invoke(ctx, Query_DelegatorTotalDelegationBalance_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *queryClient) Pool(ctx context.Context, in *QueryPoolRequest, opts ...grpc.CallOption) (*QueryPoolResponse, error) { out := new(QueryPoolResponse) err := c.cc.Invoke(ctx, Query_Pool_FullMethodName, in, out, opts...) @@ -225,6 +238,9 @@ type QueryServer interface { // DelegatorValidator queries validator info for given delegator validator // pair. DelegatorValidator(context.Context, *QueryDelegatorValidatorRequest) (*QueryDelegatorValidatorResponse, error) + // DelegatorTotalDelegationBalance queries sum of all the delegations' balance of a + // delegator. + DelegatorTotalDelegationBalance(context.Context, *QueryDelegatorTotalDelegationBalanceRequest) (*QueryDelegatorTotalDelegationBalanceResponse, error) // Pool queries the pool info. Pool(context.Context, *QueryPoolRequest) (*QueryPoolResponse, error) // Parameters queries the staking parameters. @@ -269,6 +285,9 @@ func (UnimplementedQueryServer) DelegatorValidators(context.Context, *QueryDeleg func (UnimplementedQueryServer) DelegatorValidator(context.Context, *QueryDelegatorValidatorRequest) (*QueryDelegatorValidatorResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DelegatorValidator not implemented") } +func (UnimplementedQueryServer) DelegatorTotalDelegationBalance(context.Context, *QueryDelegatorTotalDelegationBalanceRequest) (*QueryDelegatorTotalDelegationBalanceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DelegatorTotalDelegationBalance not implemented") +} func (UnimplementedQueryServer) Pool(context.Context, *QueryPoolRequest) (*QueryPoolResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Pool not implemented") } @@ -486,6 +505,24 @@ func _Query_DelegatorValidator_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } +func _Query_DelegatorTotalDelegationBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryDelegatorTotalDelegationBalanceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).DelegatorTotalDelegationBalance(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_DelegatorTotalDelegationBalance_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).DelegatorTotalDelegationBalance(ctx, req.(*QueryDelegatorTotalDelegationBalanceRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _Query_Pool_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryPoolRequest) if err := dec(in); err != nil { @@ -573,6 +610,10 @@ var Query_ServiceDesc = grpc.ServiceDesc{ MethodName: "DelegatorValidator", Handler: _Query_DelegatorValidator_Handler, }, + { + MethodName: "DelegatorTotalDelegationBalance", + Handler: _Query_DelegatorTotalDelegationBalance_Handler, + }, { MethodName: "Pool", Handler: _Query_Pool_Handler, diff --git a/app/blocksdk.go b/app/blocksdk.go index 02b8cac77..3c04c961e 100644 --- a/app/blocksdk.go +++ b/app/blocksdk.go @@ -91,7 +91,7 @@ func setupBlockSDK( SignModeHandler: app.txConfig.SignModeHandler(), }, IBCkeeper: app.IBCKeeper, - MoveKeeper: movekeeper.NewDexKeeper(app.MoveKeeper), + MoveKeeper: movekeeper.NewAnteKeeper(movekeeper.NewDexKeeper(app.MoveKeeper), movekeeper.NewEIP1559FeeKeeper(app.MoveKeeper)), Codec: app.appCodec, TxEncoder: app.txConfig.TxEncoder(), AuctionKeeper: *app.AuctionKeeper, diff --git a/app/modules.go b/app/modules.go index ea417e2e3..5668f06cd 100644 --- a/app/modules.go +++ b/app/modules.go @@ -217,6 +217,7 @@ func orderEndBlockers() []string { marketmaptypes.ModuleName, forwardingtypes.ModuleName, ratelimittypes.ModuleName, + movetypes.ModuleName, } } diff --git a/proto/initia/move/v1/genesis.proto b/proto/initia/move/v1/genesis.proto index 24bc85375..0291dd611 100644 --- a/proto/initia/move/v1/genesis.proto +++ b/proto/initia/move/v1/genesis.proto @@ -45,4 +45,9 @@ message GenesisState { (gogoproto.nullable) = false, (amino.dont_omitempty) = true ]; + EIP1559FeeParams eip1559_feeparams = 10 [ + (gogoproto.jsontag) = "eip1559_feeparams,omitempty", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; } diff --git a/proto/initia/move/v1/query.proto b/proto/initia/move/v1/query.proto index 56b8a597e..33bd6223b 100644 --- a/proto/initia/move/v1/query.proto +++ b/proto/initia/move/v1/query.proto @@ -114,6 +114,11 @@ service Query { rpc Denom(QueryDenomRequest) returns (QueryDenomResponse) { option (google.api.http).get = "/initia/move/v1/denom"; } + + // EIP1559FeeParams queries the EIP1559 fee params + rpc EIP1559FeeParams(QueryEIP1559FeeParamsRequest) returns (QueryEIP1559FeeParamsResponse) { + option (google.api.http).get = "/initia/move/v1/eip1559_feeparams"; + } } // QueryModuleRequest is the request type for the Query/Module RPC @@ -418,3 +423,11 @@ message QueryDenomRequest { message QueryDenomResponse { string denom = 1; } + +// QueryEIP1559FeeParamsRequest is the request type for the Query/EIP1559FeeParams RPC method. +message QueryEIP1559FeeParamsRequest {} + +// QueryEIP1559FeeParamsResponse is the response type for the Query/EIP1559FeeParams RPC method. +message QueryEIP1559FeeParamsResponse { + EIP1559FeeParams eip1559_feeparams = 1 [(gogoproto.nullable) = false]; +} \ No newline at end of file diff --git a/proto/initia/move/v1/tx.proto b/proto/initia/move/v1/tx.proto index 4846c2791..0f94dc4ef 100644 --- a/proto/initia/move/v1/tx.proto +++ b/proto/initia/move/v1/tx.proto @@ -48,6 +48,10 @@ service Msg { // UpdateParams defines an operation for updating the x/move module // parameters. rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); + + // UpdateEIP1559FeeParams defines an operation for updating the x/move module + // eip1559 fee params. + rpc UpdateEIP1559FeeParams(MsgUpdateEIP1559FeeParams) returns (MsgUpdateEIP1559FeeParamsResponse); } // MsgPublish is the message to store compiled Move module @@ -351,3 +355,22 @@ message MsgUpdateParams { // MsgUpdateParamsResponse defines the response structure for executing a // MsgUpdateParams message. message MsgUpdateParamsResponse {} + +// MsgUpdateEIP1559FeeParams is the Msg/UpdateEIP1559FeeParams request type. +message MsgUpdateEIP1559FeeParams { + option (cosmos.msg.v1.signer) = "authority"; + option (amino.name) = "move/MsgUpdateEIP1559FeeParams"; + + // authority is the address that controls the module + // (defaults to x/gov unless overwritten). + string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + // eip1559_feeparams defines the x/move parameters to update. + EIP1559FeeParams eip1559_feeparams = 2 [ + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; +} + +// MsgUpdateEIP1559FeeParamsResponse defines the response structure for executing a +// MsgUpdateEIP1559FeeParams message. +message MsgUpdateEIP1559FeeParamsResponse {} diff --git a/proto/initia/move/v1/types.proto b/proto/initia/move/v1/types.proto index e3d8d2c5c..d08afd95c 100644 --- a/proto/initia/move/v1/types.proto +++ b/proto/initia/move/v1/types.proto @@ -135,3 +135,16 @@ message ExecuteAuthorizationItem { // FunctionName is the name of function to execute with wildcard '*' support repeated string function_names = 3 [(gogoproto.nullable) = true]; } + +message EIP1559FeeParams { + int64 base_fee = 1; + int64 min_base_fee = 2; + int64 max_base_fee = 3; + int64 target_gas = 4; + string max_change_rate = 5 [ + (gogoproto.moretags) = "yaml:\"max_change_rate\"", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; +} \ No newline at end of file diff --git a/x/move/abci.go b/x/move/abci.go index 470536c4f..7b0da6b12 100644 --- a/x/move/abci.go +++ b/x/move/abci.go @@ -10,6 +10,8 @@ import ( "github.com/cosmos/cosmos-sdk/telemetry" + sdk "github.com/cosmos/cosmos-sdk/types" + vmtypes "github.com/initia-labs/movevm/types" ) @@ -100,3 +102,10 @@ func BeginBlocker(ctx context.Context, k keeper.Keeper, vc address.Codec) error return nil } + +func EndBlocker(ctx context.Context, k keeper.Keeper) error { + defer telemetry.ModuleMeasureSince(types.ModuleName, time.Now(), telemetry.MetricKeyEndBlocker) + + // update base fee + return k.EIP1559FeeKeeper().UpdateBaseFee(sdk.UnwrapSDKContext(ctx)) +} diff --git a/x/move/abci_test.go b/x/move/abci_test.go index d68bdf271..e66378348 100644 --- a/x/move/abci_test.go +++ b/x/move/abci_test.go @@ -3,6 +3,7 @@ package move_test import ( "testing" + "cosmossdk.io/math" "github.com/stretchr/testify/require" abci "github.com/cometbft/cometbft/abci/types" @@ -14,6 +15,8 @@ import ( "github.com/initia-labs/initia/x/move/types" vmtypes "github.com/initia-labs/movevm/types" + + banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" ) func Test_BeginBlocker(t *testing.T) { @@ -109,3 +112,80 @@ func Test_BeginBlocker(t *testing.T) { // half rewards and undelegated coins checkBalance(t, app, addr2, genCoins.Add(delegatorRewardCoins...)) } + +func Test_EndBlocker(t *testing.T) { + app := createApp(t) + + _, err := app.FinalizeBlock(&abci.RequestFinalizeBlock{Height: app.LastBlockHeight() + 1}) + require.NoError(t, err) + + ctx := app.BaseApp.NewUncachedContext(false, tmproto.Header{}) + err = app.MoveKeeper.EIP1559FeeKeeper().SetParams(ctx, types.EIP1559FeeParams{ + BaseFee: 10_000, + MinBaseFee: 1_000, + MaxBaseFee: 10_000_000, + TargetGas: 1_000_000, + MaxChangeRate: math.LegacyNewDecWithPrec(1, 1), + }) + require.NoError(t, err) + _, err = app.Commit() + require.NoError(t, err) + + _, err = app.FinalizeBlock(&abci.RequestFinalizeBlock{Height: app.LastBlockHeight() + 1}) + require.NoError(t, err) + + // initialize staking for secondBondDenom + ctx = app.BaseApp.NewUncachedContext(false, tmproto.Header{}) + err = app.MoveKeeper.InitializeStaking(ctx, secondBondDenom) + require.NoError(t, err) + + // fund addr2 + app.BankKeeper.SendCoins(ctx, types.StdAddr, addr2, sdk.NewCoins(secondBondCoin)) + + _, err = app.Commit() + require.NoError(t, err) + + // delegate coins via move staking module + denomLP := "ulp" + metadataLP := types.NamedObjectAddress(vmtypes.StdAddress, denomLP) + + valAddrArg, err := vmtypes.SerializeString(sdk.ValAddress(addr1).String()) + require.NoError(t, err) + + amountArg, err := vmtypes.SerializeUint64(10) + require.NoError(t, err) + + delegateMsg := types.MsgExecute{ + Sender: addr2.String(), + ModuleAddress: types.StdAddr.String(), + ModuleName: types.MoveModuleNameStaking, + FunctionName: types.FunctionNameStakingDelegateScript, + TypeArgs: []string{}, + Args: [][]byte{metadataLP[:], valAddrArg, amountArg}, + } + + _, err = executeMsgsWithGasInfo(t, app, []sdk.Msg{&delegateMsg}, []uint64{1}, []uint64{0}, priv2) + require.NoError(t, err) + + ctx = app.BaseApp.NewUncachedContext(false, tmproto.Header{}) + lessBaseFee, err := app.MoveKeeper.EIP1559FeeKeeper().GetBaseFee(ctx) + require.NoError(t, err) + require.Less(t, lessBaseFee, types.DefaultBaseFee) + + msgs := []sdk.Msg{} + for i := 0; i < 100; i++ { + msgs = append(msgs, &banktypes.MsgSend{ + FromAddress: addr2.String(), + ToAddress: addr1.String(), + Amount: sdk.NewCoins(sdk.NewInt64Coin(secondBondDenom, 10)), + }) + } + + _, err = executeMsgsWithGasInfo(t, app, msgs, []uint64{1}, []uint64{1}, priv2) + require.NoError(t, err) + + ctx = app.BaseApp.NewUncachedContext(false, tmproto.Header{}) + baseFee, err := app.MoveKeeper.EIP1559FeeKeeper().GetBaseFee(ctx) + require.NoError(t, err) + require.Greater(t, baseFee, lessBaseFee) +} diff --git a/x/move/ante/fee.go b/x/move/ante/fee.go index 8c94a2957..46f3c9164 100644 --- a/x/move/ante/fee.go +++ b/x/move/ante/fee.go @@ -44,6 +44,7 @@ func (fc MempoolFeeChecker) CheckTxFeeWithMinGasPrices(ctx sdk.Context, tx sdk.T var baseDenom string var err error + if fc.keeper != nil { baseDenom, err = fc.keeper.BaseDenom(ctx) if err != nil { @@ -60,7 +61,7 @@ func (fc MempoolFeeChecker) CheckTxFeeWithMinGasPrices(ctx sdk.Context, tx sdk.T for _, coin := range feeTx.GetFee() { basePrice, err := fc.fetchPrice(ctx, baseDenom, coin.Denom) if err != nil { - return nil, 1, err + return nil, 0, err } quoteAmount := coin.Amount @@ -70,6 +71,21 @@ func (fc MempoolFeeChecker) CheckTxFeeWithMinGasPrices(ctx sdk.Context, tx sdk.T if totalFeeBaseAmount.GT(math.OneInt()) { priority = totalFeeBaseAmount.Int64() } + + baseFee, err := fc.keeper.GetBaseFee(ctx) + if err != nil { + return nil, 0, err + } + + if !totalFeeBaseAmount.GTE(math.NewInt(baseFee)) { + return nil, 0, errors.Wrapf( + sdkerrors.ErrInsufficientFee, + "insufficient base fee; got: %s (sum %s), base fee required: %d", + feeCoins, + totalFeeBaseAmount, + baseFee, + ) + } } if !minGasPrices.IsZero() { @@ -79,7 +95,6 @@ func (fc MempoolFeeChecker) CheckTxFeeWithMinGasPrices(ctx sdk.Context, tx sdk.T // convert baseDenom min gas prices to quote denom prices // and check the paid fee is enough or not. isSufficient := false - sumInBaseUnit := math.ZeroInt() if fc.keeper != nil { requiredBaseAmount := requiredFees.AmountOfNoDenomValidation(baseDenom) @@ -93,7 +108,7 @@ func (fc MempoolFeeChecker) CheckTxFeeWithMinGasPrices(ctx sdk.Context, tx sdk.T sdkerrors.ErrInsufficientFee, "insufficient fees; got: %s (sum %s), required: %s", feeCoins, - sumInBaseUnit, + totalFeeBaseAmount, requiredFees, ) } diff --git a/x/move/ante/fee_test.go b/x/move/ante/fee_test.go index 4f154c9dd..a942bb9fb 100644 --- a/x/move/ante/fee_test.go +++ b/x/move/ante/fee_test.go @@ -22,6 +22,7 @@ type TestAnteKeeper struct { weights map[string][]math.LegacyDec baseDenom string baseMinGasPrice math.LegacyDec + baseFee int64 } func (k TestAnteKeeper) HasDexPair(_ context.Context, denomQuote string) (bool, error) { @@ -60,6 +61,10 @@ func (k TestAnteKeeper) BaseMinGasPrice(ctx context.Context) (math.LegacyDec, er return k.baseMinGasPrice, nil } +func (k TestAnteKeeper) GetBaseFee(ctx context.Context) (int64, error) { + return k.baseFee, nil +} + func (suite *AnteTestSuite) TestEnsureMempoolFees() { suite.SetupTest() // setup suite.txBuilder = suite.clientCtx.TxConfig.NewTxBuilder() @@ -151,3 +156,80 @@ func (suite *AnteTestSuite) TestEnsureMempoolFees() { _, _, err = fc.CheckTxFeeWithMinGasPrices(suite.ctx, tx) suite.Require().NotNil(err, "Decorator should have errored on too low fee for local gasPrice") } + +func (suite *AnteTestSuite) TestEnsureMempoolFeesWithBaseFee() { + suite.SetupTest() // setup + suite.txBuilder = suite.clientCtx.TxConfig.NewTxBuilder() + + dexPools := make(map[string][]math.Int) + dexPools["atom"] = []math.Int{ + math.NewInt(10), // base + math.NewInt(20), // quote + } + + dexWeights := make(map[string][]math.LegacyDec) + dexWeights["atom"] = []math.LegacyDec{ + math.LegacyNewDecWithPrec(5, 1), // base + math.LegacyNewDecWithPrec(5, 1), // quote + } + + // set price 0.5 base == 1 quote + fc := ante.NewMempoolFeeChecker(TestAnteKeeper{ + pools: dexPools, + weights: dexWeights, + baseDenom: baseDenom, + baseMinGasPrice: math.LegacyZeroDec(), + baseFee: 200, + }) + + // keys and addresses + priv1, _, addr1 := testdata.KeyTestPubAddr() + + // msg and signatures + // gas price 0.0005 + msg := testdata.NewTestMsg(addr1) + feeAmount := sdk.NewCoins(sdk.NewCoin(baseDenom, math.NewInt(100)), sdk.NewCoin("atom", math.NewInt(200))) + gasLimit := uint64(200_000) + + suite.Require().NoError(suite.txBuilder.SetMsgs(msg)) + suite.txBuilder.SetFeeAmount(feeAmount) + suite.txBuilder.SetGasLimit(gasLimit) + + privs, accNums, accSeqs := []cryptotypes.PrivKey{priv1}, []uint64{0}, []uint64{0} + tx, err := suite.CreateTestTx(privs, accNums, accSeqs, suite.ctx.ChainID()) + suite.Require().NoError(err) + + suite.ctx = suite.ctx.WithIsCheckTx(true) + + // Base fee: 200 = 100(init) + 100(atom) + _, _, err = fc.CheckTxFeeWithMinGasPrices(suite.ctx, tx) + suite.Require().Nil(err) + + fc = ante.NewMempoolFeeChecker(TestAnteKeeper{ + pools: dexPools, + weights: dexWeights, + baseDenom: baseDenom, + baseMinGasPrice: math.LegacyZeroDec(), + baseFee: 400, + }) + + // Base fee: 400 > 100(init) + 100(atom) + _, _, err = fc.CheckTxFeeWithMinGasPrices(suite.ctx, tx) + suite.Require().NotNil(err) + + fc = ante.NewMempoolFeeChecker(TestAnteKeeper{ + pools: dexPools, + weights: dexWeights, + baseDenom: baseDenom, + baseMinGasPrice: math.LegacyZeroDec(), + baseFee: 150, + }) + + basePrice := sdk.NewDecCoinFromDec(baseDenom, math.LegacyNewDecWithPrec(4, 3)) + highGasPrice := []sdk.DecCoin{basePrice} + suite.ctx = suite.ctx.WithMinGasPrices(highGasPrice) + + // Base fee: 150 < 100(init) + 100(atom), but min gas price = 800 + _, _, err = fc.CheckTxFeeWithMinGasPrices(suite.ctx, tx) + suite.Require().NotNil(err) +} diff --git a/x/move/common_test.go b/x/move/common_test.go index 9a0f9e42e..8e3d3b668 100644 --- a/x/move/common_test.go +++ b/x/move/common_test.go @@ -111,6 +111,13 @@ func executeMsgs(t *testing.T, app *initiaapp.InitiaApp, msgs []sdk.Msg, account return err } +func executeMsgsWithGasInfo(t *testing.T, app *initiaapp.InitiaApp, msgs []sdk.Msg, accountNum []uint64, sequenceNum []uint64, priv ...cryptotypes.PrivKey) (sdk.GasInfo, error) { + txGen := initiaapp.MakeEncodingConfig().TxConfig + header := tmproto.Header{Height: app.LastBlockHeight() + 1} + gas, _, err := testutilsims.SignCheckDeliver(t, txGen, app.BaseApp, header, msgs, "", accountNum, sequenceNum, true, true, priv...) + return gas, err +} + func decToVmArgument(t *testing.T, val math.LegacyDec) []byte { // big-endian bytes (bytes are cloned) bz := val.BigInt().Bytes() diff --git a/x/move/keeper/ante.go b/x/move/keeper/ante.go new file mode 100644 index 000000000..355711429 --- /dev/null +++ b/x/move/keeper/ante.go @@ -0,0 +1,25 @@ +package keeper + +import ( + "context" + + "github.com/initia-labs/initia/x/move/types" +) + +type AnteKeeper struct { + DexKeeper + eip1559FeeKeeper EIP1559FeeKeeper +} + +var _ types.AnteKeeper = AnteKeeper{} + +func NewAnteKeeper(dexKeeper DexKeeper, eip1559FeeKeeper EIP1559FeeKeeper) AnteKeeper { + return AnteKeeper{ + DexKeeper: dexKeeper, + eip1559FeeKeeper: eip1559FeeKeeper, + } +} + +func (k AnteKeeper) GetBaseFee(ctx context.Context) (int64, error) { + return k.eip1559FeeKeeper.GetBaseFee(ctx) +} diff --git a/x/move/keeper/common_test.go b/x/move/keeper/common_test.go index 96684939b..08a69d3ed 100644 --- a/x/move/keeper/common_test.go +++ b/x/move/keeper/common_test.go @@ -419,6 +419,15 @@ func _createTestInput( require.NoError(t, moveKeeper.SetRawParams(ctx, moveParams.ToRaw())) stakingKeeper.SetSlashingHooks(moveKeeper.Hooks()) + eip1559FeeKeeper := movekeeper.NewEIP1559FeeKeeper(moveKeeper) + require.NoError(t, eip1559FeeKeeper.SetParams(ctx, movetypes.EIP1559FeeParams{ + MinBaseFee: 10, + MaxBaseFee: 200, + BaseFee: 100, + TargetGas: 100000, + MaxChangeRate: math.LegacyNewDecWithPrec(1, 1), + })) + // load stdlib module bytes moduleBytes, err := precompile.ReadStdlib() require.NoError(t, err) diff --git a/x/move/keeper/dex.go b/x/move/keeper/dex.go index 4359c732f..bae4b24a0 100644 --- a/x/move/keeper/dex.go +++ b/x/move/keeper/dex.go @@ -13,7 +13,6 @@ import ( vmtypes "github.com/initia-labs/movevm/types" ) -var _ types.AnteKeeper = DexKeeper{} var _ distrtypes.DexKeeper = DexKeeper{} // DexKeeper implement dex features diff --git a/x/move/keeper/eip1559.go b/x/move/keeper/eip1559.go new file mode 100644 index 000000000..5fc3988d6 --- /dev/null +++ b/x/move/keeper/eip1559.go @@ -0,0 +1,60 @@ +package keeper + +import ( + "context" + + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/initia-labs/initia/x/move/types" + + "cosmossdk.io/math" +) + +type EIP1559FeeKeeper struct { + *Keeper +} + +func NewEIP1559FeeKeeper(moveKeeper *Keeper) EIP1559FeeKeeper { + return EIP1559FeeKeeper{ + moveKeeper, + } +} + +func (k EIP1559FeeKeeper) SetParams(ctx context.Context, params types.EIP1559FeeParams) error { + return k.EIP1559FeeParams.Set(ctx, params) +} + +func (k EIP1559FeeKeeper) GetParams(ctx context.Context) (types.EIP1559FeeParams, error) { + return k.EIP1559FeeParams.Get(ctx) +} + +func (k EIP1559FeeKeeper) GetBaseFee(ctx context.Context) (int64, error) { + params, err := k.EIP1559FeeParams.Get(ctx) + if err != nil { + return 0, err + } + + return params.BaseFee, nil +} + +// this should be called in EndBlocker +func (k EIP1559FeeKeeper) UpdateBaseFee(ctx sdk.Context) error { + params, err := k.EIP1559FeeParams.Get(ctx) + if err != nil { + return err + } + + gasUsed := ctx.BlockGasMeter().GasConsumed() + + // baseFeeMultiplier = (gasUsed - targetGas) / targetGas * maxChangeRate + 1 + baseFeeMultiplier := math.LegacyNewDec(int64(gasUsed) - params.TargetGas).QuoInt64(params.TargetGas).Mul(params.MaxChangeRate).Add(math.OneInt().ToLegacyDec()) + newBaseFee := math.LegacyNewDec(params.BaseFee).Mul(baseFeeMultiplier).TruncateInt64() + newBaseFee = math.Max(newBaseFee, params.MinBaseFee) + newBaseFee = math.Min(newBaseFee, params.MaxBaseFee) + params.BaseFee = newBaseFee + + err = k.EIP1559FeeParams.Set(ctx, params) + if err != nil { + return err + } + return nil +} diff --git a/x/move/keeper/eip1559_test.go b/x/move/keeper/eip1559_test.go new file mode 100644 index 000000000..b33237e13 --- /dev/null +++ b/x/move/keeper/eip1559_test.go @@ -0,0 +1,58 @@ +package keeper_test + +import ( + "testing" + + "cosmossdk.io/math" + storetypes "cosmossdk.io/store/types" + "github.com/initia-labs/initia/x/move/keeper" + "github.com/initia-labs/initia/x/move/types" + "github.com/stretchr/testify/require" +) + +func Test_UpdateBaseFee(t *testing.T) { + ctx, input := createDefaultTestInput(t) + eip1559FeeKeeper := keeper.NewEIP1559FeeKeeper(&input.MoveKeeper) + + err := eip1559FeeKeeper.SetParams(ctx, types.EIP1559FeeParams{ + MinBaseFee: 10, + MaxBaseFee: 200, + BaseFee: 100, + TargetGas: 100000, + MaxChangeRate: math.LegacyNewDecWithPrec(1, 1), + }) + require.NoError(t, err) + + baseFee, err := eip1559FeeKeeper.GetBaseFee(ctx) + require.Equal(t, int64(100), baseFee) + + ctx = ctx.WithBlockGasMeter(storetypes.NewInfiniteGasMeter()) + ctx.BlockGasMeter().ConsumeGas(100000, "test") + + // update base fee + err = eip1559FeeKeeper.UpdateBaseFee(ctx) + require.NoError(t, err) + + baseFee, err = eip1559FeeKeeper.GetBaseFee(ctx) + require.Equal(t, int64(100), baseFee) + + ctx = ctx.WithBlockGasMeter(storetypes.NewInfiniteGasMeter()) + ctx.BlockGasMeter().ConsumeGas(200000, "test") + + // update base fee + err = eip1559FeeKeeper.UpdateBaseFee(ctx) + require.NoError(t, err) + + baseFee, err = eip1559FeeKeeper.GetBaseFee(ctx) + require.Equal(t, int64(110), baseFee) + + ctx = ctx.WithBlockGasMeter(storetypes.NewInfiniteGasMeter()) + ctx.BlockGasMeter().ConsumeGas(0, "test") + + // update base fee + err = eip1559FeeKeeper.UpdateBaseFee(ctx) + require.NoError(t, err) + + baseFee, err = eip1559FeeKeeper.GetBaseFee(ctx) + require.Equal(t, int64(99), baseFee) +} diff --git a/x/move/keeper/genesis.go b/x/move/keeper/genesis.go index 2bffb97f3..8964b3cb9 100644 --- a/x/move/keeper/genesis.go +++ b/x/move/keeper/genesis.go @@ -151,6 +151,12 @@ func (k Keeper) InitGenesis(ctx context.Context, moduleNames []string, genState } } + eip1559FeeKeeper := NewEIP1559FeeKeeper(&k) + eip1559Feeparams := genState.GetEip1559Feeparams() + if err := eip1559FeeKeeper.SetParams(ctx, eip1559Feeparams); err != nil { + return err + } + return nil } @@ -224,5 +230,11 @@ func (k Keeper) ExportGenesis(ctx context.Context) *types.GenesisState { panic(err) } + eip1559FeeKeeper := NewEIP1559FeeKeeper(&k) + genState.Eip1559Feeparams, err = eip1559FeeKeeper.GetParams(ctx) + if err != nil { + panic(err) + } + return &genState } diff --git a/x/move/keeper/keeper.go b/x/move/keeper/keeper.go index 57aed549d..f162e6c94 100644 --- a/x/move/keeper/keeper.go +++ b/x/move/keeper/keeper.go @@ -40,6 +40,7 @@ type Keeper struct { dexKeeper DexKeeper balancerKeeper BalancerKeeper stableSwapKeeper StableSwapKeeper + eip1559FeeKeeper EIP1559FeeKeeper // Msg server router msgRouter baseapp.MessageRouter @@ -57,6 +58,7 @@ type Keeper struct { Params collections.Item[types.RawParams] DexPairs collections.Map[[]byte, []byte] VMStore collections.Map[[]byte, []byte] + EIP1559FeeParams collections.Item[types.EIP1559FeeParams] ac address.Codec vc address.Codec @@ -129,6 +131,7 @@ func NewKeeper( Params: collections.NewItem(sb, types.ParamsKey, "params", codec.CollValue[types.RawParams](cdc)), DexPairs: collections.NewMap(sb, types.DexPairPrefix, "dex_pairs", collections.BytesKey, collections.BytesValue), VMStore: collections.NewMap(sb, types.VMStorePrefix, "vm_store", collections.BytesKey, collections.BytesValue), + EIP1559FeeParams: collections.NewItem(sb, types.EIP1559FeeParamsKey, "eip1559_feeparams", codec.CollValue[types.EIP1559FeeParams](cdc)), ac: ac, vc: vc, @@ -144,6 +147,7 @@ func NewKeeper( k.dexKeeper = NewDexKeeper(k) k.balancerKeeper = NewBalancerKeeper(k) k.stableSwapKeeper = NewStableSwapKeeper(k) + k.eip1559FeeKeeper = NewEIP1559FeeKeeper(k) return k } @@ -184,6 +188,11 @@ func (k Keeper) StableSwapKeeper() StableSwapKeeper { return k.stableSwapKeeper } +// EIP1559FeeKeeper returns the eip1559 fee keeper +func (k Keeper) EIP1559FeeKeeper() EIP1559FeeKeeper { + return k.eip1559FeeKeeper +} + // GetExecutionCounter get execution counter for genesis func (k Keeper) GetExecutionCounter( ctx context.Context, diff --git a/x/move/keeper/msg_server.go b/x/move/keeper/msg_server.go index b14e18b4b..ef5d68e85 100644 --- a/x/move/keeper/msg_server.go +++ b/x/move/keeper/msg_server.go @@ -461,3 +461,21 @@ func (ms MsgServer) UpdateParams(context context.Context, req *types.MsgUpdatePa return &types.MsgUpdateParamsResponse{}, nil } + +func (ms MsgServer) UpdateEIP1559FeeParams(context context.Context, req *types.MsgUpdateEIP1559FeeParams) (*types.MsgUpdateEIP1559FeeParamsResponse, error) { + defer telemetry.MeasureSince(time.Now(), "move", "msg", "update-eip1559-fee-params") + if ms.authority != req.Authority { + return nil, errors.Wrapf(govtypes.ErrInvalidSigner, "invalid authority; expected %s, got %s", ms.authority, req.Authority) + } + + ctx := sdk.UnwrapSDKContext(context) + if err := req.Eip1559Feeparams.Validate(); err != nil { + return nil, err + } + + if err := ms.Keeper.eip1559FeeKeeper.SetParams(ctx, req.Eip1559Feeparams); err != nil { + return nil, err + } + + return &types.MsgUpdateEIP1559FeeParamsResponse{}, nil +} diff --git a/x/move/keeper/msg_server_test.go b/x/move/keeper/msg_server_test.go index a70aefb1a..c7e34158a 100644 --- a/x/move/keeper/msg_server_test.go +++ b/x/move/keeper/msg_server_test.go @@ -3,6 +3,7 @@ package keeper_test import ( "testing" + "cosmossdk.io/math" "github.com/stretchr/testify/require" sdk "github.com/cosmos/cosmos-sdk/types" @@ -234,3 +235,26 @@ func Test_GovScriptMsg(t *testing.T) { }) require.NoError(t, err) } + +func Test_UpdateEIP1559FeeParams(t *testing.T) { + ctx, input := createDefaultTestInput(t) + ms := keeper.NewMsgServerImpl(&input.MoveKeeper) + + msg := &types.MsgUpdateEIP1559FeeParams{ + Authority: input.MoveKeeper.GetAuthority(), + Eip1559Feeparams: types.EIP1559FeeParams{ + BaseFee: 100, + MaxBaseFee: 200, + MinBaseFee: 10, + MaxChangeRate: math.LegacyNewDecWithPrec(10, 2), + }, + } + _, err := ms.UpdateEIP1559FeeParams(ctx, msg) + require.NoError(t, err) + + eip1559FeeKeeper := keeper.NewEIP1559FeeKeeper(&input.MoveKeeper) + + params, err := eip1559FeeKeeper.GetParams(ctx) + require.NoError(t, err) + require.Equal(t, msg.Eip1559Feeparams, params) +} diff --git a/x/move/keeper/querier.go b/x/move/keeper/querier.go index 8867e453b..d16ac2452 100644 --- a/x/move/keeper/querier.go +++ b/x/move/keeper/querier.go @@ -456,3 +456,15 @@ func (q Querier) Metadata(ctx context.Context, req *types.QueryMetadataRequest) Metadata: metadataAddr.String(), }, nil } + +// EIP1559FeeParams implements types.QueryServer. +func (q Querier) EIP1559FeeParams(ctx context.Context, req *types.QueryEIP1559FeeParamsRequest) (*types.QueryEIP1559FeeParamsResponse, error) { + params, err := q.eip1559FeeKeeper.GetParams(ctx) + if err != nil { + return nil, err + } + + return &types.QueryEIP1559FeeParamsResponse{ + Eip1559Feeparams: params, + }, nil +} diff --git a/x/move/keeper/querier_test.go b/x/move/keeper/querier_test.go index 09343f1d8..1639f9024 100644 --- a/x/move/keeper/querier_test.go +++ b/x/move/keeper/querier_test.go @@ -466,3 +466,16 @@ func Test_Query_Denom(t *testing.T) { require.NoError(t, err) require.Equal(t, bondDenom, res.Denom) } + +func Test_Query_EIP1559FeeParams(t *testing.T) { + ctx, input := createDefaultTestInput(t) + + querier := keeper.NewQuerier(&input.MoveKeeper) + res, err := querier.EIP1559FeeParams(ctx, &types.QueryEIP1559FeeParamsRequest{}) + require.NoError(t, err) + + eip1559FeeKeeper := keeper.NewEIP1559FeeKeeper(&input.MoveKeeper) + params, err := eip1559FeeKeeper.GetParams(ctx) + require.NoError(t, err) + require.Equal(t, params, res.Eip1559Feeparams) +} diff --git a/x/move/module.go b/x/move/module.go index ba061a1e6..046b26b52 100644 --- a/x/move/module.go +++ b/x/move/module.go @@ -153,3 +153,8 @@ func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.Raw func (am AppModule) BeginBlock(ctx context.Context) error { return BeginBlocker(ctx, am.keeper, am.vc) } + +// EndBlock returns the end blocker for the move module. +func (am AppModule) EndBlock(ctx context.Context) error { + return EndBlocker(ctx, am.keeper) +} diff --git a/x/move/types/eip1559_params.go b/x/move/types/eip1559_params.go new file mode 100644 index 000000000..95f70c8bf --- /dev/null +++ b/x/move/types/eip1559_params.go @@ -0,0 +1,64 @@ +package types + +import ( + "fmt" + + "cosmossdk.io/math" +) + +var ( + // 0.01 INIT + DefaultBaseFee int64 = 10_000 + // 0.001 INIT + DefaultMinBaseFee int64 = 1_000 + // 10 INIT + DefaultMaxBaseFee int64 = 10_000_000 + + // 200_000_000 * 0.5 + DefaultTargetGas int64 = 100_000_000 + + // 0.1 + DefaultMaxChangeRate = math.LegacyNewDecWithPrec(1, 1) +) + +func DefaultEIP1559Params() EIP1559FeeParams { + return EIP1559FeeParams{ + BaseFee: DefaultBaseFee, + MinBaseFee: DefaultMinBaseFee, + MaxBaseFee: DefaultMaxBaseFee, + TargetGas: DefaultTargetGas, + MaxChangeRate: DefaultMaxChangeRate, + } +} + +func (p EIP1559FeeParams) Validate() error { + if p.BaseFee < 0 { + return fmt.Errorf("base fee must be non-negative") + } + + if p.MinBaseFee < 0 { + return fmt.Errorf("min base fee must be non-negative") + } + + if p.MaxBaseFee < 0 { + return fmt.Errorf("max base fee must be non-negative") + } + + if p.TargetGas < 0 { + return fmt.Errorf("target gas must be non-negative") + } + + if p.BaseFee < p.MinBaseFee { + return fmt.Errorf("base fee must be greater than or equal to min base fee") + } + + if p.BaseFee > p.MaxBaseFee { + return fmt.Errorf("base fee must be less than or equal to max base fee") + } + + if p.MaxChangeRate.IsNegative() { + return fmt.Errorf("max change rate must be non-negative") + } + + return nil +} diff --git a/x/move/types/exported.go b/x/move/types/exported.go index d7ab20db3..547d717e4 100644 --- a/x/move/types/exported.go +++ b/x/move/types/exported.go @@ -11,4 +11,5 @@ type AnteKeeper interface { GetBaseSpotPrice(ctx context.Context, denomQuote string) (math.LegacyDec, error) BaseDenom(ctx context.Context) (string, error) BaseMinGasPrice(ctx context.Context) (math.LegacyDec, error) + GetBaseFee(ctx context.Context) (int64, error) } diff --git a/x/move/types/genesis.go b/x/move/types/genesis.go index 249c103ee..43641fcd4 100644 --- a/x/move/types/genesis.go +++ b/x/move/types/genesis.go @@ -30,6 +30,7 @@ func DefaultGenesisState() *GenesisState { return &GenesisState{ Stdlibs: modules, Params: DefaultParams(), + Eip1559Feeparams: DefaultEIP1559Params(), ExecutionCounter: 0, Modules: []Module{}, Resources: []Resource{}, diff --git a/x/move/types/genesis.pb.go b/x/move/types/genesis.pb.go index 229588a03..615f24841 100644 --- a/x/move/types/genesis.pb.go +++ b/x/move/types/genesis.pb.go @@ -26,15 +26,16 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // GenesisState - genesis state of x/move type GenesisState struct { - Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` - 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"` - 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"` + Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` + 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"` + 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"` + Eip1559Feeparams EIP1559FeeParams `protobuf:"bytes,10,opt,name=eip1559_feeparams,json=eip1559Feeparams,proto3" json:"eip1559_feeparams,omitempty"` } func (m *GenesisState) Reset() { *m = GenesisState{} } @@ -133,6 +134,13 @@ func (m *GenesisState) GetDexPairs() []DexPair { return nil } +func (m *GenesisState) GetEip1559Feeparams() EIP1559FeeParams { + if m != nil { + return m.Eip1559Feeparams + } + return EIP1559FeeParams{} +} + func init() { proto.RegisterType((*GenesisState)(nil), "initia.move.v1.GenesisState") } @@ -140,38 +148,41 @@ func init() { func init() { proto.RegisterFile("initia/move/v1/genesis.proto", fileDescriptor_40442fa21a3f8cef) } var fileDescriptor_40442fa21a3f8cef = []byte{ - // 496 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x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, 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, + // 538 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x93, 0xcf, 0x6e, 0x12, 0x41, + 0x1c, 0xc7, 0x59, 0xa9, 0x50, 0xa6, 0x68, 0xca, 0x6a, 0xed, 0x88, 0xcd, 0xb2, 0x21, 0x1e, 0x48, + 0xa3, 0xbb, 0x41, 0xd3, 0x43, 0x3d, 0x6e, 0xff, 0x18, 0x0e, 0x26, 0x04, 0x8d, 0x31, 0x1e, 0x24, + 0xc3, 0xf2, 0x83, 0x4e, 0x64, 0x77, 0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0x6d, 0x42, 0xe3, 0xf5, 0xf7, 0x59, 0x25, 0x74, 0xf7, 0x6e, 0x3f, 0x43, 0xb9, + 0xf9, 0x0d, 0x55, 0x80, 0x46, 0xcd, 0x93, 0x93, 0xd3, 0xee, 0x00, 0x40, 0x5d, 0x73, 0x24, 0xaf, + 0xb9, 0xad, 0xfb, 0x2f, 0x5a, 0xed, 0x14, 0xbc, 0x04, 0x50, 0x17, 0xbe, 0xa1, 0x8a, 0x9e, 0x6d, + 0x28, 0xf4, 0xc2, 0x7d, 0x45, 0x5c, 0x2e, 0x01, 0xef, 0xfc, 0x7a, 0x6e, 0x19, 0x37, 0x73, 0xcb, + 0xf8, 0x3d, 0xb7, 0x8c, 0xef, 0x0b, 0x2b, 0x77, 0xb3, 0xb0, 0x72, 0xbf, 0x16, 0x56, 0xee, 0xf3, + 0xf1, 0x90, 0x8a, 0xab, 0xa4, 0xe7, 0xf8, 0x2c, 0x70, 0xb3, 0x13, 0xbc, 0x1c, 0x91, 0x1e, 0x57, + 0x6b, 0x77, 0x92, 0x3d, 0x5a, 0xf9, 0x62, 0x7b, 0x05, 0xf9, 0x64, 0x5f, 0xff, 0x0f, 0x00, 0x00, + 0xff, 0xff, 0x2e, 0x76, 0x2b, 0xad, 0x27, 0x04, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { @@ -194,6 +205,16 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + { + size, err := m.Eip1559Feeparams.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x52 if len(m.DexPairs) > 0 { for iNdEx := len(m.DexPairs) - 1; iNdEx >= 0; iNdEx-- { { @@ -369,6 +390,8 @@ func (m *GenesisState) Size() (n int) { n += 1 + l + sovGenesis(uint64(l)) } } + l = m.Eip1559Feeparams.Size() + n += 1 + l + sovGenesis(uint64(l)) return n } @@ -695,6 +718,39 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Eip1559Feeparams", 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 + } + if err := m.Eip1559Feeparams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenesis(dAtA[iNdEx:]) diff --git a/x/move/types/keys.go b/x/move/types/keys.go index e40435b0c..7eee4ecc7 100644 --- a/x/move/types/keys.go +++ b/x/move/types/keys.go @@ -62,7 +62,8 @@ var ( DexPairPrefix = []byte{0x12} // prefix for dex pairs VMStorePrefix = []byte{0x21} // prefix for vm - ParamsKey = []byte{0x31} // prefix for parameters for module x/move + ParamsKey = []byte{0x31} // prefix for parameters for module x/move + EIP1559FeeParamsKey = []byte{0x32} // prefix for eip1559 fee params ModuleSeparator = byte(0) ChecksumSeparator = byte(1) diff --git a/x/move/types/query.pb.go b/x/move/types/query.pb.go index 2faacd426..2084202a8 100644 --- a/x/move/types/query.pb.go +++ b/x/move/types/query.pb.go @@ -1378,6 +1378,81 @@ func (m *QueryDenomResponse) XXX_DiscardUnknown() { var xxx_messageInfo_QueryDenomResponse proto.InternalMessageInfo +// QueryEIP1559FeeParamsRequest is the request type for the Query/EIP1559FeeParams RPC method. +type QueryEIP1559FeeParamsRequest struct { +} + +func (m *QueryEIP1559FeeParamsRequest) Reset() { *m = QueryEIP1559FeeParamsRequest{} } +func (m *QueryEIP1559FeeParamsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryEIP1559FeeParamsRequest) ProtoMessage() {} +func (*QueryEIP1559FeeParamsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9396b98b4ea22694, []int{33} +} +func (m *QueryEIP1559FeeParamsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryEIP1559FeeParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryEIP1559FeeParamsRequest.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 *QueryEIP1559FeeParamsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryEIP1559FeeParamsRequest.Merge(m, src) +} +func (m *QueryEIP1559FeeParamsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryEIP1559FeeParamsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryEIP1559FeeParamsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryEIP1559FeeParamsRequest proto.InternalMessageInfo + +// QueryEIP1559FeeParamsResponse is the response type for the Query/EIP1559FeeParams RPC method. +type QueryEIP1559FeeParamsResponse struct { + Eip1559Feeparams EIP1559FeeParams `protobuf:"bytes,1,opt,name=eip1559_feeparams,json=eip1559Feeparams,proto3" json:"eip1559_feeparams"` +} + +func (m *QueryEIP1559FeeParamsResponse) Reset() { *m = QueryEIP1559FeeParamsResponse{} } +func (m *QueryEIP1559FeeParamsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryEIP1559FeeParamsResponse) ProtoMessage() {} +func (*QueryEIP1559FeeParamsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9396b98b4ea22694, []int{34} +} +func (m *QueryEIP1559FeeParamsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryEIP1559FeeParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryEIP1559FeeParamsResponse.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 *QueryEIP1559FeeParamsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryEIP1559FeeParamsResponse.Merge(m, src) +} +func (m *QueryEIP1559FeeParamsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryEIP1559FeeParamsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryEIP1559FeeParamsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryEIP1559FeeParamsResponse proto.InternalMessageInfo + func init() { proto.RegisterType((*QueryModuleRequest)(nil), "initia.move.v1.QueryModuleRequest") proto.RegisterType((*QueryModuleResponse)(nil), "initia.move.v1.QueryModuleResponse") @@ -1412,110 +1487,117 @@ func init() { proto.RegisterType((*QueryMetadataResponse)(nil), "initia.move.v1.QueryMetadataResponse") proto.RegisterType((*QueryDenomRequest)(nil), "initia.move.v1.QueryDenomRequest") proto.RegisterType((*QueryDenomResponse)(nil), "initia.move.v1.QueryDenomResponse") + proto.RegisterType((*QueryEIP1559FeeParamsRequest)(nil), "initia.move.v1.QueryEIP1559FeeParamsRequest") + proto.RegisterType((*QueryEIP1559FeeParamsResponse)(nil), "initia.move.v1.QueryEIP1559FeeParamsResponse") } func init() { proto.RegisterFile("initia/move/v1/query.proto", fileDescriptor_9396b98b4ea22694) } var fileDescriptor_9396b98b4ea22694 = []byte{ - // 1560 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0xdf, 0x6f, 0xdb, 0xd4, - 0x17, 0x8f, 0xdb, 0xb4, 0x4d, 0x4e, 0xbb, 0xaf, 0xb6, 0xfb, 0xed, 0xb6, 0xd4, 0x63, 0x49, 0xb9, - 0xeb, 0xb6, 0x2e, 0x1a, 0x31, 0xed, 0x06, 0x4c, 0x65, 0x48, 0x2c, 0xb0, 0x4d, 0xfb, 0xd9, 0x91, - 0x8d, 0x21, 0x10, 0x28, 0xdc, 0x24, 0x77, 0x9e, 0x59, 0x63, 0x67, 0xb1, 0xd3, 0x11, 0x8d, 0x22, - 0x31, 0xed, 0x61, 0x8f, 0x13, 0x13, 0x4f, 0xec, 0x01, 0x09, 0x24, 0xc6, 0xdb, 0xfe, 0x08, 0x90, - 0xfa, 0x38, 0x89, 0x17, 0x9e, 0x26, 0x68, 0x91, 0x40, 0xfc, 0x15, 0xe8, 0x5e, 0x1f, 0x3b, 0xb6, - 0x13, 0x27, 0x01, 0xa6, 0x6a, 0x2f, 0x95, 0x7d, 0x7c, 0xce, 0xfd, 0x7c, 0xce, 0xe7, 0xdc, 0xf8, - 0x7e, 0x5c, 0x50, 0x0d, 0xd3, 0x70, 0x0c, 0xa6, 0xd5, 0xad, 0x55, 0xae, 0xad, 0x2e, 0x68, 0x37, - 0x5b, 0xbc, 0xd9, 0x2e, 0x34, 0x9a, 0x96, 0x63, 0x91, 0xff, 0xb9, 0xcf, 0x0a, 0xe2, 0x59, 0x61, - 0x75, 0x41, 0xdd, 0xc1, 0xea, 0x86, 0x69, 0x69, 0xf2, 0xaf, 0x9b, 0xa2, 0xe6, 0xab, 0x96, 0x5d, - 0xb7, 0x6c, 0xad, 0xc2, 0x6c, 0xee, 0xd6, 0x6a, 0xab, 0x0b, 0x15, 0xee, 0xb0, 0x05, 0xad, 0xc1, - 0x74, 0xc3, 0x64, 0x8e, 0x61, 0x99, 0x98, 0x3b, 0xad, 0x5b, 0xba, 0x25, 0x2f, 0x35, 0x71, 0x85, - 0xd1, 0x17, 0x74, 0xcb, 0xd2, 0x57, 0xb8, 0xc6, 0x1a, 0x86, 0xc6, 0x4c, 0xd3, 0x72, 0x64, 0x89, - 0x8d, 0x4f, 0xa3, 0xf4, 0x9c, 0x76, 0x83, 0xe3, 0x33, 0xba, 0x0c, 0x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0xfe, 0xc0, 0xbe, 0x58, 0x07, 0x06, - 0xa5, 0x21, 0xc1, 0xa3, 0x92, 0x60, 0x81, 0x1c, 0xfe, 0x27, 0x04, 0xc9, 0x5d, 0x05, 0xd2, 0xbe, - 0x9b, 0x8e, 0xa1, 0x14, 0xf5, 0xf5, 0x31, 0x94, 0xba, 0xbc, 0x3c, 0x9d, 0x97, 0x94, 0x28, 0x99, - 0x8d, 0x52, 0x92, 0x86, 0x30, 0x40, 0x88, 0x3c, 0x54, 0x00, 0x3a, 0xe6, 0x91, 0xf4, 0x01, 0x08, - 0xba, 0x79, 0xf5, 0xe0, 0xc0, 0x3c, 0x64, 0xf2, 0x86, 0x64, 0xf2, 0x1a, 0x79, 0x65, 0x10, 0x13, - 0x0d, 0x1d, 0xae, 0x98, 0x9c, 0xff, 0x39, 0x40, 0xbe, 0x52, 0x60, 0x2a, 0x68, 0x8c, 0xc9, 0x7c, - 0x7f, 0xe0, 0x8e, 0x75, 0x57, 0x0f, 0x0d, 0x91, 0x89, 0x24, 0x5f, 0x96, 0x24, 0xf3, 0x64, 0x7e, - 0x58, 0x92, 0xe4, 0x47, 0x05, 0xa0, 0xe3, 0x28, 0x63, 0x64, 0xeb, 0xb2, 0xc7, 0x31, 0xb2, 0x75, - 0x5b, 0x53, 0xca, 0x25, 0xa3, 0x0f, 0x97, 0x94, 0x3c, 0x7d, 0xef, 0xdf, 0xbe, 0x1e, 0xb4, 0x55, - 0x83, 0xdf, 0x2a, 0x7b, 0xfe, 0xc0, 0xd6, 0x6e, 0x87, 0xfc, 0xc3, 0xda, 0xbd, 0x11, 0x85, 0xac, - 0x40, 0x52, 0xf2, 0x1f, 0xe8, 0xa6, 0xd4, 0xc1, 0x5e, 0x88, 0xe6, 0x24, 0xe7, 0x19, 0xc1, 0x79, - 0x3a, 0xca, 0x59, 0x50, 0x21, 0x5f, 0x28, 0x90, 0xf6, 0x8d, 0x17, 0x89, 0x3f, 0x5a, 0x83, 0xe7, - 0x7f, 0xcc,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, 0x55, 0x7e, 0xdd, 0xc8, 0x2a, 0xf7, - 0x37, 0xb3, 0x89, 0x27, 0x9b, 0xd9, 0xc4, 0x2f, 0x9b, 0xd9, 0xc4, 0x07, 0x79, 0xdd, 0x70, 0xae, - 0xb7, 0x2a, 0x85, 0xaa, 0x55, 0xc7, 0x25, 0x5e, 0x5a, 0x61, 0x15, 0xdb, 0x5b, 0xee, 0x53, 0x77, - 0x41, 0xf9, 0x5f, 0xe1, 0xca, 0xb8, 0xfc, 0xb7, 0xf0, 0x91, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, - 0x62, 0x33, 0x50, 0x1a, 0xd3, 0x16, 0x00, 0x00, + // 1639 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0xcf, 0x6f, 0x13, 0x47, + 0x1b, 0xce, 0x26, 0x4e, 0x62, 0xbf, 0x09, 0x9f, 0xc2, 0x7c, 0x01, 0x9c, 0x85, 0xd8, 0x61, 0x08, + 0x10, 0xac, 0xe0, 0xfd, 0x12, 0xe0, 0x2b, 0x4d, 0xa9, 0x54, 0xdc, 0x12, 0xc4, 0xcf, 0x50, 0x43, + 0xa9, 0x5a, 0xb5, 0x72, 0xc7, 0xf6, 0x64, 0xd9, 0x12, 0xef, 0x1a, 0xef, 0x3a, 0xd4, 0xa2, 0xa9, + 0x54, 0xc4, 0x81, 0x23, 0x2a, 0xea, 0xa5, 0xe5, 0x50, 0xa9, 0x95, 0x4a, 0x6f, 0xfc, 0x11, 0x3d, + 0xe4, 0x88, 0xd4, 0x4b, 0x4f, 0xa8, 0x0d, 0x95, 0x5a, 0xf5, 0xaf, 0xa8, 0x66, 0xf6, 0x5d, 0x7b, + 0x77, 0xed, 0xb5, 0xdd, 0x16, 0x45, 0x5c, 0xa2, 0xdd, 0xd9, 0xf7, 0x9d, 0xe7, 0x79, 0x9f, 0x77, + 0x3c, 0xf3, 0x4c, 0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0x5b, 0x29, 0xe5, 0x97, 0xad, 0x94, 0xf2, 0xe0, 0x79, + 0x6a, 0xe0, 0xe9, 0xf3, 0xd4, 0xc0, 0xcf, 0xcf, 0x53, 0x03, 0xef, 0x67, 0x74, 0xc3, 0xb9, 0x51, + 0x2f, 0x66, 0x4b, 0x56, 0x05, 0xa7, 0x3b, 0xba, 0xc6, 0x8a, 0xb6, 0x37, 0xf5, 0x27, 0xee, 0xe4, + 0xf2, 0x1f, 0xe9, 0xc5, 0x11, 0xf9, 0x9f, 0xf4, 0x63, 0x7f, 0x05, 0x00, 0x00, 0xff, 0xff, 0x55, + 0xf7, 0xcc, 0x45, 0x06, 0x18, 0x00, 0x00, } func (this *QueryModuleResponse) Equal(that interface{}) bool { @@ -1614,6 +1696,8 @@ type QueryClient interface { Metadata(ctx context.Context, in *QueryMetadataRequest, opts ...grpc.CallOption) (*QueryMetadataResponse, error) // Denom converts denom to metadata Denom(ctx context.Context, in *QueryDenomRequest, opts ...grpc.CallOption) (*QueryDenomResponse, error) + // EIP1559FeeParams queries the EIP1559 fee params + EIP1559FeeParams(ctx context.Context, in *QueryEIP1559FeeParamsRequest, opts ...grpc.CallOption) (*QueryEIP1559FeeParamsResponse, error) } type queryClient struct { @@ -1769,6 +1853,15 @@ func (c *queryClient) Denom(ctx context.Context, in *QueryDenomRequest, opts ... return out, nil } +func (c *queryClient) EIP1559FeeParams(ctx context.Context, in *QueryEIP1559FeeParamsRequest, opts ...grpc.CallOption) (*QueryEIP1559FeeParamsResponse, error) { + out := new(QueryEIP1559FeeParamsResponse) + err := c.cc.Invoke(ctx, "/initia.move.v1.Query/EIP1559FeeParams", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // QueryServer is the server API for Query service. type QueryServer interface { // Module gets the module info @@ -1806,6 +1899,8 @@ type QueryServer interface { Metadata(context.Context, *QueryMetadataRequest) (*QueryMetadataResponse, error) // Denom converts denom to metadata Denom(context.Context, *QueryDenomRequest) (*QueryDenomResponse, error) + // EIP1559FeeParams queries the EIP1559 fee params + EIP1559FeeParams(context.Context, *QueryEIP1559FeeParamsRequest) (*QueryEIP1559FeeParamsResponse, error) } // UnimplementedQueryServer can be embedded to have forward compatible implementations. @@ -1860,6 +1955,9 @@ func (*UnimplementedQueryServer) Metadata(ctx context.Context, req *QueryMetadat func (*UnimplementedQueryServer) Denom(ctx context.Context, req *QueryDenomRequest) (*QueryDenomResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Denom not implemented") } +func (*UnimplementedQueryServer) EIP1559FeeParams(ctx context.Context, req *QueryEIP1559FeeParamsRequest) (*QueryEIP1559FeeParamsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method EIP1559FeeParams not implemented") +} func RegisterQueryServer(s grpc1.Server, srv QueryServer) { s.RegisterService(&_Query_serviceDesc, srv) @@ -2153,6 +2251,24 @@ func _Query_Denom_Handler(srv interface{}, ctx context.Context, dec func(interfa return interceptor(ctx, in, info, handler) } +func _Query_EIP1559FeeParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryEIP1559FeeParamsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).EIP1559FeeParams(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/initia.move.v1.Query/EIP1559FeeParams", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).EIP1559FeeParams(ctx, req.(*QueryEIP1559FeeParamsRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _Query_serviceDesc = grpc.ServiceDesc{ ServiceName: "initia.move.v1.Query", HandlerType: (*QueryServer)(nil), @@ -2221,6 +2337,10 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "Denom", Handler: _Query_Denom_Handler, }, + { + MethodName: "EIP1559FeeParams", + Handler: _Query_EIP1559FeeParams_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "initia/move/v1/query.proto", @@ -3526,6 +3646,62 @@ func (m *QueryDenomResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *QueryEIP1559FeeParamsRequest) 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 *QueryEIP1559FeeParamsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryEIP1559FeeParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *QueryEIP1559FeeParamsResponse) 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 *QueryEIP1559FeeParamsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryEIP1559FeeParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Eip1559Feeparams.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { offset -= sovQuery(v) base := offset @@ -4093,6 +4269,26 @@ func (m *QueryDenomResponse) Size() (n int) { return n } +func (m *QueryEIP1559FeeParamsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryEIP1559FeeParamsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Eip1559Feeparams.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + func sovQuery(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -7685,6 +7881,139 @@ func (m *QueryDenomResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *QueryEIP1559FeeParamsRequest) 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 ErrIntOverflowQuery + } + 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: QueryEIP1559FeeParamsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryEIP1559FeeParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryEIP1559FeeParamsResponse) 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 ErrIntOverflowQuery + } + 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: QueryEIP1559FeeParamsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryEIP1559FeeParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Eip1559Feeparams", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Eip1559Feeparams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipQuery(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/move/types/query.pb.gw.go b/x/move/types/query.pb.gw.go index 8f65de8db..4ed041cb9 100644 --- a/x/move/types/query.pb.gw.go +++ b/x/move/types/query.pb.gw.go @@ -897,6 +897,24 @@ func local_request_Query_Denom_0(ctx context.Context, marshaler runtime.Marshale } +func request_Query_EIP1559FeeParams_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryEIP1559FeeParamsRequest + var metadata runtime.ServerMetadata + + msg, err := client.EIP1559FeeParams(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_EIP1559FeeParams_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryEIP1559FeeParamsRequest + var metadata runtime.ServerMetadata + + msg, err := server.EIP1559FeeParams(ctx, &protoReq) + return msg, metadata, err + +} + // RegisterQueryHandlerServer registers the http handlers for service Query to "mux". // UnaryRPC :call QueryServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. @@ -1271,6 +1289,29 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) + mux.Handle("GET", pattern_Query_EIP1559FeeParams_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_EIP1559FeeParams_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_EIP1559FeeParams_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -1632,6 +1673,26 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) + mux.Handle("GET", pattern_Query_EIP1559FeeParams_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_EIP1559FeeParams_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_EIP1559FeeParams_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -1667,6 +1728,8 @@ var ( pattern_Query_Metadata_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"initia", "move", "v1", "metadata"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_Denom_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"initia", "move", "v1", "denom"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_EIP1559FeeParams_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"initia", "move", "v1", "eip1559_feeparams"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( @@ -1701,4 +1764,6 @@ var ( forward_Query_Metadata_0 = runtime.ForwardResponseMessage forward_Query_Denom_0 = runtime.ForwardResponseMessage + + forward_Query_EIP1559FeeParams_0 = runtime.ForwardResponseMessage ) diff --git a/x/move/types/tx.pb.go b/x/move/types/tx.pb.go index b796bf9db..c694e8ee5 100644 --- a/x/move/types/tx.pb.go +++ b/x/move/types/tx.pb.go @@ -1156,6 +1156,86 @@ func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgUpdateParamsResponse proto.InternalMessageInfo +// MsgUpdateEIP1559FeeParams is the Msg/UpdateEIP1559FeeParams request type. +type MsgUpdateEIP1559FeeParams struct { + // authority is the address that controls the module + // (defaults to x/gov unless overwritten). + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // eip1559_feeparams defines the x/move parameters to update. + Eip1559Feeparams EIP1559FeeParams `protobuf:"bytes,2,opt,name=eip1559_feeparams,json=eip1559Feeparams,proto3" json:"eip1559_feeparams"` +} + +func (m *MsgUpdateEIP1559FeeParams) Reset() { *m = MsgUpdateEIP1559FeeParams{} } +func (m *MsgUpdateEIP1559FeeParams) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateEIP1559FeeParams) ProtoMessage() {} +func (*MsgUpdateEIP1559FeeParams) Descriptor() ([]byte, []int) { + return fileDescriptor_0fc2f2cef57f41a3, []int{26} +} +func (m *MsgUpdateEIP1559FeeParams) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateEIP1559FeeParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateEIP1559FeeParams.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 *MsgUpdateEIP1559FeeParams) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateEIP1559FeeParams.Merge(m, src) +} +func (m *MsgUpdateEIP1559FeeParams) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateEIP1559FeeParams) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateEIP1559FeeParams.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateEIP1559FeeParams proto.InternalMessageInfo + +// MsgUpdateEIP1559FeeParamsResponse defines the response structure for executing a +// MsgUpdateEIP1559FeeParams message. +type MsgUpdateEIP1559FeeParamsResponse struct { +} + +func (m *MsgUpdateEIP1559FeeParamsResponse) Reset() { *m = MsgUpdateEIP1559FeeParamsResponse{} } +func (m *MsgUpdateEIP1559FeeParamsResponse) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateEIP1559FeeParamsResponse) ProtoMessage() {} +func (*MsgUpdateEIP1559FeeParamsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_0fc2f2cef57f41a3, []int{27} +} +func (m *MsgUpdateEIP1559FeeParamsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateEIP1559FeeParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateEIP1559FeeParamsResponse.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 *MsgUpdateEIP1559FeeParamsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateEIP1559FeeParamsResponse.Merge(m, src) +} +func (m *MsgUpdateEIP1559FeeParamsResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateEIP1559FeeParamsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateEIP1559FeeParamsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateEIP1559FeeParamsResponse proto.InternalMessageInfo + func init() { proto.RegisterType((*MsgPublish)(nil), "initia.move.v1.MsgPublish") proto.RegisterType((*MsgPublishResponse)(nil), "initia.move.v1.MsgPublishResponse") @@ -1183,85 +1263,92 @@ func init() { proto.RegisterType((*MsgDelistResponse)(nil), "initia.move.v1.MsgDelistResponse") proto.RegisterType((*MsgUpdateParams)(nil), "initia.move.v1.MsgUpdateParams") proto.RegisterType((*MsgUpdateParamsResponse)(nil), "initia.move.v1.MsgUpdateParamsResponse") + proto.RegisterType((*MsgUpdateEIP1559FeeParams)(nil), "initia.move.v1.MsgUpdateEIP1559FeeParams") + proto.RegisterType((*MsgUpdateEIP1559FeeParamsResponse)(nil), "initia.move.v1.MsgUpdateEIP1559FeeParamsResponse") } func init() { proto.RegisterFile("initia/move/v1/tx.proto", fileDescriptor_0fc2f2cef57f41a3) } var fileDescriptor_0fc2f2cef57f41a3 = []byte{ - // 1159 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x58,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e, 0xda, 0xef, 0xb5, 0x5d, 0xc3, 0xea, 0xd1, 0x90, 0x1c, - 0x09, 0x99, 0xf6, 0x8d, 0x24, 0x68, 0x01, 0x0a, 0xde, 0xfe, 0xb4, 0x54, 0x47, 0xc7, 0xe5, 0xc9, - 0xa5, 0x6c, 0xbd, 0xa0, 0x5c, 0xf7, 0x0c, 0x0f, 0x1d, 0x1d, 0x8b, 0x22, 0xe4, 0x88, 0x3d, 0x4f, - 0x68, 0x26, 0x9f, 0x07, 0xb3, 0xc2, 0x00, 0x33, 0x56, 0xd8, 0x8a, 0xb3, 0xf2, 0x65, 0x06, 0x4a, - 0x81, 0xf9, 0xf1, 0xee, 0xd3, 0x27, 0xff, 0x19, 0x66, 0x0a, 0x8c, 0x99, 0x95, 0x18, 0x33, 0xb7, - 0x62, 0xcc, 0x78, 0xa0, 0x6b, 0x65, 0x98, 0x8d, 0x5a, 0x38, 0x43, 0x2f, 0x04, 0x28, 0x6c, 0x63, - 0x7d, 0xb7, 0xed, 0x18, 0xb6, 0x7b, 0x09, 0x27, 0x43, 0x88, 0x9e, 0x8c, 0x08, 0x9c, 0xec, 0x00, - 0x38, 0xb9, 0xd0, 0x46, 0x57, 0x62, 0x70, 0x4a, 0x3e, 0x1c, 0xda, 0x61, 0xed, 0x16, 0xdc, 0xe4, - 0x0b, 0x0e, 0xe2, 0x07, 0x01, 0x8a, 0xdc, 0x3a, 0xe6, 0x2e, 0x5f, 0x16, 0x10, 0x7f, 0x5f, 0x6a, - 0x31, 0x20, 0x62, 0x14, 0x08, 0xd9, 0x96, 0x39, 0xb8, 0x1d, 0x31, 0x70, 0x40, 0x5f, 0x67, 0x08, - 0xa0, 0xf7, 0xad, 0x03, 0x5f, 0xb3, 0xde, 0x86, 0x82, 0xda, 0x77, 0x3b, 0x96, 0x63, 0xb8, 0x47, - 0x23, 0x31, 0x05, 0xa1, 0x21, 0x22, 0x32, 0x63, 0x11, 0x91, 0x1d, 0xad, 0x75, 0xb9, 0xb1, 0x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 0x9d, 0x57, 0x26, 0x7e, 0x39, 0xaf, 0x4c, 0x7c, 0xb4, 0xa6, 0x1b, 0x6e, 0xa7, 0xbf, 0xdf, - 0x68, 0x5b, 0xa6, 0x4c, 0xeb, 0xde, 0xef, 0xaa, 0xfb, 0x98, 0x7d, 0x96, 0x0f, 0xe9, 0xaf, 0x38, - 0xe4, 0x27, 0x9c, 0xfd, 0x3c, 0xf9, 0x0d, 0xe7, 0xad, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x7c, - 0x74, 0xfe, 0xa5, 0x67, 0x12, 0x00, 0x00, + // 1237 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x58, 0xcf, 0x4f, 0x1b, 0x47, + 0x14, 0x66, 0x6d, 0xe3, 0xd4, 0x0f, 0xec, 0x84, 0x0d, 0x01, 0xb3, 0x14, 0xdb, 0x98, 0xd0, 0x18, + 0xa4, 0xd8, 0x85, 0x2a, 0x95, 0xc2, 0x2d, 0x16, 0xa1, 0x49, 0x04, 0x09, 0x5a, 0x84, 0x12, 0xb5, + 0x52, 0xad, 0xc5, 0x9e, 0xac, 0x57, 0xf5, 0x7a, 0x57, 0xbb, 0x6b, 0x02, 0xb7, 0xaa, 0x52, 0x2f, + 0xed, 0xa5, 0xb7, 0xfe, 0x0b, 0xbd, 0x44, 0xe2, 0xd0, 0xf6, 0xd8, 0x63, 0x85, 0x7a, 0x8a, 0x7a, + 0xaa, 0x7a, 0x40, 0x29, 0x1c, 0xb8, 0xf5, 0xd8, 0x5b, 0xa5, 0x6a, 0x67, 0x66, 0x67, 0x7f, 0xdb, + 0x91, 0x8b, 0xa8, 0xd4, 0x5c, 0x90, 0xe7, 0x7d, 0xef, 0xbd, 0x79, 0xdf, 0x37, 0x33, 0x6f, 0x86, + 0x85, 0x69, 0xa5, 0xab, 0x58, 0x8a, 0x54, 0x53, 0xb5, 0x7d, 0x54, 0xd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 0xed, 0xa5, 0xf1, 0x37, 0xb4, 0x0f, 0xfe, 0x09, 0x00, 0x00, 0xff, 0xff, 0x22, 0xa2, 0x68, + 0x72, 0xe7, 0x13, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1310,6 +1397,9 @@ type MsgClient interface { // UpdateParams defines an operation for updating the x/move module // parameters. UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) + // UpdateEIP1559FeeParams defines an operation for updating the x/move module + // eip1559 fee params. + UpdateEIP1559FeeParams(ctx context.Context, in *MsgUpdateEIP1559FeeParams, opts ...grpc.CallOption) (*MsgUpdateEIP1559FeeParamsResponse, error) } type msgClient struct { @@ -1437,6 +1527,15 @@ func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts return out, nil } +func (c *msgClient) UpdateEIP1559FeeParams(ctx context.Context, in *MsgUpdateEIP1559FeeParams, opts ...grpc.CallOption) (*MsgUpdateEIP1559FeeParamsResponse, error) { + out := new(MsgUpdateEIP1559FeeParamsResponse) + err := c.cc.Invoke(ctx, "/initia.move.v1.Msg/UpdateEIP1559FeeParams", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // MsgServer is the server API for Msg service. type MsgServer interface { // Publish stores compiled Move module @@ -1473,6 +1572,9 @@ type MsgServer interface { // UpdateParams defines an operation for updating the x/move module // parameters. UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) + // UpdateEIP1559FeeParams defines an operation for updating the x/move module + // eip1559 fee params. + UpdateEIP1559FeeParams(context.Context, *MsgUpdateEIP1559FeeParams) (*MsgUpdateEIP1559FeeParamsResponse, error) } // UnimplementedMsgServer can be embedded to have forward compatible implementations. @@ -1518,6 +1620,9 @@ func (*UnimplementedMsgServer) Delist(ctx context.Context, req *MsgDelist) (*Msg func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented") } +func (*UnimplementedMsgServer) UpdateEIP1559FeeParams(ctx context.Context, req *MsgUpdateEIP1559FeeParams) (*MsgUpdateEIP1559FeeParamsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateEIP1559FeeParams not implemented") +} func RegisterMsgServer(s grpc1.Server, srv MsgServer) { s.RegisterService(&_Msg_serviceDesc, srv) @@ -1757,6 +1862,24 @@ func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(in return interceptor(ctx, in, info, handler) } +func _Msg_UpdateEIP1559FeeParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateEIP1559FeeParams) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpdateEIP1559FeeParams(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/initia.move.v1.Msg/UpdateEIP1559FeeParams", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateEIP1559FeeParams(ctx, req.(*MsgUpdateEIP1559FeeParams)) + } + return interceptor(ctx, in, info, handler) +} + var _Msg_serviceDesc = grpc.ServiceDesc{ ServiceName: "initia.move.v1.Msg", HandlerType: (*MsgServer)(nil), @@ -1813,6 +1936,10 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ MethodName: "UpdateParams", Handler: _Msg_UpdateParams_Handler, }, + { + MethodName: "UpdateEIP1559FeeParams", + Handler: _Msg_UpdateEIP1559FeeParams_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "initia/move/v1/tx.proto", @@ -2860,6 +2987,69 @@ func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } +func (m *MsgUpdateEIP1559FeeParams) 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 *MsgUpdateEIP1559FeeParams) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateEIP1559FeeParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Eip1559Feeparams.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgUpdateEIP1559FeeParamsResponse) 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 *MsgUpdateEIP1559FeeParamsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateEIP1559FeeParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + func encodeVarintTx(dAtA []byte, offset int, v uint64) int { offset -= sovTx(v) base := offset @@ -3367,6 +3557,30 @@ func (m *MsgUpdateParamsResponse) Size() (n int) { return n } +func (m *MsgUpdateEIP1559FeeParams) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.Eip1559Feeparams.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgUpdateEIP1559FeeParamsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + func sovTx(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -6514,6 +6728,171 @@ func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *MsgUpdateEIP1559FeeParams) 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 ErrIntOverflowTx + } + 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: MsgUpdateEIP1559FeeParams: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateEIP1559FeeParams: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + 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 ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Eip1559Feeparams", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Eip1559Feeparams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgUpdateEIP1559FeeParamsResponse) 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 ErrIntOverflowTx + } + 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: MsgUpdateEIP1559FeeParamsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateEIP1559FeeParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipTx(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/move/types/types.pb.go b/x/move/types/types.pb.go index d228851cb..1491073f6 100644 --- a/x/move/types/types.pb.go +++ b/x/move/types/types.pb.go @@ -473,6 +473,47 @@ func (m *ExecuteAuthorizationItem) XXX_DiscardUnknown() { var xxx_messageInfo_ExecuteAuthorizationItem proto.InternalMessageInfo +type EIP1559FeeParams struct { + BaseFee int64 `protobuf:"varint,1,opt,name=base_fee,json=baseFee,proto3" json:"base_fee,omitempty"` + MinBaseFee int64 `protobuf:"varint,2,opt,name=min_base_fee,json=minBaseFee,proto3" json:"min_base_fee,omitempty"` + MaxBaseFee int64 `protobuf:"varint,3,opt,name=max_base_fee,json=maxBaseFee,proto3" json:"max_base_fee,omitempty"` + TargetGas int64 `protobuf:"varint,4,opt,name=target_gas,json=targetGas,proto3" json:"target_gas,omitempty"` + MaxChangeRate cosmossdk_io_math.LegacyDec `protobuf:"bytes,5,opt,name=max_change_rate,json=maxChangeRate,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"max_change_rate" yaml:"max_change_rate"` +} + +func (m *EIP1559FeeParams) Reset() { *m = EIP1559FeeParams{} } +func (m *EIP1559FeeParams) String() string { return proto.CompactTextString(m) } +func (*EIP1559FeeParams) ProtoMessage() {} +func (*EIP1559FeeParams) Descriptor() ([]byte, []int) { + return fileDescriptor_5ab4b0783858a3a5, []int{10} +} +func (m *EIP1559FeeParams) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EIP1559FeeParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EIP1559FeeParams.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 *EIP1559FeeParams) XXX_Merge(src proto.Message) { + xxx_messageInfo_EIP1559FeeParams.Merge(m, src) +} +func (m *EIP1559FeeParams) XXX_Size() int { + return m.Size() +} +func (m *EIP1559FeeParams) XXX_DiscardUnknown() { + xxx_messageInfo_EIP1559FeeParams.DiscardUnknown(m) +} + +var xxx_messageInfo_EIP1559FeeParams proto.InternalMessageInfo + func init() { proto.RegisterEnum("initia.move.v1.UpgradePolicy", UpgradePolicy_name, UpgradePolicy_value) proto.RegisterType((*Params)(nil), "initia.move.v1.Params") @@ -485,68 +526,76 @@ func init() { proto.RegisterType((*UpgradePolicyProto)(nil), "initia.move.v1.UpgradePolicyProto") proto.RegisterType((*DexPair)(nil), "initia.move.v1.DexPair") proto.RegisterType((*ExecuteAuthorizationItem)(nil), "initia.move.v1.ExecuteAuthorizationItem") + proto.RegisterType((*EIP1559FeeParams)(nil), "initia.move.v1.EIP1559FeeParams") } func init() { proto.RegisterFile("initia/move/v1/types.proto", fileDescriptor_5ab4b0783858a3a5) } var fileDescriptor_5ab4b0783858a3a5 = []byte{ - // 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, 0x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f9, 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, + // 1004 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x56, 0xbd, 0x6f, 0x23, 0x45, + 0x14, 0xf7, 0xc6, 0x97, 0xc4, 0xfb, 0x12, 0x3b, 0xb9, 0xd1, 0x09, 0x39, 0x39, 0xc5, 0x8e, 0x16, + 0x90, 0xa2, 0x20, 0x6c, 0x05, 0x94, 0x82, 0x6b, 0x50, 0x9c, 0x38, 0x27, 0x8b, 0xf8, 0xd8, 0xdb, + 0x4b, 0x1a, 0x9a, 0xd5, 0x78, 0xfd, 0x62, 0x2f, 0xf6, 0x7e, 0x30, 0x33, 0x9b, 0x78, 0xe9, 0x69, + 0x10, 0x12, 0x48, 0x34, 0x94, 0x57, 0x5e, 0x79, 0x25, 0xff, 0x00, 0x52, 0xca, 0x2b, 0x11, 0x48, + 0x11, 0x24, 0xc5, 0x51, 0x53, 0x53, 0xa0, 0xf9, 0x70, 0xee, 0xc2, 0x49, 0x51, 0x24, 0x44, 0x47, + 0x63, 0xcd, 0xfc, 0x7e, 0x3f, 0xbd, 0xef, 0x7d, 0x1e, 0x58, 0x0d, 0xe3, 0x50, 0x84, 0xb4, 0x19, + 0x25, 0x27, 0xd8, 0x3c, 0xd9, 0x6a, 0x8a, 0x3c, 0x45, 0xde, 0x48, 0x59, 0x22, 0x12, 0x52, 0xd1, + 0x5c, 0x43, 0x72, 0x8d, 0x93, 0xad, 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 0xbb, 0xc5, 0xf8, + 0x96, 0x5e, 0x8c, 0xff, 0xb0, 0x61, 0x56, 0x61, 0x39, 0xa2, 0x93, 0x5d, 0x85, 0x7a, 0x54, 0xe0, + 0xe6, 0xc7, 0x50, 0xbe, 0x36, 0x0c, 0x64, 0x09, 0x16, 0x8e, 0x1e, 0x3d, 0x71, 0xdb, 0xbb, 0x9d, + 0xfd, 0x4e, 0x7b, 0x6f, 0xb9, 0x40, 0x2a, 0x00, 0xbb, 0x9f, 0x76, 0xdd, 0x9d, 0xc3, 0x4e, 0xeb, + 0xa0, 0xbd, 0x6c, 0x91, 0x32, 0xd8, 0x9d, 0x6e, 0xf7, 0xe8, 0x70, 0x47, 0x5e, 0x67, 0x5a, 0x07, + 0x67, 0xbf, 0xd7, 0x0a, 0xcf, 0x2e, 0x6a, 0xd6, 0xd9, 0x45, 0xcd, 0x7a, 0x71, 0x51, 0xb3, 0x7e, + 0xbb, 0xa8, 0x59, 0xdf, 0x5d, 0xd6, 0x0a, 0x2f, 0x2e, 0x6b, 0x85, 0x9f, 0x2f, 0x6b, 0x85, 0xcf, + 0x36, 0x07, 0xa1, 0x18, 0x66, 0xbd, 0x46, 0x90, 0x44, 0x4d, 0x3d, 0x87, 0xef, 0x8f, 0x69, 0x8f, + 0x9b, 0x73, 0x73, 0xa2, 0x5f, 0x33, 0xea, 0x29, 0xd3, 0x9b, 0x53, 0x4f, 0x92, 0x0f, 0xff, 0x0e, + 0x00, 0x00, 0xff, 0xff, 0xa5, 0xfb, 0x36, 0x40, 0xe9, 0x08, 0x00, 0x00, } func (this *Params) Equal(that interface{}) bool { @@ -874,6 +923,42 @@ func (this *ExecuteAuthorizationItem) Equal(that interface{}) bool { } return true } +func (this *EIP1559FeeParams) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*EIP1559FeeParams) + if !ok { + that2, ok := that.(EIP1559FeeParams) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.BaseFee != that1.BaseFee { + return false + } + if this.MinBaseFee != that1.MinBaseFee { + return false + } + if this.MaxBaseFee != that1.MaxBaseFee { + return false + } + if this.TargetGas != that1.TargetGas { + return false + } + if !this.MaxChangeRate.Equal(that1.MaxChangeRate) { + return false + } + return true +} func (m *Params) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -1367,6 +1452,59 @@ func (m *ExecuteAuthorizationItem) MarshalToSizedBuffer(dAtA []byte) (int, error return len(dAtA) - i, nil } +func (m *EIP1559FeeParams) 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 *EIP1559FeeParams) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EIP1559FeeParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.MaxChangeRate.Size() + i -= size + if _, err := m.MaxChangeRate.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTypes(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + if m.TargetGas != 0 { + i = encodeVarintTypes(dAtA, i, uint64(m.TargetGas)) + i-- + dAtA[i] = 0x20 + } + if m.MaxBaseFee != 0 { + i = encodeVarintTypes(dAtA, i, uint64(m.MaxBaseFee)) + i-- + dAtA[i] = 0x18 + } + if m.MinBaseFee != 0 { + i = encodeVarintTypes(dAtA, i, uint64(m.MinBaseFee)) + i-- + dAtA[i] = 0x10 + } + if m.BaseFee != 0 { + i = encodeVarintTypes(dAtA, i, uint64(m.BaseFee)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + func encodeVarintTypes(dAtA []byte, offset int, v uint64) int { offset -= sovTypes(v) base := offset @@ -1600,6 +1738,29 @@ func (m *ExecuteAuthorizationItem) Size() (n int) { return n } +func (m *EIP1559FeeParams) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BaseFee != 0 { + n += 1 + sovTypes(uint64(m.BaseFee)) + } + if m.MinBaseFee != 0 { + n += 1 + sovTypes(uint64(m.MinBaseFee)) + } + if m.MaxBaseFee != 0 { + n += 1 + sovTypes(uint64(m.MaxBaseFee)) + } + if m.TargetGas != 0 { + n += 1 + sovTypes(uint64(m.TargetGas)) + } + l = m.MaxChangeRate.Size() + n += 1 + l + sovTypes(uint64(l)) + return n +} + func sovTypes(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -3194,6 +3355,166 @@ func (m *ExecuteAuthorizationItem) Unmarshal(dAtA []byte) error { } return nil } +func (m *EIP1559FeeParams) 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: EIP1559FeeParams: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EIP1559FeeParams: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BaseFee", wireType) + } + m.BaseFee = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BaseFee |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MinBaseFee", wireType) + } + m.MinBaseFee = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MinBaseFee |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxBaseFee", wireType) + } + m.MaxBaseFee = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.MaxBaseFee |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TargetGas", wireType) + } + m.TargetGas = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TargetGas |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxChangeRate", 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 + } + if err := m.MaxChangeRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + 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 skipTypes(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 From 79db0e45aa42b1ad8bd577dec933dede78fd7b2c Mon Sep 17 00:00:00 2001 From: sh-cha Date: Thu, 20 Mar 2025 18:16:05 +0900 Subject: [PATCH 02/14] update genesis proto --- api/initia/move/v1/genesis.pulsar.go | 36 +++++++------- proto/initia/move/v1/genesis.proto | 1 - x/move/types/genesis.pb.go | 72 ++++++++++++++-------------- 3 files changed, 53 insertions(+), 56 deletions(-) diff --git a/api/initia/move/v1/genesis.pulsar.go b/api/initia/move/v1/genesis.pulsar.go index e5f60cd5e..a458b2b9f 100644 --- a/api/initia/move/v1/genesis.pulsar.go +++ b/api/initia/move/v1/genesis.pulsar.go @@ -1659,7 +1659,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, 0xe3, 0x06, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, + 0x6f, 0x74, 0x6f, 0x22, 0xc4, 0x06, 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, @@ -1706,26 +1706,24 @@ var file_initia_move_v1_genesis_proto_rawDesc = []byte{ 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, - 0x12, 0x77, 0x0a, 0x11, 0x65, 0x69, 0x70, 0x31, 0x35, 0x35, 0x39, 0x5f, 0x66, 0x65, 0x65, 0x70, + 0x12, 0x58, 0x0a, 0x11, 0x65, 0x69, 0x70, 0x31, 0x35, 0x35, 0x39, 0x5f, 0x66, 0x65, 0x65, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x49, 0x50, - 0x31, 0x35, 0x35, 0x39, 0x46, 0x65, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x28, 0xc8, - 0xde, 0x1f, 0x00, 0xea, 0xde, 0x1f, 0x1b, 0x65, 0x69, 0x70, 0x31, 0x35, 0x35, 0x39, 0x5f, 0x66, - 0x65, 0x65, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2c, 0x6f, 0x6d, 0x69, 0x74, 0x65, 0x6d, 0x70, - 0x74, 0x79, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x10, 0x65, 0x69, 0x70, 0x31, 0x35, 0x35, 0x39, - 0x46, 0x65, 0x65, 0x70, 0x61, 0x72, 0x61, 0x6d, 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, 0x35, 0x35, 0x39, 0x46, 0x65, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, + 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x10, 0x65, 0x69, 0x70, 0x31, 0x35, 0x35, + 0x39, 0x46, 0x65, 0x65, 0x70, 0x61, 0x72, 0x61, 0x6d, 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 ( diff --git a/proto/initia/move/v1/genesis.proto b/proto/initia/move/v1/genesis.proto index 0291dd611..3b3408e3a 100644 --- a/proto/initia/move/v1/genesis.proto +++ b/proto/initia/move/v1/genesis.proto @@ -46,7 +46,6 @@ message GenesisState { (amino.dont_omitempty) = true ]; EIP1559FeeParams eip1559_feeparams = 10 [ - (gogoproto.jsontag) = "eip1559_feeparams,omitempty", (gogoproto.nullable) = false, (amino.dont_omitempty) = true ]; diff --git a/x/move/types/genesis.pb.go b/x/move/types/genesis.pb.go index 615f24841..bf85973be 100644 --- a/x/move/types/genesis.pb.go +++ b/x/move/types/genesis.pb.go @@ -35,7 +35,7 @@ type GenesisState struct { 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"` - Eip1559Feeparams EIP1559FeeParams `protobuf:"bytes,10,opt,name=eip1559_feeparams,json=eip1559Feeparams,proto3" json:"eip1559_feeparams,omitempty"` + Eip1559Feeparams EIP1559FeeParams `protobuf:"bytes,10,opt,name=eip1559_feeparams,json=eip1559Feeparams,proto3" json:"eip1559_feeparams"` } func (m *GenesisState) Reset() { *m = GenesisState{} } @@ -148,41 +148,41 @@ func init() { func init() { proto.RegisterFile("initia/move/v1/genesis.proto", fileDescriptor_40442fa21a3f8cef) } var fileDescriptor_40442fa21a3f8cef = []byte{ - // 538 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x93, 0xcf, 0x6e, 0x12, 0x41, - 0x1c, 0xc7, 0x59, 0xa9, 0x50, 0xa6, 0x68, 0xca, 0x6a, 0xed, 0x88, 0xcd, 0xb2, 0x21, 0x1e, 0x48, - 0xa3, 0xbb, 0x41, 0xd3, 0x43, 0x3d, 0x6e, 0xff, 0x18, 0x0e, 0x26, 0x04, 0x8d, 0x31, 0x1e, 0x24, - 0xc3, 0xf2, 0x83, 0x4e, 0x64, 0x77, 0x36, 0x3b, 0xb3, 0x08, 0x6f, 0xe1, 0x63, 0x78, 0xf4, 0x31, - 0x7a, 0xec, 0xd1, 0x13, 0x31, 0x70, 0x30, 0xf1, 0xe8, 0x13, 0x98, 0x9d, 0x1d, 0xa0, 0x1d, 0xb8, - 0x90, 0xc9, 0xfc, 0x3e, 0xdf, 0xcf, 0x77, 0xd8, 0xcc, 0xa0, 0x23, 0x1a, 0x52, 0x41, 0x89, 0x1b, - 0xb0, 0x31, 0xb8, 0xe3, 0xa6, 0x3b, 0x84, 0x10, 0x38, 0xe5, 0x4e, 0x14, 0x33, 0xc1, 0xcc, 0x87, - 0xd9, 0xd4, 0x49, 0xa7, 0xce, 0xb8, 0x59, 0xad, 0x90, 0x80, 0x86, 0xcc, 0x95, 0xbf, 0x19, 0x52, - 0x7d, 0x3c, 0x64, 0x43, 0x26, 0x97, 0x6e, 0xba, 0x52, 0xbb, 0x55, 0x4d, 0x2b, 0xa6, 0x11, 0x28, - 0x69, 0x7d, 0x51, 0x40,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, - 0x6b, 0x77, 0x92, 0x3d, 0x5a, 0xf9, 0x62, 0x7b, 0x05, 0xf9, 0x64, 0x5f, 0xff, 0x0f, 0x00, 0x00, - 0xff, 0xff, 0x2e, 0x76, 0x2b, 0xad, 0x27, 0x04, 0x00, 0x00, + // 532 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x93, 0xcf, 0x6e, 0xd3, 0x40, + 0x10, 0xc6, 0x63, 0x5a, 0x92, 0x66, 0x1b, 0x50, 0x63, 0x28, 0x5d, 0xa2, 0xca, 0xb1, 0x22, 0x0e, + 0x51, 0x05, 0xb6, 0x02, 0xea, 0xa1, 0x1c, 0xdd, 0x3f, 0x28, 0x07, 0xa4, 0x28, 0x20, 0x84, 0x38, + 0x10, 0x6d, 0x9c, 0x49, 0xba, 0xc2, 0xf6, 0x5a, 0xde, 0x75, 0x94, 0xbc, 0x05, 0x8f, 0xc1, 0x91, + 0x87, 0xe0, 0xd0, 0x63, 0x8f, 0x9c, 0x22, 0x94, 0x1c, 0x90, 0x38, 0xf2, 0x04, 0xc8, 0xeb, 0xb5, + 0x43, 0x9d, 0x5c, 0xac, 0xd5, 0xcc, 0xf7, 0xfd, 0xbe, 0xf5, 0x6a, 0x06, 0x1d, 0xd3, 0x80, 0x0a, + 0x4a, 0x6c, 0x9f, 0x4d, 0xc1, 0x9e, 0x76, 0xec, 0x09, 0x04, 0xc0, 0x29, 0xb7, 0xc2, 0x88, 0x09, + 0xa6, 0x3f, 0x4c, 0xbb, 0x56, 0xd2, 0xb5, 0xa6, 0x9d, 0x46, 0x9d, 0xf8, 0x34, 0x60, 0xb6, 0xfc, + 0xa6, 0x92, 0xc6, 0xe3, 0x09, 0x9b, 0x30, 0x79, 0xb4, 0x93, 0x93, 0xaa, 0x36, 0x0a, 0x58, 0x31, + 0x0f, 0x41, 0x41, 0x5b, 0x3f, 0xca, 0xa8, 0xf6, 0x26, 0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 0x7c, 0xf5, 0x2f, 0x00, 0x00, 0xff, 0xff, 0x3d, 0xfe, 0x64, 0xa7, + 0x08, 0x04, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { From dd9120cf35f4eb2a11408b26bf6a0d4fa10f245c Mon Sep 17 00:00:00 2001 From: sh-cha Date: Fri, 21 Mar 2025 16:12:57 +0900 Subject: [PATCH 03/14] make dynamic-fee module independent & use BaseGasPrice instead of BaseFee --- .../dynamicfee/module/v1/module.pulsar.go | 583 +++++++ api/initia/dynamicfee/v1/genesis.pulsar.go | 598 +++++++ api/initia/dynamicfee/v1/query.pulsar.go | 1015 ++++++++++++ api/initia/dynamicfee/v1/query_grpc.pb.go | 111 ++ api/initia/dynamicfee/v1/tx.pulsar.go | 1095 +++++++++++++ api/initia/dynamicfee/v1/tx_grpc.pb.go | 113 ++ api/initia/dynamicfee/v1/types.pulsar.go | 875 +++++++++++ api/initia/move/v1/genesis.pulsar.go | 165 +- api/initia/move/v1/query.pulsar.go | 1381 +++-------------- api/initia/move/v1/query_grpc.pb.go | 71 +- api/initia/move/v1/tx.pulsar.go | 1238 ++------------- api/initia/move/v1/tx_grpc.pb.go | 67 +- api/initia/move/v1/types.pulsar.go | 1328 +++------------- app/ante/ante.go | 23 +- app/app.go | 2 +- app/blocksdk.go | 16 +- app/keepers/keepers.go | 14 + app/keepers/keys.go | 3 + app/modules.go | 8 +- .../initia/dynamicfee/module/v1/module.proto | 14 + proto/initia/dynamicfee/v1/genesis.proto | 16 + proto/initia/dynamicfee/v1/query.proto | 29 + proto/initia/dynamicfee/v1/tx.proto | 41 + proto/initia/dynamicfee/v1/types.proto | 41 + proto/initia/move/v1/genesis.proto | 4 - proto/initia/move/v1/query.proto | 13 - proto/initia/move/v1/tx.proto | 23 - proto/initia/move/v1/types.proto | 36 +- x/dynamic-fee/abci.go | 20 + x/dynamic-fee/abci_test.go | 73 + x/{move => dynamic-fee}/ante/ante_test.go | 0 x/{move => dynamic-fee}/ante/context_keys.go | 0 x/{move => dynamic-fee}/ante/fee.go | 46 +- x/{move => dynamic-fee}/ante/fee_test.go | 128 +- x/{move => dynamic-fee}/ante/fee_utils.go | 0 x/{move => dynamic-fee}/ante/gas_prices.go | 0 .../ante/gas_prices_test.go | 2 +- x/dynamic-fee/autocli.go | 21 + x/dynamic-fee/client/cli/flags.go | 50 + x/dynamic-fee/common_test.go | 191 +++ x/dynamic-fee/keeper/ante.go | 32 + x/dynamic-fee/keeper/common_test.go | 693 +++++++++ x/dynamic-fee/keeper/gas_price.go | 70 + x/dynamic-fee/keeper/genesis.go | 28 + x/dynamic-fee/keeper/keeper.go | 117 ++ x/dynamic-fee/keeper/keeper_test.go | 57 + x/dynamic-fee/keeper/msg_server.go | 43 + x/dynamic-fee/keeper/msg_server_test.go | 33 + x/dynamic-fee/keeper/querier.go | 29 + x/dynamic-fee/keeper/querier_test.go | 22 + x/dynamic-fee/module.go | 139 ++ .../exported.go => dynamic-fee/types/ante.go} | 4 +- x/dynamic-fee/types/codec.go | 24 + x/dynamic-fee/types/expected_keeper.go | 19 + x/dynamic-fee/types/genesis.go | 21 + x/dynamic-fee/types/genesis.pb.go | 325 ++++ x/dynamic-fee/types/keys.go | 24 + x/dynamic-fee/types/params.go | 61 + x/dynamic-fee/types/query.pb.go | 533 +++++++ x/dynamic-fee/types/query.pb.gw.go | 153 ++ x/dynamic-fee/types/tx.go | 23 + x/dynamic-fee/types/tx.pb.go | 586 +++++++ x/dynamic-fee/types/types.pb.go | 532 +++++++ x/move/abci.go | 9 - x/move/abci_test.go | 80 - x/move/keeper/ante.go | 25 - x/move/keeper/common_test.go | 9 - x/move/keeper/dex.go | 72 - x/move/keeper/dex_test.go | 42 - x/move/keeper/eip1559.go | 60 - x/move/keeper/eip1559_test.go | 58 - x/move/keeper/genesis.go | 13 - x/move/keeper/handler.go | 2 +- x/move/keeper/handler_test.go | 2 +- x/move/keeper/keeper.go | 9 - x/move/keeper/msg_server.go | 18 - x/move/keeper/msg_server_test.go | 24 - x/move/keeper/params.go | 9 - x/move/keeper/querier.go | 12 - x/move/keeper/querier_test.go | 13 - x/move/keeper/whitelist.go | 17 + x/move/module.go | 5 - x/move/types/eip1559_params.go | 64 - x/move/types/genesis.go | 1 - x/move/types/genesis.pb.go | 138 +- x/move/types/params.go | 21 - x/move/types/params_test.go | 8 +- x/move/types/query.pb.go | 527 ++----- x/move/types/query.pb.gw.go | 65 - x/move/types/tx.pb.go | 527 +------ x/move/types/types.pb.go | 559 +------ 91 files changed, 9493 insertions(+), 5918 deletions(-) create mode 100644 api/initia/dynamicfee/module/v1/module.pulsar.go create mode 100644 api/initia/dynamicfee/v1/genesis.pulsar.go create mode 100644 api/initia/dynamicfee/v1/query.pulsar.go create mode 100644 api/initia/dynamicfee/v1/query_grpc.pb.go create mode 100644 api/initia/dynamicfee/v1/tx.pulsar.go create mode 100644 api/initia/dynamicfee/v1/tx_grpc.pb.go create mode 100644 api/initia/dynamicfee/v1/types.pulsar.go create mode 100644 proto/initia/dynamicfee/module/v1/module.proto create mode 100644 proto/initia/dynamicfee/v1/genesis.proto create mode 100644 proto/initia/dynamicfee/v1/query.proto create mode 100644 proto/initia/dynamicfee/v1/tx.proto create mode 100644 proto/initia/dynamicfee/v1/types.proto create mode 100644 x/dynamic-fee/abci.go create mode 100644 x/dynamic-fee/abci_test.go rename x/{move => dynamic-fee}/ante/ante_test.go (100%) rename x/{move => dynamic-fee}/ante/context_keys.go (100%) rename x/{move => dynamic-fee}/ante/fee.go (70%) rename x/{move => dynamic-fee}/ante/fee_test.go (54%) rename x/{move => dynamic-fee}/ante/fee_utils.go (100%) rename x/{move => dynamic-fee}/ante/gas_prices.go (100%) rename x/{move => dynamic-fee}/ante/gas_prices_test.go (96%) create mode 100644 x/dynamic-fee/autocli.go create mode 100644 x/dynamic-fee/client/cli/flags.go create mode 100644 x/dynamic-fee/common_test.go create mode 100644 x/dynamic-fee/keeper/ante.go create mode 100644 x/dynamic-fee/keeper/common_test.go create mode 100644 x/dynamic-fee/keeper/gas_price.go create mode 100644 x/dynamic-fee/keeper/genesis.go create mode 100644 x/dynamic-fee/keeper/keeper.go create mode 100644 x/dynamic-fee/keeper/keeper_test.go create mode 100644 x/dynamic-fee/keeper/msg_server.go create mode 100644 x/dynamic-fee/keeper/msg_server_test.go create mode 100644 x/dynamic-fee/keeper/querier.go create mode 100644 x/dynamic-fee/keeper/querier_test.go create mode 100644 x/dynamic-fee/module.go rename x/{move/types/exported.go => dynamic-fee/types/ante.go} (57%) create mode 100644 x/dynamic-fee/types/codec.go create mode 100644 x/dynamic-fee/types/expected_keeper.go create mode 100644 x/dynamic-fee/types/genesis.go create mode 100644 x/dynamic-fee/types/genesis.pb.go create mode 100644 x/dynamic-fee/types/keys.go create mode 100644 x/dynamic-fee/types/params.go create mode 100644 x/dynamic-fee/types/query.pb.go create mode 100644 x/dynamic-fee/types/query.pb.gw.go create mode 100644 x/dynamic-fee/types/tx.go create mode 100644 x/dynamic-fee/types/tx.pb.go create mode 100644 x/dynamic-fee/types/types.pb.go delete mode 100644 x/move/keeper/ante.go delete mode 100644 x/move/keeper/eip1559.go delete mode 100644 x/move/keeper/eip1559_test.go delete mode 100644 x/move/types/eip1559_params.go diff --git a/api/initia/dynamicfee/module/v1/module.pulsar.go b/api/initia/dynamicfee/module/v1/module.pulsar.go new file mode 100644 index 000000000..5a0ce19f9 --- /dev/null +++ b/api/initia/dynamicfee/module/v1/module.pulsar.go @@ -0,0 +1,583 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package modulev1 + +import ( + _ "cosmossdk.io/api/cosmos/app/v1alpha1" + fmt "fmt" + runtime "github.com/cosmos/cosmos-proto/runtime" + 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_Module protoreflect.MessageDescriptor + fd_Module_authority protoreflect.FieldDescriptor +) + +func init() { + file_initia_dynamicfee_module_v1_module_proto_init() + md_Module = File_initia_dynamicfee_module_v1_module_proto.Messages().ByName("Module") + fd_Module_authority = md_Module.Fields().ByName("authority") +} + +var _ protoreflect.Message = (*fastReflection_Module)(nil) + +type fastReflection_Module Module + +func (x *Module) ProtoReflect() protoreflect.Message { + return (*fastReflection_Module)(x) +} + +func (x *Module) slowProtoReflect() protoreflect.Message { + mi := &file_initia_dynamicfee_module_v1_module_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_Module_messageType fastReflection_Module_messageType +var _ protoreflect.MessageType = fastReflection_Module_messageType{} + +type fastReflection_Module_messageType struct{} + +func (x fastReflection_Module_messageType) Zero() protoreflect.Message { + return (*fastReflection_Module)(nil) +} +func (x fastReflection_Module_messageType) New() protoreflect.Message { + return new(fastReflection_Module) +} +func (x fastReflection_Module_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_Module +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_Module) Descriptor() protoreflect.MessageDescriptor { + return md_Module +} + +// 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_Module) Type() protoreflect.MessageType { + return _fastReflection_Module_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_Module) New() protoreflect.Message { + return new(fastReflection_Module) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_Module) Interface() protoreflect.ProtoMessage { + return (*Module)(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_Module) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Authority != "" { + value := protoreflect.ValueOfString(x.Authority) + if !f(fd_Module_authority, 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_Module) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "initia.dynamicfee.module.v1.Module.authority": + return x.Authority != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.dynamicfee.module.v1.Module")) + } + panic(fmt.Errorf("message initia.dynamicfee.module.v1.Module 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_Module) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "initia.dynamicfee.module.v1.Module.authority": + x.Authority = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.dynamicfee.module.v1.Module")) + } + panic(fmt.Errorf("message initia.dynamicfee.module.v1.Module 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_Module) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "initia.dynamicfee.module.v1.Module.authority": + value := x.Authority + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.dynamicfee.module.v1.Module")) + } + panic(fmt.Errorf("message initia.dynamicfee.module.v1.Module 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_Module) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "initia.dynamicfee.module.v1.Module.authority": + x.Authority = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.dynamicfee.module.v1.Module")) + } + panic(fmt.Errorf("message initia.dynamicfee.module.v1.Module 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_Module) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "initia.dynamicfee.module.v1.Module.authority": + panic(fmt.Errorf("field authority of message initia.dynamicfee.module.v1.Module is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.dynamicfee.module.v1.Module")) + } + panic(fmt.Errorf("message initia.dynamicfee.module.v1.Module 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_Module) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "initia.dynamicfee.module.v1.Module.authority": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.dynamicfee.module.v1.Module")) + } + panic(fmt.Errorf("message initia.dynamicfee.module.v1.Module 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_Module) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in initia.dynamicfee.module.v1.Module", 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_Module) 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_Module) 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_Module) 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_Module) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*Module) + 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.Authority) + 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().(*Module) + 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.Authority) > 0 { + i -= len(x.Authority) + copy(dAtA[i:], x.Authority) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) + i-- + dAtA[i] = 0x12 + } + 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().(*Module) + 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: Module: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Module: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", 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.Authority = 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, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: initia/dynamicfee/module/v1/module.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) +) + +// Module is the config object of the builder module. +type Module struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Authority defines the custom module authority. + // If not set, defaults to the governance module. + Authority string `protobuf:"bytes,2,opt,name=authority,proto3" json:"authority,omitempty"` +} + +func (x *Module) Reset() { + *x = Module{} + if protoimpl.UnsafeEnabled { + mi := &file_initia_dynamicfee_module_v1_module_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Module) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Module) ProtoMessage() {} + +// Deprecated: Use Module.ProtoReflect.Descriptor instead. +func (*Module) Descriptor() ([]byte, []int) { + return file_initia_dynamicfee_module_v1_module_proto_rawDescGZIP(), []int{0} +} + +func (x *Module) GetAuthority() string { + if x != nil { + return x.Authority + } + return "" +} + +var File_initia_dynamicfee_module_v1_module_proto protoreflect.FileDescriptor + +var file_initia_dynamicfee_module_v1_module_proto_rawDesc = []byte{ + 0x0a, 0x28, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, + 0x66, 0x65, 0x65, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x6f, + 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x69, 0x6e, 0x69, 0x74, + 0x69, 0x61, 0x2e, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x66, 0x65, 0x65, 0x2e, 0x6d, 0x6f, + 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x20, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, + 0x61, 0x70, 0x70, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x6d, 0x6f, 0x64, + 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5b, 0x0a, 0x06, 0x4d, 0x6f, 0x64, + 0x75, 0x6c, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, + 0x79, 0x3a, 0x33, 0xba, 0xc0, 0x96, 0xda, 0x01, 0x2d, 0x0a, 0x2b, 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, 0x78, 0x2f, 0x64, 0x79, 0x6e, 0x61, 0x6d, + 0x69, 0x63, 0x2d, 0x66, 0x65, 0x65, 0x42, 0x85, 0x02, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x69, + 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x66, 0x65, 0x65, + 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x4d, 0x6f, 0x64, 0x75, + 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x46, 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, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x66, 0x65, 0x65, 0x2f, 0x6d, + 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x76, + 0x31, 0xa2, 0x02, 0x03, 0x49, 0x44, 0x4d, 0xaa, 0x02, 0x1b, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, + 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x66, 0x65, 0x65, 0x2e, 0x4d, 0x6f, 0x64, 0x75, + 0x6c, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1b, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x5c, 0x44, + 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x66, 0x65, 0x65, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, + 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x27, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x5c, 0x44, 0x79, 0x6e, + 0x61, 0x6d, 0x69, 0x63, 0x66, 0x65, 0x65, 0x5c, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5c, 0x56, + 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1e, + 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x3a, 0x3a, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x66, + 0x65, 0x65, 0x3a, 0x3a, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_initia_dynamicfee_module_v1_module_proto_rawDescOnce sync.Once + file_initia_dynamicfee_module_v1_module_proto_rawDescData = file_initia_dynamicfee_module_v1_module_proto_rawDesc +) + +func file_initia_dynamicfee_module_v1_module_proto_rawDescGZIP() []byte { + file_initia_dynamicfee_module_v1_module_proto_rawDescOnce.Do(func() { + file_initia_dynamicfee_module_v1_module_proto_rawDescData = protoimpl.X.CompressGZIP(file_initia_dynamicfee_module_v1_module_proto_rawDescData) + }) + return file_initia_dynamicfee_module_v1_module_proto_rawDescData +} + +var file_initia_dynamicfee_module_v1_module_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_initia_dynamicfee_module_v1_module_proto_goTypes = []interface{}{ + (*Module)(nil), // 0: initia.dynamicfee.module.v1.Module +} +var file_initia_dynamicfee_module_v1_module_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_initia_dynamicfee_module_v1_module_proto_init() } +func file_initia_dynamicfee_module_v1_module_proto_init() { + if File_initia_dynamicfee_module_v1_module_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_initia_dynamicfee_module_v1_module_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Module); 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_dynamicfee_module_v1_module_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_initia_dynamicfee_module_v1_module_proto_goTypes, + DependencyIndexes: file_initia_dynamicfee_module_v1_module_proto_depIdxs, + MessageInfos: file_initia_dynamicfee_module_v1_module_proto_msgTypes, + }.Build() + File_initia_dynamicfee_module_v1_module_proto = out.File + file_initia_dynamicfee_module_v1_module_proto_rawDesc = nil + file_initia_dynamicfee_module_v1_module_proto_goTypes = nil + file_initia_dynamicfee_module_v1_module_proto_depIdxs = nil +} diff --git a/api/initia/dynamicfee/v1/genesis.pulsar.go b/api/initia/dynamicfee/v1/genesis.pulsar.go new file mode 100644 index 000000000..a2b559521 --- /dev/null +++ b/api/initia/dynamicfee/v1/genesis.pulsar.go @@ -0,0 +1,598 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package dynamicfeev1 + +import ( + _ "cosmossdk.io/api/amino" + fmt "fmt" + runtime "github.com/cosmos/cosmos-proto/runtime" + _ "github.com/cosmos/gogoproto/gogoproto" + 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_GenesisState protoreflect.MessageDescriptor + fd_GenesisState_params protoreflect.FieldDescriptor +) + +func init() { + file_initia_dynamicfee_v1_genesis_proto_init() + md_GenesisState = File_initia_dynamicfee_v1_genesis_proto.Messages().ByName("GenesisState") + fd_GenesisState_params = md_GenesisState.Fields().ByName("params") +} + +var _ protoreflect.Message = (*fastReflection_GenesisState)(nil) + +type fastReflection_GenesisState GenesisState + +func (x *GenesisState) ProtoReflect() protoreflect.Message { + return (*fastReflection_GenesisState)(x) +} + +func (x *GenesisState) slowProtoReflect() protoreflect.Message { + mi := &file_initia_dynamicfee_v1_genesis_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_GenesisState_messageType fastReflection_GenesisState_messageType +var _ protoreflect.MessageType = fastReflection_GenesisState_messageType{} + +type fastReflection_GenesisState_messageType struct{} + +func (x fastReflection_GenesisState_messageType) Zero() protoreflect.Message { + return (*fastReflection_GenesisState)(nil) +} +func (x fastReflection_GenesisState_messageType) New() protoreflect.Message { + return new(fastReflection_GenesisState) +} +func (x fastReflection_GenesisState_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_GenesisState +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_GenesisState) Descriptor() protoreflect.MessageDescriptor { + return md_GenesisState +} + +// 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_GenesisState) Type() protoreflect.MessageType { + return _fastReflection_GenesisState_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_GenesisState) New() protoreflect.Message { + return new(fastReflection_GenesisState) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_GenesisState) Interface() protoreflect.ProtoMessage { + return (*GenesisState)(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_GenesisState) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Params != nil { + value := protoreflect.ValueOfMessage(x.Params.ProtoReflect()) + if !f(fd_GenesisState_params, 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_GenesisState) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "initia.dynamicfee.v1.GenesisState.params": + return x.Params != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.dynamicfee.v1.GenesisState")) + } + panic(fmt.Errorf("message initia.dynamicfee.v1.GenesisState 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_GenesisState) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "initia.dynamicfee.v1.GenesisState.params": + x.Params = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.dynamicfee.v1.GenesisState")) + } + panic(fmt.Errorf("message initia.dynamicfee.v1.GenesisState 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_GenesisState) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "initia.dynamicfee.v1.GenesisState.params": + value := x.Params + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.dynamicfee.v1.GenesisState")) + } + panic(fmt.Errorf("message initia.dynamicfee.v1.GenesisState 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_GenesisState) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "initia.dynamicfee.v1.GenesisState.params": + x.Params = value.Message().Interface().(*Params) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.dynamicfee.v1.GenesisState")) + } + panic(fmt.Errorf("message initia.dynamicfee.v1.GenesisState 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_GenesisState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "initia.dynamicfee.v1.GenesisState.params": + if x.Params == nil { + x.Params = new(Params) + } + return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.dynamicfee.v1.GenesisState")) + } + panic(fmt.Errorf("message initia.dynamicfee.v1.GenesisState 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_GenesisState) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "initia.dynamicfee.v1.GenesisState.params": + m := new(Params) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.dynamicfee.v1.GenesisState")) + } + panic(fmt.Errorf("message initia.dynamicfee.v1.GenesisState 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_GenesisState) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in initia.dynamicfee.v1.GenesisState", 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_GenesisState) 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_GenesisState) 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_GenesisState) 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_GenesisState) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*GenesisState) + 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.Params != nil { + l = options.Size(x.Params) + 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().(*GenesisState) + 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.Params != nil { + encoded, err := options.Marshal(x.Params) + 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().(*GenesisState) + 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: GenesisState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: 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 Params", 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.Params == nil { + x.Params = &Params{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); 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/dynamicfee/v1/genesis.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) +) + +// GenesisState - genesis state of x/move +type GenesisState struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` +} + +func (x *GenesisState) Reset() { + *x = GenesisState{} + if protoimpl.UnsafeEnabled { + mi := &file_initia_dynamicfee_v1_genesis_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GenesisState) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GenesisState) ProtoMessage() {} + +// Deprecated: Use GenesisState.ProtoReflect.Descriptor instead. +func (*GenesisState) Descriptor() ([]byte, []int) { + return file_initia_dynamicfee_v1_genesis_proto_rawDescGZIP(), []int{0} +} + +func (x *GenesisState) GetParams() *Params { + if x != nil { + return x.Params + } + return nil +} + +var File_initia_dynamicfee_v1_genesis_proto protoreflect.FileDescriptor + +var file_initia_dynamicfee_v1_genesis_proto_rawDesc = []byte{ + 0x0a, 0x22, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, + 0x66, 0x65, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x64, 0x79, 0x6e, + 0x61, 0x6d, 0x69, 0x63, 0x66, 0x65, 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, 0x1a, 0x20, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x64, 0x79, 0x6e, 0x61, + 0x6d, 0x69, 0x63, 0x66, 0x65, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4f, 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3f, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x64, + 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x66, 0x65, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, + 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0xdf, 0x01, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x69, + 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x66, 0x65, 0x65, + 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, + 0x6f, 0x50, 0x01, 0x5a, 0x43, 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, 0x64, 0x79, + 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x66, 0x65, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x64, 0x79, 0x6e, 0x61, + 0x6d, 0x69, 0x63, 0x66, 0x65, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x49, 0x44, 0x58, 0xaa, 0x02, + 0x14, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x66, + 0x65, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x14, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x5c, 0x44, + 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x66, 0x65, 0x65, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x20, 0x49, + 0x6e, 0x69, 0x74, 0x69, 0x61, 0x5c, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x66, 0x65, 0x65, + 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, + 0x02, 0x16, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x3a, 0x3a, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, + 0x63, 0x66, 0x65, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_initia_dynamicfee_v1_genesis_proto_rawDescOnce sync.Once + file_initia_dynamicfee_v1_genesis_proto_rawDescData = file_initia_dynamicfee_v1_genesis_proto_rawDesc +) + +func file_initia_dynamicfee_v1_genesis_proto_rawDescGZIP() []byte { + file_initia_dynamicfee_v1_genesis_proto_rawDescOnce.Do(func() { + file_initia_dynamicfee_v1_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_initia_dynamicfee_v1_genesis_proto_rawDescData) + }) + return file_initia_dynamicfee_v1_genesis_proto_rawDescData +} + +var file_initia_dynamicfee_v1_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_initia_dynamicfee_v1_genesis_proto_goTypes = []interface{}{ + (*GenesisState)(nil), // 0: initia.dynamicfee.v1.GenesisState + (*Params)(nil), // 1: initia.dynamicfee.v1.Params +} +var file_initia_dynamicfee_v1_genesis_proto_depIdxs = []int32{ + 1, // 0: initia.dynamicfee.v1.GenesisState.params:type_name -> initia.dynamicfee.v1.Params + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] 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 +} + +func init() { file_initia_dynamicfee_v1_genesis_proto_init() } +func file_initia_dynamicfee_v1_genesis_proto_init() { + if File_initia_dynamicfee_v1_genesis_proto != nil { + return + } + file_initia_dynamicfee_v1_types_proto_init() + if !protoimpl.UnsafeEnabled { + file_initia_dynamicfee_v1_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GenesisState); 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_dynamicfee_v1_genesis_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_initia_dynamicfee_v1_genesis_proto_goTypes, + DependencyIndexes: file_initia_dynamicfee_v1_genesis_proto_depIdxs, + MessageInfos: file_initia_dynamicfee_v1_genesis_proto_msgTypes, + }.Build() + File_initia_dynamicfee_v1_genesis_proto = out.File + file_initia_dynamicfee_v1_genesis_proto_rawDesc = nil + file_initia_dynamicfee_v1_genesis_proto_goTypes = nil + file_initia_dynamicfee_v1_genesis_proto_depIdxs = nil +} diff --git a/api/initia/dynamicfee/v1/query.pulsar.go b/api/initia/dynamicfee/v1/query.pulsar.go new file mode 100644 index 000000000..a7f9c4259 --- /dev/null +++ b/api/initia/dynamicfee/v1/query.pulsar.go @@ -0,0 +1,1015 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package dynamicfeev1 + +import ( + _ "cosmossdk.io/api/amino" + _ "cosmossdk.io/api/cosmos/base/query/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_QueryParamsRequest protoreflect.MessageDescriptor +) + +func init() { + file_initia_dynamicfee_v1_query_proto_init() + md_QueryParamsRequest = File_initia_dynamicfee_v1_query_proto.Messages().ByName("QueryParamsRequest") +} + +var _ protoreflect.Message = (*fastReflection_QueryParamsRequest)(nil) + +type fastReflection_QueryParamsRequest QueryParamsRequest + +func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryParamsRequest)(x) +} + +func (x *QueryParamsRequest) slowProtoReflect() protoreflect.Message { + mi := &file_initia_dynamicfee_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_QueryParamsRequest_messageType fastReflection_QueryParamsRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryParamsRequest_messageType{} + +type fastReflection_QueryParamsRequest_messageType struct{} + +func (x fastReflection_QueryParamsRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryParamsRequest)(nil) +} +func (x fastReflection_QueryParamsRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryParamsRequest) +} +func (x fastReflection_QueryParamsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryParamsRequest +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryParamsRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryParamsRequest +} + +// 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_QueryParamsRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryParamsRequest_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryParamsRequest) New() protoreflect.Message { + return new(fastReflection_QueryParamsRequest) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryParamsRequest) Interface() protoreflect.ProtoMessage { + return (*QueryParamsRequest)(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_QueryParamsRequest) 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_QueryParamsRequest) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.dynamicfee.v1.QueryParamsRequest")) + } + panic(fmt.Errorf("message initia.dynamicfee.v1.QueryParamsRequest 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_QueryParamsRequest) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.dynamicfee.v1.QueryParamsRequest")) + } + panic(fmt.Errorf("message initia.dynamicfee.v1.QueryParamsRequest 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_QueryParamsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.dynamicfee.v1.QueryParamsRequest")) + } + panic(fmt.Errorf("message initia.dynamicfee.v1.QueryParamsRequest 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_QueryParamsRequest) 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.dynamicfee.v1.QueryParamsRequest")) + } + panic(fmt.Errorf("message initia.dynamicfee.v1.QueryParamsRequest 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_QueryParamsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.dynamicfee.v1.QueryParamsRequest")) + } + panic(fmt.Errorf("message initia.dynamicfee.v1.QueryParamsRequest 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_QueryParamsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.dynamicfee.v1.QueryParamsRequest")) + } + panic(fmt.Errorf("message initia.dynamicfee.v1.QueryParamsRequest 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_QueryParamsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in initia.dynamicfee.v1.QueryParamsRequest", 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_QueryParamsRequest) 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_QueryParamsRequest) 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_QueryParamsRequest) 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_QueryParamsRequest) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryParamsRequest) + 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().(*QueryParamsRequest) + 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().(*QueryParamsRequest) + 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: QueryParamsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsRequest: 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 ( + md_QueryParamsResponse protoreflect.MessageDescriptor + fd_QueryParamsResponse_params protoreflect.FieldDescriptor +) + +func init() { + file_initia_dynamicfee_v1_query_proto_init() + md_QueryParamsResponse = File_initia_dynamicfee_v1_query_proto.Messages().ByName("QueryParamsResponse") + fd_QueryParamsResponse_params = md_QueryParamsResponse.Fields().ByName("params") +} + +var _ protoreflect.Message = (*fastReflection_QueryParamsResponse)(nil) + +type fastReflection_QueryParamsResponse QueryParamsResponse + +func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryParamsResponse)(x) +} + +func (x *QueryParamsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_initia_dynamicfee_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_QueryParamsResponse_messageType fastReflection_QueryParamsResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryParamsResponse_messageType{} + +type fastReflection_QueryParamsResponse_messageType struct{} + +func (x fastReflection_QueryParamsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryParamsResponse)(nil) +} +func (x fastReflection_QueryParamsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryParamsResponse) +} +func (x fastReflection_QueryParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryParamsResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryParamsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryParamsResponse +} + +// 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_QueryParamsResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryParamsResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryParamsResponse) New() protoreflect.Message { + return new(fastReflection_QueryParamsResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryParamsResponse) Interface() protoreflect.ProtoMessage { + return (*QueryParamsResponse)(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_QueryParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Params != nil { + value := protoreflect.ValueOfMessage(x.Params.ProtoReflect()) + if !f(fd_QueryParamsResponse_params, 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_QueryParamsResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "initia.dynamicfee.v1.QueryParamsResponse.params": + return x.Params != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.dynamicfee.v1.QueryParamsResponse")) + } + panic(fmt.Errorf("message initia.dynamicfee.v1.QueryParamsResponse 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_QueryParamsResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "initia.dynamicfee.v1.QueryParamsResponse.params": + x.Params = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.dynamicfee.v1.QueryParamsResponse")) + } + panic(fmt.Errorf("message initia.dynamicfee.v1.QueryParamsResponse 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_QueryParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "initia.dynamicfee.v1.QueryParamsResponse.params": + value := x.Params + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.dynamicfee.v1.QueryParamsResponse")) + } + panic(fmt.Errorf("message initia.dynamicfee.v1.QueryParamsResponse 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_QueryParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "initia.dynamicfee.v1.QueryParamsResponse.params": + x.Params = value.Message().Interface().(*Params) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.dynamicfee.v1.QueryParamsResponse")) + } + panic(fmt.Errorf("message initia.dynamicfee.v1.QueryParamsResponse 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_QueryParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "initia.dynamicfee.v1.QueryParamsResponse.params": + if x.Params == nil { + x.Params = new(Params) + } + return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.dynamicfee.v1.QueryParamsResponse")) + } + panic(fmt.Errorf("message initia.dynamicfee.v1.QueryParamsResponse 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_QueryParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "initia.dynamicfee.v1.QueryParamsResponse.params": + m := new(Params) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.dynamicfee.v1.QueryParamsResponse")) + } + panic(fmt.Errorf("message initia.dynamicfee.v1.QueryParamsResponse 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_QueryParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in initia.dynamicfee.v1.QueryParamsResponse", 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_QueryParamsResponse) 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_QueryParamsResponse) 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_QueryParamsResponse) 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_QueryParamsResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*QueryParamsResponse) + 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.Params != nil { + l = options.Size(x.Params) + 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().(*QueryParamsResponse) + 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.Params != nil { + encoded, err := options.Marshal(x.Params) + 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().(*QueryParamsResponse) + 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: QueryParamsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsResponse: 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 Params", 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.Params == nil { + x.Params = &Params{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); 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/dynamicfee/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) +) + +// QueryParamsRequest is the request type for the Query/Params RPC method. +type QueryParamsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *QueryParamsRequest) Reset() { + *x = QueryParamsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_initia_dynamicfee_v1_query_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryParamsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryParamsRequest) ProtoMessage() {} + +// Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead. +func (*QueryParamsRequest) Descriptor() ([]byte, []int) { + return file_initia_dynamicfee_v1_query_proto_rawDescGZIP(), []int{0} +} + +// QueryParamsResponse is the response type for the Query/Params RPC method. +type QueryParamsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // params defines the parameters of the module. + Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` +} + +func (x *QueryParamsResponse) Reset() { + *x = QueryParamsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_initia_dynamicfee_v1_query_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryParamsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryParamsResponse) ProtoMessage() {} + +// Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead. +func (*QueryParamsResponse) Descriptor() ([]byte, []int) { + return file_initia_dynamicfee_v1_query_proto_rawDescGZIP(), []int{1} +} + +func (x *QueryParamsResponse) GetParams() *Params { + if x != nil { + return x.Params + } + return nil +} + +var File_initia_dynamicfee_v1_query_proto protoreflect.FileDescriptor + +var file_initia_dynamicfee_v1_query_proto_rawDesc = []byte{ + 0x0a, 0x20, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, + 0x66, 0x65, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x12, 0x14, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x64, 0x79, 0x6e, 0x61, 0x6d, + 0x69, 0x63, 0x66, 0x65, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, + 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, + 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, + 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, 0x1a, 0x20, 0x69, 0x6e, 0x69, + 0x74, 0x69, 0x61, 0x2f, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x66, 0x65, 0x65, 0x2f, 0x76, + 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x14, 0x0a, + 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x22, 0x51, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, + 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x06, 0x70, 0x61, + 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x69, 0x6e, 0x69, + 0x74, 0x69, 0x61, 0x2e, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x66, 0x65, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, + 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x32, 0x8d, 0x01, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x12, 0x83, 0x01, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x28, 0x2e, 0x69, 0x6e, + 0x69, 0x74, 0x69, 0x61, 0x2e, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x66, 0x65, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x64, + 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x66, 0x65, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x12, 0x1c, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, + 0x61, 0x2f, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x66, 0x65, 0x65, 0x2f, 0x76, 0x31, 0x2f, + 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0xe5, 0x01, 0xc8, 0xe1, 0x1e, 0x00, 0xa8, 0xe2, 0x1e, + 0x00, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x64, 0x79, + 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x66, 0x65, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x43, 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, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x66, 0x65, 0x65, 0x2f, 0x76, + 0x31, 0x3b, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x66, 0x65, 0x65, 0x76, 0x31, 0xa2, 0x02, + 0x03, 0x49, 0x44, 0x58, 0xaa, 0x02, 0x14, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x44, 0x79, + 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x66, 0x65, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x14, 0x49, 0x6e, + 0x69, 0x74, 0x69, 0x61, 0x5c, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x66, 0x65, 0x65, 0x5c, + 0x56, 0x31, 0xe2, 0x02, 0x20, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x5c, 0x44, 0x79, 0x6e, 0x61, + 0x6d, 0x69, 0x63, 0x66, 0x65, 0x65, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x16, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x3a, 0x3a, + 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x66, 0x65, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_initia_dynamicfee_v1_query_proto_rawDescOnce sync.Once + file_initia_dynamicfee_v1_query_proto_rawDescData = file_initia_dynamicfee_v1_query_proto_rawDesc +) + +func file_initia_dynamicfee_v1_query_proto_rawDescGZIP() []byte { + file_initia_dynamicfee_v1_query_proto_rawDescOnce.Do(func() { + file_initia_dynamicfee_v1_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_initia_dynamicfee_v1_query_proto_rawDescData) + }) + return file_initia_dynamicfee_v1_query_proto_rawDescData +} + +var file_initia_dynamicfee_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_initia_dynamicfee_v1_query_proto_goTypes = []interface{}{ + (*QueryParamsRequest)(nil), // 0: initia.dynamicfee.v1.QueryParamsRequest + (*QueryParamsResponse)(nil), // 1: initia.dynamicfee.v1.QueryParamsResponse + (*Params)(nil), // 2: initia.dynamicfee.v1.Params +} +var file_initia_dynamicfee_v1_query_proto_depIdxs = []int32{ + 2, // 0: initia.dynamicfee.v1.QueryParamsResponse.params:type_name -> initia.dynamicfee.v1.Params + 0, // 1: initia.dynamicfee.v1.Query.Params:input_type -> initia.dynamicfee.v1.QueryParamsRequest + 1, // 2: initia.dynamicfee.v1.Query.Params:output_type -> initia.dynamicfee.v1.QueryParamsResponse + 2, // [2:3] is the sub-list for method output_type + 1, // [1:2] 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 +} + +func init() { file_initia_dynamicfee_v1_query_proto_init() } +func file_initia_dynamicfee_v1_query_proto_init() { + if File_initia_dynamicfee_v1_query_proto != nil { + return + } + file_initia_dynamicfee_v1_types_proto_init() + if !protoimpl.UnsafeEnabled { + file_initia_dynamicfee_v1_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryParamsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_initia_dynamicfee_v1_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryParamsResponse); 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_dynamicfee_v1_query_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_initia_dynamicfee_v1_query_proto_goTypes, + DependencyIndexes: file_initia_dynamicfee_v1_query_proto_depIdxs, + MessageInfos: file_initia_dynamicfee_v1_query_proto_msgTypes, + }.Build() + File_initia_dynamicfee_v1_query_proto = out.File + file_initia_dynamicfee_v1_query_proto_rawDesc = nil + file_initia_dynamicfee_v1_query_proto_goTypes = nil + file_initia_dynamicfee_v1_query_proto_depIdxs = nil +} diff --git a/api/initia/dynamicfee/v1/query_grpc.pb.go b/api/initia/dynamicfee/v1/query_grpc.pb.go new file mode 100644 index 000000000..4dee79817 --- /dev/null +++ b/api/initia/dynamicfee/v1/query_grpc.pb.go @@ -0,0 +1,111 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.3.0 +// - protoc (unknown) +// source: initia/dynamicfee/v1/query.proto + +package dynamicfeev1 + +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_Params_FullMethodName = "/initia.dynamicfee.v1.Query/Params" +) + +// 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 { + // Params queries the params + Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) +} + +type queryClient struct { + cc grpc.ClientConnInterface +} + +func NewQueryClient(cc grpc.ClientConnInterface) QueryClient { + return &queryClient{cc} +} + +func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { + out := new(QueryParamsResponse) + err := c.cc.Invoke(ctx, Query_Params_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 { + // Params queries the params + Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) + mustEmbedUnimplementedQueryServer() +} + +// UnimplementedQueryServer must be embedded to have forward compatible implementations. +type UnimplementedQueryServer struct { +} + +func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Params 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_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryParamsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Params(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_Params_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) + } + 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.dynamicfee.v1.Query", + HandlerType: (*QueryServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Params", + Handler: _Query_Params_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "initia/dynamicfee/v1/query.proto", +} diff --git a/api/initia/dynamicfee/v1/tx.pulsar.go b/api/initia/dynamicfee/v1/tx.pulsar.go new file mode 100644 index 000000000..57e76a136 --- /dev/null +++ b/api/initia/dynamicfee/v1/tx.pulsar.go @@ -0,0 +1,1095 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package dynamicfeev1 + +import ( + _ "cosmossdk.io/api/amino" + _ "cosmossdk.io/api/cosmos/msg/v1" + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + runtime "github.com/cosmos/cosmos-proto/runtime" + _ "github.com/cosmos/gogoproto/gogoproto" + 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_MsgUpdateParams protoreflect.MessageDescriptor + fd_MsgUpdateParams_authority protoreflect.FieldDescriptor + fd_MsgUpdateParams_params protoreflect.FieldDescriptor +) + +func init() { + file_initia_dynamicfee_v1_tx_proto_init() + md_MsgUpdateParams = File_initia_dynamicfee_v1_tx_proto.Messages().ByName("MsgUpdateParams") + fd_MsgUpdateParams_authority = md_MsgUpdateParams.Fields().ByName("authority") + fd_MsgUpdateParams_params = md_MsgUpdateParams.Fields().ByName("params") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdateParams)(nil) + +type fastReflection_MsgUpdateParams MsgUpdateParams + +func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateParams)(x) +} + +func (x *MsgUpdateParams) slowProtoReflect() protoreflect.Message { + mi := &file_initia_dynamicfee_v1_tx_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_MsgUpdateParams_messageType fastReflection_MsgUpdateParams_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateParams_messageType{} + +type fastReflection_MsgUpdateParams_messageType struct{} + +func (x fastReflection_MsgUpdateParams_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateParams)(nil) +} +func (x fastReflection_MsgUpdateParams_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateParams) +} +func (x fastReflection_MsgUpdateParams_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateParams +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpdateParams) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateParams +} + +// 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_MsgUpdateParams) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateParams_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpdateParams) New() protoreflect.Message { + return new(fastReflection_MsgUpdateParams) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpdateParams) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateParams)(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_MsgUpdateParams) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Authority != "" { + value := protoreflect.ValueOfString(x.Authority) + if !f(fd_MsgUpdateParams_authority, value) { + return + } + } + if x.Params != nil { + value := protoreflect.ValueOfMessage(x.Params.ProtoReflect()) + if !f(fd_MsgUpdateParams_params, 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_MsgUpdateParams) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "initia.dynamicfee.v1.MsgUpdateParams.authority": + return x.Authority != "" + case "initia.dynamicfee.v1.MsgUpdateParams.params": + return x.Params != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.dynamicfee.v1.MsgUpdateParams")) + } + panic(fmt.Errorf("message initia.dynamicfee.v1.MsgUpdateParams 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_MsgUpdateParams) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "initia.dynamicfee.v1.MsgUpdateParams.authority": + x.Authority = "" + case "initia.dynamicfee.v1.MsgUpdateParams.params": + x.Params = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.dynamicfee.v1.MsgUpdateParams")) + } + panic(fmt.Errorf("message initia.dynamicfee.v1.MsgUpdateParams 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_MsgUpdateParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "initia.dynamicfee.v1.MsgUpdateParams.authority": + value := x.Authority + return protoreflect.ValueOfString(value) + case "initia.dynamicfee.v1.MsgUpdateParams.params": + value := x.Params + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.dynamicfee.v1.MsgUpdateParams")) + } + panic(fmt.Errorf("message initia.dynamicfee.v1.MsgUpdateParams 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_MsgUpdateParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "initia.dynamicfee.v1.MsgUpdateParams.authority": + x.Authority = value.Interface().(string) + case "initia.dynamicfee.v1.MsgUpdateParams.params": + x.Params = value.Message().Interface().(*Params) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.dynamicfee.v1.MsgUpdateParams")) + } + panic(fmt.Errorf("message initia.dynamicfee.v1.MsgUpdateParams 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_MsgUpdateParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "initia.dynamicfee.v1.MsgUpdateParams.params": + if x.Params == nil { + x.Params = new(Params) + } + return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) + case "initia.dynamicfee.v1.MsgUpdateParams.authority": + panic(fmt.Errorf("field authority of message initia.dynamicfee.v1.MsgUpdateParams is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.dynamicfee.v1.MsgUpdateParams")) + } + panic(fmt.Errorf("message initia.dynamicfee.v1.MsgUpdateParams 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_MsgUpdateParams) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "initia.dynamicfee.v1.MsgUpdateParams.authority": + return protoreflect.ValueOfString("") + case "initia.dynamicfee.v1.MsgUpdateParams.params": + m := new(Params) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.dynamicfee.v1.MsgUpdateParams")) + } + panic(fmt.Errorf("message initia.dynamicfee.v1.MsgUpdateParams 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_MsgUpdateParams) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in initia.dynamicfee.v1.MsgUpdateParams", 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_MsgUpdateParams) 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_MsgUpdateParams) 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_MsgUpdateParams) 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_MsgUpdateParams) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpdateParams) + 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.Authority) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Params != nil { + l = options.Size(x.Params) + 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().(*MsgUpdateParams) + 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.Params != nil { + encoded, err := options.Marshal(x.Params) + 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] = 0x12 + } + if len(x.Authority) > 0 { + i -= len(x.Authority) + copy(dAtA[i:], x.Authority) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) + 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().(*MsgUpdateParams) + 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: MsgUpdateParams: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParams: 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 Authority", 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.Authority = 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 Params", 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.Params == nil { + x.Params = &Params{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); 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_MsgUpdateParamsResponse protoreflect.MessageDescriptor +) + +func init() { + file_initia_dynamicfee_v1_tx_proto_init() + md_MsgUpdateParamsResponse = File_initia_dynamicfee_v1_tx_proto.Messages().ByName("MsgUpdateParamsResponse") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdateParamsResponse)(nil) + +type fastReflection_MsgUpdateParamsResponse MsgUpdateParamsResponse + +func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateParamsResponse)(x) +} + +func (x *MsgUpdateParamsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_initia_dynamicfee_v1_tx_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_MsgUpdateParamsResponse_messageType fastReflection_MsgUpdateParamsResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgUpdateParamsResponse_messageType{} + +type fastReflection_MsgUpdateParamsResponse_messageType struct{} + +func (x fastReflection_MsgUpdateParamsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgUpdateParamsResponse)(nil) +} +func (x fastReflection_MsgUpdateParamsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgUpdateParamsResponse) +} +func (x fastReflection_MsgUpdateParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateParamsResponse +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_MsgUpdateParamsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgUpdateParamsResponse +} + +// 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_MsgUpdateParamsResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgUpdateParamsResponse_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_MsgUpdateParamsResponse) New() protoreflect.Message { + return new(fastReflection_MsgUpdateParamsResponse) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_MsgUpdateParamsResponse) Interface() protoreflect.ProtoMessage { + return (*MsgUpdateParamsResponse)(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_MsgUpdateParamsResponse) 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_MsgUpdateParamsResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.dynamicfee.v1.MsgUpdateParamsResponse")) + } + panic(fmt.Errorf("message initia.dynamicfee.v1.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.dynamicfee.v1.MsgUpdateParamsResponse")) + } + panic(fmt.Errorf("message initia.dynamicfee.v1.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.dynamicfee.v1.MsgUpdateParamsResponse")) + } + panic(fmt.Errorf("message initia.dynamicfee.v1.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) 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.dynamicfee.v1.MsgUpdateParamsResponse")) + } + panic(fmt.Errorf("message initia.dynamicfee.v1.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.dynamicfee.v1.MsgUpdateParamsResponse")) + } + panic(fmt.Errorf("message initia.dynamicfee.v1.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.dynamicfee.v1.MsgUpdateParamsResponse")) + } + panic(fmt.Errorf("message initia.dynamicfee.v1.MsgUpdateParamsResponse 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_MsgUpdateParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in initia.dynamicfee.v1.MsgUpdateParamsResponse", 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_MsgUpdateParamsResponse) 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_MsgUpdateParamsResponse) 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_MsgUpdateParamsResponse) 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_MsgUpdateParamsResponse) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*MsgUpdateParamsResponse) + 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().(*MsgUpdateParamsResponse) + 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().(*MsgUpdateParamsResponse) + 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: MsgUpdateParamsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateParamsResponse: 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, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: initia/dynamicfee/v1/tx.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) +) + +// MsgUpdateParams is the Msg/UpdateParams request type. +type MsgUpdateParams struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // authority is the address that controls the module + // (defaults to x/gov unless overwritten). + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // params defines the x/dynamic-fee parameters to update. + // + // NOTE: All parameters must be supplied. + Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` +} + +func (x *MsgUpdateParams) Reset() { + *x = MsgUpdateParams{} + if protoimpl.UnsafeEnabled { + mi := &file_initia_dynamicfee_v1_tx_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUpdateParams) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUpdateParams) ProtoMessage() {} + +// Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead. +func (*MsgUpdateParams) Descriptor() ([]byte, []int) { + return file_initia_dynamicfee_v1_tx_proto_rawDescGZIP(), []int{0} +} + +func (x *MsgUpdateParams) GetAuthority() string { + if x != nil { + return x.Authority + } + return "" +} + +func (x *MsgUpdateParams) GetParams() *Params { + if x != nil { + return x.Params + } + return nil +} + +// MsgUpdateParamsResponse defines the response structure for executing a +// MsgUpdateParams message. +type MsgUpdateParamsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MsgUpdateParamsResponse) Reset() { + *x = MsgUpdateParamsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_initia_dynamicfee_v1_tx_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MsgUpdateParamsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MsgUpdateParamsResponse) ProtoMessage() {} + +// Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead. +func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) { + return file_initia_dynamicfee_v1_tx_proto_rawDescGZIP(), []int{1} +} + +var File_initia_dynamicfee_v1_tx_proto protoreflect.FileDescriptor + +var file_initia_dynamicfee_v1_tx_proto_rawDesc = []byte{ + 0x0a, 0x1d, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, + 0x66, 0x65, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x14, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x66, + 0x65, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, + 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2f, 0x6d, 0x73, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 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, 0x20, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x64, 0x79, 0x6e, 0x61, 0x6d, + 0x69, 0x63, 0x66, 0x65, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb9, 0x01, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, + 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, + 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, + 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, + 0x12, 0x3f, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1c, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, + 0x63, 0x66, 0x65, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, + 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, + 0x73, 0x3a, 0x2d, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, + 0x79, 0x8a, 0xe7, 0xb0, 0x2a, 0x1a, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x66, 0x65, 0x65, + 0x2f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, + 0x22, 0x19, 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x72, 0x0a, 0x03, 0x4d, + 0x73, 0x67, 0x12, 0x64, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, + 0x6d, 0x73, 0x12, 0x25, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x64, 0x79, 0x6e, 0x61, + 0x6d, 0x69, 0x63, 0x66, 0x65, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x2d, 0x2e, 0x69, 0x6e, 0x69, 0x74, + 0x69, 0x61, 0x2e, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x66, 0x65, 0x65, 0x2e, 0x76, 0x31, + 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, + 0xde, 0x01, 0xc8, 0xe1, 0x1e, 0x00, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x69, 0x6e, 0x69, 0x74, + 0x69, 0x61, 0x2e, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x66, 0x65, 0x65, 0x2e, 0x76, 0x31, + 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x43, 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, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x66, 0x65, 0x65, + 0x2f, 0x76, 0x31, 0x3b, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x66, 0x65, 0x65, 0x76, 0x31, + 0xa2, 0x02, 0x03, 0x49, 0x44, 0x58, 0xaa, 0x02, 0x14, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, + 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x66, 0x65, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x14, + 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x5c, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x66, 0x65, + 0x65, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x20, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x5c, 0x44, 0x79, + 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x66, 0x65, 0x65, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x16, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, + 0x3a, 0x3a, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x66, 0x65, 0x65, 0x3a, 0x3a, 0x56, 0x31, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_initia_dynamicfee_v1_tx_proto_rawDescOnce sync.Once + file_initia_dynamicfee_v1_tx_proto_rawDescData = file_initia_dynamicfee_v1_tx_proto_rawDesc +) + +func file_initia_dynamicfee_v1_tx_proto_rawDescGZIP() []byte { + file_initia_dynamicfee_v1_tx_proto_rawDescOnce.Do(func() { + file_initia_dynamicfee_v1_tx_proto_rawDescData = protoimpl.X.CompressGZIP(file_initia_dynamicfee_v1_tx_proto_rawDescData) + }) + return file_initia_dynamicfee_v1_tx_proto_rawDescData +} + +var file_initia_dynamicfee_v1_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_initia_dynamicfee_v1_tx_proto_goTypes = []interface{}{ + (*MsgUpdateParams)(nil), // 0: initia.dynamicfee.v1.MsgUpdateParams + (*MsgUpdateParamsResponse)(nil), // 1: initia.dynamicfee.v1.MsgUpdateParamsResponse + (*Params)(nil), // 2: initia.dynamicfee.v1.Params +} +var file_initia_dynamicfee_v1_tx_proto_depIdxs = []int32{ + 2, // 0: initia.dynamicfee.v1.MsgUpdateParams.params:type_name -> initia.dynamicfee.v1.Params + 0, // 1: initia.dynamicfee.v1.Msg.UpdateParams:input_type -> initia.dynamicfee.v1.MsgUpdateParams + 1, // 2: initia.dynamicfee.v1.Msg.UpdateParams:output_type -> initia.dynamicfee.v1.MsgUpdateParamsResponse + 2, // [2:3] is the sub-list for method output_type + 1, // [1:2] 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 +} + +func init() { file_initia_dynamicfee_v1_tx_proto_init() } +func file_initia_dynamicfee_v1_tx_proto_init() { + if File_initia_dynamicfee_v1_tx_proto != nil { + return + } + file_initia_dynamicfee_v1_types_proto_init() + if !protoimpl.UnsafeEnabled { + file_initia_dynamicfee_v1_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUpdateParams); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_initia_dynamicfee_v1_tx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgUpdateParamsResponse); 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_dynamicfee_v1_tx_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_initia_dynamicfee_v1_tx_proto_goTypes, + DependencyIndexes: file_initia_dynamicfee_v1_tx_proto_depIdxs, + MessageInfos: file_initia_dynamicfee_v1_tx_proto_msgTypes, + }.Build() + File_initia_dynamicfee_v1_tx_proto = out.File + file_initia_dynamicfee_v1_tx_proto_rawDesc = nil + file_initia_dynamicfee_v1_tx_proto_goTypes = nil + file_initia_dynamicfee_v1_tx_proto_depIdxs = nil +} diff --git a/api/initia/dynamicfee/v1/tx_grpc.pb.go b/api/initia/dynamicfee/v1/tx_grpc.pb.go new file mode 100644 index 000000000..24849d036 --- /dev/null +++ b/api/initia/dynamicfee/v1/tx_grpc.pb.go @@ -0,0 +1,113 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.3.0 +// - protoc (unknown) +// source: initia/dynamicfee/v1/tx.proto + +package dynamicfeev1 + +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 ( + Msg_UpdateParams_FullMethodName = "/initia.dynamicfee.v1.Msg/UpdateParams" +) + +// MsgClient is the client API for Msg 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 MsgClient interface { + // UpdateParams defines an operation for updating the x/dynamic-fee module + // parameters. + UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) +} + +type msgClient struct { + cc grpc.ClientConnInterface +} + +func NewMsgClient(cc grpc.ClientConnInterface) MsgClient { + return &msgClient{cc} +} + +func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) { + out := new(MsgUpdateParamsResponse) + err := c.cc.Invoke(ctx, Msg_UpdateParams_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// MsgServer is the server API for Msg service. +// All implementations must embed UnimplementedMsgServer +// for forward compatibility +type MsgServer interface { + // UpdateParams defines an operation for updating the x/dynamic-fee module + // parameters. + UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) + mustEmbedUnimplementedMsgServer() +} + +// UnimplementedMsgServer must be embedded to have forward compatible implementations. +type UnimplementedMsgServer struct { +} + +func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented") +} +func (UnimplementedMsgServer) mustEmbedUnimplementedMsgServer() {} + +// UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to MsgServer will +// result in compilation errors. +type UnsafeMsgServer interface { + mustEmbedUnimplementedMsgServer() +} + +func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer) { + s.RegisterService(&Msg_ServiceDesc, srv) +} + +func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateParams) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpdateParams(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_UpdateParams_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateParams(ctx, req.(*MsgUpdateParams)) + } + return interceptor(ctx, in, info, handler) +} + +// Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var Msg_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "initia.dynamicfee.v1.Msg", + HandlerType: (*MsgServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "UpdateParams", + Handler: _Msg_UpdateParams_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "initia/dynamicfee/v1/tx.proto", +} diff --git a/api/initia/dynamicfee/v1/types.pulsar.go b/api/initia/dynamicfee/v1/types.pulsar.go new file mode 100644 index 000000000..bb6ba3f71 --- /dev/null +++ b/api/initia/dynamicfee/v1/types.pulsar.go @@ -0,0 +1,875 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package dynamicfeev1 + +import ( + _ "cosmossdk.io/api/amino" + fmt "fmt" + runtime "github.com/cosmos/cosmos-proto/runtime" + _ "github.com/cosmos/gogoproto/gogoproto" + 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_Params protoreflect.MessageDescriptor + fd_Params_base_gas_price protoreflect.FieldDescriptor + fd_Params_min_base_gas_price protoreflect.FieldDescriptor + fd_Params_max_base_gas_price protoreflect.FieldDescriptor + fd_Params_max_change_rate protoreflect.FieldDescriptor + fd_Params_target_gas protoreflect.FieldDescriptor +) + +func init() { + file_initia_dynamicfee_v1_types_proto_init() + md_Params = File_initia_dynamicfee_v1_types_proto.Messages().ByName("Params") + fd_Params_base_gas_price = md_Params.Fields().ByName("base_gas_price") + fd_Params_min_base_gas_price = md_Params.Fields().ByName("min_base_gas_price") + fd_Params_max_base_gas_price = md_Params.Fields().ByName("max_base_gas_price") + fd_Params_max_change_rate = md_Params.Fields().ByName("max_change_rate") + fd_Params_target_gas = md_Params.Fields().ByName("target_gas") +} + +var _ protoreflect.Message = (*fastReflection_Params)(nil) + +type fastReflection_Params Params + +func (x *Params) ProtoReflect() protoreflect.Message { + return (*fastReflection_Params)(x) +} + +func (x *Params) slowProtoReflect() protoreflect.Message { + mi := &file_initia_dynamicfee_v1_types_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_Params_messageType fastReflection_Params_messageType +var _ protoreflect.MessageType = fastReflection_Params_messageType{} + +type fastReflection_Params_messageType struct{} + +func (x fastReflection_Params_messageType) Zero() protoreflect.Message { + return (*fastReflection_Params)(nil) +} +func (x fastReflection_Params_messageType) New() protoreflect.Message { + return new(fastReflection_Params) +} +func (x fastReflection_Params_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_Params +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_Params) Descriptor() protoreflect.MessageDescriptor { + return md_Params +} + +// 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_Params) Type() protoreflect.MessageType { + return _fastReflection_Params_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_Params) New() protoreflect.Message { + return new(fastReflection_Params) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_Params) Interface() protoreflect.ProtoMessage { + return (*Params)(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_Params) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.BaseGasPrice != "" { + value := protoreflect.ValueOfString(x.BaseGasPrice) + if !f(fd_Params_base_gas_price, value) { + return + } + } + if x.MinBaseGasPrice != "" { + value := protoreflect.ValueOfString(x.MinBaseGasPrice) + if !f(fd_Params_min_base_gas_price, value) { + return + } + } + if x.MaxBaseGasPrice != "" { + value := protoreflect.ValueOfString(x.MaxBaseGasPrice) + if !f(fd_Params_max_base_gas_price, value) { + return + } + } + if x.MaxChangeRate != "" { + value := protoreflect.ValueOfString(x.MaxChangeRate) + if !f(fd_Params_max_change_rate, value) { + return + } + } + if x.TargetGas != int64(0) { + value := protoreflect.ValueOfInt64(x.TargetGas) + if !f(fd_Params_target_gas, 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_Params) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "initia.dynamicfee.v1.Params.base_gas_price": + return x.BaseGasPrice != "" + case "initia.dynamicfee.v1.Params.min_base_gas_price": + return x.MinBaseGasPrice != "" + case "initia.dynamicfee.v1.Params.max_base_gas_price": + return x.MaxBaseGasPrice != "" + case "initia.dynamicfee.v1.Params.max_change_rate": + return x.MaxChangeRate != "" + case "initia.dynamicfee.v1.Params.target_gas": + return x.TargetGas != int64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.dynamicfee.v1.Params")) + } + panic(fmt.Errorf("message initia.dynamicfee.v1.Params 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_Params) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "initia.dynamicfee.v1.Params.base_gas_price": + x.BaseGasPrice = "" + case "initia.dynamicfee.v1.Params.min_base_gas_price": + x.MinBaseGasPrice = "" + case "initia.dynamicfee.v1.Params.max_base_gas_price": + x.MaxBaseGasPrice = "" + case "initia.dynamicfee.v1.Params.max_change_rate": + x.MaxChangeRate = "" + case "initia.dynamicfee.v1.Params.target_gas": + x.TargetGas = int64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.dynamicfee.v1.Params")) + } + panic(fmt.Errorf("message initia.dynamicfee.v1.Params 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_Params) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "initia.dynamicfee.v1.Params.base_gas_price": + value := x.BaseGasPrice + return protoreflect.ValueOfString(value) + case "initia.dynamicfee.v1.Params.min_base_gas_price": + value := x.MinBaseGasPrice + return protoreflect.ValueOfString(value) + case "initia.dynamicfee.v1.Params.max_base_gas_price": + value := x.MaxBaseGasPrice + return protoreflect.ValueOfString(value) + case "initia.dynamicfee.v1.Params.max_change_rate": + value := x.MaxChangeRate + return protoreflect.ValueOfString(value) + case "initia.dynamicfee.v1.Params.target_gas": + value := x.TargetGas + return protoreflect.ValueOfInt64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.dynamicfee.v1.Params")) + } + panic(fmt.Errorf("message initia.dynamicfee.v1.Params 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_Params) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "initia.dynamicfee.v1.Params.base_gas_price": + x.BaseGasPrice = value.Interface().(string) + case "initia.dynamicfee.v1.Params.min_base_gas_price": + x.MinBaseGasPrice = value.Interface().(string) + case "initia.dynamicfee.v1.Params.max_base_gas_price": + x.MaxBaseGasPrice = value.Interface().(string) + case "initia.dynamicfee.v1.Params.max_change_rate": + x.MaxChangeRate = value.Interface().(string) + case "initia.dynamicfee.v1.Params.target_gas": + x.TargetGas = value.Int() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.dynamicfee.v1.Params")) + } + panic(fmt.Errorf("message initia.dynamicfee.v1.Params 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_Params) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "initia.dynamicfee.v1.Params.base_gas_price": + panic(fmt.Errorf("field base_gas_price of message initia.dynamicfee.v1.Params is not mutable")) + case "initia.dynamicfee.v1.Params.min_base_gas_price": + panic(fmt.Errorf("field min_base_gas_price of message initia.dynamicfee.v1.Params is not mutable")) + case "initia.dynamicfee.v1.Params.max_base_gas_price": + panic(fmt.Errorf("field max_base_gas_price of message initia.dynamicfee.v1.Params is not mutable")) + case "initia.dynamicfee.v1.Params.max_change_rate": + panic(fmt.Errorf("field max_change_rate of message initia.dynamicfee.v1.Params is not mutable")) + case "initia.dynamicfee.v1.Params.target_gas": + panic(fmt.Errorf("field target_gas of message initia.dynamicfee.v1.Params is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.dynamicfee.v1.Params")) + } + panic(fmt.Errorf("message initia.dynamicfee.v1.Params 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_Params) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "initia.dynamicfee.v1.Params.base_gas_price": + return protoreflect.ValueOfString("") + case "initia.dynamicfee.v1.Params.min_base_gas_price": + return protoreflect.ValueOfString("") + case "initia.dynamicfee.v1.Params.max_base_gas_price": + return protoreflect.ValueOfString("") + case "initia.dynamicfee.v1.Params.max_change_rate": + return protoreflect.ValueOfString("") + case "initia.dynamicfee.v1.Params.target_gas": + return protoreflect.ValueOfInt64(int64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.dynamicfee.v1.Params")) + } + panic(fmt.Errorf("message initia.dynamicfee.v1.Params 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_Params) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in initia.dynamicfee.v1.Params", 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_Params) 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_Params) 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_Params) 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_Params) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*Params) + 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.BaseGasPrice) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.MinBaseGasPrice) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.MaxBaseGasPrice) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.MaxChangeRate) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.TargetGas != 0 { + n += 1 + runtime.Sov(uint64(x.TargetGas)) + } + 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().(*Params) + 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.TargetGas != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TargetGas)) + i-- + dAtA[i] = 0x28 + } + if len(x.MaxChangeRate) > 0 { + i -= len(x.MaxChangeRate) + copy(dAtA[i:], x.MaxChangeRate) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MaxChangeRate))) + i-- + dAtA[i] = 0x22 + } + if len(x.MaxBaseGasPrice) > 0 { + i -= len(x.MaxBaseGasPrice) + copy(dAtA[i:], x.MaxBaseGasPrice) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MaxBaseGasPrice))) + i-- + dAtA[i] = 0x1a + } + if len(x.MinBaseGasPrice) > 0 { + i -= len(x.MinBaseGasPrice) + copy(dAtA[i:], x.MinBaseGasPrice) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MinBaseGasPrice))) + i-- + dAtA[i] = 0x12 + } + if len(x.BaseGasPrice) > 0 { + i -= len(x.BaseGasPrice) + copy(dAtA[i:], x.BaseGasPrice) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.BaseGasPrice))) + 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().(*Params) + 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: Params: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Params: 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 BaseGasPrice", 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.BaseGasPrice = 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 MinBaseGasPrice", 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.MinBaseGasPrice = 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 MaxBaseGasPrice", 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.MaxBaseGasPrice = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MaxChangeRate", 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.MaxChangeRate = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TargetGas", wireType) + } + x.TargetGas = 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.TargetGas |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + 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/dynamicfee/v1/types.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) +) + +type Params struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BaseGasPrice string `protobuf:"bytes,1,opt,name=base_gas_price,json=baseGasPrice,proto3" json:"base_gas_price,omitempty"` + MinBaseGasPrice string `protobuf:"bytes,2,opt,name=min_base_gas_price,json=minBaseGasPrice,proto3" json:"min_base_gas_price,omitempty"` + MaxBaseGasPrice string `protobuf:"bytes,3,opt,name=max_base_gas_price,json=maxBaseGasPrice,proto3" json:"max_base_gas_price,omitempty"` + MaxChangeRate string `protobuf:"bytes,4,opt,name=max_change_rate,json=maxChangeRate,proto3" json:"max_change_rate,omitempty"` + TargetGas int64 `protobuf:"varint,5,opt,name=target_gas,json=targetGas,proto3" json:"target_gas,omitempty"` +} + +func (x *Params) Reset() { + *x = Params{} + if protoimpl.UnsafeEnabled { + mi := &file_initia_dynamicfee_v1_types_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Params) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Params) ProtoMessage() {} + +// Deprecated: Use Params.ProtoReflect.Descriptor instead. +func (*Params) Descriptor() ([]byte, []int) { + return file_initia_dynamicfee_v1_types_proto_rawDescGZIP(), []int{0} +} + +func (x *Params) GetBaseGasPrice() string { + if x != nil { + return x.BaseGasPrice + } + return "" +} + +func (x *Params) GetMinBaseGasPrice() string { + if x != nil { + return x.MinBaseGasPrice + } + return "" +} + +func (x *Params) GetMaxBaseGasPrice() string { + if x != nil { + return x.MaxBaseGasPrice + } + return "" +} + +func (x *Params) GetMaxChangeRate() string { + if x != nil { + return x.MaxChangeRate + } + return "" +} + +func (x *Params) GetTargetGas() int64 { + if x != nil { + return x.TargetGas + } + return 0 +} + +var File_initia_dynamicfee_v1_types_proto protoreflect.FileDescriptor + +var file_initia_dynamicfee_v1_types_proto_rawDesc = []byte{ + 0x0a, 0x20, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, + 0x66, 0x65, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x12, 0x14, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x64, 0x79, 0x6e, 0x61, 0x6d, + 0x69, 0x63, 0x66, 0x65, 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, 0xe4, 0x03, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x67, 0x0a, 0x0e, + 0x62, 0x61, 0x73, 0x65, 0x5f, 0x67, 0x61, 0x73, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x41, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x1b, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, + 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x44, 0x65, 0x63, 0xf2, 0xde, 0x1f, 0x15, 0x79, 0x61, 0x6d, + 0x6c, 0x3a, 0x22, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x67, 0x61, 0x73, 0x5f, 0x70, 0x72, 0x69, 0x63, + 0x65, 0x22, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0c, 0x62, 0x61, 0x73, 0x65, 0x47, 0x61, 0x73, + 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x72, 0x0a, 0x12, 0x6d, 0x69, 0x6e, 0x5f, 0x62, 0x61, 0x73, + 0x65, 0x5f, 0x67, 0x61, 0x73, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x45, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x4c, 0x65, 0x67, + 0x61, 0x63, 0x79, 0x44, 0x65, 0x63, 0xf2, 0xde, 0x1f, 0x19, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, + 0x6d, 0x69, 0x6e, 0x5f, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x67, 0x61, 0x73, 0x5f, 0x70, 0x72, 0x69, + 0x63, 0x65, 0x22, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0f, 0x6d, 0x69, 0x6e, 0x42, 0x61, 0x73, + 0x65, 0x47, 0x61, 0x73, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x72, 0x0a, 0x12, 0x6d, 0x61, 0x78, + 0x5f, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x67, 0x61, 0x73, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x45, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x1b, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, + 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x44, 0x65, 0x63, 0xf2, 0xde, 0x1f, 0x19, 0x79, 0x61, + 0x6d, 0x6c, 0x3a, 0x22, 0x6d, 0x61, 0x78, 0x5f, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x67, 0x61, 0x73, + 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x22, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0f, 0x6d, 0x61, + 0x78, 0x42, 0x61, 0x73, 0x65, 0x47, 0x61, 0x73, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x6a, 0x0a, + 0x0f, 0x6d, 0x61, 0x78, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x72, 0x61, 0x74, 0x65, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x42, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x1b, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, + 0x68, 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x44, 0x65, 0x63, 0xf2, 0xde, 0x1f, 0x16, 0x79, + 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6d, 0x61, 0x78, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, + 0x72, 0x61, 0x74, 0x65, 0x22, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0d, 0x6d, 0x61, 0x78, 0x43, + 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x61, 0x74, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x72, + 0x67, 0x65, 0x74, 0x5f, 0x67, 0x61, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, + 0x61, 0x72, 0x67, 0x65, 0x74, 0x47, 0x61, 0x73, 0x42, 0xe5, 0x01, 0xc8, 0xe1, 0x1e, 0x00, 0xa8, + 0xe2, 0x1e, 0x01, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, + 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x66, 0x65, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x54, + 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x43, 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, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x66, 0x65, 0x65, + 0x2f, 0x76, 0x31, 0x3b, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x66, 0x65, 0x65, 0x76, 0x31, + 0xa2, 0x02, 0x03, 0x49, 0x44, 0x58, 0xaa, 0x02, 0x14, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, + 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x66, 0x65, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x14, + 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x5c, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x66, 0x65, + 0x65, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x20, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x5c, 0x44, 0x79, + 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x66, 0x65, 0x65, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x16, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, + 0x3a, 0x3a, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x66, 0x65, 0x65, 0x3a, 0x3a, 0x56, 0x31, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_initia_dynamicfee_v1_types_proto_rawDescOnce sync.Once + file_initia_dynamicfee_v1_types_proto_rawDescData = file_initia_dynamicfee_v1_types_proto_rawDesc +) + +func file_initia_dynamicfee_v1_types_proto_rawDescGZIP() []byte { + file_initia_dynamicfee_v1_types_proto_rawDescOnce.Do(func() { + file_initia_dynamicfee_v1_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_initia_dynamicfee_v1_types_proto_rawDescData) + }) + return file_initia_dynamicfee_v1_types_proto_rawDescData +} + +var file_initia_dynamicfee_v1_types_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_initia_dynamicfee_v1_types_proto_goTypes = []interface{}{ + (*Params)(nil), // 0: initia.dynamicfee.v1.Params +} +var file_initia_dynamicfee_v1_types_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_initia_dynamicfee_v1_types_proto_init() } +func file_initia_dynamicfee_v1_types_proto_init() { + if File_initia_dynamicfee_v1_types_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_initia_dynamicfee_v1_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Params); 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_dynamicfee_v1_types_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_initia_dynamicfee_v1_types_proto_goTypes, + DependencyIndexes: file_initia_dynamicfee_v1_types_proto_depIdxs, + MessageInfos: file_initia_dynamicfee_v1_types_proto_msgTypes, + }.Build() + File_initia_dynamicfee_v1_types_proto = out.File + file_initia_dynamicfee_v1_types_proto_rawDesc = nil + file_initia_dynamicfee_v1_types_proto_goTypes = nil + file_initia_dynamicfee_v1_types_proto_depIdxs = nil +} diff --git a/api/initia/move/v1/genesis.pulsar.go b/api/initia/move/v1/genesis.pulsar.go index a458b2b9f..c834d5b0a 100644 --- a/api/initia/move/v1/genesis.pulsar.go +++ b/api/initia/move/v1/genesis.pulsar.go @@ -377,7 +377,6 @@ var ( fd_GenesisState_table_infos protoreflect.FieldDescriptor fd_GenesisState_table_entries protoreflect.FieldDescriptor fd_GenesisState_dex_pairs protoreflect.FieldDescriptor - fd_GenesisState_eip1559_feeparams protoreflect.FieldDescriptor ) func init() { @@ -392,7 +391,6 @@ func init() { fd_GenesisState_table_infos = md_GenesisState.Fields().ByName("table_infos") fd_GenesisState_table_entries = md_GenesisState.Fields().ByName("table_entries") fd_GenesisState_dex_pairs = md_GenesisState.Fields().ByName("dex_pairs") - fd_GenesisState_eip1559_feeparams = md_GenesisState.Fields().ByName("eip1559_feeparams") } var _ protoreflect.Message = (*fastReflection_GenesisState)(nil) @@ -514,12 +512,6 @@ func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, return } } - if x.Eip1559Feeparams != nil { - value := protoreflect.ValueOfMessage(x.Eip1559Feeparams.ProtoReflect()) - if !f(fd_GenesisState_eip1559_feeparams, value) { - return - } - } } // Has reports whether a field is populated. @@ -553,8 +545,6 @@ func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool return len(x.TableEntries) != 0 case "initia.move.v1.GenesisState.dex_pairs": return len(x.DexPairs) != 0 - case "initia.move.v1.GenesisState.eip1559_feeparams": - return x.Eip1559Feeparams != nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.GenesisState")) @@ -589,8 +579,6 @@ func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) { x.TableEntries = nil case "initia.move.v1.GenesisState.dex_pairs": x.DexPairs = nil - case "initia.move.v1.GenesisState.eip1559_feeparams": - x.Eip1559Feeparams = nil default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.GenesisState")) @@ -655,9 +643,6 @@ func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescripto } listValue := &_GenesisState_9_list{list: &x.DexPairs} return protoreflect.ValueOfList(listValue) - case "initia.move.v1.GenesisState.eip1559_feeparams": - value := x.Eip1559Feeparams - return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.GenesisState")) @@ -710,8 +695,6 @@ func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value lv := value.List() clv := lv.(*_GenesisState_9_list) x.DexPairs = *clv.list - case "initia.move.v1.GenesisState.eip1559_feeparams": - x.Eip1559Feeparams = value.Message().Interface().(*EIP1559FeeParams) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.GenesisState")) @@ -779,11 +762,6 @@ func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) p } value := &_GenesisState_9_list{list: &x.DexPairs} return protoreflect.ValueOfList(value) - case "initia.move.v1.GenesisState.eip1559_feeparams": - if x.Eip1559Feeparams == nil { - x.Eip1559Feeparams = new(EIP1559FeeParams) - } - return protoreflect.ValueOfMessage(x.Eip1559Feeparams.ProtoReflect()) case "initia.move.v1.GenesisState.execution_counter": panic(fmt.Errorf("field execution_counter of message initia.move.v1.GenesisState is not mutable")) default: @@ -825,9 +803,6 @@ func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) case "initia.move.v1.GenesisState.dex_pairs": list := []*DexPair{} return protoreflect.ValueOfList(&_GenesisState_9_list{list: &list}) - case "initia.move.v1.GenesisState.eip1559_feeparams": - m := new(EIP1559FeeParams) - return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.GenesisState")) @@ -946,10 +921,6 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { n += 1 + l + runtime.Sov(uint64(l)) } } - if x.Eip1559Feeparams != nil { - l = options.Size(x.Eip1559Feeparams) - n += 1 + l + runtime.Sov(uint64(l)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -979,20 +950,6 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Eip1559Feeparams != nil { - encoded, err := options.Marshal(x.Eip1559Feeparams) - 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] = 0x52 - } if len(x.DexPairs) > 0 { for iNdEx := len(x.DexPairs) - 1; iNdEx >= 0; iNdEx-- { encoded, err := options.Marshal(x.DexPairs[iNdEx]) @@ -1457,42 +1414,6 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex - case 10: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Eip1559Feeparams", 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.Eip1559Feeparams == nil { - x.Eip1559Feeparams = &EIP1559FeeParams{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Eip1559Feeparams); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -1547,16 +1468,15 @@ type GenesisState struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` - 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"` - 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"` - Eip1559Feeparams *EIP1559FeeParams `protobuf:"bytes,10,opt,name=eip1559_feeparams,json=eip1559Feeparams,proto3" json:"eip1559_feeparams,omitempty"` + Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` + 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"` + 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() { @@ -1642,13 +1562,6 @@ func (x *GenesisState) GetDexPairs() []*DexPair { return nil } -func (x *GenesisState) GetEip1559Feeparams() *EIP1559FeeParams { - if x != nil { - return x.Eip1559Feeparams - } - return nil -} - var File_initia_move_v1_genesis_proto protoreflect.FileDescriptor var file_initia_move_v1_genesis_proto_rawDesc = []byte{ @@ -1659,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, 0xc4, 0x06, 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, @@ -1706,24 +1619,18 @@ var file_initia_move_v1_genesis_proto_rawDesc = []byte{ 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, - 0x12, 0x58, 0x0a, 0x11, 0x65, 0x69, 0x70, 0x31, 0x35, 0x35, 0x39, 0x5f, 0x66, 0x65, 0x65, 0x70, - 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x69, 0x6e, - 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x49, 0x50, - 0x31, 0x35, 0x35, 0x39, 0x46, 0x65, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, - 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x10, 0x65, 0x69, 0x70, 0x31, 0x35, 0x35, - 0x39, 0x46, 0x65, 0x65, 0x70, 0x61, 0x72, 0x61, 0x6d, 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, + 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 ( @@ -1740,15 +1647,14 @@ func file_initia_move_v1_genesis_proto_rawDescGZIP() []byte { var file_initia_move_v1_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 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 - (*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 - (*EIP1559FeeParams)(nil), // 8: initia.move.v1.EIP1559FeeParams + (*GenesisState)(nil), // 0: initia.move.v1.GenesisState + (*Params)(nil), // 1: initia.move.v1.Params + (*Module)(nil), // 2: initia.move.v1.Module + (*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 @@ -1758,12 +1664,11 @@ var file_initia_move_v1_genesis_proto_depIdxs = []int32{ 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 - 8, // 7: initia.move.v1.GenesisState.eip1559_feeparams:type_name -> initia.move.v1.EIP1559FeeParams - 8, // [8:8] is the sub-list for method output_type - 8, // [8:8] is the sub-list for method input_type - 8, // [8:8] is the sub-list for extension type_name - 8, // [8:8] is the sub-list for extension extendee - 0, // [0:8] is the sub-list for field type_name + 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/query.pulsar.go b/api/initia/move/v1/query.pulsar.go index 73b9c3635..7d66fd19f 100644 --- a/api/initia/move/v1/query.pulsar.go +++ b/api/initia/move/v1/query.pulsar.go @@ -16827,797 +16827,6 @@ func (x *fastReflection_QueryDenomResponse) ProtoMethods() *protoiface.Methods { } } -var ( - md_QueryEIP1559FeeParamsRequest protoreflect.MessageDescriptor -) - -func init() { - file_initia_move_v1_query_proto_init() - md_QueryEIP1559FeeParamsRequest = File_initia_move_v1_query_proto.Messages().ByName("QueryEIP1559FeeParamsRequest") -} - -var _ protoreflect.Message = (*fastReflection_QueryEIP1559FeeParamsRequest)(nil) - -type fastReflection_QueryEIP1559FeeParamsRequest QueryEIP1559FeeParamsRequest - -func (x *QueryEIP1559FeeParamsRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryEIP1559FeeParamsRequest)(x) -} - -func (x *QueryEIP1559FeeParamsRequest) slowProtoReflect() protoreflect.Message { - mi := &file_initia_move_v1_query_proto_msgTypes[33] - 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_QueryEIP1559FeeParamsRequest_messageType fastReflection_QueryEIP1559FeeParamsRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryEIP1559FeeParamsRequest_messageType{} - -type fastReflection_QueryEIP1559FeeParamsRequest_messageType struct{} - -func (x fastReflection_QueryEIP1559FeeParamsRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryEIP1559FeeParamsRequest)(nil) -} -func (x fastReflection_QueryEIP1559FeeParamsRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryEIP1559FeeParamsRequest) -} -func (x fastReflection_QueryEIP1559FeeParamsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryEIP1559FeeParamsRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryEIP1559FeeParamsRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryEIP1559FeeParamsRequest -} - -// 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_QueryEIP1559FeeParamsRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryEIP1559FeeParamsRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryEIP1559FeeParamsRequest) New() protoreflect.Message { - return new(fastReflection_QueryEIP1559FeeParamsRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryEIP1559FeeParamsRequest) Interface() protoreflect.ProtoMessage { - return (*QueryEIP1559FeeParamsRequest)(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_QueryEIP1559FeeParamsRequest) 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_QueryEIP1559FeeParamsRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.QueryEIP1559FeeParamsRequest")) - } - panic(fmt.Errorf("message initia.move.v1.QueryEIP1559FeeParamsRequest 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_QueryEIP1559FeeParamsRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.QueryEIP1559FeeParamsRequest")) - } - panic(fmt.Errorf("message initia.move.v1.QueryEIP1559FeeParamsRequest 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_QueryEIP1559FeeParamsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.QueryEIP1559FeeParamsRequest")) - } - panic(fmt.Errorf("message initia.move.v1.QueryEIP1559FeeParamsRequest 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_QueryEIP1559FeeParamsRequest) 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.move.v1.QueryEIP1559FeeParamsRequest")) - } - panic(fmt.Errorf("message initia.move.v1.QueryEIP1559FeeParamsRequest 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_QueryEIP1559FeeParamsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.QueryEIP1559FeeParamsRequest")) - } - panic(fmt.Errorf("message initia.move.v1.QueryEIP1559FeeParamsRequest 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_QueryEIP1559FeeParamsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.QueryEIP1559FeeParamsRequest")) - } - panic(fmt.Errorf("message initia.move.v1.QueryEIP1559FeeParamsRequest 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_QueryEIP1559FeeParamsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in initia.move.v1.QueryEIP1559FeeParamsRequest", 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_QueryEIP1559FeeParamsRequest) 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_QueryEIP1559FeeParamsRequest) 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_QueryEIP1559FeeParamsRequest) 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_QueryEIP1559FeeParamsRequest) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryEIP1559FeeParamsRequest) - 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().(*QueryEIP1559FeeParamsRequest) - 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().(*QueryEIP1559FeeParamsRequest) - 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: QueryEIP1559FeeParamsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryEIP1559FeeParamsRequest: 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 ( - md_QueryEIP1559FeeParamsResponse protoreflect.MessageDescriptor - fd_QueryEIP1559FeeParamsResponse_eip1559_feeparams protoreflect.FieldDescriptor -) - -func init() { - file_initia_move_v1_query_proto_init() - md_QueryEIP1559FeeParamsResponse = File_initia_move_v1_query_proto.Messages().ByName("QueryEIP1559FeeParamsResponse") - fd_QueryEIP1559FeeParamsResponse_eip1559_feeparams = md_QueryEIP1559FeeParamsResponse.Fields().ByName("eip1559_feeparams") -} - -var _ protoreflect.Message = (*fastReflection_QueryEIP1559FeeParamsResponse)(nil) - -type fastReflection_QueryEIP1559FeeParamsResponse QueryEIP1559FeeParamsResponse - -func (x *QueryEIP1559FeeParamsResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryEIP1559FeeParamsResponse)(x) -} - -func (x *QueryEIP1559FeeParamsResponse) slowProtoReflect() protoreflect.Message { - mi := &file_initia_move_v1_query_proto_msgTypes[34] - 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_QueryEIP1559FeeParamsResponse_messageType fastReflection_QueryEIP1559FeeParamsResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryEIP1559FeeParamsResponse_messageType{} - -type fastReflection_QueryEIP1559FeeParamsResponse_messageType struct{} - -func (x fastReflection_QueryEIP1559FeeParamsResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryEIP1559FeeParamsResponse)(nil) -} -func (x fastReflection_QueryEIP1559FeeParamsResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryEIP1559FeeParamsResponse) -} -func (x fastReflection_QueryEIP1559FeeParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryEIP1559FeeParamsResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryEIP1559FeeParamsResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryEIP1559FeeParamsResponse -} - -// 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_QueryEIP1559FeeParamsResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryEIP1559FeeParamsResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryEIP1559FeeParamsResponse) New() protoreflect.Message { - return new(fastReflection_QueryEIP1559FeeParamsResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryEIP1559FeeParamsResponse) Interface() protoreflect.ProtoMessage { - return (*QueryEIP1559FeeParamsResponse)(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_QueryEIP1559FeeParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Eip1559Feeparams != nil { - value := protoreflect.ValueOfMessage(x.Eip1559Feeparams.ProtoReflect()) - if !f(fd_QueryEIP1559FeeParamsResponse_eip1559_feeparams, 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_QueryEIP1559FeeParamsResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "initia.move.v1.QueryEIP1559FeeParamsResponse.eip1559_feeparams": - return x.Eip1559Feeparams != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.QueryEIP1559FeeParamsResponse")) - } - panic(fmt.Errorf("message initia.move.v1.QueryEIP1559FeeParamsResponse 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_QueryEIP1559FeeParamsResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "initia.move.v1.QueryEIP1559FeeParamsResponse.eip1559_feeparams": - x.Eip1559Feeparams = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.QueryEIP1559FeeParamsResponse")) - } - panic(fmt.Errorf("message initia.move.v1.QueryEIP1559FeeParamsResponse 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_QueryEIP1559FeeParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "initia.move.v1.QueryEIP1559FeeParamsResponse.eip1559_feeparams": - value := x.Eip1559Feeparams - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.QueryEIP1559FeeParamsResponse")) - } - panic(fmt.Errorf("message initia.move.v1.QueryEIP1559FeeParamsResponse 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_QueryEIP1559FeeParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "initia.move.v1.QueryEIP1559FeeParamsResponse.eip1559_feeparams": - x.Eip1559Feeparams = value.Message().Interface().(*EIP1559FeeParams) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.QueryEIP1559FeeParamsResponse")) - } - panic(fmt.Errorf("message initia.move.v1.QueryEIP1559FeeParamsResponse 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_QueryEIP1559FeeParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "initia.move.v1.QueryEIP1559FeeParamsResponse.eip1559_feeparams": - if x.Eip1559Feeparams == nil { - x.Eip1559Feeparams = new(EIP1559FeeParams) - } - return protoreflect.ValueOfMessage(x.Eip1559Feeparams.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.QueryEIP1559FeeParamsResponse")) - } - panic(fmt.Errorf("message initia.move.v1.QueryEIP1559FeeParamsResponse 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_QueryEIP1559FeeParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "initia.move.v1.QueryEIP1559FeeParamsResponse.eip1559_feeparams": - m := new(EIP1559FeeParams) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.QueryEIP1559FeeParamsResponse")) - } - panic(fmt.Errorf("message initia.move.v1.QueryEIP1559FeeParamsResponse 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_QueryEIP1559FeeParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in initia.move.v1.QueryEIP1559FeeParamsResponse", 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_QueryEIP1559FeeParamsResponse) 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_QueryEIP1559FeeParamsResponse) 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_QueryEIP1559FeeParamsResponse) 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_QueryEIP1559FeeParamsResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryEIP1559FeeParamsResponse) - 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.Eip1559Feeparams != nil { - l = options.Size(x.Eip1559Feeparams) - 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().(*QueryEIP1559FeeParamsResponse) - 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.Eip1559Feeparams != nil { - encoded, err := options.Marshal(x.Eip1559Feeparams) - 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().(*QueryEIP1559FeeParamsResponse) - 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: QueryEIP1559FeeParamsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryEIP1559FeeParamsResponse: 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 Eip1559Feeparams", 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.Eip1559Feeparams == nil { - x.Eip1559Feeparams = &EIP1559FeeParams{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Eip1559Feeparams); 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 @@ -19100,69 +18309,6 @@ func (x *QueryDenomResponse) GetDenom() string { return "" } -// QueryEIP1559FeeParamsRequest is the request type for the Query/EIP1559FeeParams RPC method. -type QueryEIP1559FeeParamsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *QueryEIP1559FeeParamsRequest) Reset() { - *x = QueryEIP1559FeeParamsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_initia_move_v1_query_proto_msgTypes[33] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryEIP1559FeeParamsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryEIP1559FeeParamsRequest) ProtoMessage() {} - -// Deprecated: Use QueryEIP1559FeeParamsRequest.ProtoReflect.Descriptor instead. -func (*QueryEIP1559FeeParamsRequest) Descriptor() ([]byte, []int) { - return file_initia_move_v1_query_proto_rawDescGZIP(), []int{33} -} - -// QueryEIP1559FeeParamsResponse is the response type for the Query/EIP1559FeeParams RPC method. -type QueryEIP1559FeeParamsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Eip1559Feeparams *EIP1559FeeParams `protobuf:"bytes,1,opt,name=eip1559_feeparams,json=eip1559Feeparams,proto3" json:"eip1559_feeparams,omitempty"` -} - -func (x *QueryEIP1559FeeParamsResponse) Reset() { - *x = QueryEIP1559FeeParamsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_initia_move_v1_query_proto_msgTypes[34] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryEIP1559FeeParamsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryEIP1559FeeParamsResponse) ProtoMessage() {} - -// Deprecated: Use QueryEIP1559FeeParamsResponse.ProtoReflect.Descriptor instead. -func (*QueryEIP1559FeeParamsResponse) Descriptor() ([]byte, []int) { - return file_initia_move_v1_query_proto_rawDescGZIP(), []int{34} -} - -func (x *QueryEIP1559FeeParamsResponse) GetEip1559Feeparams() *EIP1559FeeParams { - if x != nil { - return x.Eip1559Feeparams - } - return nil -} - var File_initia_move_v1_query_proto protoreflect.FileDescriptor var file_initia_move_v1_query_proto_rawDesc = []byte{ @@ -19385,179 +18531,160 @@ var file_initia_move_v1_query_proto_rawDesc = []byte{ 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x2a, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, - 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x22, 0x1e, 0x0a, 0x1c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x49, - 0x50, 0x31, 0x35, 0x35, 0x39, 0x46, 0x65, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x74, 0x0a, 0x1d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x49, - 0x50, 0x31, 0x35, 0x35, 0x39, 0x46, 0x65, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x11, 0x65, 0x69, 0x70, 0x31, 0x35, 0x35, - 0x39, 0x5f, 0x66, 0x65, 0x65, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x20, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, - 0x76, 0x31, 0x2e, 0x45, 0x49, 0x50, 0x31, 0x35, 0x35, 0x39, 0x46, 0x65, 0x65, 0x50, 0x61, 0x72, - 0x61, 0x6d, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x10, 0x65, 0x69, 0x70, 0x31, 0x35, - 0x35, 0x39, 0x46, 0x65, 0x65, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x32, 0xe2, 0x12, 0x0a, 0x05, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x93, 0x01, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, - 0x12, 0x22, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, - 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4d, 0x6f, 0x64, 0x75, 0x6c, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x40, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x3a, 0x12, 0x38, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, 0x76, 0x65, 0x2f, - 0x76, 0x31, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x61, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x7d, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x73, 0x2f, 0x7b, 0x6d, - 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x12, 0x88, 0x01, 0x0a, 0x07, - 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x23, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, - 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4d, 0x6f, - 0x64, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x69, + 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x32, 0xc5, 0x11, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, + 0x93, 0x01, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x22, 0x2e, 0x69, 0x6e, 0x69, + 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, + 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x40, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3a, 0x12, 0x38, 0x2f, 0x69, 0x6e, + 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x63, + 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x2f, + 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x73, 0x2f, 0x7b, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x12, 0x88, 0x01, 0x0a, 0x07, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, + 0x73, 0x12, 0x23, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, + 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4d, 0x6f, 0x64, + 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x32, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x2c, 0x12, 0x2a, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, + 0x76, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x7b, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x73, + 0x12, 0x9b, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x24, 0x2e, + 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x42, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x3c, 0x12, 0x3a, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, 0x76, 0x65, + 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, + 0x2f, 0x62, 0x79, 0x5f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x5f, 0x74, 0x61, 0x67, 0x12, 0x90, + 0x01, 0x0a, 0x09, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x25, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x32, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x12, 0x2a, 0x2f, 0x69, 0x6e, 0x69, + 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x34, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x2e, 0x12, 0x2c, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, 0x76, + 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x73, 0x12, 0x84, 0x01, 0x0a, 0x09, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, + 0x25, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, + 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x61, 0x62, + 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 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, + 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x2f, 0x7b, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12, 0x9c, 0x01, 0x0a, 0x0a, 0x54, 0x61, 0x62, + 0x6c, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x26, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, + 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x61, + 0x62, 0x6c, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x27, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, + 0x12, 0x35, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x76, + 0x31, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x7d, 0x2f, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x2f, 0x62, 0x79, 0x5f, 0x6b, 0x65, + 0x79, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x12, 0x95, 0x01, 0x0a, 0x0c, 0x54, 0x61, 0x62, 0x6c, + 0x65, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, 0x28, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, + 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, + 0x61, 0x62, 0x6c, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x6e, + 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x30, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x12, 0x28, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, + 0x6f, 0x76, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x2f, 0x7b, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x2f, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, + 0xc4, 0x01, 0x0a, 0x0a, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x56, 0x69, 0x65, 0x77, 0x12, 0x26, + 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x56, 0x69, 0x65, 0x77, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, + 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x65, 0x67, + 0x61, 0x63, 0x79, 0x56, 0x69, 0x65, 0x77, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x5c, 0x3a, 0x01, 0x2a, 0x22, 0x57, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x2f, 0x6d, - 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x9b, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x12, 0x24, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x69, 0x6e, 0x69, 0x74, + 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x73, 0x2f, 0x7b, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x6e, + 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x7d, 0x88, 0x02, 0x01, 0x12, 0x6c, 0x0a, 0x04, 0x56, 0x69, 0x65, 0x77, 0x12, 0x20, + 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x69, 0x65, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x21, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x69, 0x65, 0x77, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x1f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x3a, 0x01, 0x2a, 0x22, 0x14, + 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x76, 0x31, 0x2f, + 0x76, 0x69, 0x65, 0x77, 0x12, 0x81, 0x01, 0x0a, 0x09, 0x56, 0x69, 0x65, 0x77, 0x42, 0x61, 0x74, + 0x63, 0x68, 0x12, 0x25, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x69, 0x65, 0x77, 0x42, 0x61, 0x74, + 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x42, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3c, 0x12, 0x3a, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, - 0x61, 0x2f, 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x73, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x2f, 0x72, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x62, 0x79, 0x5f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, - 0x5f, 0x74, 0x61, 0x67, 0x12, 0x90, 0x01, 0x0a, 0x09, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x73, 0x12, 0x25, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, - 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x69, 0x6e, 0x69, 0x74, + 0x56, 0x69, 0x65, 0x77, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x3a, 0x01, 0x2a, 0x22, 0x1a, 0x2f, 0x69, + 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x69, + 0x65, 0x77, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x12, 0x7d, 0x0a, 0x08, 0x56, 0x69, 0x65, 0x77, + 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x24, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, + 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x69, 0x65, 0x77, 0x4a, + 0x53, 0x4f, 0x4e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x69, 0x6e, 0x69, + 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x56, 0x69, 0x65, 0x77, 0x4a, 0x53, 0x4f, 0x4e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x3a, 0x01, 0x2a, 0x22, 0x19, 0x2f, 0x69, + 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x69, + 0x65, 0x77, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x12, 0x92, 0x01, 0x0a, 0x0d, 0x56, 0x69, 0x65, 0x77, + 0x4a, 0x53, 0x4f, 0x4e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x12, 0x29, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x34, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2e, 0x12, 0x2c, 0x2f, 0x69, 0x6e, 0x69, 0x74, - 0x69, 0x61, 0x2f, 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, - 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x2f, 0x72, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x84, 0x01, 0x0a, 0x09, 0x54, 0x61, 0x62, 0x6c, - 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x25, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, - 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x61, 0x62, 0x6c, - 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x69, - 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 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, 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x61, - 0x62, 0x6c, 0x65, 0x73, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12, 0x9c, - 0x01, 0x0a, 0x0a, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x26, 0x2e, - 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, - 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x61, 0x62, 0x6c, - 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3d, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x12, 0x35, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, - 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x2f, 0x7b, - 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x2f, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, - 0x2f, 0x62, 0x79, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x12, 0x95, 0x01, - 0x0a, 0x0c, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, 0x28, - 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, - 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, - 0x61, 0x62, 0x6c, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x30, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x12, 0x28, 0x2f, 0x69, 0x6e, - 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x61, 0x62, - 0x6c, 0x65, 0x73, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x2f, 0x65, 0x6e, - 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, 0xc4, 0x01, 0x0a, 0x0a, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, - 0x56, 0x69, 0x65, 0x77, 0x12, 0x26, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, - 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x65, 0x67, 0x61, 0x63, - 0x79, 0x56, 0x69, 0x65, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x69, - 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x56, 0x69, 0x65, 0x77, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x5c, 0x3a, 0x01, 0x2a, - 0x22, 0x57, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x76, - 0x31, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x7d, 0x2f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x73, 0x2f, 0x7b, 0x6d, 0x6f, - 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x76, 0x69, 0x65, 0x77, 0x5f, - 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x66, 0x75, 0x6e, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x88, 0x02, 0x01, 0x12, 0x6c, 0x0a, 0x04, - 0x56, 0x69, 0x65, 0x77, 0x12, 0x20, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, - 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x69, 0x65, 0x77, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, - 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x69, 0x65, - 0x77, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1f, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x19, 0x3a, 0x01, 0x2a, 0x22, 0x14, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, - 0x76, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x69, 0x65, 0x77, 0x12, 0x81, 0x01, 0x0a, 0x09, 0x56, - 0x69, 0x65, 0x77, 0x42, 0x61, 0x74, 0x63, 0x68, 0x12, 0x25, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, - 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, - 0x69, 0x65, 0x77, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x26, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x69, 0x65, 0x77, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x3a, - 0x01, 0x2a, 0x22, 0x1a, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, 0x76, 0x65, - 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x69, 0x65, 0x77, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x12, 0x7d, - 0x0a, 0x08, 0x56, 0x69, 0x65, 0x77, 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x24, 0x2e, 0x69, 0x6e, 0x69, + 0x56, 0x69, 0x65, 0x77, 0x4a, 0x53, 0x4f, 0x4e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, + 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x69, 0x65, 0x77, 0x4a, + 0x53, 0x4f, 0x4e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x2a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x3a, 0x01, 0x2a, 0x22, 0x1f, 0x2f, 0x69, 0x6e, + 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x69, 0x65, + 0x77, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x12, 0x81, 0x01, 0x0a, + 0x09, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x41, 0x42, 0x49, 0x12, 0x25, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x56, 0x69, 0x65, 0x77, 0x4a, 0x53, 0x4f, 0x4e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x25, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x69, 0x65, 0x77, 0x4a, 0x53, 0x4f, 0x4e, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x3a, - 0x01, 0x2a, 0x22, 0x19, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, 0x76, 0x65, - 0x2f, 0x76, 0x31, 0x2f, 0x76, 0x69, 0x65, 0x77, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x12, 0x92, 0x01, - 0x0a, 0x0d, 0x56, 0x69, 0x65, 0x77, 0x4a, 0x53, 0x4f, 0x4e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x12, - 0x29, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x56, 0x69, 0x65, 0x77, 0x4a, 0x53, 0x4f, 0x4e, 0x42, 0x61, - 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x69, 0x6e, 0x69, + 0x79, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x41, 0x42, 0x49, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x26, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x41, 0x42, + 0x49, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x1f, 0x3a, 0x01, 0x2a, 0x22, 0x1a, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, + 0x76, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x2f, 0x61, 0x62, 0x69, + 0x12, 0x71, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x22, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x56, 0x69, 0x65, 0x77, 0x4a, 0x53, 0x4f, 0x4e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x3a, 0x01, - 0x2a, 0x22, 0x1f, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, 0x76, 0x65, 0x2f, - 0x76, 0x31, 0x2f, 0x76, 0x69, 0x65, 0x77, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x2f, 0x62, 0x61, 0x74, - 0x63, 0x68, 0x12, 0x81, 0x01, 0x0a, 0x09, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x41, 0x42, 0x49, - 0x12, 0x25, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x41, 0x42, 0x49, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, - 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x41, 0x42, 0x49, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x3a, 0x01, 0x2a, 0x22, 0x1a, 0x2f, 0x69, 0x6e, 0x69, - 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x2f, 0x61, 0x62, 0x69, 0x12, 0x71, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, - 0x12, 0x22, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, - 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1e, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x18, 0x12, 0x16, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, 0x76, 0x65, 0x2f, - 0x76, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x79, 0x0a, 0x08, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x24, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, + 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, + 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x1e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x12, 0x16, 0x2f, 0x69, 0x6e, + 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x12, 0x79, 0x0a, 0x08, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, + 0x24, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x69, 0x6e, - 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 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, 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x12, 0x6d, 0x0a, 0x05, 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x12, 0x21, 0x2e, - 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x22, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x12, 0x15, 0x2f, 0x69, - 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x65, - 0x6e, 0x6f, 0x6d, 0x12, 0x9a, 0x01, 0x0a, 0x10, 0x45, 0x49, 0x50, 0x31, 0x35, 0x35, 0x39, 0x46, - 0x65, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x2c, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, - 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, - 0x49, 0x50, 0x31, 0x35, 0x35, 0x39, 0x46, 0x65, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, - 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x49, 0x50, - 0x31, 0x35, 0x35, 0x39, 0x46, 0x65, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x12, 0x21, 0x2f, - 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x65, - 0x69, 0x70, 0x31, 0x35, 0x35, 0x39, 0x5f, 0x66, 0x65, 0x65, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, - 0x42, 0xbb, 0x01, 0xc8, 0xe1, 0x1e, 0x00, 0xa8, 0xe2, 0x1e, 0x00, 0x0a, 0x12, 0x63, 0x6f, 0x6d, - 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x42, - 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 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, + 0x64, 0x61, 0x74, 0x61, 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, 0x6d, 0x6f, + 0x76, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x6d, + 0x0a, 0x05, 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x12, 0x21, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, + 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, + 0x6e, 0x6f, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x69, 0x6e, 0x69, + 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1d, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x12, 0x15, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2f, + 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x42, 0xbb, 0x01, + 0xc8, 0xe1, 0x1e, 0x00, 0xa8, 0xe2, 0x1e, 0x00, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x69, 0x6e, + 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x51, 0x75, + 0x65, 0x72, 0x79, 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 ( @@ -19572,66 +18699,63 @@ func file_initia_move_v1_query_proto_rawDescGZIP() []byte { return file_initia_move_v1_query_proto_rawDescData } -var file_initia_move_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 35) +var file_initia_move_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 33) var file_initia_move_v1_query_proto_goTypes = []interface{}{ - (*QueryModuleRequest)(nil), // 0: initia.move.v1.QueryModuleRequest - (*QueryModuleResponse)(nil), // 1: initia.move.v1.QueryModuleResponse - (*QueryModulesRequest)(nil), // 2: initia.move.v1.QueryModulesRequest - (*QueryModulesResponse)(nil), // 3: initia.move.v1.QueryModulesResponse - (*QueryResourceRequest)(nil), // 4: initia.move.v1.QueryResourceRequest - (*QueryResourceResponse)(nil), // 5: initia.move.v1.QueryResourceResponse - (*QueryResourcesRequest)(nil), // 6: initia.move.v1.QueryResourcesRequest - (*QueryResourcesResponse)(nil), // 7: initia.move.v1.QueryResourcesResponse - (*QueryTableInfoRequest)(nil), // 8: initia.move.v1.QueryTableInfoRequest - (*QueryTableInfoResponse)(nil), // 9: initia.move.v1.QueryTableInfoResponse - (*QueryTableEntryRequest)(nil), // 10: initia.move.v1.QueryTableEntryRequest - (*QueryTableEntryResponse)(nil), // 11: initia.move.v1.QueryTableEntryResponse - (*QueryTableEntriesRequest)(nil), // 12: initia.move.v1.QueryTableEntriesRequest - (*QueryTableEntriesResponse)(nil), // 13: initia.move.v1.QueryTableEntriesResponse - (*QueryLegacyViewRequest)(nil), // 14: initia.move.v1.QueryLegacyViewRequest - (*QueryLegacyViewResponse)(nil), // 15: initia.move.v1.QueryLegacyViewResponse - (*QueryViewRequest)(nil), // 16: initia.move.v1.QueryViewRequest - (*QueryViewResponse)(nil), // 17: initia.move.v1.QueryViewResponse - (*QueryViewBatchRequest)(nil), // 18: initia.move.v1.QueryViewBatchRequest - (*QueryViewBatchResponse)(nil), // 19: initia.move.v1.QueryViewBatchResponse - (*QueryViewJSONRequest)(nil), // 20: initia.move.v1.QueryViewJSONRequest - (*QueryViewJSONResponse)(nil), // 21: initia.move.v1.QueryViewJSONResponse - (*QueryViewJSONBatchRequest)(nil), // 22: initia.move.v1.QueryViewJSONBatchRequest - (*QueryViewJSONBatchResponse)(nil), // 23: initia.move.v1.QueryViewJSONBatchResponse - (*VMEvent)(nil), // 24: initia.move.v1.VMEvent - (*QueryScriptABIRequest)(nil), // 25: initia.move.v1.QueryScriptABIRequest - (*QueryScriptABIResponse)(nil), // 26: initia.move.v1.QueryScriptABIResponse - (*QueryParamsRequest)(nil), // 27: initia.move.v1.QueryParamsRequest - (*QueryParamsResponse)(nil), // 28: initia.move.v1.QueryParamsResponse - (*QueryMetadataRequest)(nil), // 29: initia.move.v1.QueryMetadataRequest - (*QueryMetadataResponse)(nil), // 30: initia.move.v1.QueryMetadataResponse - (*QueryDenomRequest)(nil), // 31: initia.move.v1.QueryDenomRequest - (*QueryDenomResponse)(nil), // 32: initia.move.v1.QueryDenomResponse - (*QueryEIP1559FeeParamsRequest)(nil), // 33: initia.move.v1.QueryEIP1559FeeParamsRequest - (*QueryEIP1559FeeParamsResponse)(nil), // 34: initia.move.v1.QueryEIP1559FeeParamsResponse - (*Module)(nil), // 35: initia.move.v1.Module - (*v1beta1.PageRequest)(nil), // 36: cosmos.base.query.v1beta1.PageRequest - (*v1beta1.PageResponse)(nil), // 37: cosmos.base.query.v1beta1.PageResponse - (*Resource)(nil), // 38: initia.move.v1.Resource - (*TableInfo)(nil), // 39: initia.move.v1.TableInfo - (*TableEntry)(nil), // 40: initia.move.v1.TableEntry - (*Params)(nil), // 41: initia.move.v1.Params - (*EIP1559FeeParams)(nil), // 42: initia.move.v1.EIP1559FeeParams + (*QueryModuleRequest)(nil), // 0: initia.move.v1.QueryModuleRequest + (*QueryModuleResponse)(nil), // 1: initia.move.v1.QueryModuleResponse + (*QueryModulesRequest)(nil), // 2: initia.move.v1.QueryModulesRequest + (*QueryModulesResponse)(nil), // 3: initia.move.v1.QueryModulesResponse + (*QueryResourceRequest)(nil), // 4: initia.move.v1.QueryResourceRequest + (*QueryResourceResponse)(nil), // 5: initia.move.v1.QueryResourceResponse + (*QueryResourcesRequest)(nil), // 6: initia.move.v1.QueryResourcesRequest + (*QueryResourcesResponse)(nil), // 7: initia.move.v1.QueryResourcesResponse + (*QueryTableInfoRequest)(nil), // 8: initia.move.v1.QueryTableInfoRequest + (*QueryTableInfoResponse)(nil), // 9: initia.move.v1.QueryTableInfoResponse + (*QueryTableEntryRequest)(nil), // 10: initia.move.v1.QueryTableEntryRequest + (*QueryTableEntryResponse)(nil), // 11: initia.move.v1.QueryTableEntryResponse + (*QueryTableEntriesRequest)(nil), // 12: initia.move.v1.QueryTableEntriesRequest + (*QueryTableEntriesResponse)(nil), // 13: initia.move.v1.QueryTableEntriesResponse + (*QueryLegacyViewRequest)(nil), // 14: initia.move.v1.QueryLegacyViewRequest + (*QueryLegacyViewResponse)(nil), // 15: initia.move.v1.QueryLegacyViewResponse + (*QueryViewRequest)(nil), // 16: initia.move.v1.QueryViewRequest + (*QueryViewResponse)(nil), // 17: initia.move.v1.QueryViewResponse + (*QueryViewBatchRequest)(nil), // 18: initia.move.v1.QueryViewBatchRequest + (*QueryViewBatchResponse)(nil), // 19: initia.move.v1.QueryViewBatchResponse + (*QueryViewJSONRequest)(nil), // 20: initia.move.v1.QueryViewJSONRequest + (*QueryViewJSONResponse)(nil), // 21: initia.move.v1.QueryViewJSONResponse + (*QueryViewJSONBatchRequest)(nil), // 22: initia.move.v1.QueryViewJSONBatchRequest + (*QueryViewJSONBatchResponse)(nil), // 23: initia.move.v1.QueryViewJSONBatchResponse + (*VMEvent)(nil), // 24: initia.move.v1.VMEvent + (*QueryScriptABIRequest)(nil), // 25: initia.move.v1.QueryScriptABIRequest + (*QueryScriptABIResponse)(nil), // 26: initia.move.v1.QueryScriptABIResponse + (*QueryParamsRequest)(nil), // 27: initia.move.v1.QueryParamsRequest + (*QueryParamsResponse)(nil), // 28: initia.move.v1.QueryParamsResponse + (*QueryMetadataRequest)(nil), // 29: initia.move.v1.QueryMetadataRequest + (*QueryMetadataResponse)(nil), // 30: initia.move.v1.QueryMetadataResponse + (*QueryDenomRequest)(nil), // 31: initia.move.v1.QueryDenomRequest + (*QueryDenomResponse)(nil), // 32: initia.move.v1.QueryDenomResponse + (*Module)(nil), // 33: initia.move.v1.Module + (*v1beta1.PageRequest)(nil), // 34: cosmos.base.query.v1beta1.PageRequest + (*v1beta1.PageResponse)(nil), // 35: cosmos.base.query.v1beta1.PageResponse + (*Resource)(nil), // 36: initia.move.v1.Resource + (*TableInfo)(nil), // 37: initia.move.v1.TableInfo + (*TableEntry)(nil), // 38: initia.move.v1.TableEntry + (*Params)(nil), // 39: initia.move.v1.Params } var file_initia_move_v1_query_proto_depIdxs = []int32{ - 35, // 0: initia.move.v1.QueryModuleResponse.module:type_name -> initia.move.v1.Module - 36, // 1: initia.move.v1.QueryModulesRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 35, // 2: initia.move.v1.QueryModulesResponse.modules:type_name -> initia.move.v1.Module - 37, // 3: initia.move.v1.QueryModulesResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 38, // 4: initia.move.v1.QueryResourceResponse.resource:type_name -> initia.move.v1.Resource - 36, // 5: initia.move.v1.QueryResourcesRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 38, // 6: initia.move.v1.QueryResourcesResponse.resources:type_name -> initia.move.v1.Resource - 37, // 7: initia.move.v1.QueryResourcesResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse - 39, // 8: initia.move.v1.QueryTableInfoResponse.table_info:type_name -> initia.move.v1.TableInfo - 40, // 9: initia.move.v1.QueryTableEntryResponse.table_entry:type_name -> initia.move.v1.TableEntry - 36, // 10: initia.move.v1.QueryTableEntriesRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest - 40, // 11: initia.move.v1.QueryTableEntriesResponse.table_entries:type_name -> initia.move.v1.TableEntry - 37, // 12: initia.move.v1.QueryTableEntriesResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 33, // 0: initia.move.v1.QueryModuleResponse.module:type_name -> initia.move.v1.Module + 34, // 1: initia.move.v1.QueryModulesRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 33, // 2: initia.move.v1.QueryModulesResponse.modules:type_name -> initia.move.v1.Module + 35, // 3: initia.move.v1.QueryModulesResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 36, // 4: initia.move.v1.QueryResourceResponse.resource:type_name -> initia.move.v1.Resource + 34, // 5: initia.move.v1.QueryResourcesRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 36, // 6: initia.move.v1.QueryResourcesResponse.resources:type_name -> initia.move.v1.Resource + 35, // 7: initia.move.v1.QueryResourcesResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse + 37, // 8: initia.move.v1.QueryTableInfoResponse.table_info:type_name -> initia.move.v1.TableInfo + 38, // 9: initia.move.v1.QueryTableEntryResponse.table_entry:type_name -> initia.move.v1.TableEntry + 34, // 10: initia.move.v1.QueryTableEntriesRequest.pagination:type_name -> cosmos.base.query.v1beta1.PageRequest + 38, // 11: initia.move.v1.QueryTableEntriesResponse.table_entries:type_name -> initia.move.v1.TableEntry + 35, // 12: initia.move.v1.QueryTableEntriesResponse.pagination:type_name -> cosmos.base.query.v1beta1.PageResponse 24, // 13: initia.move.v1.QueryLegacyViewResponse.events:type_name -> initia.move.v1.VMEvent 24, // 14: initia.move.v1.QueryViewResponse.events:type_name -> initia.move.v1.VMEvent 16, // 15: initia.move.v1.QueryViewBatchRequest.requests:type_name -> initia.move.v1.QueryViewRequest @@ -19639,47 +18763,44 @@ var file_initia_move_v1_query_proto_depIdxs = []int32{ 24, // 17: initia.move.v1.QueryViewJSONResponse.events:type_name -> initia.move.v1.VMEvent 20, // 18: initia.move.v1.QueryViewJSONBatchRequest.requests:type_name -> initia.move.v1.QueryViewJSONRequest 21, // 19: initia.move.v1.QueryViewJSONBatchResponse.responses:type_name -> initia.move.v1.QueryViewJSONResponse - 41, // 20: initia.move.v1.QueryParamsResponse.params:type_name -> initia.move.v1.Params - 42, // 21: initia.move.v1.QueryEIP1559FeeParamsResponse.eip1559_feeparams:type_name -> initia.move.v1.EIP1559FeeParams - 0, // 22: initia.move.v1.Query.Module:input_type -> initia.move.v1.QueryModuleRequest - 2, // 23: initia.move.v1.Query.Modules:input_type -> initia.move.v1.QueryModulesRequest - 4, // 24: initia.move.v1.Query.Resource:input_type -> initia.move.v1.QueryResourceRequest - 6, // 25: initia.move.v1.Query.Resources:input_type -> initia.move.v1.QueryResourcesRequest - 8, // 26: initia.move.v1.Query.TableInfo:input_type -> initia.move.v1.QueryTableInfoRequest - 10, // 27: initia.move.v1.Query.TableEntry:input_type -> initia.move.v1.QueryTableEntryRequest - 12, // 28: initia.move.v1.Query.TableEntries:input_type -> initia.move.v1.QueryTableEntriesRequest - 14, // 29: initia.move.v1.Query.LegacyView:input_type -> initia.move.v1.QueryLegacyViewRequest - 16, // 30: initia.move.v1.Query.View:input_type -> initia.move.v1.QueryViewRequest - 18, // 31: initia.move.v1.Query.ViewBatch:input_type -> initia.move.v1.QueryViewBatchRequest - 20, // 32: initia.move.v1.Query.ViewJSON:input_type -> initia.move.v1.QueryViewJSONRequest - 22, // 33: initia.move.v1.Query.ViewJSONBatch:input_type -> initia.move.v1.QueryViewJSONBatchRequest - 25, // 34: initia.move.v1.Query.ScriptABI:input_type -> initia.move.v1.QueryScriptABIRequest - 27, // 35: initia.move.v1.Query.Params:input_type -> initia.move.v1.QueryParamsRequest - 29, // 36: initia.move.v1.Query.Metadata:input_type -> initia.move.v1.QueryMetadataRequest - 31, // 37: initia.move.v1.Query.Denom:input_type -> initia.move.v1.QueryDenomRequest - 33, // 38: initia.move.v1.Query.EIP1559FeeParams:input_type -> initia.move.v1.QueryEIP1559FeeParamsRequest - 1, // 39: initia.move.v1.Query.Module:output_type -> initia.move.v1.QueryModuleResponse - 3, // 40: initia.move.v1.Query.Modules:output_type -> initia.move.v1.QueryModulesResponse - 5, // 41: initia.move.v1.Query.Resource:output_type -> initia.move.v1.QueryResourceResponse - 7, // 42: initia.move.v1.Query.Resources:output_type -> initia.move.v1.QueryResourcesResponse - 9, // 43: initia.move.v1.Query.TableInfo:output_type -> initia.move.v1.QueryTableInfoResponse - 11, // 44: initia.move.v1.Query.TableEntry:output_type -> initia.move.v1.QueryTableEntryResponse - 13, // 45: initia.move.v1.Query.TableEntries:output_type -> initia.move.v1.QueryTableEntriesResponse - 15, // 46: initia.move.v1.Query.LegacyView:output_type -> initia.move.v1.QueryLegacyViewResponse - 17, // 47: initia.move.v1.Query.View:output_type -> initia.move.v1.QueryViewResponse - 19, // 48: initia.move.v1.Query.ViewBatch:output_type -> initia.move.v1.QueryViewBatchResponse - 21, // 49: initia.move.v1.Query.ViewJSON:output_type -> initia.move.v1.QueryViewJSONResponse - 23, // 50: initia.move.v1.Query.ViewJSONBatch:output_type -> initia.move.v1.QueryViewJSONBatchResponse - 26, // 51: initia.move.v1.Query.ScriptABI:output_type -> initia.move.v1.QueryScriptABIResponse - 28, // 52: initia.move.v1.Query.Params:output_type -> initia.move.v1.QueryParamsResponse - 30, // 53: initia.move.v1.Query.Metadata:output_type -> initia.move.v1.QueryMetadataResponse - 32, // 54: initia.move.v1.Query.Denom:output_type -> initia.move.v1.QueryDenomResponse - 34, // 55: initia.move.v1.Query.EIP1559FeeParams:output_type -> initia.move.v1.QueryEIP1559FeeParamsResponse - 39, // [39:56] is the sub-list for method output_type - 22, // [22:39] is the sub-list for method input_type - 22, // [22:22] is the sub-list for extension type_name - 22, // [22:22] is the sub-list for extension extendee - 0, // [0:22] is the sub-list for field type_name + 39, // 20: initia.move.v1.QueryParamsResponse.params:type_name -> initia.move.v1.Params + 0, // 21: initia.move.v1.Query.Module:input_type -> initia.move.v1.QueryModuleRequest + 2, // 22: initia.move.v1.Query.Modules:input_type -> initia.move.v1.QueryModulesRequest + 4, // 23: initia.move.v1.Query.Resource:input_type -> initia.move.v1.QueryResourceRequest + 6, // 24: initia.move.v1.Query.Resources:input_type -> initia.move.v1.QueryResourcesRequest + 8, // 25: initia.move.v1.Query.TableInfo:input_type -> initia.move.v1.QueryTableInfoRequest + 10, // 26: initia.move.v1.Query.TableEntry:input_type -> initia.move.v1.QueryTableEntryRequest + 12, // 27: initia.move.v1.Query.TableEntries:input_type -> initia.move.v1.QueryTableEntriesRequest + 14, // 28: initia.move.v1.Query.LegacyView:input_type -> initia.move.v1.QueryLegacyViewRequest + 16, // 29: initia.move.v1.Query.View:input_type -> initia.move.v1.QueryViewRequest + 18, // 30: initia.move.v1.Query.ViewBatch:input_type -> initia.move.v1.QueryViewBatchRequest + 20, // 31: initia.move.v1.Query.ViewJSON:input_type -> initia.move.v1.QueryViewJSONRequest + 22, // 32: initia.move.v1.Query.ViewJSONBatch:input_type -> initia.move.v1.QueryViewJSONBatchRequest + 25, // 33: initia.move.v1.Query.ScriptABI:input_type -> initia.move.v1.QueryScriptABIRequest + 27, // 34: initia.move.v1.Query.Params:input_type -> initia.move.v1.QueryParamsRequest + 29, // 35: initia.move.v1.Query.Metadata:input_type -> initia.move.v1.QueryMetadataRequest + 31, // 36: initia.move.v1.Query.Denom:input_type -> initia.move.v1.QueryDenomRequest + 1, // 37: initia.move.v1.Query.Module:output_type -> initia.move.v1.QueryModuleResponse + 3, // 38: initia.move.v1.Query.Modules:output_type -> initia.move.v1.QueryModulesResponse + 5, // 39: initia.move.v1.Query.Resource:output_type -> initia.move.v1.QueryResourceResponse + 7, // 40: initia.move.v1.Query.Resources:output_type -> initia.move.v1.QueryResourcesResponse + 9, // 41: initia.move.v1.Query.TableInfo:output_type -> initia.move.v1.QueryTableInfoResponse + 11, // 42: initia.move.v1.Query.TableEntry:output_type -> initia.move.v1.QueryTableEntryResponse + 13, // 43: initia.move.v1.Query.TableEntries:output_type -> initia.move.v1.QueryTableEntriesResponse + 15, // 44: initia.move.v1.Query.LegacyView:output_type -> initia.move.v1.QueryLegacyViewResponse + 17, // 45: initia.move.v1.Query.View:output_type -> initia.move.v1.QueryViewResponse + 19, // 46: initia.move.v1.Query.ViewBatch:output_type -> initia.move.v1.QueryViewBatchResponse + 21, // 47: initia.move.v1.Query.ViewJSON:output_type -> initia.move.v1.QueryViewJSONResponse + 23, // 48: initia.move.v1.Query.ViewJSONBatch:output_type -> initia.move.v1.QueryViewJSONBatchResponse + 26, // 49: initia.move.v1.Query.ScriptABI:output_type -> initia.move.v1.QueryScriptABIResponse + 28, // 50: initia.move.v1.Query.Params:output_type -> initia.move.v1.QueryParamsResponse + 30, // 51: initia.move.v1.Query.Metadata:output_type -> initia.move.v1.QueryMetadataResponse + 32, // 52: initia.move.v1.Query.Denom:output_type -> initia.move.v1.QueryDenomResponse + 37, // [37:53] is the sub-list for method output_type + 21, // [21:37] is the sub-list for method input_type + 21, // [21:21] is the sub-list for extension type_name + 21, // [21:21] is the sub-list for extension extendee + 0, // [0:21] is the sub-list for field type_name } func init() { file_initia_move_v1_query_proto_init() } @@ -20085,30 +19206,6 @@ func file_initia_move_v1_query_proto_init() { return nil } } - file_initia_move_v1_query_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryEIP1559FeeParamsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_initia_move_v1_query_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryEIP1559FeeParamsResponse); 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{ @@ -20116,7 +19213,7 @@ func file_initia_move_v1_query_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_initia_move_v1_query_proto_rawDesc, NumEnums: 0, - NumMessages: 35, + NumMessages: 33, NumExtensions: 0, NumServices: 1, }, diff --git a/api/initia/move/v1/query_grpc.pb.go b/api/initia/move/v1/query_grpc.pb.go index f5fef711c..104131285 100644 --- a/api/initia/move/v1/query_grpc.pb.go +++ b/api/initia/move/v1/query_grpc.pb.go @@ -19,23 +19,22 @@ import ( const _ = grpc.SupportPackageIsVersion7 const ( - Query_Module_FullMethodName = "/initia.move.v1.Query/Module" - Query_Modules_FullMethodName = "/initia.move.v1.Query/Modules" - Query_Resource_FullMethodName = "/initia.move.v1.Query/Resource" - Query_Resources_FullMethodName = "/initia.move.v1.Query/Resources" - Query_TableInfo_FullMethodName = "/initia.move.v1.Query/TableInfo" - Query_TableEntry_FullMethodName = "/initia.move.v1.Query/TableEntry" - Query_TableEntries_FullMethodName = "/initia.move.v1.Query/TableEntries" - Query_LegacyView_FullMethodName = "/initia.move.v1.Query/LegacyView" - Query_View_FullMethodName = "/initia.move.v1.Query/View" - Query_ViewBatch_FullMethodName = "/initia.move.v1.Query/ViewBatch" - Query_ViewJSON_FullMethodName = "/initia.move.v1.Query/ViewJSON" - Query_ViewJSONBatch_FullMethodName = "/initia.move.v1.Query/ViewJSONBatch" - Query_ScriptABI_FullMethodName = "/initia.move.v1.Query/ScriptABI" - Query_Params_FullMethodName = "/initia.move.v1.Query/Params" - Query_Metadata_FullMethodName = "/initia.move.v1.Query/Metadata" - Query_Denom_FullMethodName = "/initia.move.v1.Query/Denom" - Query_EIP1559FeeParams_FullMethodName = "/initia.move.v1.Query/EIP1559FeeParams" + Query_Module_FullMethodName = "/initia.move.v1.Query/Module" + Query_Modules_FullMethodName = "/initia.move.v1.Query/Modules" + Query_Resource_FullMethodName = "/initia.move.v1.Query/Resource" + Query_Resources_FullMethodName = "/initia.move.v1.Query/Resources" + Query_TableInfo_FullMethodName = "/initia.move.v1.Query/TableInfo" + Query_TableEntry_FullMethodName = "/initia.move.v1.Query/TableEntry" + Query_TableEntries_FullMethodName = "/initia.move.v1.Query/TableEntries" + Query_LegacyView_FullMethodName = "/initia.move.v1.Query/LegacyView" + Query_View_FullMethodName = "/initia.move.v1.Query/View" + Query_ViewBatch_FullMethodName = "/initia.move.v1.Query/ViewBatch" + Query_ViewJSON_FullMethodName = "/initia.move.v1.Query/ViewJSON" + Query_ViewJSONBatch_FullMethodName = "/initia.move.v1.Query/ViewJSONBatch" + Query_ScriptABI_FullMethodName = "/initia.move.v1.Query/ScriptABI" + Query_Params_FullMethodName = "/initia.move.v1.Query/Params" + Query_Metadata_FullMethodName = "/initia.move.v1.Query/Metadata" + Query_Denom_FullMethodName = "/initia.move.v1.Query/Denom" ) // QueryClient is the client API for Query service. @@ -78,8 +77,6 @@ type QueryClient interface { Metadata(ctx context.Context, in *QueryMetadataRequest, opts ...grpc.CallOption) (*QueryMetadataResponse, error) // Denom converts denom to metadata Denom(ctx context.Context, in *QueryDenomRequest, opts ...grpc.CallOption) (*QueryDenomResponse, error) - // EIP1559FeeParams queries the EIP1559 fee params - EIP1559FeeParams(ctx context.Context, in *QueryEIP1559FeeParamsRequest, opts ...grpc.CallOption) (*QueryEIP1559FeeParamsResponse, error) } type queryClient struct { @@ -235,15 +232,6 @@ func (c *queryClient) Denom(ctx context.Context, in *QueryDenomRequest, opts ... return out, nil } -func (c *queryClient) EIP1559FeeParams(ctx context.Context, in *QueryEIP1559FeeParamsRequest, opts ...grpc.CallOption) (*QueryEIP1559FeeParamsResponse, error) { - out := new(QueryEIP1559FeeParamsResponse) - err := c.cc.Invoke(ctx, Query_EIP1559FeeParams_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 @@ -284,8 +272,6 @@ type QueryServer interface { Metadata(context.Context, *QueryMetadataRequest) (*QueryMetadataResponse, error) // Denom converts denom to metadata Denom(context.Context, *QueryDenomRequest) (*QueryDenomResponse, error) - // EIP1559FeeParams queries the EIP1559 fee params - EIP1559FeeParams(context.Context, *QueryEIP1559FeeParamsRequest) (*QueryEIP1559FeeParamsResponse, error) mustEmbedUnimplementedQueryServer() } @@ -341,9 +327,6 @@ func (UnimplementedQueryServer) Metadata(context.Context, *QueryMetadataRequest) func (UnimplementedQueryServer) Denom(context.Context, *QueryDenomRequest) (*QueryDenomResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Denom not implemented") } -func (UnimplementedQueryServer) EIP1559FeeParams(context.Context, *QueryEIP1559FeeParamsRequest) (*QueryEIP1559FeeParamsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method EIP1559FeeParams not implemented") -} func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {} // UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. @@ -645,24 +628,6 @@ func _Query_Denom_Handler(srv interface{}, ctx context.Context, dec func(interfa return interceptor(ctx, in, info, handler) } -func _Query_EIP1559FeeParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryEIP1559FeeParamsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).EIP1559FeeParams(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_EIP1559FeeParams_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).EIP1559FeeParams(ctx, req.(*QueryEIP1559FeeParamsRequest)) - } - 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) @@ -734,10 +699,6 @@ var Query_ServiceDesc = grpc.ServiceDesc{ MethodName: "Denom", Handler: _Query_Denom_Handler, }, - { - MethodName: "EIP1559FeeParams", - Handler: _Query_EIP1559FeeParams_Handler, - }, }, Streams: []grpc.StreamDesc{}, Metadata: "initia/move/v1/query.proto", diff --git a/api/initia/move/v1/tx.pulsar.go b/api/initia/move/v1/tx.pulsar.go index 145cef86f..8d0c6d556 100644 --- a/api/initia/move/v1/tx.pulsar.go +++ b/api/initia/move/v1/tx.pulsar.go @@ -14055,861 +14055,6 @@ func (x *fastReflection_MsgUpdateParamsResponse) ProtoMethods() *protoiface.Meth } } -var ( - md_MsgUpdateEIP1559FeeParams protoreflect.MessageDescriptor - fd_MsgUpdateEIP1559FeeParams_authority protoreflect.FieldDescriptor - fd_MsgUpdateEIP1559FeeParams_eip1559_feeparams protoreflect.FieldDescriptor -) - -func init() { - file_initia_move_v1_tx_proto_init() - md_MsgUpdateEIP1559FeeParams = File_initia_move_v1_tx_proto.Messages().ByName("MsgUpdateEIP1559FeeParams") - fd_MsgUpdateEIP1559FeeParams_authority = md_MsgUpdateEIP1559FeeParams.Fields().ByName("authority") - fd_MsgUpdateEIP1559FeeParams_eip1559_feeparams = md_MsgUpdateEIP1559FeeParams.Fields().ByName("eip1559_feeparams") -} - -var _ protoreflect.Message = (*fastReflection_MsgUpdateEIP1559FeeParams)(nil) - -type fastReflection_MsgUpdateEIP1559FeeParams MsgUpdateEIP1559FeeParams - -func (x *MsgUpdateEIP1559FeeParams) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateEIP1559FeeParams)(x) -} - -func (x *MsgUpdateEIP1559FeeParams) slowProtoReflect() protoreflect.Message { - mi := &file_initia_move_v1_tx_proto_msgTypes[26] - 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_MsgUpdateEIP1559FeeParams_messageType fastReflection_MsgUpdateEIP1559FeeParams_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateEIP1559FeeParams_messageType{} - -type fastReflection_MsgUpdateEIP1559FeeParams_messageType struct{} - -func (x fastReflection_MsgUpdateEIP1559FeeParams_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateEIP1559FeeParams)(nil) -} -func (x fastReflection_MsgUpdateEIP1559FeeParams_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateEIP1559FeeParams) -} -func (x fastReflection_MsgUpdateEIP1559FeeParams_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateEIP1559FeeParams -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgUpdateEIP1559FeeParams) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateEIP1559FeeParams -} - -// 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_MsgUpdateEIP1559FeeParams) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateEIP1559FeeParams_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateEIP1559FeeParams) New() protoreflect.Message { - return new(fastReflection_MsgUpdateEIP1559FeeParams) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateEIP1559FeeParams) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateEIP1559FeeParams)(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_MsgUpdateEIP1559FeeParams) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Authority != "" { - value := protoreflect.ValueOfString(x.Authority) - if !f(fd_MsgUpdateEIP1559FeeParams_authority, value) { - return - } - } - if x.Eip1559Feeparams != nil { - value := protoreflect.ValueOfMessage(x.Eip1559Feeparams.ProtoReflect()) - if !f(fd_MsgUpdateEIP1559FeeParams_eip1559_feeparams, 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_MsgUpdateEIP1559FeeParams) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "initia.move.v1.MsgUpdateEIP1559FeeParams.authority": - return x.Authority != "" - case "initia.move.v1.MsgUpdateEIP1559FeeParams.eip1559_feeparams": - return x.Eip1559Feeparams != nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.MsgUpdateEIP1559FeeParams")) - } - panic(fmt.Errorf("message initia.move.v1.MsgUpdateEIP1559FeeParams 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_MsgUpdateEIP1559FeeParams) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "initia.move.v1.MsgUpdateEIP1559FeeParams.authority": - x.Authority = "" - case "initia.move.v1.MsgUpdateEIP1559FeeParams.eip1559_feeparams": - x.Eip1559Feeparams = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.MsgUpdateEIP1559FeeParams")) - } - panic(fmt.Errorf("message initia.move.v1.MsgUpdateEIP1559FeeParams 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_MsgUpdateEIP1559FeeParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "initia.move.v1.MsgUpdateEIP1559FeeParams.authority": - value := x.Authority - return protoreflect.ValueOfString(value) - case "initia.move.v1.MsgUpdateEIP1559FeeParams.eip1559_feeparams": - value := x.Eip1559Feeparams - return protoreflect.ValueOfMessage(value.ProtoReflect()) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.MsgUpdateEIP1559FeeParams")) - } - panic(fmt.Errorf("message initia.move.v1.MsgUpdateEIP1559FeeParams 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_MsgUpdateEIP1559FeeParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "initia.move.v1.MsgUpdateEIP1559FeeParams.authority": - x.Authority = value.Interface().(string) - case "initia.move.v1.MsgUpdateEIP1559FeeParams.eip1559_feeparams": - x.Eip1559Feeparams = value.Message().Interface().(*EIP1559FeeParams) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.MsgUpdateEIP1559FeeParams")) - } - panic(fmt.Errorf("message initia.move.v1.MsgUpdateEIP1559FeeParams 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_MsgUpdateEIP1559FeeParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "initia.move.v1.MsgUpdateEIP1559FeeParams.eip1559_feeparams": - if x.Eip1559Feeparams == nil { - x.Eip1559Feeparams = new(EIP1559FeeParams) - } - return protoreflect.ValueOfMessage(x.Eip1559Feeparams.ProtoReflect()) - case "initia.move.v1.MsgUpdateEIP1559FeeParams.authority": - panic(fmt.Errorf("field authority of message initia.move.v1.MsgUpdateEIP1559FeeParams is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.MsgUpdateEIP1559FeeParams")) - } - panic(fmt.Errorf("message initia.move.v1.MsgUpdateEIP1559FeeParams 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_MsgUpdateEIP1559FeeParams) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "initia.move.v1.MsgUpdateEIP1559FeeParams.authority": - return protoreflect.ValueOfString("") - case "initia.move.v1.MsgUpdateEIP1559FeeParams.eip1559_feeparams": - m := new(EIP1559FeeParams) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.MsgUpdateEIP1559FeeParams")) - } - panic(fmt.Errorf("message initia.move.v1.MsgUpdateEIP1559FeeParams 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_MsgUpdateEIP1559FeeParams) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in initia.move.v1.MsgUpdateEIP1559FeeParams", 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_MsgUpdateEIP1559FeeParams) 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_MsgUpdateEIP1559FeeParams) 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_MsgUpdateEIP1559FeeParams) 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_MsgUpdateEIP1559FeeParams) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateEIP1559FeeParams) - 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.Authority) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.Eip1559Feeparams != nil { - l = options.Size(x.Eip1559Feeparams) - 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().(*MsgUpdateEIP1559FeeParams) - 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.Eip1559Feeparams != nil { - encoded, err := options.Marshal(x.Eip1559Feeparams) - 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] = 0x12 - } - if len(x.Authority) > 0 { - i -= len(x.Authority) - copy(dAtA[i:], x.Authority) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) - 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().(*MsgUpdateEIP1559FeeParams) - 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: MsgUpdateEIP1559FeeParams: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateEIP1559FeeParams: 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 Authority", 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.Authority = 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 Eip1559Feeparams", 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.Eip1559Feeparams == nil { - x.Eip1559Feeparams = &EIP1559FeeParams{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Eip1559Feeparams); 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_MsgUpdateEIP1559FeeParamsResponse protoreflect.MessageDescriptor -) - -func init() { - file_initia_move_v1_tx_proto_init() - md_MsgUpdateEIP1559FeeParamsResponse = File_initia_move_v1_tx_proto.Messages().ByName("MsgUpdateEIP1559FeeParamsResponse") -} - -var _ protoreflect.Message = (*fastReflection_MsgUpdateEIP1559FeeParamsResponse)(nil) - -type fastReflection_MsgUpdateEIP1559FeeParamsResponse MsgUpdateEIP1559FeeParamsResponse - -func (x *MsgUpdateEIP1559FeeParamsResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateEIP1559FeeParamsResponse)(x) -} - -func (x *MsgUpdateEIP1559FeeParamsResponse) slowProtoReflect() protoreflect.Message { - mi := &file_initia_move_v1_tx_proto_msgTypes[27] - 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_MsgUpdateEIP1559FeeParamsResponse_messageType fastReflection_MsgUpdateEIP1559FeeParamsResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgUpdateEIP1559FeeParamsResponse_messageType{} - -type fastReflection_MsgUpdateEIP1559FeeParamsResponse_messageType struct{} - -func (x fastReflection_MsgUpdateEIP1559FeeParamsResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgUpdateEIP1559FeeParamsResponse)(nil) -} -func (x fastReflection_MsgUpdateEIP1559FeeParamsResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgUpdateEIP1559FeeParamsResponse) -} -func (x fastReflection_MsgUpdateEIP1559FeeParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateEIP1559FeeParamsResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_MsgUpdateEIP1559FeeParamsResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgUpdateEIP1559FeeParamsResponse -} - -// 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_MsgUpdateEIP1559FeeParamsResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgUpdateEIP1559FeeParamsResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgUpdateEIP1559FeeParamsResponse) New() protoreflect.Message { - return new(fastReflection_MsgUpdateEIP1559FeeParamsResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgUpdateEIP1559FeeParamsResponse) Interface() protoreflect.ProtoMessage { - return (*MsgUpdateEIP1559FeeParamsResponse)(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_MsgUpdateEIP1559FeeParamsResponse) 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_MsgUpdateEIP1559FeeParamsResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.MsgUpdateEIP1559FeeParamsResponse")) - } - panic(fmt.Errorf("message initia.move.v1.MsgUpdateEIP1559FeeParamsResponse 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_MsgUpdateEIP1559FeeParamsResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.MsgUpdateEIP1559FeeParamsResponse")) - } - panic(fmt.Errorf("message initia.move.v1.MsgUpdateEIP1559FeeParamsResponse 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_MsgUpdateEIP1559FeeParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.MsgUpdateEIP1559FeeParamsResponse")) - } - panic(fmt.Errorf("message initia.move.v1.MsgUpdateEIP1559FeeParamsResponse 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_MsgUpdateEIP1559FeeParamsResponse) 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.move.v1.MsgUpdateEIP1559FeeParamsResponse")) - } - panic(fmt.Errorf("message initia.move.v1.MsgUpdateEIP1559FeeParamsResponse 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_MsgUpdateEIP1559FeeParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.MsgUpdateEIP1559FeeParamsResponse")) - } - panic(fmt.Errorf("message initia.move.v1.MsgUpdateEIP1559FeeParamsResponse 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_MsgUpdateEIP1559FeeParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.MsgUpdateEIP1559FeeParamsResponse")) - } - panic(fmt.Errorf("message initia.move.v1.MsgUpdateEIP1559FeeParamsResponse 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_MsgUpdateEIP1559FeeParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in initia.move.v1.MsgUpdateEIP1559FeeParamsResponse", 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_MsgUpdateEIP1559FeeParamsResponse) 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_MsgUpdateEIP1559FeeParamsResponse) 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_MsgUpdateEIP1559FeeParamsResponse) 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_MsgUpdateEIP1559FeeParamsResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgUpdateEIP1559FeeParamsResponse) - 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().(*MsgUpdateEIP1559FeeParamsResponse) - 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().(*MsgUpdateEIP1559FeeParamsResponse) - 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: MsgUpdateEIP1559FeeParamsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgUpdateEIP1559FeeParamsResponse: 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, - } -} - // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.0 @@ -16206,81 +15351,6 @@ func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) { return file_initia_move_v1_tx_proto_rawDescGZIP(), []int{25} } -// MsgUpdateEIP1559FeeParams is the Msg/UpdateEIP1559FeeParams request type. -type MsgUpdateEIP1559FeeParams struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // authority is the address that controls the module - // (defaults to x/gov unless overwritten). - Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - // eip1559_feeparams defines the x/move parameters to update. - Eip1559Feeparams *EIP1559FeeParams `protobuf:"bytes,2,opt,name=eip1559_feeparams,json=eip1559Feeparams,proto3" json:"eip1559_feeparams,omitempty"` -} - -func (x *MsgUpdateEIP1559FeeParams) Reset() { - *x = MsgUpdateEIP1559FeeParams{} - if protoimpl.UnsafeEnabled { - mi := &file_initia_move_v1_tx_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgUpdateEIP1559FeeParams) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgUpdateEIP1559FeeParams) ProtoMessage() {} - -// Deprecated: Use MsgUpdateEIP1559FeeParams.ProtoReflect.Descriptor instead. -func (*MsgUpdateEIP1559FeeParams) Descriptor() ([]byte, []int) { - return file_initia_move_v1_tx_proto_rawDescGZIP(), []int{26} -} - -func (x *MsgUpdateEIP1559FeeParams) GetAuthority() string { - if x != nil { - return x.Authority - } - return "" -} - -func (x *MsgUpdateEIP1559FeeParams) GetEip1559Feeparams() *EIP1559FeeParams { - if x != nil { - return x.Eip1559Feeparams - } - return nil -} - -// MsgUpdateEIP1559FeeParamsResponse defines the response structure for executing a -// MsgUpdateEIP1559FeeParams message. -type MsgUpdateEIP1559FeeParamsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *MsgUpdateEIP1559FeeParamsResponse) Reset() { - *x = MsgUpdateEIP1559FeeParamsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_initia_move_v1_tx_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MsgUpdateEIP1559FeeParamsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MsgUpdateEIP1559FeeParamsResponse) ProtoMessage() {} - -// Deprecated: Use MsgUpdateEIP1559FeeParamsResponse.ProtoReflect.Descriptor instead. -func (*MsgUpdateEIP1559FeeParamsResponse) Descriptor() ([]byte, []int) { - return file_initia_move_v1_tx_proto_rawDescGZIP(), []int{27} -} - var File_initia_move_v1_tx_proto protoreflect.FileDescriptor var file_initia_move_v1_tx_proto_rawDesc = []byte{ @@ -16505,97 +15575,73 @@ var file_initia_move_v1_tx_proto_rawDesc = []byte{ 0x8a, 0xe7, 0xb0, 0x2a, 0x14, 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x19, 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xe0, 0x01, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x45, 0x49, 0x50, 0x31, 0x35, 0x35, 0x39, 0x46, 0x65, 0x65, 0x50, 0x61, 0x72, 0x61, - 0x6d, 0x73, 0x12, 0x36, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x18, 0xd2, 0xb4, 0x2d, 0x14, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, - 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x58, 0x0a, 0x11, 0x65, 0x69, - 0x70, 0x31, 0x35, 0x35, 0x39, 0x5f, 0x66, 0x65, 0x65, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, - 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x49, 0x50, 0x31, 0x35, 0x35, 0x39, 0x46, 0x65, - 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, - 0x2a, 0x01, 0x52, 0x10, 0x65, 0x69, 0x70, 0x31, 0x35, 0x35, 0x39, 0x46, 0x65, 0x65, 0x70, 0x61, - 0x72, 0x61, 0x6d, 0x73, 0x3a, 0x31, 0x82, 0xe7, 0xb0, 0x2a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x6f, - 0x72, 0x69, 0x74, 0x79, 0x8a, 0xe7, 0xb0, 0x2a, 0x1e, 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x4d, 0x73, - 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x45, 0x49, 0x50, 0x31, 0x35, 0x35, 0x39, 0x46, 0x65, - 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x23, 0x0a, 0x21, 0x4d, 0x73, 0x67, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x45, 0x49, 0x50, 0x31, 0x35, 0x35, 0x39, 0x46, 0x65, 0x65, 0x50, 0x61, - 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xb6, 0x09, 0x0a, - 0x03, 0x4d, 0x73, 0x67, 0x12, 0x49, 0x0a, 0x07, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x12, - 0x1a, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x4d, 0x73, 0x67, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x1a, 0x22, 0x2e, 0x69, 0x6e, - 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, - 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x49, 0x0a, 0x07, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x12, 0x1a, 0x2e, 0x69, 0x6e, 0x69, - 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x45, - 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x1a, 0x22, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, - 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x45, 0x78, 0x65, 0x63, 0x75, - 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x0b, 0x45, 0x78, - 0x65, 0x63, 0x75, 0x74, 0x65, 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x1e, 0x2e, 0x69, 0x6e, 0x69, 0x74, - 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x45, 0x78, - 0x65, 0x63, 0x75, 0x74, 0x65, 0x4a, 0x53, 0x4f, 0x4e, 0x1a, 0x26, 0x2e, 0x69, 0x6e, 0x69, 0x74, - 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x45, 0x78, - 0x65, 0x63, 0x75, 0x74, 0x65, 0x4a, 0x53, 0x4f, 0x4e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x46, 0x0a, 0x06, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x12, 0x19, 0x2e, 0x69, 0x6e, - 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, - 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x1a, 0x21, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, - 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x63, 0x72, 0x69, 0x70, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x52, 0x0a, 0x0a, 0x53, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x1d, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, - 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x4a, 0x53, 0x4f, 0x4e, 0x1a, 0x25, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, - 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x63, 0x72, 0x69, 0x70, - 0x74, 0x4a, 0x53, 0x4f, 0x4e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x52, 0x0a, - 0x0a, 0x47, 0x6f, 0x76, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x12, 0x1d, 0x2e, 0x69, 0x6e, - 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, - 0x47, 0x6f, 0x76, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x1a, 0x25, 0x2e, 0x69, 0x6e, 0x69, - 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x47, - 0x6f, 0x76, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x52, 0x0a, 0x0a, 0x47, 0x6f, 0x76, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x12, + 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xbe, 0x08, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x49, 0x0a, 0x07, + 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x12, 0x1a, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, + 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x50, 0x75, 0x62, 0x6c, + 0x69, 0x73, 0x68, 0x1a, 0x22, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x49, 0x0a, 0x07, 0x45, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x65, 0x12, 0x1a, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x1a, 0x22, + 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x4d, 0x73, 0x67, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x55, 0x0a, 0x0b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x4a, 0x53, 0x4f, + 0x4e, 0x12, 0x1e, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x4a, 0x53, 0x4f, + 0x4e, 0x1a, 0x26, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x4a, 0x53, 0x4f, + 0x4e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x06, 0x53, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x12, 0x19, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x1a, 0x21, + 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x4d, 0x73, 0x67, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x52, 0x0a, 0x0a, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x1d, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x4d, 0x73, 0x67, 0x47, 0x6f, 0x76, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x1a, 0x25, + 0x2e, 0x4d, 0x73, 0x67, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x4a, 0x53, 0x4f, 0x4e, 0x1a, 0x25, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x4d, 0x73, 0x67, 0x47, 0x6f, 0x76, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5e, 0x0a, 0x0e, 0x47, 0x6f, 0x76, 0x45, 0x78, 0x65, 0x63, - 0x75, 0x74, 0x65, 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x21, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, + 0x4d, 0x73, 0x67, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x4a, 0x53, 0x4f, 0x4e, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x52, 0x0a, 0x0a, 0x47, 0x6f, 0x76, 0x50, 0x75, 0x62, 0x6c, + 0x69, 0x73, 0x68, 0x12, 0x1d, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x47, 0x6f, 0x76, 0x50, 0x75, 0x62, 0x6c, 0x69, + 0x73, 0x68, 0x1a, 0x25, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x47, 0x6f, 0x76, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, + 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x52, 0x0a, 0x0a, 0x47, 0x6f, 0x76, + 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x12, 0x1d, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x47, 0x6f, 0x76, 0x45, - 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x4a, 0x53, 0x4f, 0x4e, 0x1a, 0x29, 0x2e, 0x69, 0x6e, 0x69, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x1a, 0x25, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, + 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x47, 0x6f, 0x76, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5e, 0x0a, + 0x0e, 0x47, 0x6f, 0x76, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x4a, 0x53, 0x4f, 0x4e, 0x12, + 0x21, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, + 0x2e, 0x4d, 0x73, 0x67, 0x47, 0x6f, 0x76, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x4a, 0x53, + 0x4f, 0x4e, 0x1a, 0x29, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x47, 0x6f, 0x76, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x65, 0x4a, 0x53, 0x4f, 0x4e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a, + 0x09, 0x47, 0x6f, 0x76, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x12, 0x1c, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x47, - 0x6f, 0x76, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x4a, 0x53, 0x4f, 0x4e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a, 0x09, 0x47, 0x6f, 0x76, 0x53, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x12, 0x1c, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, - 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x47, 0x6f, 0x76, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, - 0x1a, 0x24, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x47, 0x6f, 0x76, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5b, 0x0a, 0x0d, 0x47, 0x6f, 0x76, 0x53, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x20, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, - 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x47, 0x6f, 0x76, 0x53, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x4a, 0x53, 0x4f, 0x4e, 0x1a, 0x28, 0x2e, 0x69, 0x6e, 0x69, 0x74, - 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x47, 0x6f, - 0x76, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x4a, 0x53, 0x4f, 0x4e, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a, 0x09, 0x57, 0x68, 0x69, 0x74, 0x65, 0x6c, 0x69, 0x73, 0x74, - 0x12, 0x1c, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x57, 0x68, 0x69, 0x74, 0x65, 0x6c, 0x69, 0x73, 0x74, 0x1a, 0x24, - 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x4d, 0x73, 0x67, 0x57, 0x68, 0x69, 0x74, 0x65, 0x6c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x69, 0x73, 0x74, 0x12, 0x19, - 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, 0x69, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x69, 0x6e, 0x69, 0x74, - 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x65, - 0x6c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x58, 0x0a, 0x0c, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x1f, 0x2e, 0x69, - 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, - 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x27, 0x2e, - 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, - 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x76, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x45, 0x49, 0x50, 0x31, 0x35, 0x35, 0x39, 0x46, 0x65, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, - 0x12, 0x29, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x45, 0x49, 0x50, 0x31, 0x35, - 0x35, 0x39, 0x46, 0x65, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x31, 0x2e, 0x69, 0x6e, - 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x45, 0x49, 0x50, 0x31, 0x35, 0x35, 0x39, 0x46, 0x65, 0x65, + 0x6f, 0x76, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x1a, 0x24, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, + 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x47, 0x6f, 0x76, + 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5b, + 0x0a, 0x0d, 0x47, 0x6f, 0x76, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x4a, 0x53, 0x4f, 0x4e, 0x12, + 0x20, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, + 0x2e, 0x4d, 0x73, 0x67, 0x47, 0x6f, 0x76, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x4a, 0x53, 0x4f, + 0x4e, 0x1a, 0x28, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x47, 0x6f, 0x76, 0x53, 0x63, 0x72, 0x69, 0x70, 0x74, 0x4a, + 0x53, 0x4f, 0x4e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a, 0x09, 0x57, + 0x68, 0x69, 0x74, 0x65, 0x6c, 0x69, 0x73, 0x74, 0x12, 0x1c, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, + 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x57, 0x68, 0x69, + 0x74, 0x65, 0x6c, 0x69, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, + 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x57, 0x68, 0x69, 0x74, 0x65, + 0x6c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x06, + 0x44, 0x65, 0x6c, 0x69, 0x73, 0x74, 0x12, 0x19, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, + 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, 0x69, 0x73, + 0x74, 0x1a, 0x21, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x58, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, + 0x72, 0x61, 0x6d, 0x73, 0x12, 0x1f, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, + 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, + 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x27, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, + 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0xb4, 0x01, 0xc8, 0xe1, 0x1e, 0x00, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x2e, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x76, 0x31, @@ -16624,78 +15670,72 @@ func file_initia_move_v1_tx_proto_rawDescGZIP() []byte { return file_initia_move_v1_tx_proto_rawDescData } -var file_initia_move_v1_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 28) +var file_initia_move_v1_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 26) var file_initia_move_v1_tx_proto_goTypes = []interface{}{ - (*MsgPublish)(nil), // 0: initia.move.v1.MsgPublish - (*MsgPublishResponse)(nil), // 1: initia.move.v1.MsgPublishResponse - (*MsgExecute)(nil), // 2: initia.move.v1.MsgExecute - (*MsgExecuteResponse)(nil), // 3: initia.move.v1.MsgExecuteResponse - (*MsgExecuteJSON)(nil), // 4: initia.move.v1.MsgExecuteJSON - (*MsgExecuteJSONResponse)(nil), // 5: initia.move.v1.MsgExecuteJSONResponse - (*MsgScript)(nil), // 6: initia.move.v1.MsgScript - (*MsgScriptResponse)(nil), // 7: initia.move.v1.MsgScriptResponse - (*MsgScriptJSON)(nil), // 8: initia.move.v1.MsgScriptJSON - (*MsgScriptJSONResponse)(nil), // 9: initia.move.v1.MsgScriptJSONResponse - (*MsgGovPublish)(nil), // 10: initia.move.v1.MsgGovPublish - (*MsgGovPublishResponse)(nil), // 11: initia.move.v1.MsgGovPublishResponse - (*MsgGovExecute)(nil), // 12: initia.move.v1.MsgGovExecute - (*MsgGovExecuteResponse)(nil), // 13: initia.move.v1.MsgGovExecuteResponse - (*MsgGovExecuteJSON)(nil), // 14: initia.move.v1.MsgGovExecuteJSON - (*MsgGovExecuteJSONResponse)(nil), // 15: initia.move.v1.MsgGovExecuteJSONResponse - (*MsgGovScript)(nil), // 16: initia.move.v1.MsgGovScript - (*MsgGovScriptResponse)(nil), // 17: initia.move.v1.MsgGovScriptResponse - (*MsgGovScriptJSON)(nil), // 18: initia.move.v1.MsgGovScriptJSON - (*MsgGovScriptJSONResponse)(nil), // 19: initia.move.v1.MsgGovScriptJSONResponse - (*MsgWhitelist)(nil), // 20: initia.move.v1.MsgWhitelist - (*MsgWhitelistResponse)(nil), // 21: initia.move.v1.MsgWhitelistResponse - (*MsgDelist)(nil), // 22: initia.move.v1.MsgDelist - (*MsgDelistResponse)(nil), // 23: initia.move.v1.MsgDelistResponse - (*MsgUpdateParams)(nil), // 24: initia.move.v1.MsgUpdateParams - (*MsgUpdateParamsResponse)(nil), // 25: initia.move.v1.MsgUpdateParamsResponse - (*MsgUpdateEIP1559FeeParams)(nil), // 26: initia.move.v1.MsgUpdateEIP1559FeeParams - (*MsgUpdateEIP1559FeeParamsResponse)(nil), // 27: initia.move.v1.MsgUpdateEIP1559FeeParamsResponse - (UpgradePolicy)(0), // 28: initia.move.v1.UpgradePolicy - (*Params)(nil), // 29: initia.move.v1.Params - (*EIP1559FeeParams)(nil), // 30: initia.move.v1.EIP1559FeeParams + (*MsgPublish)(nil), // 0: initia.move.v1.MsgPublish + (*MsgPublishResponse)(nil), // 1: initia.move.v1.MsgPublishResponse + (*MsgExecute)(nil), // 2: initia.move.v1.MsgExecute + (*MsgExecuteResponse)(nil), // 3: initia.move.v1.MsgExecuteResponse + (*MsgExecuteJSON)(nil), // 4: initia.move.v1.MsgExecuteJSON + (*MsgExecuteJSONResponse)(nil), // 5: initia.move.v1.MsgExecuteJSONResponse + (*MsgScript)(nil), // 6: initia.move.v1.MsgScript + (*MsgScriptResponse)(nil), // 7: initia.move.v1.MsgScriptResponse + (*MsgScriptJSON)(nil), // 8: initia.move.v1.MsgScriptJSON + (*MsgScriptJSONResponse)(nil), // 9: initia.move.v1.MsgScriptJSONResponse + (*MsgGovPublish)(nil), // 10: initia.move.v1.MsgGovPublish + (*MsgGovPublishResponse)(nil), // 11: initia.move.v1.MsgGovPublishResponse + (*MsgGovExecute)(nil), // 12: initia.move.v1.MsgGovExecute + (*MsgGovExecuteResponse)(nil), // 13: initia.move.v1.MsgGovExecuteResponse + (*MsgGovExecuteJSON)(nil), // 14: initia.move.v1.MsgGovExecuteJSON + (*MsgGovExecuteJSONResponse)(nil), // 15: initia.move.v1.MsgGovExecuteJSONResponse + (*MsgGovScript)(nil), // 16: initia.move.v1.MsgGovScript + (*MsgGovScriptResponse)(nil), // 17: initia.move.v1.MsgGovScriptResponse + (*MsgGovScriptJSON)(nil), // 18: initia.move.v1.MsgGovScriptJSON + (*MsgGovScriptJSONResponse)(nil), // 19: initia.move.v1.MsgGovScriptJSONResponse + (*MsgWhitelist)(nil), // 20: initia.move.v1.MsgWhitelist + (*MsgWhitelistResponse)(nil), // 21: initia.move.v1.MsgWhitelistResponse + (*MsgDelist)(nil), // 22: initia.move.v1.MsgDelist + (*MsgDelistResponse)(nil), // 23: initia.move.v1.MsgDelistResponse + (*MsgUpdateParams)(nil), // 24: initia.move.v1.MsgUpdateParams + (*MsgUpdateParamsResponse)(nil), // 25: initia.move.v1.MsgUpdateParamsResponse + (UpgradePolicy)(0), // 26: initia.move.v1.UpgradePolicy + (*Params)(nil), // 27: initia.move.v1.Params } var file_initia_move_v1_tx_proto_depIdxs = []int32{ - 28, // 0: initia.move.v1.MsgPublish.upgrade_policy:type_name -> initia.move.v1.UpgradePolicy - 28, // 1: initia.move.v1.MsgGovPublish.upgrade_policy:type_name -> initia.move.v1.UpgradePolicy - 29, // 2: initia.move.v1.MsgUpdateParams.params:type_name -> initia.move.v1.Params - 30, // 3: initia.move.v1.MsgUpdateEIP1559FeeParams.eip1559_feeparams:type_name -> initia.move.v1.EIP1559FeeParams - 0, // 4: initia.move.v1.Msg.Publish:input_type -> initia.move.v1.MsgPublish - 2, // 5: initia.move.v1.Msg.Execute:input_type -> initia.move.v1.MsgExecute - 4, // 6: initia.move.v1.Msg.ExecuteJSON:input_type -> initia.move.v1.MsgExecuteJSON - 6, // 7: initia.move.v1.Msg.Script:input_type -> initia.move.v1.MsgScript - 8, // 8: initia.move.v1.Msg.ScriptJSON:input_type -> initia.move.v1.MsgScriptJSON - 10, // 9: initia.move.v1.Msg.GovPublish:input_type -> initia.move.v1.MsgGovPublish - 12, // 10: initia.move.v1.Msg.GovExecute:input_type -> initia.move.v1.MsgGovExecute - 14, // 11: initia.move.v1.Msg.GovExecuteJSON:input_type -> initia.move.v1.MsgGovExecuteJSON - 16, // 12: initia.move.v1.Msg.GovScript:input_type -> initia.move.v1.MsgGovScript - 18, // 13: initia.move.v1.Msg.GovScriptJSON:input_type -> initia.move.v1.MsgGovScriptJSON - 20, // 14: initia.move.v1.Msg.Whitelist:input_type -> initia.move.v1.MsgWhitelist - 22, // 15: initia.move.v1.Msg.Delist:input_type -> initia.move.v1.MsgDelist - 24, // 16: initia.move.v1.Msg.UpdateParams:input_type -> initia.move.v1.MsgUpdateParams - 26, // 17: initia.move.v1.Msg.UpdateEIP1559FeeParams:input_type -> initia.move.v1.MsgUpdateEIP1559FeeParams - 1, // 18: initia.move.v1.Msg.Publish:output_type -> initia.move.v1.MsgPublishResponse - 3, // 19: initia.move.v1.Msg.Execute:output_type -> initia.move.v1.MsgExecuteResponse - 5, // 20: initia.move.v1.Msg.ExecuteJSON:output_type -> initia.move.v1.MsgExecuteJSONResponse - 7, // 21: initia.move.v1.Msg.Script:output_type -> initia.move.v1.MsgScriptResponse - 9, // 22: initia.move.v1.Msg.ScriptJSON:output_type -> initia.move.v1.MsgScriptJSONResponse - 11, // 23: initia.move.v1.Msg.GovPublish:output_type -> initia.move.v1.MsgGovPublishResponse - 13, // 24: initia.move.v1.Msg.GovExecute:output_type -> initia.move.v1.MsgGovExecuteResponse - 15, // 25: initia.move.v1.Msg.GovExecuteJSON:output_type -> initia.move.v1.MsgGovExecuteJSONResponse - 17, // 26: initia.move.v1.Msg.GovScript:output_type -> initia.move.v1.MsgGovScriptResponse - 19, // 27: initia.move.v1.Msg.GovScriptJSON:output_type -> initia.move.v1.MsgGovScriptJSONResponse - 21, // 28: initia.move.v1.Msg.Whitelist:output_type -> initia.move.v1.MsgWhitelistResponse - 23, // 29: initia.move.v1.Msg.Delist:output_type -> initia.move.v1.MsgDelistResponse - 25, // 30: initia.move.v1.Msg.UpdateParams:output_type -> initia.move.v1.MsgUpdateParamsResponse - 27, // 31: initia.move.v1.Msg.UpdateEIP1559FeeParams:output_type -> initia.move.v1.MsgUpdateEIP1559FeeParamsResponse - 18, // [18:32] is the sub-list for method output_type - 4, // [4:18] is the sub-list for method input_type - 4, // [4:4] is the sub-list for extension type_name - 4, // [4:4] is the sub-list for extension extendee - 0, // [0:4] is the sub-list for field type_name + 26, // 0: initia.move.v1.MsgPublish.upgrade_policy:type_name -> initia.move.v1.UpgradePolicy + 26, // 1: initia.move.v1.MsgGovPublish.upgrade_policy:type_name -> initia.move.v1.UpgradePolicy + 27, // 2: initia.move.v1.MsgUpdateParams.params:type_name -> initia.move.v1.Params + 0, // 3: initia.move.v1.Msg.Publish:input_type -> initia.move.v1.MsgPublish + 2, // 4: initia.move.v1.Msg.Execute:input_type -> initia.move.v1.MsgExecute + 4, // 5: initia.move.v1.Msg.ExecuteJSON:input_type -> initia.move.v1.MsgExecuteJSON + 6, // 6: initia.move.v1.Msg.Script:input_type -> initia.move.v1.MsgScript + 8, // 7: initia.move.v1.Msg.ScriptJSON:input_type -> initia.move.v1.MsgScriptJSON + 10, // 8: initia.move.v1.Msg.GovPublish:input_type -> initia.move.v1.MsgGovPublish + 12, // 9: initia.move.v1.Msg.GovExecute:input_type -> initia.move.v1.MsgGovExecute + 14, // 10: initia.move.v1.Msg.GovExecuteJSON:input_type -> initia.move.v1.MsgGovExecuteJSON + 16, // 11: initia.move.v1.Msg.GovScript:input_type -> initia.move.v1.MsgGovScript + 18, // 12: initia.move.v1.Msg.GovScriptJSON:input_type -> initia.move.v1.MsgGovScriptJSON + 20, // 13: initia.move.v1.Msg.Whitelist:input_type -> initia.move.v1.MsgWhitelist + 22, // 14: initia.move.v1.Msg.Delist:input_type -> initia.move.v1.MsgDelist + 24, // 15: initia.move.v1.Msg.UpdateParams:input_type -> initia.move.v1.MsgUpdateParams + 1, // 16: initia.move.v1.Msg.Publish:output_type -> initia.move.v1.MsgPublishResponse + 3, // 17: initia.move.v1.Msg.Execute:output_type -> initia.move.v1.MsgExecuteResponse + 5, // 18: initia.move.v1.Msg.ExecuteJSON:output_type -> initia.move.v1.MsgExecuteJSONResponse + 7, // 19: initia.move.v1.Msg.Script:output_type -> initia.move.v1.MsgScriptResponse + 9, // 20: initia.move.v1.Msg.ScriptJSON:output_type -> initia.move.v1.MsgScriptJSONResponse + 11, // 21: initia.move.v1.Msg.GovPublish:output_type -> initia.move.v1.MsgGovPublishResponse + 13, // 22: initia.move.v1.Msg.GovExecute:output_type -> initia.move.v1.MsgGovExecuteResponse + 15, // 23: initia.move.v1.Msg.GovExecuteJSON:output_type -> initia.move.v1.MsgGovExecuteJSONResponse + 17, // 24: initia.move.v1.Msg.GovScript:output_type -> initia.move.v1.MsgGovScriptResponse + 19, // 25: initia.move.v1.Msg.GovScriptJSON:output_type -> initia.move.v1.MsgGovScriptJSONResponse + 21, // 26: initia.move.v1.Msg.Whitelist:output_type -> initia.move.v1.MsgWhitelistResponse + 23, // 27: initia.move.v1.Msg.Delist:output_type -> initia.move.v1.MsgDelistResponse + 25, // 28: initia.move.v1.Msg.UpdateParams:output_type -> initia.move.v1.MsgUpdateParamsResponse + 16, // [16:29] is the sub-list for method output_type + 3, // [3:16] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name } func init() { file_initia_move_v1_tx_proto_init() } @@ -17017,30 +16057,6 @@ func file_initia_move_v1_tx_proto_init() { return nil } } - file_initia_move_v1_tx_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUpdateEIP1559FeeParams); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_initia_move_v1_tx_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgUpdateEIP1559FeeParamsResponse); 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{ @@ -17048,7 +16064,7 @@ func file_initia_move_v1_tx_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_initia_move_v1_tx_proto_rawDesc, NumEnums: 0, - NumMessages: 28, + NumMessages: 26, NumExtensions: 0, NumServices: 1, }, diff --git a/api/initia/move/v1/tx_grpc.pb.go b/api/initia/move/v1/tx_grpc.pb.go index 78a7e115a..b4202523a 100644 --- a/api/initia/move/v1/tx_grpc.pb.go +++ b/api/initia/move/v1/tx_grpc.pb.go @@ -19,20 +19,19 @@ import ( const _ = grpc.SupportPackageIsVersion7 const ( - Msg_Publish_FullMethodName = "/initia.move.v1.Msg/Publish" - Msg_Execute_FullMethodName = "/initia.move.v1.Msg/Execute" - Msg_ExecuteJSON_FullMethodName = "/initia.move.v1.Msg/ExecuteJSON" - Msg_Script_FullMethodName = "/initia.move.v1.Msg/Script" - Msg_ScriptJSON_FullMethodName = "/initia.move.v1.Msg/ScriptJSON" - Msg_GovPublish_FullMethodName = "/initia.move.v1.Msg/GovPublish" - Msg_GovExecute_FullMethodName = "/initia.move.v1.Msg/GovExecute" - Msg_GovExecuteJSON_FullMethodName = "/initia.move.v1.Msg/GovExecuteJSON" - Msg_GovScript_FullMethodName = "/initia.move.v1.Msg/GovScript" - Msg_GovScriptJSON_FullMethodName = "/initia.move.v1.Msg/GovScriptJSON" - Msg_Whitelist_FullMethodName = "/initia.move.v1.Msg/Whitelist" - Msg_Delist_FullMethodName = "/initia.move.v1.Msg/Delist" - Msg_UpdateParams_FullMethodName = "/initia.move.v1.Msg/UpdateParams" - Msg_UpdateEIP1559FeeParams_FullMethodName = "/initia.move.v1.Msg/UpdateEIP1559FeeParams" + Msg_Publish_FullMethodName = "/initia.move.v1.Msg/Publish" + Msg_Execute_FullMethodName = "/initia.move.v1.Msg/Execute" + Msg_ExecuteJSON_FullMethodName = "/initia.move.v1.Msg/ExecuteJSON" + Msg_Script_FullMethodName = "/initia.move.v1.Msg/Script" + Msg_ScriptJSON_FullMethodName = "/initia.move.v1.Msg/ScriptJSON" + Msg_GovPublish_FullMethodName = "/initia.move.v1.Msg/GovPublish" + Msg_GovExecute_FullMethodName = "/initia.move.v1.Msg/GovExecute" + Msg_GovExecuteJSON_FullMethodName = "/initia.move.v1.Msg/GovExecuteJSON" + Msg_GovScript_FullMethodName = "/initia.move.v1.Msg/GovScript" + Msg_GovScriptJSON_FullMethodName = "/initia.move.v1.Msg/GovScriptJSON" + Msg_Whitelist_FullMethodName = "/initia.move.v1.Msg/Whitelist" + Msg_Delist_FullMethodName = "/initia.move.v1.Msg/Delist" + Msg_UpdateParams_FullMethodName = "/initia.move.v1.Msg/UpdateParams" ) // MsgClient is the client API for Msg service. @@ -73,9 +72,6 @@ type MsgClient interface { // UpdateParams defines an operation for updating the x/move module // parameters. UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) - // UpdateEIP1559FeeParams defines an operation for updating the x/move module - // eip1559 fee params. - UpdateEIP1559FeeParams(ctx context.Context, in *MsgUpdateEIP1559FeeParams, opts ...grpc.CallOption) (*MsgUpdateEIP1559FeeParamsResponse, error) } type msgClient struct { @@ -203,15 +199,6 @@ func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts return out, nil } -func (c *msgClient) UpdateEIP1559FeeParams(ctx context.Context, in *MsgUpdateEIP1559FeeParams, opts ...grpc.CallOption) (*MsgUpdateEIP1559FeeParamsResponse, error) { - out := new(MsgUpdateEIP1559FeeParamsResponse) - err := c.cc.Invoke(ctx, Msg_UpdateEIP1559FeeParams_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - // MsgServer is the server API for Msg service. // All implementations must embed UnimplementedMsgServer // for forward compatibility @@ -250,9 +237,6 @@ type MsgServer interface { // UpdateParams defines an operation for updating the x/move module // parameters. UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) - // UpdateEIP1559FeeParams defines an operation for updating the x/move module - // eip1559 fee params. - UpdateEIP1559FeeParams(context.Context, *MsgUpdateEIP1559FeeParams) (*MsgUpdateEIP1559FeeParamsResponse, error) mustEmbedUnimplementedMsgServer() } @@ -299,9 +283,6 @@ func (UnimplementedMsgServer) Delist(context.Context, *MsgDelist) (*MsgDelistRes func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented") } -func (UnimplementedMsgServer) UpdateEIP1559FeeParams(context.Context, *MsgUpdateEIP1559FeeParams) (*MsgUpdateEIP1559FeeParamsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateEIP1559FeeParams not implemented") -} func (UnimplementedMsgServer) mustEmbedUnimplementedMsgServer() {} // UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. @@ -549,24 +530,6 @@ func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(in return interceptor(ctx, in, info, handler) } -func _Msg_UpdateEIP1559FeeParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgUpdateEIP1559FeeParams) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).UpdateEIP1559FeeParams(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_UpdateEIP1559FeeParams_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).UpdateEIP1559FeeParams(ctx, req.(*MsgUpdateEIP1559FeeParams)) - } - return interceptor(ctx, in, info, handler) -} - // Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) @@ -626,10 +589,6 @@ var Msg_ServiceDesc = grpc.ServiceDesc{ MethodName: "UpdateParams", Handler: _Msg_UpdateParams_Handler, }, - { - MethodName: "UpdateEIP1559FeeParams", - Handler: _Msg_UpdateEIP1559FeeParams_Handler, - }, }, Streams: []grpc.StreamDesc{}, Metadata: "initia/move/v1/tx.proto", diff --git a/api/initia/move/v1/types.pulsar.go b/api/initia/move/v1/types.pulsar.go index 9357cb13f..7894f876a 100644 --- a/api/initia/move/v1/types.pulsar.go +++ b/api/initia/move/v1/types.pulsar.go @@ -14,56 +14,55 @@ import ( sync "sync" ) -var _ protoreflect.List = (*_Params_5_list)(nil) +var _ protoreflect.List = (*_Params_4_list)(nil) -type _Params_5_list struct { +type _Params_4_list struct { list *[]string } -func (x *_Params_5_list) Len() int { +func (x *_Params_4_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_Params_5_list) Get(i int) protoreflect.Value { +func (x *_Params_4_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfString((*x.list)[i]) } -func (x *_Params_5_list) Set(i int, value protoreflect.Value) { +func (x *_Params_4_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.String() concreteValue := valueUnwrapped (*x.list)[i] = concreteValue } -func (x *_Params_5_list) Append(value protoreflect.Value) { +func (x *_Params_4_list) Append(value protoreflect.Value) { valueUnwrapped := value.String() concreteValue := valueUnwrapped *x.list = append(*x.list, concreteValue) } -func (x *_Params_5_list) AppendMutable() protoreflect.Value { +func (x *_Params_4_list) AppendMutable() protoreflect.Value { panic(fmt.Errorf("AppendMutable can not be called on message Params at list field AllowedPublishers as it is not of Message kind")) } -func (x *_Params_5_list) Truncate(n int) { +func (x *_Params_4_list) Truncate(n int) { *x.list = (*x.list)[:n] } -func (x *_Params_5_list) NewElement() protoreflect.Value { +func (x *_Params_4_list) NewElement() protoreflect.Value { v := "" return protoreflect.ValueOfString(v) } -func (x *_Params_5_list) IsValid() bool { +func (x *_Params_4_list) IsValid() bool { return x.list != nil } var ( md_Params protoreflect.MessageDescriptor fd_Params_base_denom protoreflect.FieldDescriptor - fd_Params_base_min_gas_price protoreflect.FieldDescriptor fd_Params_contract_shared_revenue_ratio protoreflect.FieldDescriptor fd_Params_script_enabled protoreflect.FieldDescriptor fd_Params_allowed_publishers protoreflect.FieldDescriptor @@ -73,7 +72,6 @@ func init() { file_initia_move_v1_types_proto_init() md_Params = File_initia_move_v1_types_proto.Messages().ByName("Params") 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_contract_shared_revenue_ratio = md_Params.Fields().ByName("contract_shared_revenue_ratio") fd_Params_script_enabled = md_Params.Fields().ByName("script_enabled") fd_Params_allowed_publishers = md_Params.Fields().ByName("allowed_publishers") @@ -150,12 +148,6 @@ func (x *fastReflection_Params) Range(f func(protoreflect.FieldDescriptor, proto return } } - if x.BaseMinGasPrice != "" { - value := protoreflect.ValueOfString(x.BaseMinGasPrice) - if !f(fd_Params_base_min_gas_price, value) { - return - } - } if x.ContractSharedRevenueRatio != "" { value := protoreflect.ValueOfString(x.ContractSharedRevenueRatio) if !f(fd_Params_contract_shared_revenue_ratio, value) { @@ -169,7 +161,7 @@ func (x *fastReflection_Params) Range(f func(protoreflect.FieldDescriptor, proto } } if len(x.AllowedPublishers) != 0 { - value := protoreflect.ValueOfList(&_Params_5_list{list: &x.AllowedPublishers}) + value := protoreflect.ValueOfList(&_Params_4_list{list: &x.AllowedPublishers}) if !f(fd_Params_allowed_publishers, value) { return } @@ -191,8 +183,6 @@ func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { case "initia.move.v1.Params.base_denom": return x.BaseDenom != "" - case "initia.move.v1.Params.base_min_gas_price": - return x.BaseMinGasPrice != "" case "initia.move.v1.Params.contract_shared_revenue_ratio": return x.ContractSharedRevenueRatio != "" case "initia.move.v1.Params.script_enabled": @@ -217,8 +207,6 @@ func (x *fastReflection_Params) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "initia.move.v1.Params.base_denom": x.BaseDenom = "" - case "initia.move.v1.Params.base_min_gas_price": - x.BaseMinGasPrice = "" case "initia.move.v1.Params.contract_shared_revenue_ratio": x.ContractSharedRevenueRatio = "" case "initia.move.v1.Params.script_enabled": @@ -244,9 +232,6 @@ func (x *fastReflection_Params) Get(descriptor protoreflect.FieldDescriptor) pro case "initia.move.v1.Params.base_denom": value := x.BaseDenom return protoreflect.ValueOfString(value) - case "initia.move.v1.Params.base_min_gas_price": - value := x.BaseMinGasPrice - return protoreflect.ValueOfString(value) case "initia.move.v1.Params.contract_shared_revenue_ratio": value := x.ContractSharedRevenueRatio return protoreflect.ValueOfString(value) @@ -255,9 +240,9 @@ func (x *fastReflection_Params) Get(descriptor protoreflect.FieldDescriptor) pro return protoreflect.ValueOfBool(value) case "initia.move.v1.Params.allowed_publishers": if len(x.AllowedPublishers) == 0 { - return protoreflect.ValueOfList(&_Params_5_list{}) + return protoreflect.ValueOfList(&_Params_4_list{}) } - listValue := &_Params_5_list{list: &x.AllowedPublishers} + listValue := &_Params_4_list{list: &x.AllowedPublishers} return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { @@ -281,15 +266,13 @@ func (x *fastReflection_Params) Set(fd protoreflect.FieldDescriptor, value proto switch fd.FullName() { case "initia.move.v1.Params.base_denom": x.BaseDenom = value.Interface().(string) - case "initia.move.v1.Params.base_min_gas_price": - x.BaseMinGasPrice = value.Interface().(string) case "initia.move.v1.Params.contract_shared_revenue_ratio": x.ContractSharedRevenueRatio = value.Interface().(string) case "initia.move.v1.Params.script_enabled": x.ScriptEnabled = value.Bool() case "initia.move.v1.Params.allowed_publishers": lv := value.List() - clv := lv.(*_Params_5_list) + clv := lv.(*_Params_4_list) x.AllowedPublishers = *clv.list default: if fd.IsExtension() { @@ -315,12 +298,10 @@ func (x *fastReflection_Params) Mutable(fd protoreflect.FieldDescriptor) protore if x.AllowedPublishers == nil { x.AllowedPublishers = []string{} } - value := &_Params_5_list{list: &x.AllowedPublishers} + value := &_Params_4_list{list: &x.AllowedPublishers} return protoreflect.ValueOfList(value) 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": - panic(fmt.Errorf("field base_min_gas_price of message initia.move.v1.Params is not mutable")) case "initia.move.v1.Params.contract_shared_revenue_ratio": panic(fmt.Errorf("field contract_shared_revenue_ratio of message initia.move.v1.Params is not mutable")) case "initia.move.v1.Params.script_enabled": @@ -340,15 +321,13 @@ func (x *fastReflection_Params) NewField(fd protoreflect.FieldDescriptor) protor switch fd.FullName() { case "initia.move.v1.Params.base_denom": return protoreflect.ValueOfString("") - case "initia.move.v1.Params.base_min_gas_price": - return protoreflect.ValueOfString("") case "initia.move.v1.Params.contract_shared_revenue_ratio": return protoreflect.ValueOfString("") case "initia.move.v1.Params.script_enabled": return protoreflect.ValueOfBool(false) case "initia.move.v1.Params.allowed_publishers": list := []string{} - return protoreflect.ValueOfList(&_Params_5_list{list: &list}) + return protoreflect.ValueOfList(&_Params_4_list{list: &list}) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.Params")) @@ -422,10 +401,6 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.BaseMinGasPrice) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } l = len(x.ContractSharedRevenueRatio) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) @@ -474,7 +449,7 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], x.AllowedPublishers[iNdEx]) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AllowedPublishers[iNdEx]))) i-- - dAtA[i] = 0x2a + dAtA[i] = 0x22 } } if x.ScriptEnabled { @@ -485,20 +460,13 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { dAtA[i] = 0 } i-- - dAtA[i] = 0x20 + dAtA[i] = 0x18 } if len(x.ContractSharedRevenueRatio) > 0 { i -= len(x.ContractSharedRevenueRatio) copy(dAtA[i:], x.ContractSharedRevenueRatio) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ContractSharedRevenueRatio))) i-- - 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] = 0x12 } if len(x.BaseDenom) > 0 { @@ -590,38 +558,6 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { x.BaseDenom = 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 BaseMinGasPrice", 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.BaseMinGasPrice = 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 ContractSharedRevenueRatio", wireType) } @@ -653,7 +589,7 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { } x.ContractSharedRevenueRatio = 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 ScriptEnabled", wireType) } @@ -673,7 +609,7 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { } } x.ScriptEnabled = 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 AllowedPublishers", wireType) } @@ -743,7 +679,6 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { var ( md_RawParams protoreflect.MessageDescriptor fd_RawParams_base_denom protoreflect.FieldDescriptor - fd_RawParams_base_min_gas_price protoreflect.FieldDescriptor fd_RawParams_contract_shared_revenue_ratio protoreflect.FieldDescriptor fd_RawParams_script_enabled protoreflect.FieldDescriptor ) @@ -752,7 +687,6 @@ func init() { file_initia_move_v1_types_proto_init() md_RawParams = File_initia_move_v1_types_proto.Messages().ByName("RawParams") 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") fd_RawParams_script_enabled = md_RawParams.Fields().ByName("script_enabled") } @@ -828,12 +762,6 @@ func (x *fastReflection_RawParams) Range(f func(protoreflect.FieldDescriptor, pr return } } - if x.BaseMinGasPrice != "" { - value := protoreflect.ValueOfString(x.BaseMinGasPrice) - if !f(fd_RawParams_base_min_gas_price, value) { - return - } - } if x.ContractSharedRevenueRatio != "" { value := protoreflect.ValueOfString(x.ContractSharedRevenueRatio) if !f(fd_RawParams_contract_shared_revenue_ratio, value) { @@ -863,8 +791,6 @@ func (x *fastReflection_RawParams) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { case "initia.move.v1.RawParams.base_denom": return x.BaseDenom != "" - case "initia.move.v1.RawParams.base_min_gas_price": - return x.BaseMinGasPrice != "" case "initia.move.v1.RawParams.contract_shared_revenue_ratio": return x.ContractSharedRevenueRatio != "" case "initia.move.v1.RawParams.script_enabled": @@ -887,8 +813,6 @@ func (x *fastReflection_RawParams) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "initia.move.v1.RawParams.base_denom": x.BaseDenom = "" - case "initia.move.v1.RawParams.base_min_gas_price": - x.BaseMinGasPrice = "" case "initia.move.v1.RawParams.contract_shared_revenue_ratio": x.ContractSharedRevenueRatio = "" case "initia.move.v1.RawParams.script_enabled": @@ -912,9 +836,6 @@ func (x *fastReflection_RawParams) Get(descriptor protoreflect.FieldDescriptor) case "initia.move.v1.RawParams.base_denom": value := x.BaseDenom return protoreflect.ValueOfString(value) - case "initia.move.v1.RawParams.base_min_gas_price": - value := x.BaseMinGasPrice - return protoreflect.ValueOfString(value) case "initia.move.v1.RawParams.contract_shared_revenue_ratio": value := x.ContractSharedRevenueRatio return protoreflect.ValueOfString(value) @@ -943,8 +864,6 @@ func (x *fastReflection_RawParams) Set(fd protoreflect.FieldDescriptor, value pr switch fd.FullName() { case "initia.move.v1.RawParams.base_denom": x.BaseDenom = value.Interface().(string) - case "initia.move.v1.RawParams.base_min_gas_price": - x.BaseMinGasPrice = value.Interface().(string) case "initia.move.v1.RawParams.contract_shared_revenue_ratio": x.ContractSharedRevenueRatio = value.Interface().(string) case "initia.move.v1.RawParams.script_enabled": @@ -971,8 +890,6 @@ func (x *fastReflection_RawParams) Mutable(fd protoreflect.FieldDescriptor) prot switch fd.FullName() { 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": - panic(fmt.Errorf("field base_min_gas_price of message initia.move.v1.RawParams is not mutable")) case "initia.move.v1.RawParams.contract_shared_revenue_ratio": panic(fmt.Errorf("field contract_shared_revenue_ratio of message initia.move.v1.RawParams is not mutable")) case "initia.move.v1.RawParams.script_enabled": @@ -992,8 +909,6 @@ func (x *fastReflection_RawParams) NewField(fd protoreflect.FieldDescriptor) pro switch fd.FullName() { case "initia.move.v1.RawParams.base_denom": return protoreflect.ValueOfString("") - case "initia.move.v1.RawParams.base_min_gas_price": - return protoreflect.ValueOfString("") case "initia.move.v1.RawParams.contract_shared_revenue_ratio": return protoreflect.ValueOfString("") case "initia.move.v1.RawParams.script_enabled": @@ -1071,10 +986,6 @@ func (x *fastReflection_RawParams) ProtoMethods() *protoiface.Methods { if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.BaseMinGasPrice) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } l = len(x.ContractSharedRevenueRatio) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) @@ -1119,20 +1030,13 @@ func (x *fastReflection_RawParams) ProtoMethods() *protoiface.Methods { dAtA[i] = 0 } i-- - dAtA[i] = 0x20 + dAtA[i] = 0x18 } if len(x.ContractSharedRevenueRatio) > 0 { i -= len(x.ContractSharedRevenueRatio) copy(dAtA[i:], x.ContractSharedRevenueRatio) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ContractSharedRevenueRatio))) i-- - 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] = 0x12 } if len(x.BaseDenom) > 0 { @@ -1224,38 +1128,6 @@ func (x *fastReflection_RawParams) ProtoMethods() *protoiface.Methods { x.BaseDenom = 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 BaseMinGasPrice", 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.BaseMinGasPrice = 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 ContractSharedRevenueRatio", wireType) } @@ -1287,7 +1159,7 @@ func (x *fastReflection_RawParams) ProtoMethods() *protoiface.Methods { } x.ContractSharedRevenueRatio = 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 ScriptEnabled", wireType) } @@ -5892,748 +5764,128 @@ func (x *fastReflection_ExecuteAuthorizationItem) ProtoMethods() *protoiface.Met } } -var ( - md_EIP1559FeeParams protoreflect.MessageDescriptor - fd_EIP1559FeeParams_base_fee protoreflect.FieldDescriptor - fd_EIP1559FeeParams_min_base_fee protoreflect.FieldDescriptor - fd_EIP1559FeeParams_max_base_fee protoreflect.FieldDescriptor - fd_EIP1559FeeParams_target_gas protoreflect.FieldDescriptor - fd_EIP1559FeeParams_max_change_rate protoreflect.FieldDescriptor +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: initia/move/v1/types.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) ) -func init() { - file_initia_move_v1_types_proto_init() - md_EIP1559FeeParams = File_initia_move_v1_types_proto.Messages().ByName("EIP1559FeeParams") - fd_EIP1559FeeParams_base_fee = md_EIP1559FeeParams.Fields().ByName("base_fee") - fd_EIP1559FeeParams_min_base_fee = md_EIP1559FeeParams.Fields().ByName("min_base_fee") - fd_EIP1559FeeParams_max_base_fee = md_EIP1559FeeParams.Fields().ByName("max_base_fee") - fd_EIP1559FeeParams_target_gas = md_EIP1559FeeParams.Fields().ByName("target_gas") - fd_EIP1559FeeParams_max_change_rate = md_EIP1559FeeParams.Fields().ByName("max_change_rate") -} +// UpgradePolicy is the policy for upgrading a move module. +type UpgradePolicy int32 -var _ protoreflect.Message = (*fastReflection_EIP1559FeeParams)(nil) +const ( + // UNSPECIFIED: a placeholder for an unspecified upgrade policy. + UpgradePolicy_UNSPECIFIED UpgradePolicy = 0 + // COMPATIBLE: Whether a compatibility check should be performed for upgrades. The check only passes if + // a new module has (a) the same public functions (b) for existing resources, no layout change. + UpgradePolicy_COMPATIBLE UpgradePolicy = 1 + // IMMUTABLE: Whether the modules in the package are immutable and cannot be upgraded. + UpgradePolicy_IMMUTABLE UpgradePolicy = 2 +) -type fastReflection_EIP1559FeeParams EIP1559FeeParams +// Enum value maps for UpgradePolicy. +var ( + UpgradePolicy_name = map[int32]string{ + 0: "UNSPECIFIED", + 1: "COMPATIBLE", + 2: "IMMUTABLE", + } + UpgradePolicy_value = map[string]int32{ + "UNSPECIFIED": 0, + "COMPATIBLE": 1, + "IMMUTABLE": 2, + } +) -func (x *EIP1559FeeParams) ProtoReflect() protoreflect.Message { - return (*fastReflection_EIP1559FeeParams)(x) +func (x UpgradePolicy) Enum() *UpgradePolicy { + p := new(UpgradePolicy) + *p = x + return p } -func (x *EIP1559FeeParams) slowProtoReflect() protoreflect.Message { - mi := &file_initia_move_v1_types_proto_msgTypes[10] - 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) +func (x UpgradePolicy) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -var _fastReflection_EIP1559FeeParams_messageType fastReflection_EIP1559FeeParams_messageType -var _ protoreflect.MessageType = fastReflection_EIP1559FeeParams_messageType{} - -type fastReflection_EIP1559FeeParams_messageType struct{} - -func (x fastReflection_EIP1559FeeParams_messageType) Zero() protoreflect.Message { - return (*fastReflection_EIP1559FeeParams)(nil) +func (UpgradePolicy) Descriptor() protoreflect.EnumDescriptor { + return file_initia_move_v1_types_proto_enumTypes[0].Descriptor() } -func (x fastReflection_EIP1559FeeParams_messageType) New() protoreflect.Message { - return new(fastReflection_EIP1559FeeParams) + +func (UpgradePolicy) Type() protoreflect.EnumType { + return &file_initia_move_v1_types_proto_enumTypes[0] } -func (x fastReflection_EIP1559FeeParams_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_EIP1559FeeParams + +func (x UpgradePolicy) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_EIP1559FeeParams) Descriptor() protoreflect.MessageDescriptor { - return md_EIP1559FeeParams +// Deprecated: Use UpgradePolicy.Descriptor instead. +func (UpgradePolicy) EnumDescriptor() ([]byte, []int) { + return file_initia_move_v1_types_proto_rawDescGZIP(), []int{0} } -// 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_EIP1559FeeParams) Type() protoreflect.MessageType { - return _fastReflection_EIP1559FeeParams_messageType +// Params defines the set of move parameters. +type Params struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BaseDenom string `protobuf:"bytes,1,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty"` + // CSR: Percentage of fees distributed to developers + ContractSharedRevenueRatio string `protobuf:"bytes,2,opt,name=contract_shared_revenue_ratio,json=contractSharedRevenueRatio,proto3" json:"contract_shared_revenue_ratio,omitempty"` + // flag whether to enable script execution + ScriptEnabled bool `protobuf:"varint,3,opt,name=script_enabled,json=scriptEnabled,proto3" json:"script_enabled,omitempty"` + // It is a list of addresses with permission to distribute contracts, + // and an empty list is interpreted as allowing anyone to distribute. + AllowedPublishers []string `protobuf:"bytes,4,rep,name=allowed_publishers,json=allowedPublishers,proto3" json:"allowed_publishers,omitempty"` } -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_EIP1559FeeParams) New() protoreflect.Message { - return new(fastReflection_EIP1559FeeParams) +func (x *Params) Reset() { + *x = Params{} + if protoimpl.UnsafeEnabled { + mi := &file_initia_move_v1_types_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_EIP1559FeeParams) Interface() protoreflect.ProtoMessage { - return (*EIP1559FeeParams)(x) +func (x *Params) String() string { + return protoimpl.X.MessageStringOf(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_EIP1559FeeParams) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.BaseFee != int64(0) { - value := protoreflect.ValueOfInt64(x.BaseFee) - if !f(fd_EIP1559FeeParams_base_fee, value) { - return - } - } - if x.MinBaseFee != int64(0) { - value := protoreflect.ValueOfInt64(x.MinBaseFee) - if !f(fd_EIP1559FeeParams_min_base_fee, value) { - return - } - } - if x.MaxBaseFee != int64(0) { - value := protoreflect.ValueOfInt64(x.MaxBaseFee) - if !f(fd_EIP1559FeeParams_max_base_fee, value) { - return - } - } - if x.TargetGas != int64(0) { - value := protoreflect.ValueOfInt64(x.TargetGas) - if !f(fd_EIP1559FeeParams_target_gas, value) { - return - } - } - if x.MaxChangeRate != "" { - value := protoreflect.ValueOfString(x.MaxChangeRate) - if !f(fd_EIP1559FeeParams_max_change_rate, value) { - return - } - } +func (*Params) ProtoMessage() {} + +// Deprecated: Use Params.ProtoReflect.Descriptor instead. +func (*Params) Descriptor() ([]byte, []int) { + return file_initia_move_v1_types_proto_rawDescGZIP(), []int{0} } -// 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_EIP1559FeeParams) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "initia.move.v1.EIP1559FeeParams.base_fee": - return x.BaseFee != int64(0) - case "initia.move.v1.EIP1559FeeParams.min_base_fee": - return x.MinBaseFee != int64(0) - case "initia.move.v1.EIP1559FeeParams.max_base_fee": - return x.MaxBaseFee != int64(0) - case "initia.move.v1.EIP1559FeeParams.target_gas": - return x.TargetGas != int64(0) - case "initia.move.v1.EIP1559FeeParams.max_change_rate": - return x.MaxChangeRate != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.EIP1559FeeParams")) - } - panic(fmt.Errorf("message initia.move.v1.EIP1559FeeParams does not contain field %s", fd.FullName())) +func (x *Params) GetBaseDenom() string { + if x != nil { + return x.BaseDenom } + return "" } -// 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_EIP1559FeeParams) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "initia.move.v1.EIP1559FeeParams.base_fee": - x.BaseFee = int64(0) - case "initia.move.v1.EIP1559FeeParams.min_base_fee": - x.MinBaseFee = int64(0) - case "initia.move.v1.EIP1559FeeParams.max_base_fee": - x.MaxBaseFee = int64(0) - case "initia.move.v1.EIP1559FeeParams.target_gas": - x.TargetGas = int64(0) - case "initia.move.v1.EIP1559FeeParams.max_change_rate": - x.MaxChangeRate = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.EIP1559FeeParams")) - } - panic(fmt.Errorf("message initia.move.v1.EIP1559FeeParams does not contain field %s", fd.FullName())) +func (x *Params) GetContractSharedRevenueRatio() string { + if x != nil { + return x.ContractSharedRevenueRatio } + return "" } -// 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_EIP1559FeeParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "initia.move.v1.EIP1559FeeParams.base_fee": - value := x.BaseFee - return protoreflect.ValueOfInt64(value) - case "initia.move.v1.EIP1559FeeParams.min_base_fee": - value := x.MinBaseFee - return protoreflect.ValueOfInt64(value) - case "initia.move.v1.EIP1559FeeParams.max_base_fee": - value := x.MaxBaseFee - return protoreflect.ValueOfInt64(value) - case "initia.move.v1.EIP1559FeeParams.target_gas": - value := x.TargetGas - return protoreflect.ValueOfInt64(value) - case "initia.move.v1.EIP1559FeeParams.max_change_rate": - value := x.MaxChangeRate - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.EIP1559FeeParams")) - } - panic(fmt.Errorf("message initia.move.v1.EIP1559FeeParams does not contain field %s", descriptor.FullName())) +func (x *Params) GetScriptEnabled() bool { + if x != nil { + return x.ScriptEnabled } -} - -// 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_EIP1559FeeParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "initia.move.v1.EIP1559FeeParams.base_fee": - x.BaseFee = value.Int() - case "initia.move.v1.EIP1559FeeParams.min_base_fee": - x.MinBaseFee = value.Int() - case "initia.move.v1.EIP1559FeeParams.max_base_fee": - x.MaxBaseFee = value.Int() - case "initia.move.v1.EIP1559FeeParams.target_gas": - x.TargetGas = value.Int() - case "initia.move.v1.EIP1559FeeParams.max_change_rate": - x.MaxChangeRate = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.EIP1559FeeParams")) - } - panic(fmt.Errorf("message initia.move.v1.EIP1559FeeParams 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_EIP1559FeeParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "initia.move.v1.EIP1559FeeParams.base_fee": - panic(fmt.Errorf("field base_fee of message initia.move.v1.EIP1559FeeParams is not mutable")) - case "initia.move.v1.EIP1559FeeParams.min_base_fee": - panic(fmt.Errorf("field min_base_fee of message initia.move.v1.EIP1559FeeParams is not mutable")) - case "initia.move.v1.EIP1559FeeParams.max_base_fee": - panic(fmt.Errorf("field max_base_fee of message initia.move.v1.EIP1559FeeParams is not mutable")) - case "initia.move.v1.EIP1559FeeParams.target_gas": - panic(fmt.Errorf("field target_gas of message initia.move.v1.EIP1559FeeParams is not mutable")) - case "initia.move.v1.EIP1559FeeParams.max_change_rate": - panic(fmt.Errorf("field max_change_rate of message initia.move.v1.EIP1559FeeParams is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.EIP1559FeeParams")) - } - panic(fmt.Errorf("message initia.move.v1.EIP1559FeeParams 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_EIP1559FeeParams) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "initia.move.v1.EIP1559FeeParams.base_fee": - return protoreflect.ValueOfInt64(int64(0)) - case "initia.move.v1.EIP1559FeeParams.min_base_fee": - return protoreflect.ValueOfInt64(int64(0)) - case "initia.move.v1.EIP1559FeeParams.max_base_fee": - return protoreflect.ValueOfInt64(int64(0)) - case "initia.move.v1.EIP1559FeeParams.target_gas": - return protoreflect.ValueOfInt64(int64(0)) - case "initia.move.v1.EIP1559FeeParams.max_change_rate": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.EIP1559FeeParams")) - } - panic(fmt.Errorf("message initia.move.v1.EIP1559FeeParams 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_EIP1559FeeParams) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in initia.move.v1.EIP1559FeeParams", 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_EIP1559FeeParams) 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_EIP1559FeeParams) 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_EIP1559FeeParams) 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_EIP1559FeeParams) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*EIP1559FeeParams) - 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.BaseFee != 0 { - n += 1 + runtime.Sov(uint64(x.BaseFee)) - } - if x.MinBaseFee != 0 { - n += 1 + runtime.Sov(uint64(x.MinBaseFee)) - } - if x.MaxBaseFee != 0 { - n += 1 + runtime.Sov(uint64(x.MaxBaseFee)) - } - if x.TargetGas != 0 { - n += 1 + runtime.Sov(uint64(x.TargetGas)) - } - l = len(x.MaxChangeRate) - 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().(*EIP1559FeeParams) - 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.MaxChangeRate) > 0 { - i -= len(x.MaxChangeRate) - copy(dAtA[i:], x.MaxChangeRate) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MaxChangeRate))) - i-- - dAtA[i] = 0x2a - } - if x.TargetGas != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.TargetGas)) - i-- - dAtA[i] = 0x20 - } - if x.MaxBaseFee != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.MaxBaseFee)) - i-- - dAtA[i] = 0x18 - } - if x.MinBaseFee != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.MinBaseFee)) - i-- - dAtA[i] = 0x10 - } - if x.BaseFee != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.BaseFee)) - i-- - dAtA[i] = 0x8 - } - 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().(*EIP1559FeeParams) - 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: EIP1559FeeParams: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: EIP1559FeeParams: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BaseFee", wireType) - } - x.BaseFee = 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.BaseFee |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MinBaseFee", wireType) - } - x.MinBaseFee = 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.MinBaseFee |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MaxBaseFee", wireType) - } - x.MaxBaseFee = 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.MaxBaseFee |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TargetGas", wireType) - } - x.TargetGas = 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.TargetGas |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MaxChangeRate", 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.MaxChangeRate = 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, - } -} - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.0 -// protoc (unknown) -// source: initia/move/v1/types.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) -) - -// UpgradePolicy is the policy for upgrading a move module. -type UpgradePolicy int32 - -const ( - // UNSPECIFIED: a placeholder for an unspecified upgrade policy. - UpgradePolicy_UNSPECIFIED UpgradePolicy = 0 - // COMPATIBLE: Whether a compatibility check should be performed for upgrades. The check only passes if - // a new module has (a) the same public functions (b) for existing resources, no layout change. - UpgradePolicy_COMPATIBLE UpgradePolicy = 1 - // IMMUTABLE: Whether the modules in the package are immutable and cannot be upgraded. - UpgradePolicy_IMMUTABLE UpgradePolicy = 2 -) - -// Enum value maps for UpgradePolicy. -var ( - UpgradePolicy_name = map[int32]string{ - 0: "UNSPECIFIED", - 1: "COMPATIBLE", - 2: "IMMUTABLE", - } - UpgradePolicy_value = map[string]int32{ - "UNSPECIFIED": 0, - "COMPATIBLE": 1, - "IMMUTABLE": 2, - } -) - -func (x UpgradePolicy) Enum() *UpgradePolicy { - p := new(UpgradePolicy) - *p = x - return p -} - -func (x UpgradePolicy) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (UpgradePolicy) Descriptor() protoreflect.EnumDescriptor { - return file_initia_move_v1_types_proto_enumTypes[0].Descriptor() -} - -func (UpgradePolicy) Type() protoreflect.EnumType { - return &file_initia_move_v1_types_proto_enumTypes[0] -} - -func (x UpgradePolicy) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use UpgradePolicy.Descriptor instead. -func (UpgradePolicy) EnumDescriptor() ([]byte, []int) { - return file_initia_move_v1_types_proto_rawDescGZIP(), []int{0} -} - -// Params defines the set of move parameters. -type Params struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - 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,3,opt,name=contract_shared_revenue_ratio,json=contractSharedRevenueRatio,proto3" json:"contract_shared_revenue_ratio,omitempty"` - // flag whether to enable script execution - ScriptEnabled bool `protobuf:"varint,4,opt,name=script_enabled,json=scriptEnabled,proto3" json:"script_enabled,omitempty"` - // It is a list of addresses with permission to distribute contracts, - // and an empty list is interpreted as allowing anyone to distribute. - AllowedPublishers []string `protobuf:"bytes,5,rep,name=allowed_publishers,json=allowedPublishers,proto3" json:"allowed_publishers,omitempty"` -} - -func (x *Params) Reset() { - *x = Params{} - if protoimpl.UnsafeEnabled { - mi := &file_initia_move_v1_types_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Params) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Params) ProtoMessage() {} - -// Deprecated: Use Params.ProtoReflect.Descriptor instead. -func (*Params) Descriptor() ([]byte, []int) { - return file_initia_move_v1_types_proto_rawDescGZIP(), []int{0} -} - -func (x *Params) GetBaseDenom() string { - if x != nil { - return x.BaseDenom - } - return "" -} - -func (x *Params) GetBaseMinGasPrice() string { - if x != nil { - return x.BaseMinGasPrice - } - return "" -} - -func (x *Params) GetContractSharedRevenueRatio() string { - if x != nil { - return x.ContractSharedRevenueRatio - } - return "" -} - -func (x *Params) GetScriptEnabled() bool { - if x != nil { - return x.ScriptEnabled - } - return false + return false } func (x *Params) GetAllowedPublishers() []string { @@ -6649,12 +5901,11 @@ type RawParams struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - 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"` + BaseDenom string `protobuf:"bytes,1,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty"` // CSR: Percentage of fees distributed to developers - ContractSharedRevenueRatio string `protobuf:"bytes,3,opt,name=contract_shared_revenue_ratio,json=contractSharedRevenueRatio,proto3" json:"contract_shared_revenue_ratio,omitempty"` + ContractSharedRevenueRatio string `protobuf:"bytes,2,opt,name=contract_shared_revenue_ratio,json=contractSharedRevenueRatio,proto3" json:"contract_shared_revenue_ratio,omitempty"` // flag whether to enable script execution - ScriptEnabled bool `protobuf:"varint,4,opt,name=script_enabled,json=scriptEnabled,proto3" json:"script_enabled,omitempty"` + ScriptEnabled bool `protobuf:"varint,3,opt,name=script_enabled,json=scriptEnabled,proto3" json:"script_enabled,omitempty"` } func (x *RawParams) Reset() { @@ -6684,13 +5935,6 @@ func (x *RawParams) GetBaseDenom() string { return "" } -func (x *RawParams) GetBaseMinGasPrice() string { - if x != nil { - return x.BaseMinGasPrice - } - return "" -} - func (x *RawParams) GetContractSharedRevenueRatio() string { if x != nil { return x.ContractSharedRevenueRatio @@ -7141,73 +6385,6 @@ func (x *ExecuteAuthorizationItem) GetFunctionNames() []string { return nil } -type EIP1559FeeParams struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - BaseFee int64 `protobuf:"varint,1,opt,name=base_fee,json=baseFee,proto3" json:"base_fee,omitempty"` - MinBaseFee int64 `protobuf:"varint,2,opt,name=min_base_fee,json=minBaseFee,proto3" json:"min_base_fee,omitempty"` - MaxBaseFee int64 `protobuf:"varint,3,opt,name=max_base_fee,json=maxBaseFee,proto3" json:"max_base_fee,omitempty"` - TargetGas int64 `protobuf:"varint,4,opt,name=target_gas,json=targetGas,proto3" json:"target_gas,omitempty"` - MaxChangeRate string `protobuf:"bytes,5,opt,name=max_change_rate,json=maxChangeRate,proto3" json:"max_change_rate,omitempty"` -} - -func (x *EIP1559FeeParams) Reset() { - *x = EIP1559FeeParams{} - if protoimpl.UnsafeEnabled { - mi := &file_initia_move_v1_types_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EIP1559FeeParams) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EIP1559FeeParams) ProtoMessage() {} - -// Deprecated: Use EIP1559FeeParams.ProtoReflect.Descriptor instead. -func (*EIP1559FeeParams) Descriptor() ([]byte, []int) { - return file_initia_move_v1_types_proto_rawDescGZIP(), []int{10} -} - -func (x *EIP1559FeeParams) GetBaseFee() int64 { - if x != nil { - return x.BaseFee - } - return 0 -} - -func (x *EIP1559FeeParams) GetMinBaseFee() int64 { - if x != nil { - return x.MinBaseFee - } - return 0 -} - -func (x *EIP1559FeeParams) GetMaxBaseFee() int64 { - if x != nil { - return x.MaxBaseFee - } - return 0 -} - -func (x *EIP1559FeeParams) GetTargetGas() int64 { - if x != nil { - return x.TargetGas - } - return 0 -} - -func (x *EIP1559FeeParams) GetMaxChangeRate() string { - if x != nil { - return x.MaxChangeRate - } - return "" -} - var File_initia_move_v1_types_proto protoreflect.FileDescriptor var file_initia_move_v1_types_proto_rawDesc = []byte{ @@ -7216,151 +6393,121 @@ 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, 0xc5, 0x03, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd1, 0x02, 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, - 0x72, 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, 0x45, 0xc8, 0xde, 0x1f, - 0x00, 0xda, 0xde, 0x1f, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, - 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 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, 0x93, 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, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x50, 0xc8, 0xde, 0x1f, - 0x00, 0xda, 0xde, 0x1f, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, - 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 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, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x0d, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, - 0x12, 0x51, 0x0a, 0x12, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x70, 0x75, 0x62, 0x6c, - 0x69, 0x73, 0x68, 0x65, 0x72, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x42, 0x22, 0xf2, 0xde, - 0x1f, 0x19, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, - 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x73, 0x22, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, - 0x52, 0x11, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, - 0x65, 0x72, 0x73, 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, 0xdb, 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, 0x72, 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, 0x45, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x1b, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, - 0x68, 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 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, 0x93, - 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, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x50, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x1b, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, - 0x68, 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 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, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x5f, 0x65, - 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x22, 0xb8, 0x01, 0x0a, 0x06, - 0x4d, 0x6f, 0x64, 0x75, 0x6c, 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, 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, 0x10, 0x0a, 0x03, 0x61, 0x62, 0x69, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, - 0x61, 0x62, 0x69, 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, - 0x12, 0x44, 0x0a, 0x0e, 0x75, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x5f, 0x70, 0x6f, 0x6c, 0x69, - 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, 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, + 0x93, 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, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x50, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, + 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, + 0x74, 0x68, 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 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, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x5f, + 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x51, 0x0a, 0x12, + 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, + 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x42, 0x22, 0xf2, 0xde, 0x1f, 0x19, 0x79, 0x61, + 0x6d, 0x6c, 0x3a, 0x22, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x70, 0x75, 0x62, 0x6c, + 0x69, 0x73, 0x68, 0x65, 0x72, 0x73, 0x22, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x11, 0x61, 0x6c, + 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x73, 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, 0xe7, 0x01, 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, 0x93, 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, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x50, + 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, + 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, + 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, 0x12, 0x25, 0x0a, 0x0e, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x45, 0x6e, 0x61, 0x62, + 0x6c, 0x65, 0x64, 0x22, 0xb8, 0x01, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 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, 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, 0x10, 0x0a, 0x03, 0x61, 0x62, 0x69, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x61, 0x62, 0x69, 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, 0x12, 0x44, 0x0a, 0x0e, 0x75, 0x70, 0x67, 0x72, + 0x61, 0x64, 0x65, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 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, 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, 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, 0x22, 0xfc, 0x01, 0x0a, 0x10, 0x45, 0x49, 0x50, 0x31, 0x35, 0x35, 0x39, 0x46, - 0x65, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x62, 0x61, 0x73, 0x65, - 0x5f, 0x66, 0x65, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x62, 0x61, 0x73, 0x65, - 0x46, 0x65, 0x65, 0x12, 0x20, 0x0a, 0x0c, 0x6d, 0x69, 0x6e, 0x5f, 0x62, 0x61, 0x73, 0x65, 0x5f, - 0x66, 0x65, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6d, 0x69, 0x6e, 0x42, 0x61, - 0x73, 0x65, 0x46, 0x65, 0x65, 0x12, 0x20, 0x0a, 0x0c, 0x6d, 0x61, 0x78, 0x5f, 0x62, 0x61, 0x73, - 0x65, 0x5f, 0x66, 0x65, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6d, 0x61, 0x78, - 0x42, 0x61, 0x73, 0x65, 0x46, 0x65, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, - 0x74, 0x5f, 0x67, 0x61, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x61, 0x72, - 0x67, 0x65, 0x74, 0x47, 0x61, 0x73, 0x12, 0x6a, 0x0a, 0x0f, 0x6d, 0x61, 0x78, 0x5f, 0x63, 0x68, - 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x42, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, - 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, - 0x79, 0x44, 0x65, 0x63, 0xf2, 0xde, 0x1f, 0x16, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x6d, 0x61, - 0x78, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x22, 0xa8, 0xe7, - 0xb0, 0x2a, 0x01, 0x52, 0x0d, 0x6d, 0x61, 0x78, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x61, - 0x74, 0x65, 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, 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, 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 ( @@ -7376,7 +6523,7 @@ 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, 11) +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 @@ -7389,7 +6536,6 @@ var file_initia_move_v1_types_proto_goTypes = []interface{}{ (*UpgradePolicyProto)(nil), // 8: initia.move.v1.UpgradePolicyProto (*DexPair)(nil), // 9: initia.move.v1.DexPair (*ExecuteAuthorizationItem)(nil), // 10: initia.move.v1.ExecuteAuthorizationItem - (*EIP1559FeeParams)(nil), // 11: initia.move.v1.EIP1559FeeParams } var file_initia_move_v1_types_proto_depIdxs = []int32{ 0, // 0: initia.move.v1.Module.upgrade_policy:type_name -> initia.move.v1.UpgradePolicy @@ -7527,18 +6673,6 @@ func file_initia_move_v1_types_proto_init() { return nil } } - file_initia_move_v1_types_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EIP1559FeeParams); 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{ @@ -7546,7 +6680,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: 11, + NumMessages: 10, NumExtensions: 0, NumServices: 0, }, diff --git a/app/ante/ante.go b/app/ante/ante.go index c15742094..81e02779d 100644 --- a/app/ante/ante.go +++ b/app/ante/ante.go @@ -12,25 +12,26 @@ import ( "github.com/initia-labs/initia/app/ante/accnum" "github.com/initia-labs/initia/app/ante/sigverify" - moveante "github.com/initia-labs/initia/x/move/ante" - movetypes "github.com/initia-labs/initia/x/move/types" + dynamicfeeante "github.com/initia-labs/initia/x/dynamic-fee/ante" "github.com/skip-mev/block-sdk/v2/block" auctionante "github.com/skip-mev/block-sdk/v2/x/auction/ante" auctionkeeper "github.com/skip-mev/block-sdk/v2/x/auction/keeper" + + dynamicfeetypes "github.com/initia-labs/initia/x/dynamic-fee/types" ) // HandlerOptions extends the SDK's AnteHandler options by requiring the IBC // channel keeper. type HandlerOptions struct { ante.HandlerOptions - Codec codec.BinaryCodec - MoveKeeper movetypes.AnteKeeper - IBCkeeper *ibckeeper.Keeper - AuctionKeeper auctionkeeper.Keeper - TxEncoder sdk.TxEncoder - MevLane auctionante.MEVLane - FreeLane block.Lane + Codec codec.BinaryCodec + DynamicFeeKeeper dynamicfeetypes.AnteKeeper + IBCkeeper *ibckeeper.Keeper + AuctionKeeper auctionkeeper.Keeper + TxEncoder sdk.TxEncoder + MevLane auctionante.MEVLane + FreeLane block.Lane } // NewAnteHandler returns an AnteHandler that checks and increments sequence @@ -56,7 +57,7 @@ func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error) { txFeeChecker := options.TxFeeChecker if txFeeChecker == nil { - txFeeChecker = moveante.NewMempoolFeeChecker(options.MoveKeeper).CheckTxFeeWithMinGasPrices + txFeeChecker = dynamicfeeante.NewMempoolFeeChecker(options.DynamicFeeKeeper).CheckTxFeeWithMinGasPrices } freeLaneFeeChecker := func(ctx sdk.Context, tx sdk.Tx) (sdk.Coins, int64, error) { @@ -78,7 +79,7 @@ func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error) { accnum.NewAccountNumberDecorator(options.AccountKeeper), ante.NewSetUpContextDecorator(), // outermost AnteDecorator. SetUpContext must be called first ante.NewExtensionOptionsDecorator(options.ExtensionOptionChecker), - moveante.NewGasPricesDecorator(), + dynamicfeeante.NewGasPricesDecorator(), ante.NewValidateBasicDecorator(), ante.NewTxTimeoutHeightDecorator(), ante.NewValidateMemoDecorator(options.AccountKeeper), diff --git a/app/app.go b/app/app.go index 55093ecac..dfa383747 100644 --- a/app/app.go +++ b/app/app.go @@ -473,7 +473,7 @@ func (app *InitiaApp) Simulate(txBytes []byte) (sdk.GasInfo, *sdk.Result, error) // RegisterTxService implements the Application.RegisterTxService method. func (app *InitiaApp) RegisterTxService(clientCtx client.Context) { authtx.RegisterTxService(app.BaseApp.GRPCQueryRouter(), clientCtx, app.Simulate, app.interfaceRegistry) - initiatx.RegisterTxQuery(app.GRPCQueryRouter(), app.MoveKeeper.DexKeeper()) + initiatx.RegisterTxQuery(app.GRPCQueryRouter(), app.DynamicFeeKeeper) // Register the Block SDK mempool transaction service. mempool, ok := app.Mempool().(block.Mempool) diff --git a/app/blocksdk.go b/app/blocksdk.go index 3c04c961e..4097b73e3 100644 --- a/app/blocksdk.go +++ b/app/blocksdk.go @@ -11,10 +11,10 @@ import ( appante "github.com/initia-labs/initia/app/ante" applanes "github.com/initia-labs/initia/app/lanes" - movekeeper "github.com/initia-labs/initia/x/move/keeper" // block-sdk dependencies + dynamicfeekeeper "github.com/initia-labs/initia/x/dynamic-fee/keeper" blockabci "github.com/skip-mev/block-sdk/v2/abci" blockchecktx "github.com/skip-mev/block-sdk/v2/abci/checktx" signer_extraction "github.com/skip-mev/block-sdk/v2/adapters/signer_extraction_adapter" @@ -90,13 +90,13 @@ func setupBlockSDK( FeegrantKeeper: app.FeeGrantKeeper, SignModeHandler: app.txConfig.SignModeHandler(), }, - IBCkeeper: app.IBCKeeper, - MoveKeeper: movekeeper.NewAnteKeeper(movekeeper.NewDexKeeper(app.MoveKeeper), movekeeper.NewEIP1559FeeKeeper(app.MoveKeeper)), - Codec: app.appCodec, - TxEncoder: app.txConfig.TxEncoder(), - AuctionKeeper: *app.AuctionKeeper, - MevLane: mevLane, - FreeLane: freeLane, + IBCkeeper: app.IBCKeeper, + DynamicFeeKeeper: dynamicfeekeeper.NewAnteKeeper(app.DynamicFeeKeeper), + Codec: app.appCodec, + TxEncoder: app.txConfig.TxEncoder(), + AuctionKeeper: *app.AuctionKeeper, + MevLane: mevLane, + FreeLane: freeLane, }, ) if err != nil { diff --git a/app/keepers/keepers.go b/app/keepers/keepers.go index fbcb8495f..4b9387896 100644 --- a/app/keepers/keepers.go +++ b/app/keepers/keepers.go @@ -72,6 +72,8 @@ import ( applanes "github.com/initia-labs/initia/app/lanes" bankkeeper "github.com/initia-labs/initia/x/bank/keeper" distrkeeper "github.com/initia-labs/initia/x/distribution/keeper" + dynamicfeekeeper "github.com/initia-labs/initia/x/dynamic-fee/keeper" + dynamicfeetypes "github.com/initia-labs/initia/x/dynamic-fee/types" evidencekeeper "github.com/initia-labs/initia/x/evidence/keeper" govkeeper "github.com/initia-labs/initia/x/gov/keeper" ibchooks "github.com/initia-labs/initia/x/ibc-hooks" @@ -127,6 +129,7 @@ type AppKeepers struct { CrisisKeeper *crisiskeeper.Keeper UpgradeKeeper *upgradekeeper.Keeper GroupKeeper *groupkeeper.Keeper + DynamicFeeKeeper *dynamicfeekeeper.Keeper ConsensusParamsKeeper *consensusparamkeeper.Keeper IBCKeeper *ibckeeper.Keeper // IBC Keeper must be a pointer in the app, so we can SetRouter on it correctly EvidenceKeeper *evidencekeeper.Keeper @@ -319,6 +322,17 @@ func NewAppKeeper( ) appKeepers.GroupKeeper = &groupKeeper + dynamicFeeKeeper := dynamicfeekeeper.NewKeeper( + appCodec, + runtime.NewKVStoreService(appKeepers.keys[dynamicfeetypes.StoreKey]), + movekeeper.NewDexKeeper(appKeepers.MoveKeeper), + appKeepers.MoveKeeper, + appKeepers.MoveKeeper, + ac, + authorityAddr, + ) + appKeepers.DynamicFeeKeeper = dynamicFeeKeeper + // Create IBC Keeper appKeepers.IBCKeeper = ibckeeper.NewKeeper( appCodec, diff --git a/app/keepers/keys.go b/app/keepers/keys.go index bde47fc60..5ea17acc9 100644 --- a/app/keepers/keys.go +++ b/app/keepers/keys.go @@ -43,6 +43,8 @@ import ( // noble forwarding keeper forwardingtypes "github.com/noble-assets/forwarding/v2/types" + + dynamicfeetypes "github.com/initia-labs/initia/x/dynamic-fee/types" ) func (appKeepers *AppKeepers) GenerateKeys() { @@ -59,6 +61,7 @@ func (appKeepers *AppKeepers) GenerateKeys() { movetypes.StoreKey, auctiontypes.StoreKey, ophosttypes.StoreKey, oracletypes.StoreKey, packetforwardtypes.StoreKey, ibchookstypes.StoreKey, forwardingtypes.StoreKey, marketmaptypes.StoreKey, ratelimittypes.StoreKey, + dynamicfeetypes.StoreKey, ) // Define transient store keys diff --git a/app/modules.go b/app/modules.go index 5668f06cd..ed9c1c37f 100644 --- a/app/modules.go +++ b/app/modules.go @@ -85,6 +85,9 @@ import ( // noble forwarding keeper forwarding "github.com/noble-assets/forwarding/v2" forwardingtypes "github.com/noble-assets/forwarding/v2/types" + + dynamicfee "github.com/initia-labs/initia/x/dynamic-fee" + dynamicfeetypes "github.com/initia-labs/initia/x/dynamic-fee/types" ) var maccPerms = map[string][]string{ @@ -150,6 +153,7 @@ func appModules( ibchooks.NewAppModule(app.appCodec, *app.IBCHooksKeeper), forwarding.NewAppModule(app.ForwardingKeeper), ratelimit.NewAppModule(app.appCodec, *app.RatelimitKeeper), + dynamicfee.NewAppModule(app.appCodec, *app.DynamicFeeKeeper), } } @@ -217,7 +221,7 @@ func orderEndBlockers() []string { marketmaptypes.ModuleName, forwardingtypes.ModuleName, ratelimittypes.ModuleName, - movetypes.ModuleName, + dynamicfeetypes.ModuleName, } } @@ -233,7 +237,7 @@ func orderInitBlockers() []string { return []string{ capabilitytypes.ModuleName, authtypes.ModuleName, movetypes.ModuleName, banktypes.ModuleName, distrtypes.ModuleName, stakingtypes.ModuleName, slashingtypes.ModuleName, govtypes.ModuleName, - rewardtypes.ModuleName, crisistypes.ModuleName, genutiltypes.ModuleName, evidencetypes.ModuleName, + dynamicfeetypes.ModuleName, rewardtypes.ModuleName, crisistypes.ModuleName, genutiltypes.ModuleName, evidencetypes.ModuleName, authz.ModuleName, group.ModuleName, upgradetypes.ModuleName, feegrant.ModuleName, consensusparamtypes.ModuleName, ibcexported.ModuleName, ibctransfertypes.ModuleName, ibcnfttransfertypes.ModuleName, icatypes.ModuleName, icaauthtypes.ModuleName, ibcfeetypes.ModuleName, diff --git a/proto/initia/dynamicfee/module/v1/module.proto b/proto/initia/dynamicfee/module/v1/module.proto new file mode 100644 index 000000000..df8a44f07 --- /dev/null +++ b/proto/initia/dynamicfee/module/v1/module.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; + +package initia.dynamicfee.module.v1; + +import "cosmos/app/v1alpha1/module.proto"; + +// Module is the config object of the builder module. +message Module { + option (cosmos.app.v1alpha1.module) = {go_import: "github.com/initia-labs/initia/x/dynamic-fee"}; + + // Authority defines the custom module authority. + // If not set, defaults to the governance module. + string authority = 2; +} diff --git a/proto/initia/dynamicfee/v1/genesis.proto b/proto/initia/dynamicfee/v1/genesis.proto new file mode 100644 index 000000000..42240c64f --- /dev/null +++ b/proto/initia/dynamicfee/v1/genesis.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; +package initia.dynamicfee.v1; + +import "amino/amino.proto"; +import "gogoproto/gogo.proto"; +import "initia/dynamicfee/v1/types.proto"; + +option go_package = "github.com/initia-labs/initia/x/dynamic-fee/types"; + +// GenesisState - genesis state of x/move +message GenesisState { + Params params = 1 [ + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; +} diff --git a/proto/initia/dynamicfee/v1/query.proto b/proto/initia/dynamicfee/v1/query.proto new file mode 100644 index 000000000..35833e64e --- /dev/null +++ b/proto/initia/dynamicfee/v1/query.proto @@ -0,0 +1,29 @@ +syntax = "proto3"; +package initia.dynamicfee.v1; + +import "amino/amino.proto"; +import "cosmos/base/query/v1beta1/pagination.proto"; +import "gogoproto/gogo.proto"; +import "google/api/annotations.proto"; +import "initia/dynamicfee/v1/types.proto"; + +option go_package = "github.com/initia-labs/initia/x/dynamic-fee/types"; +option (gogoproto.equal_all) = false; +option (gogoproto.goproto_getters_all) = false; + +// Query provides defines the gRPC querier service +service Query { + // Params queries the params + rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { + option (google.api.http).get = "/initia/dynamicfee/v1/params"; + } +} + +// QueryParamsRequest is the request type for the Query/Params RPC method. +message QueryParamsRequest {} + +// QueryParamsResponse is the response type for the Query/Params RPC method. +message QueryParamsResponse { + // params defines the parameters of the module. + Params params = 1 [(gogoproto.nullable) = false]; +} diff --git a/proto/initia/dynamicfee/v1/tx.proto b/proto/initia/dynamicfee/v1/tx.proto new file mode 100644 index 000000000..a7568ebb3 --- /dev/null +++ b/proto/initia/dynamicfee/v1/tx.proto @@ -0,0 +1,41 @@ +syntax = "proto3"; +package initia.dynamicfee.v1; + +import "amino/amino.proto"; +import "cosmos/msg/v1/msg.proto"; +import "cosmos_proto/cosmos.proto"; +import "gogoproto/gogo.proto"; +import "initia/dynamicfee/v1/types.proto"; + +option go_package = "github.com/initia-labs/initia/x/dynamic-fee/types"; +option (gogoproto.goproto_getters_all) = false; + +// Msg defines the move Msg service. +service Msg { + option (cosmos.msg.v1.service) = true; + + // UpdateParams defines an operation for updating the x/dynamic-fee module + // parameters. + rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); +} + +// MsgUpdateParams is the Msg/UpdateParams request type. +message MsgUpdateParams { + option (cosmos.msg.v1.signer) = "authority"; + option (amino.name) = "dynamicfee/MsgUpdateParams"; + + // authority is the address that controls the module + // (defaults to x/gov unless overwritten). + string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; + // params defines the x/dynamic-fee parameters to update. + // + // NOTE: All parameters must be supplied. + Params params = 2 [ + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; +} + +// MsgUpdateParamsResponse defines the response structure for executing a +// MsgUpdateParams message. +message MsgUpdateParamsResponse {} diff --git a/proto/initia/dynamicfee/v1/types.proto b/proto/initia/dynamicfee/v1/types.proto new file mode 100644 index 000000000..66a3c903a --- /dev/null +++ b/proto/initia/dynamicfee/v1/types.proto @@ -0,0 +1,41 @@ +syntax = "proto3"; +package initia.dynamicfee.v1; + +import "amino/amino.proto"; +import "gogoproto/gogo.proto"; + +option go_package = "github.com/initia-labs/initia/x/dynamic-fee/types"; +option (gogoproto.equal_all) = true; +option (gogoproto.goproto_getters_all) = false; + +message Params { + string base_gas_price = 1 [ + (gogoproto.moretags) = "yaml:\"base_gas_price\"", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; + + string min_base_gas_price = 2 [ + (gogoproto.moretags) = "yaml:\"min_base_gas_price\"", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; + + string max_base_gas_price = 3 [ + (gogoproto.moretags) = "yaml:\"max_base_gas_price\"", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; + + string max_change_rate = 4 [ + (gogoproto.moretags) = "yaml:\"max_change_rate\"", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; + + int64 target_gas = 5; +} \ No newline at end of file diff --git a/proto/initia/move/v1/genesis.proto b/proto/initia/move/v1/genesis.proto index 3b3408e3a..24bc85375 100644 --- a/proto/initia/move/v1/genesis.proto +++ b/proto/initia/move/v1/genesis.proto @@ -45,8 +45,4 @@ message GenesisState { (gogoproto.nullable) = false, (amino.dont_omitempty) = true ]; - EIP1559FeeParams eip1559_feeparams = 10 [ - (gogoproto.nullable) = false, - (amino.dont_omitempty) = true - ]; } diff --git a/proto/initia/move/v1/query.proto b/proto/initia/move/v1/query.proto index 33bd6223b..56b8a597e 100644 --- a/proto/initia/move/v1/query.proto +++ b/proto/initia/move/v1/query.proto @@ -114,11 +114,6 @@ service Query { rpc Denom(QueryDenomRequest) returns (QueryDenomResponse) { option (google.api.http).get = "/initia/move/v1/denom"; } - - // EIP1559FeeParams queries the EIP1559 fee params - rpc EIP1559FeeParams(QueryEIP1559FeeParamsRequest) returns (QueryEIP1559FeeParamsResponse) { - option (google.api.http).get = "/initia/move/v1/eip1559_feeparams"; - } } // QueryModuleRequest is the request type for the Query/Module RPC @@ -423,11 +418,3 @@ message QueryDenomRequest { message QueryDenomResponse { string denom = 1; } - -// QueryEIP1559FeeParamsRequest is the request type for the Query/EIP1559FeeParams RPC method. -message QueryEIP1559FeeParamsRequest {} - -// QueryEIP1559FeeParamsResponse is the response type for the Query/EIP1559FeeParams RPC method. -message QueryEIP1559FeeParamsResponse { - EIP1559FeeParams eip1559_feeparams = 1 [(gogoproto.nullable) = false]; -} \ No newline at end of file diff --git a/proto/initia/move/v1/tx.proto b/proto/initia/move/v1/tx.proto index 0f94dc4ef..4846c2791 100644 --- a/proto/initia/move/v1/tx.proto +++ b/proto/initia/move/v1/tx.proto @@ -48,10 +48,6 @@ service Msg { // UpdateParams defines an operation for updating the x/move module // parameters. rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); - - // UpdateEIP1559FeeParams defines an operation for updating the x/move module - // eip1559 fee params. - rpc UpdateEIP1559FeeParams(MsgUpdateEIP1559FeeParams) returns (MsgUpdateEIP1559FeeParamsResponse); } // MsgPublish is the message to store compiled Move module @@ -355,22 +351,3 @@ message MsgUpdateParams { // MsgUpdateParamsResponse defines the response structure for executing a // MsgUpdateParams message. message MsgUpdateParamsResponse {} - -// MsgUpdateEIP1559FeeParams is the Msg/UpdateEIP1559FeeParams request type. -message MsgUpdateEIP1559FeeParams { - option (cosmos.msg.v1.signer) = "authority"; - option (amino.name) = "move/MsgUpdateEIP1559FeeParams"; - - // authority is the address that controls the module - // (defaults to x/gov unless overwritten). - string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; - // eip1559_feeparams defines the x/move parameters to update. - EIP1559FeeParams eip1559_feeparams = 2 [ - (gogoproto.nullable) = false, - (amino.dont_omitempty) = true - ]; -} - -// MsgUpdateEIP1559FeeParamsResponse defines the response structure for executing a -// MsgUpdateEIP1559FeeParams message. -message MsgUpdateEIP1559FeeParamsResponse {} diff --git a/proto/initia/move/v1/types.proto b/proto/initia/move/v1/types.proto index d08afd95c..8450c18ef 100644 --- a/proto/initia/move/v1/types.proto +++ b/proto/initia/move/v1/types.proto @@ -15,15 +15,8 @@ message Params { option (gogoproto.goproto_stringer) = false; string base_denom = 1; - string base_min_gas_price = 2 [ - (gogoproto.moretags) = "yaml:\"base_min_gas_price\"", - (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", - (gogoproto.nullable) = false, - (amino.dont_omitempty) = true - ]; - // CSR: Percentage of fees distributed to developers - string contract_shared_revenue_ratio = 3 [ + string contract_shared_revenue_ratio = 2 [ (gogoproto.moretags) = "yaml:\"contract_shared_revenue_ratio\"", (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", (gogoproto.nullable) = false, @@ -31,11 +24,11 @@ message Params { ]; // flag whether to enable script execution - bool script_enabled = 4; + bool script_enabled = 3; // It is a list of addresses with permission to distribute contracts, // and an empty list is interpreted as allowing anyone to distribute. - repeated string allowed_publishers = 5 [ + repeated string allowed_publishers = 4 [ (gogoproto.moretags) = "yaml:\"allowed_publishers\"", (amino.dont_omitempty) = true ]; @@ -44,15 +37,9 @@ message Params { // RawParams defines the raw params to store. message RawParams { string base_denom = 1; - string base_min_gas_price = 2 [ - (gogoproto.moretags) = "yaml:\"base_min_gas_price\"", - (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", - (gogoproto.nullable) = false, - (amino.dont_omitempty) = true - ]; // CSR: Percentage of fees distributed to developers - string contract_shared_revenue_ratio = 3 [ + string contract_shared_revenue_ratio = 2 [ (gogoproto.moretags) = "yaml:\"contract_shared_revenue_ratio\"", (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", (gogoproto.nullable) = false, @@ -60,7 +47,7 @@ message RawParams { ]; // flag whether to enable script execution - bool script_enabled = 4; + bool script_enabled = 3; } // Module is data for the uploaded contract move code @@ -135,16 +122,3 @@ message ExecuteAuthorizationItem { // FunctionName is the name of function to execute with wildcard '*' support repeated string function_names = 3 [(gogoproto.nullable) = true]; } - -message EIP1559FeeParams { - int64 base_fee = 1; - int64 min_base_fee = 2; - int64 max_base_fee = 3; - int64 target_gas = 4; - string max_change_rate = 5 [ - (gogoproto.moretags) = "yaml:\"max_change_rate\"", - (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", - (gogoproto.nullable) = false, - (amino.dont_omitempty) = true - ]; -} \ No newline at end of file diff --git a/x/dynamic-fee/abci.go b/x/dynamic-fee/abci.go new file mode 100644 index 000000000..d7f268f1b --- /dev/null +++ b/x/dynamic-fee/abci.go @@ -0,0 +1,20 @@ +package dynamicfee + +import ( + "context" + "time" + + "github.com/initia-labs/initia/x/dynamic-fee/keeper" + "github.com/initia-labs/initia/x/dynamic-fee/types" + + "github.com/cosmos/cosmos-sdk/telemetry" + + sdk "github.com/cosmos/cosmos-sdk/types" +) + +func EndBlocker(ctx context.Context, k keeper.Keeper) error { + defer telemetry.ModuleMeasureSince(types.ModuleName, time.Now(), telemetry.MetricKeyEndBlocker) + + // update base fee + return k.UpdateBaseGasPrice(sdk.UnwrapSDKContext(ctx)) +} diff --git a/x/dynamic-fee/abci_test.go b/x/dynamic-fee/abci_test.go new file mode 100644 index 000000000..a8fe8d361 --- /dev/null +++ b/x/dynamic-fee/abci_test.go @@ -0,0 +1,73 @@ +package dynamicfee_test + +import ( + "testing" + + "cosmossdk.io/math" + "github.com/stretchr/testify/require" + + abci "github.com/cometbft/cometbft/abci/types" + tmproto "github.com/cometbft/cometbft/proto/tendermint/types" + + sdk "github.com/cosmos/cosmos-sdk/types" + + "github.com/initia-labs/initia/x/dynamic-fee/types" + + banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" + movetypes "github.com/initia-labs/initia/x/move/types" +) + +func Test_EndBlocker(t *testing.T) { + app := createApp(t) + + _, err := app.FinalizeBlock(&abci.RequestFinalizeBlock{Height: app.LastBlockHeight() + 1}) + require.NoError(t, err) + + ctx := app.BaseApp.NewUncachedContext(false, tmproto.Header{}) + err = app.DynamicFeeKeeper.SetParams(ctx, types.Params{ + BaseGasPrice: math.LegacyNewDecWithPrec(15, 3), + MinBaseGasPrice: math.LegacyNewDecWithPrec(1, 3), + MaxBaseGasPrice: math.LegacyNewDec(10), + TargetGas: 1_000_000, + MaxChangeRate: math.LegacyNewDecWithPrec(1, 1), + }) + require.NoError(t, err) + _, err = app.Commit() + require.NoError(t, err) + + _, err = app.FinalizeBlock(&abci.RequestFinalizeBlock{Height: app.LastBlockHeight() + 1}) + require.NoError(t, err) + + // initialize staking for secondBondDenom + ctx = app.BaseApp.NewUncachedContext(false, tmproto.Header{}) + err = app.MoveKeeper.InitializeStaking(ctx, secondBondDenom) + require.NoError(t, err) + + // fund addr2 + app.BankKeeper.SendCoins(ctx, movetypes.StdAddr, addr2, sdk.NewCoins(secondBondCoin)) + + _, err = app.Commit() + require.NoError(t, err) + + ctx = app.BaseApp.NewUncachedContext(false, tmproto.Header{}) + lessBaseGasPrice, err := app.DynamicFeeKeeper.BaseGasPrice(ctx) + require.NoError(t, err) + require.True(t, lessBaseGasPrice.LT(types.DefaultBaseGasPrice)) + + msgs := []sdk.Msg{} + for i := 0; i < 100; i++ { + msgs = append(msgs, &banktypes.MsgSend{ + FromAddress: addr2.String(), + ToAddress: addr1.String(), + Amount: sdk.NewCoins(sdk.NewInt64Coin(secondBondDenom, 10)), + }) + } + + _, err = executeMsgsWithGasInfo(t, app, msgs, []uint64{1}, []uint64{0}, priv2) + require.NoError(t, err) + + ctx = app.BaseApp.NewUncachedContext(false, tmproto.Header{}) + baseGasPrice, err := app.DynamicFeeKeeper.BaseGasPrice(ctx) + require.NoError(t, err) + require.True(t, baseGasPrice.GT(lessBaseGasPrice)) +} diff --git a/x/move/ante/ante_test.go b/x/dynamic-fee/ante/ante_test.go similarity index 100% rename from x/move/ante/ante_test.go rename to x/dynamic-fee/ante/ante_test.go diff --git a/x/move/ante/context_keys.go b/x/dynamic-fee/ante/context_keys.go similarity index 100% rename from x/move/ante/context_keys.go rename to x/dynamic-fee/ante/context_keys.go diff --git a/x/move/ante/fee.go b/x/dynamic-fee/ante/fee.go similarity index 70% rename from x/move/ante/fee.go rename to x/dynamic-fee/ante/fee.go index 46f3c9164..794a9624b 100644 --- a/x/move/ante/fee.go +++ b/x/dynamic-fee/ante/fee.go @@ -6,8 +6,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - - movetypes "github.com/initia-labs/initia/x/move/types" + dynamicfeetypes "github.com/initia-labs/initia/x/dynamic-fee/types" ) // MempoolFeeChecker will check if the transaction's fee is at least as large @@ -17,12 +16,12 @@ import ( // If fee is high enough or not CheckTx, then call next AnteHandler // CONTRACT: Tx must implement FeeTx to use MempoolFeeChecker type MempoolFeeChecker struct { - keeper movetypes.AnteKeeper + keeper dynamicfeetypes.AnteKeeper } // NewMempoolFeeChecker create MempoolFeeChecker instance func NewMempoolFeeChecker( - keeper movetypes.AnteKeeper, + keeper dynamicfeetypes.AnteKeeper, ) MempoolFeeChecker { return MempoolFeeChecker{ keeper, @@ -51,15 +50,8 @@ func (fc MempoolFeeChecker) CheckTxFeeWithMinGasPrices(ctx sdk.Context, tx sdk.T return nil, 0, err } - baseMinGasPrice, err := fc.keeper.BaseMinGasPrice(ctx) - if err != nil { - return nil, 0, err - } - - minGasPrices = combinedMinGasPrices(baseDenom, baseMinGasPrice, minGasPrices) - for _, coin := range feeTx.GetFee() { - basePrice, err := fc.fetchPrice(ctx, baseDenom, coin.Denom) + basePrice, err := fc.keeper.GetBaseSpotPrice(ctx, coin.Denom) if err != nil { return nil, 0, err } @@ -72,18 +64,20 @@ func (fc MempoolFeeChecker) CheckTxFeeWithMinGasPrices(ctx sdk.Context, tx sdk.T priority = totalFeeBaseAmount.Int64() } - baseFee, err := fc.keeper.GetBaseFee(ctx) + baseGasPrice, err := fc.keeper.BaseGasPrice(ctx) if err != nil { return nil, 0, err } - if !totalFeeBaseAmount.GTE(math.NewInt(baseFee)) { + gasPriceFromTotalFee := math.LegacyNewDecFromInt(totalFeeBaseAmount).Quo(math.LegacyNewDec(int64(gas))) + + if gasPriceFromTotalFee.LT(baseGasPrice) { return nil, 0, errors.Wrapf( sdkerrors.ErrInsufficientFee, - "insufficient base fee; got: %s (sum %s), base fee required: %d", + "insufficient gas price; got: %s (sum %s), base gas price required: %s", feeCoins, - totalFeeBaseAmount, - baseFee, + gasPriceFromTotalFee.String(), + baseGasPrice.String(), ) } } @@ -118,21 +112,3 @@ func (fc MempoolFeeChecker) CheckTxFeeWithMinGasPrices(ctx sdk.Context, tx sdk.T return feeCoins, priority, nil } - -func (fc MempoolFeeChecker) fetchPrice(ctx sdk.Context, baseDenom, quoteDenom string) (price math.LegacyDec, err error) { - if quoteDenom == baseDenom { - return math.LegacyOneDec(), nil - } - - if found, err := fc.keeper.HasDexPair(ctx, quoteDenom); err != nil { - return math.LegacyZeroDec(), err - } else if !found { - return math.LegacyZeroDec(), nil - } - - if basePrice, err := fc.keeper.GetBaseSpotPrice(ctx, quoteDenom); err != nil { - return math.LegacyZeroDec(), err - } else { - return basePrice, nil - } -} diff --git a/x/move/ante/fee_test.go b/x/dynamic-fee/ante/fee_test.go similarity index 54% rename from x/move/ante/fee_test.go rename to x/dynamic-fee/ante/fee_test.go index a942bb9fb..a4ccbceab 100644 --- a/x/move/ante/fee_test.go +++ b/x/dynamic-fee/ante/fee_test.go @@ -7,7 +7,7 @@ import ( "cosmossdk.io/math" initiaapp "github.com/initia-labs/initia/app" - "github.com/initia-labs/initia/x/move/ante" + "github.com/initia-labs/initia/x/dynamic-fee/ante" "github.com/initia-labs/initia/x/move/types" cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" @@ -18,28 +18,17 @@ import ( var baseDenom = initiaapp.BondDenom type TestAnteKeeper struct { - pools map[string][]math.Int - weights map[string][]math.LegacyDec - baseDenom string - baseMinGasPrice math.LegacyDec - baseFee int64 + pools map[string][]math.Int + weights map[string][]math.LegacyDec + baseDenom string + baseGasPrice math.LegacyDec } -func (k TestAnteKeeper) HasDexPair(_ context.Context, denomQuote string) (bool, error) { - _, found := k.pools[denomQuote] - if !found { - return false, nil - } - - _, found = k.weights[denomQuote] - if !found { - return false, nil +func (k TestAnteKeeper) GetBaseSpotPrice(_ context.Context, denomQuote string) (quotePrice math.LegacyDec, err error) { + if denomQuote == k.baseDenom { + return math.LegacyOneDec(), nil } - return true, nil -} - -func (k TestAnteKeeper) GetBaseSpotPrice(_ context.Context, denomQuote string) (quotePrice math.LegacyDec, err error) { balances, found := k.pools[denomQuote] if !found { return math.LegacyZeroDec(), fmt.Errorf("not found") @@ -57,12 +46,8 @@ func (k TestAnteKeeper) BaseDenom(_ context.Context) (string, error) { return k.baseDenom, nil } -func (k TestAnteKeeper) BaseMinGasPrice(ctx context.Context) (math.LegacyDec, error) { - return k.baseMinGasPrice, nil -} - -func (k TestAnteKeeper) GetBaseFee(ctx context.Context) (int64, error) { - return k.baseFee, nil +func (k TestAnteKeeper) BaseGasPrice(ctx context.Context) (math.LegacyDec, error) { + return k.baseGasPrice, nil } func (suite *AnteTestSuite) TestEnsureMempoolFees() { @@ -83,10 +68,10 @@ func (suite *AnteTestSuite) TestEnsureMempoolFees() { // set price 0.5 base == 1 quote fc := ante.NewMempoolFeeChecker(TestAnteKeeper{ - pools: dexPools, - weights: dexWeights, - baseDenom: baseDenom, - baseMinGasPrice: math.LegacyZeroDec(), + pools: dexPools, + weights: dexWeights, + baseDenom: baseDenom, + baseGasPrice: math.LegacyZeroDec(), }) // keys and addresses @@ -145,10 +130,10 @@ func (suite *AnteTestSuite) TestEnsureMempoolFees() { // set high base_min_gas_price to test should be failed fc = ante.NewMempoolFeeChecker(TestAnteKeeper{ - pools: dexPools, - weights: dexWeights, - baseDenom: baseDenom, - baseMinGasPrice: math.LegacyNewDecWithPrec(4, 3), + pools: dexPools, + weights: dexWeights, + baseDenom: baseDenom, + baseGasPrice: math.LegacyNewDecWithPrec(4, 3), }) suite.txBuilder.SetFeeAmount(feeAmount) @@ -156,80 +141,3 @@ func (suite *AnteTestSuite) TestEnsureMempoolFees() { _, _, err = fc.CheckTxFeeWithMinGasPrices(suite.ctx, tx) suite.Require().NotNil(err, "Decorator should have errored on too low fee for local gasPrice") } - -func (suite *AnteTestSuite) TestEnsureMempoolFeesWithBaseFee() { - suite.SetupTest() // setup - suite.txBuilder = suite.clientCtx.TxConfig.NewTxBuilder() - - dexPools := make(map[string][]math.Int) - dexPools["atom"] = []math.Int{ - math.NewInt(10), // base - math.NewInt(20), // quote - } - - dexWeights := make(map[string][]math.LegacyDec) - dexWeights["atom"] = []math.LegacyDec{ - math.LegacyNewDecWithPrec(5, 1), // base - math.LegacyNewDecWithPrec(5, 1), // quote - } - - // set price 0.5 base == 1 quote - fc := ante.NewMempoolFeeChecker(TestAnteKeeper{ - pools: dexPools, - weights: dexWeights, - baseDenom: baseDenom, - baseMinGasPrice: math.LegacyZeroDec(), - baseFee: 200, - }) - - // keys and addresses - priv1, _, addr1 := testdata.KeyTestPubAddr() - - // msg and signatures - // gas price 0.0005 - msg := testdata.NewTestMsg(addr1) - feeAmount := sdk.NewCoins(sdk.NewCoin(baseDenom, math.NewInt(100)), sdk.NewCoin("atom", math.NewInt(200))) - gasLimit := uint64(200_000) - - suite.Require().NoError(suite.txBuilder.SetMsgs(msg)) - suite.txBuilder.SetFeeAmount(feeAmount) - suite.txBuilder.SetGasLimit(gasLimit) - - privs, accNums, accSeqs := []cryptotypes.PrivKey{priv1}, []uint64{0}, []uint64{0} - tx, err := suite.CreateTestTx(privs, accNums, accSeqs, suite.ctx.ChainID()) - suite.Require().NoError(err) - - suite.ctx = suite.ctx.WithIsCheckTx(true) - - // Base fee: 200 = 100(init) + 100(atom) - _, _, err = fc.CheckTxFeeWithMinGasPrices(suite.ctx, tx) - suite.Require().Nil(err) - - fc = ante.NewMempoolFeeChecker(TestAnteKeeper{ - pools: dexPools, - weights: dexWeights, - baseDenom: baseDenom, - baseMinGasPrice: math.LegacyZeroDec(), - baseFee: 400, - }) - - // Base fee: 400 > 100(init) + 100(atom) - _, _, err = fc.CheckTxFeeWithMinGasPrices(suite.ctx, tx) - suite.Require().NotNil(err) - - fc = ante.NewMempoolFeeChecker(TestAnteKeeper{ - pools: dexPools, - weights: dexWeights, - baseDenom: baseDenom, - baseMinGasPrice: math.LegacyZeroDec(), - baseFee: 150, - }) - - basePrice := sdk.NewDecCoinFromDec(baseDenom, math.LegacyNewDecWithPrec(4, 3)) - highGasPrice := []sdk.DecCoin{basePrice} - suite.ctx = suite.ctx.WithMinGasPrices(highGasPrice) - - // Base fee: 150 < 100(init) + 100(atom), but min gas price = 800 - _, _, err = fc.CheckTxFeeWithMinGasPrices(suite.ctx, tx) - suite.Require().NotNil(err) -} diff --git a/x/move/ante/fee_utils.go b/x/dynamic-fee/ante/fee_utils.go similarity index 100% rename from x/move/ante/fee_utils.go rename to x/dynamic-fee/ante/fee_utils.go diff --git a/x/move/ante/gas_prices.go b/x/dynamic-fee/ante/gas_prices.go similarity index 100% rename from x/move/ante/gas_prices.go rename to x/dynamic-fee/ante/gas_prices.go diff --git a/x/move/ante/gas_prices_test.go b/x/dynamic-fee/ante/gas_prices_test.go similarity index 96% rename from x/move/ante/gas_prices_test.go rename to x/dynamic-fee/ante/gas_prices_test.go index 068064962..709e2ee57 100644 --- a/x/move/ante/gas_prices_test.go +++ b/x/dynamic-fee/ante/gas_prices_test.go @@ -2,7 +2,7 @@ package ante_test import ( "cosmossdk.io/math" - "github.com/initia-labs/initia/x/move/ante" + "github.com/initia-labs/initia/x/dynamic-fee/ante" cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" "github.com/cosmos/cosmos-sdk/testutil/testdata" diff --git a/x/dynamic-fee/autocli.go b/x/dynamic-fee/autocli.go new file mode 100644 index 000000000..4fb96eb36 --- /dev/null +++ b/x/dynamic-fee/autocli.go @@ -0,0 +1,21 @@ +package dynamicfee + +import ( + autocliv1 "cosmossdk.io/api/cosmos/autocli/v1" + dynamicfeev1 "github.com/initia-labs/initia/api/initia/dynamicfee/v1" +) + +func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { + return &autocliv1.ModuleOptions{ + Query: &autocliv1.ServiceCommandDescriptor{ + Service: dynamicfeev1.Query_ServiceDesc.ServiceName, + RpcCommandOptions: []*autocliv1.RpcCommandOptions{ + { + RpcMethod: "Params", + Use: "params", + Short: "Query the current dynamic fee parameters", + }, + }, + }, + } +} diff --git a/x/dynamic-fee/client/cli/flags.go b/x/dynamic-fee/client/cli/flags.go new file mode 100644 index 000000000..80772f4f2 --- /dev/null +++ b/x/dynamic-fee/client/cli/flags.go @@ -0,0 +1,50 @@ +package cli + +import ( + "fmt" + + flag "github.com/spf13/pflag" + + "github.com/initia-labs/initia/x/move/types" +) + +const ( + FlagUpgradePolicy = "upgrade-policy" + FlagTypeArgs = "type-args" + FlagArgs = "args" +) + +// FlagSetUpgradePolicy Returns the FlagSet for upgrade policy related operations. +func FlagSetUpgradePolicy() *flag.FlagSet { + fs := flag.NewFlagSet("", flag.ContinueOnError) + fs.String(FlagUpgradePolicy, types.UpgradePolicy_name[int32(types.UpgradePolicy_COMPATIBLE)], + fmt.Sprintf(`The module upgrade policy, which should be one of "%s" and "%s")`, + types.UpgradePolicy_name[int32(types.UpgradePolicy_COMPATIBLE)], + types.UpgradePolicy_name[int32(types.UpgradePolicy_IMMUTABLE)], + )) + return fs +} + +// FlagSetArgs Returns the FlagSet for args related operations. +func FlagSetArgs() *flag.FlagSet { + fs := flag.NewFlagSet("", flag.ContinueOnError) + fs.String(FlagArgs, "", `The array of BCS arguments for the move function. +Example: '["address:0x1", "bool:true", "u8:0x01", "u128:1234", "vector:a,b,c,d"]'`) + return fs +} + +// FlagSetArgs Returns the FlagSet for args related operations. +func FlagSetJSONArgs() *flag.FlagSet { + fs := flag.NewFlagSet("", flag.ContinueOnError) + fs.String(FlagArgs, "", `The array of JSON arguments for the move function. +Example: '[0, true, "0x1", "1234", ["a","b","c","d"]]'`) + return fs +} + +// FlagSetTypeArgs Returns the FlagSet for type args related operations. +func FlagSetTypeArgs() *flag.FlagSet { + fs := flag.NewFlagSet("", flag.ContinueOnError) + fs.String(FlagTypeArgs, "", `The array of type arguments for the move function. +ex) '["0x1::BasicCoin::getBalance", "0x1::BasicCoin::getBalance"]'`) + return fs +} diff --git a/x/dynamic-fee/common_test.go b/x/dynamic-fee/common_test.go new file mode 100644 index 000000000..4f0674ddd --- /dev/null +++ b/x/dynamic-fee/common_test.go @@ -0,0 +1,191 @@ +package dynamicfee_test + +import ( + "slices" + "testing" + + initiaapp "github.com/initia-labs/initia/app" + customdistrtypes "github.com/initia-labs/initia/x/distribution/types" + "github.com/initia-labs/initia/x/move/types" + stakingtypes "github.com/initia-labs/initia/x/mstaking/types" + vmtypes "github.com/initia-labs/movevm/types" + + "github.com/stretchr/testify/require" + + "cosmossdk.io/math" + + "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" + "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" + cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" + testutilsims "github.com/cosmos/cosmos-sdk/testutil/sims" + sdk "github.com/cosmos/cosmos-sdk/types" + authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" + banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" + + abci "github.com/cometbft/cometbft/abci/types" + tmproto "github.com/cometbft/cometbft/proto/tendermint/types" +) + +// Bond denom should be set for staking test +const bondDenom = initiaapp.BondDenom +const secondBondDenom = "ulp" + +var ( + priv1 = secp256k1.GenPrivKey() + addr1 = sdk.AccAddress(priv1.PubKey().Address()) + priv2 = secp256k1.GenPrivKey() + addr2 = sdk.AccAddress(priv2.PubKey().Address()) + + valKey = ed25519.GenPrivKey() + + commissionRates = stakingtypes.NewCommissionRates(math.LegacyZeroDec(), math.LegacyZeroDec(), math.LegacyZeroDec()) + + genCoins = sdk.NewCoins(sdk.NewCoin(bondDenom, math.NewInt(5000000))).Sort() + bondCoin = sdk.NewCoin(bondDenom, math.NewInt(1_000_000)) + secondBondCoin = sdk.NewCoin(secondBondDenom, math.NewInt(1_000_000)) +) + +func checkBalance(t *testing.T, app *initiaapp.InitiaApp, addr sdk.AccAddress, balances sdk.Coins) { + ctxCheck := app.BaseApp.NewContext(true) + require.True(t, balances.Equal(app.BankKeeper.GetAllBalances(ctxCheck, addr))) +} + +func createApp(t *testing.T) *initiaapp.InitiaApp { + baseCoin := sdk.NewCoin(bondDenom, math.NewInt(1_000_000_000_000)) + quoteCoin := sdk.NewCoin("uusdc", math.NewInt(2_500_000_000_000)) + dexCoins := sdk.NewCoins(baseCoin, quoteCoin) + + app := initiaapp.SetupWithGenesisAccounts(nil, authtypes.GenesisAccounts{ + &authtypes.BaseAccount{Address: addr1.String()}, + &authtypes.BaseAccount{Address: addr2.String()}, + &authtypes.BaseAccount{Address: types.StdAddr.String()}, + }, + banktypes.Balance{Address: addr1.String(), Coins: genCoins}, + banktypes.Balance{Address: addr2.String(), Coins: genCoins}, + banktypes.Balance{Address: types.StdAddr.String(), Coins: dexCoins}, + ) + + checkBalance(t, app, addr1, genCoins) + checkBalance(t, app, addr2, genCoins) + checkBalance(t, app, types.StdAddr, dexCoins) + + _, err := app.FinalizeBlock(&abci.RequestFinalizeBlock{Height: app.LastBlockHeight() + 1}) + require.NoError(t, err) + + ctx := app.BaseApp.NewUncachedContext(false, tmproto.Header{}) + createDexPool(t, ctx, app, baseCoin, quoteCoin, math.LegacyNewDecWithPrec(8, 1), math.LegacyNewDecWithPrec(2, 1)) + + // set reward weight + distrParams := customdistrtypes.DefaultParams() + distrParams.RewardWeights = []customdistrtypes.RewardWeight{ + {Denom: bondDenom, Weight: math.LegacyOneDec()}, + } + require.NoError(t, app.DistrKeeper.Params.Set(ctx, distrParams)) + app.StakingKeeper.SetBondDenoms(ctx, []string{bondDenom, secondBondDenom}) + + // fund second bond coin + app.BankKeeper.SendCoins(ctx, types.StdAddr, addr1, sdk.NewCoins(secondBondCoin)) + + _, err = app.Commit() + require.NoError(t, err) + + // create validator + description := stakingtypes.NewDescription("foo_moniker", "", "", "", "") + createValidatorMsg, err := stakingtypes.NewMsgCreateValidator( + sdk.ValAddress(addr1).String(), valKey.PubKey(), sdk.NewCoins(bondCoin, secondBondCoin), description, commissionRates, + ) + require.NoError(t, err) + + err = executeMsgs(t, app, []sdk.Msg{createValidatorMsg}, []uint64{0}, []uint64{0}, priv1) + require.NoError(t, err) + + checkBalance(t, app, addr1, genCoins.Sub(bondCoin)) + + return app +} + +func executeMsgs(t *testing.T, app *initiaapp.InitiaApp, msgs []sdk.Msg, accountNum []uint64, sequenceNum []uint64, priv ...cryptotypes.PrivKey) error { + txGen := initiaapp.MakeEncodingConfig().TxConfig + header := tmproto.Header{Height: app.LastBlockHeight() + 1} + _, _, err := testutilsims.SignCheckDeliver(t, txGen, app.BaseApp, header, msgs, "", accountNum, sequenceNum, true, true, priv...) + return err +} + +func executeMsgsWithGasInfo(t *testing.T, app *initiaapp.InitiaApp, msgs []sdk.Msg, accountNum []uint64, sequenceNum []uint64, priv ...cryptotypes.PrivKey) (sdk.GasInfo, error) { + txGen := initiaapp.MakeEncodingConfig().TxConfig + header := tmproto.Header{Height: app.LastBlockHeight() + 1} + gas, _, err := testutilsims.SignCheckDeliver(t, txGen, app.BaseApp, header, msgs, "", accountNum, sequenceNum, true, true, priv...) + return gas, err +} + +func decToVmArgument(t *testing.T, val math.LegacyDec) []byte { + // big-endian bytes (bytes are cloned) + bz := val.BigInt().Bytes() + + // reverse bytes to little-endian + slices.Reverse(bz) + + // serialize bytes + bz, err := vmtypes.SerializeBytes(bz) + require.NoError(t, err) + + return bz +} + +func createDexPool( + t *testing.T, ctx sdk.Context, app *initiaapp.InitiaApp, + baseCoin sdk.Coin, quoteCoin sdk.Coin, + weightBase math.LegacyDec, weightQuote math.LegacyDec, +) (metadataLP vmtypes.AccountAddress) { + metadataBase, err := types.MetadataAddressFromDenom(baseCoin.Denom) + require.NoError(t, err) + + metadataQuote, err := types.MetadataAddressFromDenom(quoteCoin.Denom) + require.NoError(t, err) + + denomLP := "ulp" + + // + // prepare arguments + // + + name, err := vmtypes.SerializeString("LP Coin") + require.NoError(t, err) + + symbol, err := vmtypes.SerializeString(denomLP) + require.NoError(t, err) + + // 0.003 == 0.3% + swapFeeBz := decToVmArgument(t, math.LegacyNewDecWithPrec(3, 3)) + weightBaseBz := decToVmArgument(t, weightBase) + weightQuoteBz := decToVmArgument(t, weightQuote) + + baseAmount, err := vmtypes.SerializeUint64(baseCoin.Amount.Uint64()) + require.NoError(t, err) + + quoteAmount, err := vmtypes.SerializeUint64(quoteCoin.Amount.Uint64()) + require.NoError(t, err) + + err = app.MoveKeeper.ExecuteEntryFunction( + ctx, + vmtypes.StdAddress, + vmtypes.StdAddress, + "dex", + "create_pair_script", + []vmtypes.TypeTag{}, + [][]byte{ + name, + symbol, + swapFeeBz, + weightBaseBz, + weightQuoteBz, + metadataBase[:], + metadataQuote[:], + baseAmount, + quoteAmount, + }, + ) + require.NoError(t, err) + + return types.NamedObjectAddress(vmtypes.StdAddress, denomLP) +} diff --git a/x/dynamic-fee/keeper/ante.go b/x/dynamic-fee/keeper/ante.go new file mode 100644 index 000000000..a879cf6ff --- /dev/null +++ b/x/dynamic-fee/keeper/ante.go @@ -0,0 +1,32 @@ +package keeper + +import ( + "context" + + "cosmossdk.io/math" + "github.com/initia-labs/initia/x/dynamic-fee/types" +) + +type AnteKeeper struct { + *Keeper +} + +var _ types.AnteKeeper = AnteKeeper{} + +func NewAnteKeeper(k *Keeper) AnteKeeper { + return AnteKeeper{Keeper: k} +} + +func (k AnteKeeper) BaseDenom(ctx context.Context) (string, error) { + return k.Keeper.baseDenomKeeper.BaseDenom(ctx) +} + +func (k AnteKeeper) GetBaseSpotPrice(ctx context.Context, denom string) (math.LegacyDec, error) { + baseDenom, err := k.BaseDenom(ctx) + if err != nil { + return math.LegacyDec{}, err + } else if baseDenom == denom { + return math.LegacyOneDec(), nil + } + return k.Keeper.tokenPriceKeeper.GetBaseSpotPrice(ctx, denom) +} diff --git a/x/dynamic-fee/keeper/common_test.go b/x/dynamic-fee/keeper/common_test.go new file mode 100644 index 000000000..a182c58de --- /dev/null +++ b/x/dynamic-fee/keeper/common_test.go @@ -0,0 +1,693 @@ +package keeper_test + +import ( + "encoding/binary" + "encoding/hex" + "fmt" + "os" + "strings" + "testing" + "time" + + "github.com/cometbft/cometbft/crypto" + "github.com/cometbft/cometbft/crypto/ed25519" + "github.com/cometbft/cometbft/crypto/secp256k1" + tmproto "github.com/cometbft/cometbft/proto/tendermint/types" + + "github.com/cosmos/gogoproto/proto" + + ibcfeetypes "github.com/cosmos/ibc-go/v8/modules/apps/29-fee/types" + transfertypes "github.com/cosmos/ibc-go/v8/modules/apps/transfer/types" + "github.com/stretchr/testify/require" + + "cosmossdk.io/log" + "cosmossdk.io/math" + "cosmossdk.io/store" + "cosmossdk.io/store/metrics" + storetypes "cosmossdk.io/store/types" + "cosmossdk.io/x/tx/signing" + dbm "github.com/cosmos/cosmos-db" + "github.com/cosmos/cosmos-sdk/baseapp" + "github.com/cosmos/cosmos-sdk/codec" + codecaddress "github.com/cosmos/cosmos-sdk/codec/address" + codectypes "github.com/cosmos/cosmos-sdk/codec/types" + "github.com/cosmos/cosmos-sdk/runtime" + "github.com/cosmos/cosmos-sdk/std" + testutilsims "github.com/cosmos/cosmos-sdk/testutil/sims" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/module" + "github.com/cosmos/cosmos-sdk/x/auth" + authcodec "github.com/cosmos/cosmos-sdk/x/auth/codec" + authkeeper "github.com/cosmos/cosmos-sdk/x/auth/keeper" + "github.com/cosmos/cosmos-sdk/x/auth/tx" + authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" + authzkeeper "github.com/cosmos/cosmos-sdk/x/authz/keeper" + bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper" + banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" + distributiontypes "github.com/cosmos/cosmos-sdk/x/distribution/types" + govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" + govtypesv1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1" + slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types" + + ibcfee "github.com/cosmos/ibc-go/v8/modules/apps/29-fee" + ibctransfer "github.com/cosmos/ibc-go/v8/modules/apps/transfer" + ibcnfttransfer "github.com/initia-labs/initia/x/ibc/nft-transfer" + + initiaapp "github.com/initia-labs/initia/app" + initiaappparams "github.com/initia-labs/initia/app/params" + "github.com/initia-labs/initia/x/bank" + movebank "github.com/initia-labs/initia/x/bank/keeper" + "github.com/initia-labs/initia/x/distribution" + distrkeeper "github.com/initia-labs/initia/x/distribution/keeper" + customdistrtypes "github.com/initia-labs/initia/x/distribution/types" + "github.com/initia-labs/initia/x/gov" + govkeeper "github.com/initia-labs/initia/x/gov/keeper" + customgovtypes "github.com/initia-labs/initia/x/gov/types" + "github.com/initia-labs/initia/x/move" + moveconfig "github.com/initia-labs/initia/x/move/config" + movekeeper "github.com/initia-labs/initia/x/move/keeper" + movetypes "github.com/initia-labs/initia/x/move/types" + staking "github.com/initia-labs/initia/x/mstaking" + stakingkeeper "github.com/initia-labs/initia/x/mstaking/keeper" + stakingtypes "github.com/initia-labs/initia/x/mstaking/types" + reward "github.com/initia-labs/initia/x/reward" + rewardkeeper "github.com/initia-labs/initia/x/reward/keeper" + rewardtypes "github.com/initia-labs/initia/x/reward/types" + "github.com/initia-labs/initia/x/slashing" + + vmapi "github.com/initia-labs/movevm/api" + "github.com/initia-labs/movevm/precompile" + vmtypes "github.com/initia-labs/movevm/types" + + "github.com/skip-mev/connect/v2/x/oracle" + oraclekeeper "github.com/skip-mev/connect/v2/x/oracle/keeper" + oracletypes "github.com/skip-mev/connect/v2/x/oracle/types" + + dynamicfeekeeper "github.com/initia-labs/initia/x/dynamic-fee/keeper" + dynamicfeetypes "github.com/initia-labs/initia/x/dynamic-fee/types" +) + +var ModuleBasics = module.NewBasicManager( + auth.AppModuleBasic{}, + bank.AppModuleBasic{}, + staking.AppModuleBasic{}, + reward.AppModuleBasic{}, + distribution.AppModuleBasic{}, + gov.AppModuleBasic{}, + slashing.AppModuleBasic{}, + move.AppModuleBasic{}, + oracle.AppModuleBasic{}, + ibctransfer.AppModuleBasic{}, + ibcnfttransfer.AppModuleBasic{}, + ibcfee.AppModuleBasic{}, +) + +// Bond denom should be set for staking test +const bondDenom = initiaapp.BondDenom + +var ( + valPubKeys = testutilsims.CreateTestPubKeys(5) + + pubKeys = []crypto.PubKey{ + secp256k1.GenPrivKey().PubKey(), + secp256k1.GenPrivKey().PubKey(), + secp256k1.GenPrivKey().PubKey(), + secp256k1.GenPrivKey().PubKey(), + secp256k1.GenPrivKey().PubKey(), + } + + addrs = []sdk.AccAddress{ + sdk.AccAddress(pubKeys[0].Address()), + sdk.AccAddress(pubKeys[1].Address()), + sdk.AccAddress(pubKeys[2].Address()), + sdk.AccAddress(pubKeys[3].Address()), + sdk.AccAddress(pubKeys[4].Address()), + } + + valAddrs = []sdk.ValAddress{ + sdk.ValAddress(pubKeys[0].Address()), + sdk.ValAddress(pubKeys[1].Address()), + sdk.ValAddress(pubKeys[2].Address()), + sdk.ValAddress(pubKeys[3].Address()), + sdk.ValAddress(pubKeys[4].Address()), + } + + testDenoms = []string{ + "test1", + "test2", + "test3", + "test4", + "test5", + } + + initiaSupply = math.NewInt(100_000_000_000) +) + +func MakeTestCodec(t testing.TB) codec.Codec { + return MakeEncodingConfig(t).Codec +} + +func MakeEncodingConfig(_ testing.TB) initiaappparams.EncodingConfig { + interfaceRegistry, _ := codectypes.NewInterfaceRegistryWithOptions(codectypes.InterfaceRegistryOptions{ + ProtoFiles: proto.HybridResolver, + SigningOptions: signing.Options{ + AddressCodec: codecaddress.NewBech32Codec(sdk.GetConfig().GetBech32AccountAddrPrefix()), + ValidatorAddressCodec: codecaddress.NewBech32Codec(sdk.GetConfig().GetBech32ValidatorAddrPrefix()), + }, + }) + appCodec := codec.NewProtoCodec(interfaceRegistry) + legacyAmino := codec.NewLegacyAmino() + txConfig := tx.NewTxConfig(appCodec, tx.DefaultSignModes) + + std.RegisterInterfaces(interfaceRegistry) + std.RegisterLegacyAminoCodec(legacyAmino) + + ModuleBasics.RegisterLegacyAminoCodec(legacyAmino) + ModuleBasics.RegisterInterfaces(interfaceRegistry) + + return initiaappparams.EncodingConfig{ + InterfaceRegistry: interfaceRegistry, + Codec: appCodec, + TxConfig: txConfig, + Amino: legacyAmino, + } +} + +func initialTotalSupply() sdk.Coins { + faucetBalance := sdk.NewCoins(sdk.NewCoin(bondDenom, initiaSupply)) + for _, testDenom := range testDenoms { + faucetBalance = faucetBalance.Add(sdk.NewCoin(testDenom, initiaSupply)) + } + + return faucetBalance +} + +type TestFaucet struct { + t testing.TB + bankKeeper bankkeeper.Keeper + moveKeeper movekeeper.Keeper + sender sdk.AccAddress + balance sdk.Coins + minterModuleName string +} + +func NewTestFaucet(t testing.TB, ctx sdk.Context, bankKeeper bankkeeper.Keeper, moveKeeper movekeeper.Keeper, minterModuleName string, initiaSupply ...sdk.Coin) *TestFaucet { + require.NotEmpty(t, initiaSupply) + r := &TestFaucet{t: t, bankKeeper: bankKeeper, moveKeeper: moveKeeper, minterModuleName: minterModuleName} + _, _, addr := keyPubAddr() + r.sender = addr + r.Mint(ctx, addr, initiaSupply...) + r.balance = initiaSupply + return r +} + +func (f *TestFaucet) Mint(parentCtx sdk.Context, addr sdk.AccAddress, amounts ...sdk.Coin) { + amounts = sdk.Coins(amounts).Sort() + require.NotEmpty(f.t, amounts) + ctx := parentCtx.WithEventManager(sdk.NewEventManager()) // discard all faucet related events + err := f.bankKeeper.MintCoins(ctx, f.minterModuleName, amounts) + require.NoError(f.t, err) + err = f.bankKeeper.SendCoinsFromModuleToAccount(ctx, f.minterModuleName, addr, amounts) + require.NoError(f.t, err) + f.balance = f.balance.Add(amounts...) +} + +func (f *TestFaucet) Fund(parentCtx sdk.Context, receiver sdk.AccAddress, amounts ...sdk.Coin) { + require.NotEmpty(f.t, amounts) + // ensure faucet is always filled + if !f.balance.IsAllGTE(amounts) { + f.Mint(parentCtx, f.sender, amounts...) + } + ctx := parentCtx.WithEventManager(sdk.NewEventManager()) // discard all faucet related events + err := f.bankKeeper.SendCoins(ctx, f.sender, receiver, amounts) + require.NoError(f.t, err) + f.balance = f.balance.Sub(amounts...) +} + +func (f *TestFaucet) NewFundedAccount(ctx sdk.Context, amounts ...sdk.Coin) sdk.AccAddress { + _, _, addr := keyPubAddr() + f.Fund(ctx, addr, amounts...) + return addr +} + +type TestKeepers struct { + AccountKeeper authkeeper.AccountKeeper + StakingKeeper stakingkeeper.Keeper + DistKeeper distrkeeper.Keeper + BankKeeper bankkeeper.Keeper + GovKeeper govkeeper.Keeper + MoveKeeper movekeeper.Keeper + OracleKeeper oraclekeeper.Keeper + DynamicFeeKeeper dynamicfeekeeper.Keeper + EncodingConfig initiaappparams.EncodingConfig + Faucet *TestFaucet + MultiStore storetypes.CommitMultiStore +} + +// createDefaultTestInput common settings for createTestInput +func createDefaultTestInput(t testing.TB) (sdk.Context, TestKeepers) { + return createTestInput(t, false) +} + +// createTestInput encoders can be nil to accept the defaults, or set it to override some of the message handlers (like default) +func createTestInput(t testing.TB, isCheckTx bool) (sdk.Context, TestKeepers) { + return _createTestInput(t, isCheckTx, moveconfig.DefaultMoveConfig(), dbm.NewMemDB()) +} + +var keyCounter uint64 + +// we need to make this deterministic (same every test run), as encoded address size and thus gas cost, +// depends on the actual bytes (due to ugly CanonicalAddress encoding) +func keyPubAddr() (crypto.PrivKey, crypto.PubKey, sdk.AccAddress) { + keyCounter++ + seed := make([]byte, 8) + binary.BigEndian.PutUint64(seed, keyCounter) + + key := ed25519.GenPrivKeyFromSecret(seed) + pub := key.PubKey() + addr := sdk.AccAddress(pub.Address()) + return key, pub, addr +} + +// encoders can be nil to accept the defaults, or set it to override some of the message handlers (like default) +func _createTestInput( + t testing.TB, + isCheckTx bool, + moveConfig moveconfig.MoveConfig, + db dbm.DB, +) (sdk.Context, TestKeepers) { + keys := storetypes.NewKVStoreKeys( + authtypes.StoreKey, banktypes.StoreKey, stakingtypes.StoreKey, + rewardtypes.StoreKey, distributiontypes.StoreKey, slashingtypes.StoreKey, + govtypes.StoreKey, authzkeeper.StoreKey, movetypes.StoreKey, + oracletypes.StoreKey, dynamicfeetypes.StoreKey, + ) + ms := store.NewCommitMultiStore(db, log.NewNopLogger(), metrics.NewNoOpMetrics()) + for _, v := range keys { + ms.MountStoreWithDB(v, storetypes.StoreTypeIAVL, db) + } + memKeys := storetypes.NewMemoryStoreKeys() + for _, v := range memKeys { + ms.MountStoreWithDB(v, storetypes.StoreTypeMemory, db) + } + + require.NoError(t, ms.LoadLatestVersion()) + + ctx := sdk.NewContext(ms, tmproto.Header{ + Height: 1234567, + Time: time.Date(2020, time.April, 22, 12, 0, 0, 0, time.UTC), + }, isCheckTx, log.NewNopLogger()) + + encodingConfig := MakeEncodingConfig(t) + appCodec := encodingConfig.Codec + + moveKeeper := &movekeeper.Keeper{} + maccPerms := map[string][]string{ // module account permissions + authtypes.FeeCollectorName: nil, + distributiontypes.ModuleName: nil, + rewardtypes.ModuleName: nil, + stakingtypes.BondedPoolName: {authtypes.Burner, authtypes.Staking}, + stakingtypes.NotBondedPoolName: {authtypes.Burner, authtypes.Staking}, + govtypes.ModuleName: {authtypes.Burner}, + movetypes.MoveStakingModuleName: nil, + + // for testing + authtypes.Minter: {authtypes.Minter, authtypes.Burner}, + } + + ac := authcodec.NewBech32Codec(sdk.GetConfig().GetBech32AccountAddrPrefix()) + vc := authcodec.NewBech32Codec(sdk.GetConfig().GetBech32ValidatorAddrPrefix()) + cc := authcodec.NewBech32Codec(sdk.GetConfig().GetBech32ConsensusAddrPrefix()) + + accountKeeper := authkeeper.NewAccountKeeper( + appCodec, + runtime.NewKVStoreService(keys[authtypes.StoreKey]), // target store + authtypes.ProtoBaseAccount, // prototype + maccPerms, + ac, + sdk.GetConfig().GetBech32AccountAddrPrefix(), + authtypes.NewModuleAddress(govtypes.ModuleName).String(), + ) + blockedAddrs := make(map[string]bool) + for acc := range maccPerms { + blockedAddrs[authtypes.NewModuleAddress(acc).String()] = true + } + + bankKeeper := movebank.NewBaseKeeper( + appCodec, + runtime.NewKVStoreService(keys[banktypes.StoreKey]), + accountKeeper, + movekeeper.NewMoveBankKeeper(moveKeeper), + blockedAddrs, + authtypes.NewModuleAddress(govtypes.ModuleName).String(), + ) + require.NoError(t, bankKeeper.SetParams(ctx, banktypes.DefaultParams())) + + stakingKeeper := stakingkeeper.NewKeeper( + appCodec, + runtime.NewKVStoreService(keys[stakingtypes.StoreKey]), + accountKeeper, + bankKeeper, + movekeeper.NewVotingPowerKeeper(moveKeeper), + authtypes.NewModuleAddress(govtypes.ModuleName).String(), + vc, cc, + ) + stakingParams := stakingtypes.DefaultParams() + stakingParams.BondDenoms = []string{bondDenom} + require.NoError(t, stakingKeeper.SetParams(ctx, stakingParams)) + + rewardKeeper := rewardkeeper.NewKeeper( + appCodec, + runtime.NewKVStoreService(keys[rewardtypes.StoreKey]), + accountKeeper, + bankKeeper, + authtypes.FeeCollectorName, + authtypes.NewModuleAddress(govtypes.ModuleName).String(), + ) + rewardParams := rewardtypes.DefaultParams() + rewardParams.RewardDenom = bondDenom + require.NoError(t, rewardKeeper.SetParams(ctx, rewardParams)) + + distKeeper := distrkeeper.NewKeeper( + appCodec, + runtime.NewKVStoreService(keys[distributiontypes.StoreKey]), + accountKeeper, + bankKeeper, + stakingKeeper, + movekeeper.NewDexKeeper(moveKeeper), + authtypes.FeeCollectorName, + authtypes.NewModuleAddress(govtypes.ModuleName).String(), + ) + distrParams := customdistrtypes.DefaultParams() + distrParams.RewardWeights = []customdistrtypes.RewardWeight{ + {Denom: bondDenom, Weight: math.LegacyOneDec()}, + } + require.NoError(t, distKeeper.Params.Set(ctx, distrParams)) + stakingKeeper.SetHooks(distKeeper.Hooks()) + + // set genesis items required for distribution + require.NoError(t, distKeeper.FeePool.Set(ctx, distributiontypes.InitialFeePool())) + + accountKeeper.GetModuleAccount(ctx, movetypes.MoveStakingModuleName) + + oracleKeeper := oraclekeeper.NewKeeper( + runtime.NewKVStoreService(keys[oracletypes.StoreKey]), + appCodec, + nil, + authtypes.NewModuleAddress(govtypes.ModuleName), + ) + + queryRouter := baseapp.NewGRPCQueryRouter() + queryRouter.SetInterfaceRegistry(encodingConfig.InterfaceRegistry) + + *moveKeeper = *movekeeper.NewKeeper( + appCodec, + runtime.NewKVStoreService(keys[movetypes.StoreKey]), + accountKeeper, + bankKeeper, + &oracleKeeper, + TestMsgRouter{}, + queryRouter, + moveConfig, + distKeeper, + stakingKeeper, + rewardKeeper, + distKeeper, + authtypes.FeeCollectorName, + authtypes.NewModuleAddress(govtypes.ModuleName).String(), + ac, vc, + ) + moveParams := movetypes.DefaultParams() + moveParams.BaseDenom = bondDenom + + require.NoError(t, moveKeeper.SetRawParams(ctx, moveParams.ToRaw())) + stakingKeeper.SetSlashingHooks(moveKeeper.Hooks()) + + dynamicFeeKeeper := dynamicfeekeeper.NewKeeper( + appCodec, + runtime.NewKVStoreService(keys[dynamicfeetypes.StoreKey]), + movekeeper.NewDexKeeper(moveKeeper), + moveKeeper, + moveKeeper, + ac, + authtypes.NewModuleAddress(govtypes.ModuleName).String(), + ) + require.NoError(t, dynamicFeeKeeper.SetParams(ctx, dynamicfeetypes.Params{ + MinBaseGasPrice: math.LegacyNewDecWithPrec(1, 3), + MaxBaseGasPrice: math.LegacyNewDec(200), + BaseGasPrice: math.LegacyNewDecWithPrec(1, 2), + TargetGas: 100000, + MaxChangeRate: math.LegacyNewDecWithPrec(1, 1), + })) + + // load stdlib module bytes + moduleBytes, err := precompile.ReadStdlib() + require.NoError(t, err) + + // append test module + moduleBytes = append(moduleBytes, basicCoinModule) + + err = moveKeeper.Initialize(ctx, moduleBytes, moveParams.AllowedPublishers, bondDenom) + require.NoError(t, err) + + faucet := NewTestFaucet(t, ctx, bankKeeper, *moveKeeper, authtypes.Minter, initialTotalSupply()...) + + // set some funds to pay out validatores, based on code from: + // https://github.com/cosmos/cosmos-sdk/blob/fea231556aee4d549d7551a6190389c4328194eb/x/distribution/keeper/keeper_test.go#L50-L57 + distrAcc := distKeeper.GetDistributionAccount(ctx) + faucet.Fund(ctx, distrAcc.GetAddress(), sdk.NewCoin(bondDenom, math.NewInt(2000000))) + accountKeeper.SetModuleAccount(ctx, distrAcc) + + // register bank & move + msgRouter := baseapp.NewMsgServiceRouter() + msgRouter.SetInterfaceRegistry(encodingConfig.InterfaceRegistry) + + govConfig := govtypes.DefaultConfig() + govKeeper := govkeeper.NewKeeper( + appCodec, + runtime.NewKVStoreService(keys[govtypes.StoreKey]), + accountKeeper, + bankKeeper, + stakingKeeper, + distKeeper, + movekeeper.NewVestingKeeper(moveKeeper), + msgRouter, + govConfig, + authtypes.NewModuleAddress(govtypes.ModuleName).String(), + ) + + require.NoError(t, govKeeper.ProposalID.Set(ctx, govtypesv1.DefaultStartingProposalID)) + require.NoError(t, govKeeper.Params.Set(ctx, customgovtypes.DefaultParams())) + + cfg := sdk.GetConfig() + cfg.SetAddressVerifier(initiaapp.VerifyAddressLen()) + + am := module.NewManager( // minimal module set that we use for message/ query tests + bank.NewAppModule(appCodec, bankKeeper, accountKeeper), + staking.NewAppModule(appCodec, *stakingKeeper), + distribution.NewAppModule(appCodec, *distKeeper), + gov.NewAppModule(appCodec, govKeeper, accountKeeper, bankKeeper), + ) + am.RegisterServices(module.NewConfigurator(appCodec, msgRouter, queryRouter)) //nolint:errcheck + movetypes.RegisterMsgServer(msgRouter, movekeeper.NewMsgServerImpl(moveKeeper)) + movetypes.RegisterQueryServer(queryRouter, movekeeper.NewQuerier(moveKeeper)) + + keepers := TestKeepers{ + AccountKeeper: accountKeeper, + StakingKeeper: *stakingKeeper, + DistKeeper: *distKeeper, + MoveKeeper: *moveKeeper, + BankKeeper: bankKeeper, + GovKeeper: *govKeeper, + OracleKeeper: oracleKeeper, + DynamicFeeKeeper: *dynamicFeeKeeper, + // NftTransferKeeper: nftTransferKeeper, + EncodingConfig: encodingConfig, + Faucet: faucet, + MultiStore: ms, + } + return ctx, keepers +} + +var basicCoinModule []byte +var basicCoinModuleAbi string +var stdCoinTestModule []byte +var basicCoinMintScript []byte +var tableGeneratorModule []byte +var testAddressModule []byte +var vestingModule []byte +var submsgModule []byte + +func init() { + basicCoinModule = ReadMoveFile("BasicCoin") + basicCoinModuleAbi = "{\"address\":\"0x1\",\"name\":\"BasicCoin\",\"friends\":[],\"exposed_functions\":[{\"name\":\"get\",\"visibility\":\"public\",\"is_entry\":false,\"is_view\":true,\"generic_type_params\":[{\"constraints\":[]}],\"params\":[\"address\"],\"return\":[\"u64\"]},{\"name\":\"get_coin\",\"visibility\":\"public\",\"is_entry\":false,\"is_view\":true,\"generic_type_params\":[{\"constraints\":[]}],\"params\":[\"address\"],\"return\":[\"0x1::BasicCoin::Coin\"]},{\"name\":\"mint\",\"visibility\":\"public\",\"is_entry\":true,\"is_view\":false,\"generic_type_params\":[{\"constraints\":[]}],\"params\":[\"signer\",\"u64\"],\"return\":[]},{\"name\":\"number\",\"visibility\":\"public\",\"is_entry\":false,\"is_view\":true,\"generic_type_params\":[],\"params\":[],\"return\":[\"u64\"]}],\"structs\":[{\"name\":\"Coin\",\"is_native\":false,\"abilities\":[\"copy\",\"key\"],\"generic_type_params\":[{\"constraints\":[],\"is_phantom\":true}],\"fields\":[{\"name\":\"value\",\"type\":\"u64\"},{\"name\":\"test\",\"type\":\"bool\"}]},{\"name\":\"Initia\",\"is_native\":false,\"abilities\":[],\"generic_type_params\":[],\"fields\":[{\"name\":\"dummy_field\",\"type\":\"bool\"}]},{\"name\":\"MintEvent\",\"is_native\":false,\"abilities\":[\"drop\",\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"account\",\"type\":\"address\"},{\"name\":\"amount\",\"type\":\"u64\"},{\"name\":\"coin_type\",\"type\":\"0x1::string::String\"}]},{\"name\":\"ViewEvent\",\"is_native\":false,\"abilities\":[\"drop\",\"store\"],\"generic_type_params\":[],\"fields\":[{\"name\":\"data\",\"type\":\"0x1::string::String\"}]}]}" + stdCoinTestModule = ReadMoveFile("StdCoinTest") + tableGeneratorModule = ReadMoveFile("TableGenerator") + testAddressModule = ReadMoveFile("TestAddress") + vestingModule = ReadMoveFile("Vesting") + submsgModule = ReadMoveFile("submsg") + + basicCoinMintScript = ReadScriptFile("main") +} + +func ReadMoveFile(filename string) []byte { + path := "../../move/keeper/binaries/" + filename + ".mv" + b, err := os.ReadFile(path) + if err != nil { + panic(err) + } + return b +} + +func ReadScriptFile(filename string) []byte { + path := "../../move/keeper/binaries/" + filename + ".mv" + b, err := os.ReadFile(path) + if err != nil { + panic(err) + } + return b +} + +type TestMsgRouter struct{} + +func (router TestMsgRouter) Handler(msg sdk.Msg) baseapp.MsgServiceHandler { + return router.HandlerByTypeURL(sdk.MsgTypeURL(msg)) +} + +func (router TestMsgRouter) HandlerByTypeURL(typeURL string) baseapp.MsgServiceHandler { + switch typeURL { + case sdk.MsgTypeURL(&movetypes.MsgExecute{}): + return func(ctx sdk.Context, _msg sdk.Msg) (*sdk.Result, error) { + msg := _msg.(*movetypes.MsgExecute) + + argStrs := []string{} + for _, arg := range msg.Args { + argStrs = append(argStrs, string(arg)) + } + + ctx.EventManager().EmitEvent(sdk.NewEvent("move_execute", + sdk.NewAttribute("sender", msg.Sender), + sdk.NewAttribute("module_addr", msg.ModuleAddress), + sdk.NewAttribute("module_name", msg.ModuleName), + sdk.NewAttribute("function_name", msg.FunctionName), + sdk.NewAttribute("type_args", strings.Join(msg.TypeArgs, ",")), + sdk.NewAttribute("args", strings.Join(argStrs, ",")), + )) + + return sdk.WrapServiceResult(ctx, &stakingtypes.MsgDelegateResponse{}, nil) + } + case sdk.MsgTypeURL(&movetypes.MsgExecuteJSON{}): + return func(ctx sdk.Context, _msg sdk.Msg) (*sdk.Result, error) { + msg := _msg.(*movetypes.MsgExecuteJSON) + + ctx.EventManager().EmitEvent(sdk.NewEvent("move_execute_with_json", + sdk.NewAttribute("sender", msg.Sender), + sdk.NewAttribute("module_addr", msg.ModuleAddress), + sdk.NewAttribute("module_name", msg.ModuleName), + sdk.NewAttribute("function_name", msg.FunctionName), + sdk.NewAttribute("type_args", strings.Join(msg.TypeArgs, ",")), + sdk.NewAttribute("args", strings.Join(msg.Args, ",")), + )) + + if msg.FunctionName == "fail" { + return nil, fmt.Errorf("fail") + } + + return sdk.WrapServiceResult(ctx, &stakingtypes.MsgDelegateResponse{}, nil) + } + case sdk.MsgTypeURL(&movetypes.MsgScript{}): + return func(ctx sdk.Context, _msg sdk.Msg) (*sdk.Result, error) { + msg := _msg.(*movetypes.MsgScript) + + argStrs := []string{} + for _, arg := range msg.Args { + argStrs = append(argStrs, string(arg)) + } + + ctx.EventManager().EmitEvent(sdk.NewEvent("move_script", + sdk.NewAttribute("sender", msg.Sender), + sdk.NewAttribute("code_bytes", hex.EncodeToString(msg.CodeBytes)), + sdk.NewAttribute("type_args", strings.Join(msg.TypeArgs, ",")), + sdk.NewAttribute("args", strings.Join(argStrs, ",")), + )) + + return sdk.WrapServiceResult(ctx, &stakingtypes.MsgDelegateResponse{}, nil) + } + case sdk.MsgTypeURL(&movetypes.MsgScriptJSON{}): + return func(ctx sdk.Context, _msg sdk.Msg) (*sdk.Result, error) { + msg := _msg.(*movetypes.MsgScriptJSON) + + ctx.EventManager().EmitEvent(sdk.NewEvent("move_script_with_json", + sdk.NewAttribute("sender", msg.Sender), + sdk.NewAttribute("code_bytes", hex.EncodeToString(msg.CodeBytes)), + sdk.NewAttribute("type_args", strings.Join(msg.TypeArgs, ",")), + sdk.NewAttribute("args", strings.Join(msg.Args, ",")), + )) + + return sdk.WrapServiceResult(ctx, &stakingtypes.MsgDelegateResponse{}, nil) + } + case sdk.MsgTypeURL(&stakingtypes.MsgDelegate{}): + return func(ctx sdk.Context, _msg sdk.Msg) (*sdk.Result, error) { + msg := _msg.(*stakingtypes.MsgDelegate) + ctx.EventManager().EmitEvent(sdk.NewEvent("delegate", + sdk.NewAttribute("delegator_address", msg.DelegatorAddress), + sdk.NewAttribute("validator_address", msg.ValidatorAddress), + sdk.NewAttribute("amount", msg.Amount.String()), + )) + + return sdk.WrapServiceResult(ctx, &stakingtypes.MsgDelegateResponse{}, nil) + } + case sdk.MsgTypeURL(&distributiontypes.MsgFundCommunityPool{}): + return func(ctx sdk.Context, _msg sdk.Msg) (*sdk.Result, error) { + msg := _msg.(*distributiontypes.MsgFundCommunityPool) + ctx.EventManager().EmitEvent(sdk.NewEvent("fund_community_pool", + sdk.NewAttribute("depositor_address", msg.Depositor), + sdk.NewAttribute("amount", msg.Amount.String()), + )) + + return sdk.WrapServiceResult(ctx, &stakingtypes.MsgDelegateResponse{}, nil) + } + case sdk.MsgTypeURL(&transfertypes.MsgTransfer{}): + return func(ctx sdk.Context, _msg sdk.Msg) (*sdk.Result, error) { + msg := _msg.(*transfertypes.MsgTransfer) + ctx.EventManager().EmitEvent(sdk.NewEvent("transfer", + sdk.NewAttribute("sender", msg.Sender), + sdk.NewAttribute("receiver", msg.Receiver), + sdk.NewAttribute("token", msg.Token.String()), + sdk.NewAttribute("source_port", msg.SourcePort), + sdk.NewAttribute("source_channel", msg.SourceChannel), + sdk.NewAttribute("timeout_height", msg.TimeoutHeight.String()), + sdk.NewAttribute("timeout_timestamp", fmt.Sprint(msg.TimeoutTimestamp)), + sdk.NewAttribute("memo", msg.Memo), + )) + + return sdk.WrapServiceResult(ctx, &stakingtypes.MsgDelegateResponse{}, nil) + } + case sdk.MsgTypeURL(&ibcfeetypes.MsgPayPacketFee{}): + return func(ctx sdk.Context, _msg sdk.Msg) (*sdk.Result, error) { + msg := _msg.(*ibcfeetypes.MsgPayPacketFee) + ctx.EventManager().EmitEvent(sdk.NewEvent("pay_fee", + sdk.NewAttribute("signer", msg.Signer), + sdk.NewAttribute("source_port", msg.SourcePortId), + sdk.NewAttribute("source_channel", msg.SourceChannelId), + sdk.NewAttribute("recv_fee", msg.Fee.RecvFee.String()), + sdk.NewAttribute("ack_fee", msg.Fee.AckFee.String()), + sdk.NewAttribute("timeout_fee", msg.Fee.TimeoutFee.String()), + sdk.NewAttribute("relayers", strings.Join(msg.Relayers, ",")), + )) + + return sdk.WrapServiceResult(ctx, &stakingtypes.MsgDelegateResponse{}, nil) + } + } + + panic("handler not registered") +} + +func MustConvertStringToTypeTag(str string) vmtypes.TypeTag { + tt, err := vmapi.TypeTagFromString(str) + if err != nil { + panic(err) + } + + return tt +} diff --git a/x/dynamic-fee/keeper/gas_price.go b/x/dynamic-fee/keeper/gas_price.go new file mode 100644 index 000000000..224222137 --- /dev/null +++ b/x/dynamic-fee/keeper/gas_price.go @@ -0,0 +1,70 @@ +package keeper + +import ( + "context" + "fmt" + + sdk "github.com/cosmos/cosmos-sdk/types" + + "github.com/initia-labs/initia/tx" +) + +var _ tx.GasPriceKeeper = Keeper{} + +// GasPrices return gas prices for all whitelisted denoms +func (k Keeper) GasPrices( + ctx context.Context, +) (sdk.DecCoins, error) { + params, err := k.GetParams(ctx) + if err != nil { + return nil, err + } + baseGasPrice := params.BaseGasPrice + + baseDenom, err := k.baseDenomKeeper.BaseDenom(ctx) + if err != nil { + return nil, err + } + + whitelistedTokens, err := k.whitelistKeeper.GetWhitelistedTokens(ctx) + if err != nil { + return nil, err + } + + gasPrices := sdk.NewDecCoins(sdk.NewDecCoinFromDec(baseDenom, baseGasPrice)) + for _, denom := range whitelistedTokens { + baseSpotPrice, err := k.tokenPriceKeeper.GetBaseSpotPrice(ctx, denom) + if err != nil { + return nil, err + } + if baseSpotPrice.IsZero() { + return nil, fmt.Errorf("baseSpotPrice is zero: %s", denom) + } + + gasPrice := baseGasPrice.Quo(baseSpotPrice) + gasPrices = gasPrices.Add(sdk.NewDecCoinFromDec(denom, gasPrice)) + } + return gasPrices, nil +} + +// GasPrice return gas price for the given denom +func (k Keeper) GasPrice( + ctx context.Context, + denom string, +) (sdk.DecCoin, error) { + params, err := k.GetParams(ctx) + if err != nil { + return sdk.DecCoin{}, err + } + baseGasPrice := params.BaseGasPrice + + baseSpotPrice, err := k.tokenPriceKeeper.GetBaseSpotPrice(ctx, denom) + if err != nil { + return sdk.DecCoin{}, err + } + if baseSpotPrice.IsZero() { + return sdk.DecCoin{}, fmt.Errorf("baseSpotPrice is zero: %s", denom) + } + + return sdk.NewDecCoinFromDec(denom, baseGasPrice.Quo(baseSpotPrice)), nil +} diff --git a/x/dynamic-fee/keeper/genesis.go b/x/dynamic-fee/keeper/genesis.go new file mode 100644 index 000000000..1d2d9fcfb --- /dev/null +++ b/x/dynamic-fee/keeper/genesis.go @@ -0,0 +1,28 @@ +package keeper + +import ( + "context" + + "github.com/initia-labs/initia/x/dynamic-fee/types" +) + +// InitGenesis sets supply information for genesis. +func (k Keeper) InitGenesis(ctx context.Context, moduleNames []string, genState types.GenesisState) error { + params := genState.GetParams() + if err := k.SetParams(ctx, params); err != nil { + return err + } + return nil +} + +// ExportGenesis export genesis state +func (k Keeper) ExportGenesis(ctx context.Context) *types.GenesisState { + var genState types.GenesisState + + var err error + genState.Params, err = k.GetParams(ctx) + if err != nil { + panic(err) + } + return &genState +} diff --git a/x/dynamic-fee/keeper/keeper.go b/x/dynamic-fee/keeper/keeper.go new file mode 100644 index 000000000..72f82f03c --- /dev/null +++ b/x/dynamic-fee/keeper/keeper.go @@ -0,0 +1,117 @@ +package keeper + +import ( + "context" + + "github.com/cosmos/cosmos-sdk/codec" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/initia-labs/initia/x/dynamic-fee/types" + + "cosmossdk.io/collections" + "cosmossdk.io/core/address" + corestoretypes "cosmossdk.io/core/store" + "cosmossdk.io/math" +) + +type Keeper struct { + cdc codec.Codec + storeService corestoretypes.KVStoreService + + Schema collections.Schema + + Params collections.Item[types.Params] + + tokenPriceKeeper types.TokenPriceKeeper + whitelistKeeper types.WhitelistKeeper + baseDenomKeeper types.BaseDenomKeeper + + ac address.Codec + authority string +} + +func NewKeeper( + cdc codec.Codec, + storeService corestoretypes.KVStoreService, + tokenPriceKeeper types.TokenPriceKeeper, + whitelistKeeper types.WhitelistKeeper, + baseDenomKeeper types.BaseDenomKeeper, + ac address.Codec, + authority string, +) *Keeper { + sb := collections.NewSchemaBuilder(storeService) + k := &Keeper{ + cdc: cdc, + storeService: storeService, + + Params: collections.NewItem(sb, types.ParamsKey, "params", codec.CollValue[types.Params](cdc)), + + tokenPriceKeeper: tokenPriceKeeper, + whitelistKeeper: whitelistKeeper, + baseDenomKeeper: baseDenomKeeper, + ac: ac, + authority: authority, + } + schema, err := sb.Build() + if err != nil { + panic(err) + } + k.Schema = schema + + return k +} + +func (k Keeper) GetAuthority() string { + return k.authority +} + +func (k Keeper) GetTokenPriceKeeper() types.TokenPriceKeeper { + return k.tokenPriceKeeper +} + +func (k Keeper) GetWhitelistKeeper() types.WhitelistKeeper { + return k.whitelistKeeper +} + +func (k Keeper) GetBaseDenomKeeper() types.BaseDenomKeeper { + return k.baseDenomKeeper +} + +func (k Keeper) SetParams(ctx context.Context, params types.Params) error { + return k.Params.Set(ctx, params) +} + +func (k Keeper) GetParams(ctx context.Context) (types.Params, error) { + return k.Params.Get(ctx) +} + +func (k Keeper) BaseGasPrice(ctx context.Context) (math.LegacyDec, error) { + params, err := k.Params.Get(ctx) + if err != nil { + return math.LegacyDec{}, err + } + + return params.BaseGasPrice, nil +} + +// this should be called in EndBlocker +func (k Keeper) UpdateBaseGasPrice(ctx sdk.Context) error { + params, err := k.Params.Get(ctx) + if err != nil { + return err + } + + gasUsed := ctx.BlockGasMeter().GasConsumed() + + // baseFeeMultiplier = (gasUsed - targetGas) / targetGas * maxChangeRate + 1 + baseFeeMultiplier := math.LegacyNewDec(int64(gasUsed) - params.TargetGas).QuoInt64(params.TargetGas).Mul(params.MaxChangeRate).Add(math.OneInt().ToLegacyDec()) + newBaseGasPrice := params.BaseGasPrice.Mul(baseFeeMultiplier) + if newBaseGasPrice.LT(params.MinBaseGasPrice) { + newBaseGasPrice = params.MinBaseGasPrice + } + if newBaseGasPrice.GT(params.MaxBaseGasPrice) { + newBaseGasPrice = params.MaxBaseGasPrice + } + + params.BaseGasPrice = newBaseGasPrice + return k.SetParams(ctx, params) +} diff --git a/x/dynamic-fee/keeper/keeper_test.go b/x/dynamic-fee/keeper/keeper_test.go new file mode 100644 index 000000000..62bfd00a7 --- /dev/null +++ b/x/dynamic-fee/keeper/keeper_test.go @@ -0,0 +1,57 @@ +package keeper_test + +import ( + "testing" + + "cosmossdk.io/math" + storetypes "cosmossdk.io/store/types" + "github.com/stretchr/testify/require" + + "github.com/initia-labs/initia/x/dynamic-fee/types" +) + +func Test_UpdateBaseFee(t *testing.T) { + ctx, input := createDefaultTestInput(t) + + err := input.DynamicFeeKeeper.SetParams(ctx, types.Params{ + MinBaseGasPrice: math.LegacyNewDecWithPrec(1, 3), + MaxBaseGasPrice: math.LegacyNewDec(200), + BaseGasPrice: math.LegacyNewDecWithPrec(1, 2), + TargetGas: 100000, + MaxChangeRate: math.LegacyNewDecWithPrec(1, 1), + }) + require.NoError(t, err) + + baseGasPrice, err := input.DynamicFeeKeeper.BaseGasPrice(ctx) + require.Equal(t, math.LegacyNewDecWithPrec(1, 2), baseGasPrice) + + ctx = ctx.WithBlockGasMeter(storetypes.NewInfiniteGasMeter()) + ctx.BlockGasMeter().ConsumeGas(100000, "test") + + // update base fee + err = input.DynamicFeeKeeper.UpdateBaseGasPrice(ctx) + require.NoError(t, err) + + baseGasPrice, err = input.DynamicFeeKeeper.BaseGasPrice(ctx) + require.Equal(t, math.LegacyNewDecWithPrec(1, 2), baseGasPrice) + + ctx = ctx.WithBlockGasMeter(storetypes.NewInfiniteGasMeter()) + ctx.BlockGasMeter().ConsumeGas(200000, "test") + + // update base fee + err = input.DynamicFeeKeeper.UpdateBaseGasPrice(ctx) + require.NoError(t, err) + + baseGasPrice, err = input.DynamicFeeKeeper.BaseGasPrice(ctx) + require.Equal(t, math.LegacyNewDecWithPrec(11, 3), baseGasPrice) + + ctx = ctx.WithBlockGasMeter(storetypes.NewInfiniteGasMeter()) + ctx.BlockGasMeter().ConsumeGas(0, "test") + + // update base fee + err = input.DynamicFeeKeeper.UpdateBaseGasPrice(ctx) + require.NoError(t, err) + + baseGasPrice, err = input.DynamicFeeKeeper.BaseGasPrice(ctx) + require.Equal(t, math.LegacyNewDecWithPrec(99, 4), baseGasPrice) +} diff --git a/x/dynamic-fee/keeper/msg_server.go b/x/dynamic-fee/keeper/msg_server.go new file mode 100644 index 000000000..3495fc984 --- /dev/null +++ b/x/dynamic-fee/keeper/msg_server.go @@ -0,0 +1,43 @@ +package keeper + +import ( + "context" + "time" + + "cosmossdk.io/errors" + + "github.com/cosmos/cosmos-sdk/telemetry" + sdk "github.com/cosmos/cosmos-sdk/types" + govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" + + "github.com/initia-labs/initia/x/dynamic-fee/types" +) + +type MsgServer struct { + *Keeper +} + +var _ types.MsgServer = MsgServer{} + +// NewMsgServerImpl return MsgServer instance +func NewMsgServerImpl(k *Keeper) MsgServer { + return MsgServer{k} +} + +func (ms MsgServer) UpdateParams(context context.Context, req *types.MsgUpdateParams) (*types.MsgUpdateParamsResponse, error) { + defer telemetry.MeasureSince(time.Now(), "move", "msg", "update-params") + if ms.authority != req.Authority { + return nil, errors.Wrapf(govtypes.ErrInvalidSigner, "invalid authority; expected %s, got %s", ms.authority, req.Authority) + } + + ctx := sdk.UnwrapSDKContext(context) + if err := req.Validate(ms.ac); err != nil { + return nil, err + } + + if err := ms.SetParams(ctx, req.Params); err != nil { + return nil, err + } + + return &types.MsgUpdateParamsResponse{}, nil +} diff --git a/x/dynamic-fee/keeper/msg_server_test.go b/x/dynamic-fee/keeper/msg_server_test.go new file mode 100644 index 000000000..8a72e4143 --- /dev/null +++ b/x/dynamic-fee/keeper/msg_server_test.go @@ -0,0 +1,33 @@ +package keeper_test + +import ( + "testing" + + "cosmossdk.io/math" + "github.com/stretchr/testify/require" + + "github.com/initia-labs/initia/x/dynamic-fee/keeper" + "github.com/initia-labs/initia/x/dynamic-fee/types" +) + +func Test_UpdateParams(t *testing.T) { + ctx, input := createDefaultTestInput(t) + ms := keeper.NewMsgServerImpl(&input.DynamicFeeKeeper) + + msg := &types.MsgUpdateParams{ + Authority: input.DynamicFeeKeeper.GetAuthority(), + Params: types.Params{ + BaseGasPrice: math.LegacyNewDecWithPrec(1, 2), + MinBaseGasPrice: math.LegacyNewDecWithPrec(1, 3), + MaxBaseGasPrice: math.LegacyNewDec(200), + MaxChangeRate: math.LegacyNewDecWithPrec(10, 2), + TargetGas: 1_000_000, + }, + } + _, err := ms.UpdateParams(ctx, msg) + require.NoError(t, err) + + params, err := input.DynamicFeeKeeper.GetParams(ctx) + require.NoError(t, err) + require.Equal(t, msg.Params, params) +} diff --git a/x/dynamic-fee/keeper/querier.go b/x/dynamic-fee/keeper/querier.go new file mode 100644 index 000000000..ab088ac3d --- /dev/null +++ b/x/dynamic-fee/keeper/querier.go @@ -0,0 +1,29 @@ +package keeper + +import ( + "context" + + "github.com/initia-labs/initia/x/dynamic-fee/types" +) + +type Querier struct { + *Keeper +} + +var _ types.QueryServer = &Querier{} + +// NewQuerier return new Querier instance +func NewQuerier(k *Keeper) Querier { + return Querier{k} +} + +func (q Querier) Params(ctx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error) { + params, err := q.GetParams(ctx) + if err != nil { + return nil, err + } + + return &types.QueryParamsResponse{ + Params: params, + }, nil +} diff --git a/x/dynamic-fee/keeper/querier_test.go b/x/dynamic-fee/keeper/querier_test.go new file mode 100644 index 000000000..7a675cbda --- /dev/null +++ b/x/dynamic-fee/keeper/querier_test.go @@ -0,0 +1,22 @@ +package keeper_test + +import ( + "testing" + + "github.com/stretchr/testify/require" + + "github.com/initia-labs/initia/x/dynamic-fee/keeper" + "github.com/initia-labs/initia/x/dynamic-fee/types" +) + +func TestParams(t *testing.T) { + ctx, input := createDefaultTestInput(t) + + querier := keeper.NewQuerier(&input.DynamicFeeKeeper) + params, err := querier.Params(ctx, &types.QueryParamsRequest{}) + require.NoError(t, err) + + expectedParams, err := input.DynamicFeeKeeper.GetParams(ctx) + require.NoError(t, err) + require.Equal(t, expectedParams, params.Params) +} diff --git a/x/dynamic-fee/module.go b/x/dynamic-fee/module.go new file mode 100644 index 000000000..46412b6cf --- /dev/null +++ b/x/dynamic-fee/module.go @@ -0,0 +1,139 @@ +package dynamicfee + +import ( + "context" + "encoding/json" + + "cosmossdk.io/core/address" + "cosmossdk.io/core/appmodule" + "github.com/grpc-ecosystem/grpc-gateway/runtime" + + "github.com/cosmos/cosmos-sdk/client" + "github.com/cosmos/cosmos-sdk/codec" + cdctypes "github.com/cosmos/cosmos-sdk/codec/types" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/module" + + "github.com/initia-labs/initia/x/dynamic-fee/keeper" + "github.com/initia-labs/initia/x/dynamic-fee/types" +) + +const ConsensusVersion = 1 + +var ( + _ module.AppModuleBasic = AppModule{} + _ module.HasGenesis = AppModule{} + _ module.HasServices = AppModule{} + _ module.HasConsensusVersion = AppModule{} + _ module.HasName = AppModule{} + + _ appmodule.AppModule = AppModule{} + _ appmodule.HasEndBlocker = AppModule{} +) + +// AppModuleBasic defines the basic application module used by the move module. +type AppModuleBasic struct { + cdc codec.Codec +} + +func (b AppModuleBasic) RegisterLegacyAminoCodec(amino *codec.LegacyAmino) { //nolint:staticcheck + types.RegisterLegacyAminoCodec(amino) +} + +func (b AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, serveMux *runtime.ServeMux) { + err := types.RegisterQueryHandlerClient(context.Background(), serveMux, types.NewQueryClient(clientCtx)) + if err != nil { + panic(err) + } +} + +// Name returns the move module's name. +func (AppModuleBasic) Name() string { + return types.ModuleName +} + +// DefaultGenesis returns default genesis state as raw bytes for the move +// module. +func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage { + return cdc.MustMarshalJSON(types.DefaultGenesisState()) +} + +// ValidateGenesis performs genesis state validation for the move module. +func (b AppModuleBasic) ValidateGenesis(marshaler codec.JSONCodec, config client.TxEncodingConfig, message json.RawMessage) error { + var genState types.GenesisState + err := marshaler.UnmarshalJSON(message, &genState) + if err != nil { + return err + } + return types.ValidateGenesis(&genState) +} + +// RegisterInterfaces implements InterfaceModule +func (b AppModuleBasic) RegisterInterfaces(registry cdctypes.InterfaceRegistry) { + types.RegisterInterfaces(registry) +} + +// ____________________________________________________________________________ + +// AppModule implements an application module for the move module. +type AppModule struct { + AppModuleBasic + + keeper keeper.Keeper + vc address.Codec + moduleNames []string +} + +// IsAppModule implements the appmodule.AppModule interface. +func (am AppModule) IsAppModule() {} + +// IsOnePerModuleType implements the depinject.OnePerModuleType interface. +func (am AppModule) IsOnePerModuleType() {} + +// ConsensusVersion is a sequence number for state-breaking change of the +// module. It should be incremented on each consensus-breaking change +// introduced by the module. To avoid wrong/empty versions, the initial version +// should be set to 1. +func (AppModule) ConsensusVersion() uint64 { return ConsensusVersion } + +// NewAppModule creates a new AppModule object +func NewAppModule( + cdc codec.Codec, + k keeper.Keeper, +) AppModule { + return AppModule{ + AppModuleBasic: AppModuleBasic{cdc}, + keeper: k, + } +} + +func (am AppModule) RegisterServices(cfg module.Configurator) { + types.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServerImpl(&am.keeper)) + types.RegisterQueryServer(cfg.QueryServer(), keeper.NewQuerier(&am.keeper)) +} + +// RegisterInvariants registers the move module invariants. +func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry) {} + +// InitGenesis performs genesis initialization for the move module. It returns +// no validator updates. +func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, data json.RawMessage) { + var genesisState types.GenesisState + cdc.MustUnmarshalJSON(data, &genesisState) + + if err := am.keeper.InitGenesis(ctx, am.moduleNames, genesisState); err != nil { + panic(err) + } +} + +// ExportGenesis returns the exported genesis state as raw bytes for the move +// module. +func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.RawMessage { + gs := am.keeper.ExportGenesis(ctx) + return cdc.MustMarshalJSON(gs) +} + +// EndBlock returns the end blocker for the move module. +func (am AppModule) EndBlock(ctx context.Context) error { + return EndBlocker(ctx, am.keeper) +} diff --git a/x/move/types/exported.go b/x/dynamic-fee/types/ante.go similarity index 57% rename from x/move/types/exported.go rename to x/dynamic-fee/types/ante.go index 547d717e4..a8a3550ff 100644 --- a/x/move/types/exported.go +++ b/x/dynamic-fee/types/ante.go @@ -7,9 +7,7 @@ import ( ) type AnteKeeper interface { - HasDexPair(ctx context.Context, denom string) (bool, error) GetBaseSpotPrice(ctx context.Context, denomQuote string) (math.LegacyDec, error) BaseDenom(ctx context.Context) (string, error) - BaseMinGasPrice(ctx context.Context) (math.LegacyDec, error) - GetBaseFee(ctx context.Context) (int64, error) + BaseGasPrice(ctx context.Context) (math.LegacyDec, error) } diff --git a/x/dynamic-fee/types/codec.go b/x/dynamic-fee/types/codec.go new file mode 100644 index 000000000..04882dcc1 --- /dev/null +++ b/x/dynamic-fee/types/codec.go @@ -0,0 +1,24 @@ +package types + +import ( + "github.com/cosmos/cosmos-sdk/codec" + "github.com/cosmos/cosmos-sdk/codec/legacy" + codectypes "github.com/cosmos/cosmos-sdk/codec/types" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/msgservice" +) + +// RegisterLegacyAminoCodec registers the move types and interface +func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { + legacy.RegisterAminoMsg(cdc, &MsgUpdateParams{}, "dynamicfee/MsgUpdateParams") + + cdc.RegisterConcrete(Params{}, "dynamicfee/Params", nil) +} + +// RegisterInterfaces registers the x/market interfaces types with the interface registry +func RegisterInterfaces(registry codectypes.InterfaceRegistry) { + registry.RegisterImplementations((*sdk.Msg)(nil), + &MsgUpdateParams{}, + ) + msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) +} diff --git a/x/dynamic-fee/types/expected_keeper.go b/x/dynamic-fee/types/expected_keeper.go new file mode 100644 index 000000000..117b516f5 --- /dev/null +++ b/x/dynamic-fee/types/expected_keeper.go @@ -0,0 +1,19 @@ +package types + +import ( + context "context" + + "cosmossdk.io/math" +) + +type TokenPriceKeeper interface { + GetBaseSpotPrice(ctx context.Context, denom string) (math.LegacyDec, error) +} + +type WhitelistKeeper interface { + GetWhitelistedTokens(ctx context.Context) ([]string, error) +} + +type BaseDenomKeeper interface { + BaseDenom(ctx context.Context) (string, error) +} diff --git a/x/dynamic-fee/types/genesis.go b/x/dynamic-fee/types/genesis.go new file mode 100644 index 000000000..2022ab999 --- /dev/null +++ b/x/dynamic-fee/types/genesis.go @@ -0,0 +1,21 @@ +package types + +// NewGenesisState creates a new GenesisState object +func NewGenesisState(params Params) *GenesisState { + return &GenesisState{ + Params: params, + } +} + +// DefaultGenesisState gets raw genesis raw message for testing +func DefaultGenesisState() *GenesisState { + return &GenesisState{ + Params: DefaultParams(), + } +} + +// ValidateGenesis performs basic validation of move genesis data returning an +// error for any failed validation criteria. +func ValidateGenesis(data *GenesisState) error { + return data.Params.Validate() +} diff --git a/x/dynamic-fee/types/genesis.pb.go b/x/dynamic-fee/types/genesis.pb.go new file mode 100644 index 000000000..057b2b6b7 --- /dev/null +++ b/x/dynamic-fee/types/genesis.pb.go @@ -0,0 +1,325 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: initia/dynamicfee/v1/genesis.proto + +package types + +import ( + fmt "fmt" + _ "github.com/cosmos/cosmos-sdk/types/tx/amino" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// GenesisState - genesis state of x/move +type GenesisState struct { + Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` +} + +func (m *GenesisState) Reset() { *m = GenesisState{} } +func (m *GenesisState) String() string { return proto.CompactTextString(m) } +func (*GenesisState) ProtoMessage() {} +func (*GenesisState) Descriptor() ([]byte, []int) { + return fileDescriptor_bac96a8a45fa9c96, []int{0} +} +func (m *GenesisState) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_GenesisState.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 *GenesisState) XXX_Merge(src proto.Message) { + xxx_messageInfo_GenesisState.Merge(m, src) +} +func (m *GenesisState) XXX_Size() int { + return m.Size() +} +func (m *GenesisState) XXX_DiscardUnknown() { + xxx_messageInfo_GenesisState.DiscardUnknown(m) +} + +var xxx_messageInfo_GenesisState proto.InternalMessageInfo + +func (m *GenesisState) GetParams() Params { + if m != nil { + return m.Params + } + return Params{} +} + +func init() { + proto.RegisterType((*GenesisState)(nil), "initia.dynamicfee.v1.GenesisState") +} + +func init() { + proto.RegisterFile("initia/dynamicfee/v1/genesis.proto", fileDescriptor_bac96a8a45fa9c96) +} + +var fileDescriptor_bac96a8a45fa9c96 = []byte{ + // 220 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xca, 0xcc, 0xcb, 0x2c, + 0xc9, 0x4c, 0xd4, 0x4f, 0xa9, 0xcc, 0x4b, 0xcc, 0xcd, 0x4c, 0x4e, 0x4b, 0x4d, 0xd5, 0x2f, 0x33, + 0xd4, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, + 0x81, 0xa8, 0xd1, 0x43, 0xa8, 0xd1, 0x2b, 0x33, 0x94, 0x12, 0x4c, 0xcc, 0xcd, 0xcc, 0xcb, 0xd7, + 0x07, 0x93, 0x10, 0x85, 0x52, 0x22, 0xe9, 0xf9, 0xe9, 0xf9, 0x60, 0xa6, 0x3e, 0x88, 0x05, 0x15, + 0x55, 0xc0, 0x6a, 0x45, 0x49, 0x65, 0x41, 0x2a, 0xd4, 0x02, 0x25, 0x7f, 0x2e, 0x1e, 0x77, 0x88, + 0x8d, 0xc1, 0x25, 0x89, 0x25, 0xa9, 0x42, 0xf6, 0x5c, 0x6c, 0x05, 0x89, 0x45, 0x89, 0xb9, 0xc5, + 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0xdc, 0x46, 0x32, 0x7a, 0xd8, 0x5c, 0xa0, 0x17, 0x00, 0x56, 0xe3, + 0xc4, 0x79, 0xe2, 0x9e, 0x3c, 0xc3, 0x8a, 0xe7, 0x1b, 0xb4, 0x18, 0x83, 0xa0, 0xda, 0x9c, 0xbc, + 0x4f, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x09, 0x8f, 0xe5, + 0x18, 0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1, 0x58, 0x8e, 0x21, 0xca, 0x30, 0x3d, 0xb3, 0x24, 0xa3, + 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, 0x1f, 0x62, 0xa8, 0x6e, 0x4e, 0x62, 0x52, 0x31, 0x94, 0xad, + 0x5f, 0x01, 0x73, 0xa5, 0x2e, 0xc8, 0x99, 0x60, 0x37, 0x26, 0xb1, 0x81, 0x1d, 0x69, 0x0c, 0x08, + 0x00, 0x00, 0xff, 0xff, 0xbd, 0xf9, 0xb2, 0x2d, 0x2b, 0x01, 0x00, 0x00, +} + +func (m *GenesisState) 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 *GenesisState) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { + offset -= sovGenesis(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *GenesisState) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Params.Size() + n += 1 + l + sovGenesis(uint64(l)) + return n +} + +func sovGenesis(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozGenesis(x uint64) (n int) { + return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *GenesisState) 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 ErrIntOverflowGenesis + } + 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: GenesisState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", 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 + } + if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipGenesis(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenesis + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenesis + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenesis + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthGenesis + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupGenesis + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthGenesis + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/dynamic-fee/types/keys.go b/x/dynamic-fee/types/keys.go new file mode 100644 index 000000000..8d149c019 --- /dev/null +++ b/x/dynamic-fee/types/keys.go @@ -0,0 +1,24 @@ +package types + +const ( + // ModuleName is the name of the dynamic fee module + ModuleName = "dynamicfee" + + // StoreKey is the string store representation + StoreKey = ModuleName + + // TStoreKey is the string transient store representation + TStoreKey = "transient_" + ModuleName + + // QuerierRoute is the querier route for the dynamic fee module + QuerierRoute = ModuleName + + // RouterKey is the msg router key for the dynamic fee module + RouterKey = ModuleName +) + +// Keys for dynamic fee store +// Items are stored with the following key: values +var ( + ParamsKey = []byte{0x11} // prefix for parameters for module x/dynamicfee +) diff --git a/x/dynamic-fee/types/params.go b/x/dynamic-fee/types/params.go new file mode 100644 index 000000000..e18dd9656 --- /dev/null +++ b/x/dynamic-fee/types/params.go @@ -0,0 +1,61 @@ +package types + +import ( + "fmt" + + "cosmossdk.io/math" +) + +var ( + DefaultBaseGasPrice = math.LegacyNewDecWithPrec(15, 3) // 0.015 + DefaultMinBaseGasPrice = math.LegacyNewDecWithPrec(1, 3) // 0.001 + DefaultMaxBaseGasPrice = math.LegacyNewDec(10) // 10 + + // 200_000_000 * 0.5 + DefaultTargetGas int64 = 100_000_000 + + // 0.1 + DefaultMaxChangeRate = math.LegacyNewDecWithPrec(1, 1) +) + +func DefaultParams() Params { + return Params{ + BaseGasPrice: DefaultBaseGasPrice, + MinBaseGasPrice: DefaultMinBaseGasPrice, + MaxBaseGasPrice: DefaultMaxBaseGasPrice, + TargetGas: DefaultTargetGas, + MaxChangeRate: DefaultMaxChangeRate, + } +} + +func (p Params) Validate() error { + if p.BaseGasPrice.IsNegative() { + return fmt.Errorf("base gas price must be non-negative") + } + + if p.MinBaseGasPrice.IsNegative() { + return fmt.Errorf("min base gas price must be non-negative") + } + + if p.MaxBaseGasPrice.IsNegative() { + return fmt.Errorf("max base gas price must be non-negative") + } + + if p.TargetGas < 0 { + return fmt.Errorf("target gas must be non-negative") + } + + if p.BaseGasPrice.LT(p.MinBaseGasPrice) { + return fmt.Errorf("base gas price must be greater than or equal to min base gas price") + } + + if p.BaseGasPrice.GT(p.MaxBaseGasPrice) { + return fmt.Errorf("base gas price must be less than or equal to max base gas price") + } + + if p.MaxChangeRate.IsNegative() { + return fmt.Errorf("max change rate must be non-negative") + } + + return nil +} diff --git a/x/dynamic-fee/types/query.pb.go b/x/dynamic-fee/types/query.pb.go new file mode 100644 index 000000000..179fcb2a3 --- /dev/null +++ b/x/dynamic-fee/types/query.pb.go @@ -0,0 +1,533 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: initia/dynamicfee/v1/query.proto + +package types + +import ( + context "context" + fmt "fmt" + _ "github.com/cosmos/cosmos-sdk/types/query" + _ "github.com/cosmos/cosmos-sdk/types/tx/amino" + _ "github.com/cosmos/gogoproto/gogoproto" + grpc1 "github.com/cosmos/gogoproto/grpc" + proto "github.com/cosmos/gogoproto/proto" + _ "google.golang.org/genproto/googleapis/api/annotations" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// QueryParamsRequest is the request type for the Query/Params RPC method. +type QueryParamsRequest struct { +} + +func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } +func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryParamsRequest) ProtoMessage() {} +func (*QueryParamsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_d65cd836c44c8c1b, []int{0} +} +func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryParamsRequest.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 *QueryParamsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryParamsRequest.Merge(m, src) +} +func (m *QueryParamsRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryParamsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryParamsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo + +// QueryParamsResponse is the response type for the Query/Params RPC method. +type QueryParamsResponse struct { + // params defines the parameters of the module. + Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` +} + +func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } +func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryParamsResponse) ProtoMessage() {} +func (*QueryParamsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_d65cd836c44c8c1b, []int{1} +} +func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryParamsResponse.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 *QueryParamsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryParamsResponse.Merge(m, src) +} +func (m *QueryParamsResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryParamsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryParamsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryParamsResponse proto.InternalMessageInfo + +func init() { + proto.RegisterType((*QueryParamsRequest)(nil), "initia.dynamicfee.v1.QueryParamsRequest") + proto.RegisterType((*QueryParamsResponse)(nil), "initia.dynamicfee.v1.QueryParamsResponse") +} + +func init() { proto.RegisterFile("initia/dynamicfee/v1/query.proto", fileDescriptor_d65cd836c44c8c1b) } + +var fileDescriptor_d65cd836c44c8c1b = []byte{ + // 328 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x90, 0xb1, 0x4a, 0x33, 0x41, + 0x10, 0xc7, 0x6f, 0x3f, 0x3e, 0x53, 0x9c, 0x95, 0x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, 0x3a, 0xbb, + 0xbd, 0x66, 0x5a, 0xb5, 0x68, 0xea, 0xa7, 0xfa, 0xff, 0x97, 0x6f, 0x87, 0xd1, 0x30, 0x4c, 0xf4, + 0x1e, 0x48, 0xbc, 0xe3, 0x9c, 0xc9, 0x3d, 0x89, 0x6b, 0x1e, 0x49, 0x3a, 0xd5, 0x82, 0xdf, 0x89, + 0x1a, 0xc7, 0x7f, 0x20, 0x7d, 0xca, 0xf6, 0xd1, 0xdd, 0xcb, 0xe7, 0xd3, 0x3f, 0x9a, 0x34, 0x59, + 0xe5, 0xf6, 0x3e, 0x4f, 0xff, 0x62, 0xf9, 0x41, 0xa3, 0xe7, 0x92, 0x46, 0xcb, 0x92, 0x92, 0x55, + 0x49, 0xc9, 0x7b, 0x49, 0xc9, 0xe3, 0x9a, 0x46, 0xab, 0x35, 0x8d, 0x5e, 0xd7, 0x34, 0xba, 0xcc, + 0x84, 0xb4, 0x37, 0xb3, 0x3c, 0x1d, 0x61, 0x11, 0x4c, 0xdd, 0x31, 0xe4, 0x66, 0x6b, 0xbd, 0xdd, + 0x7a, 0xbb, 0x1b, 0xb1, 0xbb, 0x69, 0x5e, 0x73, 0x47, 0x3d, 0xfd, 0x0a, 0x00, 0x00, 0xff, 0xff, + 0xc1, 0xd2, 0xe4, 0xc7, 0x23, 0x02, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// QueryClient is the client API for Query service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type QueryClient interface { + // Params queries the params + Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) +} + +type queryClient struct { + cc grpc1.ClientConn +} + +func NewQueryClient(cc grpc1.ClientConn) QueryClient { + return &queryClient{cc} +} + +func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { + out := new(QueryParamsResponse) + err := c.cc.Invoke(ctx, "/initia.dynamicfee.v1.Query/Params", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// QueryServer is the server API for Query service. +type QueryServer interface { + // Params queries the params + Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) +} + +// UnimplementedQueryServer can be embedded to have forward compatible implementations. +type UnimplementedQueryServer struct { +} + +func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") +} + +func RegisterQueryServer(s grpc1.Server, srv QueryServer) { + s.RegisterService(&_Query_serviceDesc, srv) +} + +func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryParamsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Params(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/initia.dynamicfee.v1.Query/Params", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _Query_serviceDesc = grpc.ServiceDesc{ + ServiceName: "initia.dynamicfee.v1.Query", + HandlerType: (*QueryServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Params", + Handler: _Query_Params_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "initia/dynamicfee/v1/query.proto", +} + +func (m *QueryParamsRequest) 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 *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *QueryParamsResponse) 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 *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { + offset -= sovQuery(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *QueryParamsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *QueryParamsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Params.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func sovQuery(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozQuery(x uint64) (n int) { + return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *QueryParamsRequest) 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 ErrIntOverflowQuery + } + 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: QueryParamsRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryParamsResponse) 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 ErrIntOverflowQuery + } + 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: QueryParamsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipQuery(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowQuery + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowQuery + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowQuery + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthQuery + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupQuery + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthQuery + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/dynamic-fee/types/query.pb.gw.go b/x/dynamic-fee/types/query.pb.gw.go new file mode 100644 index 000000000..4fc278f1b --- /dev/null +++ b/x/dynamic-fee/types/query.pb.gw.go @@ -0,0 +1,153 @@ +// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. +// source: initia/dynamicfee/v1/query.proto + +/* +Package types is a reverse proxy. + +It translates gRPC into RESTful JSON APIs. +*/ +package types + +import ( + "context" + "io" + "net/http" + + "github.com/golang/protobuf/descriptor" + "github.com/golang/protobuf/proto" + "github.com/grpc-ecosystem/grpc-gateway/runtime" + "github.com/grpc-ecosystem/grpc-gateway/utilities" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/metadata" + "google.golang.org/grpc/status" +) + +// Suppress "imported and not used" errors +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = descriptor.ForMessage +var _ = metadata.Join + +func request_Query_Params_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryParamsRequest + var metadata runtime.ServerMetadata + + msg, err := client.Params(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_Params_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryParamsRequest + var metadata runtime.ServerMetadata + + msg, err := server.Params(ctx, &protoReq) + return msg, metadata, err + +} + +// RegisterQueryHandlerServer registers the http handlers for service Query to "mux". +// UnaryRPC :call QueryServer directly. +// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead. +func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error { + + mux.Handle("GET", pattern_Query_Params_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_Params_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Params_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +// RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.Dial(endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterQueryHandler(ctx, mux, conn) +} + +// RegisterQueryHandler registers the http handlers for service Query to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterQueryHandlerClient(ctx, mux, NewQueryClient(conn)) +} + +// RegisterQueryHandlerClient registers the http handlers for service Query +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "QueryClient" to call the correct interceptors. +func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error { + + mux.Handle("GET", pattern_Query_Params_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_Params_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Params_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"initia", "dynamicfee", "v1", "params"}, "", runtime.AssumeColonVerbOpt(false))) +) + +var ( + forward_Query_Params_0 = runtime.ForwardResponseMessage +) diff --git a/x/dynamic-fee/types/tx.go b/x/dynamic-fee/types/tx.go new file mode 100644 index 000000000..397bb5774 --- /dev/null +++ b/x/dynamic-fee/types/tx.go @@ -0,0 +1,23 @@ +package types + +import ( + "cosmossdk.io/core/address" + + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" +) + +var ( + _ sdk.Msg = &MsgUpdateParams{} +) + +/* MsgUpdateParams */ + +// Validate performs basic MsgUpdateParams message validation. +func (msg MsgUpdateParams) Validate(ac address.Codec) error { + if _, err := ac.StringToBytes(msg.Authority); err != nil { + return sdkerrors.ErrInvalidAddress.Wrapf("invalid authority address: %s", err) + } + + return msg.Params.Validate() +} diff --git a/x/dynamic-fee/types/tx.pb.go b/x/dynamic-fee/types/tx.pb.go new file mode 100644 index 000000000..79741d148 --- /dev/null +++ b/x/dynamic-fee/types/tx.pb.go @@ -0,0 +1,586 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: initia/dynamicfee/v1/tx.proto + +package types + +import ( + context "context" + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + _ "github.com/cosmos/cosmos-sdk/types/msgservice" + _ "github.com/cosmos/cosmos-sdk/types/tx/amino" + _ "github.com/cosmos/gogoproto/gogoproto" + grpc1 "github.com/cosmos/gogoproto/grpc" + proto "github.com/cosmos/gogoproto/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// MsgUpdateParams is the Msg/UpdateParams request type. +type MsgUpdateParams struct { + // authority is the address that controls the module + // (defaults to x/gov unless overwritten). + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // params defines the x/dynamic-fee parameters to update. + // + // NOTE: All parameters must be supplied. + Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` +} + +func (m *MsgUpdateParams) Reset() { *m = MsgUpdateParams{} } +func (m *MsgUpdateParams) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateParams) ProtoMessage() {} +func (*MsgUpdateParams) Descriptor() ([]byte, []int) { + return fileDescriptor_7165155b1f709eab, []int{0} +} +func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateParams.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 *MsgUpdateParams) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateParams.Merge(m, src) +} +func (m *MsgUpdateParams) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateParams) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateParams.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateParams proto.InternalMessageInfo + +// MsgUpdateParamsResponse defines the response structure for executing a +// MsgUpdateParams message. +type MsgUpdateParamsResponse struct { +} + +func (m *MsgUpdateParamsResponse) Reset() { *m = MsgUpdateParamsResponse{} } +func (m *MsgUpdateParamsResponse) String() string { return proto.CompactTextString(m) } +func (*MsgUpdateParamsResponse) ProtoMessage() {} +func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_7165155b1f709eab, []int{1} +} +func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgUpdateParamsResponse.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 *MsgUpdateParamsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgUpdateParamsResponse.Merge(m, src) +} +func (m *MsgUpdateParamsResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgUpdateParamsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgUpdateParamsResponse proto.InternalMessageInfo + +func init() { + proto.RegisterType((*MsgUpdateParams)(nil), "initia.dynamicfee.v1.MsgUpdateParams") + proto.RegisterType((*MsgUpdateParamsResponse)(nil), "initia.dynamicfee.v1.MsgUpdateParamsResponse") +} + +func init() { proto.RegisterFile("initia/dynamicfee/v1/tx.proto", fileDescriptor_7165155b1f709eab) } + +var fileDescriptor_7165155b1f709eab = []byte{ + // 357 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0xcd, 0xcc, 0xcb, 0x2c, + 0xc9, 0x4c, 0xd4, 0x4f, 0xa9, 0xcc, 0x4b, 0xcc, 0xcd, 0x4c, 0x4e, 0x4b, 0x4d, 0xd5, 0x2f, 0x33, + 0xd4, 0x2f, 0xa9, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x81, 0x48, 0xeb, 0x21, 0xa4, + 0xf5, 0xca, 0x0c, 0xa5, 0x04, 0x13, 0x73, 0x33, 0xf3, 0xf2, 0xf5, 0xc1, 0x24, 0x44, 0xa1, 0x94, + 0x78, 0x72, 0x7e, 0x71, 0x6e, 0x7e, 0xb1, 0x7e, 0x6e, 0x71, 0x3a, 0xc8, 0x80, 0xdc, 0xe2, 0x74, + 0xa8, 0x84, 0x24, 0x44, 0x22, 0x1e, 0xcc, 0xd3, 0x87, 0x70, 0xa0, 0x52, 0x22, 0xe9, 0xf9, 0xe9, + 0xf9, 0x10, 0x71, 0x10, 0x0b, 0x2a, 0xaa, 0x80, 0xdd, 0x45, 0x95, 0x05, 0xa9, 0x50, 0x7d, 0x4a, + 0x3b, 0x19, 0xb9, 0xf8, 0x7d, 0x8b, 0xd3, 0x43, 0x0b, 0x52, 0x12, 0x4b, 0x52, 0x03, 0x12, 0x8b, + 0x12, 0x73, 0x8b, 0x85, 0xcc, 0xb8, 0x38, 0x13, 0x4b, 0x4b, 0x32, 0xf2, 0x8b, 0x32, 0x4b, 0x2a, + 0x25, 0x18, 0x15, 0x18, 0x35, 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74, 0x41, 0x3e, 0x05, + 0xc7, 0x50, 0x12, 0x1b, 0x38, 0x8a, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x85, 0xf1, 0x02, + 0x9d, 0x58, 0x02, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// MsgClient is the client API for Msg service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type MsgClient interface { + // UpdateParams defines an operation for updating the x/dynamic-fee module + // parameters. + UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) +} + +type msgClient struct { + cc grpc1.ClientConn +} + +func NewMsgClient(cc grpc1.ClientConn) MsgClient { + return &msgClient{cc} +} + +func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) { + out := new(MsgUpdateParamsResponse) + err := c.cc.Invoke(ctx, "/initia.dynamicfee.v1.Msg/UpdateParams", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// MsgServer is the server API for Msg service. +type MsgServer interface { + // UpdateParams defines an operation for updating the x/dynamic-fee module + // parameters. + UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) +} + +// UnimplementedMsgServer can be embedded to have forward compatible implementations. +type UnimplementedMsgServer struct { +} + +func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented") +} + +func RegisterMsgServer(s grpc1.Server, srv MsgServer) { + s.RegisterService(&_Msg_serviceDesc, srv) +} + +func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgUpdateParams) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).UpdateParams(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/initia.dynamicfee.v1.Msg/UpdateParams", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).UpdateParams(ctx, req.(*MsgUpdateParams)) + } + return interceptor(ctx, in, info, handler) +} + +var _Msg_serviceDesc = grpc.ServiceDesc{ + ServiceName: "initia.dynamicfee.v1.Msg", + HandlerType: (*MsgServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "UpdateParams", + Handler: _Msg_UpdateParams_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "initia/dynamicfee/v1/tx.proto", +} + +func (m *MsgUpdateParams) 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 *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Authority) > 0 { + i -= len(m.Authority) + copy(dAtA[i:], m.Authority) + i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgUpdateParamsResponse) 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 *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func encodeVarintTx(dAtA []byte, offset int, v uint64) int { + offset -= sovTx(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *MsgUpdateParams) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Authority) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = m.Params.Size() + n += 1 + l + sovTx(uint64(l)) + return n +} + +func (m *MsgUpdateParamsResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func sovTx(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozTx(x uint64) (n int) { + return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *MsgUpdateParams) 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 ErrIntOverflowTx + } + 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: MsgUpdateParams: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateParams: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + 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 ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Authority = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgUpdateParamsResponse) 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 ErrIntOverflowTx + } + 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: MsgUpdateParamsResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgUpdateParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipTx(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTx + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTx + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTx + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthTx + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupTx + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthTx + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/dynamic-fee/types/types.pb.go b/x/dynamic-fee/types/types.pb.go new file mode 100644 index 000000000..8d74da93a --- /dev/null +++ b/x/dynamic-fee/types/types.pb.go @@ -0,0 +1,532 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: initia/dynamicfee/v1/types.proto + +package types + +import ( + cosmossdk_io_math "cosmossdk.io/math" + fmt "fmt" + _ "github.com/cosmos/cosmos-sdk/types/tx/amino" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type Params struct { + BaseGasPrice cosmossdk_io_math.LegacyDec `protobuf:"bytes,1,opt,name=base_gas_price,json=baseGasPrice,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"base_gas_price" yaml:"base_gas_price"` + MinBaseGasPrice cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=min_base_gas_price,json=minBaseGasPrice,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"min_base_gas_price" yaml:"min_base_gas_price"` + MaxBaseGasPrice cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,opt,name=max_base_gas_price,json=maxBaseGasPrice,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"max_base_gas_price" yaml:"max_base_gas_price"` + MaxChangeRate cosmossdk_io_math.LegacyDec `protobuf:"bytes,4,opt,name=max_change_rate,json=maxChangeRate,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"max_change_rate" yaml:"max_change_rate"` + TargetGas int64 `protobuf:"varint,5,opt,name=target_gas,json=targetGas,proto3" json:"target_gas,omitempty"` +} + +func (m *Params) Reset() { *m = Params{} } +func (m *Params) String() string { return proto.CompactTextString(m) } +func (*Params) ProtoMessage() {} +func (*Params) Descriptor() ([]byte, []int) { + return fileDescriptor_1ab0bab554cc683f, []int{0} +} +func (m *Params) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Params.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 *Params) XXX_Merge(src proto.Message) { + xxx_messageInfo_Params.Merge(m, src) +} +func (m *Params) XXX_Size() int { + return m.Size() +} +func (m *Params) XXX_DiscardUnknown() { + xxx_messageInfo_Params.DiscardUnknown(m) +} + +var xxx_messageInfo_Params proto.InternalMessageInfo + +func init() { + proto.RegisterType((*Params)(nil), "initia.dynamicfee.v1.Params") +} + +func init() { proto.RegisterFile("initia/dynamicfee/v1/types.proto", fileDescriptor_1ab0bab554cc683f) } + +var fileDescriptor_1ab0bab554cc683f = []byte{ + // 377 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0xd2, 0x4f, 0x6b, 0xe2, 0x40, + 0x18, 0x06, 0xf0, 0xcc, 0xba, 0x2b, 0x18, 0xf6, 0x0f, 0x1b, 0xdc, 0xc5, 0x75, 0xd9, 0x51, 0x3c, + 0xc9, 0x82, 0x19, 0xa4, 0xb7, 0xde, 0x9a, 0xb6, 0x78, 0xe9, 0x41, 0xec, 0xad, 0x97, 0xf0, 0x26, + 0x4e, 0xc7, 0x69, 0x9d, 0x8c, 0x64, 0xa6, 0x92, 0x7c, 0x8b, 0x7e, 0x0c, 0x8f, 0xfd, 0x18, 0x1e, + 0x3d, 0x96, 0x1e, 0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, 0x6f, 0x26, 0x44, 0x6b, 0xe6, 0x85, 0x99, + 0x46, 0xae, 0x3f, 0x80, 0x80, 0x51, 0x37, 0x04, 0x4d, 0x2b, 0x9f, 0x33, 0xd0, 0xd9, 0x0d, 0xfc, + 0xbd, 0x02, 0xdf, 0xdd, 0x58, 0x6a, 0xdf, 0x04, 0x44, 0x87, 0x59, 0xda, 0x03, 0x4d, 0xad, 0x7f, + 0xa6, 0xa9, 0x21, 0x64, 0x54, 0xa7, 0xdf, 0xaa, 0x7c, 0xa9, 0xa3, 0x66, 0xa1, 0x57, 0xca, 0x93, + 0x0e, 0x28, 0xe7, 0x74, 0xfa, 0x80, 0x8d, 0x49, 0x82, 0xd1, 0x34, 0xc1, 0x68, 0x96, 0x60, 0x74, + 0x9f, 0x60, 0x74, 0xbd, 0xc0, 0xc6, 0x6c, 0x81, 0x8d, 0xdb, 0x05, 0x36, 0xce, 0xda, 0x8c, 0xeb, + 0xc1, 0x95, 0x67, 0xfb, 0x52, 0x90, 0xbc, 0x52, 0xad, 0x21, 0x78, 0x6a, 0x39, 0x93, 0xe8, 0xb5, + 0x82, 0xad, 0xb4, 0x83, 0x59, 0x01, 0xbd, 0x62, 0x56, 0xa1, 0xbd, 0x97, 0x00, 0x00, 0x00, 0xff, + 0xff, 0xb0, 0x1b, 0xf2, 0x0f, 0xa5, 0x02, 0x00, 0x00, +} + +func (this *Params) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*Params) + if !ok { + that2, ok := that.(Params) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if !this.BaseGasPrice.Equal(that1.BaseGasPrice) { + return false + } + if !this.MinBaseGasPrice.Equal(that1.MinBaseGasPrice) { + return false + } + if !this.MaxBaseGasPrice.Equal(that1.MaxBaseGasPrice) { + return false + } + if !this.MaxChangeRate.Equal(that1.MaxChangeRate) { + return false + } + if this.TargetGas != that1.TargetGas { + return false + } + return true +} +func (m *Params) 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 *Params) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.TargetGas != 0 { + i = encodeVarintTypes(dAtA, i, uint64(m.TargetGas)) + i-- + dAtA[i] = 0x28 + } + { + size := m.MaxChangeRate.Size() + i -= size + if _, err := m.MaxChangeRate.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTypes(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + { + size := m.MaxBaseGasPrice.Size() + i -= size + if _, err := m.MaxBaseGasPrice.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTypes(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size := m.MinBaseGasPrice.Size() + i -= size + if _, err := m.MinBaseGasPrice.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTypes(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size := m.BaseGasPrice.Size() + i -= size + if _, err := m.BaseGasPrice.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTypes(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func encodeVarintTypes(dAtA []byte, offset int, v uint64) int { + offset -= sovTypes(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Params) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.BaseGasPrice.Size() + n += 1 + l + sovTypes(uint64(l)) + l = m.MinBaseGasPrice.Size() + n += 1 + l + sovTypes(uint64(l)) + l = m.MaxBaseGasPrice.Size() + n += 1 + l + sovTypes(uint64(l)) + l = m.MaxChangeRate.Size() + n += 1 + l + sovTypes(uint64(l)) + if m.TargetGas != 0 { + n += 1 + sovTypes(uint64(m.TargetGas)) + } + return n +} + +func sovTypes(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozTypes(x uint64) (n int) { + return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Params) 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: Params: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BaseGasPrice", 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 + } + if err := m.BaseGasPrice.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MinBaseGasPrice", 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 + } + if err := m.MinBaseGasPrice.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxBaseGasPrice", 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 + } + if err := m.MaxBaseGasPrice.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxChangeRate", 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 + } + if err := m.MaxChangeRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TargetGas", wireType) + } + m.TargetGas = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TargetGas |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + 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 skipTypes(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTypes + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTypes + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTypes + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthTypes + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupTypes + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthTypes + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/move/abci.go b/x/move/abci.go index 7b0da6b12..470536c4f 100644 --- a/x/move/abci.go +++ b/x/move/abci.go @@ -10,8 +10,6 @@ import ( "github.com/cosmos/cosmos-sdk/telemetry" - sdk "github.com/cosmos/cosmos-sdk/types" - vmtypes "github.com/initia-labs/movevm/types" ) @@ -102,10 +100,3 @@ func BeginBlocker(ctx context.Context, k keeper.Keeper, vc address.Codec) error return nil } - -func EndBlocker(ctx context.Context, k keeper.Keeper) error { - defer telemetry.ModuleMeasureSince(types.ModuleName, time.Now(), telemetry.MetricKeyEndBlocker) - - // update base fee - return k.EIP1559FeeKeeper().UpdateBaseFee(sdk.UnwrapSDKContext(ctx)) -} diff --git a/x/move/abci_test.go b/x/move/abci_test.go index e66378348..d68bdf271 100644 --- a/x/move/abci_test.go +++ b/x/move/abci_test.go @@ -3,7 +3,6 @@ package move_test import ( "testing" - "cosmossdk.io/math" "github.com/stretchr/testify/require" abci "github.com/cometbft/cometbft/abci/types" @@ -15,8 +14,6 @@ import ( "github.com/initia-labs/initia/x/move/types" vmtypes "github.com/initia-labs/movevm/types" - - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" ) func Test_BeginBlocker(t *testing.T) { @@ -112,80 +109,3 @@ func Test_BeginBlocker(t *testing.T) { // half rewards and undelegated coins checkBalance(t, app, addr2, genCoins.Add(delegatorRewardCoins...)) } - -func Test_EndBlocker(t *testing.T) { - app := createApp(t) - - _, err := app.FinalizeBlock(&abci.RequestFinalizeBlock{Height: app.LastBlockHeight() + 1}) - require.NoError(t, err) - - ctx := app.BaseApp.NewUncachedContext(false, tmproto.Header{}) - err = app.MoveKeeper.EIP1559FeeKeeper().SetParams(ctx, types.EIP1559FeeParams{ - BaseFee: 10_000, - MinBaseFee: 1_000, - MaxBaseFee: 10_000_000, - TargetGas: 1_000_000, - MaxChangeRate: math.LegacyNewDecWithPrec(1, 1), - }) - require.NoError(t, err) - _, err = app.Commit() - require.NoError(t, err) - - _, err = app.FinalizeBlock(&abci.RequestFinalizeBlock{Height: app.LastBlockHeight() + 1}) - require.NoError(t, err) - - // initialize staking for secondBondDenom - ctx = app.BaseApp.NewUncachedContext(false, tmproto.Header{}) - err = app.MoveKeeper.InitializeStaking(ctx, secondBondDenom) - require.NoError(t, err) - - // fund addr2 - app.BankKeeper.SendCoins(ctx, types.StdAddr, addr2, sdk.NewCoins(secondBondCoin)) - - _, err = app.Commit() - require.NoError(t, err) - - // delegate coins via move staking module - denomLP := "ulp" - metadataLP := types.NamedObjectAddress(vmtypes.StdAddress, denomLP) - - valAddrArg, err := vmtypes.SerializeString(sdk.ValAddress(addr1).String()) - require.NoError(t, err) - - amountArg, err := vmtypes.SerializeUint64(10) - require.NoError(t, err) - - delegateMsg := types.MsgExecute{ - Sender: addr2.String(), - ModuleAddress: types.StdAddr.String(), - ModuleName: types.MoveModuleNameStaking, - FunctionName: types.FunctionNameStakingDelegateScript, - TypeArgs: []string{}, - Args: [][]byte{metadataLP[:], valAddrArg, amountArg}, - } - - _, err = executeMsgsWithGasInfo(t, app, []sdk.Msg{&delegateMsg}, []uint64{1}, []uint64{0}, priv2) - require.NoError(t, err) - - ctx = app.BaseApp.NewUncachedContext(false, tmproto.Header{}) - lessBaseFee, err := app.MoveKeeper.EIP1559FeeKeeper().GetBaseFee(ctx) - require.NoError(t, err) - require.Less(t, lessBaseFee, types.DefaultBaseFee) - - msgs := []sdk.Msg{} - for i := 0; i < 100; i++ { - msgs = append(msgs, &banktypes.MsgSend{ - FromAddress: addr2.String(), - ToAddress: addr1.String(), - Amount: sdk.NewCoins(sdk.NewInt64Coin(secondBondDenom, 10)), - }) - } - - _, err = executeMsgsWithGasInfo(t, app, msgs, []uint64{1}, []uint64{1}, priv2) - require.NoError(t, err) - - ctx = app.BaseApp.NewUncachedContext(false, tmproto.Header{}) - baseFee, err := app.MoveKeeper.EIP1559FeeKeeper().GetBaseFee(ctx) - require.NoError(t, err) - require.Greater(t, baseFee, lessBaseFee) -} diff --git a/x/move/keeper/ante.go b/x/move/keeper/ante.go deleted file mode 100644 index 355711429..000000000 --- a/x/move/keeper/ante.go +++ /dev/null @@ -1,25 +0,0 @@ -package keeper - -import ( - "context" - - "github.com/initia-labs/initia/x/move/types" -) - -type AnteKeeper struct { - DexKeeper - eip1559FeeKeeper EIP1559FeeKeeper -} - -var _ types.AnteKeeper = AnteKeeper{} - -func NewAnteKeeper(dexKeeper DexKeeper, eip1559FeeKeeper EIP1559FeeKeeper) AnteKeeper { - return AnteKeeper{ - DexKeeper: dexKeeper, - eip1559FeeKeeper: eip1559FeeKeeper, - } -} - -func (k AnteKeeper) GetBaseFee(ctx context.Context) (int64, error) { - return k.eip1559FeeKeeper.GetBaseFee(ctx) -} diff --git a/x/move/keeper/common_test.go b/x/move/keeper/common_test.go index 08a69d3ed..96684939b 100644 --- a/x/move/keeper/common_test.go +++ b/x/move/keeper/common_test.go @@ -419,15 +419,6 @@ func _createTestInput( require.NoError(t, moveKeeper.SetRawParams(ctx, moveParams.ToRaw())) stakingKeeper.SetSlashingHooks(moveKeeper.Hooks()) - eip1559FeeKeeper := movekeeper.NewEIP1559FeeKeeper(moveKeeper) - require.NoError(t, eip1559FeeKeeper.SetParams(ctx, movetypes.EIP1559FeeParams{ - MinBaseFee: 10, - MaxBaseFee: 200, - BaseFee: 100, - TargetGas: 100000, - MaxChangeRate: math.LegacyNewDecWithPrec(1, 1), - })) - // load stdlib module bytes moduleBytes, err := precompile.ReadStdlib() require.NoError(t, err) diff --git a/x/move/keeper/dex.go b/x/move/keeper/dex.go index bae4b24a0..7087cdd7d 100644 --- a/x/move/keeper/dex.go +++ b/x/move/keeper/dex.go @@ -6,7 +6,6 @@ import ( "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/pkg/errors" distrtypes "github.com/initia-labs/initia/x/distribution/types" "github.com/initia-labs/initia/x/move/types" @@ -167,77 +166,6 @@ func (k DexKeeper) getBaseSpotPrice( return k.BalancerKeeper().GetBaseSpotPrice(ctx, metadataLP) } -// GasPrices return gas prices for all dex pairs -func (k DexKeeper) GasPrices( - ctx context.Context, -) (sdk.DecCoins, error) { - params, err := k.GetParams(ctx) - if err != nil { - return nil, err - } - - baseDenom := params.BaseDenom - baseGasPrice := params.BaseMinGasPrice - gasPrices := sdk.NewDecCoins(sdk.NewDecCoinFromDec(baseDenom, baseGasPrice)) - err = k.DexPairs.Walk(ctx, nil, func(key, value []byte) (stop bool, err error) { - metadataQuote, err := vmtypes.NewAccountAddressFromBytes(key) - if err != nil { - return true, err - } - denomQuote, err := types.DenomFromMetadataAddress(ctx, k.MoveBankKeeper(), metadataQuote) - if err != nil { - return true, err - } - metadataLP, err := vmtypes.NewAccountAddressFromBytes(value) - if err != nil { - return true, err - } - baseSpotPrice, err := k.getBaseSpotPrice(ctx, metadataLP) - if err != nil { - return true, err - } - if baseSpotPrice.IsZero() { - return true, errors.New("baseSpotPrice is zero") - } - - gasPrice := baseGasPrice.Quo(baseSpotPrice) - gasPrices = gasPrices.Add(sdk.NewDecCoinFromDec(denomQuote, gasPrice)) - return false, nil - }) - if err != nil { - return nil, err - } - - return gasPrices, nil -} - -// GasPrice return gas price for the given denom -func (k DexKeeper) GasPrice( - ctx context.Context, - denomQuote string, -) (sdk.DecCoin, error) { - params, err := k.GetParams(ctx) - if err != nil { - return sdk.DecCoin{}, err - } - - baseDenom := params.BaseDenom - baseGasPrice := params.BaseMinGasPrice - if denomQuote == baseDenom { - return sdk.NewDecCoinFromDec(denomQuote, baseGasPrice), nil - } - - baseSpotPrice, err := k.GetBaseSpotPrice(ctx, denomQuote) - if err != nil { - return sdk.NewDecCoin(denomQuote, math.ZeroInt()), err - } - if baseSpotPrice.IsZero() { - return sdk.NewDecCoin(denomQuote, math.ZeroInt()), errors.New("baseSpotPrice is zero") - } - - return sdk.NewDecCoinFromDec(denomQuote, baseGasPrice.Quo(baseSpotPrice)), nil -} - func (k DexKeeper) SwapToBase( ctx context.Context, addr sdk.AccAddress, diff --git a/x/move/keeper/dex_test.go b/x/move/keeper/dex_test.go index 3d1e15daf..24e975be3 100644 --- a/x/move/keeper/dex_test.go +++ b/x/move/keeper/dex_test.go @@ -130,45 +130,3 @@ func TestDexPair(t *testing.T) { require.NoError(t, err) require.Equal(t, metadataLP, res) } - -func Test_Dex_GasPrices(t *testing.T) { - ctx, input := createDefaultTestInput(t) - dexKeeper := input.MoveKeeper.DexKeeper() - - baseDenom := bondDenom - baseAmount := math.NewInt(1_000_000_000_000) - - denomQuote := "uusdc" - quoteAmount := math.NewInt(1_000_000_000_000) - - metadataQuote, err := types.MetadataAddressFromDenom(denomQuote) - require.NoError(t, err) - - metadataLP := createDexPool( - t, ctx, input, - sdk.NewCoin(baseDenom, baseAmount), sdk.NewCoin(denomQuote, quoteAmount), - math.LegacyNewDecWithPrec(8, 1), math.LegacyNewDecWithPrec(2, 1), - ) - - // store dex pair for queries - err = dexKeeper.SetDexPair(ctx, types.DexPair{ - MetadataQuote: metadataQuote.String(), - MetadataLP: metadataLP.String(), - }) - require.NoError(t, err) - - quotePrice, err := dexKeeper.GetBaseSpotPrice(ctx, denomQuote) - require.NoError(t, err) - require.Equal(t, math.LegacyOneDec().QuoInt64(4), quotePrice) - - baseGasPrice, err := dexKeeper.BaseMinGasPrice(ctx) - require.NoError(t, err) - - quoteGasPrice, err := dexKeeper.GasPrice(ctx, denomQuote) - require.NoError(t, err) - require.Equal(t, baseGasPrice.MulInt64(4), quoteGasPrice.Amount) - - quoteGasPrices, err := dexKeeper.GasPrices(ctx) - require.NoError(t, err) - require.Equal(t, sdk.NewDecCoins(sdk.NewDecCoinFromDec(baseDenom, baseGasPrice), sdk.NewDecCoinFromDec(denomQuote, baseGasPrice.MulInt64(4))), quoteGasPrices) -} diff --git a/x/move/keeper/eip1559.go b/x/move/keeper/eip1559.go deleted file mode 100644 index 5fc3988d6..000000000 --- a/x/move/keeper/eip1559.go +++ /dev/null @@ -1,60 +0,0 @@ -package keeper - -import ( - "context" - - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/initia-labs/initia/x/move/types" - - "cosmossdk.io/math" -) - -type EIP1559FeeKeeper struct { - *Keeper -} - -func NewEIP1559FeeKeeper(moveKeeper *Keeper) EIP1559FeeKeeper { - return EIP1559FeeKeeper{ - moveKeeper, - } -} - -func (k EIP1559FeeKeeper) SetParams(ctx context.Context, params types.EIP1559FeeParams) error { - return k.EIP1559FeeParams.Set(ctx, params) -} - -func (k EIP1559FeeKeeper) GetParams(ctx context.Context) (types.EIP1559FeeParams, error) { - return k.EIP1559FeeParams.Get(ctx) -} - -func (k EIP1559FeeKeeper) GetBaseFee(ctx context.Context) (int64, error) { - params, err := k.EIP1559FeeParams.Get(ctx) - if err != nil { - return 0, err - } - - return params.BaseFee, nil -} - -// this should be called in EndBlocker -func (k EIP1559FeeKeeper) UpdateBaseFee(ctx sdk.Context) error { - params, err := k.EIP1559FeeParams.Get(ctx) - if err != nil { - return err - } - - gasUsed := ctx.BlockGasMeter().GasConsumed() - - // baseFeeMultiplier = (gasUsed - targetGas) / targetGas * maxChangeRate + 1 - baseFeeMultiplier := math.LegacyNewDec(int64(gasUsed) - params.TargetGas).QuoInt64(params.TargetGas).Mul(params.MaxChangeRate).Add(math.OneInt().ToLegacyDec()) - newBaseFee := math.LegacyNewDec(params.BaseFee).Mul(baseFeeMultiplier).TruncateInt64() - newBaseFee = math.Max(newBaseFee, params.MinBaseFee) - newBaseFee = math.Min(newBaseFee, params.MaxBaseFee) - params.BaseFee = newBaseFee - - err = k.EIP1559FeeParams.Set(ctx, params) - if err != nil { - return err - } - return nil -} diff --git a/x/move/keeper/eip1559_test.go b/x/move/keeper/eip1559_test.go deleted file mode 100644 index b33237e13..000000000 --- a/x/move/keeper/eip1559_test.go +++ /dev/null @@ -1,58 +0,0 @@ -package keeper_test - -import ( - "testing" - - "cosmossdk.io/math" - storetypes "cosmossdk.io/store/types" - "github.com/initia-labs/initia/x/move/keeper" - "github.com/initia-labs/initia/x/move/types" - "github.com/stretchr/testify/require" -) - -func Test_UpdateBaseFee(t *testing.T) { - ctx, input := createDefaultTestInput(t) - eip1559FeeKeeper := keeper.NewEIP1559FeeKeeper(&input.MoveKeeper) - - err := eip1559FeeKeeper.SetParams(ctx, types.EIP1559FeeParams{ - MinBaseFee: 10, - MaxBaseFee: 200, - BaseFee: 100, - TargetGas: 100000, - MaxChangeRate: math.LegacyNewDecWithPrec(1, 1), - }) - require.NoError(t, err) - - baseFee, err := eip1559FeeKeeper.GetBaseFee(ctx) - require.Equal(t, int64(100), baseFee) - - ctx = ctx.WithBlockGasMeter(storetypes.NewInfiniteGasMeter()) - ctx.BlockGasMeter().ConsumeGas(100000, "test") - - // update base fee - err = eip1559FeeKeeper.UpdateBaseFee(ctx) - require.NoError(t, err) - - baseFee, err = eip1559FeeKeeper.GetBaseFee(ctx) - require.Equal(t, int64(100), baseFee) - - ctx = ctx.WithBlockGasMeter(storetypes.NewInfiniteGasMeter()) - ctx.BlockGasMeter().ConsumeGas(200000, "test") - - // update base fee - err = eip1559FeeKeeper.UpdateBaseFee(ctx) - require.NoError(t, err) - - baseFee, err = eip1559FeeKeeper.GetBaseFee(ctx) - require.Equal(t, int64(110), baseFee) - - ctx = ctx.WithBlockGasMeter(storetypes.NewInfiniteGasMeter()) - ctx.BlockGasMeter().ConsumeGas(0, "test") - - // update base fee - err = eip1559FeeKeeper.UpdateBaseFee(ctx) - require.NoError(t, err) - - baseFee, err = eip1559FeeKeeper.GetBaseFee(ctx) - require.Equal(t, int64(99), baseFee) -} diff --git a/x/move/keeper/genesis.go b/x/move/keeper/genesis.go index 8964b3cb9..73f2a51cf 100644 --- a/x/move/keeper/genesis.go +++ b/x/move/keeper/genesis.go @@ -150,13 +150,6 @@ func (k Keeper) InitGenesis(ctx context.Context, moduleNames []string, genState return err } } - - eip1559FeeKeeper := NewEIP1559FeeKeeper(&k) - eip1559Feeparams := genState.GetEip1559Feeparams() - if err := eip1559FeeKeeper.SetParams(ctx, eip1559Feeparams); err != nil { - return err - } - return nil } @@ -230,11 +223,5 @@ func (k Keeper) ExportGenesis(ctx context.Context) *types.GenesisState { panic(err) } - eip1559FeeKeeper := NewEIP1559FeeKeeper(&k) - genState.Eip1559Feeparams, err = eip1559FeeKeeper.GetParams(ctx) - if err != nil { - panic(err) - } - return &genState } diff --git a/x/move/keeper/handler.go b/x/move/keeper/handler.go index f2d2bf18a..c65319d66 100644 --- a/x/move/keeper/handler.go +++ b/x/move/keeper/handler.go @@ -16,7 +16,7 @@ import ( authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" "github.com/cosmos/gogoproto/proto" - "github.com/initia-labs/initia/x/move/ante" + "github.com/initia-labs/initia/x/dynamic-fee/ante" "github.com/initia-labs/initia/x/move/types" vmtypes "github.com/initia-labs/movevm/types" ) diff --git a/x/move/keeper/handler_test.go b/x/move/keeper/handler_test.go index d507c5f48..0f147f22f 100644 --- a/x/move/keeper/handler_test.go +++ b/x/move/keeper/handler_test.go @@ -13,7 +13,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - "github.com/initia-labs/initia/x/move/ante" + "github.com/initia-labs/initia/x/dynamic-fee/ante" "github.com/initia-labs/initia/x/move/types" vmtypes "github.com/initia-labs/movevm/types" ) diff --git a/x/move/keeper/keeper.go b/x/move/keeper/keeper.go index f162e6c94..57aed549d 100644 --- a/x/move/keeper/keeper.go +++ b/x/move/keeper/keeper.go @@ -40,7 +40,6 @@ type Keeper struct { dexKeeper DexKeeper balancerKeeper BalancerKeeper stableSwapKeeper StableSwapKeeper - eip1559FeeKeeper EIP1559FeeKeeper // Msg server router msgRouter baseapp.MessageRouter @@ -58,7 +57,6 @@ type Keeper struct { Params collections.Item[types.RawParams] DexPairs collections.Map[[]byte, []byte] VMStore collections.Map[[]byte, []byte] - EIP1559FeeParams collections.Item[types.EIP1559FeeParams] ac address.Codec vc address.Codec @@ -131,7 +129,6 @@ func NewKeeper( Params: collections.NewItem(sb, types.ParamsKey, "params", codec.CollValue[types.RawParams](cdc)), DexPairs: collections.NewMap(sb, types.DexPairPrefix, "dex_pairs", collections.BytesKey, collections.BytesValue), VMStore: collections.NewMap(sb, types.VMStorePrefix, "vm_store", collections.BytesKey, collections.BytesValue), - EIP1559FeeParams: collections.NewItem(sb, types.EIP1559FeeParamsKey, "eip1559_feeparams", codec.CollValue[types.EIP1559FeeParams](cdc)), ac: ac, vc: vc, @@ -147,7 +144,6 @@ func NewKeeper( k.dexKeeper = NewDexKeeper(k) k.balancerKeeper = NewBalancerKeeper(k) k.stableSwapKeeper = NewStableSwapKeeper(k) - k.eip1559FeeKeeper = NewEIP1559FeeKeeper(k) return k } @@ -188,11 +184,6 @@ func (k Keeper) StableSwapKeeper() StableSwapKeeper { return k.stableSwapKeeper } -// EIP1559FeeKeeper returns the eip1559 fee keeper -func (k Keeper) EIP1559FeeKeeper() EIP1559FeeKeeper { - return k.eip1559FeeKeeper -} - // GetExecutionCounter get execution counter for genesis func (k Keeper) GetExecutionCounter( ctx context.Context, diff --git a/x/move/keeper/msg_server.go b/x/move/keeper/msg_server.go index ef5d68e85..b14e18b4b 100644 --- a/x/move/keeper/msg_server.go +++ b/x/move/keeper/msg_server.go @@ -461,21 +461,3 @@ func (ms MsgServer) UpdateParams(context context.Context, req *types.MsgUpdatePa return &types.MsgUpdateParamsResponse{}, nil } - -func (ms MsgServer) UpdateEIP1559FeeParams(context context.Context, req *types.MsgUpdateEIP1559FeeParams) (*types.MsgUpdateEIP1559FeeParamsResponse, error) { - defer telemetry.MeasureSince(time.Now(), "move", "msg", "update-eip1559-fee-params") - if ms.authority != req.Authority { - return nil, errors.Wrapf(govtypes.ErrInvalidSigner, "invalid authority; expected %s, got %s", ms.authority, req.Authority) - } - - ctx := sdk.UnwrapSDKContext(context) - if err := req.Eip1559Feeparams.Validate(); err != nil { - return nil, err - } - - if err := ms.Keeper.eip1559FeeKeeper.SetParams(ctx, req.Eip1559Feeparams); err != nil { - return nil, err - } - - return &types.MsgUpdateEIP1559FeeParamsResponse{}, nil -} diff --git a/x/move/keeper/msg_server_test.go b/x/move/keeper/msg_server_test.go index c7e34158a..a70aefb1a 100644 --- a/x/move/keeper/msg_server_test.go +++ b/x/move/keeper/msg_server_test.go @@ -3,7 +3,6 @@ package keeper_test import ( "testing" - "cosmossdk.io/math" "github.com/stretchr/testify/require" sdk "github.com/cosmos/cosmos-sdk/types" @@ -235,26 +234,3 @@ func Test_GovScriptMsg(t *testing.T) { }) require.NoError(t, err) } - -func Test_UpdateEIP1559FeeParams(t *testing.T) { - ctx, input := createDefaultTestInput(t) - ms := keeper.NewMsgServerImpl(&input.MoveKeeper) - - msg := &types.MsgUpdateEIP1559FeeParams{ - Authority: input.MoveKeeper.GetAuthority(), - Eip1559Feeparams: types.EIP1559FeeParams{ - BaseFee: 100, - MaxBaseFee: 200, - MinBaseFee: 10, - MaxChangeRate: math.LegacyNewDecWithPrec(10, 2), - }, - } - _, err := ms.UpdateEIP1559FeeParams(ctx, msg) - require.NoError(t, err) - - eip1559FeeKeeper := keeper.NewEIP1559FeeKeeper(&input.MoveKeeper) - - params, err := eip1559FeeKeeper.GetParams(ctx) - require.NoError(t, err) - require.Equal(t, msg.Eip1559Feeparams, params) -} diff --git a/x/move/keeper/params.go b/x/move/keeper/params.go index d0711cc7f..0ce046e14 100644 --- a/x/move/keeper/params.go +++ b/x/move/keeper/params.go @@ -19,15 +19,6 @@ func (k Keeper) BaseDenom(ctx context.Context) (string, error) { return params.BaseDenom, nil } -// BaseMinGasPrice - min gas price in base denom unit -func (k Keeper) BaseMinGasPrice(ctx context.Context) (math.LegacyDec, error) { - params, err := k.GetParams(ctx) - if err != nil { - return math.LegacyDec{}, err - } - return params.BaseMinGasPrice, nil -} - // AllowedPublishers - allowed publishers func (k Keeper) AllowedPublishers(ctx context.Context) ([]vmtypes.AccountAddress, error) { return NewCodeKeeper(&k).GetAllowedPublishers(ctx) diff --git a/x/move/keeper/querier.go b/x/move/keeper/querier.go index d16ac2452..8867e453b 100644 --- a/x/move/keeper/querier.go +++ b/x/move/keeper/querier.go @@ -456,15 +456,3 @@ func (q Querier) Metadata(ctx context.Context, req *types.QueryMetadataRequest) Metadata: metadataAddr.String(), }, nil } - -// EIP1559FeeParams implements types.QueryServer. -func (q Querier) EIP1559FeeParams(ctx context.Context, req *types.QueryEIP1559FeeParamsRequest) (*types.QueryEIP1559FeeParamsResponse, error) { - params, err := q.eip1559FeeKeeper.GetParams(ctx) - if err != nil { - return nil, err - } - - return &types.QueryEIP1559FeeParamsResponse{ - Eip1559Feeparams: params, - }, nil -} diff --git a/x/move/keeper/querier_test.go b/x/move/keeper/querier_test.go index 1639f9024..09343f1d8 100644 --- a/x/move/keeper/querier_test.go +++ b/x/move/keeper/querier_test.go @@ -466,16 +466,3 @@ func Test_Query_Denom(t *testing.T) { require.NoError(t, err) require.Equal(t, bondDenom, res.Denom) } - -func Test_Query_EIP1559FeeParams(t *testing.T) { - ctx, input := createDefaultTestInput(t) - - querier := keeper.NewQuerier(&input.MoveKeeper) - res, err := querier.EIP1559FeeParams(ctx, &types.QueryEIP1559FeeParamsRequest{}) - require.NoError(t, err) - - eip1559FeeKeeper := keeper.NewEIP1559FeeKeeper(&input.MoveKeeper) - params, err := eip1559FeeKeeper.GetParams(ctx) - require.NoError(t, err) - require.Equal(t, params, res.Eip1559Feeparams) -} diff --git a/x/move/keeper/whitelist.go b/x/move/keeper/whitelist.go index 5653338ba..8496ec249 100644 --- a/x/move/keeper/whitelist.go +++ b/x/move/keeper/whitelist.go @@ -218,3 +218,20 @@ func (k Keeper) Delist(ctx context.Context, msg types.MsgDelist) error { return nil } + +func (k Keeper) GetWhitelistedTokens(ctx context.Context) ([]string, error) { + whitelistedTokens := []string{} + err := k.DexPairs.Walk(ctx, nil, func(key, value []byte) (stop bool, err error) { + metadataQuote, err := vmtypes.NewAccountAddressFromBytes(key) + if err != nil { + return true, err + } + denomQuote, err := types.DenomFromMetadataAddress(ctx, k.MoveBankKeeper(), metadataQuote) + if err != nil { + return true, err + } + whitelistedTokens = append(whitelistedTokens, denomQuote) + return false, nil + }) + return whitelistedTokens, err +} diff --git a/x/move/module.go b/x/move/module.go index 046b26b52..ba061a1e6 100644 --- a/x/move/module.go +++ b/x/move/module.go @@ -153,8 +153,3 @@ func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.Raw func (am AppModule) BeginBlock(ctx context.Context) error { return BeginBlocker(ctx, am.keeper, am.vc) } - -// EndBlock returns the end blocker for the move module. -func (am AppModule) EndBlock(ctx context.Context) error { - return EndBlocker(ctx, am.keeper) -} diff --git a/x/move/types/eip1559_params.go b/x/move/types/eip1559_params.go deleted file mode 100644 index 95f70c8bf..000000000 --- a/x/move/types/eip1559_params.go +++ /dev/null @@ -1,64 +0,0 @@ -package types - -import ( - "fmt" - - "cosmossdk.io/math" -) - -var ( - // 0.01 INIT - DefaultBaseFee int64 = 10_000 - // 0.001 INIT - DefaultMinBaseFee int64 = 1_000 - // 10 INIT - DefaultMaxBaseFee int64 = 10_000_000 - - // 200_000_000 * 0.5 - DefaultTargetGas int64 = 100_000_000 - - // 0.1 - DefaultMaxChangeRate = math.LegacyNewDecWithPrec(1, 1) -) - -func DefaultEIP1559Params() EIP1559FeeParams { - return EIP1559FeeParams{ - BaseFee: DefaultBaseFee, - MinBaseFee: DefaultMinBaseFee, - MaxBaseFee: DefaultMaxBaseFee, - TargetGas: DefaultTargetGas, - MaxChangeRate: DefaultMaxChangeRate, - } -} - -func (p EIP1559FeeParams) Validate() error { - if p.BaseFee < 0 { - return fmt.Errorf("base fee must be non-negative") - } - - if p.MinBaseFee < 0 { - return fmt.Errorf("min base fee must be non-negative") - } - - if p.MaxBaseFee < 0 { - return fmt.Errorf("max base fee must be non-negative") - } - - if p.TargetGas < 0 { - return fmt.Errorf("target gas must be non-negative") - } - - if p.BaseFee < p.MinBaseFee { - return fmt.Errorf("base fee must be greater than or equal to min base fee") - } - - if p.BaseFee > p.MaxBaseFee { - return fmt.Errorf("base fee must be less than or equal to max base fee") - } - - if p.MaxChangeRate.IsNegative() { - return fmt.Errorf("max change rate must be non-negative") - } - - return nil -} diff --git a/x/move/types/genesis.go b/x/move/types/genesis.go index 43641fcd4..249c103ee 100644 --- a/x/move/types/genesis.go +++ b/x/move/types/genesis.go @@ -30,7 +30,6 @@ func DefaultGenesisState() *GenesisState { return &GenesisState{ Stdlibs: modules, Params: DefaultParams(), - Eip1559Feeparams: DefaultEIP1559Params(), ExecutionCounter: 0, Modules: []Module{}, Resources: []Resource{}, diff --git a/x/move/types/genesis.pb.go b/x/move/types/genesis.pb.go index bf85973be..229588a03 100644 --- a/x/move/types/genesis.pb.go +++ b/x/move/types/genesis.pb.go @@ -26,16 +26,15 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // GenesisState - genesis state of x/move type GenesisState struct { - Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` - 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"` - 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"` - Eip1559Feeparams EIP1559FeeParams `protobuf:"bytes,10,opt,name=eip1559_feeparams,json=eip1559Feeparams,proto3" json:"eip1559_feeparams"` + Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` + 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"` + 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{} } @@ -134,13 +133,6 @@ func (m *GenesisState) GetDexPairs() []DexPair { return nil } -func (m *GenesisState) GetEip1559Feeparams() EIP1559FeeParams { - if m != nil { - return m.Eip1559Feeparams - } - return EIP1559FeeParams{} -} - func init() { proto.RegisterType((*GenesisState)(nil), "initia.move.v1.GenesisState") } @@ -148,41 +140,38 @@ func init() { func init() { proto.RegisterFile("initia/move/v1/genesis.proto", fileDescriptor_40442fa21a3f8cef) } var fileDescriptor_40442fa21a3f8cef = []byte{ - // 532 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 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, 0x25, 0x04, 0x22, 0xa2, 0xc0, 0xf1, 0x9e, 0x4c, 0x68, - 0x6c, 0x4d, 0xb8, 0x0c, 0x44, 0x34, 0x77, 0x9e, 0xa9, 0x88, 0xa3, 0x3b, 0xc6, 0x62, 0x48, 0x4d, - 0x64, 0x0e, 0x0a, 0x5c, 0xff, 0x80, 0xaa, 0x23, 0x98, 0x0d, 0x42, 0x42, 0x23, 0x8e, 0xab, 0x32, - 0xe2, 0xa8, 0x18, 0x71, 0x01, 0xb3, 0x1e, 0xa1, 0xd1, 0xfa, 0x7d, 0x72, 0x47, 0x91, 0xbd, 0x37, - 0x4a, 0xa5, 0xc9, 0xc3, 0xd7, 0x81, 0x86, 0x9d, 0xd3, 0xd3, 0xb3, 0xc1, 0x18, 0x40, 0x8d, 0x39, - 0x92, 0x63, 0x6e, 0x16, 0xf9, 0x97, 0xdd, 0x5e, 0x22, 0xbc, 0x02, 0xd8, 0x1c, 0xf8, 0x03, 0x45, - 0xb9, 0xca, 0x20, 0xce, 0xc5, 0xcd, 0xd2, 0xd0, 0x6e, 0x97, 0x86, 0xf6, 0x6b, 0x69, 0x68, 0x5f, - 0x57, 0x46, 0xe9, 0x76, 0x65, 0x94, 0x7e, 0xae, 0x8c, 0xd2, 0xa7, 0x93, 0x09, 0x15, 0xd7, 0xf1, - 0xd0, 0x72, 0x99, 0x6f, 0xa7, 0x11, 0x2f, 0x3c, 0x32, 0xe4, 0xea, 0x6c, 0xcf, 0xd2, 0xad, 0x94, - 0x2b, 0x39, 0x2c, 0xcb, 0x9d, 0x7c, 0xf5, 0x2f, 0x00, 0x00, 0xff, 0xff, 0x3d, 0xfe, 0x64, 0xa7, - 0x08, 0x04, 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, 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6d, 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) { @@ -205,16 +194,6 @@ func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - { - size, err := m.Eip1559Feeparams.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 if len(m.DexPairs) > 0 { for iNdEx := len(m.DexPairs) - 1; iNdEx >= 0; iNdEx-- { { @@ -390,8 +369,6 @@ func (m *GenesisState) Size() (n int) { n += 1 + l + sovGenesis(uint64(l)) } } - l = m.Eip1559Feeparams.Size() - n += 1 + l + sovGenesis(uint64(l)) return n } @@ -718,39 +695,6 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Eip1559Feeparams", 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 - } - if err := m.Eip1559Feeparams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenesis(dAtA[iNdEx:]) diff --git a/x/move/types/params.go b/x/move/types/params.go index 903c7a402..b5e465b91 100644 --- a/x/move/types/params.go +++ b/x/move/types/params.go @@ -19,7 +19,6 @@ const ( ) var ( - DefaultBaseMinGasPrice = math.LegacyNewDecWithPrec(15, 3) // 0.015 DefaultContractSharedRevenueRatio = math.LegacyZeroDec() ) @@ -34,7 +33,6 @@ const ( func DefaultParams() Params { return Params{ BaseDenom: DefaultBaseDenom, - BaseMinGasPrice: DefaultBaseMinGasPrice, ContractSharedRevenueRatio: DefaultContractSharedRevenueRatio, ScriptEnabled: DefaultScriptEnabled, AllowedPublishers: nil, @@ -55,10 +53,6 @@ func (p Params) Validate(ac address.Codec) error { return errors.Wrap(err, "invalid base_denom") } - if err := validateBaseMinGasPrice(p.BaseMinGasPrice); err != nil { - return errors.Wrap(err, "invalid base_min_gas_price") - } - if err := validateContractSharedRatio(p.ContractSharedRevenueRatio); err != nil { return errors.Wrap(err, "invalid shared_revenue_ratio") } @@ -74,7 +68,6 @@ func (p Params) Validate(ac address.Codec) error { func (p Params) ToRaw() RawParams { return RawParams{ BaseDenom: p.BaseDenom, - BaseMinGasPrice: p.BaseMinGasPrice, ContractSharedRevenueRatio: p.ContractSharedRevenueRatio, ScriptEnabled: p.ScriptEnabled, } @@ -84,7 +77,6 @@ func (p Params) ToRaw() RawParams { func (p RawParams) ToParams(allowedPublishers []string) Params { return Params{ BaseDenom: p.BaseDenom, - BaseMinGasPrice: p.BaseMinGasPrice, ContractSharedRevenueRatio: p.ContractSharedRevenueRatio, AllowedPublishers: allowedPublishers, ScriptEnabled: p.ScriptEnabled, @@ -104,19 +96,6 @@ func validateBaseDenom(i interface{}) error { return nil } -func validateBaseMinGasPrice(i interface{}) error { - v, ok := i.(math.LegacyDec) - if !ok { - return fmt.Errorf("invalid parameter type: %T", i) - } - - if v.IsNegative() { - return fmt.Errorf("base_min_gas_price must be non-negative value: %v", v) - } - - return nil -} - func validateContractSharedRatio(i interface{}) error { v, ok := i.(math.LegacyDec) if !ok { diff --git a/x/move/types/params_test.go b/x/move/types/params_test.go index 91602e613..5ac269fe0 100644 --- a/x/move/types/params_test.go +++ b/x/move/types/params_test.go @@ -23,14 +23,9 @@ func TestParams(t *testing.T) { require.Error(t, err) p3 := DefaultParams() - p3.BaseMinGasPrice = math.LegacyOneDec().Neg() + p3.AllowedPublishers = []string{"abc"} err = p3.Validate(ac) require.Error(t, err) - - p4 := DefaultParams() - p4.AllowedPublishers = []string{"abc"} - err = p4.Validate(ac) - require.Error(t, err) } func TestRawParams(t *testing.T) { @@ -41,7 +36,6 @@ func TestRawParams(t *testing.T) { p1.ContractSharedRevenueRatio = math.LegacyOneDec() p1.BaseDenom = "venusinthemorning" - p1.BaseMinGasPrice = math.LegacyOneDec() require.NoError(t, p1.Validate(ac)) rp := p1.ToRaw() diff --git a/x/move/types/query.pb.go b/x/move/types/query.pb.go index 2084202a8..2faacd426 100644 --- a/x/move/types/query.pb.go +++ b/x/move/types/query.pb.go @@ -1378,81 +1378,6 @@ func (m *QueryDenomResponse) XXX_DiscardUnknown() { var xxx_messageInfo_QueryDenomResponse proto.InternalMessageInfo -// QueryEIP1559FeeParamsRequest is the request type for the Query/EIP1559FeeParams RPC method. -type QueryEIP1559FeeParamsRequest struct { -} - -func (m *QueryEIP1559FeeParamsRequest) Reset() { *m = QueryEIP1559FeeParamsRequest{} } -func (m *QueryEIP1559FeeParamsRequest) String() string { return proto.CompactTextString(m) } -func (*QueryEIP1559FeeParamsRequest) ProtoMessage() {} -func (*QueryEIP1559FeeParamsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9396b98b4ea22694, []int{33} -} -func (m *QueryEIP1559FeeParamsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryEIP1559FeeParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryEIP1559FeeParamsRequest.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 *QueryEIP1559FeeParamsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryEIP1559FeeParamsRequest.Merge(m, src) -} -func (m *QueryEIP1559FeeParamsRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryEIP1559FeeParamsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryEIP1559FeeParamsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryEIP1559FeeParamsRequest proto.InternalMessageInfo - -// QueryEIP1559FeeParamsResponse is the response type for the Query/EIP1559FeeParams RPC method. -type QueryEIP1559FeeParamsResponse struct { - Eip1559Feeparams EIP1559FeeParams `protobuf:"bytes,1,opt,name=eip1559_feeparams,json=eip1559Feeparams,proto3" json:"eip1559_feeparams"` -} - -func (m *QueryEIP1559FeeParamsResponse) Reset() { *m = QueryEIP1559FeeParamsResponse{} } -func (m *QueryEIP1559FeeParamsResponse) String() string { return proto.CompactTextString(m) } -func (*QueryEIP1559FeeParamsResponse) ProtoMessage() {} -func (*QueryEIP1559FeeParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9396b98b4ea22694, []int{34} -} -func (m *QueryEIP1559FeeParamsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryEIP1559FeeParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryEIP1559FeeParamsResponse.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 *QueryEIP1559FeeParamsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryEIP1559FeeParamsResponse.Merge(m, src) -} -func (m *QueryEIP1559FeeParamsResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryEIP1559FeeParamsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryEIP1559FeeParamsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryEIP1559FeeParamsResponse proto.InternalMessageInfo - func init() { proto.RegisterType((*QueryModuleRequest)(nil), "initia.move.v1.QueryModuleRequest") proto.RegisterType((*QueryModuleResponse)(nil), "initia.move.v1.QueryModuleResponse") @@ -1487,117 +1412,110 @@ func init() { proto.RegisterType((*QueryMetadataResponse)(nil), "initia.move.v1.QueryMetadataResponse") proto.RegisterType((*QueryDenomRequest)(nil), "initia.move.v1.QueryDenomRequest") proto.RegisterType((*QueryDenomResponse)(nil), "initia.move.v1.QueryDenomResponse") - proto.RegisterType((*QueryEIP1559FeeParamsRequest)(nil), "initia.move.v1.QueryEIP1559FeeParamsRequest") - proto.RegisterType((*QueryEIP1559FeeParamsResponse)(nil), "initia.move.v1.QueryEIP1559FeeParamsResponse") } func init() { proto.RegisterFile("initia/move/v1/query.proto", fileDescriptor_9396b98b4ea22694) } var fileDescriptor_9396b98b4ea22694 = []byte{ - // 1639 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0xcf, 0x6f, 0x13, 0x47, - 0x1b, 0xce, 0x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0xb7, 0x75, 0x6d, 0x90, 0xfb, 0x0a, 0x8c, 0xe2, 0x2d, 0x88, 0x74, - 0x83, 0xf4, 0x64, 0x54, 0x67, 0xbb, 0x07, 0x21, 0xb1, 0x45, 0x49, 0x6c, 0x9e, 0x64, 0xfa, 0x27, - 0x46, 0xbe, 0x56, 0x20, 0xee, 0x99, 0x71, 0xd2, 0x19, 0x26, 0x74, 0x23, 0x52, 0x0f, 0xf6, 0x88, - 0x42, 0x36, 0x39, 0xc9, 0xe6, 0x14, 0x59, 0xea, 0x83, 0x4d, 0xd3, 0xf9, 0x6b, 0xc5, 0x46, 0xa1, - 0x75, 0xa9, 0x22, 0x0f, 0x14, 0x48, 0x34, 0x2f, 0x18, 0xa4, 0x3b, 0x70, 0x53, 0xac, 0x43, 0xbd, - 0xc2, 0x90, 0xe0, 0x71, 0x49, 0x30, 0x4b, 0xe6, 0xff, 0x0e, 0x41, 0x72, 0x4f, 0x81, 0x44, 0xd3, - 0xe3, 0x47, 0x50, 0x0a, 0xdf, 0x36, 0x22, 0x28, 0xb5, 0xdd, 0x30, 0xe8, 0x9c, 0xa4, 0x44, 0xc9, - 0x4c, 0x98, 0x92, 0xb4, 0xa9, 0x3e, 0x42, 0xe4, 0x91, 0x02, 0xd0, 0xb2, 0xb4, 0xa4, 0x0b, 0x80, - 0xff, 0x8e, 0xa1, 0x1e, 0xee, 0x19, 0x87, 0x4c, 0x5e, 0x97, 0x4c, 0x5e, 0x21, 0x27, 0x7a, 0x31, - 0xd1, 0xd0, 0x77, 0x8b, 0xce, 0x35, 0x2f, 0x29, 0xe4, 0x4b, 0x05, 0xc6, 0xfd, 0x76, 0x9d, 0xcc, - 0x75, 0x07, 0x6e, 0x5d, 0x28, 0xd4, 0x23, 0x7d, 0x44, 0x22, 0xc9, 0xff, 0x49, 0x92, 0x19, 0x32, - 0xd7, 0x2f, 0x49, 0xf2, 0xa3, 0x02, 0xd0, 0xf2, 0xb9, 0x11, 0xb2, 0xb5, 0x99, 0xf6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0, 0xee, 0xe9, 0x4e, 0x1a, 0x10, 0xf7, 0x0c, 0x50, 0xc4, 0x52, 0x08, - 0xb9, 0xa9, 0x88, 0xa5, 0x10, 0x76, 0x51, 0x74, 0x46, 0x02, 0xab, 0x24, 0x19, 0x06, 0xf6, 0xac, - 0x11, 0xa9, 0xc0, 0xb0, 0x74, 0x45, 0xa4, 0xf3, 0xcf, 0xca, 0x6f, 0xb1, 0x54, 0xda, 0x2d, 0x04, - 0x11, 0xa7, 0x25, 0xe2, 0x1e, 0xb2, 0x2b, 0x8c, 0x28, 0xdd, 0x15, 0xf9, 0x4a, 0x81, 0x89, 0xb0, - 0xe9, 0x21, 0xf3, 0x1d, 0xe7, 0x8d, 0x30, 0x60, 0xea, 0xd1, 0x3e, 0xa3, 0x91, 0xd0, 0x11, 0x49, - 0xe8, 0x00, 0xd9, 0x1f, 0x26, 0xd4, 0x66, 0xd2, 0x72, 0x17, 0x37, 0x7f, 0x4d, 0x0d, 0x3c, 0xde, - 0x4a, 0x0d, 0x6c, 0x6e, 0xa5, 0x94, 0xa7, 0x5b, 0x29, 0xe5, 0x97, 0xad, 0x94, 0xf2, 0xe0, 0x79, - 0x6a, 0xe0, 0xe9, 0xf3, 0xd4, 0xc0, 0xcf, 0xcf, 0x53, 0x03, 0xef, 0x67, 0x74, 0xc3, 0xb9, 0x51, - 0x2f, 0x66, 0x4b, 0x56, 0x05, 0xa7, 0x3b, 0xba, 0xc6, 0x8a, 0xb6, 0x37, 0xf5, 0x27, 0xee, 0xe4, - 0xf2, 0x1f, 0xe9, 0xc5, 0x11, 0xf9, 0x9f, 0xf4, 0x63, 0x7f, 0x05, 0x00, 0x00, 0xff, 0xff, 0x55, - 0xf7, 0xcc, 0x45, 0x06, 0x18, 0x00, 0x00, + // 1560 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0xdf, 0x6f, 0xdb, 0xd4, + 0x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c1, 0x79, + 0x3a, 0xca, 0x59, 0x50, 0x21, 0x5f, 0x28, 0x90, 0xf6, 0x8d, 0x17, 0x89, 0x3f, 0x5a, 0x83, 0xe7, + 0x7f, 0xcc, 0x96, 0xef, 0xf2, 0x6f, 0x74, 0xbf, 0x44, 0xcf, 0x09, 0x74, 0xb5, 0x17, 0xba, 0x56, + 0x91, 0xa8, 0x6b, 0x90, 0xf2, 0x4e, 0x6f, 0x32, 0x94, 0x91, 0x50, 0x87, 0xb3, 0x00, 0x74, 0x4e, + 0xe2, 0x67, 0x05, 0xfe, 0x4c, 0x4f, 0xfc, 0x4f, 0x6c, 0xcb, 0x24, 0x5f, 0x2a, 0xb0, 0x2d, 0x64, + 0x3e, 0xc8, 0xa1, 0xbe, 0xcb, 0x87, 0xa4, 0xc8, 0x0f, 0x93, 0x8a, 0x74, 0xf2, 0x92, 0xce, 0x9c, + 0xa0, 0x93, 0x8b, 0xa5, 0x83, 0x9a, 0x88, 0xb9, 0xf8, 0x8e, 0x21, 0x66, 0x2e, 0x51, 0x27, 0x12, + 0x33, 0x97, 0x2e, 0xe3, 0xd1, 0x77, 0x2e, 0xb6, 0xcc, 0xd6, 0x58, 0xc5, 0x20, 0x37, 0x61, 0xdc, + 0xb5, 0x10, 0x31, 0xe7, 0x6b, 0xc8, 0xa5, 0xc4, 0x9c, 0xaf, 0x61, 0xcf, 0x42, 0xb3, 0x12, 0x39, + 0x43, 0x76, 0x45, 0x61, 0x5d, 0x77, 0x42, 0xda, 0x90, 0xf2, 0xac, 0x46, 0xcc, 0x56, 0x88, 0xf8, + 0x96, 0x98, 0xad, 0x10, 0xf5, 0x2b, 0x74, 0x56, 0x02, 0xab, 0x24, 0x13, 0x05, 0xf6, 0x4c, 0x08, + 0xa9, 0xc3, 0x98, 0xf4, 0x1f, 0xa4, 0xf7, 0xcf, 0x2a, 0x68, 0x66, 0x54, 0xda, 0x2f, 0x05, 0x11, + 0xf7, 0x4a, 0xc4, 0xdd, 0x64, 0x67, 0x14, 0x51, 0xfa, 0x98, 0xe2, 0xf9, 0xf5, 0xdf, 0xb2, 0x89, + 0x47, 0x1b, 0xd9, 0xc4, 0xfa, 0x46, 0x56, 0x79, 0xb2, 0x91, 0x55, 0x7e, 0xdd, 0xc8, 0x2a, 0xf7, + 0x37, 0xb3, 0x89, 0x27, 0x9b, 0xd9, 0xc4, 0x2f, 0x9b, 0xd9, 0xc4, 0x07, 0x79, 0xdd, 0x70, 0xae, + 0xb7, 0x2a, 0x85, 0xaa, 0x55, 0xc7, 0x25, 0x5e, 0x5a, 0x61, 0x15, 0xdb, 0x5b, 0xee, 0x53, 0x77, + 0x41, 0xf9, 0x5f, 0xe1, 0xca, 0xb8, 0xfc, 0xb7, 0xf0, 0x91, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, + 0x62, 0x33, 0x50, 0x1a, 0xd3, 0x16, 0x00, 0x00, } func (this *QueryModuleResponse) Equal(that interface{}) bool { @@ -1696,8 +1614,6 @@ type QueryClient interface { Metadata(ctx context.Context, in *QueryMetadataRequest, opts ...grpc.CallOption) (*QueryMetadataResponse, error) // Denom converts denom to metadata Denom(ctx context.Context, in *QueryDenomRequest, opts ...grpc.CallOption) (*QueryDenomResponse, error) - // EIP1559FeeParams queries the EIP1559 fee params - EIP1559FeeParams(ctx context.Context, in *QueryEIP1559FeeParamsRequest, opts ...grpc.CallOption) (*QueryEIP1559FeeParamsResponse, error) } type queryClient struct { @@ -1853,15 +1769,6 @@ func (c *queryClient) Denom(ctx context.Context, in *QueryDenomRequest, opts ... return out, nil } -func (c *queryClient) EIP1559FeeParams(ctx context.Context, in *QueryEIP1559FeeParamsRequest, opts ...grpc.CallOption) (*QueryEIP1559FeeParamsResponse, error) { - out := new(QueryEIP1559FeeParamsResponse) - err := c.cc.Invoke(ctx, "/initia.move.v1.Query/EIP1559FeeParams", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - // QueryServer is the server API for Query service. type QueryServer interface { // Module gets the module info @@ -1899,8 +1806,6 @@ type QueryServer interface { Metadata(context.Context, *QueryMetadataRequest) (*QueryMetadataResponse, error) // Denom converts denom to metadata Denom(context.Context, *QueryDenomRequest) (*QueryDenomResponse, error) - // EIP1559FeeParams queries the EIP1559 fee params - EIP1559FeeParams(context.Context, *QueryEIP1559FeeParamsRequest) (*QueryEIP1559FeeParamsResponse, error) } // UnimplementedQueryServer can be embedded to have forward compatible implementations. @@ -1955,9 +1860,6 @@ func (*UnimplementedQueryServer) Metadata(ctx context.Context, req *QueryMetadat func (*UnimplementedQueryServer) Denom(ctx context.Context, req *QueryDenomRequest) (*QueryDenomResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Denom not implemented") } -func (*UnimplementedQueryServer) EIP1559FeeParams(ctx context.Context, req *QueryEIP1559FeeParamsRequest) (*QueryEIP1559FeeParamsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method EIP1559FeeParams not implemented") -} func RegisterQueryServer(s grpc1.Server, srv QueryServer) { s.RegisterService(&_Query_serviceDesc, srv) @@ -2251,24 +2153,6 @@ func _Query_Denom_Handler(srv interface{}, ctx context.Context, dec func(interfa return interceptor(ctx, in, info, handler) } -func _Query_EIP1559FeeParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryEIP1559FeeParamsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).EIP1559FeeParams(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/initia.move.v1.Query/EIP1559FeeParams", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).EIP1559FeeParams(ctx, req.(*QueryEIP1559FeeParamsRequest)) - } - return interceptor(ctx, in, info, handler) -} - var _Query_serviceDesc = grpc.ServiceDesc{ ServiceName: "initia.move.v1.Query", HandlerType: (*QueryServer)(nil), @@ -2337,10 +2221,6 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "Denom", Handler: _Query_Denom_Handler, }, - { - MethodName: "EIP1559FeeParams", - Handler: _Query_EIP1559FeeParams_Handler, - }, }, Streams: []grpc.StreamDesc{}, Metadata: "initia/move/v1/query.proto", @@ -3646,62 +3526,6 @@ func (m *QueryDenomResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *QueryEIP1559FeeParamsRequest) 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 *QueryEIP1559FeeParamsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryEIP1559FeeParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *QueryEIP1559FeeParamsResponse) 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 *QueryEIP1559FeeParamsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryEIP1559FeeParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Eip1559Feeparams.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { offset -= sovQuery(v) base := offset @@ -4269,26 +4093,6 @@ func (m *QueryDenomResponse) Size() (n int) { return n } -func (m *QueryEIP1559FeeParamsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *QueryEIP1559FeeParamsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Eip1559Feeparams.Size() - n += 1 + l + sovQuery(uint64(l)) - return n -} - func sovQuery(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -7881,139 +7685,6 @@ func (m *QueryDenomResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryEIP1559FeeParamsRequest) 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 ErrIntOverflowQuery - } - 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: QueryEIP1559FeeParamsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryEIP1559FeeParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryEIP1559FeeParamsResponse) 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 ErrIntOverflowQuery - } - 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: QueryEIP1559FeeParamsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryEIP1559FeeParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Eip1559Feeparams", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Eip1559Feeparams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} func skipQuery(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/move/types/query.pb.gw.go b/x/move/types/query.pb.gw.go index 4ed041cb9..8f65de8db 100644 --- a/x/move/types/query.pb.gw.go +++ b/x/move/types/query.pb.gw.go @@ -897,24 +897,6 @@ func local_request_Query_Denom_0(ctx context.Context, marshaler runtime.Marshale } -func request_Query_EIP1559FeeParams_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryEIP1559FeeParamsRequest - var metadata runtime.ServerMetadata - - msg, err := client.EIP1559FeeParams(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_EIP1559FeeParams_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryEIP1559FeeParamsRequest - var metadata runtime.ServerMetadata - - msg, err := server.EIP1559FeeParams(ctx, &protoReq) - return msg, metadata, err - -} - // RegisterQueryHandlerServer registers the http handlers for service Query to "mux". // UnaryRPC :call QueryServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. @@ -1289,29 +1271,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) - mux.Handle("GET", pattern_Query_EIP1559FeeParams_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_EIP1559FeeParams_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_EIP1559FeeParams_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - return nil } @@ -1673,26 +1632,6 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Query_EIP1559FeeParams_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_EIP1559FeeParams_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_EIP1559FeeParams_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - return nil } @@ -1728,8 +1667,6 @@ var ( pattern_Query_Metadata_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"initia", "move", "v1", "metadata"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_Denom_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"initia", "move", "v1", "denom"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Query_EIP1559FeeParams_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"initia", "move", "v1", "eip1559_feeparams"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( @@ -1764,6 +1701,4 @@ var ( forward_Query_Metadata_0 = runtime.ForwardResponseMessage forward_Query_Denom_0 = runtime.ForwardResponseMessage - - forward_Query_EIP1559FeeParams_0 = runtime.ForwardResponseMessage ) diff --git a/x/move/types/tx.pb.go b/x/move/types/tx.pb.go index c694e8ee5..b796bf9db 100644 --- a/x/move/types/tx.pb.go +++ b/x/move/types/tx.pb.go @@ -1156,86 +1156,6 @@ func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgUpdateParamsResponse proto.InternalMessageInfo -// MsgUpdateEIP1559FeeParams is the Msg/UpdateEIP1559FeeParams request type. -type MsgUpdateEIP1559FeeParams struct { - // authority is the address that controls the module - // (defaults to x/gov unless overwritten). - Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - // eip1559_feeparams defines the x/move parameters to update. - Eip1559Feeparams EIP1559FeeParams `protobuf:"bytes,2,opt,name=eip1559_feeparams,json=eip1559Feeparams,proto3" json:"eip1559_feeparams"` -} - -func (m *MsgUpdateEIP1559FeeParams) Reset() { *m = MsgUpdateEIP1559FeeParams{} } -func (m *MsgUpdateEIP1559FeeParams) String() string { return proto.CompactTextString(m) } -func (*MsgUpdateEIP1559FeeParams) ProtoMessage() {} -func (*MsgUpdateEIP1559FeeParams) Descriptor() ([]byte, []int) { - return fileDescriptor_0fc2f2cef57f41a3, []int{26} -} -func (m *MsgUpdateEIP1559FeeParams) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgUpdateEIP1559FeeParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgUpdateEIP1559FeeParams.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 *MsgUpdateEIP1559FeeParams) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUpdateEIP1559FeeParams.Merge(m, src) -} -func (m *MsgUpdateEIP1559FeeParams) XXX_Size() int { - return m.Size() -} -func (m *MsgUpdateEIP1559FeeParams) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUpdateEIP1559FeeParams.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgUpdateEIP1559FeeParams proto.InternalMessageInfo - -// MsgUpdateEIP1559FeeParamsResponse defines the response structure for executing a -// MsgUpdateEIP1559FeeParams message. -type MsgUpdateEIP1559FeeParamsResponse struct { -} - -func (m *MsgUpdateEIP1559FeeParamsResponse) Reset() { *m = MsgUpdateEIP1559FeeParamsResponse{} } -func (m *MsgUpdateEIP1559FeeParamsResponse) String() string { return proto.CompactTextString(m) } -func (*MsgUpdateEIP1559FeeParamsResponse) ProtoMessage() {} -func (*MsgUpdateEIP1559FeeParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0fc2f2cef57f41a3, []int{27} -} -func (m *MsgUpdateEIP1559FeeParamsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MsgUpdateEIP1559FeeParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MsgUpdateEIP1559FeeParamsResponse.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 *MsgUpdateEIP1559FeeParamsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgUpdateEIP1559FeeParamsResponse.Merge(m, src) -} -func (m *MsgUpdateEIP1559FeeParamsResponse) XXX_Size() int { - return m.Size() -} -func (m *MsgUpdateEIP1559FeeParamsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgUpdateEIP1559FeeParamsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MsgUpdateEIP1559FeeParamsResponse proto.InternalMessageInfo - func init() { proto.RegisterType((*MsgPublish)(nil), "initia.move.v1.MsgPublish") proto.RegisterType((*MsgPublishResponse)(nil), "initia.move.v1.MsgPublishResponse") @@ -1263,92 +1183,85 @@ func init() { proto.RegisterType((*MsgDelistResponse)(nil), "initia.move.v1.MsgDelistResponse") proto.RegisterType((*MsgUpdateParams)(nil), "initia.move.v1.MsgUpdateParams") proto.RegisterType((*MsgUpdateParamsResponse)(nil), "initia.move.v1.MsgUpdateParamsResponse") - proto.RegisterType((*MsgUpdateEIP1559FeeParams)(nil), "initia.move.v1.MsgUpdateEIP1559FeeParams") - proto.RegisterType((*MsgUpdateEIP1559FeeParamsResponse)(nil), "initia.move.v1.MsgUpdateEIP1559FeeParamsResponse") } func init() { proto.RegisterFile("initia/move/v1/tx.proto", fileDescriptor_0fc2f2cef57f41a3) } var fileDescriptor_0fc2f2cef57f41a3 = []byte{ - // 1237 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x58, 0xcf, 0x4f, 0x1b, 0x47, - 0x14, 0x66, 0x6d, 0xe3, 0xd4, 0x0f, 0xec, 0x84, 0x0d, 0x01, 0xb3, 0x14, 0xdb, 0x98, 0xd0, 0x18, - 0xa4, 0xd8, 0x85, 0x2a, 0x95, 0xc2, 0x2d, 0x16, 0xa1, 0x49, 0x04, 0x09, 0x5a, 0x84, 0x12, 0xb5, - 0x52, 0xad, 0xc5, 0x9e, 0xac, 0x57, 0xf5, 0x7a, 0x57, 0xbb, 0x6b, 0x02, 0xb7, 0xaa, 0x52, 0x2f, - 0xed, 0xa5, 0xb7, 0xfe, 0x0b, 0xbd, 0x44, 0xe2, 0xd0, 0xf6, 0xd8, 0x63, 0x85, 0x7a, 0x8a, 0x7a, - 0xaa, 0x7a, 0x40, 0x29, 0x1c, 0xb8, 0xf5, 0xd8, 0x5b, 0xa5, 0x6a, 0x67, 0x66, 0x67, 0x7f, 0xdb, - 0x91, 0x8b, 0xa8, 0xd4, 0x5c, 0x90, 0xe7, 0x7d, 0xef, 0xbd, 0x79, 0xdf, 0x37, 0x33, 0x6f, 0x86, - 0x85, 0x69, 0xa5, 0xab, 0x58, 0x8a, 0x54, 0x53, 0xb5, 0x7d, 0x54, 0xdb, 0x5f, 0xa9, 0x59, 0x07, - 0x55, 0xdd, 0xd0, 0x2c, 0x8d, 0xcf, 0x11, 0xa0, 0x6a, 0x03, 0xd5, 0xfd, 0x15, 0x61, 0x42, 0x52, - 0x95, 0xae, 0x56, 0xc3, 0x7f, 0x89, 0x8b, 0x30, 0xdd, 0xd4, 0x4c, 0x55, 0x33, 0x6b, 0xaa, 0x29, - 0xdb, 0xa1, 0xaa, 0x29, 0x53, 0x60, 0x86, 0x00, 0x0d, 0x3c, 0xaa, 0x91, 0x01, 0x85, 0x26, 0x65, - 0x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, - 0x52, 0xbf, 0x30, 0x5c, 0x6e, 0x65, 0x90, 0x87, 0xb7, 0x5a, 0xf7, 0x1a, 0x8b, 0xaa, 0x96, 0xa1, - 0x91, 0xd5, 0x86, 0x6e, 0x06, 0x7b, 0x8b, 0xd2, 0x5b, 0x21, 0x6a, 0x8b, 0x12, 0x28, 0x72, 0x8b, - 0xfa, 0x5b, 0x36, 0xff, 0x0c, 0xc6, 0x7d, 0xed, 0xba, 0x18, 0x11, 0xe2, 0x75, 0x10, 0x6e, 0x0d, - 0x70, 0x60, 0x99, 0xf7, 0x61, 0x2a, 0xa6, 0x7b, 0x2e, 0xc5, 0xa6, 0x08, 0xba, 0x0a, 0x2b, 0x6f, - 0xec, 0xea, 0xcc, 0x2b, 0x8c, 0x7e, 0x6e, 0xb7, 0xc8, 0xfa, 0x83, 0xe3, 0x3f, 0x0a, 0x23, 0xc7, - 0xa7, 0x05, 0xee, 0xd5, 0x69, 0x81, 0x7b, 0x7d, 0x5a, 0xe0, 0xbe, 0x39, 0x2b, 0x8c, 0xbc, 0x3a, - 0x2b, 0x8c, 0xfc, 0x76, 0x56, 0x18, 0xf9, 0x78, 0x59, 0x56, 0xac, 0x76, 0x6f, 0xaf, 0xda, 0xd4, - 0xd4, 0x1a, 0x99, 0xe1, 0x76, 0x47, 0xda, 0x33, 0xe9, 0xef, 0xda, 0x01, 0xf9, 0x8a, 0x86, 0x3f, - 0xa1, 0xed, 0xa5, 0xf1, 0x37, 0xb4, 0x0f, 0xfe, 0x09, 0x00, 0x00, 0xff, 0xff, 0x22, 0xa2, 0x68, - 0x72, 0xe7, 0x13, 0x00, 0x00, + // 1159 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x58, 0xcf, 0x6f, 0x1b, 0x45, + 0x14, 0xce, 0xda, 0x8e, 0x5b, 0xbf, 0xc4, 0x2e, 0xdd, 0xa6, 0x89, 0xb3, 0x21, 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xde, 0xfe, 0xb4, 0x54, 0x47, 0xc7, 0xe5, 0xc9, + 0xa5, 0x6c, 0xbd, 0xa0, 0x5c, 0xf7, 0x0c, 0x0f, 0x1d, 0x1d, 0x8b, 0x22, 0xe4, 0x88, 0x3d, 0x4f, + 0x68, 0x26, 0x9f, 0x07, 0xb3, 0xc2, 0x00, 0x33, 0x56, 0xd8, 0x8a, 0xb3, 0xf2, 0x65, 0x06, 0x4a, + 0x81, 0xf9, 0xf1, 0xee, 0xd3, 0x27, 0xff, 0x19, 0x66, 0x0a, 0x8c, 0x99, 0x95, 0x18, 0x33, 0xb7, + 0x62, 0xcc, 0x78, 0xa0, 0x6b, 0x65, 0x98, 0x8d, 0x5a, 0x38, 0x43, 0x2f, 0x04, 0x28, 0x6c, 0x63, + 0x7d, 0xb7, 0xed, 0x18, 0xb6, 0x7b, 0x09, 0x27, 0x43, 0x88, 0x9e, 0x8c, 0x08, 0x9c, 0xec, 0x00, + 0x38, 0xb9, 0xd0, 0x46, 0x57, 0x62, 0x70, 0x4a, 0x3e, 0x1c, 0xda, 0x61, 0xed, 0x16, 0xdc, 0xe4, + 0x0b, 0x0e, 0xe2, 0x07, 0x01, 0x8a, 0xdc, 0x3a, 0xe6, 0x2e, 0x5f, 0x16, 0x10, 0x7f, 0x5f, 0x6a, + 0x31, 0x20, 0x62, 0x14, 0x08, 0xd9, 0x96, 0x39, 0xb8, 0x1d, 0x31, 0x70, 0x40, 0x5f, 0x67, 0x08, + 0xa0, 0xf7, 0xad, 0x03, 0x5f, 0xb3, 0xde, 0x86, 0x82, 0xda, 0x77, 0x3b, 0x96, 0x63, 0xb8, 0x47, + 0x23, 0x31, 0x05, 0xa1, 0x21, 0x22, 0x32, 0x63, 0x11, 0x91, 0x1d, 0xad, 0x75, 0xb9, 0xb1, 0xb5, + 0x6e, 0xd5, 0xe3, 0x28, 0x68, 0x36, 0x42, 0x53, 0x80, 0x9d, 0xd1, 0x14, 0x18, 0x38, 0x4d, 0x2f, + 0x39, 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, 0xa6, 0x4c, 0xeb, 0xde, 0xef, 0xaa, 0xfb, 0x98, 0x7d, 0x96, 0x0f, 0xe9, 0xaf, 0x38, + 0xe4, 0x27, 0x9c, 0xfd, 0x3c, 0xf9, 0x0d, 0xe7, 0xad, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x7c, + 0x74, 0xfe, 0xa5, 0x67, 0x12, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1397,9 +1310,6 @@ type MsgClient interface { // UpdateParams defines an operation for updating the x/move module // parameters. UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) - // UpdateEIP1559FeeParams defines an operation for updating the x/move module - // eip1559 fee params. - UpdateEIP1559FeeParams(ctx context.Context, in *MsgUpdateEIP1559FeeParams, opts ...grpc.CallOption) (*MsgUpdateEIP1559FeeParamsResponse, error) } type msgClient struct { @@ -1527,15 +1437,6 @@ func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts return out, nil } -func (c *msgClient) UpdateEIP1559FeeParams(ctx context.Context, in *MsgUpdateEIP1559FeeParams, opts ...grpc.CallOption) (*MsgUpdateEIP1559FeeParamsResponse, error) { - out := new(MsgUpdateEIP1559FeeParamsResponse) - err := c.cc.Invoke(ctx, "/initia.move.v1.Msg/UpdateEIP1559FeeParams", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - // MsgServer is the server API for Msg service. type MsgServer interface { // Publish stores compiled Move module @@ -1572,9 +1473,6 @@ type MsgServer interface { // UpdateParams defines an operation for updating the x/move module // parameters. UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) - // UpdateEIP1559FeeParams defines an operation for updating the x/move module - // eip1559 fee params. - UpdateEIP1559FeeParams(context.Context, *MsgUpdateEIP1559FeeParams) (*MsgUpdateEIP1559FeeParamsResponse, error) } // UnimplementedMsgServer can be embedded to have forward compatible implementations. @@ -1620,9 +1518,6 @@ func (*UnimplementedMsgServer) Delist(ctx context.Context, req *MsgDelist) (*Msg func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented") } -func (*UnimplementedMsgServer) UpdateEIP1559FeeParams(ctx context.Context, req *MsgUpdateEIP1559FeeParams) (*MsgUpdateEIP1559FeeParamsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateEIP1559FeeParams not implemented") -} func RegisterMsgServer(s grpc1.Server, srv MsgServer) { s.RegisterService(&_Msg_serviceDesc, srv) @@ -1862,24 +1757,6 @@ func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(in return interceptor(ctx, in, info, handler) } -func _Msg_UpdateEIP1559FeeParams_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgUpdateEIP1559FeeParams) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).UpdateEIP1559FeeParams(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/initia.move.v1.Msg/UpdateEIP1559FeeParams", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).UpdateEIP1559FeeParams(ctx, req.(*MsgUpdateEIP1559FeeParams)) - } - return interceptor(ctx, in, info, handler) -} - var _Msg_serviceDesc = grpc.ServiceDesc{ ServiceName: "initia.move.v1.Msg", HandlerType: (*MsgServer)(nil), @@ -1936,10 +1813,6 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ MethodName: "UpdateParams", Handler: _Msg_UpdateParams_Handler, }, - { - MethodName: "UpdateEIP1559FeeParams", - Handler: _Msg_UpdateEIP1559FeeParams_Handler, - }, }, Streams: []grpc.StreamDesc{}, Metadata: "initia/move/v1/tx.proto", @@ -2987,69 +2860,6 @@ func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *MsgUpdateEIP1559FeeParams) 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 *MsgUpdateEIP1559FeeParams) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgUpdateEIP1559FeeParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Eip1559Feeparams.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - if len(m.Authority) > 0 { - i -= len(m.Authority) - copy(dAtA[i:], m.Authority) - i = encodeVarintTx(dAtA, i, uint64(len(m.Authority))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MsgUpdateEIP1559FeeParamsResponse) 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 *MsgUpdateEIP1559FeeParamsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MsgUpdateEIP1559FeeParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - func encodeVarintTx(dAtA []byte, offset int, v uint64) int { offset -= sovTx(v) base := offset @@ -3557,30 +3367,6 @@ func (m *MsgUpdateParamsResponse) Size() (n int) { return n } -func (m *MsgUpdateEIP1559FeeParams) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Authority) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = m.Eip1559Feeparams.Size() - n += 1 + l + sovTx(uint64(l)) - return n -} - -func (m *MsgUpdateEIP1559FeeParamsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - func sovTx(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -6728,171 +6514,6 @@ func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgUpdateEIP1559FeeParams) 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 ErrIntOverflowTx - } - 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: MsgUpdateEIP1559FeeParams: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgUpdateEIP1559FeeParams: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - 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 ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Authority = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Eip1559Feeparams", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Eip1559Feeparams.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MsgUpdateEIP1559FeeParamsResponse) 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 ErrIntOverflowTx - } - 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: MsgUpdateEIP1559FeeParamsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MsgUpdateEIP1559FeeParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipTx(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} func skipTx(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/move/types/types.pb.go b/x/move/types/types.pb.go index 1491073f6..b5e012567 100644 --- a/x/move/types/types.pb.go +++ b/x/move/types/types.pb.go @@ -61,15 +61,14 @@ func (UpgradePolicy) EnumDescriptor() ([]byte, []int) { // Params defines the set of move parameters. type Params struct { - BaseDenom string `protobuf:"bytes,1,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty"` - BaseMinGasPrice cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=base_min_gas_price,json=baseMinGasPrice,proto3,customtype=cosmossdk.io/math.LegacyDec" 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"` // CSR: Percentage of fees distributed to developers - ContractSharedRevenueRatio cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,opt,name=contract_shared_revenue_ratio,json=contractSharedRevenueRatio,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"contract_shared_revenue_ratio" yaml:"contract_shared_revenue_ratio"` + ContractSharedRevenueRatio cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=contract_shared_revenue_ratio,json=contractSharedRevenueRatio,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"contract_shared_revenue_ratio" yaml:"contract_shared_revenue_ratio"` // flag whether to enable script execution - ScriptEnabled bool `protobuf:"varint,4,opt,name=script_enabled,json=scriptEnabled,proto3" json:"script_enabled,omitempty"` + ScriptEnabled bool `protobuf:"varint,3,opt,name=script_enabled,json=scriptEnabled,proto3" json:"script_enabled,omitempty"` // It is a list of addresses with permission to distribute contracts, // and an empty list is interpreted as allowing anyone to distribute. - AllowedPublishers []string `protobuf:"bytes,5,rep,name=allowed_publishers,json=allowedPublishers,proto3" json:"allowed_publishers,omitempty" yaml:"allowed_publishers"` + AllowedPublishers []string `protobuf:"bytes,4,rep,name=allowed_publishers,json=allowedPublishers,proto3" json:"allowed_publishers,omitempty" yaml:"allowed_publishers"` } func (m *Params) Reset() { *m = Params{} } @@ -106,12 +105,11 @@ var xxx_messageInfo_Params proto.InternalMessageInfo // RawParams defines the raw params to store. type RawParams struct { - BaseDenom string `protobuf:"bytes,1,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty"` - BaseMinGasPrice cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=base_min_gas_price,json=baseMinGasPrice,proto3,customtype=cosmossdk.io/math.LegacyDec" 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"` // CSR: Percentage of fees distributed to developers - ContractSharedRevenueRatio cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,opt,name=contract_shared_revenue_ratio,json=contractSharedRevenueRatio,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"contract_shared_revenue_ratio" yaml:"contract_shared_revenue_ratio"` + ContractSharedRevenueRatio cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=contract_shared_revenue_ratio,json=contractSharedRevenueRatio,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"contract_shared_revenue_ratio" yaml:"contract_shared_revenue_ratio"` // flag whether to enable script execution - ScriptEnabled bool `protobuf:"varint,4,opt,name=script_enabled,json=scriptEnabled,proto3" json:"script_enabled,omitempty"` + ScriptEnabled bool `protobuf:"varint,3,opt,name=script_enabled,json=scriptEnabled,proto3" json:"script_enabled,omitempty"` } func (m *RawParams) Reset() { *m = RawParams{} } @@ -473,47 +471,6 @@ func (m *ExecuteAuthorizationItem) XXX_DiscardUnknown() { var xxx_messageInfo_ExecuteAuthorizationItem proto.InternalMessageInfo -type EIP1559FeeParams struct { - BaseFee int64 `protobuf:"varint,1,opt,name=base_fee,json=baseFee,proto3" json:"base_fee,omitempty"` - MinBaseFee int64 `protobuf:"varint,2,opt,name=min_base_fee,json=minBaseFee,proto3" json:"min_base_fee,omitempty"` - MaxBaseFee int64 `protobuf:"varint,3,opt,name=max_base_fee,json=maxBaseFee,proto3" json:"max_base_fee,omitempty"` - TargetGas int64 `protobuf:"varint,4,opt,name=target_gas,json=targetGas,proto3" json:"target_gas,omitempty"` - MaxChangeRate cosmossdk_io_math.LegacyDec `protobuf:"bytes,5,opt,name=max_change_rate,json=maxChangeRate,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"max_change_rate" yaml:"max_change_rate"` -} - -func (m *EIP1559FeeParams) Reset() { *m = EIP1559FeeParams{} } -func (m *EIP1559FeeParams) String() string { return proto.CompactTextString(m) } -func (*EIP1559FeeParams) ProtoMessage() {} -func (*EIP1559FeeParams) Descriptor() ([]byte, []int) { - return fileDescriptor_5ab4b0783858a3a5, []int{10} -} -func (m *EIP1559FeeParams) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EIP1559FeeParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EIP1559FeeParams.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 *EIP1559FeeParams) XXX_Merge(src proto.Message) { - xxx_messageInfo_EIP1559FeeParams.Merge(m, src) -} -func (m *EIP1559FeeParams) XXX_Size() int { - return m.Size() -} -func (m *EIP1559FeeParams) XXX_DiscardUnknown() { - xxx_messageInfo_EIP1559FeeParams.DiscardUnknown(m) -} - -var xxx_messageInfo_EIP1559FeeParams proto.InternalMessageInfo - func init() { proto.RegisterEnum("initia.move.v1.UpgradePolicy", UpgradePolicy_name, UpgradePolicy_value) proto.RegisterType((*Params)(nil), "initia.move.v1.Params") @@ -526,76 +483,66 @@ func init() { proto.RegisterType((*UpgradePolicyProto)(nil), "initia.move.v1.UpgradePolicyProto") proto.RegisterType((*DexPair)(nil), "initia.move.v1.DexPair") proto.RegisterType((*ExecuteAuthorizationItem)(nil), "initia.move.v1.ExecuteAuthorizationItem") - proto.RegisterType((*EIP1559FeeParams)(nil), "initia.move.v1.EIP1559FeeParams") } func init() { proto.RegisterFile("initia/move/v1/types.proto", fileDescriptor_5ab4b0783858a3a5) } var fileDescriptor_5ab4b0783858a3a5 = []byte{ - // 1004 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x56, 0xbd, 0x6f, 0x23, 0x45, - 0x14, 0xf7, 0xc6, 0x97, 0xc4, 0xfb, 0x12, 0x3b, 0xb9, 0xd1, 0x09, 0x39, 0x39, 0xc5, 0x8e, 0x16, - 0x90, 0xa2, 0x20, 0x6c, 0x05, 0x94, 0x82, 0x6b, 0x50, 0x9c, 0x38, 0x27, 0x8b, 0xf8, 0xd8, 0xdb, - 0x4b, 0x1a, 0x9a, 0xd5, 0x78, 0xfd, 0x62, 0x2f, 0xf6, 0x7e, 0x30, 0x33, 0x9b, 0x78, 0xe9, 0x69, - 0x10, 0x12, 0x48, 0x34, 0x94, 0x57, 0x5e, 0x79, 0x25, 0xff, 0x00, 0x52, 0xca, 0x2b, 0x11, 0x48, - 0x11, 0x24, 0xc5, 0x51, 0x53, 0x53, 0xa0, 0xf9, 0x70, 0xee, 0xc2, 0x49, 0x51, 0x24, 0x44, 0x47, - 0x63, 0xcd, 0xfc, 0x7e, 0x3f, 0xbd, 0xef, 0x7d, 0x1e, 0x58, 0x0d, 0xe3, 0x50, 0x84, 0xb4, 0x19, - 0x25, 0x27, 0xd8, 0x3c, 0xd9, 0x6a, 0x8a, 0x3c, 0x45, 0xde, 0x48, 0x59, 0x22, 0x12, 0x52, 0xd1, - 0x5c, 0x43, 0x72, 0x8d, 0x93, 0xad, 0xd5, 0xbb, 0x34, 0x0a, 0xe3, 0xa4, 0xa9, 0x7e, 0xb5, 0x64, - 0xf5, 0xde, 0x20, 0x19, 0x24, 0xea, 0xd8, 0x94, 0x27, 0x8d, 0x3a, 0x3f, 0x15, 0x61, 0xce, 0xa5, - 0x8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09, 0x16, 0x8e, 0x1e, 0x3d, 0x71, 0xdb, 0xbb, 0x9d, - 0xfd, 0x4e, 0x7b, 0x6f, 0xb9, 0x40, 0x2a, 0x00, 0xbb, 0x9f, 0x76, 0xdd, 0x9d, 0xc3, 0x4e, 0xeb, - 0xa0, 0xbd, 0x6c, 0x91, 0x32, 0xd8, 0x9d, 0x6e, 0xf7, 0xe8, 0x70, 0x47, 0x5e, 0x67, 0x5a, 0x07, - 0x67, 0xbf, 0xd7, 0x0a, 0xcf, 0x2e, 0x6a, 0xd6, 0xd9, 0x45, 0xcd, 0x7a, 0x71, 0x51, 0xb3, 0x7e, - 0xbb, 0xa8, 0x59, 0xdf, 0x5d, 0xd6, 0x0a, 0x2f, 0x2e, 0x6b, 0x85, 0x9f, 0x2f, 0x6b, 0x85, 0xcf, - 0x36, 0x07, 0xa1, 0x18, 0x66, 0xbd, 0x46, 0x90, 0x44, 0x4d, 0x3d, 0x87, 0xef, 0x8f, 0x69, 0x8f, - 0x9b, 0x73, 0x73, 0xa2, 0x5f, 0x33, 0xea, 0x29, 0xd3, 0x9b, 0x53, 0x4f, 0x92, 0x0f, 0xff, 0x0e, - 0x00, 0x00, 0xff, 0xff, 0xa5, 0xfb, 0x36, 0x40, 0xe9, 0x08, 0x00, 0x00, + // 860 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x55, 0x31, 0x6f, 0x23, 0x45, + 0x14, 0xf6, 0xc4, 0x97, 0xc4, 0xfb, 0x1c, 0x9b, 0xdc, 0xea, 0x0a, 0x9f, 0x4f, 0xf1, 0x46, 0x0b, + 0x48, 0x56, 0x10, 0xb6, 0x0e, 0x44, 0x73, 0x0d, 0x8a, 0x63, 0x23, 0x59, 0xd8, 0x87, 0x6f, 0xcf, + 0x69, 0x68, 0x56, 0xe3, 0xdd, 0x39, 0x7b, 0xe5, 0xdd, 0x9d, 0x65, 0x66, 0xd6, 0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x6a, 0xd5, 0x40, 0x57, 0xab, 0x06, 0x7a, 0xb3, 0x6a, 0xa0, + 0x3f, 0x57, 0x0d, 0xf4, 0xd3, 0x75, 0xa3, 0xf0, 0xe6, 0xba, 0x51, 0xf8, 0xfd, 0xba, 0x51, 0xf8, + 0xfa, 0x64, 0x1a, 0x88, 0x59, 0x3a, 0x69, 0x79, 0x34, 0x6a, 0xeb, 0x45, 0x7c, 0x1c, 0xe2, 0x09, + 0xcf, 0xed, 0xf6, 0xa5, 0x7e, 0xe6, 0xd4, 0x1b, 0x37, 0xd9, 0x53, 0x6f, 0xd5, 0xa7, 0xff, 0x04, + 0x00, 0x00, 0xff, 0xff, 0x40, 0x31, 0x9d, 0x3e, 0x02, 0x07, 0x00, 0x00, } func (this *Params) Equal(that interface{}) bool { @@ -620,9 +567,6 @@ func (this *Params) Equal(that interface{}) bool { if this.BaseDenom != that1.BaseDenom { return false } - if !this.BaseMinGasPrice.Equal(that1.BaseMinGasPrice) { - return false - } if !this.ContractSharedRevenueRatio.Equal(that1.ContractSharedRevenueRatio) { return false } @@ -661,9 +605,6 @@ func (this *RawParams) Equal(that interface{}) bool { if this.BaseDenom != that1.BaseDenom { return false } - if !this.BaseMinGasPrice.Equal(that1.BaseMinGasPrice) { - return false - } if !this.ContractSharedRevenueRatio.Equal(that1.ContractSharedRevenueRatio) { return false } @@ -923,42 +864,6 @@ func (this *ExecuteAuthorizationItem) Equal(that interface{}) bool { } return true } -func (this *EIP1559FeeParams) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*EIP1559FeeParams) - if !ok { - that2, ok := that.(EIP1559FeeParams) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.BaseFee != that1.BaseFee { - return false - } - if this.MinBaseFee != that1.MinBaseFee { - return false - } - if this.MaxBaseFee != that1.MaxBaseFee { - return false - } - if this.TargetGas != that1.TargetGas { - return false - } - if !this.MaxChangeRate.Equal(that1.MaxChangeRate) { - return false - } - return true -} func (m *Params) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -985,7 +890,7 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { copy(dAtA[i:], m.AllowedPublishers[iNdEx]) i = encodeVarintTypes(dAtA, i, uint64(len(m.AllowedPublishers[iNdEx]))) i-- - dAtA[i] = 0x2a + dAtA[i] = 0x22 } } if m.ScriptEnabled { @@ -996,7 +901,7 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0 } i-- - dAtA[i] = 0x20 + dAtA[i] = 0x18 } { size := m.ContractSharedRevenueRatio.Size() @@ -1007,16 +912,6 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintTypes(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x1a - { - size := m.BaseMinGasPrice.Size() - i -= size - if _, err := m.BaseMinGasPrice.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintTypes(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 if len(m.BaseDenom) > 0 { i -= len(m.BaseDenom) @@ -1056,7 +951,7 @@ func (m *RawParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0 } i-- - dAtA[i] = 0x20 + dAtA[i] = 0x18 } { size := m.ContractSharedRevenueRatio.Size() @@ -1067,16 +962,6 @@ func (m *RawParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintTypes(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x1a - { - size := m.BaseMinGasPrice.Size() - i -= size - if _, err := m.BaseMinGasPrice.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintTypes(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x12 if len(m.BaseDenom) > 0 { i -= len(m.BaseDenom) @@ -1452,59 +1337,6 @@ func (m *ExecuteAuthorizationItem) MarshalToSizedBuffer(dAtA []byte) (int, error return len(dAtA) - i, nil } -func (m *EIP1559FeeParams) 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 *EIP1559FeeParams) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EIP1559FeeParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size := m.MaxChangeRate.Size() - i -= size - if _, err := m.MaxChangeRate.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - i = encodeVarintTypes(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - if m.TargetGas != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.TargetGas)) - i-- - dAtA[i] = 0x20 - } - if m.MaxBaseFee != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.MaxBaseFee)) - i-- - dAtA[i] = 0x18 - } - if m.MinBaseFee != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.MinBaseFee)) - i-- - dAtA[i] = 0x10 - } - if m.BaseFee != 0 { - i = encodeVarintTypes(dAtA, i, uint64(m.BaseFee)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - func encodeVarintTypes(dAtA []byte, offset int, v uint64) int { offset -= sovTypes(v) base := offset @@ -1526,8 +1358,6 @@ func (m *Params) Size() (n int) { if l > 0 { n += 1 + l + sovTypes(uint64(l)) } - l = m.BaseMinGasPrice.Size() - n += 1 + l + sovTypes(uint64(l)) l = m.ContractSharedRevenueRatio.Size() n += 1 + l + sovTypes(uint64(l)) if m.ScriptEnabled { @@ -1552,8 +1382,6 @@ func (m *RawParams) Size() (n int) { if l > 0 { n += 1 + l + sovTypes(uint64(l)) } - l = m.BaseMinGasPrice.Size() - n += 1 + l + sovTypes(uint64(l)) l = m.ContractSharedRevenueRatio.Size() n += 1 + l + sovTypes(uint64(l)) if m.ScriptEnabled { @@ -1738,29 +1566,6 @@ func (m *ExecuteAuthorizationItem) Size() (n int) { return n } -func (m *EIP1559FeeParams) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.BaseFee != 0 { - n += 1 + sovTypes(uint64(m.BaseFee)) - } - if m.MinBaseFee != 0 { - n += 1 + sovTypes(uint64(m.MinBaseFee)) - } - if m.MaxBaseFee != 0 { - n += 1 + sovTypes(uint64(m.MaxBaseFee)) - } - if m.TargetGas != 0 { - n += 1 + sovTypes(uint64(m.TargetGas)) - } - l = m.MaxChangeRate.Size() - n += 1 + l + sovTypes(uint64(l)) - return n -} - func sovTypes(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -1829,40 +1634,6 @@ func (m *Params) Unmarshal(dAtA []byte) error { m.BaseDenom = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BaseMinGasPrice", 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 - } - if err := m.BaseMinGasPrice.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ContractSharedRevenueRatio", wireType) } @@ -1896,7 +1667,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 ScriptEnabled", wireType) } @@ -1916,7 +1687,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { } } m.ScriptEnabled = bool(v != 0) - case 5: + case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AllowedPublishers", wireType) } @@ -2031,40 +1802,6 @@ func (m *RawParams) Unmarshal(dAtA []byte) error { m.BaseDenom = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BaseMinGasPrice", 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 - } - if err := m.BaseMinGasPrice.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ContractSharedRevenueRatio", wireType) } @@ -2098,7 +1835,7 @@ func (m *RawParams) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 4: + case 3: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field ScriptEnabled", wireType) } @@ -3355,166 +3092,6 @@ func (m *ExecuteAuthorizationItem) Unmarshal(dAtA []byte) error { } return nil } -func (m *EIP1559FeeParams) 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: EIP1559FeeParams: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EIP1559FeeParams: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field BaseFee", wireType) - } - m.BaseFee = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.BaseFee |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MinBaseFee", wireType) - } - m.MinBaseFee = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MinBaseFee |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxBaseFee", wireType) - } - m.MaxBaseFee = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MaxBaseFee |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetGas", wireType) - } - m.TargetGas = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TargetGas |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxChangeRate", 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 - } - if err := m.MaxChangeRate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - 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 skipTypes(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 From 3be2ac960abcd5d314e2bb6cb7133f6f8fd6e2c8 Mon Sep 17 00:00:00 2001 From: sh-cha Date: Fri, 21 Mar 2025 16:20:33 +0900 Subject: [PATCH 04/14] format & lint --- .../applications/perm/v1/genesis.pulsar.go | 7 ++++--- api/ibc/applications/perm/v1/query.pulsar.go | 9 +++++---- api/ibc/applications/perm/v1/tx.pulsar.go | 9 +++++---- api/ibc/applications/perm/v1/types.pulsar.go | 7 ++++--- api/initia/bank/v1/tx.pulsar.go | 9 +++++---- .../v1beta1/ethsecp256k1/keys.pulsar.go | 7 ++++--- .../distribution/module/v1/module.pulsar.go | 9 +++++---- .../distribution/v1/distribution.pulsar.go | 9 +++++---- api/initia/distribution/v1/genesis.pulsar.go | 9 +++++---- api/initia/distribution/v1/query.pulsar.go | 9 +++++---- api/initia/distribution/v1/tx.pulsar.go | 9 +++++---- .../dynamicfee/module/v1/module.pulsar.go | 9 +++++---- api/initia/dynamicfee/v1/genesis.pulsar.go | 9 +++++---- api/initia/dynamicfee/v1/query.pulsar.go | 9 +++++---- api/initia/dynamicfee/v1/tx.pulsar.go | 9 +++++---- api/initia/dynamicfee/v1/types.pulsar.go | 9 +++++---- api/initia/gov/v1/genesis.pulsar.go | 9 +++++---- api/initia/gov/v1/gov.pulsar.go | 9 +++++---- api/initia/gov/v1/query.pulsar.go | 9 +++++---- api/initia/gov/v1/tx.pulsar.go | 9 +++++---- .../ibchooks/module/v1/module.pulsar.go | 9 +++++---- api/initia/ibchooks/v1/genesis.pulsar.go | 9 +++++---- api/initia/ibchooks/v1/query.pulsar.go | 9 +++++---- api/initia/ibchooks/v1/tx.pulsar.go | 9 +++++---- api/initia/ibchooks/v1/types.pulsar.go | 9 +++++---- api/initia/intertx/module/v1/module.pulsar.go | 9 +++++---- api/initia/intertx/v1/query.pulsar.go | 7 ++++--- api/initia/intertx/v1/tx.pulsar.go | 9 +++++---- api/initia/move/module/v1/module.pulsar.go | 9 +++++---- api/initia/move/v1/auth.pulsar.go | 9 +++++---- api/initia/move/v1/authz.pulsar.go | 9 +++++---- api/initia/move/v1/genesis.pulsar.go | 9 +++++---- api/initia/move/v1/query.pulsar.go | 9 +++++---- api/initia/move/v1/tx.pulsar.go | 9 +++++---- api/initia/move/v1/types.pulsar.go | 9 +++++---- .../mstaking/module/v1/module.pulsar.go | 9 +++++---- api/initia/mstaking/v1/authz.pulsar.go | 9 +++++---- api/initia/mstaking/v1/genesis.pulsar.go | 9 +++++---- api/initia/mstaking/v1/query.pulsar.go | 9 +++++---- api/initia/mstaking/v1/staking.pulsar.go | 9 +++++---- api/initia/mstaking/v1/tx.pulsar.go | 9 +++++---- api/initia/reward/module/v1/module.pulsar.go | 9 +++++---- api/initia/reward/v1/genesis.pulsar.go | 7 ++++--- api/initia/reward/v1/query.pulsar.go | 7 ++++--- api/initia/reward/v1/tx.pulsar.go | 9 +++++---- api/initia/reward/v1/types.pulsar.go | 9 +++++---- api/initia/tx/v1/query.pulsar.go | 9 +++++---- app/ante/sigverify/verify.go | 1 + app/app.go | 3 ++- app/app_test.go | 4 +++- app/connect.go | 3 ++- app/encoding.go | 1 + app/genesis.go | 1 + app/header_info/service.go | 1 + app/lanes/free_test.go | 5 +++-- app/lanes/mempool.go | 1 + app/lanes/system_test.go | 1 + app/params/config.go | 1 + app/params/proto.go | 3 ++- app/upgrade.go | 1 + benchmark/app_test.go | 1 + benchmark/transaction_test.go | 1 + cmd/initiad/root.go | 1 + cmd/move/deploy.go | 1 + crypto/ethsecp256k1/ethsecp256k1.go | 5 +++-- crypto/keyring/options.go | 3 ++- crypto/ledger/ledger.go | 3 ++- crypto/ledger/ledger_mock.go | 3 ++- crypto/ledger/ledger_notavail.go | 3 ++- tx/service.go | 3 ++- x/bank/keeper/custom_msg_server.go | 1 + x/bank/keeper/custom_msg_server_test.go | 3 ++- x/bank/keeper/grpc_query.go | 1 + x/bank/keeper/grpc_query_test.go | 1 + x/bank/keeper/msg_server.go | 1 + x/bank/keeper/msg_server_test.go | 3 ++- x/bank/keeper/view.go | 1 + x/distribution/keeper/allocation_test.go | 1 + x/distribution/keeper/common_test.go | 5 +++-- .../keeper/custom_msg_server_test.go | 3 ++- x/distribution/keeper/delegation.go | 1 + x/distribution/keeper/delegation_test.go | 1 + x/distribution/keeper/genesis.go | 1 + x/distribution/keeper/grpc_query_test.go | 3 ++- x/distribution/keeper/invariants.go | 1 + x/distribution/keeper/msg_server_test.go | 5 +++-- x/distribution/keeper/store.go | 1 + x/distribution/types/expected_keepers.go | 1 + x/dynamic-fee/abci_test.go | 3 ++- x/dynamic-fee/ante/ante_test.go | 1 + x/dynamic-fee/ante/fee.go | 3 ++- x/dynamic-fee/ante/fee_utils.go | 20 ------------------- x/dynamic-fee/keeper/common_test.go | 1 + x/dynamic-fee/keeper/genesis.go | 2 +- x/dynamic-fee/keeper/keeper.go | 3 ++- x/dynamic-fee/module.go | 7 ++----- x/evidence/keeper/grpc_query.go | 1 + x/evidence/keeper/infraction.go | 1 + x/evidence/keeper/keeper.go | 1 + x/gov/abci.go | 1 + x/gov/abci_test.go | 5 +++-- x/gov/client/cli/query.go | 3 ++- x/gov/common_test.go | 1 + x/gov/genesis.go | 1 + x/gov/keeper/common_test.go | 5 +++-- x/gov/keeper/custom_grpc_query.go | 3 ++- x/gov/keeper/deposit_test.go | 3 ++- x/gov/keeper/grpc_query.go | 1 + x/gov/keeper/invariants.go | 1 + x/gov/keeper/vote_test.go | 3 ++- x/gov/types/expected_keeper.go | 1 + x/gov/types/genesis.go | 1 + x/gov/types/proposal.go | 1 + x/ibc-hooks/hooks.go | 3 ++- x/ibc-hooks/ibc_middleware.go | 3 ++- x/ibc-hooks/ics4_middleware.go | 3 ++- x/ibc-hooks/keeper/acl.go | 1 + x/ibc-hooks/keeper/common_test.go | 1 + x/ibc-hooks/keeper/keeper.go | 1 + x/ibc-hooks/keeper/query_server.go | 3 ++- x/ibc-hooks/move-hooks/ack.go | 3 ++- x/ibc-hooks/move-hooks/common_test.go | 3 ++- x/ibc-hooks/move-hooks/hooks.go | 5 +++-- x/ibc-hooks/move-hooks/receive.go | 3 ++- x/ibc-hooks/move-hooks/timeout.go | 3 ++- x/ibc/nft-transfer/ibc_module.go | 3 ++- x/ibc/nft-transfer/keeper/keeper.go | 5 +++-- x/ibc/nft-transfer/keeper/params_test.go | 3 ++- x/ibc/nft-transfer/keeper/relay_test.go | 3 ++- x/ibc/nft-transfer/types/codec.go | 5 +++-- x/ibc/nft-transfer/types/expected_keeper.go | 3 ++- x/ibc/perm/client/cli/tx.go | 1 + x/ibc/perm/ibc_module.go | 3 ++- x/ibc/perm/keeper/genesis_test.go | 1 + x/ibc/perm/keeper/grpc_query.go | 1 + x/ibc/perm/keeper/grpc_query_test.go | 1 + x/ibc/perm/keeper/keeper.go | 1 + x/ibc/perm/keeper/keeper_test.go | 1 + x/ibc/perm/keeper/msg_server_test.go | 1 + x/ibc/testing/app.go | 3 ++- x/ibc/testing/chain.go | 5 +++-- x/intertx/ibc_module.go | 3 ++- x/intertx/keeper/keeper.go | 5 +++-- x/move/client/cli/query.go | 1 + x/move/client/cli/tx.go | 1 + x/move/keeper/api.go | 1 + x/move/keeper/balancer.go | 1 + x/move/keeper/balancer_test.go | 1 + x/move/keeper/bank_test.go | 1 + x/move/keeper/common_test.go | 1 + x/move/keeper/handler.go | 1 + x/move/keeper/hooks.go | 1 + x/move/keeper/keeper.go | 1 + x/move/keeper/stableswap_test.go | 1 + x/move/keeper/vesting.go | 1 + x/move/keeper/vm_msg_stargate.go | 3 ++- x/move/keeper/vm_query.go | 1 + x/move/keeper/voting_power.go | 1 + x/move/keeper/whitelist_test.go | 1 + x/move/types/auth_test.go | 1 + x/move/types/authz_test.go | 1 + x/move/types/env.go | 1 + x/move/types/expected_keeper.go | 1 + x/move/types/params_test.go | 3 ++- x/move/types/vm_query.go | 3 ++- x/move/types/vm_query_custom.go | 1 + x/move/types/vm_query_custom_test.go | 3 ++- x/mstaking/keeper/common_test.go | 1 + x/mstaking/keeper/compatibility_keeper.go | 1 + .../keeper/compatibility_keeper_test.go | 3 ++- x/mstaking/keeper/grpc_query.go | 1 + x/mstaking/keeper/historical_info.go | 1 + x/mstaking/keeper/msg_server_test.go | 3 ++- x/mstaking/types/bond_denom.go | 1 + x/mstaking/types/expected_keepers.go | 1 + x/mstaking/types/hooks.go | 1 + x/reward/keeper/common_test.go | 1 + x/reward/types/expected_keeper.go | 1 + x/reward/types/tx.go | 1 + 179 files changed, 425 insertions(+), 271 deletions(-) diff --git a/api/ibc/applications/perm/v1/genesis.pulsar.go b/api/ibc/applications/perm/v1/genesis.pulsar.go index ff832c617..a76e0b5a8 100644 --- a/api/ibc/applications/perm/v1/genesis.pulsar.go +++ b/api/ibc/applications/perm/v1/genesis.pulsar.go @@ -3,14 +3,15 @@ package permv1 import ( fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" 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 _ protoreflect.List = (*_GenesisState_1_list)(nil) diff --git a/api/ibc/applications/perm/v1/query.pulsar.go b/api/ibc/applications/perm/v1/query.pulsar.go index 3ee65c8c3..3e1509f0f 100644 --- a/api/ibc/applications/perm/v1/query.pulsar.go +++ b/api/ibc/applications/perm/v1/query.pulsar.go @@ -2,17 +2,18 @@ package permv1 import ( - v1beta1 "cosmossdk.io/api/cosmos/base/query/v1beta1" fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + + v1beta1 "cosmossdk.io/api/cosmos/base/query/v1beta1" 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 ( diff --git a/api/ibc/applications/perm/v1/tx.pulsar.go b/api/ibc/applications/perm/v1/tx.pulsar.go index c7f013e44..613db1897 100644 --- a/api/ibc/applications/perm/v1/tx.pulsar.go +++ b/api/ibc/applications/perm/v1/tx.pulsar.go @@ -2,18 +2,19 @@ package permv1 import ( + fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + _ "cosmossdk.io/api/amino" _ "cosmossdk.io/api/cosmos/msg/v1" - fmt "fmt" _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" 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 ( diff --git a/api/ibc/applications/perm/v1/types.pulsar.go b/api/ibc/applications/perm/v1/types.pulsar.go index 1fdc3a75a..34666e0a2 100644 --- a/api/ibc/applications/perm/v1/types.pulsar.go +++ b/api/ibc/applications/perm/v1/types.pulsar.go @@ -3,13 +3,14 @@ package permv1 import ( fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + runtime "github.com/cosmos/cosmos-proto/runtime" 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 _ protoreflect.List = (*_ChannelState_4_list)(nil) diff --git a/api/initia/bank/v1/tx.pulsar.go b/api/initia/bank/v1/tx.pulsar.go index 6edbd7c04..122890f9f 100644 --- a/api/initia/bank/v1/tx.pulsar.go +++ b/api/initia/bank/v1/tx.pulsar.go @@ -2,19 +2,20 @@ package bankv1 import ( + fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + _ "cosmossdk.io/api/amino" v1beta1 "cosmossdk.io/api/cosmos/bank/v1beta1" _ "cosmossdk.io/api/cosmos/msg/v1" - fmt "fmt" _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" 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 ( diff --git a/api/initia/crypto/v1beta1/ethsecp256k1/keys.pulsar.go b/api/initia/crypto/v1beta1/ethsecp256k1/keys.pulsar.go index 2ac6587b9..58c0900e9 100644 --- a/api/initia/crypto/v1beta1/ethsecp256k1/keys.pulsar.go +++ b/api/initia/crypto/v1beta1/ethsecp256k1/keys.pulsar.go @@ -3,14 +3,15 @@ package ethsecp256k1 import ( fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" 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 ( diff --git a/api/initia/distribution/module/v1/module.pulsar.go b/api/initia/distribution/module/v1/module.pulsar.go index d5926e19c..def6dd6b3 100644 --- a/api/initia/distribution/module/v1/module.pulsar.go +++ b/api/initia/distribution/module/v1/module.pulsar.go @@ -2,15 +2,16 @@ package modulev1 import ( - _ "cosmossdk.io/api/cosmos/app/v1alpha1" fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + + _ "cosmossdk.io/api/cosmos/app/v1alpha1" runtime "github.com/cosmos/cosmos-proto/runtime" 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 ( diff --git a/api/initia/distribution/v1/distribution.pulsar.go b/api/initia/distribution/v1/distribution.pulsar.go index 3ced113f2..d229ae84f 100644 --- a/api/initia/distribution/v1/distribution.pulsar.go +++ b/api/initia/distribution/v1/distribution.pulsar.go @@ -2,17 +2,18 @@ package distributionv1 import ( + fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + _ "cosmossdk.io/api/amino" v1beta1 "cosmossdk.io/api/cosmos/base/v1beta1" - fmt "fmt" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" 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 _ protoreflect.List = (*_Params_3_list)(nil) diff --git a/api/initia/distribution/v1/genesis.pulsar.go b/api/initia/distribution/v1/genesis.pulsar.go index 6290b0b19..a638f5967 100644 --- a/api/initia/distribution/v1/genesis.pulsar.go +++ b/api/initia/distribution/v1/genesis.pulsar.go @@ -2,16 +2,17 @@ package distributionv1 import ( - v1beta1 "cosmossdk.io/api/cosmos/distribution/v1beta1" fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + + v1beta1 "cosmossdk.io/api/cosmos/distribution/v1beta1" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" 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 _ protoreflect.List = (*_ValidatorOutstandingRewardsRecord_2_list)(nil) diff --git a/api/initia/distribution/v1/query.pulsar.go b/api/initia/distribution/v1/query.pulsar.go index 66ebaeba2..6c3b8e80e 100644 --- a/api/initia/distribution/v1/query.pulsar.go +++ b/api/initia/distribution/v1/query.pulsar.go @@ -2,17 +2,18 @@ package distributionv1 import ( - v1beta1 "cosmossdk.io/api/cosmos/base/query/v1beta1" fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + + v1beta1 "cosmossdk.io/api/cosmos/base/query/v1beta1" 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 ( diff --git a/api/initia/distribution/v1/tx.pulsar.go b/api/initia/distribution/v1/tx.pulsar.go index 01c746032..692d93be5 100644 --- a/api/initia/distribution/v1/tx.pulsar.go +++ b/api/initia/distribution/v1/tx.pulsar.go @@ -2,19 +2,20 @@ package distributionv1 import ( + fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + _ "cosmossdk.io/api/amino" v1beta1 "cosmossdk.io/api/cosmos/base/v1beta1" _ "cosmossdk.io/api/cosmos/msg/v1" - fmt "fmt" _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" 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 ( diff --git a/api/initia/dynamicfee/module/v1/module.pulsar.go b/api/initia/dynamicfee/module/v1/module.pulsar.go index 5a0ce19f9..168609a0e 100644 --- a/api/initia/dynamicfee/module/v1/module.pulsar.go +++ b/api/initia/dynamicfee/module/v1/module.pulsar.go @@ -2,15 +2,16 @@ package modulev1 import ( - _ "cosmossdk.io/api/cosmos/app/v1alpha1" fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + + _ "cosmossdk.io/api/cosmos/app/v1alpha1" runtime "github.com/cosmos/cosmos-proto/runtime" 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 ( diff --git a/api/initia/dynamicfee/v1/genesis.pulsar.go b/api/initia/dynamicfee/v1/genesis.pulsar.go index a2b559521..144d64612 100644 --- a/api/initia/dynamicfee/v1/genesis.pulsar.go +++ b/api/initia/dynamicfee/v1/genesis.pulsar.go @@ -2,16 +2,17 @@ package dynamicfeev1 import ( - _ "cosmossdk.io/api/amino" fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + + _ "cosmossdk.io/api/amino" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" 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 ( diff --git a/api/initia/dynamicfee/v1/query.pulsar.go b/api/initia/dynamicfee/v1/query.pulsar.go index a7f9c4259..101aa7e68 100644 --- a/api/initia/dynamicfee/v1/query.pulsar.go +++ b/api/initia/dynamicfee/v1/query.pulsar.go @@ -2,18 +2,19 @@ package dynamicfeev1 import ( + fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + _ "cosmossdk.io/api/amino" _ "cosmossdk.io/api/cosmos/base/query/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 ( diff --git a/api/initia/dynamicfee/v1/tx.pulsar.go b/api/initia/dynamicfee/v1/tx.pulsar.go index 57e76a136..9f6470777 100644 --- a/api/initia/dynamicfee/v1/tx.pulsar.go +++ b/api/initia/dynamicfee/v1/tx.pulsar.go @@ -2,18 +2,19 @@ package dynamicfeev1 import ( + fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + _ "cosmossdk.io/api/amino" _ "cosmossdk.io/api/cosmos/msg/v1" - fmt "fmt" _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" 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 ( diff --git a/api/initia/dynamicfee/v1/types.pulsar.go b/api/initia/dynamicfee/v1/types.pulsar.go index bb6ba3f71..a5064ca35 100644 --- a/api/initia/dynamicfee/v1/types.pulsar.go +++ b/api/initia/dynamicfee/v1/types.pulsar.go @@ -2,16 +2,17 @@ package dynamicfeev1 import ( - _ "cosmossdk.io/api/amino" fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + + _ "cosmossdk.io/api/amino" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" 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 ( diff --git a/api/initia/gov/v1/genesis.pulsar.go b/api/initia/gov/v1/genesis.pulsar.go index a2ee1d5c7..a1f4b478e 100644 --- a/api/initia/gov/v1/genesis.pulsar.go +++ b/api/initia/gov/v1/genesis.pulsar.go @@ -2,15 +2,16 @@ package govv1 import ( - v1 "cosmossdk.io/api/cosmos/gov/v1" fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + + v1 "cosmossdk.io/api/cosmos/gov/v1" runtime "github.com/cosmos/cosmos-proto/runtime" 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 _ protoreflect.List = (*_GenesisState_2_list)(nil) diff --git a/api/initia/gov/v1/gov.pulsar.go b/api/initia/gov/v1/gov.pulsar.go index 977a7abbf..3ca7238f7 100644 --- a/api/initia/gov/v1/gov.pulsar.go +++ b/api/initia/gov/v1/gov.pulsar.go @@ -2,10 +2,14 @@ package govv1 import ( + fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + _ "cosmossdk.io/api/amino" v1beta1 "cosmossdk.io/api/cosmos/base/v1beta1" v1 "cosmossdk.io/api/cosmos/gov/v1" - fmt "fmt" _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" @@ -15,9 +19,6 @@ import ( anypb "google.golang.org/protobuf/types/known/anypb" durationpb "google.golang.org/protobuf/types/known/durationpb" timestamppb "google.golang.org/protobuf/types/known/timestamppb" - io "io" - reflect "reflect" - sync "sync" ) var _ protoreflect.List = (*_Params_1_list)(nil) diff --git a/api/initia/gov/v1/query.pulsar.go b/api/initia/gov/v1/query.pulsar.go index 9f18797b3..4863971f2 100644 --- a/api/initia/gov/v1/query.pulsar.go +++ b/api/initia/gov/v1/query.pulsar.go @@ -2,10 +2,14 @@ package govv1 import ( + fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + _ "cosmossdk.io/api/amino" v1beta1 "cosmossdk.io/api/cosmos/base/query/v1beta1" v1 "cosmossdk.io/api/cosmos/gov/v1" - fmt "fmt" _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" @@ -13,9 +17,6 @@ import ( 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 ( diff --git a/api/initia/gov/v1/tx.pulsar.go b/api/initia/gov/v1/tx.pulsar.go index ec78b7ade..8865bebc7 100644 --- a/api/initia/gov/v1/tx.pulsar.go +++ b/api/initia/gov/v1/tx.pulsar.go @@ -2,18 +2,19 @@ package govv1 import ( + fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + _ "cosmossdk.io/api/amino" _ "cosmossdk.io/api/cosmos/msg/v1" - fmt "fmt" _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" 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 ( diff --git a/api/initia/ibchooks/module/v1/module.pulsar.go b/api/initia/ibchooks/module/v1/module.pulsar.go index 6658f3193..4a59bd45f 100644 --- a/api/initia/ibchooks/module/v1/module.pulsar.go +++ b/api/initia/ibchooks/module/v1/module.pulsar.go @@ -2,15 +2,16 @@ package modulev1 import ( - _ "cosmossdk.io/api/cosmos/app/v1alpha1" fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + + _ "cosmossdk.io/api/cosmos/app/v1alpha1" runtime "github.com/cosmos/cosmos-proto/runtime" 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 ( diff --git a/api/initia/ibchooks/v1/genesis.pulsar.go b/api/initia/ibchooks/v1/genesis.pulsar.go index cd3cfad39..05c962c09 100644 --- a/api/initia/ibchooks/v1/genesis.pulsar.go +++ b/api/initia/ibchooks/v1/genesis.pulsar.go @@ -2,16 +2,17 @@ package ibchooksv1 import ( - _ "cosmossdk.io/api/amino" fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + + _ "cosmossdk.io/api/amino" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" 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 _ protoreflect.List = (*_GenesisState_2_list)(nil) diff --git a/api/initia/ibchooks/v1/query.pulsar.go b/api/initia/ibchooks/v1/query.pulsar.go index ec8aacf81..134c99fe9 100644 --- a/api/initia/ibchooks/v1/query.pulsar.go +++ b/api/initia/ibchooks/v1/query.pulsar.go @@ -2,18 +2,19 @@ package ibchooksv1 import ( + fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + _ "cosmossdk.io/api/amino" v1beta1 "cosmossdk.io/api/cosmos/base/query/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 ( diff --git a/api/initia/ibchooks/v1/tx.pulsar.go b/api/initia/ibchooks/v1/tx.pulsar.go index ffd523feb..47390b8fd 100644 --- a/api/initia/ibchooks/v1/tx.pulsar.go +++ b/api/initia/ibchooks/v1/tx.pulsar.go @@ -2,18 +2,19 @@ package ibchooksv1 import ( + fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + _ "cosmossdk.io/api/amino" _ "cosmossdk.io/api/cosmos/msg/v1" - fmt "fmt" _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" 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 ( diff --git a/api/initia/ibchooks/v1/types.pulsar.go b/api/initia/ibchooks/v1/types.pulsar.go index 7fe310430..ccdb0eb04 100644 --- a/api/initia/ibchooks/v1/types.pulsar.go +++ b/api/initia/ibchooks/v1/types.pulsar.go @@ -2,16 +2,17 @@ package ibchooksv1 import ( - _ "cosmossdk.io/api/amino" fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + + _ "cosmossdk.io/api/amino" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" 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 ( diff --git a/api/initia/intertx/module/v1/module.pulsar.go b/api/initia/intertx/module/v1/module.pulsar.go index 83dfeb6b2..818563e1a 100644 --- a/api/initia/intertx/module/v1/module.pulsar.go +++ b/api/initia/intertx/module/v1/module.pulsar.go @@ -2,15 +2,16 @@ package modulev1 import ( - _ "cosmossdk.io/api/cosmos/app/v1alpha1" fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + + _ "cosmossdk.io/api/cosmos/app/v1alpha1" runtime "github.com/cosmos/cosmos-proto/runtime" 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 ( diff --git a/api/initia/intertx/v1/query.pulsar.go b/api/initia/intertx/v1/query.pulsar.go index cffa23c68..bdbe347d6 100644 --- a/api/initia/intertx/v1/query.pulsar.go +++ b/api/initia/intertx/v1/query.pulsar.go @@ -3,15 +3,16 @@ package intertxv1 import ( fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + 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 ( diff --git a/api/initia/intertx/v1/tx.pulsar.go b/api/initia/intertx/v1/tx.pulsar.go index f390335b4..64b2d6771 100644 --- a/api/initia/intertx/v1/tx.pulsar.go +++ b/api/initia/intertx/v1/tx.pulsar.go @@ -2,9 +2,13 @@ package intertxv1 import ( + fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + _ "cosmossdk.io/api/amino" _ "cosmossdk.io/api/cosmos/msg/v1" - 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" @@ -12,9 +16,6 @@ import ( protoiface "google.golang.org/protobuf/runtime/protoiface" protoimpl "google.golang.org/protobuf/runtime/protoimpl" anypb "google.golang.org/protobuf/types/known/anypb" - io "io" - reflect "reflect" - sync "sync" ) var ( diff --git a/api/initia/move/module/v1/module.pulsar.go b/api/initia/move/module/v1/module.pulsar.go index c75f8c76c..66aeff57f 100644 --- a/api/initia/move/module/v1/module.pulsar.go +++ b/api/initia/move/module/v1/module.pulsar.go @@ -2,15 +2,16 @@ package modulev1 import ( - _ "cosmossdk.io/api/cosmos/app/v1alpha1" fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + + _ "cosmossdk.io/api/cosmos/app/v1alpha1" runtime "github.com/cosmos/cosmos-proto/runtime" 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 ( diff --git a/api/initia/move/v1/auth.pulsar.go b/api/initia/move/v1/auth.pulsar.go index 37129f6aa..e48b8363d 100644 --- a/api/initia/move/v1/auth.pulsar.go +++ b/api/initia/move/v1/auth.pulsar.go @@ -2,17 +2,18 @@ package movev1 import ( + fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + _ "cosmossdk.io/api/amino" v1beta1 "cosmossdk.io/api/cosmos/auth/v1beta1" - fmt "fmt" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" 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 ( diff --git a/api/initia/move/v1/authz.pulsar.go b/api/initia/move/v1/authz.pulsar.go index c1fd5519b..843db7945 100644 --- a/api/initia/move/v1/authz.pulsar.go +++ b/api/initia/move/v1/authz.pulsar.go @@ -2,17 +2,18 @@ package movev1 import ( - _ "cosmossdk.io/api/amino" fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + + _ "cosmossdk.io/api/amino" _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" 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 _ protoreflect.List = (*_PublishAuthorization_1_list)(nil) diff --git a/api/initia/move/v1/genesis.pulsar.go b/api/initia/move/v1/genesis.pulsar.go index c834d5b0a..ef3f9c0a7 100644 --- a/api/initia/move/v1/genesis.pulsar.go +++ b/api/initia/move/v1/genesis.pulsar.go @@ -2,16 +2,17 @@ package movev1 import ( - _ "cosmossdk.io/api/amino" fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + + _ "cosmossdk.io/api/amino" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" 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 _ protoreflect.List = (*_GenesisState_3_list)(nil) diff --git a/api/initia/move/v1/query.pulsar.go b/api/initia/move/v1/query.pulsar.go index 7d66fd19f..c7ca9dc87 100644 --- a/api/initia/move/v1/query.pulsar.go +++ b/api/initia/move/v1/query.pulsar.go @@ -2,18 +2,19 @@ package movev1 import ( + fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + _ "cosmossdk.io/api/amino" v1beta1 "cosmossdk.io/api/cosmos/base/query/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 ( diff --git a/api/initia/move/v1/tx.pulsar.go b/api/initia/move/v1/tx.pulsar.go index 8d0c6d556..8601b4f1d 100644 --- a/api/initia/move/v1/tx.pulsar.go +++ b/api/initia/move/v1/tx.pulsar.go @@ -2,18 +2,19 @@ package movev1 import ( + fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + _ "cosmossdk.io/api/amino" _ "cosmossdk.io/api/cosmos/msg/v1" - fmt "fmt" _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" 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 _ protoreflect.List = (*_MsgPublish_2_list)(nil) diff --git a/api/initia/move/v1/types.pulsar.go b/api/initia/move/v1/types.pulsar.go index 7894f876a..0882afad2 100644 --- a/api/initia/move/v1/types.pulsar.go +++ b/api/initia/move/v1/types.pulsar.go @@ -2,16 +2,17 @@ package movev1 import ( - _ "cosmossdk.io/api/amino" fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + + _ "cosmossdk.io/api/amino" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" 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 _ protoreflect.List = (*_Params_4_list)(nil) diff --git a/api/initia/mstaking/module/v1/module.pulsar.go b/api/initia/mstaking/module/v1/module.pulsar.go index f6435845a..ac9e2bfca 100644 --- a/api/initia/mstaking/module/v1/module.pulsar.go +++ b/api/initia/mstaking/module/v1/module.pulsar.go @@ -2,15 +2,16 @@ package modulev1 import ( - _ "cosmossdk.io/api/cosmos/app/v1alpha1" fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + + _ "cosmossdk.io/api/cosmos/app/v1alpha1" runtime "github.com/cosmos/cosmos-proto/runtime" 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 ( diff --git a/api/initia/mstaking/v1/authz.pulsar.go b/api/initia/mstaking/v1/authz.pulsar.go index dd32b8ad8..c4d1706c7 100644 --- a/api/initia/mstaking/v1/authz.pulsar.go +++ b/api/initia/mstaking/v1/authz.pulsar.go @@ -2,18 +2,19 @@ package mstakingv1 import ( + fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + _ "cosmossdk.io/api/amino" v1beta1 "cosmossdk.io/api/cosmos/base/v1beta1" - fmt "fmt" _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" 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 _ protoreflect.List = (*_StakeAuthorization_1_list)(nil) diff --git a/api/initia/mstaking/v1/genesis.pulsar.go b/api/initia/mstaking/v1/genesis.pulsar.go index dee59670b..3e9d0133a 100644 --- a/api/initia/mstaking/v1/genesis.pulsar.go +++ b/api/initia/mstaking/v1/genesis.pulsar.go @@ -2,17 +2,18 @@ package mstakingv1 import ( - _ "cosmossdk.io/api/amino" fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + + _ "cosmossdk.io/api/amino" _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" 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 _ protoreflect.List = (*_GenesisState_2_list)(nil) diff --git a/api/initia/mstaking/v1/query.pulsar.go b/api/initia/mstaking/v1/query.pulsar.go index 6d43acf0e..a5f7b9c97 100644 --- a/api/initia/mstaking/v1/query.pulsar.go +++ b/api/initia/mstaking/v1/query.pulsar.go @@ -2,18 +2,19 @@ package mstakingv1 import ( + fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + v1beta1 "cosmossdk.io/api/cosmos/base/query/v1beta1" v1beta11 "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 ( diff --git a/api/initia/mstaking/v1/staking.pulsar.go b/api/initia/mstaking/v1/staking.pulsar.go index cea7a5389..cce15cd36 100644 --- a/api/initia/mstaking/v1/staking.pulsar.go +++ b/api/initia/mstaking/v1/staking.pulsar.go @@ -2,8 +2,12 @@ package mstakingv1 import ( - v1beta1 "cosmossdk.io/api/cosmos/base/v1beta1" fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + + v1beta1 "cosmossdk.io/api/cosmos/base/v1beta1" _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" @@ -13,9 +17,6 @@ import ( anypb "google.golang.org/protobuf/types/known/anypb" durationpb "google.golang.org/protobuf/types/known/durationpb" timestamppb "google.golang.org/protobuf/types/known/timestamppb" - io "io" - reflect "reflect" - sync "sync" ) var ( diff --git a/api/initia/mstaking/v1/tx.pulsar.go b/api/initia/mstaking/v1/tx.pulsar.go index dc5ed1288..cb41bb0e8 100644 --- a/api/initia/mstaking/v1/tx.pulsar.go +++ b/api/initia/mstaking/v1/tx.pulsar.go @@ -2,10 +2,14 @@ package mstakingv1 import ( + fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + _ "cosmossdk.io/api/amino" v1beta1 "cosmossdk.io/api/cosmos/base/v1beta1" _ "cosmossdk.io/api/cosmos/msg/v1" - fmt "fmt" _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" @@ -14,9 +18,6 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" anypb "google.golang.org/protobuf/types/known/anypb" timestamppb "google.golang.org/protobuf/types/known/timestamppb" - io "io" - reflect "reflect" - sync "sync" ) var _ protoreflect.List = (*_MsgCreateValidator_5_list)(nil) diff --git a/api/initia/reward/module/v1/module.pulsar.go b/api/initia/reward/module/v1/module.pulsar.go index 27eae989b..3e6ab8491 100644 --- a/api/initia/reward/module/v1/module.pulsar.go +++ b/api/initia/reward/module/v1/module.pulsar.go @@ -2,15 +2,16 @@ package modulev1 import ( - _ "cosmossdk.io/api/cosmos/app/v1alpha1" fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + + _ "cosmossdk.io/api/cosmos/app/v1alpha1" runtime "github.com/cosmos/cosmos-proto/runtime" 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 ( diff --git a/api/initia/reward/v1/genesis.pulsar.go b/api/initia/reward/v1/genesis.pulsar.go index 0cbb66f5e..e4bbc6d0c 100644 --- a/api/initia/reward/v1/genesis.pulsar.go +++ b/api/initia/reward/v1/genesis.pulsar.go @@ -3,15 +3,16 @@ package rewardv1 import ( fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoiface "google.golang.org/protobuf/runtime/protoiface" protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" - io "io" - reflect "reflect" - sync "sync" ) var ( diff --git a/api/initia/reward/v1/query.pulsar.go b/api/initia/reward/v1/query.pulsar.go index 79b59c065..e94453d68 100644 --- a/api/initia/reward/v1/query.pulsar.go +++ b/api/initia/reward/v1/query.pulsar.go @@ -3,6 +3,10 @@ package rewardv1 import ( fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" _ "google.golang.org/genproto/googleapis/api/annotations" @@ -10,9 +14,6 @@ import ( protoiface "google.golang.org/protobuf/runtime/protoiface" protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" - io "io" - reflect "reflect" - sync "sync" ) var ( diff --git a/api/initia/reward/v1/tx.pulsar.go b/api/initia/reward/v1/tx.pulsar.go index 658435cf6..2239f4acd 100644 --- a/api/initia/reward/v1/tx.pulsar.go +++ b/api/initia/reward/v1/tx.pulsar.go @@ -2,18 +2,19 @@ package rewardv1 import ( + fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + _ "cosmossdk.io/api/amino" _ "cosmossdk.io/api/cosmos/msg/v1" - fmt "fmt" _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" 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 ( diff --git a/api/initia/reward/v1/types.pulsar.go b/api/initia/reward/v1/types.pulsar.go index 725caee30..3e8b6d18c 100644 --- a/api/initia/reward/v1/types.pulsar.go +++ b/api/initia/reward/v1/types.pulsar.go @@ -2,17 +2,18 @@ package rewardv1 import ( - _ "cosmossdk.io/api/amino" fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + + _ "cosmossdk.io/api/amino" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoiface "google.golang.org/protobuf/runtime/protoiface" protoimpl "google.golang.org/protobuf/runtime/protoimpl" durationpb "google.golang.org/protobuf/types/known/durationpb" - io "io" - reflect "reflect" - sync "sync" ) var ( diff --git a/api/initia/tx/v1/query.pulsar.go b/api/initia/tx/v1/query.pulsar.go index 87e721126..c73e2e250 100644 --- a/api/initia/tx/v1/query.pulsar.go +++ b/api/initia/tx/v1/query.pulsar.go @@ -2,17 +2,18 @@ package txv1 import ( - v1beta1 "cosmossdk.io/api/cosmos/base/v1beta1" fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + + v1beta1 "cosmossdk.io/api/cosmos/base/v1beta1" 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 ( diff --git a/app/ante/sigverify/verify.go b/app/ante/sigverify/verify.go index 55fbf909c..c7c24cf44 100644 --- a/app/ante/sigverify/verify.go +++ b/app/ante/sigverify/verify.go @@ -6,6 +6,7 @@ import ( signingv1beta1 "cosmossdk.io/api/cosmos/tx/signing/v1beta1" txsigning "cosmossdk.io/x/tx/signing" + cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" "github.com/cosmos/cosmos-sdk/crypto/types/multisig" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/app/app.go b/app/app.go index dfa383747..43b61371f 100644 --- a/app/app.go +++ b/app/app.go @@ -24,6 +24,8 @@ import ( tmos "github.com/cometbft/cometbft/libs/os" dbm "github.com/cosmos/cosmos-db" + "github.com/cosmos/gogoproto/proto" + "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" @@ -49,7 +51,6 @@ import ( authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" "github.com/cosmos/cosmos-sdk/x/crisis" govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" - "github.com/cosmos/gogoproto/proto" capabilitykeeper "github.com/cosmos/ibc-go/modules/capability/keeper" icacontrollerkeeper "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/controller/keeper" diff --git a/app/app_test.go b/app/app_test.go index 40d33dab6..fe719a651 100644 --- a/app/app_test.go +++ b/app/app_test.go @@ -13,6 +13,8 @@ import ( "cosmossdk.io/log" dbm "github.com/cosmos/cosmos-db" + "github.com/cosmos/ibc-go/modules/capability" + "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/testutil/mock" sdk "github.com/cosmos/cosmos-sdk/types" @@ -23,10 +25,10 @@ import ( "github.com/cosmos/cosmos-sdk/x/consensus" "github.com/cosmos/cosmos-sdk/x/crisis" groupmodule "github.com/cosmos/cosmos-sdk/x/group/module" - "github.com/cosmos/ibc-go/modules/capability" feegrantmodule "cosmossdk.io/x/feegrant/module" "cosmossdk.io/x/upgrade" + "github.com/cosmos/cosmos-sdk/x/slashing" ica "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts" diff --git a/app/connect.go b/app/connect.go index d64e2accd..344ecbde9 100644 --- a/app/connect.go +++ b/app/connect.go @@ -5,9 +5,10 @@ import ( "strconv" "time" - sdk "github.com/cosmos/cosmos-sdk/types" grpc "google.golang.org/grpc" + sdk "github.com/cosmos/cosmos-sdk/types" + stakingkeeper "github.com/initia-labs/initia/x/mstaking/keeper" // connect oracle dependencies diff --git a/app/encoding.go b/app/encoding.go index 1af6604c7..7f2953610 100644 --- a/app/encoding.go +++ b/app/encoding.go @@ -5,6 +5,7 @@ import ( "cosmossdk.io/core/appmodule" "cosmossdk.io/log" dbm "github.com/cosmos/cosmos-db" + "github.com/cosmos/cosmos-sdk/client/flags" runtimeservices "github.com/cosmos/cosmos-sdk/runtime/services" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/app/genesis.go b/app/genesis.go index ac38cd0be..f7d033385 100644 --- a/app/genesis.go +++ b/app/genesis.go @@ -10,6 +10,7 @@ import ( "cosmossdk.io/core/address" "cosmossdk.io/math" + "github.com/cosmos/cosmos-sdk/codec" crisistypes "github.com/cosmos/cosmos-sdk/x/crisis/types" distrtypes "github.com/cosmos/cosmos-sdk/x/distribution/types" diff --git a/app/header_info/service.go b/app/header_info/service.go index 673babf7d..393c1e082 100644 --- a/app/header_info/service.go +++ b/app/header_info/service.go @@ -4,6 +4,7 @@ import ( "context" "cosmossdk.io/core/header" + sdk "github.com/cosmos/cosmos-sdk/types" ) diff --git a/app/lanes/free_test.go b/app/lanes/free_test.go index 2eb8736cd..3321e4ced 100644 --- a/app/lanes/free_test.go +++ b/app/lanes/free_test.go @@ -4,11 +4,12 @@ import ( "testing" "cosmossdk.io/log" - sdk "github.com/cosmos/cosmos-sdk/types" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" clienttypes "github.com/cosmos/ibc-go/v8/modules/core/02-client/types" channeltypes "github.com/cosmos/ibc-go/v8/modules/core/04-channel/types" + sdk "github.com/cosmos/cosmos-sdk/types" + banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" + "github.com/cometbft/cometbft/proto/tendermint/types" "github.com/stretchr/testify/require" diff --git a/app/lanes/mempool.go b/app/lanes/mempool.go index d0abd619f..8398b644a 100644 --- a/app/lanes/mempool.go +++ b/app/lanes/mempool.go @@ -6,6 +6,7 @@ import ( "fmt" "cosmossdk.io/math" + sdk "github.com/cosmos/cosmos-sdk/types" sdkmempool "github.com/cosmos/cosmos-sdk/types/mempool" diff --git a/app/lanes/system_test.go b/app/lanes/system_test.go index 0c32db630..2ab6a987e 100644 --- a/app/lanes/system_test.go +++ b/app/lanes/system_test.go @@ -4,6 +4,7 @@ import ( "testing" "cosmossdk.io/log" + sdk "github.com/cosmos/cosmos-sdk/types" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" diff --git a/app/params/config.go b/app/params/config.go index d069251fe..ba296abc8 100644 --- a/app/params/config.go +++ b/app/params/config.go @@ -2,6 +2,7 @@ package params import ( "cosmossdk.io/x/tx/signing/aminojson" + "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/app/params/proto.go b/app/params/proto.go index 5a8ffe616..c0a2f64e7 100644 --- a/app/params/proto.go +++ b/app/params/proto.go @@ -4,12 +4,13 @@ import ( "cosmossdk.io/x/tx/signing" "cosmossdk.io/x/tx/signing/aminojson" + "github.com/cosmos/gogoproto/proto" + "github.com/cosmos/cosmos-sdk/codec" codecaddress "github.com/cosmos/cosmos-sdk/codec/address" codectypes "github.com/cosmos/cosmos-sdk/codec/types" sdk "github.com/cosmos/cosmos-sdk/types" authtx "github.com/cosmos/cosmos-sdk/x/auth/tx" - "github.com/cosmos/gogoproto/proto" "github.com/initia-labs/initia/tx" ) diff --git a/app/upgrade.go b/app/upgrade.go index 49d33f67c..a40cf6823 100644 --- a/app/upgrade.go +++ b/app/upgrade.go @@ -4,6 +4,7 @@ import ( "context" upgradetypes "cosmossdk.io/x/upgrade/types" + "github.com/cosmos/cosmos-sdk/types/module" ) diff --git a/benchmark/app_test.go b/benchmark/app_test.go index 852f1f6a9..83457ecd1 100644 --- a/benchmark/app_test.go +++ b/benchmark/app_test.go @@ -17,6 +17,7 @@ import ( vmtypes "github.com/initia-labs/movevm/types" dbm "github.com/cosmos/cosmos-db" + "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" diff --git a/benchmark/transaction_test.go b/benchmark/transaction_test.go index 7072230e5..280eecdfd 100644 --- a/benchmark/transaction_test.go +++ b/benchmark/transaction_test.go @@ -6,6 +6,7 @@ import ( "github.com/stretchr/testify/require" dbm "github.com/cosmos/cosmos-db" + sdk "github.com/cosmos/cosmos-sdk/types" ) diff --git a/cmd/initiad/root.go b/cmd/initiad/root.go index 5b1c6f3d7..e811fe2c5 100644 --- a/cmd/initiad/root.go +++ b/cmd/initiad/root.go @@ -16,6 +16,7 @@ import ( confixcmd "cosmossdk.io/tools/confix/cmd" dbm "github.com/cosmos/cosmos-db" + "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/config" "github.com/cosmos/cosmos-sdk/client/debug" diff --git a/cmd/move/deploy.go b/cmd/move/deploy.go index 3f9388ef5..d61d54edc 100644 --- a/cmd/move/deploy.go +++ b/cmd/move/deploy.go @@ -10,6 +10,7 @@ import ( "cosmossdk.io/core/address" errorsmod "cosmossdk.io/errors" + "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/input" diff --git a/crypto/ethsecp256k1/ethsecp256k1.go b/crypto/ethsecp256k1/ethsecp256k1.go index 9afd48857..3e30c0742 100644 --- a/crypto/ethsecp256k1/ethsecp256k1.go +++ b/crypto/ethsecp256k1/ethsecp256k1.go @@ -11,11 +11,12 @@ import ( errorsmod "cosmossdk.io/errors" "github.com/cometbft/cometbft/crypto" + "github.com/initia-labs/initia/tx" + "golang.org/x/crypto/sha3" + "github.com/cosmos/cosmos-sdk/codec" cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" errortypes "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/initia-labs/initia/tx" - "golang.org/x/crypto/sha3" secp256k1 "github.com/decred/dcrd/dcrec/secp256k1/v4" "github.com/decred/dcrd/dcrec/secp256k1/v4/ecdsa" diff --git a/crypto/keyring/options.go b/crypto/keyring/options.go index 46c5be53a..bcd55d366 100644 --- a/crypto/keyring/options.go +++ b/crypto/keyring/options.go @@ -1,11 +1,12 @@ package keyring import ( + "github.com/spf13/cobra" + "github.com/cosmos/cosmos-sdk/client/flags" cosmoshd "github.com/cosmos/cosmos-sdk/crypto/hd" "github.com/cosmos/cosmos-sdk/crypto/keyring" "github.com/cosmos/cosmos-sdk/crypto/types" - "github.com/spf13/cobra" "github.com/initia-labs/initia/crypto/ethsecp256k1" "github.com/initia-labs/initia/crypto/hd" diff --git a/crypto/ledger/ledger.go b/crypto/ledger/ledger.go index 9c577ab2d..651c9df91 100644 --- a/crypto/ledger/ledger.go +++ b/crypto/ledger/ledger.go @@ -7,9 +7,10 @@ import ( "fmt" "strings" + "github.com/pkg/errors" + "github.com/cosmos/cosmos-sdk/crypto/ledger" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/pkg/errors" "github.com/ethereum/go-ethereum/crypto" diff --git a/crypto/ledger/ledger_mock.go b/crypto/ledger/ledger_mock.go index f947d03a8..087b1fe8e 100644 --- a/crypto/ledger/ledger_mock.go +++ b/crypto/ledger/ledger_mock.go @@ -4,8 +4,9 @@ package ledger import ( - "github.com/cosmos/cosmos-sdk/crypto/ledger" "github.com/pkg/errors" + + "github.com/cosmos/cosmos-sdk/crypto/ledger" ) func LedgerDerivationFn() func() (ledger.SECP256K1, error) { diff --git a/crypto/ledger/ledger_notavail.go b/crypto/ledger/ledger_notavail.go index 73e0a99b9..5f36a4862 100644 --- a/crypto/ledger/ledger_notavail.go +++ b/crypto/ledger/ledger_notavail.go @@ -4,8 +4,9 @@ package ledger import ( - "github.com/cosmos/cosmos-sdk/crypto/ledger" "github.com/pkg/errors" + + "github.com/cosmos/cosmos-sdk/crypto/ledger" ) func LedgerDerivationFn() func() (ledger.SECP256K1, error) { diff --git a/tx/service.go b/tx/service.go index f2ace8b78..c6f07f29b 100644 --- a/tx/service.go +++ b/tx/service.go @@ -3,10 +3,11 @@ package tx import ( "context" - sdk "github.com/cosmos/cosmos-sdk/types" gogogrpc "github.com/cosmos/gogoproto/grpc" "github.com/grpc-ecosystem/grpc-gateway/runtime" + sdk "github.com/cosmos/cosmos-sdk/types" + txtypes "github.com/initia-labs/initia/tx/types" ) diff --git a/x/bank/keeper/custom_msg_server.go b/x/bank/keeper/custom_msg_server.go index 78588075f..3f797bef0 100644 --- a/x/bank/keeper/custom_msg_server.go +++ b/x/bank/keeper/custom_msg_server.go @@ -4,6 +4,7 @@ import ( "context" errorsmod "cosmossdk.io/errors" + cosmosbank "github.com/cosmos/cosmos-sdk/x/bank/keeper" govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" diff --git a/x/bank/keeper/custom_msg_server_test.go b/x/bank/keeper/custom_msg_server_test.go index a0a321058..ecaf8fce5 100644 --- a/x/bank/keeper/custom_msg_server_test.go +++ b/x/bank/keeper/custom_msg_server_test.go @@ -3,10 +3,11 @@ package keeper_test import ( "testing" - cosmosbanktypes "github.com/cosmos/cosmos-sdk/x/bank/types" "github.com/initia-labs/initia/x/bank/keeper" "github.com/initia-labs/initia/x/bank/types" "github.com/stretchr/testify/require" + + cosmosbanktypes "github.com/cosmos/cosmos-sdk/x/bank/types" ) func Test_SetDenomMetadata(t *testing.T) { diff --git a/x/bank/keeper/grpc_query.go b/x/bank/keeper/grpc_query.go index 38a857d36..101bec375 100644 --- a/x/bank/keeper/grpc_query.go +++ b/x/bank/keeper/grpc_query.go @@ -7,6 +7,7 @@ import ( "google.golang.org/grpc/status" "cosmossdk.io/store/prefix" + "github.com/cosmos/cosmos-sdk/runtime" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/query" diff --git a/x/bank/keeper/grpc_query_test.go b/x/bank/keeper/grpc_query_test.go index 0d35c80c9..4e8fa743a 100644 --- a/x/bank/keeper/grpc_query_test.go +++ b/x/bank/keeper/grpc_query_test.go @@ -4,6 +4,7 @@ import ( "testing" "cosmossdk.io/math" + "github.com/cosmos/cosmos-sdk/testutil/testdata" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/query" diff --git a/x/bank/keeper/msg_server.go b/x/bank/keeper/msg_server.go index 86c323a15..310cb2237 100644 --- a/x/bank/keeper/msg_server.go +++ b/x/bank/keeper/msg_server.go @@ -6,6 +6,7 @@ import ( "github.com/hashicorp/go-metrics" errorsmod "cosmossdk.io/errors" + "github.com/cosmos/cosmos-sdk/telemetry" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" diff --git a/x/bank/keeper/msg_server_test.go b/x/bank/keeper/msg_server_test.go index b22766c05..24920a0b1 100644 --- a/x/bank/keeper/msg_server_test.go +++ b/x/bank/keeper/msg_server_test.go @@ -3,11 +3,12 @@ package keeper_test import ( "testing" + "github.com/stretchr/testify/require" + sdk "github.com/cosmos/cosmos-sdk/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" - "github.com/stretchr/testify/require" bankkeeper "github.com/initia-labs/initia/x/bank/keeper" ) diff --git a/x/bank/keeper/view.go b/x/bank/keeper/view.go index 2318d8d95..1e6179f45 100644 --- a/x/bank/keeper/view.go +++ b/x/bank/keeper/view.go @@ -8,6 +8,7 @@ import ( "cosmossdk.io/collections" "cosmossdk.io/core/store" "cosmossdk.io/log" + "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" cosmoskeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper" diff --git a/x/distribution/keeper/allocation_test.go b/x/distribution/keeper/allocation_test.go index 196e6e94e..c8288a0f6 100644 --- a/x/distribution/keeper/allocation_test.go +++ b/x/distribution/keeper/allocation_test.go @@ -5,6 +5,7 @@ import ( "testing" "cosmossdk.io/math" + sdk "github.com/cosmos/cosmos-sdk/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" diff --git a/x/distribution/keeper/common_test.go b/x/distribution/keeper/common_test.go index 6536553cc..b6e0eab9a 100644 --- a/x/distribution/keeper/common_test.go +++ b/x/distribution/keeper/common_test.go @@ -22,6 +22,9 @@ import ( "cosmossdk.io/x/tx/signing" "cosmossdk.io/x/upgrade" dbm "github.com/cosmos/cosmos-db" + "github.com/cosmos/gogoproto/proto" + transfertypes "github.com/cosmos/ibc-go/v8/modules/apps/transfer/types" + "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/codec" codecaddress "github.com/cosmos/cosmos-sdk/codec/address" @@ -46,8 +49,6 @@ import ( govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" govtypesv1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1" slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types" - "github.com/cosmos/gogoproto/proto" - transfertypes "github.com/cosmos/ibc-go/v8/modules/apps/transfer/types" initiaapp "github.com/initia-labs/initia/app" initiaappparams "github.com/initia-labs/initia/app/params" diff --git a/x/distribution/keeper/custom_msg_server_test.go b/x/distribution/keeper/custom_msg_server_test.go index 39fa1a9e0..5afdb93d5 100644 --- a/x/distribution/keeper/custom_msg_server_test.go +++ b/x/distribution/keeper/custom_msg_server_test.go @@ -4,10 +4,11 @@ import ( "testing" "cosmossdk.io/math" - "github.com/cosmos/cosmos-sdk/types" "github.com/initia-labs/initia/x/distribution/keeper" customTypes "github.com/initia-labs/initia/x/distribution/types" "github.com/stretchr/testify/require" + + "github.com/cosmos/cosmos-sdk/types" ) func TestDepositValidatorRewardsPool(t *testing.T) { diff --git a/x/distribution/keeper/delegation.go b/x/distribution/keeper/delegation.go index 05987d1e3..22d923d63 100644 --- a/x/distribution/keeper/delegation.go +++ b/x/distribution/keeper/delegation.go @@ -6,6 +6,7 @@ import ( "cosmossdk.io/collections" "cosmossdk.io/math" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/distribution/types" diff --git a/x/distribution/keeper/delegation_test.go b/x/distribution/keeper/delegation_test.go index b11a978a5..d9c4f6808 100644 --- a/x/distribution/keeper/delegation_test.go +++ b/x/distribution/keeper/delegation_test.go @@ -7,6 +7,7 @@ import ( abci "github.com/cometbft/cometbft/abci/types" "github.com/cometbft/cometbft/proto/tendermint/types" + sdk "github.com/cosmos/cosmos-sdk/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" diff --git a/x/distribution/keeper/genesis.go b/x/distribution/keeper/genesis.go index cfbb561a6..29a403e80 100644 --- a/x/distribution/keeper/genesis.go +++ b/x/distribution/keeper/genesis.go @@ -4,6 +4,7 @@ import ( "fmt" "cosmossdk.io/collections" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/distribution/types" diff --git a/x/distribution/keeper/grpc_query_test.go b/x/distribution/keeper/grpc_query_test.go index 841ed16d6..772ae1c07 100644 --- a/x/distribution/keeper/grpc_query_test.go +++ b/x/distribution/keeper/grpc_query_test.go @@ -3,9 +3,10 @@ package keeper_test import ( "testing" - "github.com/cosmos/cosmos-sdk/x/distribution/types" "github.com/initia-labs/initia/x/distribution/keeper" "github.com/stretchr/testify/require" + + "github.com/cosmos/cosmos-sdk/x/distribution/types" ) func TestQueryParams(t *testing.T) { diff --git a/x/distribution/keeper/invariants.go b/x/distribution/keeper/invariants.go index de5bb41ff..fc2b4f64c 100644 --- a/x/distribution/keeper/invariants.go +++ b/x/distribution/keeper/invariants.go @@ -4,6 +4,7 @@ import ( "fmt" "cosmossdk.io/collections" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/distribution/types" diff --git a/x/distribution/keeper/msg_server_test.go b/x/distribution/keeper/msg_server_test.go index fdddb189a..8410c057b 100644 --- a/x/distribution/keeper/msg_server_test.go +++ b/x/distribution/keeper/msg_server_test.go @@ -4,11 +4,12 @@ import ( "testing" "cosmossdk.io/math" + "github.com/initia-labs/initia/x/distribution/keeper" + "github.com/stretchr/testify/require" + sdk "github.com/cosmos/cosmos-sdk/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" "github.com/cosmos/cosmos-sdk/x/distribution/types" - "github.com/initia-labs/initia/x/distribution/keeper" - "github.com/stretchr/testify/require" ) func TestMsgSetWithdrawAddress(t *testing.T) { diff --git a/x/distribution/keeper/store.go b/x/distribution/keeper/store.go index 5adcd7e95..81744484a 100644 --- a/x/distribution/keeper/store.go +++ b/x/distribution/keeper/store.go @@ -5,6 +5,7 @@ import ( "errors" "cosmossdk.io/collections" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/initia-labs/initia/x/distribution/types" diff --git a/x/distribution/types/expected_keepers.go b/x/distribution/types/expected_keepers.go index a7d7d6b6d..105cce4c8 100644 --- a/x/distribution/types/expected_keepers.go +++ b/x/distribution/types/expected_keepers.go @@ -4,6 +4,7 @@ import ( context "context" "cosmossdk.io/core/address" + sdk "github.com/cosmos/cosmos-sdk/types" stakingtypes "github.com/initia-labs/initia/x/mstaking/types" diff --git a/x/dynamic-fee/abci_test.go b/x/dynamic-fee/abci_test.go index a8fe8d361..52b389af3 100644 --- a/x/dynamic-fee/abci_test.go +++ b/x/dynamic-fee/abci_test.go @@ -13,8 +13,9 @@ import ( "github.com/initia-labs/initia/x/dynamic-fee/types" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" movetypes "github.com/initia-labs/initia/x/move/types" + + banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" ) func Test_EndBlocker(t *testing.T) { diff --git a/x/dynamic-fee/ante/ante_test.go b/x/dynamic-fee/ante/ante_test.go index 7d0c69205..a6a0c5753 100644 --- a/x/dynamic-fee/ante/ante_test.go +++ b/x/dynamic-fee/ante/ante_test.go @@ -10,6 +10,7 @@ import ( "cosmossdk.io/log" dbm "github.com/cosmos/cosmos-db" + "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/tx" diff --git a/x/dynamic-fee/ante/fee.go b/x/dynamic-fee/ante/fee.go index 794a9624b..d0163f893 100644 --- a/x/dynamic-fee/ante/fee.go +++ b/x/dynamic-fee/ante/fee.go @@ -4,9 +4,10 @@ import ( "cosmossdk.io/errors" "cosmossdk.io/math" + dynamicfeetypes "github.com/initia-labs/initia/x/dynamic-fee/types" + sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - dynamicfeetypes "github.com/initia-labs/initia/x/dynamic-fee/types" ) // MempoolFeeChecker will check if the transaction's fee is at least as large diff --git a/x/dynamic-fee/ante/fee_utils.go b/x/dynamic-fee/ante/fee_utils.go index b49aacf3c..3060e1601 100644 --- a/x/dynamic-fee/ante/fee_utils.go +++ b/x/dynamic-fee/ante/fee_utils.go @@ -7,26 +7,6 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" ) -// combinedMinGasPrices will combine the on-chain fee and min_gas_prices. -func combinedMinGasPrices(baseDenom string, baseMinGasPrice math.LegacyDec, minGasPrices sdk.DecCoins) sdk.DecCoins { - // empty min_gas_price - if len(minGasPrices) == 0 { - return sdk.DecCoins{sdk.NewDecCoinFromDec(baseDenom, baseMinGasPrice)} - } - - baseMinGasPriceFromConfig := minGasPrices.AmountOf(baseDenom) - - // if the configured value is bigger than - // on chain baseMinGasPrice, return origin minGasPrices - if baseMinGasPriceFromConfig.GTE(baseMinGasPrice) { - return minGasPrices - } - - // else, change min gas price of base denom to on chain value - diff := baseMinGasPrice.Sub(baseMinGasPriceFromConfig) - return minGasPrices.Add(sdk.NewDecCoinFromDec(baseDenom, diff)) -} - // computeRequiredFees returns required fees func computeRequiredFees(gas storetypes.Gas, minGasPrices sdk.DecCoins) sdk.Coins { // special case: if minGasPrices=[], requiredFees=[] diff --git a/x/dynamic-fee/keeper/common_test.go b/x/dynamic-fee/keeper/common_test.go index a182c58de..dc022d157 100644 --- a/x/dynamic-fee/keeper/common_test.go +++ b/x/dynamic-fee/keeper/common_test.go @@ -27,6 +27,7 @@ import ( storetypes "cosmossdk.io/store/types" "cosmossdk.io/x/tx/signing" dbm "github.com/cosmos/cosmos-db" + "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/codec" codecaddress "github.com/cosmos/cosmos-sdk/codec/address" diff --git a/x/dynamic-fee/keeper/genesis.go b/x/dynamic-fee/keeper/genesis.go index 1d2d9fcfb..af4e8c479 100644 --- a/x/dynamic-fee/keeper/genesis.go +++ b/x/dynamic-fee/keeper/genesis.go @@ -7,7 +7,7 @@ import ( ) // InitGenesis sets supply information for genesis. -func (k Keeper) InitGenesis(ctx context.Context, moduleNames []string, genState types.GenesisState) error { +func (k Keeper) InitGenesis(ctx context.Context, genState types.GenesisState) error { params := genState.GetParams() if err := k.SetParams(ctx, params); err != nil { return err diff --git a/x/dynamic-fee/keeper/keeper.go b/x/dynamic-fee/keeper/keeper.go index 72f82f03c..3c379dccf 100644 --- a/x/dynamic-fee/keeper/keeper.go +++ b/x/dynamic-fee/keeper/keeper.go @@ -3,9 +3,10 @@ package keeper import ( "context" + "github.com/initia-labs/initia/x/dynamic-fee/types" + "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/initia-labs/initia/x/dynamic-fee/types" "cosmossdk.io/collections" "cosmossdk.io/core/address" diff --git a/x/dynamic-fee/module.go b/x/dynamic-fee/module.go index 46412b6cf..368383521 100644 --- a/x/dynamic-fee/module.go +++ b/x/dynamic-fee/module.go @@ -4,7 +4,6 @@ import ( "context" "encoding/json" - "cosmossdk.io/core/address" "cosmossdk.io/core/appmodule" "github.com/grpc-ecosystem/grpc-gateway/runtime" @@ -79,9 +78,7 @@ func (b AppModuleBasic) RegisterInterfaces(registry cdctypes.InterfaceRegistry) type AppModule struct { AppModuleBasic - keeper keeper.Keeper - vc address.Codec - moduleNames []string + keeper keeper.Keeper } // IsAppModule implements the appmodule.AppModule interface. @@ -121,7 +118,7 @@ func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, data json. var genesisState types.GenesisState cdc.MustUnmarshalJSON(data, &genesisState) - if err := am.keeper.InitGenesis(ctx, am.moduleNames, genesisState); err != nil { + if err := am.keeper.InitGenesis(ctx, genesisState); err != nil { panic(err) } } diff --git a/x/evidence/keeper/grpc_query.go b/x/evidence/keeper/grpc_query.go index 16b1c314e..3d0829158 100644 --- a/x/evidence/keeper/grpc_query.go +++ b/x/evidence/keeper/grpc_query.go @@ -14,6 +14,7 @@ import ( "cosmossdk.io/x/evidence/exported" "cosmossdk.io/x/evidence/types" + codectypes "github.com/cosmos/cosmos-sdk/codec/types" sdk "github.com/cosmos/cosmos-sdk/types" ) diff --git a/x/evidence/keeper/infraction.go b/x/evidence/keeper/infraction.go index ad4dd2b68..12e359d61 100644 --- a/x/evidence/keeper/infraction.go +++ b/x/evidence/keeper/infraction.go @@ -5,6 +5,7 @@ import ( "fmt" "cosmossdk.io/x/evidence/types" + sdk "github.com/cosmos/cosmos-sdk/types" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" ) diff --git a/x/evidence/keeper/keeper.go b/x/evidence/keeper/keeper.go index abe34ea61..488d282f1 100644 --- a/x/evidence/keeper/keeper.go +++ b/x/evidence/keeper/keeper.go @@ -14,6 +14,7 @@ import ( "cosmossdk.io/log" "cosmossdk.io/x/evidence/exported" "cosmossdk.io/x/evidence/types" + "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/gov/abci.go b/x/gov/abci.go index 99ca77ec6..409364a84 100644 --- a/x/gov/abci.go +++ b/x/gov/abci.go @@ -6,6 +6,7 @@ import ( "time" "cosmossdk.io/collections" + "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/telemetry" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/gov/abci_test.go b/x/gov/abci_test.go index 3f552d143..217a2aaff 100644 --- a/x/gov/abci_test.go +++ b/x/gov/abci_test.go @@ -5,11 +5,12 @@ import ( "time" "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" - v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1" "github.com/initia-labs/initia/x/gov" "github.com/initia-labs/initia/x/gov/keeper" "github.com/stretchr/testify/require" + + sdk "github.com/cosmos/cosmos-sdk/types" + v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1" ) func TestSimpleProposalPassedEndblocker(t *testing.T) { diff --git a/x/gov/client/cli/query.go b/x/gov/client/cli/query.go index 9e5d509f4..2c0e6fdea 100644 --- a/x/gov/client/cli/query.go +++ b/x/gov/client/cli/query.go @@ -12,10 +12,11 @@ import ( "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/version" + customtypes "github.com/initia-labs/initia/x/gov/types" + gcutils "github.com/cosmos/cosmos-sdk/x/gov/client/utils" "github.com/cosmos/cosmos-sdk/x/gov/types" v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1" - customtypes "github.com/initia-labs/initia/x/gov/types" ) // Proposal flags diff --git a/x/gov/common_test.go b/x/gov/common_test.go index e7d6a2f79..1c75131dd 100644 --- a/x/gov/common_test.go +++ b/x/gov/common_test.go @@ -14,6 +14,7 @@ import ( cmtypes "github.com/cometbft/cometbft/types" abci "github.com/cometbft/cometbft/abci/types" + sdk "github.com/cosmos/cosmos-sdk/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" diff --git a/x/gov/genesis.go b/x/gov/genesis.go index 8314357be..ff4d43364 100644 --- a/x/gov/genesis.go +++ b/x/gov/genesis.go @@ -4,6 +4,7 @@ import ( "fmt" "cosmossdk.io/collections" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/gov/types" v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1" diff --git a/x/gov/keeper/common_test.go b/x/gov/keeper/common_test.go index e5c3e1ed2..f8fe918af 100644 --- a/x/gov/keeper/common_test.go +++ b/x/gov/keeper/common_test.go @@ -25,6 +25,9 @@ import ( "cosmossdk.io/x/upgrade" upgradetypes "cosmossdk.io/x/upgrade/types" dbm "github.com/cosmos/cosmos-db" + "github.com/cosmos/gogoproto/proto" + capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types" + "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/codec" codecaddress "github.com/cosmos/cosmos-sdk/codec/address" @@ -49,8 +52,6 @@ import ( govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" govtypesv1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1" slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types" - "github.com/cosmos/gogoproto/proto" - capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types" initiaapp "github.com/initia-labs/initia/app" initiaappparams "github.com/initia-labs/initia/app/params" diff --git a/x/gov/keeper/custom_grpc_query.go b/x/gov/keeper/custom_grpc_query.go index 12351a1f4..d12ea4972 100644 --- a/x/gov/keeper/custom_grpc_query.go +++ b/x/gov/keeper/custom_grpc_query.go @@ -6,9 +6,10 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/query" - v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1" customtypes "github.com/initia-labs/initia/x/gov/types" + v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1" + "cosmossdk.io/collections" "cosmossdk.io/errors" "google.golang.org/grpc/codes" diff --git a/x/gov/keeper/deposit_test.go b/x/gov/keeper/deposit_test.go index 59e758f7f..0e47f49a0 100644 --- a/x/gov/keeper/deposit_test.go +++ b/x/gov/keeper/deposit_test.go @@ -6,10 +6,11 @@ import ( "cosmossdk.io/collections" "cosmossdk.io/math" + "github.com/stretchr/testify/require" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/gov/types" v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1" - "github.com/stretchr/testify/require" ) func TestSimpleDeposits(t *testing.T) { diff --git a/x/gov/keeper/grpc_query.go b/x/gov/keeper/grpc_query.go index af2503d28..1f5353362 100644 --- a/x/gov/keeper/grpc_query.go +++ b/x/gov/keeper/grpc_query.go @@ -9,6 +9,7 @@ import ( "cosmossdk.io/collections" "cosmossdk.io/errors" "cosmossdk.io/math" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/query" v3 "github.com/cosmos/cosmos-sdk/x/gov/migrations/v3" diff --git a/x/gov/keeper/invariants.go b/x/gov/keeper/invariants.go index 48dc4141a..b338b528e 100644 --- a/x/gov/keeper/invariants.go +++ b/x/gov/keeper/invariants.go @@ -6,6 +6,7 @@ import ( "fmt" "cosmossdk.io/collections" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/gov/types" v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1" diff --git a/x/gov/keeper/vote_test.go b/x/gov/keeper/vote_test.go index e6c12acc3..bac2b1efb 100644 --- a/x/gov/keeper/vote_test.go +++ b/x/gov/keeper/vote_test.go @@ -4,9 +4,10 @@ import ( "testing" "cosmossdk.io/collections" + "github.com/stretchr/testify/require" + "github.com/cosmos/cosmos-sdk/types" v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1" - "github.com/stretchr/testify/require" ) func TestSimpleVote(t *testing.T) { diff --git a/x/gov/types/expected_keeper.go b/x/gov/types/expected_keeper.go index d768c4b5a..7fe5d222a 100644 --- a/x/gov/types/expected_keeper.go +++ b/x/gov/types/expected_keeper.go @@ -5,6 +5,7 @@ import ( "cosmossdk.io/core/address" "cosmossdk.io/math" + sdk "github.com/cosmos/cosmos-sdk/types" stakingtypes "github.com/initia-labs/initia/x/mstaking/types" diff --git a/x/gov/types/genesis.go b/x/gov/types/genesis.go index 56ee7594a..58d879161 100644 --- a/x/gov/types/genesis.go +++ b/x/gov/types/genesis.go @@ -4,6 +4,7 @@ import ( "errors" "cosmossdk.io/core/address" + "github.com/cosmos/cosmos-sdk/codec/types" v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1" ) diff --git a/x/gov/types/proposal.go b/x/gov/types/proposal.go index 6ae5a8299..55d5a0844 100644 --- a/x/gov/types/proposal.go +++ b/x/gov/types/proposal.go @@ -6,6 +6,7 @@ import ( "time" "cosmossdk.io/math" + "github.com/cosmos/cosmos-sdk/codec/types" sdk "github.com/cosmos/cosmos-sdk/types" sdktx "github.com/cosmos/cosmos-sdk/types/tx" diff --git a/x/ibc-hooks/hooks.go b/x/ibc-hooks/hooks.go index c5c7335d0..49c2ed239 100644 --- a/x/ibc-hooks/hooks.go +++ b/x/ibc-hooks/hooks.go @@ -2,9 +2,10 @@ package ibc_hooks import ( // external libraries - sdk "github.com/cosmos/cosmos-sdk/types" capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types" + sdk "github.com/cosmos/cosmos-sdk/types" + // ibc-go clienttypes "github.com/cosmos/ibc-go/v8/modules/core/02-client/types" channeltypes "github.com/cosmos/ibc-go/v8/modules/core/04-channel/types" diff --git a/x/ibc-hooks/ibc_middleware.go b/x/ibc-hooks/ibc_middleware.go index 4b8f74f6e..e2345804d 100644 --- a/x/ibc-hooks/ibc_middleware.go +++ b/x/ibc-hooks/ibc_middleware.go @@ -4,9 +4,10 @@ import ( "github.com/initia-labs/initia/x/ibc-hooks/keeper" // external libraries - sdk "github.com/cosmos/cosmos-sdk/types" capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types" + sdk "github.com/cosmos/cosmos-sdk/types" + // ibc-go clienttypes "github.com/cosmos/ibc-go/v8/modules/core/02-client/types" channeltypes "github.com/cosmos/ibc-go/v8/modules/core/04-channel/types" diff --git a/x/ibc-hooks/ics4_middleware.go b/x/ibc-hooks/ics4_middleware.go index 2bcba2059..13362daf2 100644 --- a/x/ibc-hooks/ics4_middleware.go +++ b/x/ibc-hooks/ics4_middleware.go @@ -2,9 +2,10 @@ package ibc_hooks import ( // external libraries - sdk "github.com/cosmos/cosmos-sdk/types" capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types" + sdk "github.com/cosmos/cosmos-sdk/types" + // ibc-go clienttypes "github.com/cosmos/ibc-go/v8/modules/core/02-client/types" porttypes "github.com/cosmos/ibc-go/v8/modules/core/05-port/types" diff --git a/x/ibc-hooks/keeper/acl.go b/x/ibc-hooks/keeper/acl.go index 5c2eb9d2d..5eadab061 100644 --- a/x/ibc-hooks/keeper/acl.go +++ b/x/ibc-hooks/keeper/acl.go @@ -5,6 +5,7 @@ import ( "errors" "cosmossdk.io/collections" + sdk "github.com/cosmos/cosmos-sdk/types" ) diff --git a/x/ibc-hooks/keeper/common_test.go b/x/ibc-hooks/keeper/common_test.go index 20197b28d..4482d583b 100644 --- a/x/ibc-hooks/keeper/common_test.go +++ b/x/ibc-hooks/keeper/common_test.go @@ -24,6 +24,7 @@ import ( upgradetypes "cosmossdk.io/x/upgrade/types" dbm "github.com/cosmos/cosmos-db" + "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/codec" codecaddress "github.com/cosmos/cosmos-sdk/codec/address" diff --git a/x/ibc-hooks/keeper/keeper.go b/x/ibc-hooks/keeper/keeper.go index ad15204eb..3735c09d0 100644 --- a/x/ibc-hooks/keeper/keeper.go +++ b/x/ibc-hooks/keeper/keeper.go @@ -7,6 +7,7 @@ import ( "cosmossdk.io/core/address" corestoretypes "cosmossdk.io/core/store" "cosmossdk.io/log" + "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/ibc-hooks/keeper/query_server.go b/x/ibc-hooks/keeper/query_server.go index 270886ca7..006393400 100644 --- a/x/ibc-hooks/keeper/query_server.go +++ b/x/ibc-hooks/keeper/query_server.go @@ -3,8 +3,9 @@ package keeper import ( "context" - "github.com/cosmos/cosmos-sdk/types/query" "github.com/initia-labs/initia/x/ibc-hooks/types" + + "github.com/cosmos/cosmos-sdk/types/query" ) type queryServer struct { diff --git a/x/ibc-hooks/move-hooks/ack.go b/x/ibc-hooks/move-hooks/ack.go index 2873c7474..3025626a2 100644 --- a/x/ibc-hooks/move-hooks/ack.go +++ b/x/ibc-hooks/move-hooks/ack.go @@ -1,10 +1,11 @@ package move_hooks import ( - sdk "github.com/cosmos/cosmos-sdk/types" transfertypes "github.com/cosmos/ibc-go/v8/modules/apps/transfer/types" channeltypes "github.com/cosmos/ibc-go/v8/modules/core/04-channel/types" + sdk "github.com/cosmos/cosmos-sdk/types" + ibchooks "github.com/initia-labs/initia/x/ibc-hooks" "github.com/initia-labs/initia/x/ibc-hooks/types" nfttransfertypes "github.com/initia-labs/initia/x/ibc/nft-transfer/types" diff --git a/x/ibc-hooks/move-hooks/common_test.go b/x/ibc-hooks/move-hooks/common_test.go index 31922153b..941198f24 100644 --- a/x/ibc-hooks/move-hooks/common_test.go +++ b/x/ibc-hooks/move-hooks/common_test.go @@ -20,6 +20,8 @@ import ( storetypes "cosmossdk.io/store/types" "cosmossdk.io/x/tx/signing" dbm "github.com/cosmos/cosmos-db" + "github.com/cosmos/gogoproto/proto" + "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/codec" codecaddress "github.com/cosmos/cosmos-sdk/codec/address" @@ -39,7 +41,6 @@ import ( distributiontypes "github.com/cosmos/cosmos-sdk/x/distribution/types" govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" - "github.com/cosmos/gogoproto/proto" capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types" ibc "github.com/cosmos/ibc-go/v8/modules/core" diff --git a/x/ibc-hooks/move-hooks/hooks.go b/x/ibc-hooks/move-hooks/hooks.go index 6fe3b8470..7232bb83d 100644 --- a/x/ibc-hooks/move-hooks/hooks.go +++ b/x/ibc-hooks/move-hooks/hooks.go @@ -2,11 +2,12 @@ package move_hooks import ( "cosmossdk.io/core/address" - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" channeltypes "github.com/cosmos/ibc-go/v8/modules/core/04-channel/types" ibcexported "github.com/cosmos/ibc-go/v8/modules/core/exported" + "github.com/cosmos/cosmos-sdk/codec" + sdk "github.com/cosmos/cosmos-sdk/types" + ibchooks "github.com/initia-labs/initia/x/ibc-hooks" movekeeper "github.com/initia-labs/initia/x/move/keeper" movetypes "github.com/initia-labs/initia/x/move/types" diff --git a/x/ibc-hooks/move-hooks/receive.go b/x/ibc-hooks/move-hooks/receive.go index 4f024824f..ffe5fbe33 100644 --- a/x/ibc-hooks/move-hooks/receive.go +++ b/x/ibc-hooks/move-hooks/receive.go @@ -3,11 +3,12 @@ package move_hooks import ( "fmt" - sdk "github.com/cosmos/cosmos-sdk/types" transfertypes "github.com/cosmos/ibc-go/v8/modules/apps/transfer/types" channeltypes "github.com/cosmos/ibc-go/v8/modules/core/04-channel/types" ibcexported "github.com/cosmos/ibc-go/v8/modules/core/exported" + sdk "github.com/cosmos/cosmos-sdk/types" + ibchooks "github.com/initia-labs/initia/x/ibc-hooks" nfttransfertypes "github.com/initia-labs/initia/x/ibc/nft-transfer/types" movekeeper "github.com/initia-labs/initia/x/move/keeper" diff --git a/x/ibc-hooks/move-hooks/timeout.go b/x/ibc-hooks/move-hooks/timeout.go index 5514cf72c..be890013e 100644 --- a/x/ibc-hooks/move-hooks/timeout.go +++ b/x/ibc-hooks/move-hooks/timeout.go @@ -1,10 +1,11 @@ package move_hooks import ( - sdk "github.com/cosmos/cosmos-sdk/types" transfertypes "github.com/cosmos/ibc-go/v8/modules/apps/transfer/types" channeltypes "github.com/cosmos/ibc-go/v8/modules/core/04-channel/types" + sdk "github.com/cosmos/cosmos-sdk/types" + ibchooks "github.com/initia-labs/initia/x/ibc-hooks" "github.com/initia-labs/initia/x/ibc-hooks/types" nfttransfertypes "github.com/initia-labs/initia/x/ibc/nft-transfer/types" diff --git a/x/ibc/nft-transfer/ibc_module.go b/x/ibc/nft-transfer/ibc_module.go index f886fd5b2..94ad03099 100644 --- a/x/ibc/nft-transfer/ibc_module.go +++ b/x/ibc/nft-transfer/ibc_module.go @@ -7,9 +7,10 @@ import ( "cosmossdk.io/errors" + capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types" + sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types" channeltypes "github.com/cosmos/ibc-go/v8/modules/core/04-channel/types" porttypes "github.com/cosmos/ibc-go/v8/modules/core/05-port/types" diff --git a/x/ibc/nft-transfer/keeper/keeper.go b/x/ibc/nft-transfer/keeper/keeper.go index 6c20b6a2a..04ab3808e 100644 --- a/x/ibc/nft-transfer/keeper/keeper.go +++ b/x/ibc/nft-transfer/keeper/keeper.go @@ -7,11 +7,12 @@ import ( "cosmossdk.io/collections" "cosmossdk.io/core/store" "cosmossdk.io/log" - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" capabilitykeeper "github.com/cosmos/ibc-go/modules/capability/keeper" capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types" + "github.com/cosmos/cosmos-sdk/codec" + sdk "github.com/cosmos/cosmos-sdk/types" + host "github.com/cosmos/ibc-go/v8/modules/core/24-host" "github.com/cosmos/ibc-go/v8/modules/core/exported" diff --git a/x/ibc/nft-transfer/keeper/params_test.go b/x/ibc/nft-transfer/keeper/params_test.go index cf44ea6ac..dff4a0d52 100644 --- a/x/ibc/nft-transfer/keeper/params_test.go +++ b/x/ibc/nft-transfer/keeper/params_test.go @@ -1,8 +1,9 @@ package keeper_test import ( - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/initia-labs/initia/x/ibc/nft-transfer/types" + + sdk "github.com/cosmos/cosmos-sdk/types" ) func (suite *KeeperTestSuite) TestSendEnabled() { diff --git a/x/ibc/nft-transfer/keeper/relay_test.go b/x/ibc/nft-transfer/keeper/relay_test.go index 9788b8d2b..492f3b06f 100644 --- a/x/ibc/nft-transfer/keeper/relay_test.go +++ b/x/ibc/nft-transfer/keeper/relay_test.go @@ -9,8 +9,9 @@ import ( movekeeper "github.com/initia-labs/initia/x/move/keeper" movetypes "github.com/initia-labs/initia/x/move/types" - sdk "github.com/cosmos/cosmos-sdk/types" channeltypes "github.com/cosmos/ibc-go/v8/modules/core/04-channel/types" + + sdk "github.com/cosmos/cosmos-sdk/types" ) func (suite *KeeperTestSuite) GetNFTOwner(ctx context.Context, k *keeper.Keeper, moveKeeper *movekeeper.Keeper, nftKeeper *movekeeper.NftKeeper, classId, className, nftId string) sdk.AccAddress { diff --git a/x/ibc/nft-transfer/types/codec.go b/x/ibc/nft-transfer/types/codec.go index 2b7ed30f1..173c0896f 100644 --- a/x/ibc/nft-transfer/types/codec.go +++ b/x/ibc/nft-transfer/types/codec.go @@ -3,13 +3,14 @@ package types import ( "bytes" + "github.com/cosmos/gogoproto/jsonpb" + "github.com/cosmos/gogoproto/proto" + "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/codec/legacy" codectypes "github.com/cosmos/cosmos-sdk/codec/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/msgservice" - "github.com/cosmos/gogoproto/jsonpb" - "github.com/cosmos/gogoproto/proto" ) // RegisterLegacyAminoCodec registers the necessary x/ibc transfer interfaces and concrete types diff --git a/x/ibc/nft-transfer/types/expected_keeper.go b/x/ibc/nft-transfer/types/expected_keeper.go index b8d83b6cc..d19c8479e 100644 --- a/x/ibc/nft-transfer/types/expected_keeper.go +++ b/x/ibc/nft-transfer/types/expected_keeper.go @@ -4,9 +4,10 @@ import ( "context" "cosmossdk.io/core/address" - sdk "github.com/cosmos/cosmos-sdk/types" capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types" + sdk "github.com/cosmos/cosmos-sdk/types" + clienttypes "github.com/cosmos/ibc-go/v8/modules/core/02-client/types" connectiontypes "github.com/cosmos/ibc-go/v8/modules/core/03-connection/types" channeltypes "github.com/cosmos/ibc-go/v8/modules/core/04-channel/types" diff --git a/x/ibc/perm/client/cli/tx.go b/x/ibc/perm/client/cli/tx.go index 3bf4c1f1d..f3d072921 100644 --- a/x/ibc/perm/client/cli/tx.go +++ b/x/ibc/perm/client/cli/tx.go @@ -7,6 +7,7 @@ import ( "github.com/spf13/cobra" "cosmossdk.io/core/address" + "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/tx" diff --git a/x/ibc/perm/ibc_module.go b/x/ibc/perm/ibc_module.go index 694442965..3ae02ba9a 100644 --- a/x/ibc/perm/ibc_module.go +++ b/x/ibc/perm/ibc_module.go @@ -3,9 +3,10 @@ package perm import ( "fmt" - sdk "github.com/cosmos/cosmos-sdk/types" capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types" + sdk "github.com/cosmos/cosmos-sdk/types" + clienttypes "github.com/cosmos/ibc-go/v8/modules/core/02-client/types" channeltypes "github.com/cosmos/ibc-go/v8/modules/core/04-channel/types" porttypes "github.com/cosmos/ibc-go/v8/modules/core/05-port/types" diff --git a/x/ibc/perm/keeper/genesis_test.go b/x/ibc/perm/keeper/genesis_test.go index 74c1587a2..7238c90a9 100644 --- a/x/ibc/perm/keeper/genesis_test.go +++ b/x/ibc/perm/keeper/genesis_test.go @@ -7,6 +7,7 @@ import ( "github.com/stretchr/testify/require" dbm "github.com/cosmos/cosmos-db" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/initia-labs/initia/x/ibc/perm/types" diff --git a/x/ibc/perm/keeper/grpc_query.go b/x/ibc/perm/keeper/grpc_query.go index e2db32181..93b652875 100644 --- a/x/ibc/perm/keeper/grpc_query.go +++ b/x/ibc/perm/keeper/grpc_query.go @@ -4,6 +4,7 @@ import ( "context" "cosmossdk.io/collections" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/query" diff --git a/x/ibc/perm/keeper/grpc_query_test.go b/x/ibc/perm/keeper/grpc_query_test.go index 5670e3389..9cbf528a0 100644 --- a/x/ibc/perm/keeper/grpc_query_test.go +++ b/x/ibc/perm/keeper/grpc_query_test.go @@ -9,6 +9,7 @@ import ( "github.com/stretchr/testify/require" dbm "github.com/cosmos/cosmos-db" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/initia-labs/initia/x/ibc/perm/keeper" diff --git a/x/ibc/perm/keeper/keeper.go b/x/ibc/perm/keeper/keeper.go index 8610e99f1..6cb5cb356 100644 --- a/x/ibc/perm/keeper/keeper.go +++ b/x/ibc/perm/keeper/keeper.go @@ -9,6 +9,7 @@ import ( "cosmossdk.io/core/address" "cosmossdk.io/core/store" "cosmossdk.io/log" + "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/ibc/perm/keeper/keeper_test.go b/x/ibc/perm/keeper/keeper_test.go index 150feb4b9..388935709 100644 --- a/x/ibc/perm/keeper/keeper_test.go +++ b/x/ibc/perm/keeper/keeper_test.go @@ -14,6 +14,7 @@ import ( "cosmossdk.io/store/metrics" storetypes "cosmossdk.io/store/types" dbm "github.com/cosmos/cosmos-db" + "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/codec/address" "github.com/cosmos/cosmos-sdk/runtime" diff --git a/x/ibc/perm/keeper/msg_server_test.go b/x/ibc/perm/keeper/msg_server_test.go index 94003b041..13f8c4cae 100644 --- a/x/ibc/perm/keeper/msg_server_test.go +++ b/x/ibc/perm/keeper/msg_server_test.go @@ -8,6 +8,7 @@ import ( "github.com/stretchr/testify/require" dbm "github.com/cosmos/cosmos-db" + sdk "github.com/cosmos/cosmos-sdk/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" diff --git a/x/ibc/testing/app.go b/x/ibc/testing/app.go index 055e816c3..c428653a4 100644 --- a/x/ibc/testing/app.go +++ b/x/ibc/testing/app.go @@ -16,6 +16,8 @@ import ( "cosmossdk.io/log" storetypes "cosmossdk.io/store/types" dbm "github.com/cosmos/cosmos-db" + capabilitykeeper "github.com/cosmos/ibc-go/modules/capability/keeper" + "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/codec" @@ -27,7 +29,6 @@ import ( authkeeper "github.com/cosmos/cosmos-sdk/x/auth/keeper" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - capabilitykeeper "github.com/cosmos/ibc-go/modules/capability/keeper" icacontrollerkeeper "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/controller/keeper" "github.com/cosmos/ibc-go/v8/modules/core/keeper" diff --git a/x/ibc/testing/chain.go b/x/ibc/testing/chain.go index 8e3e2e087..4ab95be1e 100644 --- a/x/ibc/testing/chain.go +++ b/x/ibc/testing/chain.go @@ -16,6 +16,9 @@ import ( "cosmossdk.io/math" "github.com/stretchr/testify/require" + capabilitykeeper "github.com/cosmos/ibc-go/modules/capability/keeper" + capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types" + "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" @@ -25,8 +28,6 @@ import ( banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" "github.com/cosmos/cosmos-sdk/x/staking/testutil" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" - capabilitykeeper "github.com/cosmos/ibc-go/modules/capability/keeper" - capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types" clienttypes "github.com/cosmos/ibc-go/v8/modules/core/02-client/types" commitmenttypes "github.com/cosmos/ibc-go/v8/modules/core/23-commitment/types" diff --git a/x/intertx/ibc_module.go b/x/intertx/ibc_module.go index 325adfa42..a02ee704d 100644 --- a/x/intertx/ibc_module.go +++ b/x/intertx/ibc_module.go @@ -6,11 +6,12 @@ import ( errorsmod "cosmossdk.io/errors" "github.com/initia-labs/initia/x/intertx/keeper" + capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types" + sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" - capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types" channeltypes "github.com/cosmos/ibc-go/v8/modules/core/04-channel/types" porttypes "github.com/cosmos/ibc-go/v8/modules/core/05-port/types" diff --git a/x/intertx/keeper/keeper.go b/x/intertx/keeper/keeper.go index 6bcd22809..ebe0f8049 100644 --- a/x/intertx/keeper/keeper.go +++ b/x/intertx/keeper/keeper.go @@ -6,11 +6,12 @@ import ( "cosmossdk.io/core/address" "cosmossdk.io/log" - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" capabilitykeeper "github.com/cosmos/ibc-go/modules/capability/keeper" capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types" + "github.com/cosmos/cosmos-sdk/codec" + sdk "github.com/cosmos/cosmos-sdk/types" + icacontrollerkeeper "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/controller/keeper" "github.com/initia-labs/initia/x/intertx/types" ) diff --git a/x/move/client/cli/query.go b/x/move/client/cli/query.go index 9d695f4f9..eb663c3a6 100644 --- a/x/move/client/cli/query.go +++ b/x/move/client/cli/query.go @@ -9,6 +9,7 @@ import ( "cosmossdk.io/core/address" errorsmod "cosmossdk.io/errors" + "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/move/client/cli/tx.go b/x/move/client/cli/tx.go index 4fcec0456..8d3b20cc7 100644 --- a/x/move/client/cli/tx.go +++ b/x/move/client/cli/tx.go @@ -9,6 +9,7 @@ import ( "cosmossdk.io/core/address" errorsmod "cosmossdk.io/errors" + "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/tx" diff --git a/x/move/keeper/api.go b/x/move/keeper/api.go index 84b2110c8..67a5c65c8 100644 --- a/x/move/keeper/api.go +++ b/x/move/keeper/api.go @@ -6,6 +6,7 @@ import ( "errors" "cosmossdk.io/math" + sdk "github.com/cosmos/cosmos-sdk/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" diff --git a/x/move/keeper/balancer.go b/x/move/keeper/balancer.go index 10636553a..3cbab136d 100644 --- a/x/move/keeper/balancer.go +++ b/x/move/keeper/balancer.go @@ -8,6 +8,7 @@ import ( "cosmossdk.io/collections" moderrors "cosmossdk.io/errors" "cosmossdk.io/math" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/initia-labs/initia/x/move/types" diff --git a/x/move/keeper/balancer_test.go b/x/move/keeper/balancer_test.go index 8c3324d6a..39c5e0d35 100644 --- a/x/move/keeper/balancer_test.go +++ b/x/move/keeper/balancer_test.go @@ -6,6 +6,7 @@ import ( "github.com/stretchr/testify/require" "cosmossdk.io/math" + sdk "github.com/cosmos/cosmos-sdk/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" diff --git a/x/move/keeper/bank_test.go b/x/move/keeper/bank_test.go index d0a549a1c..6edc2bf99 100644 --- a/x/move/keeper/bank_test.go +++ b/x/move/keeper/bank_test.go @@ -9,6 +9,7 @@ import ( "github.com/stretchr/testify/require" sdkmath "cosmossdk.io/math" + sdk "github.com/cosmos/cosmos-sdk/types" cosmosbanktypes "github.com/cosmos/cosmos-sdk/x/bank/types" diff --git a/x/move/keeper/common_test.go b/x/move/keeper/common_test.go index 96684939b..ddfe7b973 100644 --- a/x/move/keeper/common_test.go +++ b/x/move/keeper/common_test.go @@ -27,6 +27,7 @@ import ( storetypes "cosmossdk.io/store/types" "cosmossdk.io/x/tx/signing" dbm "github.com/cosmos/cosmos-db" + "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/codec" codecaddress "github.com/cosmos/cosmos-sdk/codec/address" diff --git a/x/move/keeper/handler.go b/x/move/keeper/handler.go index c65319d66..0ec12bf05 100644 --- a/x/move/keeper/handler.go +++ b/x/move/keeper/handler.go @@ -12,6 +12,7 @@ import ( sdkmath "cosmossdk.io/math" storetypes "cosmossdk.io/store/types" + sdk "github.com/cosmos/cosmos-sdk/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" diff --git a/x/move/keeper/hooks.go b/x/move/keeper/hooks.go index 5bf5345f8..c51f51e68 100644 --- a/x/move/keeper/hooks.go +++ b/x/move/keeper/hooks.go @@ -4,6 +4,7 @@ import ( "context" "cosmossdk.io/math" + sdk "github.com/cosmos/cosmos-sdk/types" stakingtypes "github.com/initia-labs/initia/x/mstaking/types" diff --git a/x/move/keeper/keeper.go b/x/move/keeper/keeper.go index 57aed549d..b5b8112b3 100644 --- a/x/move/keeper/keeper.go +++ b/x/move/keeper/keeper.go @@ -8,6 +8,7 @@ import ( "cosmossdk.io/core/address" corestoretypes "cosmossdk.io/core/store" "cosmossdk.io/log" + "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/move/keeper/stableswap_test.go b/x/move/keeper/stableswap_test.go index e71968852..404ab716c 100644 --- a/x/move/keeper/stableswap_test.go +++ b/x/move/keeper/stableswap_test.go @@ -6,6 +6,7 @@ import ( "github.com/stretchr/testify/require" "cosmossdk.io/math" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/initia-labs/initia/x/move/keeper" diff --git a/x/move/keeper/vesting.go b/x/move/keeper/vesting.go index cef5aab88..f07e37f21 100644 --- a/x/move/keeper/vesting.go +++ b/x/move/keeper/vesting.go @@ -9,6 +9,7 @@ import ( "cosmossdk.io/collections" "cosmossdk.io/math" "github.com/cometbft/cometbft/libs/json" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/initia-labs/initia/x/move/types" diff --git a/x/move/keeper/vm_msg_stargate.go b/x/move/keeper/vm_msg_stargate.go index 9dd71ae1c..5d6163eb4 100644 --- a/x/move/keeper/vm_msg_stargate.go +++ b/x/move/keeper/vm_msg_stargate.go @@ -6,9 +6,10 @@ import ( errorsmod "cosmossdk.io/errors" + "github.com/cosmos/gogoproto/proto" + sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/gogoproto/proto" "github.com/initia-labs/initia/x/move/types" vmtypes "github.com/initia-labs/movevm/types" diff --git a/x/move/keeper/vm_query.go b/x/move/keeper/vm_query.go index e438b23b9..85f856e8b 100644 --- a/x/move/keeper/vm_query.go +++ b/x/move/keeper/vm_query.go @@ -7,6 +7,7 @@ import ( errorsmod "cosmossdk.io/errors" storetypes "cosmossdk.io/store/types" + sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" diff --git a/x/move/keeper/voting_power.go b/x/move/keeper/voting_power.go index c45790730..a471f038e 100644 --- a/x/move/keeper/voting_power.go +++ b/x/move/keeper/voting_power.go @@ -4,6 +4,7 @@ import ( "context" "cosmossdk.io/math" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/initia-labs/initia/x/move/types" diff --git a/x/move/keeper/whitelist_test.go b/x/move/keeper/whitelist_test.go index c2df68f12..c19e65e47 100644 --- a/x/move/keeper/whitelist_test.go +++ b/x/move/keeper/whitelist_test.go @@ -4,6 +4,7 @@ import ( "testing" "cosmossdk.io/math" + sdk "github.com/cosmos/cosmos-sdk/types" distrtypes "github.com/initia-labs/initia/x/distribution/types" diff --git a/x/move/types/auth_test.go b/x/move/types/auth_test.go index 6098dde1a..b686faab7 100644 --- a/x/move/types/auth_test.go +++ b/x/move/types/auth_test.go @@ -9,6 +9,7 @@ import ( "github.com/initia-labs/initia/x/move/types" storetypes "cosmossdk.io/store/types" + sdk "github.com/cosmos/cosmos-sdk/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" ) diff --git a/x/move/types/authz_test.go b/x/move/types/authz_test.go index 07713c847..3b0e1e28b 100644 --- a/x/move/types/authz_test.go +++ b/x/move/types/authz_test.go @@ -9,6 +9,7 @@ import ( movetypes "github.com/initia-labs/initia/x/move/types" storetypes "cosmossdk.io/store/types" + "github.com/cosmos/cosmos-sdk/codec/address" sdk "github.com/cosmos/cosmos-sdk/types" ) diff --git a/x/move/types/env.go b/x/move/types/env.go index 2fa3c75a4..9e27bad29 100644 --- a/x/move/types/env.go +++ b/x/move/types/env.go @@ -6,6 +6,7 @@ import ( "encoding/binary" "github.com/cometbft/cometbft/crypto/tmhash" + sdk "github.com/cosmos/cosmos-sdk/types" vmtypes "github.com/initia-labs/movevm/types" diff --git a/x/move/types/expected_keeper.go b/x/move/types/expected_keeper.go index 10dd7a28d..bb4efdc55 100644 --- a/x/move/types/expected_keeper.go +++ b/x/move/types/expected_keeper.go @@ -5,6 +5,7 @@ import ( "time" "cosmossdk.io/math" + sdk "github.com/cosmos/cosmos-sdk/types" distrtypes "github.com/initia-labs/initia/x/distribution/types" diff --git a/x/move/types/params_test.go b/x/move/types/params_test.go index 5ac269fe0..f9e3a0c5a 100644 --- a/x/move/types/params_test.go +++ b/x/move/types/params_test.go @@ -4,8 +4,9 @@ import ( "testing" "cosmossdk.io/math" - "github.com/cosmos/cosmos-sdk/codec/address" "github.com/stretchr/testify/require" + + "github.com/cosmos/cosmos-sdk/codec/address" ) func TestParams(t *testing.T) { diff --git a/x/move/types/vm_query.go b/x/move/types/vm_query.go index 651ed136e..b3ad3dd03 100644 --- a/x/move/types/vm_query.go +++ b/x/move/types/vm_query.go @@ -2,9 +2,10 @@ package types import ( "cosmossdk.io/core/address" - "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/gogoproto/proto" + "github.com/cosmos/cosmos-sdk/codec" + govtypes "github.com/initia-labs/initia/x/gov/types" ) diff --git a/x/move/types/vm_query_custom.go b/x/move/types/vm_query_custom.go index a4cb627aa..e97d4d017 100644 --- a/x/move/types/vm_query_custom.go +++ b/x/move/types/vm_query_custom.go @@ -5,6 +5,7 @@ import ( "encoding/json" "cosmossdk.io/core/address" + sdk "github.com/cosmos/cosmos-sdk/types" ) diff --git a/x/move/types/vm_query_custom_test.go b/x/move/types/vm_query_custom_test.go index 567f7bf84..bb200d18e 100644 --- a/x/move/types/vm_query_custom_test.go +++ b/x/move/types/vm_query_custom_test.go @@ -5,10 +5,11 @@ import ( "encoding/json" "testing" - "github.com/cosmos/cosmos-sdk/codec/address" "github.com/initia-labs/initia/x/move/types" vmtypes "github.com/initia-labs/movevm/types" "github.com/stretchr/testify/require" + + "github.com/cosmos/cosmos-sdk/codec/address" ) func Test_ToSDKAddress(t *testing.T) { diff --git a/x/mstaking/keeper/common_test.go b/x/mstaking/keeper/common_test.go index 23fb58587..78234d9b0 100644 --- a/x/mstaking/keeper/common_test.go +++ b/x/mstaking/keeper/common_test.go @@ -26,6 +26,7 @@ import ( "cosmossdk.io/x/feegrant" "cosmossdk.io/x/upgrade" upgradetypes "cosmossdk.io/x/upgrade/types" + "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/codec" codecaddress "github.com/cosmos/cosmos-sdk/codec/address" diff --git a/x/mstaking/keeper/compatibility_keeper.go b/x/mstaking/keeper/compatibility_keeper.go index bbb9e972d..2bff3556d 100644 --- a/x/mstaking/keeper/compatibility_keeper.go +++ b/x/mstaking/keeper/compatibility_keeper.go @@ -4,6 +4,7 @@ import ( "context" "cosmossdk.io/math" + sdk "github.com/cosmos/cosmos-sdk/types" cosmostypes "github.com/cosmos/cosmos-sdk/x/staking/types" diff --git a/x/mstaking/keeper/compatibility_keeper_test.go b/x/mstaking/keeper/compatibility_keeper_test.go index fdb479322..7b01014d5 100644 --- a/x/mstaking/keeper/compatibility_keeper_test.go +++ b/x/mstaking/keeper/compatibility_keeper_test.go @@ -4,9 +4,10 @@ import ( "testing" "cosmossdk.io/math" - cosmostypes "github.com/cosmos/cosmos-sdk/x/staking/types" stakingkeeper "github.com/initia-labs/initia/x/mstaking/keeper" "github.com/stretchr/testify/require" + + cosmostypes "github.com/cosmos/cosmos-sdk/x/staking/types" ) func Test_CompatibleValidator(t *testing.T) { diff --git a/x/mstaking/keeper/grpc_query.go b/x/mstaking/keeper/grpc_query.go index 5d289c503..1c629dada 100644 --- a/x/mstaking/keeper/grpc_query.go +++ b/x/mstaking/keeper/grpc_query.go @@ -9,6 +9,7 @@ import ( "google.golang.org/grpc/status" "cosmossdk.io/collections" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/query" diff --git a/x/mstaking/keeper/historical_info.go b/x/mstaking/keeper/historical_info.go index b5926104e..7a076c24b 100644 --- a/x/mstaking/keeper/historical_info.go +++ b/x/mstaking/keeper/historical_info.go @@ -5,6 +5,7 @@ import ( "errors" "cosmossdk.io/collections" + sdk "github.com/cosmos/cosmos-sdk/types" cosmostypes "github.com/cosmos/cosmos-sdk/x/staking/types" ) diff --git a/x/mstaking/keeper/msg_server_test.go b/x/mstaking/keeper/msg_server_test.go index b56221278..dc35b17dc 100644 --- a/x/mstaking/keeper/msg_server_test.go +++ b/x/mstaking/keeper/msg_server_test.go @@ -8,9 +8,10 @@ import ( initiaapp "github.com/initia-labs/initia/app" "github.com/stretchr/testify/require" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/initia-labs/initia/x/mstaking/keeper" "github.com/initia-labs/initia/x/mstaking/types" + + sdk "github.com/cosmos/cosmos-sdk/types" ) func Test_UpdateParams(t *testing.T) { diff --git a/x/mstaking/types/bond_denom.go b/x/mstaking/types/bond_denom.go index 01ab02e39..b8cb615a1 100644 --- a/x/mstaking/types/bond_denom.go +++ b/x/mstaking/types/bond_denom.go @@ -2,6 +2,7 @@ package types import ( "cosmossdk.io/math" + sdk "github.com/cosmos/cosmos-sdk/types" ) diff --git a/x/mstaking/types/expected_keepers.go b/x/mstaking/types/expected_keepers.go index a3eb72d06..a8d7846ca 100644 --- a/x/mstaking/types/expected_keepers.go +++ b/x/mstaking/types/expected_keepers.go @@ -5,6 +5,7 @@ import ( "cosmossdk.io/core/address" "cosmossdk.io/math" + sdk "github.com/cosmos/cosmos-sdk/types" ) diff --git a/x/mstaking/types/hooks.go b/x/mstaking/types/hooks.go index 8a66db0c5..0bf48f80e 100644 --- a/x/mstaking/types/hooks.go +++ b/x/mstaking/types/hooks.go @@ -4,6 +4,7 @@ import ( "context" "cosmossdk.io/math" + sdk "github.com/cosmos/cosmos-sdk/types" ) diff --git a/x/reward/keeper/common_test.go b/x/reward/keeper/common_test.go index 16a055aa0..832883850 100644 --- a/x/reward/keeper/common_test.go +++ b/x/reward/keeper/common_test.go @@ -23,6 +23,7 @@ import ( upgradetypes "cosmossdk.io/x/upgrade/types" dbm "github.com/cosmos/cosmos-db" + "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/codec" codecaddress "github.com/cosmos/cosmos-sdk/codec/address" diff --git a/x/reward/types/expected_keeper.go b/x/reward/types/expected_keeper.go index 890ea0c04..98139a905 100644 --- a/x/reward/types/expected_keeper.go +++ b/x/reward/types/expected_keeper.go @@ -4,6 +4,7 @@ import ( context "context" "cosmossdk.io/core/address" + sdk "github.com/cosmos/cosmos-sdk/types" ) diff --git a/x/reward/types/tx.go b/x/reward/types/tx.go index 96faa32bc..4d71e8c0a 100644 --- a/x/reward/types/tx.go +++ b/x/reward/types/tx.go @@ -2,6 +2,7 @@ package types import ( "cosmossdk.io/core/address" + sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) From 031370c03290938e539efc5f1d83df68947d4527 Mon Sep 17 00:00:00 2001 From: sh-cha Date: Fri, 21 Mar 2025 16:42:51 +0900 Subject: [PATCH 05/14] add no gas price change params --- x/dynamic-fee/abci_test.go | 49 +++++++++++++++++++++++++++++++++-- x/dynamic-fee/types/params.go | 10 +++++++ 2 files changed, 57 insertions(+), 2 deletions(-) diff --git a/x/dynamic-fee/abci_test.go b/x/dynamic-fee/abci_test.go index 52b389af3..db6da3342 100644 --- a/x/dynamic-fee/abci_test.go +++ b/x/dynamic-fee/abci_test.go @@ -41,8 +41,6 @@ func Test_EndBlocker(t *testing.T) { // initialize staking for secondBondDenom ctx = app.BaseApp.NewUncachedContext(false, tmproto.Header{}) - err = app.MoveKeeper.InitializeStaking(ctx, secondBondDenom) - require.NoError(t, err) // fund addr2 app.BankKeeper.SendCoins(ctx, movetypes.StdAddr, addr2, sdk.NewCoins(secondBondCoin)) @@ -72,3 +70,50 @@ func Test_EndBlocker(t *testing.T) { require.NoError(t, err) require.True(t, baseGasPrice.GT(lessBaseGasPrice)) } + +func Test_EndBlocker_NoBaseGasPriceChange(t *testing.T) { + app := createApp(t) + + _, err := app.FinalizeBlock(&abci.RequestFinalizeBlock{Height: app.LastBlockHeight() + 1}) + require.NoError(t, err) + + ctx := app.BaseApp.NewUncachedContext(false, tmproto.Header{}) + err = app.DynamicFeeKeeper.SetParams(ctx, types.NoBaseGasPriceChangeParams()) + require.NoError(t, err) + _, err = app.Commit() + require.NoError(t, err) + + _, err = app.FinalizeBlock(&abci.RequestFinalizeBlock{Height: app.LastBlockHeight() + 1}) + require.NoError(t, err) + + // initialize staking for secondBondDenom + ctx = app.BaseApp.NewUncachedContext(false, tmproto.Header{}) + + // fund addr2 + app.BankKeeper.SendCoins(ctx, movetypes.StdAddr, addr2, sdk.NewCoins(secondBondCoin)) + + _, err = app.Commit() + require.NoError(t, err) + + ctx = app.BaseApp.NewUncachedContext(false, tmproto.Header{}) + baseGasPrice, err := app.DynamicFeeKeeper.BaseGasPrice(ctx) + require.NoError(t, err) + require.True(t, baseGasPrice.Equal(types.DefaultBaseGasPrice)) + + msgs := []sdk.Msg{} + for i := 0; i < 100; i++ { + msgs = append(msgs, &banktypes.MsgSend{ + FromAddress: addr2.String(), + ToAddress: addr1.String(), + Amount: sdk.NewCoins(sdk.NewInt64Coin(secondBondDenom, 10)), + }) + } + + _, err = executeMsgsWithGasInfo(t, app, msgs, []uint64{1}, []uint64{0}, priv2) + require.NoError(t, err) + + ctx = app.BaseApp.NewUncachedContext(false, tmproto.Header{}) + baseGasPrice, err = app.DynamicFeeKeeper.BaseGasPrice(ctx) + require.NoError(t, err) + require.True(t, baseGasPrice.Equal(types.DefaultBaseGasPrice)) +} diff --git a/x/dynamic-fee/types/params.go b/x/dynamic-fee/types/params.go index e18dd9656..fc31db424 100644 --- a/x/dynamic-fee/types/params.go +++ b/x/dynamic-fee/types/params.go @@ -28,6 +28,16 @@ func DefaultParams() Params { } } +func NoBaseGasPriceChangeParams() Params { + return Params{ + BaseGasPrice: DefaultBaseGasPrice, + MinBaseGasPrice: DefaultMinBaseGasPrice, + MaxBaseGasPrice: DefaultMaxBaseGasPrice, + TargetGas: DefaultTargetGas, + MaxChangeRate: math.LegacyZeroDec(), + } +} + func (p Params) Validate() error { if p.BaseGasPrice.IsNegative() { return fmt.Errorf("base gas price must be non-negative") From 9b6eec1ec1c05f2c62ef07d14c6c9432ca0b722a Mon Sep 17 00:00:00 2001 From: beer-1 Date: Mon, 24 Mar 2025 14:01:38 +0900 Subject: [PATCH 06/14] Revert "format & lint" This reverts commit 3be2ac960abcd5d314e2bb6cb7133f6f8fd6e2c8. --- .../applications/perm/v1/genesis.pulsar.go | 7 +++---- api/ibc/applications/perm/v1/query.pulsar.go | 9 ++++----- api/ibc/applications/perm/v1/tx.pulsar.go | 9 ++++----- api/ibc/applications/perm/v1/types.pulsar.go | 7 +++---- api/initia/bank/v1/tx.pulsar.go | 9 ++++----- .../v1beta1/ethsecp256k1/keys.pulsar.go | 7 +++---- .../distribution/module/v1/module.pulsar.go | 9 ++++----- .../distribution/v1/distribution.pulsar.go | 9 ++++----- api/initia/distribution/v1/genesis.pulsar.go | 9 ++++----- api/initia/distribution/v1/query.pulsar.go | 9 ++++----- api/initia/distribution/v1/tx.pulsar.go | 9 ++++----- .../dynamicfee/module/v1/module.pulsar.go | 9 ++++----- api/initia/dynamicfee/v1/genesis.pulsar.go | 9 ++++----- api/initia/dynamicfee/v1/query.pulsar.go | 9 ++++----- api/initia/dynamicfee/v1/tx.pulsar.go | 9 ++++----- api/initia/dynamicfee/v1/types.pulsar.go | 9 ++++----- api/initia/gov/v1/genesis.pulsar.go | 9 ++++----- api/initia/gov/v1/gov.pulsar.go | 9 ++++----- api/initia/gov/v1/query.pulsar.go | 9 ++++----- api/initia/gov/v1/tx.pulsar.go | 9 ++++----- .../ibchooks/module/v1/module.pulsar.go | 9 ++++----- api/initia/ibchooks/v1/genesis.pulsar.go | 9 ++++----- api/initia/ibchooks/v1/query.pulsar.go | 9 ++++----- api/initia/ibchooks/v1/tx.pulsar.go | 9 ++++----- api/initia/ibchooks/v1/types.pulsar.go | 9 ++++----- api/initia/intertx/module/v1/module.pulsar.go | 9 ++++----- api/initia/intertx/v1/query.pulsar.go | 7 +++---- api/initia/intertx/v1/tx.pulsar.go | 9 ++++----- api/initia/move/module/v1/module.pulsar.go | 9 ++++----- api/initia/move/v1/auth.pulsar.go | 9 ++++----- api/initia/move/v1/authz.pulsar.go | 9 ++++----- api/initia/move/v1/genesis.pulsar.go | 9 ++++----- api/initia/move/v1/query.pulsar.go | 9 ++++----- api/initia/move/v1/tx.pulsar.go | 9 ++++----- api/initia/move/v1/types.pulsar.go | 9 ++++----- .../mstaking/module/v1/module.pulsar.go | 9 ++++----- api/initia/mstaking/v1/authz.pulsar.go | 9 ++++----- api/initia/mstaking/v1/genesis.pulsar.go | 9 ++++----- api/initia/mstaking/v1/query.pulsar.go | 9 ++++----- api/initia/mstaking/v1/staking.pulsar.go | 9 ++++----- api/initia/mstaking/v1/tx.pulsar.go | 9 ++++----- api/initia/reward/module/v1/module.pulsar.go | 9 ++++----- api/initia/reward/v1/genesis.pulsar.go | 7 +++---- api/initia/reward/v1/query.pulsar.go | 7 +++---- api/initia/reward/v1/tx.pulsar.go | 9 ++++----- api/initia/reward/v1/types.pulsar.go | 9 ++++----- api/initia/tx/v1/query.pulsar.go | 9 ++++----- app/ante/sigverify/verify.go | 1 - app/app.go | 3 +-- app/app_test.go | 4 +--- app/connect.go | 3 +-- app/encoding.go | 1 - app/genesis.go | 1 - app/header_info/service.go | 1 - app/lanes/free_test.go | 5 ++--- app/lanes/mempool.go | 1 - app/lanes/system_test.go | 1 - app/params/config.go | 1 - app/params/proto.go | 3 +-- app/upgrade.go | 1 - benchmark/app_test.go | 1 - benchmark/transaction_test.go | 1 - cmd/initiad/root.go | 1 - cmd/move/deploy.go | 1 - crypto/ethsecp256k1/ethsecp256k1.go | 5 ++--- crypto/keyring/options.go | 3 +-- crypto/ledger/ledger.go | 3 +-- crypto/ledger/ledger_mock.go | 3 +-- crypto/ledger/ledger_notavail.go | 3 +-- tx/service.go | 3 +-- x/bank/keeper/custom_msg_server.go | 1 - x/bank/keeper/custom_msg_server_test.go | 3 +-- x/bank/keeper/grpc_query.go | 1 - x/bank/keeper/grpc_query_test.go | 1 - x/bank/keeper/msg_server.go | 1 - x/bank/keeper/msg_server_test.go | 3 +-- x/bank/keeper/view.go | 1 - x/distribution/keeper/allocation_test.go | 1 - x/distribution/keeper/common_test.go | 5 ++--- .../keeper/custom_msg_server_test.go | 3 +-- x/distribution/keeper/delegation.go | 1 - x/distribution/keeper/delegation_test.go | 1 - x/distribution/keeper/genesis.go | 1 - x/distribution/keeper/grpc_query_test.go | 3 +-- x/distribution/keeper/invariants.go | 1 - x/distribution/keeper/msg_server_test.go | 5 ++--- x/distribution/keeper/store.go | 1 - x/distribution/types/expected_keepers.go | 1 - x/dynamic-fee/abci_test.go | 3 +-- x/dynamic-fee/ante/ante_test.go | 1 - x/dynamic-fee/ante/fee.go | 3 +-- x/dynamic-fee/ante/fee_utils.go | 20 +++++++++++++++++++ x/dynamic-fee/keeper/common_test.go | 1 - x/dynamic-fee/keeper/genesis.go | 2 +- x/dynamic-fee/keeper/keeper.go | 3 +-- x/dynamic-fee/module.go | 7 +++++-- x/evidence/keeper/grpc_query.go | 1 - x/evidence/keeper/infraction.go | 1 - x/evidence/keeper/keeper.go | 1 - x/gov/abci.go | 1 - x/gov/abci_test.go | 5 ++--- x/gov/client/cli/query.go | 3 +-- x/gov/common_test.go | 1 - x/gov/genesis.go | 1 - x/gov/keeper/common_test.go | 5 ++--- x/gov/keeper/custom_grpc_query.go | 3 +-- x/gov/keeper/deposit_test.go | 3 +-- x/gov/keeper/grpc_query.go | 1 - x/gov/keeper/invariants.go | 1 - x/gov/keeper/vote_test.go | 3 +-- x/gov/types/expected_keeper.go | 1 - x/gov/types/genesis.go | 1 - x/gov/types/proposal.go | 1 - x/ibc-hooks/hooks.go | 3 +-- x/ibc-hooks/ibc_middleware.go | 3 +-- x/ibc-hooks/ics4_middleware.go | 3 +-- x/ibc-hooks/keeper/acl.go | 1 - x/ibc-hooks/keeper/common_test.go | 1 - x/ibc-hooks/keeper/keeper.go | 1 - x/ibc-hooks/keeper/query_server.go | 3 +-- x/ibc-hooks/move-hooks/ack.go | 3 +-- x/ibc-hooks/move-hooks/common_test.go | 3 +-- x/ibc-hooks/move-hooks/hooks.go | 5 ++--- x/ibc-hooks/move-hooks/receive.go | 3 +-- x/ibc-hooks/move-hooks/timeout.go | 3 +-- x/ibc/nft-transfer/ibc_module.go | 3 +-- x/ibc/nft-transfer/keeper/keeper.go | 5 ++--- x/ibc/nft-transfer/keeper/params_test.go | 3 +-- x/ibc/nft-transfer/keeper/relay_test.go | 3 +-- x/ibc/nft-transfer/types/codec.go | 5 ++--- x/ibc/nft-transfer/types/expected_keeper.go | 3 +-- x/ibc/perm/client/cli/tx.go | 1 - x/ibc/perm/ibc_module.go | 3 +-- x/ibc/perm/keeper/genesis_test.go | 1 - x/ibc/perm/keeper/grpc_query.go | 1 - x/ibc/perm/keeper/grpc_query_test.go | 1 - x/ibc/perm/keeper/keeper.go | 1 - x/ibc/perm/keeper/keeper_test.go | 1 - x/ibc/perm/keeper/msg_server_test.go | 1 - x/ibc/testing/app.go | 3 +-- x/ibc/testing/chain.go | 5 ++--- x/intertx/ibc_module.go | 3 +-- x/intertx/keeper/keeper.go | 5 ++--- x/move/client/cli/query.go | 1 - x/move/client/cli/tx.go | 1 - x/move/keeper/api.go | 1 - x/move/keeper/balancer.go | 1 - x/move/keeper/balancer_test.go | 1 - x/move/keeper/bank_test.go | 1 - x/move/keeper/common_test.go | 1 - x/move/keeper/handler.go | 1 - x/move/keeper/hooks.go | 1 - x/move/keeper/keeper.go | 1 - x/move/keeper/stableswap_test.go | 1 - x/move/keeper/vesting.go | 1 - x/move/keeper/vm_msg_stargate.go | 3 +-- x/move/keeper/vm_query.go | 1 - x/move/keeper/voting_power.go | 1 - x/move/keeper/whitelist_test.go | 1 - x/move/types/auth_test.go | 1 - x/move/types/authz_test.go | 1 - x/move/types/env.go | 1 - x/move/types/expected_keeper.go | 1 - x/move/types/params_test.go | 3 +-- x/move/types/vm_query.go | 3 +-- x/move/types/vm_query_custom.go | 1 - x/move/types/vm_query_custom_test.go | 3 +-- x/mstaking/keeper/common_test.go | 1 - x/mstaking/keeper/compatibility_keeper.go | 1 - .../keeper/compatibility_keeper_test.go | 3 +-- x/mstaking/keeper/grpc_query.go | 1 - x/mstaking/keeper/historical_info.go | 1 - x/mstaking/keeper/msg_server_test.go | 3 +-- x/mstaking/types/bond_denom.go | 1 - x/mstaking/types/expected_keepers.go | 1 - x/mstaking/types/hooks.go | 1 - x/reward/keeper/common_test.go | 1 - x/reward/types/expected_keeper.go | 1 - x/reward/types/tx.go | 1 - 179 files changed, 271 insertions(+), 425 deletions(-) diff --git a/api/ibc/applications/perm/v1/genesis.pulsar.go b/api/ibc/applications/perm/v1/genesis.pulsar.go index a76e0b5a8..ff832c617 100644 --- a/api/ibc/applications/perm/v1/genesis.pulsar.go +++ b/api/ibc/applications/perm/v1/genesis.pulsar.go @@ -3,15 +3,14 @@ package permv1 import ( fmt "fmt" - io "io" - reflect "reflect" - sync "sync" - runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" 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 _ protoreflect.List = (*_GenesisState_1_list)(nil) diff --git a/api/ibc/applications/perm/v1/query.pulsar.go b/api/ibc/applications/perm/v1/query.pulsar.go index 3e1509f0f..3ee65c8c3 100644 --- a/api/ibc/applications/perm/v1/query.pulsar.go +++ b/api/ibc/applications/perm/v1/query.pulsar.go @@ -2,18 +2,17 @@ package permv1 import ( - fmt "fmt" - io "io" - reflect "reflect" - sync "sync" - v1beta1 "cosmossdk.io/api/cosmos/base/query/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 ( diff --git a/api/ibc/applications/perm/v1/tx.pulsar.go b/api/ibc/applications/perm/v1/tx.pulsar.go index 613db1897..c7f013e44 100644 --- a/api/ibc/applications/perm/v1/tx.pulsar.go +++ b/api/ibc/applications/perm/v1/tx.pulsar.go @@ -2,19 +2,18 @@ package permv1 import ( - fmt "fmt" - io "io" - reflect "reflect" - sync "sync" - _ "cosmossdk.io/api/amino" _ "cosmossdk.io/api/cosmos/msg/v1" + fmt "fmt" _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" 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 ( diff --git a/api/ibc/applications/perm/v1/types.pulsar.go b/api/ibc/applications/perm/v1/types.pulsar.go index 34666e0a2..1fdc3a75a 100644 --- a/api/ibc/applications/perm/v1/types.pulsar.go +++ b/api/ibc/applications/perm/v1/types.pulsar.go @@ -3,14 +3,13 @@ package permv1 import ( fmt "fmt" - io "io" - reflect "reflect" - sync "sync" - runtime "github.com/cosmos/cosmos-proto/runtime" 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 _ protoreflect.List = (*_ChannelState_4_list)(nil) diff --git a/api/initia/bank/v1/tx.pulsar.go b/api/initia/bank/v1/tx.pulsar.go index 122890f9f..6edbd7c04 100644 --- a/api/initia/bank/v1/tx.pulsar.go +++ b/api/initia/bank/v1/tx.pulsar.go @@ -2,20 +2,19 @@ package bankv1 import ( - fmt "fmt" - io "io" - reflect "reflect" - sync "sync" - _ "cosmossdk.io/api/amino" v1beta1 "cosmossdk.io/api/cosmos/bank/v1beta1" _ "cosmossdk.io/api/cosmos/msg/v1" + fmt "fmt" _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" 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 ( diff --git a/api/initia/crypto/v1beta1/ethsecp256k1/keys.pulsar.go b/api/initia/crypto/v1beta1/ethsecp256k1/keys.pulsar.go index 58c0900e9..2ac6587b9 100644 --- a/api/initia/crypto/v1beta1/ethsecp256k1/keys.pulsar.go +++ b/api/initia/crypto/v1beta1/ethsecp256k1/keys.pulsar.go @@ -3,15 +3,14 @@ package ethsecp256k1 import ( fmt "fmt" - io "io" - reflect "reflect" - sync "sync" - runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" 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 ( diff --git a/api/initia/distribution/module/v1/module.pulsar.go b/api/initia/distribution/module/v1/module.pulsar.go index def6dd6b3..d5926e19c 100644 --- a/api/initia/distribution/module/v1/module.pulsar.go +++ b/api/initia/distribution/module/v1/module.pulsar.go @@ -2,16 +2,15 @@ package modulev1 import ( - fmt "fmt" - io "io" - reflect "reflect" - sync "sync" - _ "cosmossdk.io/api/cosmos/app/v1alpha1" + fmt "fmt" runtime "github.com/cosmos/cosmos-proto/runtime" 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 ( diff --git a/api/initia/distribution/v1/distribution.pulsar.go b/api/initia/distribution/v1/distribution.pulsar.go index d229ae84f..3ced113f2 100644 --- a/api/initia/distribution/v1/distribution.pulsar.go +++ b/api/initia/distribution/v1/distribution.pulsar.go @@ -2,18 +2,17 @@ package distributionv1 import ( - fmt "fmt" - io "io" - reflect "reflect" - sync "sync" - _ "cosmossdk.io/api/amino" v1beta1 "cosmossdk.io/api/cosmos/base/v1beta1" + fmt "fmt" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" 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 _ protoreflect.List = (*_Params_3_list)(nil) diff --git a/api/initia/distribution/v1/genesis.pulsar.go b/api/initia/distribution/v1/genesis.pulsar.go index a638f5967..6290b0b19 100644 --- a/api/initia/distribution/v1/genesis.pulsar.go +++ b/api/initia/distribution/v1/genesis.pulsar.go @@ -2,17 +2,16 @@ package distributionv1 import ( - fmt "fmt" - io "io" - reflect "reflect" - sync "sync" - v1beta1 "cosmossdk.io/api/cosmos/distribution/v1beta1" + fmt "fmt" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" 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 _ protoreflect.List = (*_ValidatorOutstandingRewardsRecord_2_list)(nil) diff --git a/api/initia/distribution/v1/query.pulsar.go b/api/initia/distribution/v1/query.pulsar.go index 6c3b8e80e..66ebaeba2 100644 --- a/api/initia/distribution/v1/query.pulsar.go +++ b/api/initia/distribution/v1/query.pulsar.go @@ -2,18 +2,17 @@ package distributionv1 import ( - fmt "fmt" - io "io" - reflect "reflect" - sync "sync" - v1beta1 "cosmossdk.io/api/cosmos/base/query/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 ( diff --git a/api/initia/distribution/v1/tx.pulsar.go b/api/initia/distribution/v1/tx.pulsar.go index 692d93be5..01c746032 100644 --- a/api/initia/distribution/v1/tx.pulsar.go +++ b/api/initia/distribution/v1/tx.pulsar.go @@ -2,20 +2,19 @@ package distributionv1 import ( - fmt "fmt" - io "io" - reflect "reflect" - sync "sync" - _ "cosmossdk.io/api/amino" v1beta1 "cosmossdk.io/api/cosmos/base/v1beta1" _ "cosmossdk.io/api/cosmos/msg/v1" + fmt "fmt" _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" 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 ( diff --git a/api/initia/dynamicfee/module/v1/module.pulsar.go b/api/initia/dynamicfee/module/v1/module.pulsar.go index 168609a0e..5a0ce19f9 100644 --- a/api/initia/dynamicfee/module/v1/module.pulsar.go +++ b/api/initia/dynamicfee/module/v1/module.pulsar.go @@ -2,16 +2,15 @@ package modulev1 import ( - fmt "fmt" - io "io" - reflect "reflect" - sync "sync" - _ "cosmossdk.io/api/cosmos/app/v1alpha1" + fmt "fmt" runtime "github.com/cosmos/cosmos-proto/runtime" 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 ( diff --git a/api/initia/dynamicfee/v1/genesis.pulsar.go b/api/initia/dynamicfee/v1/genesis.pulsar.go index 144d64612..a2b559521 100644 --- a/api/initia/dynamicfee/v1/genesis.pulsar.go +++ b/api/initia/dynamicfee/v1/genesis.pulsar.go @@ -2,17 +2,16 @@ package dynamicfeev1 import ( - fmt "fmt" - io "io" - reflect "reflect" - sync "sync" - _ "cosmossdk.io/api/amino" + fmt "fmt" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" 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 ( diff --git a/api/initia/dynamicfee/v1/query.pulsar.go b/api/initia/dynamicfee/v1/query.pulsar.go index 101aa7e68..a7f9c4259 100644 --- a/api/initia/dynamicfee/v1/query.pulsar.go +++ b/api/initia/dynamicfee/v1/query.pulsar.go @@ -2,19 +2,18 @@ package dynamicfeev1 import ( - fmt "fmt" - io "io" - reflect "reflect" - sync "sync" - _ "cosmossdk.io/api/amino" _ "cosmossdk.io/api/cosmos/base/query/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 ( diff --git a/api/initia/dynamicfee/v1/tx.pulsar.go b/api/initia/dynamicfee/v1/tx.pulsar.go index 9f6470777..57e76a136 100644 --- a/api/initia/dynamicfee/v1/tx.pulsar.go +++ b/api/initia/dynamicfee/v1/tx.pulsar.go @@ -2,19 +2,18 @@ package dynamicfeev1 import ( - fmt "fmt" - io "io" - reflect "reflect" - sync "sync" - _ "cosmossdk.io/api/amino" _ "cosmossdk.io/api/cosmos/msg/v1" + fmt "fmt" _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" 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 ( diff --git a/api/initia/dynamicfee/v1/types.pulsar.go b/api/initia/dynamicfee/v1/types.pulsar.go index a5064ca35..bb6ba3f71 100644 --- a/api/initia/dynamicfee/v1/types.pulsar.go +++ b/api/initia/dynamicfee/v1/types.pulsar.go @@ -2,17 +2,16 @@ package dynamicfeev1 import ( - fmt "fmt" - io "io" - reflect "reflect" - sync "sync" - _ "cosmossdk.io/api/amino" + fmt "fmt" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" 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 ( diff --git a/api/initia/gov/v1/genesis.pulsar.go b/api/initia/gov/v1/genesis.pulsar.go index a1f4b478e..a2ee1d5c7 100644 --- a/api/initia/gov/v1/genesis.pulsar.go +++ b/api/initia/gov/v1/genesis.pulsar.go @@ -2,16 +2,15 @@ package govv1 import ( - fmt "fmt" - io "io" - reflect "reflect" - sync "sync" - v1 "cosmossdk.io/api/cosmos/gov/v1" + fmt "fmt" runtime "github.com/cosmos/cosmos-proto/runtime" 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 _ protoreflect.List = (*_GenesisState_2_list)(nil) diff --git a/api/initia/gov/v1/gov.pulsar.go b/api/initia/gov/v1/gov.pulsar.go index 3ca7238f7..977a7abbf 100644 --- a/api/initia/gov/v1/gov.pulsar.go +++ b/api/initia/gov/v1/gov.pulsar.go @@ -2,14 +2,10 @@ package govv1 import ( - fmt "fmt" - io "io" - reflect "reflect" - sync "sync" - _ "cosmossdk.io/api/amino" v1beta1 "cosmossdk.io/api/cosmos/base/v1beta1" v1 "cosmossdk.io/api/cosmos/gov/v1" + fmt "fmt" _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" @@ -19,6 +15,9 @@ import ( anypb "google.golang.org/protobuf/types/known/anypb" durationpb "google.golang.org/protobuf/types/known/durationpb" timestamppb "google.golang.org/protobuf/types/known/timestamppb" + io "io" + reflect "reflect" + sync "sync" ) var _ protoreflect.List = (*_Params_1_list)(nil) diff --git a/api/initia/gov/v1/query.pulsar.go b/api/initia/gov/v1/query.pulsar.go index 4863971f2..9f18797b3 100644 --- a/api/initia/gov/v1/query.pulsar.go +++ b/api/initia/gov/v1/query.pulsar.go @@ -2,14 +2,10 @@ package govv1 import ( - fmt "fmt" - io "io" - reflect "reflect" - sync "sync" - _ "cosmossdk.io/api/amino" v1beta1 "cosmossdk.io/api/cosmos/base/query/v1beta1" v1 "cosmossdk.io/api/cosmos/gov/v1" + fmt "fmt" _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" @@ -17,6 +13,9 @@ import ( 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 ( diff --git a/api/initia/gov/v1/tx.pulsar.go b/api/initia/gov/v1/tx.pulsar.go index 8865bebc7..ec78b7ade 100644 --- a/api/initia/gov/v1/tx.pulsar.go +++ b/api/initia/gov/v1/tx.pulsar.go @@ -2,19 +2,18 @@ package govv1 import ( - fmt "fmt" - io "io" - reflect "reflect" - sync "sync" - _ "cosmossdk.io/api/amino" _ "cosmossdk.io/api/cosmos/msg/v1" + fmt "fmt" _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" 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 ( diff --git a/api/initia/ibchooks/module/v1/module.pulsar.go b/api/initia/ibchooks/module/v1/module.pulsar.go index 4a59bd45f..6658f3193 100644 --- a/api/initia/ibchooks/module/v1/module.pulsar.go +++ b/api/initia/ibchooks/module/v1/module.pulsar.go @@ -2,16 +2,15 @@ package modulev1 import ( - fmt "fmt" - io "io" - reflect "reflect" - sync "sync" - _ "cosmossdk.io/api/cosmos/app/v1alpha1" + fmt "fmt" runtime "github.com/cosmos/cosmos-proto/runtime" 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 ( diff --git a/api/initia/ibchooks/v1/genesis.pulsar.go b/api/initia/ibchooks/v1/genesis.pulsar.go index 05c962c09..cd3cfad39 100644 --- a/api/initia/ibchooks/v1/genesis.pulsar.go +++ b/api/initia/ibchooks/v1/genesis.pulsar.go @@ -2,17 +2,16 @@ package ibchooksv1 import ( - fmt "fmt" - io "io" - reflect "reflect" - sync "sync" - _ "cosmossdk.io/api/amino" + fmt "fmt" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" 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 _ protoreflect.List = (*_GenesisState_2_list)(nil) diff --git a/api/initia/ibchooks/v1/query.pulsar.go b/api/initia/ibchooks/v1/query.pulsar.go index 134c99fe9..ec8aacf81 100644 --- a/api/initia/ibchooks/v1/query.pulsar.go +++ b/api/initia/ibchooks/v1/query.pulsar.go @@ -2,19 +2,18 @@ package ibchooksv1 import ( - fmt "fmt" - io "io" - reflect "reflect" - sync "sync" - _ "cosmossdk.io/api/amino" v1beta1 "cosmossdk.io/api/cosmos/base/query/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 ( diff --git a/api/initia/ibchooks/v1/tx.pulsar.go b/api/initia/ibchooks/v1/tx.pulsar.go index 47390b8fd..ffd523feb 100644 --- a/api/initia/ibchooks/v1/tx.pulsar.go +++ b/api/initia/ibchooks/v1/tx.pulsar.go @@ -2,19 +2,18 @@ package ibchooksv1 import ( - fmt "fmt" - io "io" - reflect "reflect" - sync "sync" - _ "cosmossdk.io/api/amino" _ "cosmossdk.io/api/cosmos/msg/v1" + fmt "fmt" _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" 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 ( diff --git a/api/initia/ibchooks/v1/types.pulsar.go b/api/initia/ibchooks/v1/types.pulsar.go index ccdb0eb04..7fe310430 100644 --- a/api/initia/ibchooks/v1/types.pulsar.go +++ b/api/initia/ibchooks/v1/types.pulsar.go @@ -2,17 +2,16 @@ package ibchooksv1 import ( - fmt "fmt" - io "io" - reflect "reflect" - sync "sync" - _ "cosmossdk.io/api/amino" + fmt "fmt" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" 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 ( diff --git a/api/initia/intertx/module/v1/module.pulsar.go b/api/initia/intertx/module/v1/module.pulsar.go index 818563e1a..83dfeb6b2 100644 --- a/api/initia/intertx/module/v1/module.pulsar.go +++ b/api/initia/intertx/module/v1/module.pulsar.go @@ -2,16 +2,15 @@ package modulev1 import ( - fmt "fmt" - io "io" - reflect "reflect" - sync "sync" - _ "cosmossdk.io/api/cosmos/app/v1alpha1" + fmt "fmt" runtime "github.com/cosmos/cosmos-proto/runtime" 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 ( diff --git a/api/initia/intertx/v1/query.pulsar.go b/api/initia/intertx/v1/query.pulsar.go index bdbe347d6..cffa23c68 100644 --- a/api/initia/intertx/v1/query.pulsar.go +++ b/api/initia/intertx/v1/query.pulsar.go @@ -3,16 +3,15 @@ package intertxv1 import ( fmt "fmt" - io "io" - reflect "reflect" - sync "sync" - 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 ( diff --git a/api/initia/intertx/v1/tx.pulsar.go b/api/initia/intertx/v1/tx.pulsar.go index 64b2d6771..f390335b4 100644 --- a/api/initia/intertx/v1/tx.pulsar.go +++ b/api/initia/intertx/v1/tx.pulsar.go @@ -2,13 +2,9 @@ package intertxv1 import ( - fmt "fmt" - io "io" - reflect "reflect" - sync "sync" - _ "cosmossdk.io/api/amino" _ "cosmossdk.io/api/cosmos/msg/v1" + 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" @@ -16,6 +12,9 @@ import ( protoiface "google.golang.org/protobuf/runtime/protoiface" protoimpl "google.golang.org/protobuf/runtime/protoimpl" anypb "google.golang.org/protobuf/types/known/anypb" + io "io" + reflect "reflect" + sync "sync" ) var ( diff --git a/api/initia/move/module/v1/module.pulsar.go b/api/initia/move/module/v1/module.pulsar.go index 66aeff57f..c75f8c76c 100644 --- a/api/initia/move/module/v1/module.pulsar.go +++ b/api/initia/move/module/v1/module.pulsar.go @@ -2,16 +2,15 @@ package modulev1 import ( - fmt "fmt" - io "io" - reflect "reflect" - sync "sync" - _ "cosmossdk.io/api/cosmos/app/v1alpha1" + fmt "fmt" runtime "github.com/cosmos/cosmos-proto/runtime" 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 ( diff --git a/api/initia/move/v1/auth.pulsar.go b/api/initia/move/v1/auth.pulsar.go index e48b8363d..37129f6aa 100644 --- a/api/initia/move/v1/auth.pulsar.go +++ b/api/initia/move/v1/auth.pulsar.go @@ -2,18 +2,17 @@ package movev1 import ( - fmt "fmt" - io "io" - reflect "reflect" - sync "sync" - _ "cosmossdk.io/api/amino" v1beta1 "cosmossdk.io/api/cosmos/auth/v1beta1" + fmt "fmt" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" 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 ( diff --git a/api/initia/move/v1/authz.pulsar.go b/api/initia/move/v1/authz.pulsar.go index 843db7945..c1fd5519b 100644 --- a/api/initia/move/v1/authz.pulsar.go +++ b/api/initia/move/v1/authz.pulsar.go @@ -2,18 +2,17 @@ package movev1 import ( - fmt "fmt" - io "io" - reflect "reflect" - sync "sync" - _ "cosmossdk.io/api/amino" + fmt "fmt" _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" 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 _ protoreflect.List = (*_PublishAuthorization_1_list)(nil) diff --git a/api/initia/move/v1/genesis.pulsar.go b/api/initia/move/v1/genesis.pulsar.go index ef3f9c0a7..c834d5b0a 100644 --- a/api/initia/move/v1/genesis.pulsar.go +++ b/api/initia/move/v1/genesis.pulsar.go @@ -2,17 +2,16 @@ package movev1 import ( - fmt "fmt" - io "io" - reflect "reflect" - sync "sync" - _ "cosmossdk.io/api/amino" + fmt "fmt" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" 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 _ protoreflect.List = (*_GenesisState_3_list)(nil) diff --git a/api/initia/move/v1/query.pulsar.go b/api/initia/move/v1/query.pulsar.go index c7ca9dc87..7d66fd19f 100644 --- a/api/initia/move/v1/query.pulsar.go +++ b/api/initia/move/v1/query.pulsar.go @@ -2,19 +2,18 @@ package movev1 import ( - fmt "fmt" - io "io" - reflect "reflect" - sync "sync" - _ "cosmossdk.io/api/amino" v1beta1 "cosmossdk.io/api/cosmos/base/query/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 ( diff --git a/api/initia/move/v1/tx.pulsar.go b/api/initia/move/v1/tx.pulsar.go index 8601b4f1d..8d0c6d556 100644 --- a/api/initia/move/v1/tx.pulsar.go +++ b/api/initia/move/v1/tx.pulsar.go @@ -2,19 +2,18 @@ package movev1 import ( - fmt "fmt" - io "io" - reflect "reflect" - sync "sync" - _ "cosmossdk.io/api/amino" _ "cosmossdk.io/api/cosmos/msg/v1" + fmt "fmt" _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" 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 _ protoreflect.List = (*_MsgPublish_2_list)(nil) diff --git a/api/initia/move/v1/types.pulsar.go b/api/initia/move/v1/types.pulsar.go index 0882afad2..7894f876a 100644 --- a/api/initia/move/v1/types.pulsar.go +++ b/api/initia/move/v1/types.pulsar.go @@ -2,17 +2,16 @@ package movev1 import ( - fmt "fmt" - io "io" - reflect "reflect" - sync "sync" - _ "cosmossdk.io/api/amino" + fmt "fmt" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" 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 _ protoreflect.List = (*_Params_4_list)(nil) diff --git a/api/initia/mstaking/module/v1/module.pulsar.go b/api/initia/mstaking/module/v1/module.pulsar.go index ac9e2bfca..f6435845a 100644 --- a/api/initia/mstaking/module/v1/module.pulsar.go +++ b/api/initia/mstaking/module/v1/module.pulsar.go @@ -2,16 +2,15 @@ package modulev1 import ( - fmt "fmt" - io "io" - reflect "reflect" - sync "sync" - _ "cosmossdk.io/api/cosmos/app/v1alpha1" + fmt "fmt" runtime "github.com/cosmos/cosmos-proto/runtime" 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 ( diff --git a/api/initia/mstaking/v1/authz.pulsar.go b/api/initia/mstaking/v1/authz.pulsar.go index c4d1706c7..dd32b8ad8 100644 --- a/api/initia/mstaking/v1/authz.pulsar.go +++ b/api/initia/mstaking/v1/authz.pulsar.go @@ -2,19 +2,18 @@ package mstakingv1 import ( - fmt "fmt" - io "io" - reflect "reflect" - sync "sync" - _ "cosmossdk.io/api/amino" v1beta1 "cosmossdk.io/api/cosmos/base/v1beta1" + fmt "fmt" _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" 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 _ protoreflect.List = (*_StakeAuthorization_1_list)(nil) diff --git a/api/initia/mstaking/v1/genesis.pulsar.go b/api/initia/mstaking/v1/genesis.pulsar.go index 3e9d0133a..dee59670b 100644 --- a/api/initia/mstaking/v1/genesis.pulsar.go +++ b/api/initia/mstaking/v1/genesis.pulsar.go @@ -2,18 +2,17 @@ package mstakingv1 import ( - fmt "fmt" - io "io" - reflect "reflect" - sync "sync" - _ "cosmossdk.io/api/amino" + fmt "fmt" _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" 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 _ protoreflect.List = (*_GenesisState_2_list)(nil) diff --git a/api/initia/mstaking/v1/query.pulsar.go b/api/initia/mstaking/v1/query.pulsar.go index a5f7b9c97..6d43acf0e 100644 --- a/api/initia/mstaking/v1/query.pulsar.go +++ b/api/initia/mstaking/v1/query.pulsar.go @@ -2,19 +2,18 @@ package mstakingv1 import ( - fmt "fmt" - io "io" - reflect "reflect" - sync "sync" - v1beta1 "cosmossdk.io/api/cosmos/base/query/v1beta1" v1beta11 "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 ( diff --git a/api/initia/mstaking/v1/staking.pulsar.go b/api/initia/mstaking/v1/staking.pulsar.go index cce15cd36..cea7a5389 100644 --- a/api/initia/mstaking/v1/staking.pulsar.go +++ b/api/initia/mstaking/v1/staking.pulsar.go @@ -2,12 +2,8 @@ package mstakingv1 import ( - fmt "fmt" - io "io" - reflect "reflect" - sync "sync" - v1beta1 "cosmossdk.io/api/cosmos/base/v1beta1" + fmt "fmt" _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" @@ -17,6 +13,9 @@ import ( anypb "google.golang.org/protobuf/types/known/anypb" durationpb "google.golang.org/protobuf/types/known/durationpb" timestamppb "google.golang.org/protobuf/types/known/timestamppb" + io "io" + reflect "reflect" + sync "sync" ) var ( diff --git a/api/initia/mstaking/v1/tx.pulsar.go b/api/initia/mstaking/v1/tx.pulsar.go index cb41bb0e8..dc5ed1288 100644 --- a/api/initia/mstaking/v1/tx.pulsar.go +++ b/api/initia/mstaking/v1/tx.pulsar.go @@ -2,14 +2,10 @@ package mstakingv1 import ( - fmt "fmt" - io "io" - reflect "reflect" - sync "sync" - _ "cosmossdk.io/api/amino" v1beta1 "cosmossdk.io/api/cosmos/base/v1beta1" _ "cosmossdk.io/api/cosmos/msg/v1" + fmt "fmt" _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" @@ -18,6 +14,9 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" anypb "google.golang.org/protobuf/types/known/anypb" timestamppb "google.golang.org/protobuf/types/known/timestamppb" + io "io" + reflect "reflect" + sync "sync" ) var _ protoreflect.List = (*_MsgCreateValidator_5_list)(nil) diff --git a/api/initia/reward/module/v1/module.pulsar.go b/api/initia/reward/module/v1/module.pulsar.go index 3e6ab8491..27eae989b 100644 --- a/api/initia/reward/module/v1/module.pulsar.go +++ b/api/initia/reward/module/v1/module.pulsar.go @@ -2,16 +2,15 @@ package modulev1 import ( - fmt "fmt" - io "io" - reflect "reflect" - sync "sync" - _ "cosmossdk.io/api/cosmos/app/v1alpha1" + fmt "fmt" runtime "github.com/cosmos/cosmos-proto/runtime" 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 ( diff --git a/api/initia/reward/v1/genesis.pulsar.go b/api/initia/reward/v1/genesis.pulsar.go index e4bbc6d0c..0cbb66f5e 100644 --- a/api/initia/reward/v1/genesis.pulsar.go +++ b/api/initia/reward/v1/genesis.pulsar.go @@ -3,16 +3,15 @@ package rewardv1 import ( fmt "fmt" - io "io" - reflect "reflect" - sync "sync" - runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoiface "google.golang.org/protobuf/runtime/protoiface" protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" + io "io" + reflect "reflect" + sync "sync" ) var ( diff --git a/api/initia/reward/v1/query.pulsar.go b/api/initia/reward/v1/query.pulsar.go index e94453d68..79b59c065 100644 --- a/api/initia/reward/v1/query.pulsar.go +++ b/api/initia/reward/v1/query.pulsar.go @@ -3,10 +3,6 @@ package rewardv1 import ( fmt "fmt" - io "io" - reflect "reflect" - sync "sync" - runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" _ "google.golang.org/genproto/googleapis/api/annotations" @@ -14,6 +10,9 @@ import ( protoiface "google.golang.org/protobuf/runtime/protoiface" protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" + io "io" + reflect "reflect" + sync "sync" ) var ( diff --git a/api/initia/reward/v1/tx.pulsar.go b/api/initia/reward/v1/tx.pulsar.go index 2239f4acd..658435cf6 100644 --- a/api/initia/reward/v1/tx.pulsar.go +++ b/api/initia/reward/v1/tx.pulsar.go @@ -2,19 +2,18 @@ package rewardv1 import ( - fmt "fmt" - io "io" - reflect "reflect" - sync "sync" - _ "cosmossdk.io/api/amino" _ "cosmossdk.io/api/cosmos/msg/v1" + fmt "fmt" _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" 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 ( diff --git a/api/initia/reward/v1/types.pulsar.go b/api/initia/reward/v1/types.pulsar.go index 3e8b6d18c..725caee30 100644 --- a/api/initia/reward/v1/types.pulsar.go +++ b/api/initia/reward/v1/types.pulsar.go @@ -2,18 +2,17 @@ package rewardv1 import ( - fmt "fmt" - io "io" - reflect "reflect" - sync "sync" - _ "cosmossdk.io/api/amino" + fmt "fmt" runtime "github.com/cosmos/cosmos-proto/runtime" _ "github.com/cosmos/gogoproto/gogoproto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoiface "google.golang.org/protobuf/runtime/protoiface" protoimpl "google.golang.org/protobuf/runtime/protoimpl" durationpb "google.golang.org/protobuf/types/known/durationpb" + io "io" + reflect "reflect" + sync "sync" ) var ( diff --git a/api/initia/tx/v1/query.pulsar.go b/api/initia/tx/v1/query.pulsar.go index c73e2e250..87e721126 100644 --- a/api/initia/tx/v1/query.pulsar.go +++ b/api/initia/tx/v1/query.pulsar.go @@ -2,18 +2,17 @@ package txv1 import ( - fmt "fmt" - io "io" - reflect "reflect" - sync "sync" - 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 ( diff --git a/app/ante/sigverify/verify.go b/app/ante/sigverify/verify.go index c7c24cf44..55fbf909c 100644 --- a/app/ante/sigverify/verify.go +++ b/app/ante/sigverify/verify.go @@ -6,7 +6,6 @@ import ( signingv1beta1 "cosmossdk.io/api/cosmos/tx/signing/v1beta1" txsigning "cosmossdk.io/x/tx/signing" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" "github.com/cosmos/cosmos-sdk/crypto/types/multisig" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/app/app.go b/app/app.go index 43b61371f..dfa383747 100644 --- a/app/app.go +++ b/app/app.go @@ -24,8 +24,6 @@ import ( tmos "github.com/cometbft/cometbft/libs/os" dbm "github.com/cosmos/cosmos-db" - "github.com/cosmos/gogoproto/proto" - "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" @@ -51,6 +49,7 @@ import ( authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" "github.com/cosmos/cosmos-sdk/x/crisis" govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" + "github.com/cosmos/gogoproto/proto" capabilitykeeper "github.com/cosmos/ibc-go/modules/capability/keeper" icacontrollerkeeper "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/controller/keeper" diff --git a/app/app_test.go b/app/app_test.go index fe719a651..40d33dab6 100644 --- a/app/app_test.go +++ b/app/app_test.go @@ -13,8 +13,6 @@ import ( "cosmossdk.io/log" dbm "github.com/cosmos/cosmos-db" - "github.com/cosmos/ibc-go/modules/capability" - "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/testutil/mock" sdk "github.com/cosmos/cosmos-sdk/types" @@ -25,10 +23,10 @@ import ( "github.com/cosmos/cosmos-sdk/x/consensus" "github.com/cosmos/cosmos-sdk/x/crisis" groupmodule "github.com/cosmos/cosmos-sdk/x/group/module" + "github.com/cosmos/ibc-go/modules/capability" feegrantmodule "cosmossdk.io/x/feegrant/module" "cosmossdk.io/x/upgrade" - "github.com/cosmos/cosmos-sdk/x/slashing" ica "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts" diff --git a/app/connect.go b/app/connect.go index 344ecbde9..d64e2accd 100644 --- a/app/connect.go +++ b/app/connect.go @@ -5,9 +5,8 @@ import ( "strconv" "time" - grpc "google.golang.org/grpc" - sdk "github.com/cosmos/cosmos-sdk/types" + grpc "google.golang.org/grpc" stakingkeeper "github.com/initia-labs/initia/x/mstaking/keeper" diff --git a/app/encoding.go b/app/encoding.go index 7f2953610..1af6604c7 100644 --- a/app/encoding.go +++ b/app/encoding.go @@ -5,7 +5,6 @@ import ( "cosmossdk.io/core/appmodule" "cosmossdk.io/log" dbm "github.com/cosmos/cosmos-db" - "github.com/cosmos/cosmos-sdk/client/flags" runtimeservices "github.com/cosmos/cosmos-sdk/runtime/services" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/app/genesis.go b/app/genesis.go index f7d033385..ac38cd0be 100644 --- a/app/genesis.go +++ b/app/genesis.go @@ -10,7 +10,6 @@ import ( "cosmossdk.io/core/address" "cosmossdk.io/math" - "github.com/cosmos/cosmos-sdk/codec" crisistypes "github.com/cosmos/cosmos-sdk/x/crisis/types" distrtypes "github.com/cosmos/cosmos-sdk/x/distribution/types" diff --git a/app/header_info/service.go b/app/header_info/service.go index 393c1e082..673babf7d 100644 --- a/app/header_info/service.go +++ b/app/header_info/service.go @@ -4,7 +4,6 @@ import ( "context" "cosmossdk.io/core/header" - sdk "github.com/cosmos/cosmos-sdk/types" ) diff --git a/app/lanes/free_test.go b/app/lanes/free_test.go index 3321e4ced..2eb8736cd 100644 --- a/app/lanes/free_test.go +++ b/app/lanes/free_test.go @@ -4,11 +4,10 @@ import ( "testing" "cosmossdk.io/log" - clienttypes "github.com/cosmos/ibc-go/v8/modules/core/02-client/types" - channeltypes "github.com/cosmos/ibc-go/v8/modules/core/04-channel/types" - sdk "github.com/cosmos/cosmos-sdk/types" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" + clienttypes "github.com/cosmos/ibc-go/v8/modules/core/02-client/types" + channeltypes "github.com/cosmos/ibc-go/v8/modules/core/04-channel/types" "github.com/cometbft/cometbft/proto/tendermint/types" diff --git a/app/lanes/mempool.go b/app/lanes/mempool.go index 8398b644a..d0abd619f 100644 --- a/app/lanes/mempool.go +++ b/app/lanes/mempool.go @@ -6,7 +6,6 @@ import ( "fmt" "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" sdkmempool "github.com/cosmos/cosmos-sdk/types/mempool" diff --git a/app/lanes/system_test.go b/app/lanes/system_test.go index 2ab6a987e..0c32db630 100644 --- a/app/lanes/system_test.go +++ b/app/lanes/system_test.go @@ -4,7 +4,6 @@ import ( "testing" "cosmossdk.io/log" - sdk "github.com/cosmos/cosmos-sdk/types" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" diff --git a/app/params/config.go b/app/params/config.go index ba296abc8..d069251fe 100644 --- a/app/params/config.go +++ b/app/params/config.go @@ -2,7 +2,6 @@ package params import ( "cosmossdk.io/x/tx/signing/aminojson" - "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/app/params/proto.go b/app/params/proto.go index c0a2f64e7..5a8ffe616 100644 --- a/app/params/proto.go +++ b/app/params/proto.go @@ -4,13 +4,12 @@ import ( "cosmossdk.io/x/tx/signing" "cosmossdk.io/x/tx/signing/aminojson" - "github.com/cosmos/gogoproto/proto" - "github.com/cosmos/cosmos-sdk/codec" codecaddress "github.com/cosmos/cosmos-sdk/codec/address" codectypes "github.com/cosmos/cosmos-sdk/codec/types" sdk "github.com/cosmos/cosmos-sdk/types" authtx "github.com/cosmos/cosmos-sdk/x/auth/tx" + "github.com/cosmos/gogoproto/proto" "github.com/initia-labs/initia/tx" ) diff --git a/app/upgrade.go b/app/upgrade.go index a40cf6823..49d33f67c 100644 --- a/app/upgrade.go +++ b/app/upgrade.go @@ -4,7 +4,6 @@ import ( "context" upgradetypes "cosmossdk.io/x/upgrade/types" - "github.com/cosmos/cosmos-sdk/types/module" ) diff --git a/benchmark/app_test.go b/benchmark/app_test.go index 83457ecd1..852f1f6a9 100644 --- a/benchmark/app_test.go +++ b/benchmark/app_test.go @@ -17,7 +17,6 @@ import ( vmtypes "github.com/initia-labs/movevm/types" dbm "github.com/cosmos/cosmos-db" - "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" diff --git a/benchmark/transaction_test.go b/benchmark/transaction_test.go index 280eecdfd..7072230e5 100644 --- a/benchmark/transaction_test.go +++ b/benchmark/transaction_test.go @@ -6,7 +6,6 @@ import ( "github.com/stretchr/testify/require" dbm "github.com/cosmos/cosmos-db" - sdk "github.com/cosmos/cosmos-sdk/types" ) diff --git a/cmd/initiad/root.go b/cmd/initiad/root.go index e811fe2c5..5b1c6f3d7 100644 --- a/cmd/initiad/root.go +++ b/cmd/initiad/root.go @@ -16,7 +16,6 @@ import ( confixcmd "cosmossdk.io/tools/confix/cmd" dbm "github.com/cosmos/cosmos-db" - "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/config" "github.com/cosmos/cosmos-sdk/client/debug" diff --git a/cmd/move/deploy.go b/cmd/move/deploy.go index d61d54edc..3f9388ef5 100644 --- a/cmd/move/deploy.go +++ b/cmd/move/deploy.go @@ -10,7 +10,6 @@ import ( "cosmossdk.io/core/address" errorsmod "cosmossdk.io/errors" - "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/input" diff --git a/crypto/ethsecp256k1/ethsecp256k1.go b/crypto/ethsecp256k1/ethsecp256k1.go index 3e30c0742..9afd48857 100644 --- a/crypto/ethsecp256k1/ethsecp256k1.go +++ b/crypto/ethsecp256k1/ethsecp256k1.go @@ -11,12 +11,11 @@ import ( errorsmod "cosmossdk.io/errors" "github.com/cometbft/cometbft/crypto" - "github.com/initia-labs/initia/tx" - "golang.org/x/crypto/sha3" - "github.com/cosmos/cosmos-sdk/codec" cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" errortypes "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/initia-labs/initia/tx" + "golang.org/x/crypto/sha3" secp256k1 "github.com/decred/dcrd/dcrec/secp256k1/v4" "github.com/decred/dcrd/dcrec/secp256k1/v4/ecdsa" diff --git a/crypto/keyring/options.go b/crypto/keyring/options.go index bcd55d366..46c5be53a 100644 --- a/crypto/keyring/options.go +++ b/crypto/keyring/options.go @@ -1,12 +1,11 @@ package keyring import ( - "github.com/spf13/cobra" - "github.com/cosmos/cosmos-sdk/client/flags" cosmoshd "github.com/cosmos/cosmos-sdk/crypto/hd" "github.com/cosmos/cosmos-sdk/crypto/keyring" "github.com/cosmos/cosmos-sdk/crypto/types" + "github.com/spf13/cobra" "github.com/initia-labs/initia/crypto/ethsecp256k1" "github.com/initia-labs/initia/crypto/hd" diff --git a/crypto/ledger/ledger.go b/crypto/ledger/ledger.go index 651c9df91..9c577ab2d 100644 --- a/crypto/ledger/ledger.go +++ b/crypto/ledger/ledger.go @@ -7,10 +7,9 @@ import ( "fmt" "strings" - "github.com/pkg/errors" - "github.com/cosmos/cosmos-sdk/crypto/ledger" sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/pkg/errors" "github.com/ethereum/go-ethereum/crypto" diff --git a/crypto/ledger/ledger_mock.go b/crypto/ledger/ledger_mock.go index 087b1fe8e..f947d03a8 100644 --- a/crypto/ledger/ledger_mock.go +++ b/crypto/ledger/ledger_mock.go @@ -4,9 +4,8 @@ package ledger import ( - "github.com/pkg/errors" - "github.com/cosmos/cosmos-sdk/crypto/ledger" + "github.com/pkg/errors" ) func LedgerDerivationFn() func() (ledger.SECP256K1, error) { diff --git a/crypto/ledger/ledger_notavail.go b/crypto/ledger/ledger_notavail.go index 5f36a4862..73e0a99b9 100644 --- a/crypto/ledger/ledger_notavail.go +++ b/crypto/ledger/ledger_notavail.go @@ -4,9 +4,8 @@ package ledger import ( - "github.com/pkg/errors" - "github.com/cosmos/cosmos-sdk/crypto/ledger" + "github.com/pkg/errors" ) func LedgerDerivationFn() func() (ledger.SECP256K1, error) { diff --git a/tx/service.go b/tx/service.go index c6f07f29b..f2ace8b78 100644 --- a/tx/service.go +++ b/tx/service.go @@ -3,11 +3,10 @@ package tx import ( "context" + sdk "github.com/cosmos/cosmos-sdk/types" gogogrpc "github.com/cosmos/gogoproto/grpc" "github.com/grpc-ecosystem/grpc-gateway/runtime" - sdk "github.com/cosmos/cosmos-sdk/types" - txtypes "github.com/initia-labs/initia/tx/types" ) diff --git a/x/bank/keeper/custom_msg_server.go b/x/bank/keeper/custom_msg_server.go index 3f797bef0..78588075f 100644 --- a/x/bank/keeper/custom_msg_server.go +++ b/x/bank/keeper/custom_msg_server.go @@ -4,7 +4,6 @@ import ( "context" errorsmod "cosmossdk.io/errors" - cosmosbank "github.com/cosmos/cosmos-sdk/x/bank/keeper" govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" diff --git a/x/bank/keeper/custom_msg_server_test.go b/x/bank/keeper/custom_msg_server_test.go index ecaf8fce5..a0a321058 100644 --- a/x/bank/keeper/custom_msg_server_test.go +++ b/x/bank/keeper/custom_msg_server_test.go @@ -3,11 +3,10 @@ package keeper_test import ( "testing" + cosmosbanktypes "github.com/cosmos/cosmos-sdk/x/bank/types" "github.com/initia-labs/initia/x/bank/keeper" "github.com/initia-labs/initia/x/bank/types" "github.com/stretchr/testify/require" - - cosmosbanktypes "github.com/cosmos/cosmos-sdk/x/bank/types" ) func Test_SetDenomMetadata(t *testing.T) { diff --git a/x/bank/keeper/grpc_query.go b/x/bank/keeper/grpc_query.go index 101bec375..38a857d36 100644 --- a/x/bank/keeper/grpc_query.go +++ b/x/bank/keeper/grpc_query.go @@ -7,7 +7,6 @@ import ( "google.golang.org/grpc/status" "cosmossdk.io/store/prefix" - "github.com/cosmos/cosmos-sdk/runtime" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/query" diff --git a/x/bank/keeper/grpc_query_test.go b/x/bank/keeper/grpc_query_test.go index 4e8fa743a..0d35c80c9 100644 --- a/x/bank/keeper/grpc_query_test.go +++ b/x/bank/keeper/grpc_query_test.go @@ -4,7 +4,6 @@ import ( "testing" "cosmossdk.io/math" - "github.com/cosmos/cosmos-sdk/testutil/testdata" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/query" diff --git a/x/bank/keeper/msg_server.go b/x/bank/keeper/msg_server.go index 310cb2237..86c323a15 100644 --- a/x/bank/keeper/msg_server.go +++ b/x/bank/keeper/msg_server.go @@ -6,7 +6,6 @@ import ( "github.com/hashicorp/go-metrics" errorsmod "cosmossdk.io/errors" - "github.com/cosmos/cosmos-sdk/telemetry" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" diff --git a/x/bank/keeper/msg_server_test.go b/x/bank/keeper/msg_server_test.go index 24920a0b1..b22766c05 100644 --- a/x/bank/keeper/msg_server_test.go +++ b/x/bank/keeper/msg_server_test.go @@ -3,12 +3,11 @@ package keeper_test import ( "testing" - "github.com/stretchr/testify/require" - sdk "github.com/cosmos/cosmos-sdk/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" + "github.com/stretchr/testify/require" bankkeeper "github.com/initia-labs/initia/x/bank/keeper" ) diff --git a/x/bank/keeper/view.go b/x/bank/keeper/view.go index 1e6179f45..2318d8d95 100644 --- a/x/bank/keeper/view.go +++ b/x/bank/keeper/view.go @@ -8,7 +8,6 @@ import ( "cosmossdk.io/collections" "cosmossdk.io/core/store" "cosmossdk.io/log" - "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" cosmoskeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper" diff --git a/x/distribution/keeper/allocation_test.go b/x/distribution/keeper/allocation_test.go index c8288a0f6..196e6e94e 100644 --- a/x/distribution/keeper/allocation_test.go +++ b/x/distribution/keeper/allocation_test.go @@ -5,7 +5,6 @@ import ( "testing" "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" diff --git a/x/distribution/keeper/common_test.go b/x/distribution/keeper/common_test.go index b6e0eab9a..6536553cc 100644 --- a/x/distribution/keeper/common_test.go +++ b/x/distribution/keeper/common_test.go @@ -22,9 +22,6 @@ import ( "cosmossdk.io/x/tx/signing" "cosmossdk.io/x/upgrade" dbm "github.com/cosmos/cosmos-db" - "github.com/cosmos/gogoproto/proto" - transfertypes "github.com/cosmos/ibc-go/v8/modules/apps/transfer/types" - "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/codec" codecaddress "github.com/cosmos/cosmos-sdk/codec/address" @@ -49,6 +46,8 @@ import ( govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" govtypesv1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1" slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types" + "github.com/cosmos/gogoproto/proto" + transfertypes "github.com/cosmos/ibc-go/v8/modules/apps/transfer/types" initiaapp "github.com/initia-labs/initia/app" initiaappparams "github.com/initia-labs/initia/app/params" diff --git a/x/distribution/keeper/custom_msg_server_test.go b/x/distribution/keeper/custom_msg_server_test.go index 5afdb93d5..39fa1a9e0 100644 --- a/x/distribution/keeper/custom_msg_server_test.go +++ b/x/distribution/keeper/custom_msg_server_test.go @@ -4,11 +4,10 @@ import ( "testing" "cosmossdk.io/math" + "github.com/cosmos/cosmos-sdk/types" "github.com/initia-labs/initia/x/distribution/keeper" customTypes "github.com/initia-labs/initia/x/distribution/types" "github.com/stretchr/testify/require" - - "github.com/cosmos/cosmos-sdk/types" ) func TestDepositValidatorRewardsPool(t *testing.T) { diff --git a/x/distribution/keeper/delegation.go b/x/distribution/keeper/delegation.go index 22d923d63..05987d1e3 100644 --- a/x/distribution/keeper/delegation.go +++ b/x/distribution/keeper/delegation.go @@ -6,7 +6,6 @@ import ( "cosmossdk.io/collections" "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/distribution/types" diff --git a/x/distribution/keeper/delegation_test.go b/x/distribution/keeper/delegation_test.go index d9c4f6808..b11a978a5 100644 --- a/x/distribution/keeper/delegation_test.go +++ b/x/distribution/keeper/delegation_test.go @@ -7,7 +7,6 @@ import ( abci "github.com/cometbft/cometbft/abci/types" "github.com/cometbft/cometbft/proto/tendermint/types" - sdk "github.com/cosmos/cosmos-sdk/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" diff --git a/x/distribution/keeper/genesis.go b/x/distribution/keeper/genesis.go index 29a403e80..cfbb561a6 100644 --- a/x/distribution/keeper/genesis.go +++ b/x/distribution/keeper/genesis.go @@ -4,7 +4,6 @@ import ( "fmt" "cosmossdk.io/collections" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/distribution/types" diff --git a/x/distribution/keeper/grpc_query_test.go b/x/distribution/keeper/grpc_query_test.go index 772ae1c07..841ed16d6 100644 --- a/x/distribution/keeper/grpc_query_test.go +++ b/x/distribution/keeper/grpc_query_test.go @@ -3,10 +3,9 @@ package keeper_test import ( "testing" + "github.com/cosmos/cosmos-sdk/x/distribution/types" "github.com/initia-labs/initia/x/distribution/keeper" "github.com/stretchr/testify/require" - - "github.com/cosmos/cosmos-sdk/x/distribution/types" ) func TestQueryParams(t *testing.T) { diff --git a/x/distribution/keeper/invariants.go b/x/distribution/keeper/invariants.go index fc2b4f64c..de5bb41ff 100644 --- a/x/distribution/keeper/invariants.go +++ b/x/distribution/keeper/invariants.go @@ -4,7 +4,6 @@ import ( "fmt" "cosmossdk.io/collections" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/distribution/types" diff --git a/x/distribution/keeper/msg_server_test.go b/x/distribution/keeper/msg_server_test.go index 8410c057b..fdddb189a 100644 --- a/x/distribution/keeper/msg_server_test.go +++ b/x/distribution/keeper/msg_server_test.go @@ -4,12 +4,11 @@ import ( "testing" "cosmossdk.io/math" - "github.com/initia-labs/initia/x/distribution/keeper" - "github.com/stretchr/testify/require" - sdk "github.com/cosmos/cosmos-sdk/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" "github.com/cosmos/cosmos-sdk/x/distribution/types" + "github.com/initia-labs/initia/x/distribution/keeper" + "github.com/stretchr/testify/require" ) func TestMsgSetWithdrawAddress(t *testing.T) { diff --git a/x/distribution/keeper/store.go b/x/distribution/keeper/store.go index 81744484a..5adcd7e95 100644 --- a/x/distribution/keeper/store.go +++ b/x/distribution/keeper/store.go @@ -5,7 +5,6 @@ import ( "errors" "cosmossdk.io/collections" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/initia-labs/initia/x/distribution/types" diff --git a/x/distribution/types/expected_keepers.go b/x/distribution/types/expected_keepers.go index 105cce4c8..a7d7d6b6d 100644 --- a/x/distribution/types/expected_keepers.go +++ b/x/distribution/types/expected_keepers.go @@ -4,7 +4,6 @@ import ( context "context" "cosmossdk.io/core/address" - sdk "github.com/cosmos/cosmos-sdk/types" stakingtypes "github.com/initia-labs/initia/x/mstaking/types" diff --git a/x/dynamic-fee/abci_test.go b/x/dynamic-fee/abci_test.go index db6da3342..a4bbe58b7 100644 --- a/x/dynamic-fee/abci_test.go +++ b/x/dynamic-fee/abci_test.go @@ -13,9 +13,8 @@ import ( "github.com/initia-labs/initia/x/dynamic-fee/types" - movetypes "github.com/initia-labs/initia/x/move/types" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" + movetypes "github.com/initia-labs/initia/x/move/types" ) func Test_EndBlocker(t *testing.T) { diff --git a/x/dynamic-fee/ante/ante_test.go b/x/dynamic-fee/ante/ante_test.go index a6a0c5753..7d0c69205 100644 --- a/x/dynamic-fee/ante/ante_test.go +++ b/x/dynamic-fee/ante/ante_test.go @@ -10,7 +10,6 @@ import ( "cosmossdk.io/log" dbm "github.com/cosmos/cosmos-db" - "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/tx" diff --git a/x/dynamic-fee/ante/fee.go b/x/dynamic-fee/ante/fee.go index d0163f893..794a9624b 100644 --- a/x/dynamic-fee/ante/fee.go +++ b/x/dynamic-fee/ante/fee.go @@ -4,10 +4,9 @@ import ( "cosmossdk.io/errors" "cosmossdk.io/math" - dynamicfeetypes "github.com/initia-labs/initia/x/dynamic-fee/types" - sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + dynamicfeetypes "github.com/initia-labs/initia/x/dynamic-fee/types" ) // MempoolFeeChecker will check if the transaction's fee is at least as large diff --git a/x/dynamic-fee/ante/fee_utils.go b/x/dynamic-fee/ante/fee_utils.go index 3060e1601..b49aacf3c 100644 --- a/x/dynamic-fee/ante/fee_utils.go +++ b/x/dynamic-fee/ante/fee_utils.go @@ -7,6 +7,26 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" ) +// combinedMinGasPrices will combine the on-chain fee and min_gas_prices. +func combinedMinGasPrices(baseDenom string, baseMinGasPrice math.LegacyDec, minGasPrices sdk.DecCoins) sdk.DecCoins { + // empty min_gas_price + if len(minGasPrices) == 0 { + return sdk.DecCoins{sdk.NewDecCoinFromDec(baseDenom, baseMinGasPrice)} + } + + baseMinGasPriceFromConfig := minGasPrices.AmountOf(baseDenom) + + // if the configured value is bigger than + // on chain baseMinGasPrice, return origin minGasPrices + if baseMinGasPriceFromConfig.GTE(baseMinGasPrice) { + return minGasPrices + } + + // else, change min gas price of base denom to on chain value + diff := baseMinGasPrice.Sub(baseMinGasPriceFromConfig) + return minGasPrices.Add(sdk.NewDecCoinFromDec(baseDenom, diff)) +} + // computeRequiredFees returns required fees func computeRequiredFees(gas storetypes.Gas, minGasPrices sdk.DecCoins) sdk.Coins { // special case: if minGasPrices=[], requiredFees=[] diff --git a/x/dynamic-fee/keeper/common_test.go b/x/dynamic-fee/keeper/common_test.go index dc022d157..a182c58de 100644 --- a/x/dynamic-fee/keeper/common_test.go +++ b/x/dynamic-fee/keeper/common_test.go @@ -27,7 +27,6 @@ import ( storetypes "cosmossdk.io/store/types" "cosmossdk.io/x/tx/signing" dbm "github.com/cosmos/cosmos-db" - "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/codec" codecaddress "github.com/cosmos/cosmos-sdk/codec/address" diff --git a/x/dynamic-fee/keeper/genesis.go b/x/dynamic-fee/keeper/genesis.go index af4e8c479..1d2d9fcfb 100644 --- a/x/dynamic-fee/keeper/genesis.go +++ b/x/dynamic-fee/keeper/genesis.go @@ -7,7 +7,7 @@ import ( ) // InitGenesis sets supply information for genesis. -func (k Keeper) InitGenesis(ctx context.Context, genState types.GenesisState) error { +func (k Keeper) InitGenesis(ctx context.Context, moduleNames []string, genState types.GenesisState) error { params := genState.GetParams() if err := k.SetParams(ctx, params); err != nil { return err diff --git a/x/dynamic-fee/keeper/keeper.go b/x/dynamic-fee/keeper/keeper.go index 3c379dccf..72f82f03c 100644 --- a/x/dynamic-fee/keeper/keeper.go +++ b/x/dynamic-fee/keeper/keeper.go @@ -3,10 +3,9 @@ package keeper import ( "context" - "github.com/initia-labs/initia/x/dynamic-fee/types" - "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/initia-labs/initia/x/dynamic-fee/types" "cosmossdk.io/collections" "cosmossdk.io/core/address" diff --git a/x/dynamic-fee/module.go b/x/dynamic-fee/module.go index 368383521..46412b6cf 100644 --- a/x/dynamic-fee/module.go +++ b/x/dynamic-fee/module.go @@ -4,6 +4,7 @@ import ( "context" "encoding/json" + "cosmossdk.io/core/address" "cosmossdk.io/core/appmodule" "github.com/grpc-ecosystem/grpc-gateway/runtime" @@ -78,7 +79,9 @@ func (b AppModuleBasic) RegisterInterfaces(registry cdctypes.InterfaceRegistry) type AppModule struct { AppModuleBasic - keeper keeper.Keeper + keeper keeper.Keeper + vc address.Codec + moduleNames []string } // IsAppModule implements the appmodule.AppModule interface. @@ -118,7 +121,7 @@ func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, data json. var genesisState types.GenesisState cdc.MustUnmarshalJSON(data, &genesisState) - if err := am.keeper.InitGenesis(ctx, genesisState); err != nil { + if err := am.keeper.InitGenesis(ctx, am.moduleNames, genesisState); err != nil { panic(err) } } diff --git a/x/evidence/keeper/grpc_query.go b/x/evidence/keeper/grpc_query.go index 3d0829158..16b1c314e 100644 --- a/x/evidence/keeper/grpc_query.go +++ b/x/evidence/keeper/grpc_query.go @@ -14,7 +14,6 @@ import ( "cosmossdk.io/x/evidence/exported" "cosmossdk.io/x/evidence/types" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" sdk "github.com/cosmos/cosmos-sdk/types" ) diff --git a/x/evidence/keeper/infraction.go b/x/evidence/keeper/infraction.go index 12e359d61..ad4dd2b68 100644 --- a/x/evidence/keeper/infraction.go +++ b/x/evidence/keeper/infraction.go @@ -5,7 +5,6 @@ import ( "fmt" "cosmossdk.io/x/evidence/types" - sdk "github.com/cosmos/cosmos-sdk/types" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" ) diff --git a/x/evidence/keeper/keeper.go b/x/evidence/keeper/keeper.go index 488d282f1..abe34ea61 100644 --- a/x/evidence/keeper/keeper.go +++ b/x/evidence/keeper/keeper.go @@ -14,7 +14,6 @@ import ( "cosmossdk.io/log" "cosmossdk.io/x/evidence/exported" "cosmossdk.io/x/evidence/types" - "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/gov/abci.go b/x/gov/abci.go index 409364a84..99ca77ec6 100644 --- a/x/gov/abci.go +++ b/x/gov/abci.go @@ -6,7 +6,6 @@ import ( "time" "cosmossdk.io/collections" - "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/telemetry" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/gov/abci_test.go b/x/gov/abci_test.go index 217a2aaff..3f552d143 100644 --- a/x/gov/abci_test.go +++ b/x/gov/abci_test.go @@ -5,12 +5,11 @@ import ( "time" "cosmossdk.io/math" + sdk "github.com/cosmos/cosmos-sdk/types" + v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1" "github.com/initia-labs/initia/x/gov" "github.com/initia-labs/initia/x/gov/keeper" "github.com/stretchr/testify/require" - - sdk "github.com/cosmos/cosmos-sdk/types" - v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1" ) func TestSimpleProposalPassedEndblocker(t *testing.T) { diff --git a/x/gov/client/cli/query.go b/x/gov/client/cli/query.go index 2c0e6fdea..9e5d509f4 100644 --- a/x/gov/client/cli/query.go +++ b/x/gov/client/cli/query.go @@ -12,11 +12,10 @@ import ( "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/version" - customtypes "github.com/initia-labs/initia/x/gov/types" - gcutils "github.com/cosmos/cosmos-sdk/x/gov/client/utils" "github.com/cosmos/cosmos-sdk/x/gov/types" v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1" + customtypes "github.com/initia-labs/initia/x/gov/types" ) // Proposal flags diff --git a/x/gov/common_test.go b/x/gov/common_test.go index 1c75131dd..e7d6a2f79 100644 --- a/x/gov/common_test.go +++ b/x/gov/common_test.go @@ -14,7 +14,6 @@ import ( cmtypes "github.com/cometbft/cometbft/types" abci "github.com/cometbft/cometbft/abci/types" - sdk "github.com/cosmos/cosmos-sdk/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" diff --git a/x/gov/genesis.go b/x/gov/genesis.go index ff4d43364..8314357be 100644 --- a/x/gov/genesis.go +++ b/x/gov/genesis.go @@ -4,7 +4,6 @@ import ( "fmt" "cosmossdk.io/collections" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/gov/types" v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1" diff --git a/x/gov/keeper/common_test.go b/x/gov/keeper/common_test.go index f8fe918af..e5c3e1ed2 100644 --- a/x/gov/keeper/common_test.go +++ b/x/gov/keeper/common_test.go @@ -25,9 +25,6 @@ import ( "cosmossdk.io/x/upgrade" upgradetypes "cosmossdk.io/x/upgrade/types" dbm "github.com/cosmos/cosmos-db" - "github.com/cosmos/gogoproto/proto" - capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types" - "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/codec" codecaddress "github.com/cosmos/cosmos-sdk/codec/address" @@ -52,6 +49,8 @@ import ( govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" govtypesv1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1" slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types" + "github.com/cosmos/gogoproto/proto" + capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types" initiaapp "github.com/initia-labs/initia/app" initiaappparams "github.com/initia-labs/initia/app/params" diff --git a/x/gov/keeper/custom_grpc_query.go b/x/gov/keeper/custom_grpc_query.go index d12ea4972..12351a1f4 100644 --- a/x/gov/keeper/custom_grpc_query.go +++ b/x/gov/keeper/custom_grpc_query.go @@ -6,9 +6,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/query" - customtypes "github.com/initia-labs/initia/x/gov/types" - v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1" + customtypes "github.com/initia-labs/initia/x/gov/types" "cosmossdk.io/collections" "cosmossdk.io/errors" diff --git a/x/gov/keeper/deposit_test.go b/x/gov/keeper/deposit_test.go index 0e47f49a0..59e758f7f 100644 --- a/x/gov/keeper/deposit_test.go +++ b/x/gov/keeper/deposit_test.go @@ -6,11 +6,10 @@ import ( "cosmossdk.io/collections" "cosmossdk.io/math" - "github.com/stretchr/testify/require" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/gov/types" v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1" + "github.com/stretchr/testify/require" ) func TestSimpleDeposits(t *testing.T) { diff --git a/x/gov/keeper/grpc_query.go b/x/gov/keeper/grpc_query.go index 1f5353362..af2503d28 100644 --- a/x/gov/keeper/grpc_query.go +++ b/x/gov/keeper/grpc_query.go @@ -9,7 +9,6 @@ import ( "cosmossdk.io/collections" "cosmossdk.io/errors" "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/query" v3 "github.com/cosmos/cosmos-sdk/x/gov/migrations/v3" diff --git a/x/gov/keeper/invariants.go b/x/gov/keeper/invariants.go index b338b528e..48dc4141a 100644 --- a/x/gov/keeper/invariants.go +++ b/x/gov/keeper/invariants.go @@ -6,7 +6,6 @@ import ( "fmt" "cosmossdk.io/collections" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/gov/types" v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1" diff --git a/x/gov/keeper/vote_test.go b/x/gov/keeper/vote_test.go index bac2b1efb..e6c12acc3 100644 --- a/x/gov/keeper/vote_test.go +++ b/x/gov/keeper/vote_test.go @@ -4,10 +4,9 @@ import ( "testing" "cosmossdk.io/collections" - "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/types" v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1" + "github.com/stretchr/testify/require" ) func TestSimpleVote(t *testing.T) { diff --git a/x/gov/types/expected_keeper.go b/x/gov/types/expected_keeper.go index 7fe5d222a..d768c4b5a 100644 --- a/x/gov/types/expected_keeper.go +++ b/x/gov/types/expected_keeper.go @@ -5,7 +5,6 @@ import ( "cosmossdk.io/core/address" "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" stakingtypes "github.com/initia-labs/initia/x/mstaking/types" diff --git a/x/gov/types/genesis.go b/x/gov/types/genesis.go index 58d879161..56ee7594a 100644 --- a/x/gov/types/genesis.go +++ b/x/gov/types/genesis.go @@ -4,7 +4,6 @@ import ( "errors" "cosmossdk.io/core/address" - "github.com/cosmos/cosmos-sdk/codec/types" v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1" ) diff --git a/x/gov/types/proposal.go b/x/gov/types/proposal.go index 55d5a0844..6ae5a8299 100644 --- a/x/gov/types/proposal.go +++ b/x/gov/types/proposal.go @@ -6,7 +6,6 @@ import ( "time" "cosmossdk.io/math" - "github.com/cosmos/cosmos-sdk/codec/types" sdk "github.com/cosmos/cosmos-sdk/types" sdktx "github.com/cosmos/cosmos-sdk/types/tx" diff --git a/x/ibc-hooks/hooks.go b/x/ibc-hooks/hooks.go index 49c2ed239..c5c7335d0 100644 --- a/x/ibc-hooks/hooks.go +++ b/x/ibc-hooks/hooks.go @@ -2,9 +2,8 @@ package ibc_hooks import ( // external libraries - capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types" - sdk "github.com/cosmos/cosmos-sdk/types" + capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types" // ibc-go clienttypes "github.com/cosmos/ibc-go/v8/modules/core/02-client/types" diff --git a/x/ibc-hooks/ibc_middleware.go b/x/ibc-hooks/ibc_middleware.go index e2345804d..4b8f74f6e 100644 --- a/x/ibc-hooks/ibc_middleware.go +++ b/x/ibc-hooks/ibc_middleware.go @@ -4,9 +4,8 @@ import ( "github.com/initia-labs/initia/x/ibc-hooks/keeper" // external libraries - capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types" - sdk "github.com/cosmos/cosmos-sdk/types" + capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types" // ibc-go clienttypes "github.com/cosmos/ibc-go/v8/modules/core/02-client/types" diff --git a/x/ibc-hooks/ics4_middleware.go b/x/ibc-hooks/ics4_middleware.go index 13362daf2..2bcba2059 100644 --- a/x/ibc-hooks/ics4_middleware.go +++ b/x/ibc-hooks/ics4_middleware.go @@ -2,9 +2,8 @@ package ibc_hooks import ( // external libraries - capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types" - sdk "github.com/cosmos/cosmos-sdk/types" + capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types" // ibc-go clienttypes "github.com/cosmos/ibc-go/v8/modules/core/02-client/types" diff --git a/x/ibc-hooks/keeper/acl.go b/x/ibc-hooks/keeper/acl.go index 5eadab061..5c2eb9d2d 100644 --- a/x/ibc-hooks/keeper/acl.go +++ b/x/ibc-hooks/keeper/acl.go @@ -5,7 +5,6 @@ import ( "errors" "cosmossdk.io/collections" - sdk "github.com/cosmos/cosmos-sdk/types" ) diff --git a/x/ibc-hooks/keeper/common_test.go b/x/ibc-hooks/keeper/common_test.go index 4482d583b..20197b28d 100644 --- a/x/ibc-hooks/keeper/common_test.go +++ b/x/ibc-hooks/keeper/common_test.go @@ -24,7 +24,6 @@ import ( upgradetypes "cosmossdk.io/x/upgrade/types" dbm "github.com/cosmos/cosmos-db" - "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/codec" codecaddress "github.com/cosmos/cosmos-sdk/codec/address" diff --git a/x/ibc-hooks/keeper/keeper.go b/x/ibc-hooks/keeper/keeper.go index 3735c09d0..ad15204eb 100644 --- a/x/ibc-hooks/keeper/keeper.go +++ b/x/ibc-hooks/keeper/keeper.go @@ -7,7 +7,6 @@ import ( "cosmossdk.io/core/address" corestoretypes "cosmossdk.io/core/store" "cosmossdk.io/log" - "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/ibc-hooks/keeper/query_server.go b/x/ibc-hooks/keeper/query_server.go index 006393400..270886ca7 100644 --- a/x/ibc-hooks/keeper/query_server.go +++ b/x/ibc-hooks/keeper/query_server.go @@ -3,9 +3,8 @@ package keeper import ( "context" - "github.com/initia-labs/initia/x/ibc-hooks/types" - "github.com/cosmos/cosmos-sdk/types/query" + "github.com/initia-labs/initia/x/ibc-hooks/types" ) type queryServer struct { diff --git a/x/ibc-hooks/move-hooks/ack.go b/x/ibc-hooks/move-hooks/ack.go index 3025626a2..2873c7474 100644 --- a/x/ibc-hooks/move-hooks/ack.go +++ b/x/ibc-hooks/move-hooks/ack.go @@ -1,11 +1,10 @@ package move_hooks import ( + sdk "github.com/cosmos/cosmos-sdk/types" transfertypes "github.com/cosmos/ibc-go/v8/modules/apps/transfer/types" channeltypes "github.com/cosmos/ibc-go/v8/modules/core/04-channel/types" - sdk "github.com/cosmos/cosmos-sdk/types" - ibchooks "github.com/initia-labs/initia/x/ibc-hooks" "github.com/initia-labs/initia/x/ibc-hooks/types" nfttransfertypes "github.com/initia-labs/initia/x/ibc/nft-transfer/types" diff --git a/x/ibc-hooks/move-hooks/common_test.go b/x/ibc-hooks/move-hooks/common_test.go index 941198f24..31922153b 100644 --- a/x/ibc-hooks/move-hooks/common_test.go +++ b/x/ibc-hooks/move-hooks/common_test.go @@ -20,8 +20,6 @@ import ( storetypes "cosmossdk.io/store/types" "cosmossdk.io/x/tx/signing" dbm "github.com/cosmos/cosmos-db" - "github.com/cosmos/gogoproto/proto" - "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/codec" codecaddress "github.com/cosmos/cosmos-sdk/codec/address" @@ -41,6 +39,7 @@ import ( distributiontypes "github.com/cosmos/cosmos-sdk/x/distribution/types" govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/cosmos/gogoproto/proto" capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types" ibc "github.com/cosmos/ibc-go/v8/modules/core" diff --git a/x/ibc-hooks/move-hooks/hooks.go b/x/ibc-hooks/move-hooks/hooks.go index 7232bb83d..6fe3b8470 100644 --- a/x/ibc-hooks/move-hooks/hooks.go +++ b/x/ibc-hooks/move-hooks/hooks.go @@ -2,11 +2,10 @@ package move_hooks import ( "cosmossdk.io/core/address" - channeltypes "github.com/cosmos/ibc-go/v8/modules/core/04-channel/types" - ibcexported "github.com/cosmos/ibc-go/v8/modules/core/exported" - "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" + channeltypes "github.com/cosmos/ibc-go/v8/modules/core/04-channel/types" + ibcexported "github.com/cosmos/ibc-go/v8/modules/core/exported" ibchooks "github.com/initia-labs/initia/x/ibc-hooks" movekeeper "github.com/initia-labs/initia/x/move/keeper" diff --git a/x/ibc-hooks/move-hooks/receive.go b/x/ibc-hooks/move-hooks/receive.go index ffe5fbe33..4f024824f 100644 --- a/x/ibc-hooks/move-hooks/receive.go +++ b/x/ibc-hooks/move-hooks/receive.go @@ -3,12 +3,11 @@ package move_hooks import ( "fmt" + sdk "github.com/cosmos/cosmos-sdk/types" transfertypes "github.com/cosmos/ibc-go/v8/modules/apps/transfer/types" channeltypes "github.com/cosmos/ibc-go/v8/modules/core/04-channel/types" ibcexported "github.com/cosmos/ibc-go/v8/modules/core/exported" - sdk "github.com/cosmos/cosmos-sdk/types" - ibchooks "github.com/initia-labs/initia/x/ibc-hooks" nfttransfertypes "github.com/initia-labs/initia/x/ibc/nft-transfer/types" movekeeper "github.com/initia-labs/initia/x/move/keeper" diff --git a/x/ibc-hooks/move-hooks/timeout.go b/x/ibc-hooks/move-hooks/timeout.go index be890013e..5514cf72c 100644 --- a/x/ibc-hooks/move-hooks/timeout.go +++ b/x/ibc-hooks/move-hooks/timeout.go @@ -1,11 +1,10 @@ package move_hooks import ( + sdk "github.com/cosmos/cosmos-sdk/types" transfertypes "github.com/cosmos/ibc-go/v8/modules/apps/transfer/types" channeltypes "github.com/cosmos/ibc-go/v8/modules/core/04-channel/types" - sdk "github.com/cosmos/cosmos-sdk/types" - ibchooks "github.com/initia-labs/initia/x/ibc-hooks" "github.com/initia-labs/initia/x/ibc-hooks/types" nfttransfertypes "github.com/initia-labs/initia/x/ibc/nft-transfer/types" diff --git a/x/ibc/nft-transfer/ibc_module.go b/x/ibc/nft-transfer/ibc_module.go index 94ad03099..f886fd5b2 100644 --- a/x/ibc/nft-transfer/ibc_module.go +++ b/x/ibc/nft-transfer/ibc_module.go @@ -7,10 +7,9 @@ import ( "cosmossdk.io/errors" - capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types" - sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types" channeltypes "github.com/cosmos/ibc-go/v8/modules/core/04-channel/types" porttypes "github.com/cosmos/ibc-go/v8/modules/core/05-port/types" diff --git a/x/ibc/nft-transfer/keeper/keeper.go b/x/ibc/nft-transfer/keeper/keeper.go index 04ab3808e..6c20b6a2a 100644 --- a/x/ibc/nft-transfer/keeper/keeper.go +++ b/x/ibc/nft-transfer/keeper/keeper.go @@ -7,11 +7,10 @@ import ( "cosmossdk.io/collections" "cosmossdk.io/core/store" "cosmossdk.io/log" - capabilitykeeper "github.com/cosmos/ibc-go/modules/capability/keeper" - capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types" - "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" + capabilitykeeper "github.com/cosmos/ibc-go/modules/capability/keeper" + capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types" host "github.com/cosmos/ibc-go/v8/modules/core/24-host" "github.com/cosmos/ibc-go/v8/modules/core/exported" diff --git a/x/ibc/nft-transfer/keeper/params_test.go b/x/ibc/nft-transfer/keeper/params_test.go index dff4a0d52..cf44ea6ac 100644 --- a/x/ibc/nft-transfer/keeper/params_test.go +++ b/x/ibc/nft-transfer/keeper/params_test.go @@ -1,9 +1,8 @@ package keeper_test import ( - "github.com/initia-labs/initia/x/ibc/nft-transfer/types" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/initia-labs/initia/x/ibc/nft-transfer/types" ) func (suite *KeeperTestSuite) TestSendEnabled() { diff --git a/x/ibc/nft-transfer/keeper/relay_test.go b/x/ibc/nft-transfer/keeper/relay_test.go index 492f3b06f..9788b8d2b 100644 --- a/x/ibc/nft-transfer/keeper/relay_test.go +++ b/x/ibc/nft-transfer/keeper/relay_test.go @@ -9,9 +9,8 @@ import ( movekeeper "github.com/initia-labs/initia/x/move/keeper" movetypes "github.com/initia-labs/initia/x/move/types" - channeltypes "github.com/cosmos/ibc-go/v8/modules/core/04-channel/types" - sdk "github.com/cosmos/cosmos-sdk/types" + channeltypes "github.com/cosmos/ibc-go/v8/modules/core/04-channel/types" ) func (suite *KeeperTestSuite) GetNFTOwner(ctx context.Context, k *keeper.Keeper, moveKeeper *movekeeper.Keeper, nftKeeper *movekeeper.NftKeeper, classId, className, nftId string) sdk.AccAddress { diff --git a/x/ibc/nft-transfer/types/codec.go b/x/ibc/nft-transfer/types/codec.go index 173c0896f..2b7ed30f1 100644 --- a/x/ibc/nft-transfer/types/codec.go +++ b/x/ibc/nft-transfer/types/codec.go @@ -3,14 +3,13 @@ package types import ( "bytes" - "github.com/cosmos/gogoproto/jsonpb" - "github.com/cosmos/gogoproto/proto" - "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/codec/legacy" codectypes "github.com/cosmos/cosmos-sdk/codec/types" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/msgservice" + "github.com/cosmos/gogoproto/jsonpb" + "github.com/cosmos/gogoproto/proto" ) // RegisterLegacyAminoCodec registers the necessary x/ibc transfer interfaces and concrete types diff --git a/x/ibc/nft-transfer/types/expected_keeper.go b/x/ibc/nft-transfer/types/expected_keeper.go index d19c8479e..b8d83b6cc 100644 --- a/x/ibc/nft-transfer/types/expected_keeper.go +++ b/x/ibc/nft-transfer/types/expected_keeper.go @@ -4,9 +4,8 @@ import ( "context" "cosmossdk.io/core/address" - capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types" - sdk "github.com/cosmos/cosmos-sdk/types" + capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types" clienttypes "github.com/cosmos/ibc-go/v8/modules/core/02-client/types" connectiontypes "github.com/cosmos/ibc-go/v8/modules/core/03-connection/types" diff --git a/x/ibc/perm/client/cli/tx.go b/x/ibc/perm/client/cli/tx.go index f3d072921..3bf4c1f1d 100644 --- a/x/ibc/perm/client/cli/tx.go +++ b/x/ibc/perm/client/cli/tx.go @@ -7,7 +7,6 @@ import ( "github.com/spf13/cobra" "cosmossdk.io/core/address" - "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/tx" diff --git a/x/ibc/perm/ibc_module.go b/x/ibc/perm/ibc_module.go index 3ae02ba9a..694442965 100644 --- a/x/ibc/perm/ibc_module.go +++ b/x/ibc/perm/ibc_module.go @@ -3,9 +3,8 @@ package perm import ( "fmt" - capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types" - sdk "github.com/cosmos/cosmos-sdk/types" + capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types" clienttypes "github.com/cosmos/ibc-go/v8/modules/core/02-client/types" channeltypes "github.com/cosmos/ibc-go/v8/modules/core/04-channel/types" diff --git a/x/ibc/perm/keeper/genesis_test.go b/x/ibc/perm/keeper/genesis_test.go index 7238c90a9..74c1587a2 100644 --- a/x/ibc/perm/keeper/genesis_test.go +++ b/x/ibc/perm/keeper/genesis_test.go @@ -7,7 +7,6 @@ import ( "github.com/stretchr/testify/require" dbm "github.com/cosmos/cosmos-db" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/initia-labs/initia/x/ibc/perm/types" diff --git a/x/ibc/perm/keeper/grpc_query.go b/x/ibc/perm/keeper/grpc_query.go index 93b652875..e2db32181 100644 --- a/x/ibc/perm/keeper/grpc_query.go +++ b/x/ibc/perm/keeper/grpc_query.go @@ -4,7 +4,6 @@ import ( "context" "cosmossdk.io/collections" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/query" diff --git a/x/ibc/perm/keeper/grpc_query_test.go b/x/ibc/perm/keeper/grpc_query_test.go index 9cbf528a0..5670e3389 100644 --- a/x/ibc/perm/keeper/grpc_query_test.go +++ b/x/ibc/perm/keeper/grpc_query_test.go @@ -9,7 +9,6 @@ import ( "github.com/stretchr/testify/require" dbm "github.com/cosmos/cosmos-db" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/initia-labs/initia/x/ibc/perm/keeper" diff --git a/x/ibc/perm/keeper/keeper.go b/x/ibc/perm/keeper/keeper.go index 6cb5cb356..8610e99f1 100644 --- a/x/ibc/perm/keeper/keeper.go +++ b/x/ibc/perm/keeper/keeper.go @@ -9,7 +9,6 @@ import ( "cosmossdk.io/core/address" "cosmossdk.io/core/store" "cosmossdk.io/log" - "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/ibc/perm/keeper/keeper_test.go b/x/ibc/perm/keeper/keeper_test.go index 388935709..150feb4b9 100644 --- a/x/ibc/perm/keeper/keeper_test.go +++ b/x/ibc/perm/keeper/keeper_test.go @@ -14,7 +14,6 @@ import ( "cosmossdk.io/store/metrics" storetypes "cosmossdk.io/store/types" dbm "github.com/cosmos/cosmos-db" - "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/codec/address" "github.com/cosmos/cosmos-sdk/runtime" diff --git a/x/ibc/perm/keeper/msg_server_test.go b/x/ibc/perm/keeper/msg_server_test.go index 13f8c4cae..94003b041 100644 --- a/x/ibc/perm/keeper/msg_server_test.go +++ b/x/ibc/perm/keeper/msg_server_test.go @@ -8,7 +8,6 @@ import ( "github.com/stretchr/testify/require" dbm "github.com/cosmos/cosmos-db" - sdk "github.com/cosmos/cosmos-sdk/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" diff --git a/x/ibc/testing/app.go b/x/ibc/testing/app.go index c428653a4..055e816c3 100644 --- a/x/ibc/testing/app.go +++ b/x/ibc/testing/app.go @@ -16,8 +16,6 @@ import ( "cosmossdk.io/log" storetypes "cosmossdk.io/store/types" dbm "github.com/cosmos/cosmos-db" - capabilitykeeper "github.com/cosmos/ibc-go/modules/capability/keeper" - "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/codec" @@ -29,6 +27,7 @@ import ( authkeeper "github.com/cosmos/cosmos-sdk/x/auth/keeper" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" + capabilitykeeper "github.com/cosmos/ibc-go/modules/capability/keeper" icacontrollerkeeper "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/controller/keeper" "github.com/cosmos/ibc-go/v8/modules/core/keeper" diff --git a/x/ibc/testing/chain.go b/x/ibc/testing/chain.go index 4ab95be1e..8e3e2e087 100644 --- a/x/ibc/testing/chain.go +++ b/x/ibc/testing/chain.go @@ -16,9 +16,6 @@ import ( "cosmossdk.io/math" "github.com/stretchr/testify/require" - capabilitykeeper "github.com/cosmos/ibc-go/modules/capability/keeper" - capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types" - "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" @@ -28,6 +25,8 @@ import ( banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" "github.com/cosmos/cosmos-sdk/x/staking/testutil" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + capabilitykeeper "github.com/cosmos/ibc-go/modules/capability/keeper" + capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types" clienttypes "github.com/cosmos/ibc-go/v8/modules/core/02-client/types" commitmenttypes "github.com/cosmos/ibc-go/v8/modules/core/23-commitment/types" diff --git a/x/intertx/ibc_module.go b/x/intertx/ibc_module.go index a02ee704d..325adfa42 100644 --- a/x/intertx/ibc_module.go +++ b/x/intertx/ibc_module.go @@ -6,12 +6,11 @@ import ( errorsmod "cosmossdk.io/errors" "github.com/initia-labs/initia/x/intertx/keeper" - capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types" - sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types" channeltypes "github.com/cosmos/ibc-go/v8/modules/core/04-channel/types" porttypes "github.com/cosmos/ibc-go/v8/modules/core/05-port/types" diff --git a/x/intertx/keeper/keeper.go b/x/intertx/keeper/keeper.go index ebe0f8049..6bcd22809 100644 --- a/x/intertx/keeper/keeper.go +++ b/x/intertx/keeper/keeper.go @@ -6,11 +6,10 @@ import ( "cosmossdk.io/core/address" "cosmossdk.io/log" - capabilitykeeper "github.com/cosmos/ibc-go/modules/capability/keeper" - capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types" - "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" + capabilitykeeper "github.com/cosmos/ibc-go/modules/capability/keeper" + capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types" icacontrollerkeeper "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/controller/keeper" "github.com/initia-labs/initia/x/intertx/types" diff --git a/x/move/client/cli/query.go b/x/move/client/cli/query.go index eb663c3a6..9d695f4f9 100644 --- a/x/move/client/cli/query.go +++ b/x/move/client/cli/query.go @@ -9,7 +9,6 @@ import ( "cosmossdk.io/core/address" errorsmod "cosmossdk.io/errors" - "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/move/client/cli/tx.go b/x/move/client/cli/tx.go index 8d3b20cc7..4fcec0456 100644 --- a/x/move/client/cli/tx.go +++ b/x/move/client/cli/tx.go @@ -9,7 +9,6 @@ import ( "cosmossdk.io/core/address" errorsmod "cosmossdk.io/errors" - "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/tx" diff --git a/x/move/keeper/api.go b/x/move/keeper/api.go index 67a5c65c8..84b2110c8 100644 --- a/x/move/keeper/api.go +++ b/x/move/keeper/api.go @@ -6,7 +6,6 @@ import ( "errors" "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" diff --git a/x/move/keeper/balancer.go b/x/move/keeper/balancer.go index 3cbab136d..10636553a 100644 --- a/x/move/keeper/balancer.go +++ b/x/move/keeper/balancer.go @@ -8,7 +8,6 @@ import ( "cosmossdk.io/collections" moderrors "cosmossdk.io/errors" "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/initia-labs/initia/x/move/types" diff --git a/x/move/keeper/balancer_test.go b/x/move/keeper/balancer_test.go index 39c5e0d35..8c3324d6a 100644 --- a/x/move/keeper/balancer_test.go +++ b/x/move/keeper/balancer_test.go @@ -6,7 +6,6 @@ import ( "github.com/stretchr/testify/require" "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" diff --git a/x/move/keeper/bank_test.go b/x/move/keeper/bank_test.go index 6edc2bf99..d0a549a1c 100644 --- a/x/move/keeper/bank_test.go +++ b/x/move/keeper/bank_test.go @@ -9,7 +9,6 @@ import ( "github.com/stretchr/testify/require" sdkmath "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" cosmosbanktypes "github.com/cosmos/cosmos-sdk/x/bank/types" diff --git a/x/move/keeper/common_test.go b/x/move/keeper/common_test.go index ddfe7b973..96684939b 100644 --- a/x/move/keeper/common_test.go +++ b/x/move/keeper/common_test.go @@ -27,7 +27,6 @@ import ( storetypes "cosmossdk.io/store/types" "cosmossdk.io/x/tx/signing" dbm "github.com/cosmos/cosmos-db" - "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/codec" codecaddress "github.com/cosmos/cosmos-sdk/codec/address" diff --git a/x/move/keeper/handler.go b/x/move/keeper/handler.go index 0ec12bf05..c65319d66 100644 --- a/x/move/keeper/handler.go +++ b/x/move/keeper/handler.go @@ -12,7 +12,6 @@ import ( sdkmath "cosmossdk.io/math" storetypes "cosmossdk.io/store/types" - sdk "github.com/cosmos/cosmos-sdk/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" diff --git a/x/move/keeper/hooks.go b/x/move/keeper/hooks.go index c51f51e68..5bf5345f8 100644 --- a/x/move/keeper/hooks.go +++ b/x/move/keeper/hooks.go @@ -4,7 +4,6 @@ import ( "context" "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" stakingtypes "github.com/initia-labs/initia/x/mstaking/types" diff --git a/x/move/keeper/keeper.go b/x/move/keeper/keeper.go index b5b8112b3..57aed549d 100644 --- a/x/move/keeper/keeper.go +++ b/x/move/keeper/keeper.go @@ -8,7 +8,6 @@ import ( "cosmossdk.io/core/address" corestoretypes "cosmossdk.io/core/store" "cosmossdk.io/log" - "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" diff --git a/x/move/keeper/stableswap_test.go b/x/move/keeper/stableswap_test.go index 404ab716c..e71968852 100644 --- a/x/move/keeper/stableswap_test.go +++ b/x/move/keeper/stableswap_test.go @@ -6,7 +6,6 @@ import ( "github.com/stretchr/testify/require" "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/initia-labs/initia/x/move/keeper" diff --git a/x/move/keeper/vesting.go b/x/move/keeper/vesting.go index f07e37f21..cef5aab88 100644 --- a/x/move/keeper/vesting.go +++ b/x/move/keeper/vesting.go @@ -9,7 +9,6 @@ import ( "cosmossdk.io/collections" "cosmossdk.io/math" "github.com/cometbft/cometbft/libs/json" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/initia-labs/initia/x/move/types" diff --git a/x/move/keeper/vm_msg_stargate.go b/x/move/keeper/vm_msg_stargate.go index 5d6163eb4..9dd71ae1c 100644 --- a/x/move/keeper/vm_msg_stargate.go +++ b/x/move/keeper/vm_msg_stargate.go @@ -6,10 +6,9 @@ import ( errorsmod "cosmossdk.io/errors" - "github.com/cosmos/gogoproto/proto" - sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/cosmos/gogoproto/proto" "github.com/initia-labs/initia/x/move/types" vmtypes "github.com/initia-labs/movevm/types" diff --git a/x/move/keeper/vm_query.go b/x/move/keeper/vm_query.go index 85f856e8b..e438b23b9 100644 --- a/x/move/keeper/vm_query.go +++ b/x/move/keeper/vm_query.go @@ -7,7 +7,6 @@ import ( errorsmod "cosmossdk.io/errors" storetypes "cosmossdk.io/store/types" - sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" diff --git a/x/move/keeper/voting_power.go b/x/move/keeper/voting_power.go index a471f038e..c45790730 100644 --- a/x/move/keeper/voting_power.go +++ b/x/move/keeper/voting_power.go @@ -4,7 +4,6 @@ import ( "context" "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/initia-labs/initia/x/move/types" diff --git a/x/move/keeper/whitelist_test.go b/x/move/keeper/whitelist_test.go index c19e65e47..c2df68f12 100644 --- a/x/move/keeper/whitelist_test.go +++ b/x/move/keeper/whitelist_test.go @@ -4,7 +4,6 @@ import ( "testing" "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" distrtypes "github.com/initia-labs/initia/x/distribution/types" diff --git a/x/move/types/auth_test.go b/x/move/types/auth_test.go index b686faab7..6098dde1a 100644 --- a/x/move/types/auth_test.go +++ b/x/move/types/auth_test.go @@ -9,7 +9,6 @@ import ( "github.com/initia-labs/initia/x/move/types" storetypes "cosmossdk.io/store/types" - sdk "github.com/cosmos/cosmos-sdk/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" ) diff --git a/x/move/types/authz_test.go b/x/move/types/authz_test.go index 3b0e1e28b..07713c847 100644 --- a/x/move/types/authz_test.go +++ b/x/move/types/authz_test.go @@ -9,7 +9,6 @@ import ( movetypes "github.com/initia-labs/initia/x/move/types" storetypes "cosmossdk.io/store/types" - "github.com/cosmos/cosmos-sdk/codec/address" sdk "github.com/cosmos/cosmos-sdk/types" ) diff --git a/x/move/types/env.go b/x/move/types/env.go index 9e27bad29..2fa3c75a4 100644 --- a/x/move/types/env.go +++ b/x/move/types/env.go @@ -6,7 +6,6 @@ import ( "encoding/binary" "github.com/cometbft/cometbft/crypto/tmhash" - sdk "github.com/cosmos/cosmos-sdk/types" vmtypes "github.com/initia-labs/movevm/types" diff --git a/x/move/types/expected_keeper.go b/x/move/types/expected_keeper.go index bb4efdc55..10dd7a28d 100644 --- a/x/move/types/expected_keeper.go +++ b/x/move/types/expected_keeper.go @@ -5,7 +5,6 @@ import ( "time" "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" distrtypes "github.com/initia-labs/initia/x/distribution/types" diff --git a/x/move/types/params_test.go b/x/move/types/params_test.go index f9e3a0c5a..5ac269fe0 100644 --- a/x/move/types/params_test.go +++ b/x/move/types/params_test.go @@ -4,9 +4,8 @@ import ( "testing" "cosmossdk.io/math" - "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/codec/address" + "github.com/stretchr/testify/require" ) func TestParams(t *testing.T) { diff --git a/x/move/types/vm_query.go b/x/move/types/vm_query.go index b3ad3dd03..651ed136e 100644 --- a/x/move/types/vm_query.go +++ b/x/move/types/vm_query.go @@ -2,9 +2,8 @@ package types import ( "cosmossdk.io/core/address" - "github.com/cosmos/gogoproto/proto" - "github.com/cosmos/cosmos-sdk/codec" + "github.com/cosmos/gogoproto/proto" govtypes "github.com/initia-labs/initia/x/gov/types" ) diff --git a/x/move/types/vm_query_custom.go b/x/move/types/vm_query_custom.go index e97d4d017..a4cb627aa 100644 --- a/x/move/types/vm_query_custom.go +++ b/x/move/types/vm_query_custom.go @@ -5,7 +5,6 @@ import ( "encoding/json" "cosmossdk.io/core/address" - sdk "github.com/cosmos/cosmos-sdk/types" ) diff --git a/x/move/types/vm_query_custom_test.go b/x/move/types/vm_query_custom_test.go index bb200d18e..567f7bf84 100644 --- a/x/move/types/vm_query_custom_test.go +++ b/x/move/types/vm_query_custom_test.go @@ -5,11 +5,10 @@ import ( "encoding/json" "testing" + "github.com/cosmos/cosmos-sdk/codec/address" "github.com/initia-labs/initia/x/move/types" vmtypes "github.com/initia-labs/movevm/types" "github.com/stretchr/testify/require" - - "github.com/cosmos/cosmos-sdk/codec/address" ) func Test_ToSDKAddress(t *testing.T) { diff --git a/x/mstaking/keeper/common_test.go b/x/mstaking/keeper/common_test.go index 78234d9b0..23fb58587 100644 --- a/x/mstaking/keeper/common_test.go +++ b/x/mstaking/keeper/common_test.go @@ -26,7 +26,6 @@ import ( "cosmossdk.io/x/feegrant" "cosmossdk.io/x/upgrade" upgradetypes "cosmossdk.io/x/upgrade/types" - "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/codec" codecaddress "github.com/cosmos/cosmos-sdk/codec/address" diff --git a/x/mstaking/keeper/compatibility_keeper.go b/x/mstaking/keeper/compatibility_keeper.go index 2bff3556d..bbb9e972d 100644 --- a/x/mstaking/keeper/compatibility_keeper.go +++ b/x/mstaking/keeper/compatibility_keeper.go @@ -4,7 +4,6 @@ import ( "context" "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" cosmostypes "github.com/cosmos/cosmos-sdk/x/staking/types" diff --git a/x/mstaking/keeper/compatibility_keeper_test.go b/x/mstaking/keeper/compatibility_keeper_test.go index 7b01014d5..fdb479322 100644 --- a/x/mstaking/keeper/compatibility_keeper_test.go +++ b/x/mstaking/keeper/compatibility_keeper_test.go @@ -4,10 +4,9 @@ import ( "testing" "cosmossdk.io/math" + cosmostypes "github.com/cosmos/cosmos-sdk/x/staking/types" stakingkeeper "github.com/initia-labs/initia/x/mstaking/keeper" "github.com/stretchr/testify/require" - - cosmostypes "github.com/cosmos/cosmos-sdk/x/staking/types" ) func Test_CompatibleValidator(t *testing.T) { diff --git a/x/mstaking/keeper/grpc_query.go b/x/mstaking/keeper/grpc_query.go index 1c629dada..5d289c503 100644 --- a/x/mstaking/keeper/grpc_query.go +++ b/x/mstaking/keeper/grpc_query.go @@ -9,7 +9,6 @@ import ( "google.golang.org/grpc/status" "cosmossdk.io/collections" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/query" diff --git a/x/mstaking/keeper/historical_info.go b/x/mstaking/keeper/historical_info.go index 7a076c24b..b5926104e 100644 --- a/x/mstaking/keeper/historical_info.go +++ b/x/mstaking/keeper/historical_info.go @@ -5,7 +5,6 @@ import ( "errors" "cosmossdk.io/collections" - sdk "github.com/cosmos/cosmos-sdk/types" cosmostypes "github.com/cosmos/cosmos-sdk/x/staking/types" ) diff --git a/x/mstaking/keeper/msg_server_test.go b/x/mstaking/keeper/msg_server_test.go index dc35b17dc..b56221278 100644 --- a/x/mstaking/keeper/msg_server_test.go +++ b/x/mstaking/keeper/msg_server_test.go @@ -8,10 +8,9 @@ import ( initiaapp "github.com/initia-labs/initia/app" "github.com/stretchr/testify/require" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/initia-labs/initia/x/mstaking/keeper" "github.com/initia-labs/initia/x/mstaking/types" - - sdk "github.com/cosmos/cosmos-sdk/types" ) func Test_UpdateParams(t *testing.T) { diff --git a/x/mstaking/types/bond_denom.go b/x/mstaking/types/bond_denom.go index b8cb615a1..01ab02e39 100644 --- a/x/mstaking/types/bond_denom.go +++ b/x/mstaking/types/bond_denom.go @@ -2,7 +2,6 @@ package types import ( "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" ) diff --git a/x/mstaking/types/expected_keepers.go b/x/mstaking/types/expected_keepers.go index a8d7846ca..a3eb72d06 100644 --- a/x/mstaking/types/expected_keepers.go +++ b/x/mstaking/types/expected_keepers.go @@ -5,7 +5,6 @@ import ( "cosmossdk.io/core/address" "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" ) diff --git a/x/mstaking/types/hooks.go b/x/mstaking/types/hooks.go index 0bf48f80e..8a66db0c5 100644 --- a/x/mstaking/types/hooks.go +++ b/x/mstaking/types/hooks.go @@ -4,7 +4,6 @@ import ( "context" "cosmossdk.io/math" - sdk "github.com/cosmos/cosmos-sdk/types" ) diff --git a/x/reward/keeper/common_test.go b/x/reward/keeper/common_test.go index 832883850..16a055aa0 100644 --- a/x/reward/keeper/common_test.go +++ b/x/reward/keeper/common_test.go @@ -23,7 +23,6 @@ import ( upgradetypes "cosmossdk.io/x/upgrade/types" dbm "github.com/cosmos/cosmos-db" - "github.com/cosmos/cosmos-sdk/baseapp" "github.com/cosmos/cosmos-sdk/codec" codecaddress "github.com/cosmos/cosmos-sdk/codec/address" diff --git a/x/reward/types/expected_keeper.go b/x/reward/types/expected_keeper.go index 98139a905..890ea0c04 100644 --- a/x/reward/types/expected_keeper.go +++ b/x/reward/types/expected_keeper.go @@ -4,7 +4,6 @@ import ( context "context" "cosmossdk.io/core/address" - sdk "github.com/cosmos/cosmos-sdk/types" ) diff --git a/x/reward/types/tx.go b/x/reward/types/tx.go index 4d71e8c0a..96faa32bc 100644 --- a/x/reward/types/tx.go +++ b/x/reward/types/tx.go @@ -2,7 +2,6 @@ package types import ( "cosmossdk.io/core/address" - sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) From e312a262442b9d5467ed65f8ca0c6aff29029226 Mon Sep 17 00:00:00 2001 From: sh-cha Date: Tue, 25 Mar 2025 12:00:01 +0900 Subject: [PATCH 07/14] handle the case that the target gas is zero --- x/dynamic-fee/keeper/keeper.go | 3 +++ x/dynamic-fee/types/errors.go | 9 +++++++++ 2 files changed, 12 insertions(+) create mode 100644 x/dynamic-fee/types/errors.go diff --git a/x/dynamic-fee/keeper/keeper.go b/x/dynamic-fee/keeper/keeper.go index 72f82f03c..b7d693bda 100644 --- a/x/dynamic-fee/keeper/keeper.go +++ b/x/dynamic-fee/keeper/keeper.go @@ -99,6 +99,9 @@ func (k Keeper) UpdateBaseGasPrice(ctx sdk.Context) error { if err != nil { return err } + if params.TargetGas == 0 { + return types.ErrTargetGasZero + } gasUsed := ctx.BlockGasMeter().GasConsumed() diff --git a/x/dynamic-fee/types/errors.go b/x/dynamic-fee/types/errors.go new file mode 100644 index 000000000..ac1960517 --- /dev/null +++ b/x/dynamic-fee/types/errors.go @@ -0,0 +1,9 @@ +package types + +import ( + errorsmod "cosmossdk.io/errors" +) + +var ( + ErrTargetGasZero = errorsmod.Register(ModuleName, 2, "target gas is zero") +) From 7c87f3aa429f5759104ed1d9af29d6b2477afe50 Mon Sep 17 00:00:00 2001 From: sh-cha Date: Tue, 25 Mar 2025 12:05:07 +0900 Subject: [PATCH 08/14] remove unnecessary constants --- x/dynamic-fee/client/cli/flags.go | 50 ------------------------------- x/move/types/keys.go | 3 +- 2 files changed, 1 insertion(+), 52 deletions(-) delete mode 100644 x/dynamic-fee/client/cli/flags.go diff --git a/x/dynamic-fee/client/cli/flags.go b/x/dynamic-fee/client/cli/flags.go deleted file mode 100644 index 80772f4f2..000000000 --- a/x/dynamic-fee/client/cli/flags.go +++ /dev/null @@ -1,50 +0,0 @@ -package cli - -import ( - "fmt" - - flag "github.com/spf13/pflag" - - "github.com/initia-labs/initia/x/move/types" -) - -const ( - FlagUpgradePolicy = "upgrade-policy" - FlagTypeArgs = "type-args" - FlagArgs = "args" -) - -// FlagSetUpgradePolicy Returns the FlagSet for upgrade policy related operations. -func FlagSetUpgradePolicy() *flag.FlagSet { - fs := flag.NewFlagSet("", flag.ContinueOnError) - fs.String(FlagUpgradePolicy, types.UpgradePolicy_name[int32(types.UpgradePolicy_COMPATIBLE)], - fmt.Sprintf(`The module upgrade policy, which should be one of "%s" and "%s")`, - types.UpgradePolicy_name[int32(types.UpgradePolicy_COMPATIBLE)], - types.UpgradePolicy_name[int32(types.UpgradePolicy_IMMUTABLE)], - )) - return fs -} - -// FlagSetArgs Returns the FlagSet for args related operations. -func FlagSetArgs() *flag.FlagSet { - fs := flag.NewFlagSet("", flag.ContinueOnError) - fs.String(FlagArgs, "", `The array of BCS arguments for the move function. -Example: '["address:0x1", "bool:true", "u8:0x01", "u128:1234", "vector:a,b,c,d"]'`) - return fs -} - -// FlagSetArgs Returns the FlagSet for args related operations. -func FlagSetJSONArgs() *flag.FlagSet { - fs := flag.NewFlagSet("", flag.ContinueOnError) - fs.String(FlagArgs, "", `The array of JSON arguments for the move function. -Example: '[0, true, "0x1", "1234", ["a","b","c","d"]]'`) - return fs -} - -// FlagSetTypeArgs Returns the FlagSet for type args related operations. -func FlagSetTypeArgs() *flag.FlagSet { - fs := flag.NewFlagSet("", flag.ContinueOnError) - fs.String(FlagTypeArgs, "", `The array of type arguments for the move function. -ex) '["0x1::BasicCoin::getBalance", "0x1::BasicCoin::getBalance"]'`) - return fs -} diff --git a/x/move/types/keys.go b/x/move/types/keys.go index 7eee4ecc7..e40435b0c 100644 --- a/x/move/types/keys.go +++ b/x/move/types/keys.go @@ -62,8 +62,7 @@ var ( DexPairPrefix = []byte{0x12} // prefix for dex pairs VMStorePrefix = []byte{0x21} // prefix for vm - ParamsKey = []byte{0x31} // prefix for parameters for module x/move - EIP1559FeeParamsKey = []byte{0x32} // prefix for eip1559 fee params + ParamsKey = []byte{0x31} // prefix for parameters for module x/move ModuleSeparator = byte(0) ChecksumSeparator = byte(1) From f7b14bec4687df4efac468bd9058f1bab85f3193 Mon Sep 17 00:00:00 2001 From: sh-cha Date: Tue, 25 Mar 2025 13:20:51 +0900 Subject: [PATCH 09/14] add gas price test --- x/dynamic-fee/keeper/gas_price_test.go | 181 +++++++++++++++++++++++++ 1 file changed, 181 insertions(+) create mode 100644 x/dynamic-fee/keeper/gas_price_test.go diff --git a/x/dynamic-fee/keeper/gas_price_test.go b/x/dynamic-fee/keeper/gas_price_test.go new file mode 100644 index 000000000..f61335d61 --- /dev/null +++ b/x/dynamic-fee/keeper/gas_price_test.go @@ -0,0 +1,181 @@ +package keeper_test + +import ( + "slices" + "testing" + + "cosmossdk.io/math" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/stretchr/testify/require" + + "github.com/initia-labs/initia/x/dynamic-fee/types" + movetypes "github.com/initia-labs/initia/x/move/types" + vmtypes "github.com/initia-labs/movevm/types" +) + +func decToVmArgument(t *testing.T, val math.LegacyDec) []byte { + // big-endian bytes (bytes are cloned) + bz := val.BigInt().Bytes() + + // reverse bytes to little-endian + slices.Reverse(bz) + + // serialize bytes + bz, err := vmtypes.SerializeBytes(bz) + require.NoError(t, err) + + return bz +} + +func createDexPool( + t *testing.T, ctx sdk.Context, input TestKeepers, + baseCoin sdk.Coin, quoteCoin sdk.Coin, + weightBase math.LegacyDec, weightQuote math.LegacyDec, +) (metadataLP vmtypes.AccountAddress) { + metadataBase, err := movetypes.MetadataAddressFromDenom(baseCoin.Denom) + require.NoError(t, err) + + metadataQuote, err := movetypes.MetadataAddressFromDenom(quoteCoin.Denom) + require.NoError(t, err) + + // fund test account for dex creation + input.Faucet.Fund(ctx, movetypes.TestAddr, baseCoin, quoteCoin) + + denomLP := "ulp" + baseCoin.Denom + quoteCoin.Denom + + // + // prepare arguments + // + + name, err := vmtypes.SerializeString("LP Coin" + baseCoin.Denom + quoteCoin.Denom) + require.NoError(t, err) + + symbol, err := vmtypes.SerializeString(denomLP) + require.NoError(t, err) + + // 0.003 == 0.3% + swapFeeBz := decToVmArgument(t, math.LegacyNewDecWithPrec(3, 3)) + weightBaseBz := decToVmArgument(t, weightBase) + weightQuoteBz := decToVmArgument(t, weightQuote) + + baseAmount, err := vmtypes.SerializeUint64(baseCoin.Amount.Uint64()) + require.NoError(t, err) + + quoteAmount, err := vmtypes.SerializeUint64(quoteCoin.Amount.Uint64()) + require.NoError(t, err) + + err = input.MoveKeeper.ExecuteEntryFunction( + ctx, + vmtypes.TestAddress, + vmtypes.StdAddress, + "dex", + "create_pair_script", + []vmtypes.TypeTag{}, + [][]byte{ + name, + symbol, + swapFeeBz, + weightBaseBz, + weightQuoteBz, + metadataBase[:], + metadataQuote[:], + baseAmount, + quoteAmount, + }, + ) + require.NoError(t, err) + + return movetypes.NamedObjectAddress(vmtypes.TestAddress, denomLP) +} + +func registerDexPool(t *testing.T, ctx sdk.Context, input TestKeepers, basePrice math.LegacyDec) ([]string, []math.LegacyDec) { + err := input.DynamicFeeKeeper.SetParams(ctx, types.Params{ + MinBaseGasPrice: basePrice, + MaxBaseGasPrice: basePrice, + BaseGasPrice: basePrice, + }) + require.NoError(t, err) + + dexKeeper := input.MoveKeeper.DexKeeper() + + baseDenom := bondDenom + baseAmount := math.NewInt(40) + + denomQuote := "uusdc" + quoteAmount := math.NewInt(10) + + metadataQuote, err := movetypes.MetadataAddressFromDenom(denomQuote) + require.NoError(t, err) + + metadataLP := createDexPool( + t, ctx, input, + sdk.NewCoin(baseDenom, baseAmount), sdk.NewCoin(denomQuote, quoteAmount), + math.LegacyNewDecWithPrec(8, 1), math.LegacyNewDecWithPrec(2, 1), + ) + + // store dex pair for queries + err = dexKeeper.SetDexPair(ctx, movetypes.DexPair{ + MetadataQuote: metadataQuote.String(), + MetadataLP: metadataLP.String(), + }) + require.NoError(t, err) + + quotePrice, err := dexKeeper.GetBaseSpotPrice(ctx, denomQuote) + require.NoError(t, err) + require.Equal(t, math.LegacyOneDec(), quotePrice) + + denomQuote2 := "utia" + quoteAmount = math.NewInt(20) + + metadataQuote2, err := movetypes.MetadataAddressFromDenom(denomQuote2) + require.NoError(t, err) + + metadataLP2 := createDexPool( + t, ctx, input, + sdk.NewCoin(baseDenom, baseAmount), sdk.NewCoin(denomQuote2, quoteAmount), + math.LegacyNewDecWithPrec(5, 1), math.LegacyNewDecWithPrec(5, 1), + ) + + // store dex pair for queries + err = dexKeeper.SetDexPair(ctx, movetypes.DexPair{ + MetadataQuote: metadataQuote2.String(), + MetadataLP: metadataLP2.String(), + }) + require.NoError(t, err) + + quotePrice2, err := dexKeeper.GetBaseSpotPrice(ctx, denomQuote2) + require.NoError(t, err) + require.Equal(t, math.LegacyNewDec(2), quotePrice2) + + return []string{denomQuote, denomQuote2}, []math.LegacyDec{quotePrice, quotePrice2} +} + +func TestGasPrices(t *testing.T) { + ctx, input := createDefaultTestInput(t) + + basePrice := math.LegacyNewDecWithPrec(1, 2) // 0.01 + denoms, prices := registerDexPool(t, ctx, input, basePrice) + + gasPrices, err := input.DynamicFeeKeeper.GasPrices(ctx) + require.NoError(t, err) + + require.Equal(t, basePrice.Quo(gasPrices.AmountOf(denoms[0])), prices[0]) + require.Equal(t, basePrice.Quo(gasPrices.AmountOf(denoms[1])), prices[1]) +} + +func TestGasPrice(t *testing.T) { + ctx, input := createDefaultTestInput(t) + + basePrice := math.LegacyNewDecWithPrec(1, 2) // 0.01 + denoms, prices := registerDexPool(t, ctx, input, basePrice) + + gasPrice, err := input.DynamicFeeKeeper.GasPrice(ctx, denoms[0]) + require.NoError(t, err) + require.Equal(t, gasPrice.Denom, denoms[0]) + require.Equal(t, basePrice.Quo(gasPrice.Amount), prices[0]) + + gasPrice, err = input.DynamicFeeKeeper.GasPrice(ctx, denoms[1]) + require.NoError(t, err) + require.Equal(t, gasPrice.Denom, denoms[1]) + require.Equal(t, basePrice.Quo(gasPrice.Amount), prices[1]) +} From 01a0b083b0c3eb723ffa216e92e0ae9340614b3c Mon Sep 17 00:00:00 2001 From: sh-cha Date: Tue, 25 Mar 2025 15:45:44 +0900 Subject: [PATCH 10/14] remove unnecessary variables --- x/dynamic-fee/ante/fee_utils.go | 20 -------------------- x/dynamic-fee/module.go | 2 -- 2 files changed, 22 deletions(-) diff --git a/x/dynamic-fee/ante/fee_utils.go b/x/dynamic-fee/ante/fee_utils.go index b49aacf3c..3060e1601 100644 --- a/x/dynamic-fee/ante/fee_utils.go +++ b/x/dynamic-fee/ante/fee_utils.go @@ -7,26 +7,6 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" ) -// combinedMinGasPrices will combine the on-chain fee and min_gas_prices. -func combinedMinGasPrices(baseDenom string, baseMinGasPrice math.LegacyDec, minGasPrices sdk.DecCoins) sdk.DecCoins { - // empty min_gas_price - if len(minGasPrices) == 0 { - return sdk.DecCoins{sdk.NewDecCoinFromDec(baseDenom, baseMinGasPrice)} - } - - baseMinGasPriceFromConfig := minGasPrices.AmountOf(baseDenom) - - // if the configured value is bigger than - // on chain baseMinGasPrice, return origin minGasPrices - if baseMinGasPriceFromConfig.GTE(baseMinGasPrice) { - return minGasPrices - } - - // else, change min gas price of base denom to on chain value - diff := baseMinGasPrice.Sub(baseMinGasPriceFromConfig) - return minGasPrices.Add(sdk.NewDecCoinFromDec(baseDenom, diff)) -} - // computeRequiredFees returns required fees func computeRequiredFees(gas storetypes.Gas, minGasPrices sdk.DecCoins) sdk.Coins { // special case: if minGasPrices=[], requiredFees=[] diff --git a/x/dynamic-fee/module.go b/x/dynamic-fee/module.go index 46412b6cf..d7f456150 100644 --- a/x/dynamic-fee/module.go +++ b/x/dynamic-fee/module.go @@ -4,7 +4,6 @@ import ( "context" "encoding/json" - "cosmossdk.io/core/address" "cosmossdk.io/core/appmodule" "github.com/grpc-ecosystem/grpc-gateway/runtime" @@ -80,7 +79,6 @@ type AppModule struct { AppModuleBasic keeper keeper.Keeper - vc address.Codec moduleNames []string } From 95f220af5846ffe002e98341a69af746fbb7011d Mon Sep 17 00:00:00 2001 From: sh-cha Date: Wed, 26 Mar 2025 13:02:52 +0900 Subject: [PATCH 11/14] delete unneccessary module name --- x/dynamic-fee/keeper/genesis.go | 2 +- x/dynamic-fee/module.go | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/x/dynamic-fee/keeper/genesis.go b/x/dynamic-fee/keeper/genesis.go index 1d2d9fcfb..af4e8c479 100644 --- a/x/dynamic-fee/keeper/genesis.go +++ b/x/dynamic-fee/keeper/genesis.go @@ -7,7 +7,7 @@ import ( ) // InitGenesis sets supply information for genesis. -func (k Keeper) InitGenesis(ctx context.Context, moduleNames []string, genState types.GenesisState) error { +func (k Keeper) InitGenesis(ctx context.Context, genState types.GenesisState) error { params := genState.GetParams() if err := k.SetParams(ctx, params); err != nil { return err diff --git a/x/dynamic-fee/module.go b/x/dynamic-fee/module.go index d7f456150..368383521 100644 --- a/x/dynamic-fee/module.go +++ b/x/dynamic-fee/module.go @@ -78,8 +78,7 @@ func (b AppModuleBasic) RegisterInterfaces(registry cdctypes.InterfaceRegistry) type AppModule struct { AppModuleBasic - keeper keeper.Keeper - moduleNames []string + keeper keeper.Keeper } // IsAppModule implements the appmodule.AppModule interface. @@ -119,7 +118,7 @@ func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, data json. var genesisState types.GenesisState cdc.MustUnmarshalJSON(data, &genesisState) - if err := am.keeper.InitGenesis(ctx, am.moduleNames, genesisState); err != nil { + if err := am.keeper.InitGenesis(ctx, genesisState); err != nil { panic(err) } } From 058ae814b601643641a50bb950454fd678788977 Mon Sep 17 00:00:00 2001 From: sh-cha Date: Wed, 26 Mar 2025 13:12:39 +0900 Subject: [PATCH 12/14] rollback move baseMinGasPrice and make it deprecated --- api/initia/move/v1/types.pulsar.go | 434 ++++++++++++++++++++--------- proto/initia/move/v1/types.proto | 27 +- x/move/types/params.go | 21 ++ x/move/types/params_test.go | 7 +- x/move/types/types.pb.go | 239 +++++++++++----- 5 files changed, 517 insertions(+), 211 deletions(-) diff --git a/api/initia/move/v1/types.pulsar.go b/api/initia/move/v1/types.pulsar.go index 7894f876a..474c7da25 100644 --- a/api/initia/move/v1/types.pulsar.go +++ b/api/initia/move/v1/types.pulsar.go @@ -14,55 +14,56 @@ import ( sync "sync" ) -var _ protoreflect.List = (*_Params_4_list)(nil) +var _ protoreflect.List = (*_Params_5_list)(nil) -type _Params_4_list struct { +type _Params_5_list struct { list *[]string } -func (x *_Params_4_list) Len() int { +func (x *_Params_5_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_Params_4_list) Get(i int) protoreflect.Value { +func (x *_Params_5_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfString((*x.list)[i]) } -func (x *_Params_4_list) Set(i int, value protoreflect.Value) { +func (x *_Params_5_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.String() concreteValue := valueUnwrapped (*x.list)[i] = concreteValue } -func (x *_Params_4_list) Append(value protoreflect.Value) { +func (x *_Params_5_list) Append(value protoreflect.Value) { valueUnwrapped := value.String() concreteValue := valueUnwrapped *x.list = append(*x.list, concreteValue) } -func (x *_Params_4_list) AppendMutable() protoreflect.Value { +func (x *_Params_5_list) AppendMutable() protoreflect.Value { panic(fmt.Errorf("AppendMutable can not be called on message Params at list field AllowedPublishers as it is not of Message kind")) } -func (x *_Params_4_list) Truncate(n int) { +func (x *_Params_5_list) Truncate(n int) { *x.list = (*x.list)[:n] } -func (x *_Params_4_list) NewElement() protoreflect.Value { +func (x *_Params_5_list) NewElement() protoreflect.Value { v := "" return protoreflect.ValueOfString(v) } -func (x *_Params_4_list) IsValid() bool { +func (x *_Params_5_list) IsValid() bool { return x.list != nil } var ( md_Params protoreflect.MessageDescriptor fd_Params_base_denom protoreflect.FieldDescriptor + fd_Params_base_min_gas_price protoreflect.FieldDescriptor fd_Params_contract_shared_revenue_ratio protoreflect.FieldDescriptor fd_Params_script_enabled protoreflect.FieldDescriptor fd_Params_allowed_publishers protoreflect.FieldDescriptor @@ -72,6 +73,7 @@ func init() { file_initia_move_v1_types_proto_init() md_Params = File_initia_move_v1_types_proto.Messages().ByName("Params") 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_contract_shared_revenue_ratio = md_Params.Fields().ByName("contract_shared_revenue_ratio") fd_Params_script_enabled = md_Params.Fields().ByName("script_enabled") fd_Params_allowed_publishers = md_Params.Fields().ByName("allowed_publishers") @@ -148,6 +150,12 @@ func (x *fastReflection_Params) Range(f func(protoreflect.FieldDescriptor, proto return } } + if x.BaseMinGasPrice != "" { + value := protoreflect.ValueOfString(x.BaseMinGasPrice) + if !f(fd_Params_base_min_gas_price, value) { + return + } + } if x.ContractSharedRevenueRatio != "" { value := protoreflect.ValueOfString(x.ContractSharedRevenueRatio) if !f(fd_Params_contract_shared_revenue_ratio, value) { @@ -161,7 +169,7 @@ func (x *fastReflection_Params) Range(f func(protoreflect.FieldDescriptor, proto } } if len(x.AllowedPublishers) != 0 { - value := protoreflect.ValueOfList(&_Params_4_list{list: &x.AllowedPublishers}) + value := protoreflect.ValueOfList(&_Params_5_list{list: &x.AllowedPublishers}) if !f(fd_Params_allowed_publishers, value) { return } @@ -183,6 +191,8 @@ func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { case "initia.move.v1.Params.base_denom": return x.BaseDenom != "" + case "initia.move.v1.Params.base_min_gas_price": + return x.BaseMinGasPrice != "" case "initia.move.v1.Params.contract_shared_revenue_ratio": return x.ContractSharedRevenueRatio != "" case "initia.move.v1.Params.script_enabled": @@ -207,6 +217,8 @@ func (x *fastReflection_Params) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "initia.move.v1.Params.base_denom": x.BaseDenom = "" + case "initia.move.v1.Params.base_min_gas_price": + x.BaseMinGasPrice = "" case "initia.move.v1.Params.contract_shared_revenue_ratio": x.ContractSharedRevenueRatio = "" case "initia.move.v1.Params.script_enabled": @@ -232,6 +244,9 @@ func (x *fastReflection_Params) Get(descriptor protoreflect.FieldDescriptor) pro case "initia.move.v1.Params.base_denom": value := x.BaseDenom return protoreflect.ValueOfString(value) + case "initia.move.v1.Params.base_min_gas_price": + value := x.BaseMinGasPrice + return protoreflect.ValueOfString(value) case "initia.move.v1.Params.contract_shared_revenue_ratio": value := x.ContractSharedRevenueRatio return protoreflect.ValueOfString(value) @@ -240,9 +255,9 @@ func (x *fastReflection_Params) Get(descriptor protoreflect.FieldDescriptor) pro return protoreflect.ValueOfBool(value) case "initia.move.v1.Params.allowed_publishers": if len(x.AllowedPublishers) == 0 { - return protoreflect.ValueOfList(&_Params_4_list{}) + return protoreflect.ValueOfList(&_Params_5_list{}) } - listValue := &_Params_4_list{list: &x.AllowedPublishers} + listValue := &_Params_5_list{list: &x.AllowedPublishers} return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { @@ -266,13 +281,15 @@ func (x *fastReflection_Params) Set(fd protoreflect.FieldDescriptor, value proto switch fd.FullName() { case "initia.move.v1.Params.base_denom": x.BaseDenom = value.Interface().(string) + case "initia.move.v1.Params.base_min_gas_price": + x.BaseMinGasPrice = value.Interface().(string) case "initia.move.v1.Params.contract_shared_revenue_ratio": x.ContractSharedRevenueRatio = value.Interface().(string) case "initia.move.v1.Params.script_enabled": x.ScriptEnabled = value.Bool() case "initia.move.v1.Params.allowed_publishers": lv := value.List() - clv := lv.(*_Params_4_list) + clv := lv.(*_Params_5_list) x.AllowedPublishers = *clv.list default: if fd.IsExtension() { @@ -298,10 +315,12 @@ func (x *fastReflection_Params) Mutable(fd protoreflect.FieldDescriptor) protore if x.AllowedPublishers == nil { x.AllowedPublishers = []string{} } - value := &_Params_4_list{list: &x.AllowedPublishers} + value := &_Params_5_list{list: &x.AllowedPublishers} return protoreflect.ValueOfList(value) 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": + panic(fmt.Errorf("field base_min_gas_price of message initia.move.v1.Params is not mutable")) case "initia.move.v1.Params.contract_shared_revenue_ratio": panic(fmt.Errorf("field contract_shared_revenue_ratio of message initia.move.v1.Params is not mutable")) case "initia.move.v1.Params.script_enabled": @@ -321,13 +340,15 @@ func (x *fastReflection_Params) NewField(fd protoreflect.FieldDescriptor) protor switch fd.FullName() { case "initia.move.v1.Params.base_denom": return protoreflect.ValueOfString("") + case "initia.move.v1.Params.base_min_gas_price": + return protoreflect.ValueOfString("") case "initia.move.v1.Params.contract_shared_revenue_ratio": return protoreflect.ValueOfString("") case "initia.move.v1.Params.script_enabled": return protoreflect.ValueOfBool(false) case "initia.move.v1.Params.allowed_publishers": list := []string{} - return protoreflect.ValueOfList(&_Params_4_list{list: &list}) + return protoreflect.ValueOfList(&_Params_5_list{list: &list}) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: initia.move.v1.Params")) @@ -401,6 +422,10 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } + l = len(x.BaseMinGasPrice) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } l = len(x.ContractSharedRevenueRatio) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) @@ -449,7 +474,7 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], x.AllowedPublishers[iNdEx]) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AllowedPublishers[iNdEx]))) i-- - dAtA[i] = 0x22 + dAtA[i] = 0x2a } } if x.ScriptEnabled { @@ -460,13 +485,20 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { dAtA[i] = 0 } i-- - dAtA[i] = 0x18 + dAtA[i] = 0x20 } if len(x.ContractSharedRevenueRatio) > 0 { i -= len(x.ContractSharedRevenueRatio) copy(dAtA[i:], x.ContractSharedRevenueRatio) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ContractSharedRevenueRatio))) i-- + 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] = 0x12 } if len(x.BaseDenom) > 0 { @@ -558,6 +590,38 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { x.BaseDenom = 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 BaseMinGasPrice", 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.BaseMinGasPrice = 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 ContractSharedRevenueRatio", wireType) } @@ -589,7 +653,7 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { } x.ContractSharedRevenueRatio = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 4: if wireType != 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ScriptEnabled", wireType) } @@ -609,7 +673,7 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { } } x.ScriptEnabled = bool(v != 0) - case 4: + case 5: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AllowedPublishers", wireType) } @@ -679,6 +743,7 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { var ( md_RawParams protoreflect.MessageDescriptor fd_RawParams_base_denom protoreflect.FieldDescriptor + fd_RawParams_base_min_gas_price protoreflect.FieldDescriptor fd_RawParams_contract_shared_revenue_ratio protoreflect.FieldDescriptor fd_RawParams_script_enabled protoreflect.FieldDescriptor ) @@ -687,6 +752,7 @@ func init() { file_initia_move_v1_types_proto_init() md_RawParams = File_initia_move_v1_types_proto.Messages().ByName("RawParams") 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") fd_RawParams_script_enabled = md_RawParams.Fields().ByName("script_enabled") } @@ -762,6 +828,12 @@ func (x *fastReflection_RawParams) Range(f func(protoreflect.FieldDescriptor, pr return } } + if x.BaseMinGasPrice != "" { + value := protoreflect.ValueOfString(x.BaseMinGasPrice) + if !f(fd_RawParams_base_min_gas_price, value) { + return + } + } if x.ContractSharedRevenueRatio != "" { value := protoreflect.ValueOfString(x.ContractSharedRevenueRatio) if !f(fd_RawParams_contract_shared_revenue_ratio, value) { @@ -791,6 +863,8 @@ func (x *fastReflection_RawParams) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { case "initia.move.v1.RawParams.base_denom": return x.BaseDenom != "" + case "initia.move.v1.RawParams.base_min_gas_price": + return x.BaseMinGasPrice != "" case "initia.move.v1.RawParams.contract_shared_revenue_ratio": return x.ContractSharedRevenueRatio != "" case "initia.move.v1.RawParams.script_enabled": @@ -813,6 +887,8 @@ func (x *fastReflection_RawParams) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { case "initia.move.v1.RawParams.base_denom": x.BaseDenom = "" + case "initia.move.v1.RawParams.base_min_gas_price": + x.BaseMinGasPrice = "" case "initia.move.v1.RawParams.contract_shared_revenue_ratio": x.ContractSharedRevenueRatio = "" case "initia.move.v1.RawParams.script_enabled": @@ -836,6 +912,9 @@ func (x *fastReflection_RawParams) Get(descriptor protoreflect.FieldDescriptor) case "initia.move.v1.RawParams.base_denom": value := x.BaseDenom return protoreflect.ValueOfString(value) + case "initia.move.v1.RawParams.base_min_gas_price": + value := x.BaseMinGasPrice + return protoreflect.ValueOfString(value) case "initia.move.v1.RawParams.contract_shared_revenue_ratio": value := x.ContractSharedRevenueRatio return protoreflect.ValueOfString(value) @@ -864,6 +943,8 @@ func (x *fastReflection_RawParams) Set(fd protoreflect.FieldDescriptor, value pr switch fd.FullName() { case "initia.move.v1.RawParams.base_denom": x.BaseDenom = value.Interface().(string) + case "initia.move.v1.RawParams.base_min_gas_price": + x.BaseMinGasPrice = value.Interface().(string) case "initia.move.v1.RawParams.contract_shared_revenue_ratio": x.ContractSharedRevenueRatio = value.Interface().(string) case "initia.move.v1.RawParams.script_enabled": @@ -890,6 +971,8 @@ func (x *fastReflection_RawParams) Mutable(fd protoreflect.FieldDescriptor) prot switch fd.FullName() { 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": + panic(fmt.Errorf("field base_min_gas_price of message initia.move.v1.RawParams is not mutable")) case "initia.move.v1.RawParams.contract_shared_revenue_ratio": panic(fmt.Errorf("field contract_shared_revenue_ratio of message initia.move.v1.RawParams is not mutable")) case "initia.move.v1.RawParams.script_enabled": @@ -909,6 +992,8 @@ func (x *fastReflection_RawParams) NewField(fd protoreflect.FieldDescriptor) pro switch fd.FullName() { case "initia.move.v1.RawParams.base_denom": return protoreflect.ValueOfString("") + case "initia.move.v1.RawParams.base_min_gas_price": + return protoreflect.ValueOfString("") case "initia.move.v1.RawParams.contract_shared_revenue_ratio": return protoreflect.ValueOfString("") case "initia.move.v1.RawParams.script_enabled": @@ -986,6 +1071,10 @@ func (x *fastReflection_RawParams) ProtoMethods() *protoiface.Methods { if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } + l = len(x.BaseMinGasPrice) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } l = len(x.ContractSharedRevenueRatio) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) @@ -1030,13 +1119,20 @@ func (x *fastReflection_RawParams) ProtoMethods() *protoiface.Methods { dAtA[i] = 0 } i-- - dAtA[i] = 0x18 + dAtA[i] = 0x20 } if len(x.ContractSharedRevenueRatio) > 0 { i -= len(x.ContractSharedRevenueRatio) copy(dAtA[i:], x.ContractSharedRevenueRatio) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ContractSharedRevenueRatio))) i-- + 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] = 0x12 } if len(x.BaseDenom) > 0 { @@ -1128,6 +1224,38 @@ func (x *fastReflection_RawParams) ProtoMethods() *protoiface.Methods { x.BaseDenom = 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 BaseMinGasPrice", 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.BaseMinGasPrice = 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 ContractSharedRevenueRatio", wireType) } @@ -1159,7 +1287,7 @@ func (x *fastReflection_RawParams) ProtoMethods() *protoiface.Methods { } x.ContractSharedRevenueRatio = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 4: if wireType != 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ScriptEnabled", wireType) } @@ -5838,13 +5966,15 @@ type Params struct { unknownFields protoimpl.UnknownFields BaseDenom string `protobuf:"bytes,1,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty"` + // Deprecated: Do not use. + 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,2,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"` // flag whether to enable script execution - ScriptEnabled bool `protobuf:"varint,3,opt,name=script_enabled,json=scriptEnabled,proto3" json:"script_enabled,omitempty"` + ScriptEnabled bool `protobuf:"varint,4,opt,name=script_enabled,json=scriptEnabled,proto3" json:"script_enabled,omitempty"` // It is a list of addresses with permission to distribute contracts, // and an empty list is interpreted as allowing anyone to distribute. - AllowedPublishers []string `protobuf:"bytes,4,rep,name=allowed_publishers,json=allowedPublishers,proto3" json:"allowed_publishers,omitempty"` + AllowedPublishers []string `protobuf:"bytes,5,rep,name=allowed_publishers,json=allowedPublishers,proto3" json:"allowed_publishers,omitempty"` } func (x *Params) Reset() { @@ -5874,6 +6004,14 @@ func (x *Params) GetBaseDenom() string { return "" } +// Deprecated: Do not use. +func (x *Params) GetBaseMinGasPrice() string { + if x != nil { + return x.BaseMinGasPrice + } + return "" +} + func (x *Params) GetContractSharedRevenueRatio() string { if x != nil { return x.ContractSharedRevenueRatio @@ -5902,10 +6040,12 @@ type RawParams struct { unknownFields protoimpl.UnknownFields BaseDenom string `protobuf:"bytes,1,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty"` + // Deprecated: Do not use. + 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,2,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"` // flag whether to enable script execution - ScriptEnabled bool `protobuf:"varint,3,opt,name=script_enabled,json=scriptEnabled,proto3" json:"script_enabled,omitempty"` + ScriptEnabled bool `protobuf:"varint,4,opt,name=script_enabled,json=scriptEnabled,proto3" json:"script_enabled,omitempty"` } func (x *RawParams) Reset() { @@ -5935,6 +6075,14 @@ func (x *RawParams) GetBaseDenom() string { return "" } +// Deprecated: Do not use. +func (x *RawParams) GetBaseMinGasPrice() string { + if x != nil { + return x.BaseMinGasPrice + } + return "" +} + func (x *RawParams) GetContractSharedRevenueRatio() string { if x != nil { return x.ContractSharedRevenueRatio @@ -6393,121 +6541,135 @@ 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, 0xd1, 0x02, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc7, 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, - 0x93, 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, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x50, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, - 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, - 0x74, 0x68, 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 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, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x5f, - 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x73, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x51, 0x0a, 0x12, - 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, - 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x42, 0x22, 0xf2, 0xde, 0x1f, 0x19, 0x79, 0x61, - 0x6d, 0x6c, 0x3a, 0x22, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x70, 0x75, 0x62, 0x6c, - 0x69, 0x73, 0x68, 0x65, 0x72, 0x73, 0x22, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x11, 0x61, 0x6c, - 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x73, 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, 0xe7, 0x01, 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, 0x93, 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, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x50, - 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, - 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, - 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, 0x12, 0x25, 0x0a, 0x0e, - 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x45, 0x6e, 0x61, 0x62, - 0x6c, 0x65, 0x64, 0x22, 0xb8, 0x01, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 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, 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, 0x10, 0x0a, 0x03, 0x61, 0x62, 0x69, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x61, 0x62, 0x69, 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, 0x12, 0x44, 0x0a, 0x0e, 0x75, 0x70, 0x67, 0x72, - 0x61, 0x64, 0x65, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 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, 0x61, - 0x0a, 0x08, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, + 0x74, 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, 0x47, 0xc8, 0xde, 0x1f, + 0x00, 0xda, 0xde, 0x1f, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, + 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 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, 0x18, 0x01, 0x52, 0x0f, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x69, 0x6e, 0x47, 0x61, 0x73, + 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x93, 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, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x50, 0xc8, + 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, + 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 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, 0x12, 0x25, 0x0a, 0x0e, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x0d, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, + 0x65, 0x64, 0x12, 0x51, 0x0a, 0x12, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x70, 0x75, + 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x42, 0x22, + 0xf2, 0xde, 0x1f, 0x19, 0x79, 0x61, 0x6d, 0x6c, 0x3a, 0x22, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, + 0x64, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x73, 0x22, 0xa8, 0xe7, 0xb0, + 0x2a, 0x01, 0x52, 0x11, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x50, 0x75, 0x62, 0x6c, 0x69, + 0x73, 0x68, 0x65, 0x72, 0x73, 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, + 0xdd, 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, 0x74, 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, 0x47, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, + 0x1f, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, + 0x61, 0x74, 0x68, 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 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, 0x18, + 0x01, 0x52, 0x0f, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x69, 0x6e, 0x47, 0x61, 0x73, 0x50, 0x72, 0x69, + 0x63, 0x65, 0x12, 0x93, 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, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x50, 0xc8, 0xde, 0x1f, 0x00, + 0xda, 0xde, 0x1f, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, + 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 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, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x0d, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x22, + 0xb8, 0x01, 0x0a, 0x06, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 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, 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, + 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x62, 0x69, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x61, 0x62, 0x69, 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, 0x12, 0x44, 0x0a, 0x0e, 0x75, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x5f, + 0x70, 0x6f, 0x6c, 0x69, 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, 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, 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, + 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, 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 ( diff --git a/proto/initia/move/v1/types.proto b/proto/initia/move/v1/types.proto index 8450c18ef..f49c468b6 100644 --- a/proto/initia/move/v1/types.proto +++ b/proto/initia/move/v1/types.proto @@ -15,8 +15,16 @@ message Params { option (gogoproto.goproto_stringer) = false; string base_denom = 1; + string base_min_gas_price = 2 [ + (gogoproto.moretags) = "yaml:\"base_min_gas_price\"", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true, + deprecated = true + ]; + // CSR: Percentage of fees distributed to developers - string contract_shared_revenue_ratio = 2 [ + string contract_shared_revenue_ratio = 3 [ (gogoproto.moretags) = "yaml:\"contract_shared_revenue_ratio\"", (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", (gogoproto.nullable) = false, @@ -24,11 +32,11 @@ message Params { ]; // flag whether to enable script execution - bool script_enabled = 3; + bool script_enabled = 4; // It is a list of addresses with permission to distribute contracts, // and an empty list is interpreted as allowing anyone to distribute. - repeated string allowed_publishers = 4 [ + repeated string allowed_publishers = 5 [ (gogoproto.moretags) = "yaml:\"allowed_publishers\"", (amino.dont_omitempty) = true ]; @@ -37,9 +45,16 @@ message Params { // RawParams defines the raw params to store. message RawParams { string base_denom = 1; + string base_min_gas_price = 2 [ + (gogoproto.moretags) = "yaml:\"base_min_gas_price\"", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true, + deprecated = true + ]; // CSR: Percentage of fees distributed to developers - string contract_shared_revenue_ratio = 2 [ + string contract_shared_revenue_ratio = 3 [ (gogoproto.moretags) = "yaml:\"contract_shared_revenue_ratio\"", (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", (gogoproto.nullable) = false, @@ -47,7 +62,7 @@ message RawParams { ]; // flag whether to enable script execution - bool script_enabled = 3; + bool script_enabled = 4; } // Module is data for the uploaded contract move code @@ -121,4 +136,4 @@ message ExecuteAuthorizationItem { string module_name = 2; // FunctionName is the name of function to execute with wildcard '*' support repeated string function_names = 3 [(gogoproto.nullable) = true]; -} +} \ No newline at end of file diff --git a/x/move/types/params.go b/x/move/types/params.go index b5e465b91..06f45b6cc 100644 --- a/x/move/types/params.go +++ b/x/move/types/params.go @@ -19,6 +19,7 @@ const ( ) var ( + DefaultBaseMinGasPrice = math.LegacyZeroDec() DefaultContractSharedRevenueRatio = math.LegacyZeroDec() ) @@ -33,6 +34,7 @@ const ( func DefaultParams() Params { return Params{ BaseDenom: DefaultBaseDenom, + BaseMinGasPrice: DefaultBaseMinGasPrice, ContractSharedRevenueRatio: DefaultContractSharedRevenueRatio, ScriptEnabled: DefaultScriptEnabled, AllowedPublishers: nil, @@ -53,6 +55,10 @@ func (p Params) Validate(ac address.Codec) error { return errors.Wrap(err, "invalid base_denom") } + if err := validateBaseMinGasPrice(p.BaseMinGasPrice); err != nil { + return errors.Wrap(err, "invalid base_min_gas_price") + } + if err := validateContractSharedRatio(p.ContractSharedRevenueRatio); err != nil { return errors.Wrap(err, "invalid shared_revenue_ratio") } @@ -68,6 +74,7 @@ func (p Params) Validate(ac address.Codec) error { func (p Params) ToRaw() RawParams { return RawParams{ BaseDenom: p.BaseDenom, + BaseMinGasPrice: p.BaseMinGasPrice, ContractSharedRevenueRatio: p.ContractSharedRevenueRatio, ScriptEnabled: p.ScriptEnabled, } @@ -77,6 +84,7 @@ func (p Params) ToRaw() RawParams { func (p RawParams) ToParams(allowedPublishers []string) Params { return Params{ BaseDenom: p.BaseDenom, + BaseMinGasPrice: p.BaseMinGasPrice, ContractSharedRevenueRatio: p.ContractSharedRevenueRatio, AllowedPublishers: allowedPublishers, ScriptEnabled: p.ScriptEnabled, @@ -96,6 +104,19 @@ func validateBaseDenom(i interface{}) error { return nil } +func validateBaseMinGasPrice(i interface{}) error { + v, ok := i.(math.LegacyDec) + if !ok { + return fmt.Errorf("invalid parameter type: %T", i) + } + + if v.IsNegative() { + return fmt.Errorf("base_min_gas_price must be non-negative value: %v", v) + } + + return nil +} + func validateContractSharedRatio(i interface{}) error { v, ok := i.(math.LegacyDec) if !ok { diff --git a/x/move/types/params_test.go b/x/move/types/params_test.go index f9e3a0c5a..6675c633d 100644 --- a/x/move/types/params_test.go +++ b/x/move/types/params_test.go @@ -24,9 +24,14 @@ func TestParams(t *testing.T) { require.Error(t, err) p3 := DefaultParams() - p3.AllowedPublishers = []string{"abc"} + p3.BaseMinGasPrice = math.LegacyOneDec().Neg() err = p3.Validate(ac) require.Error(t, err) + + p4 := DefaultParams() + p4.AllowedPublishers = []string{"abc"} + err = p4.Validate(ac) + require.Error(t, err) } func TestRawParams(t *testing.T) { diff --git a/x/move/types/types.pb.go b/x/move/types/types.pb.go index b5e012567..3183dc804 100644 --- a/x/move/types/types.pb.go +++ b/x/move/types/types.pb.go @@ -61,14 +61,15 @@ func (UpgradePolicy) EnumDescriptor() ([]byte, []int) { // Params defines the set of move parameters. type Params struct { - BaseDenom string `protobuf:"bytes,1,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty"` + BaseDenom string `protobuf:"bytes,1,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty"` + BaseMinGasPrice cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=base_min_gas_price,json=baseMinGasPrice,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"base_min_gas_price" yaml:"base_min_gas_price"` // Deprecated: Do not use. // CSR: Percentage of fees distributed to developers - ContractSharedRevenueRatio cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=contract_shared_revenue_ratio,json=contractSharedRevenueRatio,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"contract_shared_revenue_ratio" yaml:"contract_shared_revenue_ratio"` + ContractSharedRevenueRatio cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,opt,name=contract_shared_revenue_ratio,json=contractSharedRevenueRatio,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"contract_shared_revenue_ratio" yaml:"contract_shared_revenue_ratio"` // flag whether to enable script execution - ScriptEnabled bool `protobuf:"varint,3,opt,name=script_enabled,json=scriptEnabled,proto3" json:"script_enabled,omitempty"` + ScriptEnabled bool `protobuf:"varint,4,opt,name=script_enabled,json=scriptEnabled,proto3" json:"script_enabled,omitempty"` // It is a list of addresses with permission to distribute contracts, // and an empty list is interpreted as allowing anyone to distribute. - AllowedPublishers []string `protobuf:"bytes,4,rep,name=allowed_publishers,json=allowedPublishers,proto3" json:"allowed_publishers,omitempty" yaml:"allowed_publishers"` + AllowedPublishers []string `protobuf:"bytes,5,rep,name=allowed_publishers,json=allowedPublishers,proto3" json:"allowed_publishers,omitempty" yaml:"allowed_publishers"` } func (m *Params) Reset() { *m = Params{} } @@ -105,11 +106,12 @@ var xxx_messageInfo_Params proto.InternalMessageInfo // RawParams defines the raw params to store. type RawParams struct { - BaseDenom string `protobuf:"bytes,1,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty"` + BaseDenom string `protobuf:"bytes,1,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty"` + BaseMinGasPrice cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=base_min_gas_price,json=baseMinGasPrice,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"base_min_gas_price" yaml:"base_min_gas_price"` // Deprecated: Do not use. // CSR: Percentage of fees distributed to developers - ContractSharedRevenueRatio cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=contract_shared_revenue_ratio,json=contractSharedRevenueRatio,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"contract_shared_revenue_ratio" yaml:"contract_shared_revenue_ratio"` + ContractSharedRevenueRatio cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,opt,name=contract_shared_revenue_ratio,json=contractSharedRevenueRatio,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"contract_shared_revenue_ratio" yaml:"contract_shared_revenue_ratio"` // flag whether to enable script execution - ScriptEnabled bool `protobuf:"varint,3,opt,name=script_enabled,json=scriptEnabled,proto3" json:"script_enabled,omitempty"` + ScriptEnabled bool `protobuf:"varint,4,opt,name=script_enabled,json=scriptEnabled,proto3" json:"script_enabled,omitempty"` } func (m *RawParams) Reset() { *m = RawParams{} } @@ -488,61 +490,64 @@ func init() { func init() { proto.RegisterFile("initia/move/v1/types.proto", fileDescriptor_5ab4b0783858a3a5) } var fileDescriptor_5ab4b0783858a3a5 = []byte{ - // 860 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x55, 0x31, 0x6f, 0x23, 0x45, - 0x14, 0xf6, 0xc4, 0x97, 0xc4, 0xfb, 0x1c, 0x9b, 0xdc, 0xea,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, 0x7e, 0xaf, 0x7b, 0x58, 0x30, 0xab, 0x00, 0x67, 0x5f, 0x0d, 0x47, 0xa7, 0xe3, - 0x7e, 0x67, 0xd0, 0x3b, 0x44, 0x66, 0x05, 0x8c, 0xfe, 0x70, 0x78, 0x3e, 0x3e, 0x95, 0xee, 0x4e, - 0x67, 0x70, 0xf5, 0x57, 0xa3, 0xf0, 0x6a, 0xd5, 0x40, 0x57, 0xab, 0x06, 0x7a, 0xb3, 0x6a, 0xa0, - 0x3f, 0x57, 0x0d, 0xf4, 0xd3, 0x75, 0xa3, 0xf0, 0xe6, 0xba, 0x51, 0xf8, 0xfd, 0xba, 0x51, 0xf8, - 0xfa, 0x64, 0x1a, 0x88, 0x59, 0x3a, 0x69, 0x79, 0x34, 0x6a, 0xeb, 0x45, 0x7c, 0x1c, 0xe2, 0x09, - 0xcf, 0xed, 0xf6, 0xa5, 0x7e, 0xe6, 0xd4, 0x1b, 0x37, 0xd9, 0x53, 0x6f, 0xd5, 0xa7, 0xff, 0x04, - 0x00, 0x00, 0xff, 0xff, 0x40, 0x31, 0x9d, 0x3e, 0x02, 0x07, 0x00, 0x00, + // 898 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x55, 0x41, 0x6f, 0x1b, 0x45, + 0x14, 0xf6, 0xc6, 0x4d, 0x62, 0x3f, 0xc7, 0x6e, 0x3a, 0xea, 0x61, 0xeb, 0x2a, 0x76, 0xb4, 0x80, + 0x14, 0x05, 0x61, 0xab, 0x20, 0x2e, 0xbd, 0xa0, 0x38, 0x36, 0x95, 0x85, 0x5d, 0xb6, 0x5b, 0xe7, + 0xc2, 0x65, 0x35, 0xde, 0x9d, 0xda, 0x2b, 0xef, 0xee, 0x2c, 0x33, 0xb3, 0x4e, 0x96, 0x3b, 0x17, + 0x84, 0x04, 0x12, 0x17, 0x8e, 0x3d, 0xf6, 0xd8, 0x23, 0xff, 0x80, 0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x64, 0xd4, 0xef, 0x0c, 0x7a, 0xfb, 0x06, 0xaa, 0x42, 0xb9, 0x3f, 0x1c, + 0x9e, 0x8d, 0x4e, 0x64, 0xb8, 0xd5, 0x19, 0x5c, 0xfe, 0xd1, 0x28, 0xbc, 0x58, 0x36, 0x8c, 0xcb, + 0x65, 0xc3, 0x78, 0xb5, 0x6c, 0x18, 0xbf, 0x2f, 0x1b, 0xc6, 0xf7, 0x57, 0x8d, 0xc2, 0xab, 0xab, + 0x46, 0xe1, 0x97, 0xab, 0x46, 0xe1, 0x8b, 0xe3, 0x49, 0x20, 0xa6, 0xe9, 0xb8, 0xe5, 0xd1, 0xa8, + 0xad, 0x07, 0xf1, 0x41, 0x88, 0xc7, 0x3c, 0x5f, 0xb7, 0x2f, 0xf4, 0x93, 0xae, 0xde, 0xf3, 0xf1, + 0x8e, 0x7a, 0x97, 0x3f, 0xfa, 0x3b, 0x00, 0x00, 0xff, 0xff, 0x47, 0x17, 0xda, 0xa8, 0xee, 0x07, + 0x00, 0x00, } func (this *Params) Equal(that interface{}) bool { @@ -567,6 +572,9 @@ func (this *Params) Equal(that interface{}) bool { if this.BaseDenom != that1.BaseDenom { return false } + if !this.BaseMinGasPrice.Equal(that1.BaseMinGasPrice) { + return false + } if !this.ContractSharedRevenueRatio.Equal(that1.ContractSharedRevenueRatio) { return false } @@ -605,6 +613,9 @@ func (this *RawParams) Equal(that interface{}) bool { if this.BaseDenom != that1.BaseDenom { return false } + if !this.BaseMinGasPrice.Equal(that1.BaseMinGasPrice) { + return false + } if !this.ContractSharedRevenueRatio.Equal(that1.ContractSharedRevenueRatio) { return false } @@ -890,7 +901,7 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { copy(dAtA[i:], m.AllowedPublishers[iNdEx]) i = encodeVarintTypes(dAtA, i, uint64(len(m.AllowedPublishers[iNdEx]))) i-- - dAtA[i] = 0x22 + dAtA[i] = 0x2a } } if m.ScriptEnabled { @@ -901,7 +912,7 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0 } i-- - dAtA[i] = 0x18 + dAtA[i] = 0x20 } { size := m.ContractSharedRevenueRatio.Size() @@ -912,6 +923,16 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintTypes(dAtA, i, uint64(size)) } i-- + dAtA[i] = 0x1a + { + size := m.BaseMinGasPrice.Size() + i -= size + if _, err := m.BaseMinGasPrice.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTypes(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x12 if len(m.BaseDenom) > 0 { i -= len(m.BaseDenom) @@ -951,7 +972,7 @@ func (m *RawParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0 } i-- - dAtA[i] = 0x18 + dAtA[i] = 0x20 } { size := m.ContractSharedRevenueRatio.Size() @@ -962,6 +983,16 @@ func (m *RawParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintTypes(dAtA, i, uint64(size)) } i-- + dAtA[i] = 0x1a + { + size := m.BaseMinGasPrice.Size() + i -= size + if _, err := m.BaseMinGasPrice.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTypes(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x12 if len(m.BaseDenom) > 0 { i -= len(m.BaseDenom) @@ -1358,6 +1389,8 @@ func (m *Params) Size() (n int) { if l > 0 { n += 1 + l + sovTypes(uint64(l)) } + l = m.BaseMinGasPrice.Size() + n += 1 + l + sovTypes(uint64(l)) l = m.ContractSharedRevenueRatio.Size() n += 1 + l + sovTypes(uint64(l)) if m.ScriptEnabled { @@ -1382,6 +1415,8 @@ func (m *RawParams) Size() (n int) { if l > 0 { n += 1 + l + sovTypes(uint64(l)) } + l = m.BaseMinGasPrice.Size() + n += 1 + l + sovTypes(uint64(l)) l = m.ContractSharedRevenueRatio.Size() n += 1 + l + sovTypes(uint64(l)) if m.ScriptEnabled { @@ -1634,6 +1669,40 @@ func (m *Params) Unmarshal(dAtA []byte) error { m.BaseDenom = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BaseMinGasPrice", 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 + } + if err := m.BaseMinGasPrice.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ContractSharedRevenueRatio", wireType) } @@ -1667,7 +1736,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 3: + case 4: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field ScriptEnabled", wireType) } @@ -1687,7 +1756,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { } } m.ScriptEnabled = bool(v != 0) - case 4: + case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AllowedPublishers", wireType) } @@ -1802,6 +1871,40 @@ func (m *RawParams) Unmarshal(dAtA []byte) error { m.BaseDenom = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BaseMinGasPrice", 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 + } + if err := m.BaseMinGasPrice.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ContractSharedRevenueRatio", wireType) } @@ -1835,7 +1938,7 @@ func (m *RawParams) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 3: + case 4: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field ScriptEnabled", wireType) } From f45197037b1f82c8349c138c088864ab7e4e9e0a Mon Sep 17 00:00:00 2001 From: beer-1 Date: Wed, 26 Mar 2025 18:21:44 +0900 Subject: [PATCH 13/14] change to use accumulated gas limit instead of block gas used --- app/ante/ante.go | 2 +- app/keepers/keepers.go | 1 + app/keepers/keys.go | 2 +- x/dynamic-fee/ante/fee_test.go | 4 ++ x/dynamic-fee/ante/gas_prices.go | 33 +++++++++++--- x/dynamic-fee/ante/gas_prices_test.go | 22 ++++++++- x/dynamic-fee/keeper/common_test.go | 5 +++ x/dynamic-fee/keeper/gas_price.go | 17 +++++-- x/dynamic-fee/keeper/keeper.go | 65 ++++++++++++++++++++++----- x/dynamic-fee/keeper/keeper_test.go | 26 ++++++++--- x/dynamic-fee/types/ante.go | 1 + x/dynamic-fee/types/keys.go | 7 ++- x/dynamic-fee/types/params.go | 2 +- 13 files changed, 155 insertions(+), 32 deletions(-) diff --git a/app/ante/ante.go b/app/ante/ante.go index 81e02779d..286c450d7 100644 --- a/app/ante/ante.go +++ b/app/ante/ante.go @@ -79,7 +79,7 @@ func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error) { accnum.NewAccountNumberDecorator(options.AccountKeeper), ante.NewSetUpContextDecorator(), // outermost AnteDecorator. SetUpContext must be called first ante.NewExtensionOptionsDecorator(options.ExtensionOptionChecker), - dynamicfeeante.NewGasPricesDecorator(), + dynamicfeeante.NewGasPricesDecorator(options.DynamicFeeKeeper), ante.NewValidateBasicDecorator(), ante.NewTxTimeoutHeightDecorator(), ante.NewValidateMemoDecorator(options.AccountKeeper), diff --git a/app/keepers/keepers.go b/app/keepers/keepers.go index 4b9387896..cf41cd0dc 100644 --- a/app/keepers/keepers.go +++ b/app/keepers/keepers.go @@ -325,6 +325,7 @@ func NewAppKeeper( dynamicFeeKeeper := dynamicfeekeeper.NewKeeper( appCodec, runtime.NewKVStoreService(appKeepers.keys[dynamicfeetypes.StoreKey]), + runtime.NewTransientStoreService(appKeepers.tkeys[dynamicfeetypes.TStoreKey]), movekeeper.NewDexKeeper(appKeepers.MoveKeeper), appKeepers.MoveKeeper, appKeepers.MoveKeeper, diff --git a/app/keepers/keys.go b/app/keepers/keys.go index 5ea17acc9..db6ea7efb 100644 --- a/app/keepers/keys.go +++ b/app/keepers/keys.go @@ -65,7 +65,7 @@ func (appKeepers *AppKeepers) GenerateKeys() { ) // Define transient store keys - appKeepers.tkeys = storetypes.NewTransientStoreKeys(forwardingtypes.TransientStoreKey) + appKeepers.tkeys = storetypes.NewTransientStoreKeys(forwardingtypes.TransientStoreKey, dynamicfeetypes.TStoreKey) // MemKeys are for information that is stored only in RAM. appKeepers.memKeys = storetypes.NewMemoryStoreKeys(capabilitytypes.MemStoreKey) diff --git a/x/dynamic-fee/ante/fee_test.go b/x/dynamic-fee/ante/fee_test.go index a4ccbceab..1a590f8cd 100644 --- a/x/dynamic-fee/ante/fee_test.go +++ b/x/dynamic-fee/ante/fee_test.go @@ -50,6 +50,10 @@ func (k TestAnteKeeper) BaseGasPrice(ctx context.Context) (math.LegacyDec, error return k.baseGasPrice, nil } +func (k TestAnteKeeper) AccumulateGas(ctx context.Context, gas uint64) error { + return nil +} + func (suite *AnteTestSuite) TestEnsureMempoolFees() { suite.SetupTest() // setup suite.txBuilder = suite.clientCtx.TxConfig.NewTxBuilder() diff --git a/x/dynamic-fee/ante/gas_prices.go b/x/dynamic-fee/ante/gas_prices.go index 8affb5c6d..2d4f2cbd1 100644 --- a/x/dynamic-fee/ante/gas_prices.go +++ b/x/dynamic-fee/ante/gas_prices.go @@ -1,22 +1,35 @@ package ante import ( + "context" + "cosmossdk.io/errors" "cosmossdk.io/math" + storetypes "cosmossdk.io/store/types" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) -// GasPricesDecorator ante decorator to set simulation flag to a context -type GasPricesDecorator struct{} +// custom block gas meter to accumulate gas limit not consumed +type BlockGasMeter interface { + AccumulateGas(ctx context.Context, gas uint64) error +} + +// GasPricesDecorator ante decorator to set gas prices to a context +// and accumulate gas used in the block +type GasPricesDecorator struct { + blockGasMeter BlockGasMeter +} // NewGasPricesDecorator constructor of the GasPricesDecorator -func NewGasPricesDecorator() *GasPricesDecorator { - return &GasPricesDecorator{} +func NewGasPricesDecorator(blockGasMeter BlockGasMeter) *GasPricesDecorator { + return &GasPricesDecorator{ + blockGasMeter: blockGasMeter, + } } -// AnteHandle that store gas prices to a context to let the move keeper know tx gas prices. +// AnteHandle that store gas prices to a context and accumulate gas used in the block func (d GasPricesDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error) { feeTx, ok := tx.(sdk.FeeTx) if !ok { @@ -31,10 +44,18 @@ func (d GasPricesDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool return ctx, errors.Wrap(sdkerrors.ErrOutOfGas, "Transaction gas cannot be zero.") } - // CSR: store a tx gas prices + // store a tx gas prices ctx = ctx.WithValue(GasPricesContextKey, sdk.NewDecCoinsFromCoins(feeCoins...).QuoDecTruncate(math.LegacyNewDec(int64(gas)))) } + // record the gas amount to the block gas meter + // NOTE: use infinite gas meter to avoid gas charge for chain operation + if !simulate && !ctx.IsCheckTx() { + if err := d.blockGasMeter.AccumulateGas(ctx.WithGasMeter(storetypes.NewInfiniteGasMeter()), gas); err != nil { + return ctx, err + } + } + if next != nil { return next(ctx, tx, simulate) } diff --git a/x/dynamic-fee/ante/gas_prices_test.go b/x/dynamic-fee/ante/gas_prices_test.go index 709e2ee57..5f1a6fa43 100644 --- a/x/dynamic-fee/ante/gas_prices_test.go +++ b/x/dynamic-fee/ante/gas_prices_test.go @@ -1,6 +1,8 @@ package ante_test import ( + "context" + "cosmossdk.io/math" "github.com/initia-labs/initia/x/dynamic-fee/ante" @@ -9,6 +11,15 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" ) +type TestBlockGasMeter struct { + gasUsed uint64 +} + +func (t *TestBlockGasMeter) AccumulateGas(ctx context.Context, gas uint64) error { + t.gasUsed += gas + return nil +} + func (suite *AnteTestSuite) TestGasPricesDecorator() { suite.SetupTest() // setup suite.txBuilder = suite.clientCtx.TxConfig.NewTxBuilder() @@ -25,15 +36,22 @@ func (suite *AnteTestSuite) TestGasPricesDecorator() { tx, err := suite.CreateTestTx(privs, accNums, accSeqs, suite.ctx.ChainID()) suite.Require().NoError(err) - decorator := ante.NewGasPricesDecorator() + blockGasMeter := &TestBlockGasMeter{} + decorator := ante.NewGasPricesDecorator(blockGasMeter) // in normal mode - ctx, err := decorator.AnteHandle(suite.ctx, tx, false, nil) + ctx, err := decorator.AnteHandle(suite.ctx.WithIsCheckTx(false), tx, false, nil) suite.Require().NoError(err) suite.Require().Equal(sdk.NewDecCoinsFromCoins(feeAmount...).QuoDec(math.LegacyNewDec(int64(gasLimit))), ctx.Value(ante.GasPricesContextKey).(sdk.DecCoins)) + // incremented in normal mode + suite.Require().Equal(gasLimit, blockGasMeter.gasUsed) + // in simulation mode ctx, err = decorator.AnteHandle(suite.ctx, tx, true, nil) suite.Require().NoError(err) suite.Require().Nil(ctx.Value(ante.GasPricesContextKey)) + + // not incremented in simulation mode + suite.Require().Equal(gasLimit, blockGasMeter.gasUsed) } diff --git a/x/dynamic-fee/keeper/common_test.go b/x/dynamic-fee/keeper/common_test.go index a182c58de..a07b9c14c 100644 --- a/x/dynamic-fee/keeper/common_test.go +++ b/x/dynamic-fee/keeper/common_test.go @@ -282,10 +282,14 @@ func _createTestInput( govtypes.StoreKey, authzkeeper.StoreKey, movetypes.StoreKey, oracletypes.StoreKey, dynamicfeetypes.StoreKey, ) + transientKeys := storetypes.NewTransientStoreKeys(dynamicfeetypes.TStoreKey) ms := store.NewCommitMultiStore(db, log.NewNopLogger(), metrics.NewNoOpMetrics()) for _, v := range keys { ms.MountStoreWithDB(v, storetypes.StoreTypeIAVL, db) } + for _, v := range transientKeys { + ms.MountStoreWithDB(v, storetypes.StoreTypeTransient, db) + } memKeys := storetypes.NewMemoryStoreKeys() for _, v := range memKeys { ms.MountStoreWithDB(v, storetypes.StoreTypeMemory, db) @@ -426,6 +430,7 @@ func _createTestInput( dynamicFeeKeeper := dynamicfeekeeper.NewKeeper( appCodec, runtime.NewKVStoreService(keys[dynamicfeetypes.StoreKey]), + runtime.NewTransientStoreService(transientKeys[dynamicfeetypes.TStoreKey]), movekeeper.NewDexKeeper(moveKeeper), moveKeeper, moveKeeper, diff --git a/x/dynamic-fee/keeper/gas_price.go b/x/dynamic-fee/keeper/gas_price.go index 224222137..fd62f7a65 100644 --- a/x/dynamic-fee/keeper/gas_price.go +++ b/x/dynamic-fee/keeper/gas_price.go @@ -19,8 +19,8 @@ func (k Keeper) GasPrices( if err != nil { return nil, err } - baseGasPrice := params.BaseGasPrice + baseGasPrice := params.BaseGasPrice baseDenom, err := k.baseDenomKeeper.BaseDenom(ctx) if err != nil { return nil, err @@ -44,6 +44,7 @@ func (k Keeper) GasPrices( gasPrice := baseGasPrice.Quo(baseSpotPrice) gasPrices = gasPrices.Add(sdk.NewDecCoinFromDec(denom, gasPrice)) } + return gasPrices, nil } @@ -56,13 +57,23 @@ func (k Keeper) GasPrice( if err != nil { return sdk.DecCoin{}, err } + baseGasPrice := params.BaseGasPrice + baseDenom, err := k.baseDenomKeeper.BaseDenom(ctx) + if err != nil { + return sdk.DecCoin{}, err + } + // if denom is base denom, return base gas price + if denom == baseDenom { + return sdk.NewDecCoinFromDec(baseDenom, baseGasPrice), nil + } + + // if denom is not base denom, get base spot price baseSpotPrice, err := k.tokenPriceKeeper.GetBaseSpotPrice(ctx, denom) if err != nil { return sdk.DecCoin{}, err - } - if baseSpotPrice.IsZero() { + } else if baseSpotPrice.IsZero() { return sdk.DecCoin{}, fmt.Errorf("baseSpotPrice is zero: %s", denom) } diff --git a/x/dynamic-fee/keeper/keeper.go b/x/dynamic-fee/keeper/keeper.go index b7d693bda..42b8e91f4 100644 --- a/x/dynamic-fee/keeper/keeper.go +++ b/x/dynamic-fee/keeper/keeper.go @@ -2,6 +2,7 @@ package keeper import ( "context" + "errors" "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" @@ -14,12 +15,15 @@ import ( ) type Keeper struct { - cdc codec.Codec - storeService corestoretypes.KVStoreService + cdc codec.Codec + storeService corestoretypes.KVStoreService + transientService corestoretypes.TransientStoreService - Schema collections.Schema + Schema collections.Schema + TransientSchema collections.Schema - Params collections.Item[types.Params] + Params collections.Item[types.Params] + AccumulatedGas collections.Item[uint64] tokenPriceKeeper types.TokenPriceKeeper whitelistKeeper types.WhitelistKeeper @@ -32,6 +36,7 @@ type Keeper struct { func NewKeeper( cdc codec.Codec, storeService corestoretypes.KVStoreService, + transientService corestoretypes.TransientStoreService, tokenPriceKeeper types.TokenPriceKeeper, whitelistKeeper types.WhitelistKeeper, baseDenomKeeper types.BaseDenomKeeper, @@ -39,11 +44,14 @@ func NewKeeper( authority string, ) *Keeper { sb := collections.NewSchemaBuilder(storeService) + tsb := collections.NewSchemaBuilderFromAccessor(transientService.OpenTransientStore) k := &Keeper{ - cdc: cdc, - storeService: storeService, + cdc: cdc, + storeService: storeService, + transientService: transientService, - Params: collections.NewItem(sb, types.ParamsKey, "params", codec.CollValue[types.Params](cdc)), + Params: collections.NewItem(sb, types.ParamsKey, "params", codec.CollValue[types.Params](cdc)), + AccumulatedGas: collections.NewItem(tsb, types.AccumulatedGasKey, "accumulated_gas", collections.Uint64Value), tokenPriceKeeper: tokenPriceKeeper, whitelistKeeper: whitelistKeeper, @@ -57,6 +65,12 @@ func NewKeeper( } k.Schema = schema + tSchema, err := tsb.Build() + if err != nil { + panic(err) + } + k.TransientSchema = tSchema + return k } @@ -103,10 +117,18 @@ func (k Keeper) UpdateBaseGasPrice(ctx sdk.Context) error { return types.ErrTargetGasZero } - gasUsed := ctx.BlockGasMeter().GasConsumed() + accumulatedGas, err := k.GetAccumulatedGas(ctx) + if errors.Is(err, collections.ErrNotFound) { + accumulatedGas = 0 + } else if err != nil { + return err + } - // baseFeeMultiplier = (gasUsed - targetGas) / targetGas * maxChangeRate + 1 - baseFeeMultiplier := math.LegacyNewDec(int64(gasUsed) - params.TargetGas).QuoInt64(params.TargetGas).Mul(params.MaxChangeRate).Add(math.OneInt().ToLegacyDec()) + // baseFeeMultiplier = (accumulatedGas - targetGas) / targetGas * maxChangeRate + 1 + baseFeeMultiplier := math.LegacyNewDec(int64(accumulatedGas) - params.TargetGas). + QuoInt64(params.TargetGas). + Mul(params.MaxChangeRate). + Add(math.LegacyOneDec()) newBaseGasPrice := params.BaseGasPrice.Mul(baseFeeMultiplier) if newBaseGasPrice.LT(params.MinBaseGasPrice) { newBaseGasPrice = params.MinBaseGasPrice @@ -118,3 +140,26 @@ func (k Keeper) UpdateBaseGasPrice(ctx sdk.Context) error { params.BaseGasPrice = newBaseGasPrice return k.SetParams(ctx, params) } + +// AccumulateGas accumulates the gas used in the block +func (k Keeper) AccumulateGas(ctx context.Context, gas uint64) error { + accumulatedGas, err := k.AccumulatedGas.Get(ctx) + if errors.Is(err, collections.ErrNotFound) { + accumulatedGas = 0 + } else if err != nil { + return err + } + + accumulatedGas += gas + return k.AccumulatedGas.Set(ctx, accumulatedGas) +} + +// GetAccumulatedGas returns the accumulated gas +func (k Keeper) GetAccumulatedGas(ctx context.Context) (uint64, error) { + return k.AccumulatedGas.Get(ctx) +} + +// ResetAccumulatedGas resets the accumulated gas for testing +func (k Keeper) ResetAccumulatedGas(ctx context.Context) error { + return k.AccumulatedGas.Remove(ctx) +} diff --git a/x/dynamic-fee/keeper/keeper_test.go b/x/dynamic-fee/keeper/keeper_test.go index 62bfd00a7..2b757a6e2 100644 --- a/x/dynamic-fee/keeper/keeper_test.go +++ b/x/dynamic-fee/keeper/keeper_test.go @@ -4,7 +4,6 @@ import ( "testing" "cosmossdk.io/math" - storetypes "cosmossdk.io/store/types" "github.com/stretchr/testify/require" "github.com/initia-labs/initia/x/dynamic-fee/types" @@ -25,8 +24,8 @@ func Test_UpdateBaseFee(t *testing.T) { baseGasPrice, err := input.DynamicFeeKeeper.BaseGasPrice(ctx) require.Equal(t, math.LegacyNewDecWithPrec(1, 2), baseGasPrice) - ctx = ctx.WithBlockGasMeter(storetypes.NewInfiniteGasMeter()) - ctx.BlockGasMeter().ConsumeGas(100000, "test") + // accumulate gas + input.DynamicFeeKeeper.AccumulateGas(ctx, 100000) // update base fee err = input.DynamicFeeKeeper.UpdateBaseGasPrice(ctx) @@ -35,8 +34,9 @@ func Test_UpdateBaseFee(t *testing.T) { baseGasPrice, err = input.DynamicFeeKeeper.BaseGasPrice(ctx) require.Equal(t, math.LegacyNewDecWithPrec(1, 2), baseGasPrice) - ctx = ctx.WithBlockGasMeter(storetypes.NewInfiniteGasMeter()) - ctx.BlockGasMeter().ConsumeGas(200000, "test") + // accumulate gas + input.DynamicFeeKeeper.ResetAccumulatedGas(ctx) + input.DynamicFeeKeeper.AccumulateGas(ctx, 200000) // update base fee err = input.DynamicFeeKeeper.UpdateBaseGasPrice(ctx) @@ -45,8 +45,8 @@ func Test_UpdateBaseFee(t *testing.T) { baseGasPrice, err = input.DynamicFeeKeeper.BaseGasPrice(ctx) require.Equal(t, math.LegacyNewDecWithPrec(11, 3), baseGasPrice) - ctx = ctx.WithBlockGasMeter(storetypes.NewInfiniteGasMeter()) - ctx.BlockGasMeter().ConsumeGas(0, "test") + // consume gas + input.DynamicFeeKeeper.ResetAccumulatedGas(ctx) // update base fee err = input.DynamicFeeKeeper.UpdateBaseGasPrice(ctx) @@ -55,3 +55,15 @@ func Test_UpdateBaseFee(t *testing.T) { baseGasPrice, err = input.DynamicFeeKeeper.BaseGasPrice(ctx) require.Equal(t, math.LegacyNewDecWithPrec(99, 4), baseGasPrice) } + +func Test_AccumulateGas(t *testing.T) { + ctx, input := createDefaultTestInput(t) + + gasLimit := uint64(100000) + err := input.DynamicFeeKeeper.AccumulateGas(ctx, gasLimit) + require.NoError(t, err) + + accumulatedGas, err := input.DynamicFeeKeeper.GetAccumulatedGas(ctx) + require.NoError(t, err) + require.Equal(t, gasLimit, accumulatedGas) +} diff --git a/x/dynamic-fee/types/ante.go b/x/dynamic-fee/types/ante.go index a8a3550ff..c694f6462 100644 --- a/x/dynamic-fee/types/ante.go +++ b/x/dynamic-fee/types/ante.go @@ -10,4 +10,5 @@ type AnteKeeper interface { GetBaseSpotPrice(ctx context.Context, denomQuote string) (math.LegacyDec, error) BaseDenom(ctx context.Context) (string, error) BaseGasPrice(ctx context.Context) (math.LegacyDec, error) + AccumulateGas(ctx context.Context, gas uint64) error } diff --git a/x/dynamic-fee/types/keys.go b/x/dynamic-fee/types/keys.go index 8d149c019..89afd81c7 100644 --- a/x/dynamic-fee/types/keys.go +++ b/x/dynamic-fee/types/keys.go @@ -20,5 +20,10 @@ const ( // Keys for dynamic fee store // Items are stored with the following key: values var ( - ParamsKey = []byte{0x11} // prefix for parameters for module x/dynamicfee + ParamsKey = []byte{0x11} // key for parameters for module x/dynamicfee +) + +// Transient store keys +var ( + AccumulatedGasKey = []byte{0x21} // key for accumulated gas for module x/dynamicfee ) diff --git a/x/dynamic-fee/types/params.go b/x/dynamic-fee/types/params.go index fc31db424..740f6e6b5 100644 --- a/x/dynamic-fee/types/params.go +++ b/x/dynamic-fee/types/params.go @@ -8,7 +8,7 @@ import ( var ( DefaultBaseGasPrice = math.LegacyNewDecWithPrec(15, 3) // 0.015 - DefaultMinBaseGasPrice = math.LegacyNewDecWithPrec(1, 3) // 0.001 + DefaultMinBaseGasPrice = math.LegacyNewDecWithPrec(15, 3) // 0.015 DefaultMaxBaseGasPrice = math.LegacyNewDec(10) // 10 // 200_000_000 * 0.5 From 87c3dcb30816c964123e19f72583d973d22913f0 Mon Sep 17 00:00:00 2001 From: beer-1 Date: Wed, 26 Mar 2025 21:21:01 +0900 Subject: [PATCH 14/14] rollback gas prices decorater to x/move and create a new block gas decorator in x/dynamicfee --- app/ante/ante.go | 4 +- x/dynamic-fee/ante/block_gas.go | 52 +++++++ x/dynamic-fee/ante/block_gas_test.go | 62 ++++++++ x/move/ante/ante_test.go | 134 ++++++++++++++++++ x/{dynamic-fee => move}/ante/context_keys.go | 0 x/{dynamic-fee => move}/ante/gas_prices.go | 29 +--- .../ante/gas_prices_test.go | 15 +- x/move/keeper/handler.go | 2 +- x/move/keeper/handler_test.go | 2 +- 9 files changed, 263 insertions(+), 37 deletions(-) create mode 100644 x/dynamic-fee/ante/block_gas.go create mode 100644 x/dynamic-fee/ante/block_gas_test.go create mode 100644 x/move/ante/ante_test.go rename x/{dynamic-fee => move}/ante/context_keys.go (100%) rename x/{dynamic-fee => move}/ante/gas_prices.go (53%) rename x/{dynamic-fee => move}/ante/gas_prices_test.go (81%) diff --git a/app/ante/ante.go b/app/ante/ante.go index 286c450d7..c2eff30f0 100644 --- a/app/ante/ante.go +++ b/app/ante/ante.go @@ -13,6 +13,7 @@ import ( "github.com/initia-labs/initia/app/ante/accnum" "github.com/initia-labs/initia/app/ante/sigverify" dynamicfeeante "github.com/initia-labs/initia/x/dynamic-fee/ante" + moveante "github.com/initia-labs/initia/x/move/ante" "github.com/skip-mev/block-sdk/v2/block" auctionante "github.com/skip-mev/block-sdk/v2/x/auction/ante" @@ -79,7 +80,8 @@ func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error) { accnum.NewAccountNumberDecorator(options.AccountKeeper), ante.NewSetUpContextDecorator(), // outermost AnteDecorator. SetUpContext must be called first ante.NewExtensionOptionsDecorator(options.ExtensionOptionChecker), - dynamicfeeante.NewGasPricesDecorator(options.DynamicFeeKeeper), + moveante.NewGasPricesDecorator(), + dynamicfeeante.NewBlockGasDecorator(options.DynamicFeeKeeper), ante.NewValidateBasicDecorator(), ante.NewTxTimeoutHeightDecorator(), ante.NewValidateMemoDecorator(options.AccountKeeper), diff --git a/x/dynamic-fee/ante/block_gas.go b/x/dynamic-fee/ante/block_gas.go new file mode 100644 index 000000000..aa5c5172b --- /dev/null +++ b/x/dynamic-fee/ante/block_gas.go @@ -0,0 +1,52 @@ +package ante + +import ( + "context" + + "cosmossdk.io/errors" + storetypes "cosmossdk.io/store/types" + + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" +) + +// custom block gas meter to accumulate gas limit not consumed +type BlockGasMeter interface { + AccumulateGas(ctx context.Context, gas uint64) error +} + +// BlockGasDecorator ante decorator to accumulate gas used in the block +type BlockGasDecorator struct { + blockGasMeter BlockGasMeter +} + +// NewBlockGasDecorator constructor of the BlockGasDecorator +func NewBlockGasDecorator(blockGasMeter BlockGasMeter) *BlockGasDecorator { + return &BlockGasDecorator{ + blockGasMeter: blockGasMeter, + } +} + +// AnteHandle that accumulate gas used in the block +func (d BlockGasDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error) { + feeTx, ok := tx.(sdk.FeeTx) + if !ok { + return ctx, errors.Wrap(sdkerrors.ErrTxDecode, "Tx must be a FeeTx") + } + + gas := feeTx.GetGas() + + // record the gas amount to the block gas meter + // NOTE: use infinite gas meter to avoid gas charge for chain operation + if !simulate && !ctx.IsCheckTx() { + if err := d.blockGasMeter.AccumulateGas(ctx.WithGasMeter(storetypes.NewInfiniteGasMeter()), gas); err != nil { + return ctx, err + } + } + + if next != nil { + return next(ctx, tx, simulate) + } + + return ctx, nil +} diff --git a/x/dynamic-fee/ante/block_gas_test.go b/x/dynamic-fee/ante/block_gas_test.go new file mode 100644 index 000000000..c046f8ac9 --- /dev/null +++ b/x/dynamic-fee/ante/block_gas_test.go @@ -0,0 +1,62 @@ +package ante_test + +import ( + "context" + + "cosmossdk.io/math" + "github.com/initia-labs/initia/x/dynamic-fee/ante" + + cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" + "github.com/cosmos/cosmos-sdk/testutil/testdata" + sdk "github.com/cosmos/cosmos-sdk/types" +) + +type TestBlockGasMeter struct { + gasUsed uint64 +} + +func (t *TestBlockGasMeter) AccumulateGas(ctx context.Context, gas uint64) error { + t.gasUsed += gas + return nil +} + +func (suite *AnteTestSuite) Test_BlockGasDecorator() { + suite.SetupTest() // setup + suite.txBuilder = suite.clientCtx.TxConfig.NewTxBuilder() + + // keys and addresses + priv1, _, _ := testdata.KeyTestPubAddr() + + feeAmount := sdk.NewCoins(sdk.NewCoin(baseDenom, math.NewInt(100))) + gasLimit := uint64(200_000) + suite.txBuilder.SetFeeAmount(feeAmount) + suite.txBuilder.SetGasLimit(gasLimit) + + privs, accNums, accSeqs := []cryptotypes.PrivKey{priv1}, []uint64{0}, []uint64{0} + tx, err := suite.CreateTestTx(privs, accNums, accSeqs, suite.ctx.ChainID()) + suite.Require().NoError(err) + + blockGasMeter := &TestBlockGasMeter{} + decorator := ante.NewBlockGasDecorator(blockGasMeter) + + // in normal mode + _, err = decorator.AnteHandle(suite.ctx.WithIsCheckTx(false), tx, false, nil) + suite.Require().NoError(err) + + // incremented in normal mode + suite.Require().Equal(gasLimit, blockGasMeter.gasUsed) + + // in check tx mode + _, err = decorator.AnteHandle(suite.ctx.WithIsCheckTx(true), tx, true, nil) + suite.Require().NoError(err) + + // not incremented in check tx mode + suite.Require().Equal(gasLimit, blockGasMeter.gasUsed) + + // in simulation mode + _, err = decorator.AnteHandle(suite.ctx.WithIsCheckTx(false), tx, true, nil) + suite.Require().NoError(err) + + // not incremented in simulation mode + suite.Require().Equal(gasLimit, blockGasMeter.gasUsed) +} diff --git a/x/move/ante/ante_test.go b/x/move/ante/ante_test.go new file mode 100644 index 000000000..a6a0c5753 --- /dev/null +++ b/x/move/ante/ante_test.go @@ -0,0 +1,134 @@ +package ante_test + +import ( + "context" + "testing" + + "github.com/stretchr/testify/suite" + + tmproto "github.com/cometbft/cometbft/proto/tendermint/types" + + "cosmossdk.io/log" + dbm "github.com/cosmos/cosmos-db" + + "github.com/cosmos/cosmos-sdk/client" + "github.com/cosmos/cosmos-sdk/client/flags" + "github.com/cosmos/cosmos-sdk/client/tx" + cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" + "github.com/cosmos/cosmos-sdk/server" + simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" + "github.com/cosmos/cosmos-sdk/testutil/testdata" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/tx/signing" + authsign "github.com/cosmos/cosmos-sdk/x/auth/signing" + authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" + simcli "github.com/cosmos/cosmos-sdk/x/simulation/client/cli" + + initiaapp "github.com/initia-labs/initia/app" + moveconfig "github.com/initia-labs/initia/x/move/config" + movetypes "github.com/initia-labs/initia/x/move/types" + + oracleconfig "github.com/skip-mev/connect/v2/oracle/config" +) + +// AnteTestSuite is a test suite to be used with ante handler tests. +type AnteTestSuite struct { + suite.Suite + + app *initiaapp.InitiaApp + ctx sdk.Context + clientCtx client.Context + txBuilder client.TxBuilder +} + +// returns context and app with params set on account keeper +func (suite *AnteTestSuite) createTestApp(tempDir string) (*initiaapp.InitiaApp, sdk.Context) { + appOptions := make(simtestutil.AppOptionsMap, 0) + appOptions[flags.FlagHome] = tempDir + appOptions[server.FlagInvCheckPeriod] = simcli.FlagPeriodValue + + app := initiaapp.NewInitiaApp( + log.NewNopLogger(), dbm.NewMemDB(), nil, true, moveconfig.DefaultMoveConfig(), oracleconfig.NewDefaultAppConfig(), appOptions, + ) + ctx := app.BaseApp.NewUncachedContext(false, tmproto.Header{}) + err := app.AccountKeeper.Params.Set(ctx, authtypes.DefaultParams()) + suite.NoError(err) + + app.MoveKeeper.SetParams(ctx, movetypes.DefaultParams()) + + return app, ctx +} + +// SetupTest setups a new test, with new app, context, and anteHandler. +func (suite *AnteTestSuite) SetupTest() { + tempDir := suite.T().TempDir() + suite.app, suite.ctx = suite.createTestApp(tempDir) + suite.ctx = suite.ctx.WithBlockHeight(1) + + // Set up TxConfig. + encodingConfig := initiaapp.MakeEncodingConfig() + + // We're using TestMsg encoding in some tests, so register it here. + encodingConfig.Amino.RegisterConcrete(&testdata.TestMsg{}, "testdata.TestMsg", nil) + testdata.RegisterInterfaces(encodingConfig.InterfaceRegistry) + + suite.clientCtx = client.Context{}. + WithTxConfig(encodingConfig.TxConfig) +} + +// CreateTestTx is a helper function to create a tx given multiple inputs. +func (suite *AnteTestSuite) CreateTestTx(privs []cryptotypes.PrivKey, accNums []uint64, accSeqs []uint64, chainID string) (authsign.Tx, error) { + defaultSignMode, err := authsign.APISignModeToInternal(suite.clientCtx.TxConfig.SignModeHandler().DefaultMode()) + suite.NoError(err) + + // First round: we gather all the signer infos. We use the "set empty + // signature" hack to do that. + var sigsV2 []signing.SignatureV2 + for i, priv := range privs { + + sigV2 := signing.SignatureV2{ + PubKey: priv.PubKey(), + Data: &signing.SingleSignatureData{ + SignMode: defaultSignMode, + Signature: nil, + }, + Sequence: accSeqs[i], + } + + sigsV2 = append(sigsV2, sigV2) + } + err = suite.txBuilder.SetSignatures(sigsV2...) + if err != nil { + return nil, err + } + + // Second round: all signer infos are set, so each signer can sign. + sigsV2 = []signing.SignatureV2{} + for i, priv := range privs { + signerData := authsign.SignerData{ + Address: sdk.AccAddress(priv.PubKey().Address()).String(), + ChainID: chainID, + AccountNumber: accNums[i], + Sequence: accSeqs[i], + PubKey: priv.PubKey(), + } + sigV2, err := tx.SignWithPrivKey( + context.TODO(), defaultSignMode, signerData, + suite.txBuilder, priv, suite.clientCtx.TxConfig, accSeqs[i]) + if err != nil { + return nil, err + } + + sigsV2 = append(sigsV2, sigV2) + } + err = suite.txBuilder.SetSignatures(sigsV2...) + if err != nil { + return nil, err + } + + return suite.txBuilder.GetTx(), nil +} + +func TestAnteTestSuite(t *testing.T) { + suite.Run(t, new(AnteTestSuite)) +} diff --git a/x/dynamic-fee/ante/context_keys.go b/x/move/ante/context_keys.go similarity index 100% rename from x/dynamic-fee/ante/context_keys.go rename to x/move/ante/context_keys.go diff --git a/x/dynamic-fee/ante/gas_prices.go b/x/move/ante/gas_prices.go similarity index 53% rename from x/dynamic-fee/ante/gas_prices.go rename to x/move/ante/gas_prices.go index 2d4f2cbd1..e483a6385 100644 --- a/x/dynamic-fee/ante/gas_prices.go +++ b/x/move/ante/gas_prices.go @@ -1,35 +1,22 @@ package ante import ( - "context" - "cosmossdk.io/errors" "cosmossdk.io/math" - storetypes "cosmossdk.io/store/types" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) -// custom block gas meter to accumulate gas limit not consumed -type BlockGasMeter interface { - AccumulateGas(ctx context.Context, gas uint64) error -} - // GasPricesDecorator ante decorator to set gas prices to a context -// and accumulate gas used in the block -type GasPricesDecorator struct { - blockGasMeter BlockGasMeter -} +type GasPricesDecorator struct{} // NewGasPricesDecorator constructor of the GasPricesDecorator -func NewGasPricesDecorator(blockGasMeter BlockGasMeter) *GasPricesDecorator { - return &GasPricesDecorator{ - blockGasMeter: blockGasMeter, - } +func NewGasPricesDecorator() *GasPricesDecorator { + return &GasPricesDecorator{} } -// AnteHandle that store gas prices to a context and accumulate gas used in the block +// AnteHandle that set gas prices to a context func (d GasPricesDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error) { feeTx, ok := tx.(sdk.FeeTx) if !ok { @@ -48,14 +35,6 @@ func (d GasPricesDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool ctx = ctx.WithValue(GasPricesContextKey, sdk.NewDecCoinsFromCoins(feeCoins...).QuoDecTruncate(math.LegacyNewDec(int64(gas)))) } - // record the gas amount to the block gas meter - // NOTE: use infinite gas meter to avoid gas charge for chain operation - if !simulate && !ctx.IsCheckTx() { - if err := d.blockGasMeter.AccumulateGas(ctx.WithGasMeter(storetypes.NewInfiniteGasMeter()), gas); err != nil { - return ctx, err - } - } - if next != nil { return next(ctx, tx, simulate) } diff --git a/x/dynamic-fee/ante/gas_prices_test.go b/x/move/ante/gas_prices_test.go similarity index 81% rename from x/dynamic-fee/ante/gas_prices_test.go rename to x/move/ante/gas_prices_test.go index 5f1a6fa43..e5ef159b3 100644 --- a/x/dynamic-fee/ante/gas_prices_test.go +++ b/x/move/ante/gas_prices_test.go @@ -4,13 +4,17 @@ import ( "context" "cosmossdk.io/math" - "github.com/initia-labs/initia/x/dynamic-fee/ante" cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" "github.com/cosmos/cosmos-sdk/testutil/testdata" sdk "github.com/cosmos/cosmos-sdk/types" + + initiaapp "github.com/initia-labs/initia/app" + "github.com/initia-labs/initia/x/move/ante" ) +const baseDenom = initiaapp.BondDenom + type TestBlockGasMeter struct { gasUsed uint64 } @@ -36,22 +40,15 @@ func (suite *AnteTestSuite) TestGasPricesDecorator() { tx, err := suite.CreateTestTx(privs, accNums, accSeqs, suite.ctx.ChainID()) suite.Require().NoError(err) - blockGasMeter := &TestBlockGasMeter{} - decorator := ante.NewGasPricesDecorator(blockGasMeter) + decorator := ante.NewGasPricesDecorator() // in normal mode ctx, err := decorator.AnteHandle(suite.ctx.WithIsCheckTx(false), tx, false, nil) suite.Require().NoError(err) suite.Require().Equal(sdk.NewDecCoinsFromCoins(feeAmount...).QuoDec(math.LegacyNewDec(int64(gasLimit))), ctx.Value(ante.GasPricesContextKey).(sdk.DecCoins)) - // incremented in normal mode - suite.Require().Equal(gasLimit, blockGasMeter.gasUsed) - // in simulation mode ctx, err = decorator.AnteHandle(suite.ctx, tx, true, nil) suite.Require().NoError(err) suite.Require().Nil(ctx.Value(ante.GasPricesContextKey)) - - // not incremented in simulation mode - suite.Require().Equal(gasLimit, blockGasMeter.gasUsed) } diff --git a/x/move/keeper/handler.go b/x/move/keeper/handler.go index 0ec12bf05..297e77610 100644 --- a/x/move/keeper/handler.go +++ b/x/move/keeper/handler.go @@ -17,7 +17,7 @@ import ( authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" "github.com/cosmos/gogoproto/proto" - "github.com/initia-labs/initia/x/dynamic-fee/ante" + "github.com/initia-labs/initia/x/move/ante" "github.com/initia-labs/initia/x/move/types" vmtypes "github.com/initia-labs/movevm/types" ) diff --git a/x/move/keeper/handler_test.go b/x/move/keeper/handler_test.go index 0f147f22f..d507c5f48 100644 --- a/x/move/keeper/handler_test.go +++ b/x/move/keeper/handler_test.go @@ -13,7 +13,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - "github.com/initia-labs/initia/x/dynamic-fee/ante" + "github.com/initia-labs/initia/x/move/ante" "github.com/initia-labs/initia/x/move/types" vmtypes "github.com/initia-labs/movevm/types" )