From 4ab6bfefb1d99ef3fbe43e5d1248465ffee9344c Mon Sep 17 00:00:00 2001 From: aljo242 Date: Mon, 23 Sep 2024 11:25:57 -0400 Subject: [PATCH] admin --- proto/connect/marketmap/v2/tx.proto | 8 +- x/marketmap/keeper/msg_server.go | 10 ++- x/marketmap/types/tx.pb.go | 118 ++++++++++++++-------------- 3 files changed, 70 insertions(+), 66 deletions(-) diff --git a/proto/connect/marketmap/v2/tx.proto b/proto/connect/marketmap/v2/tx.proto index 886ef9694..5cbc5e1fb 100644 --- a/proto/connect/marketmap/v2/tx.proto +++ b/proto/connect/marketmap/v2/tx.proto @@ -143,11 +143,11 @@ message MsgRemoveMarketAuthoritiesResponse {} // MsgRemoveMarkets defines the Msg/RemoveMarkets request type. It contains the // new markets to be removed from the market map. message MsgRemoveMarkets { - option (cosmos.msg.v1.signer) = "authority"; + option (cosmos.msg.v1.signer) = "admin"; - // Authority is the signer of this transaction. This authority must be - // authorized by the module to execute the message. - string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; + // Admin defines the authority that is the x/marketmap + // Admin account. This account is set in the module parameters. + string admin = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; // Markets is the list of markets to remove. repeated string markets = 2; diff --git a/x/marketmap/keeper/msg_server.go b/x/marketmap/keeper/msg_server.go index 4c9c49a6d..0f1cb92b2 100644 --- a/x/marketmap/keeper/msg_server.go +++ b/x/marketmap/keeper/msg_server.go @@ -260,9 +260,13 @@ func (ms msgServer) RemoveMarkets(goCtx context.Context, msg *types.MsgRemoveMar ctx := sdk.UnwrapSDKContext(goCtx) - // perform basic msg validity checks - if err := ms.verifyMarketAuthorities(ctx, msg); err != nil { - return nil, fmt.Errorf("unable to verify market authorities: %w", err) + params, err := ms.k.GetParams(ctx) + if err != nil { + return nil, err + } + + if msg.Authority != params.Admin { + return nil, fmt.Errorf("request admin %s does not match module admin %s", msg.Admin, params.Admin) } for _, market := range msg.Markets { diff --git a/x/marketmap/types/tx.pb.go b/x/marketmap/types/tx.pb.go index 6dee61f30..166f82441 100644 --- a/x/marketmap/types/tx.pb.go +++ b/x/marketmap/types/tx.pb.go @@ -519,9 +519,9 @@ var xxx_messageInfo_MsgRemoveMarketAuthoritiesResponse proto.InternalMessageInfo // MsgRemoveMarkets defines the Msg/RemoveMarkets request type. It contains the // new markets to be removed from the market map. type MsgRemoveMarkets struct { - // Authority is the signer of this transaction. This authority must be - // authorized by the module to execute the message. - Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + // Admin defines the authority that is the x/marketmap + // Admin account. This account is set in the module parameters. + Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"` // Markets is the list of markets to remove. Markets []string `protobuf:"bytes,2,rep,name=markets,proto3" json:"markets,omitempty"` } @@ -559,9 +559,9 @@ func (m *MsgRemoveMarkets) XXX_DiscardUnknown() { var xxx_messageInfo_MsgRemoveMarkets proto.InternalMessageInfo -func (m *MsgRemoveMarkets) GetAuthority() string { +func (m *MsgRemoveMarkets) GetAdmin() string { if m != nil { - return m.Authority + return m.Admin } return "" } @@ -630,53 +630,53 @@ func init() { func init() { proto.RegisterFile("connect/marketmap/v2/tx.proto", fileDescriptor_37df9476ca9a2f81) } var fileDescriptor_37df9476ca9a2f81 = []byte{ - // 725 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x4f, 0x4f, 0x13, 0x41, - 0x14, 0xef, 0x14, 0x8a, 0xf6, 0x69, 0x11, 0xd6, 0x26, 0xac, 0x1b, 0x6d, 0x71, 0x43, 0x2a, 0x92, - 0xb0, 0x8b, 0x35, 0x31, 0xa4, 0x7a, 0xb0, 0x35, 0x1e, 0x34, 0x69, 0x62, 0xd6, 0x90, 0x18, 0x2f, - 0xcd, 0xd2, 0x4e, 0x96, 0x0d, 0xec, 0x9f, 0xec, 0x4c, 0x37, 0x70, 0x33, 0x1a, 0x2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 0x66, 0xe7, 0x4c, 0xc2, 0x82, 0x2c, 0x49, - 0xf8, 0x23, 0x82, 0x7c, 0x93, 0x58, 0x2f, 0xa2, 0x0b, 0x29, 0xd5, 0x60, 0x8a, 0x5d, 0xcd, 0x28, - 0xcd, 0x54, 0xa6, 0x0c, 0xcd, 0x99, 0x72, 0x0b, 0xb1, 0x4a, 0xd9, 0x91, 0xab, 0x54, 0x9b, 0x16, - 0xd3, 0x52, 0xaf, 0xc3, 0x6c, 0x42, 0x28, 0xa1, 0xf9, 0x0e, 0x81, 0xd2, 0x24, 0x96, 0x81, 0x1d, - 0x2f, 0xe4, 0x39, 0xd4, 0xb9, 0x85, 0x8d, 0x89, 0x74, 0x17, 0x66, 0x82, 0x48, 0xd5, 0x32, 0x59, - 0x18, 0x7e, 0xbf, 0xf2, 0xc6, 0x35, 0x26, 0xaf, 0xc7, 0x62, 0x49, 0x83, 0x9c, 0xd9, 0x71, 0x6c, - 0xf7, 0x5c, 0x8a, 0x0c, 0x56, 0x83, 0x1e, 0x3d, 0x76, 0x56, 0x17, 0x40, 0x4d, 0x27, 0x91, 0x70, - 0xa5, 0xd1, 0x08, 0xf5, 0xa3, 0x2e, 0x3e, 0x42, 0xb2, 0xb8, 0xce, 0xf2, 0x27, 0xab, 0xea, 0x74, - 0xd9, 0x58, 0x93, 0x85, 0xa8, 0x31, 0xa3, 0xea, 0xe7, 0x1c, 0x4c, 0x34, 0x89, 0x25, 0x59, 0x50, - 0x10, 0xaf, 0x72, 0x25, 0x75, 0xfb, 0x08, 0x38, 0x45, 0x1b, 0x0d, 0x97, 0x6c, 0x3b, 0x0b, 0x0a, - 0xe2, 0x15, 0xaa, 0x0c, 0x59, 0x73, 0x9d, 0x91, 0x02, 0x0d, 0x1c, 0x5f, 0xe9, 0x15, 0x5c, 0x65, - 0x0a, 0x3e, 0xc0, 0xe5, 0x54, 0x7b, 0x06, 0x50, 0xee, 0x9c, 0x03, 0x48, 0x3c, 0xbf, 0x47, 0x30, - 0x97, 0x36, 0x6e, 0x2b, 0xa9, 0x4e, 0x52, 0x2c, 0x94, 0xd5, 0x71, 0x2d, 0xc4, 0x52, 0xf6, 0xbf, - 0x8c, 0x95, 0xd1, 0x5e, 0x8c, 0xa1, 0xa5, 0x1c, 0xf4, 0x42, 0x59, 0x50, 0x10, 0x67, 0xb6, 0x32, - 0x12, 0xe7, 0x61, 0x81, 0x06, 0x4e, 0xa3, 0x92, 0x7b, 0x73, 0xbc, 0xbb, 0x84, 0x1a, 0xcf, 0xf7, - 0x0e, 0x4b, 0x68, 0xff, 0xb0, 0x84, 0x7e, 0x1f, 0x96, 0xd0, 0xa7, 0xa3, 0x52, 0x66, 0xff, 0xa8, - 0x94, 0xf9, 0x79, 0x54, 0xca, 0xbc, 0x5e, 0xb1, 0x6c, 0xba, 0xd1, 0x5d, 0xd7, 0xda, 0x9e, 0xa3, - 0x93, 0x4d, 0xdb, 0x5f, 0x76, 0x70, 0xa8, 0xc7, 0x9b, 0x2e, 0xac, 0x0a, 0xcb, 0x8e, 0xee, 0xf8, - 0x98, 0xac, 0x4f, 0x45, 0xbf, 0x24, 0xee, 0xff, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x83, 0xa3, 0xed, - 0x6d, 0x23, 0x09, 0x00, 0x00, + // 729 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xcf, 0x6b, 0x13, 0x4f, + 0x14, 0xcf, 0xa4, 0x4d, 0xbf, 0xdf, 0x8c, 0xa6, 0xb6, 0x63, 0xa0, 0xeb, 0xa2, 0x49, 0x5d, 0x4a, + 0xac, 0x85, 0xee, 0xd6, 0x08, 0x52, 0xa2, 0x07, 0x13, 0xf1, 0xa0, 0x10, 0x90, 0x95, 0x82, 0x78, + 0x09, 0xdb, 0x64, 0xd8, 0x2e, 0xed, 0xfe, 0x60, 0x67, 0xb2, 0xb4, 0x37, 0x51, 0xbc, 0x78, 0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, 0xec, 0x9d, 0x4b, 0x58, 0x90, + 0xc5, 0x09, 0xbf, 0x07, 0xb0, 0xd8, 0x26, 0xe6, 0xb3, 0xf0, 0x42, 0xa2, 0x06, 0x9c, 0x61, 0x57, + 0x33, 0x4c, 0x33, 0x95, 0x29, 0x43, 0x73, 0xa6, 0xdc, 0x42, 0xac, 0x52, 0x3e, 0x73, 0x95, 0x1a, + 0xb3, 0x62, 0x5a, 0xca, 0x55, 0x38, 0x1f, 0x13, 0x8a, 0x69, 0xbe, 0x01, 0x50, 0x6e, 0x13, 0x53, + 0xc7, 0xb6, 0x1b, 0xf0, 0x1c, 0x9a, 0xdc, 0xc2, 0xc2, 0x04, 0xdd, 0x86, 0x73, 0x7e, 0xa8, 0xea, + 0x18, 0x2c, 0x0c, 0xbf, 0x5f, 0x45, 0xfd, 0x0a, 0x93, 0x37, 0x23, 0x31, 0x52, 0x61, 0xc1, 0xe8, + 0xd9, 0x96, 0x73, 0x21, 0x45, 0x06, 0x6b, 0xc0, 0x01, 0x3d, 0x76, 0x56, 0x96, 0xa0, 0x92, 0x4e, + 0x22, 0xe6, 0xba, 0x15, 0x8e, 0x50, 0x12, 0x95, 0x88, 0x0a, 0x32, 0x45, 0x45, 0x92, 0xb8, 0xc6, + 0x8a, 0xc3, 0x15, 0x95, 0xe4, 0xc3, 0x1a, 0x2b, 0x44, 0x8a, 0x58, 0xd4, 0x3f, 0x16, 0xe0, 0x54, + 0x9b, 0x98, 0xc8, 0x84, 0x25, 0xf1, 0xfa, 0xd6, 0x52, 0x37, 0x8e, 0x80, 0x93, 0xd5, 0x6c, 0xb8, + 0x78, 0xc3, 0x99, 0xb0, 0x24, 0x5e, 0x9b, 0xda, 0x98, 0xd5, 0xd6, 0xcb, 0x14, 0x68, 0xe4, 0xc8, + 0xa2, 0x17, 0xf0, 0x32, 0x53, 0xf0, 0xa1, 0xad, 0xa6, 0xda, 0x33, 0x80, 0x7c, 0xeb, 0x02, 0x40, + 0xec, 0xf9, 0x2d, 0x80, 0x0b, 0x69, 0x23, 0xb6, 0x96, 0xea, 0x24, 0xc5, 0x42, 0x5e, 0x9f, 0xd4, + 0x42, 0x2c, 0x65, 0xf2, 0x35, 0xac, 0x65, 0x7b, 0x25, 0xc6, 0x96, 0x72, 0xd4, 0xab, 0x64, 0xc2, + 0x92, 0x38, 0xa7, 0xb5, 0x4c, 0x9c, 0xc7, 0x05, 0x1a, 0x39, 0x8d, 0x72, 0xe1, 0xd5, 0xe9, 0xfe, + 0x0a, 0x68, 0x3d, 0x3d, 0x38, 0xae, 0x80, 0xc3, 0xe3, 0x0a, 0xf8, 0x79, 0x5c, 0x01, 0x1f, 0x4e, + 0x2a, 0xb9, 0xc3, 0x93, 0x4a, 0xee, 0xfb, 0x49, 0x25, 0xf7, 0x72, 0xcd, 0xb4, 0xe8, 0x56, 0x7f, + 0x53, 0xed, 0xba, 0xb6, 0x46, 0xb6, 0x2d, 0x6f, 0xd5, 0xc6, 0x81, 0x16, 0x6d, 0xb7, 0xa0, 0x2e, + 0x2c, 0x38, 0xba, 0xe7, 0x61, 0xb2, 0x39, 0x13, 0xfe, 0x7a, 0xb8, 0xfb, 0x3b, 0x00, 0x00, 0xff, + 0xff, 0x75, 0xad, 0x0c, 0x3c, 0x17, 0x09, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1346,10 +1346,10 @@ func (m *MsgRemoveMarkets) MarshalToSizedBuffer(dAtA []byte) (int, error) { 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))) + if len(m.Admin) > 0 { + i -= len(m.Admin) + copy(dAtA[i:], m.Admin) + i = encodeVarintTx(dAtA, i, uint64(len(m.Admin))) i-- dAtA[i] = 0xa } @@ -1540,7 +1540,7 @@ func (m *MsgRemoveMarkets) Size() (n int) { } var l int _ = l - l = len(m.Authority) + l = len(m.Admin) if l > 0 { n += 1 + l + sovTx(uint64(l)) } @@ -2541,7 +2541,7 @@ func (m *MsgRemoveMarkets) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Admin", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2569,7 +2569,7 @@ func (m *MsgRemoveMarkets) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Authority = string(dAtA[iNdEx:postIndex]) + m.Admin = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 {