-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix!: update x/collection,token proto #863
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #863 +/- ##
=======================================
Coverage 62.37% 62.37%
=======================================
Files 653 653
Lines 79967 79976 +9
=======================================
+ Hits 49876 49885 +9
Misses 27399 27399
Partials 2692 2692
|
Could check comment? ex)
token/v1/tx.proto
collection /v1/tx.proto
|
The conditions on the errors would be wiped out from the comment, because we will introduce its own codespace (on #849). It would be obvious from the error code. |
Could you check these? collection/v1/query.protorpc Approved(QueryApprovedRequest) returns (QueryApprovedResponse) token/v1/query.protorpc Approved(QueryApprovedRequest) returns (QueryApprovedResponse) example)
|
// class id associated with the token class. | ||
string class_id = 3; | ||
// token id associated with the token class. | ||
string token_id = 3; |
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.
(For confirmation) This field was changed from a 8-bytes ID to a 16 bytes ID, am I correct?
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.
Yes, the change has been applied.
proto/lbm/collection/v1/event.proto
Outdated
// changes of the attributes applied. | ||
repeated Attribute changes = 4 [(gogoproto.nullable) = false]; |
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's helpful for client developers to add a comment about possible attribute keys. For example,
// changes of the attributes applied. | |
repeated Attribute changes = 4 [(gogoproto.nullable) = false]; | |
// changes of the attributes applied. | |
// Possible attribute keys are same as those of `MsgModify.changes`. | |
repeated Attribute changes = 4 [(gogoproto.nullable) = false]; |
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 added the comments.
// MsgBurnFromResponse defines the Msg/BurnFrom response type. | ||
message MsgBurnFromResponse {} | ||
// MsgOperatorBurnResponse defines the Msg/OperatorBurn response type. | ||
message MsgOperatorBurnResponse {} | ||
|
||
// MsgModify defines the Msg/Modify request type. | ||
// |
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's helpful for client developers to add a comment about possible fields of changes
. For example,
// changes to apply.
// possible fields: uri, meta, ...
repeated Pair changes = 3 [(gogoproto.nullable) = false];
// | ||
// Since: 0.46.0 (finschia) | ||
message EventModified { | ||
// contract id associated with the token class. | ||
// contract id associated with the contract. | ||
string contract_id = 1; | ||
// address which triggered the modify. | ||
string operator = 2; |
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's helpful for client developers to add a comment about possible fields of changes. For example,
// changes on the metadata of the class.
// Possible fields are same as those of `MsgModify.changes`.
repeated Pair changes = 3 [(gogoproto.nullable) = false];
* main: feat!: add MultiSend deactivation (Finschia#876) chore(deps): Bump github.com/gogo/protobuf in /ics23/go (Finschia#816) fix: do not create account on x/token,collection (Finschia#866) fix!: update x/collection,token proto (Finschia#863) # Conflicts: # CHANGELOG.md
Description
It would apply the client's requirements on x/collection,token proto.
Checklist:
CHANGELOG.md
client/docs/swagger-ui/swagger.yaml