diff --git a/CHANGELOG.md b/CHANGELOG.md index a68230d594..c9babc4b3c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -90,6 +90,7 @@ Ref: https://keepachangelog.com/en/1.0.0/ * (x/foundation) [\#744](https://github.com/line/lbm-sdk/pull/744) revisit foundation operator * (store,x/wasm) [\#742](https://github.com/line/lbm-sdk/pull/742) fix to add error message in GetByteCode() * (amino) [\#745](https://github.com/line/lbm-sdk/pull/745) apply the missing amino codec of `x/token`, `x/collection`, `x/wasm` and `x/foundation` +* (x/foundation) [\#757](https://github.com/line/lbm-sdk/pull/757) remove redundant granter from x/foundation events ### Bug Fixes * (x/wasm) [\#453](https://github.com/line/lbm-sdk/pull/453) modify wasm grpc query api path diff --git a/docs/core/proto-docs.md b/docs/core/proto-docs.md index ff1d0fa342..bd794d9e06 100644 --- a/docs/core/proto-docs.md +++ b/docs/core/proto-docs.md @@ -17122,7 +17122,6 @@ EventGrant is emitted on Msg/Grant | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| `granter` | [string](#string) | | | | `grantee` | [string](#string) | | the address of the grantee. | | `authorization` | [google.protobuf.Any](#google.protobuf.Any) | | authorization granted. | @@ -17154,7 +17153,6 @@ EventRevoke is emitted on Msg/Revoke | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| `granter` | [string](#string) | | | | `grantee` | [string](#string) | | address of the grantee. | | `msg_type_url` | [string](#string) | | message type url for which an autorization is revoked. | diff --git a/proto/lbm/foundation/v1/event.proto b/proto/lbm/foundation/v1/event.proto index ec18692a91..da59253fc2 100644 --- a/proto/lbm/foundation/v1/event.proto +++ b/proto/lbm/foundation/v1/event.proto @@ -78,21 +78,19 @@ message EventLeaveFoundation { // EventGrant is emitted on Msg/Grant message EventGrant { - string granter = 1; // the address of the grantee. - string grantee = 2; + string grantee = 1; // authorization granted. - google.protobuf.Any authorization = 3 + google.protobuf.Any authorization = 2 [(cosmos_proto.accepts_interface) = "github.com/line/lbm-sdk/x/authz.Authorization"]; } // EventRevoke is emitted on Msg/Revoke message EventRevoke { - string granter = 1; // address of the grantee. - string grantee = 2; + string grantee = 1; // message type url for which an autorization is revoked. - string msg_type_url = 3; + string msg_type_url = 2; } // EventGovMint is an event emitted when the minter mint coins to the treasury. diff --git a/x/foundation/event.pb.go b/x/foundation/event.pb.go index 1131615ee6..b4289080fa 100644 --- a/x/foundation/event.pb.go +++ b/x/foundation/event.pb.go @@ -510,11 +510,10 @@ func (m *EventLeaveFoundation) GetAddress() string { // EventGrant is emitted on Msg/Grant type EventGrant struct { - Granter string `protobuf:"bytes,1,opt,name=granter,proto3" json:"granter,omitempty"` // the address of the grantee. - Grantee string `protobuf:"bytes,2,opt,name=grantee,proto3" json:"grantee,omitempty"` + Grantee string `protobuf:"bytes,1,opt,name=grantee,proto3" json:"grantee,omitempty"` // authorization granted. - Authorization *types1.Any `protobuf:"bytes,3,opt,name=authorization,proto3" json:"authorization,omitempty"` + Authorization *types1.Any `protobuf:"bytes,2,opt,name=authorization,proto3" json:"authorization,omitempty"` } func (m *EventGrant) Reset() { *m = EventGrant{} } @@ -550,13 +549,6 @@ func (m *EventGrant) XXX_DiscardUnknown() { var xxx_messageInfo_EventGrant proto.InternalMessageInfo -func (m *EventGrant) GetGranter() string { - if m != nil { - return m.Granter - } - return "" -} - func (m *EventGrant) GetGrantee() string { if m != nil { return m.Grantee @@ -573,11 +565,10 @@ func (m *EventGrant) GetAuthorization() *types1.Any { // EventRevoke is emitted on Msg/Revoke type EventRevoke struct { - Granter string `protobuf:"bytes,1,opt,name=granter,proto3" json:"granter,omitempty"` // address of the grantee. - Grantee string `protobuf:"bytes,2,opt,name=grantee,proto3" json:"grantee,omitempty"` + Grantee string `protobuf:"bytes,1,opt,name=grantee,proto3" json:"grantee,omitempty"` // message type url for which an autorization is revoked. - MsgTypeUrl string `protobuf:"bytes,3,opt,name=msg_type_url,json=msgTypeUrl,proto3" json:"msg_type_url,omitempty"` + MsgTypeUrl string `protobuf:"bytes,2,opt,name=msg_type_url,json=msgTypeUrl,proto3" json:"msg_type_url,omitempty"` } func (m *EventRevoke) Reset() { *m = EventRevoke{} } @@ -613,13 +604,6 @@ func (m *EventRevoke) XXX_DiscardUnknown() { var xxx_messageInfo_EventRevoke proto.InternalMessageInfo -func (m *EventRevoke) GetGranter() string { - if m != nil { - return m.Granter - } - return "" -} - func (m *EventRevoke) GetGrantee() string { if m != nil { return m.Grantee @@ -698,53 +682,53 @@ func init() { func init() { proto.RegisterFile("lbm/foundation/v1/event.proto", fileDescriptor_2b66c645bbb34fbc) } var fileDescriptor_2b66c645bbb34fbc = []byte{ - // 734 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x53, 0x41, 0x4f, 0x14, 0x4b, - 0x10, 0xde, 0x81, 0xcd, 0xbe, 0x47, 0x03, 0xfb, 0xc2, 0x3c, 0x5e, 0xde, 0xc2, 0xcb, 0xdb, 0xdd, - 0x8c, 0x1e, 0x30, 0x66, 0x67, 0x5c, 0x3c, 0x68, 0x4c, 0x24, 0x61, 0x15, 0x8c, 0x09, 0x24, 0x38, - 0x82, 0x26, 0x1e, 0xdc, 0xf4, 0xcc, 0x34, 0xc3, 0x84, 0xe9, 0xa9, 0xb1, 0xbb, 0x67, 0x64, 0xb9, - 0x7a, 0xd0, 0xc4, 0x8b, 0x3f, 0xc1, 0xb3, 0x17, 0x2f, 0xfc, 0x08, 0xc2, 0x89, 0xa3, 0x27, 0x35, - 0xf0, 0x47, 0x4c, 0xf7, 0xf4, 0x2e, 0xbb, 0x01, 0x34, 0x31, 0xe1, 0x56, 0xd5, 0xf5, 0xd5, 0x57, - 0x5f, 0x55, 0x57, 0xa1, 0xff, 0x63, 0x8f, 0x3a, 0xdb, 0x90, 0x25, 0x01, 0x16, 0x11, 0x24, 0x4e, - 0xde, 0x76, 0x48, 0x4e, 0x12, 0x61, 0xa7, 0x0c, 0x04, 0x98, 0x33, 0xb1, 0x47, 0xed, 0xb3, 0xb0, - 0x9d, 0xb7, 0xe7, 0x67, 0x43, 0x08, 0x41, 0x45, 0x1d, 0x69, 0x15, 0xc0, 0xf9, 0xb9, 0x10, 0x20, - 0x8c, 0x89, 0xa3, 0x3c, 0x2f, 0xdb, 0x76, 0x70, 0xd2, 0xeb, 0x87, 0x7c, 0xe0, 0x14, 0x78, 0xb7, - 0xc8, 0x29, 0x1c, 0x1d, 0xaa, 0x17, 0x9e, 0xe3, 0x61, 0x4e, 0x9c, 0xbc, 0xed, 0x11, 0x81, 0xdb, - 0x8e, 0x0f, 0x51, 0xa2, 0xe3, 0xd6, 0x79, 0x75, 0x43, 0x62, 0x14, 0xc6, 0x5a, 0x43, 0x33, 0x2b, - 0x52, 0xf1, 0x56, 0x1a, 0x60, 0x41, 0x36, 0x30, 0xc3, 0x94, 0x9b, 0x77, 0x50, 0x25, 0x55, 0x56, - 0xcd, 0x68, 0x1a, 0x0b, 0x93, 0x8b, 0x73, 0xf6, 0xb9, 0x46, 0xec, 0x02, 0xda, 0x29, 0x1f, 0x7e, - 0x6d, 0x94, 0x5c, 0x0d, 0xb7, 0xde, 0x1a, 0x9a, 0x6e, 0x35, 0x4b, 0x82, 0x4d, 0x46, 0x30, 0xcf, - 0x58, 0xcf, 0x34, 0x51, 0x79, 0x9b, 0x01, 0x55, 0x64, 0x13, 0xae, 0xb2, 0xcd, 0x97, 0xa8, 0x82, - 0x29, 0x64, 0x89, 0xa8, 0x8d, 0x35, 0xc7, 0x55, 0x09, 0xdd, 0x9a, 0x6c, 0xc6, 0xd6, 0xcd, 0xd8, - 0x0f, 0x20, 0x4a, 0x3a, 0x37, 0x65, 0x89, 0x4f, 0xdf, 0x1a, 0xd7, 0xc2, 0x48, 0xec, 0x64, 0x9e, - 0xed, 0x03, 0x75, 0xe2, 0x28, 0x21, 0x4e, 0xec, 0xd1, 0x16, 0x0f, 0x76, 0x1d, 0xd1, 0x4b, 0x09, - 0x57, 0x58, 0xee, 0x6a, 0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 0x67, 0x20, 0x88, 0xd9, 0x46, 0xe5, - 0x1c, 0x04, 0xd1, 0x0a, 0xfe, 0xbd, 0x40, 0x81, 0x84, 0xe9, 0xea, 0x0a, 0x6a, 0xbd, 0x31, 0x34, - 0xc1, 0xca, 0x1e, 0xf1, 0x7f, 0x59, 0xce, 0x5c, 0x46, 0x15, 0x46, 0x78, 0x16, 0xcb, 0xcd, 0x31, - 0x16, 0xaa, 0x8b, 0x37, 0x7e, 0xd2, 0xa5, 0x64, 0xcc, 0x04, 0x30, 0x57, 0x25, 0xb8, 0x3a, 0x51, - 0x9e, 0x47, 0x0c, 0x21, 0xaf, 0x8d, 0x17, 0xe7, 0x21, 0x6d, 0xeb, 0x16, 0x9a, 0x55, 0x22, 0xd6, - 0x08, 0xce, 0xc9, 0xea, 0x80, 0xcd, 0xac, 0xa1, 0x3f, 0x70, 0x10, 0x30, 0xc2, 0xb9, 0xde, 0xde, - 0xbe, 0x6b, 0x7d, 0x36, 0x10, 0x52, 0x29, 0x8f, 0x18, 0x4e, 0x84, 0x04, 0x86, 0xd2, 0x20, 0xac, - 0x0f, 0xd4, 0xee, 0x59, 0x84, 0x28, 0xc9, 0x83, 0x08, 0x31, 0x29, 0x9a, 0xc6, 0x99, 0xd8, 0x01, - 0x16, 0xed, 0xab, 0x6a, 0x4a, 0xd1, 0x65, 0x1b, 0xd2, 0x3e, 0x3a, 0x68, 0xb5, 0x2e, 0xbb, 0x81, - 0x3d, 0x47, 0x12, 0xed, 0xdb, 0xcb, 0xc3, 0x74, 0xee, 0x28, 0xbb, 0xe5, 0xa3, 0x49, 0x25, 0xd8, - 0x25, 0x39, 0xec, 0x92, 0xdf, 0x52, 0xdc, 0x44, 0x53, 0x94, 0x87, 0x5d, 0x79, 0x72, 0xdd, 0x8c, - 0xc5, 0x7a, 0x84, 0x88, 0xf2, 0x70, 0xb3, 0x97, 0x92, 0x2d, 0x16, 0x5b, 0x09, 0x9a, 0x2a, 0xa6, - 0x02, 0xf9, 0x7a, 0x94, 0x88, 0xa1, 0x4b, 0x37, 0xae, 0xe2, 0xd2, 0x3b, 0x4b, 0x87, 0x27, 0x75, - 0xe3, 0xf8, 0xa4, 0x6e, 0x7c, 0x3f, 0xa9, 0x1b, 0x1f, 0x4e, 0xeb, 0xa5, 0xe3, 0xd3, 0x7a, 0xe9, - 0xcb, 0x69, 0xbd, 0xf4, 0xe2, 0xfa, 0xe5, 0xc3, 0x3a, 0x5b, 0x17, 0xaf, 0xa2, 0x86, 0x7c, 0xfb, - 0x47, 0x00, 0x00, 0x00, 0xff, 0xff, 0xb0, 0x7a, 0x7f, 0x44, 0x5a, 0x06, 0x00, 0x00, + // 725 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x53, 0xcf, 0x4f, 0x13, 0x4f, + 0x14, 0xef, 0x42, 0xd3, 0xef, 0x97, 0x01, 0x6a, 0x58, 0x31, 0x16, 0x8c, 0x6d, 0xb3, 0x7a, 0xc0, + 0x98, 0xee, 0x5a, 0x3c, 0x68, 0x4c, 0x24, 0xa1, 0x0a, 0x86, 0x04, 0x12, 0x5c, 0x41, 0x13, 0x0f, + 0x36, 0xb3, 0xdd, 0x61, 0xd9, 0xb0, 0xb3, 0x6f, 0x9d, 0x99, 0x5d, 0x29, 0x57, 0x0f, 0x9a, 0x78, + 0xf1, 0xe2, 0xdd, 0xb3, 0x67, 0xfe, 0x08, 0xc2, 0x89, 0xa3, 0x27, 0x35, 0xf0, 0x8f, 0x98, 0x99, + 0x9d, 0x96, 0x36, 0xfc, 0xf0, 0xc4, 0xed, 0xbd, 0x79, 0x9f, 0xf7, 0x79, 0x9f, 0xf7, 0xe6, 0x3d, + 0x74, 0x3b, 0xf2, 0xa8, 0xb3, 0x05, 0x69, 0xec, 0x63, 0x11, 0x42, 0xec, 0x64, 0x4d, 0x87, 0x64, + 0x24, 0x16, 0x76, 0xc2, 0x40, 0x80, 0x39, 0x15, 0x79, 0xd4, 0x3e, 0x0d, 0xdb, 0x59, 0x73, 0x76, + 0x3a, 0x80, 0x00, 0x54, 0xd4, 0x91, 0x56, 0x0e, 0x9c, 0x9d, 0x09, 0x00, 0x82, 0x88, 0x38, 0xca, + 0xf3, 0xd2, 0x2d, 0x07, 0xc7, 0xdd, 0x5e, 0xa8, 0x03, 0x9c, 0x02, 0x6f, 0xe7, 0x39, 0xb9, 0xa3, + 0x43, 0xd5, 0xdc, 0x73, 0x3c, 0xcc, 0x89, 0x93, 0x35, 0x3d, 0x22, 0x70, 0xd3, 0xe9, 0x40, 0x18, + 0xeb, 0xb8, 0x75, 0x56, 0xdd, 0x80, 0x18, 0x85, 0xb1, 0x56, 0xd1, 0xd4, 0x92, 0x54, 0xbc, 0x99, + 0xf8, 0x58, 0x90, 0x75, 0xcc, 0x30, 0xe5, 0xe6, 0x23, 0x54, 0x4a, 0x94, 0x55, 0x31, 0xea, 0xc6, + 0xdc, 0xf8, 0xfc, 0x8c, 0x7d, 0xa6, 0x11, 0x3b, 0x87, 0xb6, 0x8a, 0x07, 0xbf, 0x6a, 0x05, 0x57, + 0xc3, 0xad, 0x4f, 0x86, 0xa6, 0x5b, 0x4e, 0x63, 0x7f, 0x83, 0x11, 0xcc, 0x53, 0xd6, 0x35, 0x4d, + 0x54, 0xdc, 0x62, 0x40, 0x15, 0xd9, 0x98, 0xab, 0x6c, 0xf3, 0x1d, 0x2a, 0x61, 0x0a, 0x69, 0x2c, + 0x2a, 0x23, 0xf5, 0x51, 0x55, 0x42, 0xb7, 0x26, 0x9b, 0xb1, 0x75, 0x33, 0xf6, 0x33, 0x08, 0xe3, + 0xd6, 0x7d, 0x59, 0xe2, 0xc7, 0xef, 0xda, 0x9d, 0x20, 0x14, 0xdb, 0xa9, 0x67, 0x77, 0x80, 0x3a, + 0x51, 0x18, 0x13, 0x27, 0xf2, 0x68, 0x83, 0xfb, 0x3b, 0x8e, 0xe8, 0x26, 0x84, 0x2b, 0x2c, 0x77, + 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95, 0xf9, 0x1a, 0x04, 0x31, 0x9b, 0xa8, 0x98, 0x81, 0x20, 0x5a, + 0xc1, 0xcd, 0x73, 0x14, 0x48, 0x98, 0xae, 0xae, 0xa0, 0xd6, 0x47, 0x43, 0x13, 0x2c, 0xed, 0x92, + 0xce, 0x3f, 0xcb, 0x99, 0x8b, 0xa8, 0xc4, 0x08, 0x4f, 0x23, 0xb9, 0x39, 0xc6, 0x5c, 0x79, 0xfe, + 0xde, 0x25, 0x5d, 0x4a, 0xc6, 0x54, 0x00, 0x73, 0x55, 0x82, 0xab, 0x13, 0xe5, 0x79, 0x44, 0x10, + 0xf0, 0xca, 0x68, 0x7e, 0x1e, 0xd2, 0xb6, 0x1e, 0xa0, 0x69, 0x25, 0x62, 0x95, 0xe0, 0x8c, 0x2c, + 0xf7, 0xd9, 0xcc, 0x0a, 0xfa, 0x0f, 0xfb, 0x3e, 0x23, 0x9c, 0xeb, 0xed, 0xed, 0xb9, 0xd6, 0x37, + 0x03, 0x21, 0x95, 0xf2, 0x82, 0xe1, 0x58, 0x48, 0x60, 0x20, 0x0d, 0x42, 0x7a, 0x40, 0xed, 0x9a, + 0x14, 0x4d, 0xe2, 0x54, 0x6c, 0x03, 0x0b, 0xf7, 0x14, 0xa7, 0x12, 0x7e, 0xd1, 0x1e, 0x34, 0x0f, + 0xf7, 0x1b, 0x8d, 0x8b, 0x36, 0x7d, 0xd7, 0x91, 0x44, 0x7b, 0xf6, 0xe2, 0x20, 0x9d, 0x3b, 0xcc, + 0x6e, 0xad, 0xa0, 0x71, 0x25, 0xcb, 0x25, 0x19, 0xec, 0x90, 0x4b, 0x74, 0xd5, 0xd1, 0x04, 0xe5, + 0x41, 0x5b, 0x9e, 0x4f, 0x3b, 0x65, 0x91, 0x92, 0x35, 0xe6, 0x22, 0xca, 0x83, 0x8d, 0x6e, 0x42, + 0x36, 0x59, 0x64, 0xc5, 0x68, 0x22, 0xef, 0x10, 0xb2, 0xb5, 0x30, 0x16, 0x03, 0x57, 0x6b, 0x5c, + 0xc5, 0xd5, 0xb6, 0x16, 0x0e, 0x8e, 0xab, 0xc6, 0xd1, 0x71, 0xd5, 0xf8, 0x73, 0x5c, 0x35, 0xbe, + 0x9e, 0x54, 0x0b, 0x47, 0x27, 0xd5, 0xc2, 0xcf, 0x93, 0x6a, 0xe1, 0xed, 0xdd, 0x8b, 0x47, 0x72, + 0xfa, 0xf5, 0x5e, 0x49, 0x8d, 0xf2, 0xe1, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x8d, 0xe1, 0xbb, + 0x7b, 0x26, 0x06, 0x00, 0x00, } func (m *EventUpdateParams) Marshal() (dAtA []byte, err error) { @@ -1134,20 +1118,13 @@ func (m *EventGrant) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintEvent(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x1a + dAtA[i] = 0x12 } if len(m.Grantee) > 0 { i -= len(m.Grantee) copy(dAtA[i:], m.Grantee) i = encodeVarintEvent(dAtA, i, uint64(len(m.Grantee))) i-- - dAtA[i] = 0x12 - } - if len(m.Granter) > 0 { - i -= len(m.Granter) - copy(dAtA[i:], m.Granter) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Granter))) - i-- dAtA[i] = 0xa } return len(dAtA) - i, nil @@ -1178,20 +1155,13 @@ func (m *EventRevoke) MarshalToSizedBuffer(dAtA []byte) (int, error) { copy(dAtA[i:], m.MsgTypeUrl) i = encodeVarintEvent(dAtA, i, uint64(len(m.MsgTypeUrl))) i-- - dAtA[i] = 0x1a + dAtA[i] = 0x12 } if len(m.Grantee) > 0 { i -= len(m.Grantee) copy(dAtA[i:], m.Grantee) i = encodeVarintEvent(dAtA, i, uint64(len(m.Grantee))) i-- - dAtA[i] = 0x12 - } - if len(m.Granter) > 0 { - i -= len(m.Granter) - copy(dAtA[i:], m.Granter) - i = encodeVarintEvent(dAtA, i, uint64(len(m.Granter))) - i-- dAtA[i] = 0xa } return len(dAtA) - i, nil @@ -1394,10 +1364,6 @@ func (m *EventGrant) Size() (n int) { } var l int _ = l - l = len(m.Granter) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } l = len(m.Grantee) if l > 0 { n += 1 + l + sovEvent(uint64(l)) @@ -1415,10 +1381,6 @@ func (m *EventRevoke) Size() (n int) { } var l int _ = l - l = len(m.Granter) - if l > 0 { - n += 1 + l + sovEvent(uint64(l)) - } l = len(m.Grantee) if l > 0 { n += 1 + l + sovEvent(uint64(l)) @@ -2403,38 +2365,6 @@ func (m *EventGrant) Unmarshal(dAtA []byte) error { } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Granter", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - 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 ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Granter = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Grantee", wireType) } @@ -2466,7 +2396,7 @@ func (m *EventGrant) Unmarshal(dAtA []byte) error { } m.Grantee = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Authorization", wireType) } @@ -2553,38 +2483,6 @@ func (m *EventRevoke) Unmarshal(dAtA []byte) error { } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Granter", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvent - } - 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 ErrInvalidLengthEvent - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvent - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Granter = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Grantee", wireType) } @@ -2616,7 +2514,7 @@ func (m *EventRevoke) Unmarshal(dAtA []byte) error { } m.Grantee = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field MsgTypeUrl", wireType) } diff --git a/x/foundation/keeper/grant.go b/x/foundation/keeper/grant.go index f9cd575137..ee3e05b905 100644 --- a/x/foundation/keeper/grant.go +++ b/x/foundation/keeper/grant.go @@ -23,10 +23,7 @@ func (k Keeper) Grant(ctx sdk.Context, grantee sdk.AccAddress, authorization fou return err } - // TODO: remove granter from the event proto. - granter := foundation.ModuleName if err := ctx.EventManager().EmitTypedEvent(&foundation.EventGrant{ - Granter: granter, Grantee: grantee.String(), Authorization: any, }); err != nil { @@ -42,10 +39,7 @@ func (k Keeper) Revoke(ctx sdk.Context, grantee sdk.AccAddress, msgTypeURL strin } k.deleteAuthorization(ctx, grantee, msgTypeURL) - // TODO: remove granter from the event proto. - granter := foundation.ModuleName if err := ctx.EventManager().EmitTypedEvent(&foundation.EventRevoke{ - Granter: granter, Grantee: grantee.String(), MsgTypeUrl: msgTypeURL, }); err != nil {