-
Notifications
You must be signed in to change notification settings - Fork 2
Conversation
2869719
to
2963287
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that there are several commits in here that should already be in module/group
. Is there something off with that branch or is it this branch?
} | ||
|
||
func (a AppModule) RegisterCodec(cdc *codec.Codec) { | ||
RegisterCodec(cdc) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can just leave this blank. We don't need amino.
2be53be
to
e617156
Compare
🚨 This PR blocks the other group PRs. |
This has been pending for a while already while I was working mostly on #24 . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks fine. Left a few comments, nothing blocking and want to keep this moving forward, so merging.
sdk.EventTypeMessage, | ||
sdk.NewAttribute(sdk.AttributeKeyModule, ModuleName), | ||
sdk.NewAttribute(sdk.AttributeKeySender, msg.Admin.String()), | ||
), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we include the new group ID as an event? Not blocking, just wondering
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think now adding events can be a task of it's own.
|
||
type GroupID uint64 | ||
|
||
func (g GroupID) Byte() []byte { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be plural Bytes
, but I believe it's an ORM thing and we can address in a separate PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ja, plural. will add to #24
Implement basic workflow to create a group
Happy path mostly. Proper implementation and cleaning up after #24