From c69816de4e03d8e1810b9d16ab9917c2179f8cd5 Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Wed, 10 Aug 2022 03:00:09 +0000 Subject: [PATCH 1/3] Rename events --- docs/core/proto-docs.md | 56 +++--- proto/lbm/token/v1/event.proto | 12 +- x/token/event.go | 10 +- x/token/event.pb.go | 308 ++++++++++++++++----------------- x/token/event_test.go | 10 +- x/token/keeper/msg_server.go | 4 +- x/token/keeper/supply.go | 8 +- 7 files changed, 204 insertions(+), 204 deletions(-) diff --git a/docs/core/proto-docs.md b/docs/core/proto-docs.md index 9fba8b1b2f..8f5b7d1173 100644 --- a/docs/core/proto-docs.md +++ b/docs/core/proto-docs.md @@ -1161,13 +1161,13 @@ - [Permission](#lbm.token.v1.Permission) - [lbm/token/v1/event.proto](#lbm/token/v1/event.proto) - - [EventAbandon](#lbm.token.v1.EventAbandon) - [EventAuthorizedOperator](#lbm.token.v1.EventAuthorizedOperator) - [EventBurned](#lbm.token.v1.EventBurned) - - [EventGrant](#lbm.token.v1.EventGrant) - - [EventIssue](#lbm.token.v1.EventIssue) + - [EventGranted](#lbm.token.v1.EventGranted) + - [EventIssued](#lbm.token.v1.EventIssued) - [EventMinted](#lbm.token.v1.EventMinted) - [EventModified](#lbm.token.v1.EventModified) + - [EventRenounced](#lbm.token.v1.EventRenounced) - [EventRevokedOperator](#lbm.token.v1.EventRevokedOperator) - [EventSent](#lbm.token.v1.EventSent) @@ -17464,25 +17464,6 @@ Permission enumerates the valid permissions on a token class. - - -### EventAbandon -EventAbandon is emitted when a grantee abandons its permission. - -Since: 0.46.0 (finschia) - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| `contract_id` | [string](#string) | | contract id associated with the token class. | -| `grantee` | [string](#string) | | address of the grantee which abandons its grant. | -| `permission` | [Permission](#lbm.token.v1.Permission) | | permission on the token class. | - - - - - - ### EventAuthorizedOperator @@ -17522,10 +17503,10 @@ Since: 0.46.0 (finschia) - + -### EventGrant -EventGrant is emitted when a granter grants its permission to a grantee. +### EventGranted +EventGranted is emitted when a granter grants its permission to a grantee. Info: `granter` would be empty if the permission is granted by an issuance. @@ -17544,10 +17525,10 @@ Since: 0.46.0 (finschia) - + -### EventIssue -EventIssue is emitted when a new token class is created. +### EventIssued +EventIssued is emitted when a new token class is created. Since: 0.46.0 (finschia) @@ -17606,6 +17587,25 @@ Since: 0.46.0 (finschia) + + +### EventRenounced +EventRenounced is emitted when a grantee abandons its permission. + +Since: 0.46.0 (finschia) + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| `contract_id` | [string](#string) | | contract id associated with the token class. | +| `grantee` | [string](#string) | | address of the grantee which abandons its grant. | +| `permission` | [Permission](#lbm.token.v1.Permission) | | permission on the token class. | + + + + + + ### EventRevokedOperator diff --git a/proto/lbm/token/v1/event.proto b/proto/lbm/token/v1/event.proto index 175c8c79fe..dd7f788961 100644 --- a/proto/lbm/token/v1/event.proto +++ b/proto/lbm/token/v1/event.proto @@ -91,10 +91,10 @@ message EventRevokedOperator { string operator = 3; } -// EventIssue is emitted when a new token class is created. +// EventIssued is emitted when a new token class is created. // // Since: 0.46.0 (finschia) -message EventIssue { +message EventIssued { // contract id associated with the token class. string contract_id = 1; // name defines the human-readable name of the token class. @@ -111,12 +111,12 @@ message EventIssue { bool mintable = 7; } -// EventGrant is emitted when a granter grants its permission to a grantee. +// EventGranted is emitted when a granter grants its permission to a grantee. // // Info: `granter` would be empty if the permission is granted by an issuance. // // Since: 0.46.0 (finschia) -message EventGrant { +message EventGranted { // contract id associated with the token class. string contract_id = 1; // address which granted the permission to `grantee`. @@ -128,10 +128,10 @@ message EventGrant { Permission permission = 4; } -// EventAbandon is emitted when a grantee abandons its permission. +// EventRenounced is emitted when a grantee abandons its permission. // // Since: 0.46.0 (finschia) -message EventAbandon { +message EventRenounced { // contract id associated with the token class. string contract_id = 1; // address of the grantee which abandons its grant. diff --git a/x/token/event.go b/x/token/event.go index c2a352261f..58a4dd010e 100644 --- a/x/token/event.go +++ b/x/token/event.go @@ -32,7 +32,7 @@ func AttributeKeyFromString(name string) AttributeKey { return AttributeKey(AttributeKey_value[attributeKeyName]) } -func NewEventIssueToken(event EventIssue, grantee, to sdk.AccAddress, amount sdk.Int) sdk.Event { +func NewEventIssueToken(event EventIssued, grantee, to sdk.AccAddress, amount sdk.Int) sdk.Event { eventType := EventTypeIssueToken.String() attributes := map[AttributeKey]string{ AttributeKeyContractID: event.ContractId, @@ -157,7 +157,7 @@ func NewEventTransferFrom(event EventSent) sdk.Event { return res } -func NewEventGrantPermToken(event EventGrant) sdk.Event { +func NewEventGrantPermToken(event EventGranted) sdk.Event { eventType := EventTypeGrantPermToken.String() attributes := map[AttributeKey]string{ AttributeKeyContractID: event.ContractId, @@ -176,7 +176,7 @@ func NewEventGrantPermToken(event EventGrant) sdk.Event { return res } -func NewEventGrantPermTokenHead(event EventGrant) sdk.Event { +func NewEventGrantPermTokenHead(event EventGranted) sdk.Event { eventType := EventTypeGrantPermToken.String() attributes := map[AttributeKey]string{ AttributeKeyContractID: event.ContractId, @@ -194,7 +194,7 @@ func NewEventGrantPermTokenHead(event EventGrant) sdk.Event { return res } -func NewEventGrantPermTokenBody(event EventGrant) sdk.Event { +func NewEventGrantPermTokenBody(event EventGranted) sdk.Event { eventType := EventTypeGrantPermToken.String() attributes := map[AttributeKey]string{ AttributeKeyPerm: LegacyPermission(event.Permission).String(), @@ -208,7 +208,7 @@ func NewEventGrantPermTokenBody(event EventGrant) sdk.Event { return res } -func NewEventRevokePermToken(event EventAbandon) sdk.Event { +func NewEventRevokePermToken(event EventRenounced) sdk.Event { eventType := EventTypeRevokePermToken.String() attributes := map[AttributeKey]string{ AttributeKeyContractID: event.ContractId, diff --git a/x/token/event.pb.go b/x/token/event.pb.go index 68164adc7a..1e6dc3c75f 100644 --- a/x/token/event.pb.go +++ b/x/token/event.pb.go @@ -345,10 +345,10 @@ func (m *EventRevokedOperator) GetOperator() string { return "" } -// EventIssue is emitted when a new token class is created. +// EventIssued is emitted when a new token class is created. // // Since: 0.46.0 (finschia) -type EventIssue struct { +type EventIssued struct { // contract id associated with the token class. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` // name defines the human-readable name of the token class. @@ -365,18 +365,18 @@ type EventIssue struct { Mintable bool `protobuf:"varint,7,opt,name=mintable,proto3" json:"mintable,omitempty"` } -func (m *EventIssue) Reset() { *m = EventIssue{} } -func (m *EventIssue) String() string { return proto.CompactTextString(m) } -func (*EventIssue) ProtoMessage() {} -func (*EventIssue) Descriptor() ([]byte, []int) { +func (m *EventIssued) Reset() { *m = EventIssued{} } +func (m *EventIssued) String() string { return proto.CompactTextString(m) } +func (*EventIssued) ProtoMessage() {} +func (*EventIssued) Descriptor() ([]byte, []int) { return fileDescriptor_d7505f4c4cdec18e, []int{3} } -func (m *EventIssue) XXX_Unmarshal(b []byte) error { +func (m *EventIssued) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *EventIssue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *EventIssued) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_EventIssue.Marshal(b, m, deterministic) + return xxx_messageInfo_EventIssued.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -386,73 +386,73 @@ func (m *EventIssue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } -func (m *EventIssue) XXX_Merge(src proto.Message) { - xxx_messageInfo_EventIssue.Merge(m, src) +func (m *EventIssued) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventIssued.Merge(m, src) } -func (m *EventIssue) XXX_Size() int { +func (m *EventIssued) XXX_Size() int { return m.Size() } -func (m *EventIssue) XXX_DiscardUnknown() { - xxx_messageInfo_EventIssue.DiscardUnknown(m) +func (m *EventIssued) XXX_DiscardUnknown() { + xxx_messageInfo_EventIssued.DiscardUnknown(m) } -var xxx_messageInfo_EventIssue proto.InternalMessageInfo +var xxx_messageInfo_EventIssued proto.InternalMessageInfo -func (m *EventIssue) GetContractId() string { +func (m *EventIssued) GetContractId() string { if m != nil { return m.ContractId } return "" } -func (m *EventIssue) GetName() string { +func (m *EventIssued) GetName() string { if m != nil { return m.Name } return "" } -func (m *EventIssue) GetSymbol() string { +func (m *EventIssued) GetSymbol() string { if m != nil { return m.Symbol } return "" } -func (m *EventIssue) GetUri() string { +func (m *EventIssued) GetUri() string { if m != nil { return m.Uri } return "" } -func (m *EventIssue) GetMeta() string { +func (m *EventIssued) GetMeta() string { if m != nil { return m.Meta } return "" } -func (m *EventIssue) GetDecimals() int32 { +func (m *EventIssued) GetDecimals() int32 { if m != nil { return m.Decimals } return 0 } -func (m *EventIssue) GetMintable() bool { +func (m *EventIssued) GetMintable() bool { if m != nil { return m.Mintable } return false } -// EventGrant is emitted when a granter grants its permission to a grantee. +// EventGranted is emitted when a granter grants its permission to a grantee. // // Info: `granter` would be empty if the permission is granted by an issuance. // // Since: 0.46.0 (finschia) -type EventGrant struct { +type EventGranted struct { // contract id associated with the token class. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` // address which granted the permission to `grantee`. @@ -464,18 +464,18 @@ type EventGrant struct { Permission Permission `protobuf:"varint,4,opt,name=permission,proto3,enum=lbm.token.v1.Permission" json:"permission,omitempty"` } -func (m *EventGrant) Reset() { *m = EventGrant{} } -func (m *EventGrant) String() string { return proto.CompactTextString(m) } -func (*EventGrant) ProtoMessage() {} -func (*EventGrant) Descriptor() ([]byte, []int) { +func (m *EventGranted) Reset() { *m = EventGranted{} } +func (m *EventGranted) String() string { return proto.CompactTextString(m) } +func (*EventGranted) ProtoMessage() {} +func (*EventGranted) Descriptor() ([]byte, []int) { return fileDescriptor_d7505f4c4cdec18e, []int{4} } -func (m *EventGrant) XXX_Unmarshal(b []byte) error { +func (m *EventGranted) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *EventGrant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *EventGranted) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_EventGrant.Marshal(b, m, deterministic) + return xxx_messageInfo_EventGranted.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -485,50 +485,50 @@ func (m *EventGrant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } -func (m *EventGrant) XXX_Merge(src proto.Message) { - xxx_messageInfo_EventGrant.Merge(m, src) +func (m *EventGranted) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventGranted.Merge(m, src) } -func (m *EventGrant) XXX_Size() int { +func (m *EventGranted) XXX_Size() int { return m.Size() } -func (m *EventGrant) XXX_DiscardUnknown() { - xxx_messageInfo_EventGrant.DiscardUnknown(m) +func (m *EventGranted) XXX_DiscardUnknown() { + xxx_messageInfo_EventGranted.DiscardUnknown(m) } -var xxx_messageInfo_EventGrant proto.InternalMessageInfo +var xxx_messageInfo_EventGranted proto.InternalMessageInfo -func (m *EventGrant) GetContractId() string { +func (m *EventGranted) GetContractId() string { if m != nil { return m.ContractId } return "" } -func (m *EventGrant) GetGranter() string { +func (m *EventGranted) GetGranter() string { if m != nil { return m.Granter } return "" } -func (m *EventGrant) GetGrantee() string { +func (m *EventGranted) GetGrantee() string { if m != nil { return m.Grantee } return "" } -func (m *EventGrant) GetPermission() Permission { +func (m *EventGranted) GetPermission() Permission { if m != nil { return m.Permission } return PermissionUnspecified } -// EventAbandon is emitted when a grantee abandons its permission. +// EventRenounced is emitted when a grantee abandons its permission. // // Since: 0.46.0 (finschia) -type EventAbandon struct { +type EventRenounced struct { // contract id associated with the token class. ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` // address of the grantee which abandons its grant. @@ -537,18 +537,18 @@ type EventAbandon struct { Permission Permission `protobuf:"varint,3,opt,name=permission,proto3,enum=lbm.token.v1.Permission" json:"permission,omitempty"` } -func (m *EventAbandon) Reset() { *m = EventAbandon{} } -func (m *EventAbandon) String() string { return proto.CompactTextString(m) } -func (*EventAbandon) ProtoMessage() {} -func (*EventAbandon) Descriptor() ([]byte, []int) { +func (m *EventRenounced) Reset() { *m = EventRenounced{} } +func (m *EventRenounced) String() string { return proto.CompactTextString(m) } +func (*EventRenounced) ProtoMessage() {} +func (*EventRenounced) Descriptor() ([]byte, []int) { return fileDescriptor_d7505f4c4cdec18e, []int{5} } -func (m *EventAbandon) XXX_Unmarshal(b []byte) error { +func (m *EventRenounced) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *EventAbandon) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *EventRenounced) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_EventAbandon.Marshal(b, m, deterministic) + return xxx_messageInfo_EventRenounced.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -558,33 +558,33 @@ func (m *EventAbandon) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return b[:n], nil } } -func (m *EventAbandon) XXX_Merge(src proto.Message) { - xxx_messageInfo_EventAbandon.Merge(m, src) +func (m *EventRenounced) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventRenounced.Merge(m, src) } -func (m *EventAbandon) XXX_Size() int { +func (m *EventRenounced) XXX_Size() int { return m.Size() } -func (m *EventAbandon) XXX_DiscardUnknown() { - xxx_messageInfo_EventAbandon.DiscardUnknown(m) +func (m *EventRenounced) XXX_DiscardUnknown() { + xxx_messageInfo_EventRenounced.DiscardUnknown(m) } -var xxx_messageInfo_EventAbandon proto.InternalMessageInfo +var xxx_messageInfo_EventRenounced proto.InternalMessageInfo -func (m *EventAbandon) GetContractId() string { +func (m *EventRenounced) GetContractId() string { if m != nil { return m.ContractId } return "" } -func (m *EventAbandon) GetGrantee() string { +func (m *EventRenounced) GetGrantee() string { if m != nil { return m.Grantee } return "" } -func (m *EventAbandon) GetPermission() Permission { +func (m *EventRenounced) GetPermission() Permission { if m != nil { return m.Permission } @@ -799,9 +799,9 @@ func init() { proto.RegisterType((*EventSent)(nil), "lbm.token.v1.EventSent") proto.RegisterType((*EventAuthorizedOperator)(nil), "lbm.token.v1.EventAuthorizedOperator") proto.RegisterType((*EventRevokedOperator)(nil), "lbm.token.v1.EventRevokedOperator") - proto.RegisterType((*EventIssue)(nil), "lbm.token.v1.EventIssue") - proto.RegisterType((*EventGrant)(nil), "lbm.token.v1.EventGrant") - proto.RegisterType((*EventAbandon)(nil), "lbm.token.v1.EventAbandon") + proto.RegisterType((*EventIssued)(nil), "lbm.token.v1.EventIssued") + proto.RegisterType((*EventGranted)(nil), "lbm.token.v1.EventGranted") + proto.RegisterType((*EventRenounced)(nil), "lbm.token.v1.EventRenounced") proto.RegisterType((*EventMinted)(nil), "lbm.token.v1.EventMinted") proto.RegisterType((*EventBurned)(nil), "lbm.token.v1.EventBurned") proto.RegisterType((*EventModified)(nil), "lbm.token.v1.EventModified") @@ -810,77 +810,77 @@ func init() { func init() { proto.RegisterFile("lbm/token/v1/event.proto", fileDescriptor_d7505f4c4cdec18e) } var fileDescriptor_d7505f4c4cdec18e = []byte{ - // 1107 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xcf, 0x6f, 0xe3, 0x44, - 0x14, 0x8e, 0x9b, 0x34, 0x6d, 0xa7, 0xdd, 0x62, 0xbc, 0x69, 0xeb, 0x35, 0x28, 0x35, 0x3d, 0x95, - 0x85, 0x4d, 0xd8, 0x1f, 0xc0, 0x2e, 0x37, 0xa7, 0x71, 0x57, 0x56, 0x6b, 0x3b, 0x9a, 0x38, 0x85, - 0x72, 0x89, 0x9c, 0x64, 0x9a, 0x5a, 0x8d, 0x3d, 0x91, 0xed, 0x94, 0x0d, 0x27, 0x24, 0x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- 0x6f, 0xa4, 0xe0, 0xaa, 0xa2, 0x19, 0xec, 0x82, 0xb0, 0x39, 0x0b, 0x44, 0x2e, 0x41, 0x13, 0x4f, - 0x5d, 0x07, 0x6e, 0x74, 0xa0, 0xc6, 0x16, 0xe7, 0xc0, 0xa4, 0xc0, 0x21, 0xf8, 0x11, 0xa8, 0xcc, - 0x81, 0xbb, 0xfb, 0x50, 0x57, 0xd9, 0x92, 0x20, 0xcc, 0x02, 0x71, 0x33, 0xcf, 0xd8, 0x27, 0x85, - 0xfc, 0x10, 0x6c, 0xa5, 0xf5, 0xe8, 0x4d, 0x65, 0xff, 0xb8, 0x6b, 0xe8, 0x07, 0xb2, 0xc6, 0x2e, - 0xce, 0x65, 0x4d, 0xeb, 0x34, 0x0d, 0x83, 0xd5, 0xc0, 0xed, 0x14, 0xcd, 0x80, 0x92, 0xd6, 0xde, - 0x97, 0x21, 0x5b, 0x16, 0x36, 0x66, 0x81, 0xf8, 0x66, 0x42, 0x31, 0x5c, 0xd3, 0xf1, 0x4e, 0x90, - 0xcb, 0x7d, 0x0c, 0xf8, 0x6b, 0xf0, 0xa1, 0xc0, 0x25, 0xe1, 0xce, 0x2c, 0x10, 0x37, 0x72, 0x24, - 0xaa, 0xef, 0x23, 0xb0, 0x91, 0x22, 0x3e, 0x85, 0x92, 0x66, 0x74, 0x5b, 0x32, 0x54, 0xd9, 0x65, - 0xe1, 0xad, 0x59, 0x20, 0x6e, 0x25, 0x2c, 0x7a, 0x5b, 0x91, 0x76, 0x0d, 0x05, 0x3e, 0xce, 0x14, - 0x13, 0xca, 0x47, 0xfa, 0x81, 0x1c, 0x12, 0x57, 0x84, 0xb7, 0x67, 0x81, 0xc8, 0x27, 0xc4, 0xf0, - 0x39, 0xb8, 0x62, 0x66, 0xa5, 0x4a, 0xad, 0x16, 0xd4, 0x8f, 0xe4, 0xe8, 0x48, 0xc0, 0x9c, 0x54, - 0x69, 0x3c, 0x76, 0xf1, 0x79, 0x58, 0x5a, 0x61, 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xe4, - 0x43, 0x91, 0x56, 0x96, 0x1a, 0x87, 0x32, 0xbb, 0x92, 0x67, 0xa9, 0xd1, 0xdb, 0x9a, 0x3f, 0x6b, - 0xda, 0x00, 0x20, 0x7f, 0xd6, 0xd4, 0xfb, 0xbb, 0x80, 0xcd, 0xa2, 0x0d, 0x9d, 0x5d, 0x15, 0xb8, - 0x59, 0x20, 0xae, 0xa7, 0xb1, 0x06, 0xce, 0xef, 0x4b, 0x9d, 0xbe, 0x96, 0xdf, 0x97, 0xd8, 0x3c, - 0xaf, 0x3d, 0x32, 0x39, 0x64, 0x6f, 0xe5, 0xb5, 0x47, 0x16, 0x77, 0xf3, 0xe5, 0x6b, 0x41, 0xfd, - 0xb3, 0x63, 0x76, 0x3d, 0x5f, 0xbe, 0x96, 0x8b, 0x9f, 0x4d, 0xaf, 0xda, 0xa1, 0xf1, 0xe4, 0xf9, - 0x45, 0x95, 0x79, 0x71, 0x51, 0x65, 0xfe, 0xbc, 0xa8, 0x32, 0xdf, 0x5d, 0x56, 0x0b, 0x2f, 0x2e, - 0xab, 0x85, 0xdf, 0x2f, 0xab, 0x85, 0xcf, 0xb7, 0xff, 0xee, 0xb9, 0x78, 0x16, 0xfe, 0xdb, 0xf6, - 0xca, 0xf4, 0xe7, 0xf6, 0xe1, 0x5f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x46, 0xa0, 0xa4, 0x66, 0x36, - 0x0b, 0x00, 0x00, + // 1109 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0x41, 0x73, 0xdb, 0x44, + 0x14, 0xb6, 0x62, 0xc7, 0x49, 0x36, 0x69, 0x10, 0xaa, 0x93, 0xa8, 0x82, 0x71, 0x44, 0x4e, 0xa1, + 0x50, 0x9b, 0xa6, 0x05, 0x5a, 0x6e, 0x72, 0xac, 0x64, 0x34, 0x89, 0x24, 0xcf, 0x5a, 0x0e, 0x84,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, 0x6c, + 0xb6, 0x64, 0x96, 0x11, 0xb6, 0xa6, 0x81, 0x78, 0x7b, 0x86, 0xa7, 0x17, 0x81, 0x41, 0x94, 0x70, + 0x1f, 0x80, 0xb7, 0x12, 0x70, 0x55, 0xd1, 0x0c, 0x76, 0x41, 0xd8, 0x9c, 0x06, 0x22, 0x37, 0x43, + 0x13, 0x4f, 0xdd, 0x04, 0xae, 0xb5, 0xa0, 0xc6, 0xe6, 0xe7, 0xc0, 0xa4, 0xc0, 0x21, 0xf8, 0x21, + 0x28, 0xcd, 0x81, 0xdb, 0x07, 0x50, 0x57, 0xd9, 0x82, 0x20, 0x4c, 0x03, 0x71, 0x33, 0xcb, 0x38, + 0x20, 0x85, 0xfc, 0x18, 0x6c, 0x25, 0xf5, 0xe8, 0x75, 0xe5, 0xe0, 0xb4, 0x6d, 0xe8, 0x47, 0xb2, + 0xc6, 0x2e, 0xce, 0x65, 0x4d, 0xeb, 0x34, 0x09, 0x83, 0x55, 0xc0, 0xed, 0x04, 0xcd, 0x80, 0x92, + 0xd6, 0x3c, 0x90, 0x21, 0x5b, 0x14, 0x36, 0xa6, 0x81, 0xf8, 0xf6, 0x8c, 0x62, 0xb8, 0xa6, 0xe3, + 0x9d, 0x21, 0x97, 0xfb, 0x14, 0xf0, 0x37, 0xe0, 0x43, 0x81, 0x4b, 0xc2, 0x9d, 0x69, 0x20, 0x6e, + 0x64, 0x48, 0x54, 0xdf, 0x27, 0x60, 0x23, 0x41, 0x3c, 0x84, 0x92, 0x66, 0xb4, 0x1b, 0x32, 0x54, + 0xd9, 0x65, 0xe1, 0x9d, 0x69, 0x20, 0x6e, 0xcd, 0x58, 0xf4, 0xc6, 0x22, 0xed, 0x1a, 0x0a, 0x7c, + 0x94, 0x2a, 0x26, 0x94, 0x4f, 0xf4, 0x23, 0x39, 0x24, 0xae, 0x08, 0xef, 0x4e, 0x03, 0x91, 0x9f, + 0x11, 0xc3, 0x37, 0xe1, 0x9a, 0x99, 0x96, 0x2a, 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f1, 0x01, 0xd8, + 0x48, 0xb3, 0x14, 0xf5, 0xb0, 0xdd, 0x82, 0x0a, 0xbb, 0x9c, 0x25, 0x29, 0xb6, 0xd9, 0x47, 0x2d, + 0xa8, 0x64, 0x43, 0x91, 0x56, 0x96, 0x6a, 0xc7, 0x32, 0xbb, 0x92, 0x65, 0xa9, 0xd1, 0xfb, 0x9a, + 0x3d, 0x6b, 0xda, 0x00, 0x20, 0x7b, 0xd6, 0xd4, 0xfb, 0xbb, 0x80, 0x4d, 0xa3, 0x0d, 0x9d, 0x5d, + 0x15, 0xb8, 0x69, 0x20, 0xae, 0x27, 0xb1, 0x06, 0xce, 0xee, 0x4b, 0x9d, 0xbe, 0x96, 0xdd, 0x97, + 0xd8, 0x3c, 0xab, 0x3d, 0x32, 0x39, 0x64, 0x6f, 0x65, 0xb5, 0x47, 0x16, 0x77, 0xb3, 0xe5, 0x6b, + 0x40, 0xfd, 0x8b, 0x53, 0x76, 0x3d, 0x5b, 0xbe, 0x86, 0x8b, 0x9f, 0x4c, 0xae, 0xdb, 0xa1, 0xf6, + 0xf8, 0xe9, 0x65, 0x99, 0x79, 0x76, 0x59, 0x66, 0xfe, 0xba, 0x2c, 0x33, 0x3f, 0x5c, 0x95, 0x73, + 0xcf, 0xae, 0xca, 0xb9, 0x3f, 0xae, 0xca, 0xb9, 0x2f, 0xb7, 0xff, 0xe9, 0xb9, 0x78, 0x12, 0xfe, + 0xe0, 0x76, 0x8a, 0xf4, 0x0f, 0xf7, 0xc1, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x02, 0xe9, 0xc6, + 0x37, 0x3b, 0x0b, 0x00, 0x00, } func (m *EventSent) Marshal() (dAtA []byte, err error) { @@ -1032,7 +1032,7 @@ func (m *EventRevokedOperator) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *EventIssue) Marshal() (dAtA []byte, err error) { +func (m *EventIssued) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1042,12 +1042,12 @@ func (m *EventIssue) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *EventIssue) MarshalTo(dAtA []byte) (int, error) { +func (m *EventIssued) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *EventIssue) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *EventIssued) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1105,7 +1105,7 @@ func (m *EventIssue) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *EventGrant) Marshal() (dAtA []byte, err error) { +func (m *EventGranted) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1115,12 +1115,12 @@ func (m *EventGrant) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *EventGrant) MarshalTo(dAtA []byte) (int, error) { +func (m *EventGranted) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *EventGrant) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *EventGranted) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1154,7 +1154,7 @@ func (m *EventGrant) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *EventAbandon) Marshal() (dAtA []byte, err error) { +func (m *EventRenounced) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1164,12 +1164,12 @@ func (m *EventAbandon) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *EventAbandon) MarshalTo(dAtA []byte) (int, error) { +func (m *EventRenounced) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *EventAbandon) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *EventRenounced) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1435,7 +1435,7 @@ func (m *EventRevokedOperator) Size() (n int) { return n } -func (m *EventIssue) Size() (n int) { +func (m *EventIssued) Size() (n int) { if m == nil { return 0 } @@ -1470,7 +1470,7 @@ func (m *EventIssue) Size() (n int) { return n } -func (m *EventGrant) Size() (n int) { +func (m *EventGranted) Size() (n int) { if m == nil { return 0 } @@ -1494,7 +1494,7 @@ func (m *EventGrant) Size() (n int) { return n } -func (m *EventAbandon) Size() (n int) { +func (m *EventRenounced) Size() (n int) { if m == nil { return 0 } @@ -2093,7 +2093,7 @@ func (m *EventRevokedOperator) Unmarshal(dAtA []byte) error { } return nil } -func (m *EventIssue) Unmarshal(dAtA []byte) error { +func (m *EventIssued) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2116,10 +2116,10 @@ func (m *EventIssue) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EventIssue: wiretype end group for non-group") + return fmt.Errorf("proto: EventIssued: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EventIssue: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EventIssued: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -2342,7 +2342,7 @@ func (m *EventIssue) Unmarshal(dAtA []byte) error { } return nil } -func (m *EventGrant) Unmarshal(dAtA []byte) error { +func (m *EventGranted) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2365,10 +2365,10 @@ func (m *EventGrant) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EventGrant: wiretype end group for non-group") + return fmt.Errorf("proto: EventGranted: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EventGrant: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EventGranted: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -2507,7 +2507,7 @@ func (m *EventGrant) Unmarshal(dAtA []byte) error { } return nil } -func (m *EventAbandon) Unmarshal(dAtA []byte) error { +func (m *EventRenounced) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2530,10 +2530,10 @@ func (m *EventAbandon) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: EventAbandon: wiretype end group for non-group") + return fmt.Errorf("proto: EventRenounced: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: EventAbandon: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: EventRenounced: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: diff --git a/x/token/event_test.go b/x/token/event_test.go index 15a20ce00b..1f65e61574 100644 --- a/x/token/event_test.go +++ b/x/token/event_test.go @@ -50,7 +50,7 @@ func TestNewEventIssueToken(t *testing.T) { rand.Seed(time.Now().UnixNano()) str := func() string { return randomString(8) } - event := token.EventIssue{ + event := token.EventIssued{ ContractId: str(), Name: str(), Symbol: str(), @@ -257,7 +257,7 @@ func TestNewEventGrantPermToken(t *testing.T) { return token.Permission(1 + rand.Intn(n)) } - event := token.EventGrant{ + event := token.EventGranted{ ContractId: str(), Granter: str(), Grantee: str(), @@ -286,7 +286,7 @@ func TestNewEventGrantPermTokenHead(t *testing.T) { return token.Permission(1 + rand.Intn(n)) } - event := token.EventGrant{ + event := token.EventGranted{ ContractId: str(), Granter: str(), Grantee: str(), @@ -313,7 +313,7 @@ func TestNewEventGrantPermTokenBody(t *testing.T) { return token.Permission(1 + rand.Intn(n)) } - event := token.EventGrant{ + event := token.EventGranted{ ContractId: str(), Granter: str(), Grantee: str(), @@ -339,7 +339,7 @@ func TestNewEventRevokePermToken(t *testing.T) { return token.Permission(1 + rand.Intn(n)) } - event := token.EventAbandon{ + event := token.EventRenounced{ ContractId: str(), Grantee: str(), Permission: permission(), diff --git a/x/token/keeper/msg_server.go b/x/token/keeper/msg_server.go index 58111076e8..d1407ad4d3 100644 --- a/x/token/keeper/msg_server.go +++ b/x/token/keeper/msg_server.go @@ -196,7 +196,7 @@ func (s msgServer) GrantPermission(c context.Context, req *token.MsgGrantPermiss s.keeper.Grant(ctx, req.ContractId, granter, grantee, permission) - event := token.EventGrant{ + event := token.EventGranted{ ContractId: req.ContractId, Granter: req.From, Grantee: req.To, @@ -222,7 +222,7 @@ func (s msgServer) RevokePermission(c context.Context, req *token.MsgRevokePermi s.keeper.Abandon(ctx, req.ContractId, grantee, permission) - event := token.EventAbandon{ + event := token.EventRenounced{ ContractId: req.ContractId, Grantee: req.From, Permission: permission, diff --git a/x/token/keeper/supply.go b/x/token/keeper/supply.go index 8ca77f81d4..54fa49ad61 100644 --- a/x/token/keeper/supply.go +++ b/x/token/keeper/supply.go @@ -9,7 +9,7 @@ import ( func (k Keeper) Issue(ctx sdk.Context, class token.TokenClass, owner, to sdk.AccAddress, amount sdk.Int) { k.issue(ctx, class) - event := token.EventIssue{ + event := token.EventIssued{ ContractId: class.ContractId, Name: class.Name, Symbol: class.Symbol, @@ -34,7 +34,7 @@ func (k Keeper) Issue(ctx sdk.Context, class token.TokenClass, owner, to sdk.Acc } // legacy - eventGrant := token.EventGrant{ + eventGrant := token.EventGranted{ ContractId: class.ContractId, Grantee: to.String(), } @@ -307,7 +307,7 @@ func (k Keeper) modify(ctx sdk.Context, contractID string, changes []token.Pair) func (k Keeper) Grant(ctx sdk.Context, contractID string, granter, grantee sdk.AccAddress, permission token.Permission) { k.grant(ctx, contractID, grantee, permission) - event := token.EventGrant{ + event := token.EventGranted{ ContractId: contractID, Granter: granter.String(), Grantee: grantee.String(), @@ -330,7 +330,7 @@ func (k Keeper) grant(ctx sdk.Context, contractID string, grantee sdk.AccAddress func (k Keeper) Abandon(ctx sdk.Context, contractID string, grantee sdk.AccAddress, permission token.Permission) { k.deleteGrant(ctx, contractID, grantee, permission) - event := token.EventAbandon{ + event := token.EventRenounced{ ContractId: contractID, Grantee: grantee.String(), Permission: permission, From 5c1486695051d39a4a8618d29cbbcf2ddd85b157 Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Wed, 10 Aug 2022 03:11:54 +0000 Subject: [PATCH 2/3] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e10fc4952..0b07d451c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -62,6 +62,7 @@ Ref: https://keepachangelog.com/en/1.0.0/ * (x/collection) [\#608](https://github.com/line/lbm-sdk/pull/608) remove new APIs on x/collection * (x/token) [\#609](https://github.com/line/lbm-sdk/pull/609) remove new APIs on x/token * (x/collection) [\#621](https://github.com/line/lbm-sdk/pull/621) add additional information into EventXXXChanged +* (x/token) [\#637](https://github.com/line/lbm-sdk/pull/637) rename x/token events ### Bug Fixes * (x/wasm) [\#453](https://github.com/line/lbm-sdk/pull/453) modify wasm grpc query api path From 36eb0b99eb801af642c5b3180a339186ccc00173 Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Wed, 10 Aug 2022 04:44:54 +0000 Subject: [PATCH 3/3] Fix the unchanged comment --- docs/core/proto-docs.md | 2 +- proto/lbm/token/v1/event.proto | 2 +- x/token/event.pb.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/core/proto-docs.md b/docs/core/proto-docs.md index 8f5b7d1173..aa534d4899 100644 --- a/docs/core/proto-docs.md +++ b/docs/core/proto-docs.md @@ -17590,7 +17590,7 @@ Since: 0.46.0 (finschia) ### EventRenounced -EventRenounced is emitted when a grantee abandons its permission. +EventRenounced is emitted when a grantee renounces its permission. Since: 0.46.0 (finschia) diff --git a/proto/lbm/token/v1/event.proto b/proto/lbm/token/v1/event.proto index dd7f788961..7cca1e5aeb 100644 --- a/proto/lbm/token/v1/event.proto +++ b/proto/lbm/token/v1/event.proto @@ -128,7 +128,7 @@ message EventGranted { Permission permission = 4; } -// EventRenounced is emitted when a grantee abandons its permission. +// EventRenounced is emitted when a grantee renounces its permission. // // Since: 0.46.0 (finschia) message EventRenounced { diff --git a/x/token/event.pb.go b/x/token/event.pb.go index 1e6dc3c75f..e95334debd 100644 --- a/x/token/event.pb.go +++ b/x/token/event.pb.go @@ -525,7 +525,7 @@ func (m *EventGranted) GetPermission() Permission { return PermissionUnspecified } -// EventRenounced is emitted when a grantee abandons its permission. +// EventRenounced is emitted when a grantee renounces its permission. // // Since: 0.46.0 (finschia) type EventRenounced struct {