Skip to content

Commit

Permalink
chore: add amino.name annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
dadamu committed Jun 26, 2023
1 parent d209e92 commit e240255
Show file tree
Hide file tree
Showing 24 changed files with 687 additions and 564 deletions.
14 changes: 14 additions & 0 deletions proto/desmos/posts/v3/msgs.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
syntax = "proto3";
package desmos.posts.v3;

import "amino/amino.proto";
import "gogoproto/gogo.proto";
import "google/protobuf/any.proto";
import "google/protobuf/timestamp.proto";
Expand Down Expand Up @@ -79,6 +80,7 @@ service Msg {
// MsgCreatePost represents the message to be used to create a post.
message MsgCreatePost {
option (cosmos.msg.v1.signer) = "author";
option (amino.name) = "desmos/MsgCreatePost";

// Id of the subspace inside which the post must be created
uint64 subspace_id = 1 [
Expand Down Expand Up @@ -155,6 +157,7 @@ message MsgCreatePostResponse {
// MsgEditPost represents the message to be used to edit a post.
message MsgEditPost {
option (cosmos.msg.v1.signer) = "editor";
option (amino.name) = "desmos/MsgEditPost";

// Id of the subspace inside which the post is
uint64 subspace_id = 1 [
Expand Down Expand Up @@ -200,6 +203,7 @@ message MsgEditPostResponse {
// MsgDeletePost represents the message used when deleting a post.
message MsgDeletePost {
option (cosmos.msg.v1.signer) = "signer";
option (amino.name) = "desmos/MsgDeletePost";

// Id of the subspace containing the post
uint64 subspace_id = 1 [
Expand Down Expand Up @@ -227,6 +231,7 @@ message MsgDeletePostResponse {}
// used when adding an attachment to post
message MsgAddPostAttachment {
option (cosmos.msg.v1.signer) = "editor";
option (amino.name) = "desmos/MsgAddPostAttachment";

// Id of the subspace containing the post
uint64 subspace_id = 1 [
Expand Down Expand Up @@ -273,6 +278,7 @@ message MsgAddPostAttachmentResponse {
// removing an attachment from a post
message MsgRemovePostAttachment {
option (cosmos.msg.v1.signer) = "editor";
option (amino.name) = "desmos/MsgRemovePostAttachment";

// Id of the subspace containing the post
uint64 subspace_id = 1 [
Expand Down Expand Up @@ -313,6 +319,7 @@ message MsgRemovePostAttachmentResponse {
// MsgAnswerPoll represents the message used to answer a poll
message MsgAnswerPoll {
option (cosmos.msg.v1.signer) = "signer";
option (amino.name) = "desmos/MsgAnswerPoll";

// Id of the subspace containing the post
uint64 subspace_id = 1 [
Expand Down Expand Up @@ -351,6 +358,8 @@ message MsgAnswerPollResponse {}
// Since: Desmos 5.0.0
message MsgUpdateParams {
option (cosmos.msg.v1.signer) = "authority";
option (amino.name) = "desmos/x/posts/MsgUpdateParams";


// authority is the address that controls the module (defaults to x/gov unless
// overwritten).
Expand All @@ -376,6 +385,7 @@ message MsgUpdateParamsResponse {}
// Since: Desmos 6.0.0
message MsgMovePost {
option (cosmos.msg.v1.signer) = "owner";
option (amino.name) = "desmos/MsgMovePost";

// Id of the subspace where the post is currently located
uint64 subspace_id = 1 [
Expand Down Expand Up @@ -425,6 +435,7 @@ message MsgMovePostResponse {
// Since: Desmos 6.0.0
message MsgRequestPostOwnerTransfer {
option (cosmos.msg.v1.signer) = "sender";
option (amino.name) = "desmos/MsgRequestPostOwnerTransfer";

// Id of the subspace that holds the post which ownership should be transfered
uint64 subspace_id = 1 [
Expand Down Expand Up @@ -463,6 +474,7 @@ message MsgRequestPostOwnerTransferResponse {}
// Since: Desmos 6.0.0
message MsgCancelPostOwnerTransferRequest {
option (cosmos.msg.v1.signer) = "sender";
option (amino.name) = "desmos/MsgCancelPostOwnerTransferRequest";

// Id of the subspace that holds the post for which the request should be
// canceled
Expand Down Expand Up @@ -496,6 +508,7 @@ message MsgCancelPostOwnerTransferRequestResponse {}
// Since: Desmos 6.0.0
message MsgAcceptPostOwnerTransferRequest {
option (cosmos.msg.v1.signer) = "receiver";
option (amino.name) = "desmos/MsgAcceptPostOwnerTransferRequest";

// Id of the subspace holding the post for which the request will be accepted
uint64 subspace_id = 1 [
Expand Down Expand Up @@ -528,6 +541,7 @@ message MsgAcceptPostOwnerTransferRequestResponse {}
// Since: Desmos 6.0.0
message MsgRefusePostOwnerTransferRequest {
option (cosmos.msg.v1.signer) = "receiver";
option (amino.name) = "desmos/MsgRefusePostOwnerTransferRequest";

// Id of the subspace holding the post for which the request will be refused
uint64 subspace_id = 1 [
Expand Down
3 changes: 3 additions & 0 deletions proto/desmos/profiles/v3/msgs_app_links.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ option go_package = "github.com/desmos-labs/desmos/v5/x/profiles/types";

import "desmos/profiles/v3/models_app_links.proto";

import "amino/amino.proto";
import "gogoproto/gogo.proto";
import "cosmos/msg/v1/msg.proto";
import "cosmos_proto/cosmos.proto";
Expand All @@ -14,6 +15,7 @@ import "ibc/core/client/v1/client.proto";
// centralized application account (eg. Twitter, GitHub, etc).
message MsgLinkApplication {
option (cosmos.msg.v1.signer) = "sender";
option (amino.name) = "desmos/MsgLinkApplication";

// The sender of the connection request
string sender = 1 [
Expand Down Expand Up @@ -61,6 +63,7 @@ message MsgLinkApplicationResponse {}
// profile
message MsgUnlinkApplication {
option (cosmos.msg.v1.signer) = "signer";
option (amino.name) = "desmos/MsgUnlinkApplication";

// Application represents the name of the application to unlink
string application = 1 [ (gogoproto.moretags) = "yaml:\"application\"" ];
Expand Down
4 changes: 4 additions & 0 deletions proto/desmos/profiles/v3/msgs_chain_links.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
syntax = "proto3";
package desmos.profiles.v3;

import "amino/amino.proto";
import "gogoproto/gogo.proto";
import "google/protobuf/any.proto";
import "cosmos_proto/cosmos.proto";
Expand All @@ -12,6 +13,7 @@ option go_package = "github.com/desmos-labs/desmos/v5/x/profiles/types";
// MsgLinkChainAccount represents a message to link an account to a profile.
message MsgLinkChainAccount {
option (cosmos.msg.v1.signer) = "signer";
option (amino.name) = "desmos/MsgLinkChainAccount";

// ChainAddress contains the details of the external chain address to be
// linked
Expand Down Expand Up @@ -49,6 +51,7 @@ message MsgLinkChainAccountResponse {}
// profile.
message MsgUnlinkChainAccount {
option (cosmos.msg.v1.signer) = "owner";
option (amino.name) = "desmos/MsgUnlinkChainAccount";

// Owner represents the Desmos profile from which to remove the link
string owner = 1 [
Expand All @@ -73,6 +76,7 @@ message MsgUnlinkChainAccountResponse {}
// address for a specific chain
message MsgSetDefaultExternalAddress {
option (cosmos.msg.v1.signer) = "signer";
option (amino.name) = "desmos/MsgSetDefaultExternalAddress";

// Name of the chain for which to set the default address
string chain_name = 1;
Expand Down
5 changes: 5 additions & 0 deletions proto/desmos/profiles/v3/msgs_dtag_requests.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
syntax = "proto3";
package desmos.profiles.v3;

import "amino/amino.proto";
import "gogoproto/gogo.proto";
import "cosmos/msg/v1/msg.proto";
import "cosmos_proto/cosmos.proto";
Expand All @@ -11,6 +12,7 @@ option go_package = "github.com/desmos-labs/desmos/v5/x/profiles/types";
// transfer to another user.
message MsgRequestDTagTransfer {
option (cosmos.msg.v1.signer) = "sender";
option (amino.name) = "desmos/MsgRequestDTagTransfer";

// Receiver contains the address of the request receiver that owns the DTag to
// transfer if the request is accepted
Expand All @@ -31,6 +33,7 @@ message MsgRequestDTagTransferResponse {}
// transfer request.
message MsgCancelDTagTransferRequest {
option (cosmos.msg.v1.signer) = "sender";
option (amino.name) = "desmos/MsgCancelDTagTransferRequest";

// Receiver contains the address of the request receiver
string receiver = 1 [
Expand All @@ -55,6 +58,7 @@ message MsgCancelDTagTransferRequestResponse {}
// transfer request.
message MsgAcceptDTagTransferRequest {
option (cosmos.msg.v1.signer) = "receiver";
option (amino.name) = "desmos/MsgAcceptDTagTransferRequest";

// NewDTag represents the DTag that the request receiver will obtain if they
// accept the request
Expand Down Expand Up @@ -86,6 +90,7 @@ message MsgAcceptDTagTransferRequestResponse {}
// transfer request.
message MsgRefuseDTagTransferRequest {
option (cosmos.msg.v1.signer) = "receiver";
option (amino.name) = "desmos/MsgRefuseDTagTransferRequest";

// Sender represents the request sender
string sender = 1 [
Expand Down
2 changes: 2 additions & 0 deletions proto/desmos/profiles/v3/msgs_params.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
syntax = "proto3";
package desmos.profiles.v3;

import "amino/amino.proto";
import "gogoproto/gogo.proto";
import "cosmos_proto/cosmos.proto";
import "cosmos/msg/v1/msg.proto";
Expand All @@ -14,6 +15,7 @@ option go_package = "github.com/desmos-labs/desmos/v5/x/profiles/types";
// Since: Desmos 5.0.0
message MsgUpdateParams {
option (cosmos.msg.v1.signer) = "authority";
option (amino.name) = "desmos/x/profiles/MsgUpdateParams";

// authority is the address that controls the module (defaults to x/gov unless
// overwritten).
Expand Down
3 changes: 3 additions & 0 deletions proto/desmos/profiles/v3/msgs_profile.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
syntax = "proto3";
package desmos.profiles.v3;

import "amino/amino.proto";
import "gogoproto/gogo.proto";
import "cosmos/msg/v1/msg.proto";
import "cosmos_proto/cosmos.proto";
Expand All @@ -10,6 +11,7 @@ option go_package = "github.com/desmos-labs/desmos/v5/x/profiles/types";
// MsgSaveProfile represents a message to save a profile.
message MsgSaveProfile {
option (cosmos.msg.v1.signer) = "creator";
option (amino.name) = "desmos/MsgSaveProfile";

// DTag of the profile. If it shouldn't be changed, [do-no-modify] can be used
// instead.
Expand Down Expand Up @@ -50,6 +52,7 @@ message MsgSaveProfileResponse {}
// MsgDeleteProfile represents the message used to delete an existing profile.
message MsgDeleteProfile {
option (cosmos.msg.v1.signer) = "creator";
option (amino.name) = "desmos/MsgDeleteProfile";

// Address associated to the profile to be deleted
string creator = 1 [
Expand Down
7 changes: 7 additions & 0 deletions proto/desmos/reactions/v1/msgs.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
syntax = "proto3";
package desmos.reactions.v1;

import "amino/amino.proto";
import "gogoproto/gogo.proto";
import "google/protobuf/any.proto";
import "cosmos/msg/v1/msg.proto";
Expand Down Expand Up @@ -38,6 +39,7 @@ service Msg {
// MsgAddReaction represents the message to be used to add a post reaction
message MsgAddReaction {
option (cosmos.msg.v1.signer) = "user";
option (amino.name) = "desmos/MsgAddReaction";

// Id of the subspace inside which the post to react to is
uint64 subspace_id = 1 [
Expand Down Expand Up @@ -77,6 +79,7 @@ message MsgAddReactionResponse {
// existing reaction from a post
message MsgRemoveReaction {
option (cosmos.msg.v1.signer) = "user";
option (amino.name) = "desmos/MsgRemoveReaction";

// Id of the subspace inside which the reaction to remove is
uint64 subspace_id = 1 [
Expand Down Expand Up @@ -110,6 +113,7 @@ message MsgRemoveReactionResponse {}
// register a new supported reaction
message MsgAddRegisteredReaction {
option (cosmos.msg.v1.signer) = "user";
option (amino.name) = "desmos/MsgAddRegisteredReaction";

// Id of the subspace inside which this reaction should be registered
uint64 subspace_id = 1 [
Expand Down Expand Up @@ -145,6 +149,7 @@ message MsgAddRegisteredReactionResponse {
// registered reaction
message MsgEditRegisteredReaction {
option (cosmos.msg.v1.signer) = "user";
option (amino.name) = "desmos/MsgEditRegisteredReaction";

// Id of the subspace inside which the reaction to edit is
uint64 subspace_id = 1 [
Expand Down Expand Up @@ -180,6 +185,7 @@ message MsgEditRegisteredReactionResponse {}
// remove an existing registered reaction
message MsgRemoveRegisteredReaction {
option (cosmos.msg.v1.signer) = "user";
option (amino.name) = "desmos/MsgRemoveRegisteredReaction";

// Id of the subspace from which to remove the registered reaction
uint64 subspace_id = 1 [
Expand Down Expand Up @@ -208,6 +214,7 @@ message MsgRemoveRegisteredReactionResponse {}
// a subspace reactions params
message MsgSetReactionsParams {
option (cosmos.msg.v1.signer) = "user";
option (amino.name) = "desmos/MsgSetReactionsParams";

// Id of the subspace for which to set the params
uint64 subspace_id = 1 [
Expand Down
5 changes: 5 additions & 0 deletions proto/desmos/relationships/v1/msgs.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
syntax = "proto3";
package desmos.relationships.v1;

import "amino/amino.proto";
import "gogoproto/gogo.proto";
import "cosmos/msg/v1/msg.proto";
import "cosmos_proto/cosmos.proto";
Expand Down Expand Up @@ -28,6 +29,7 @@ service Msg {
// between two users on a specific subspace.
message MsgCreateRelationship {
option (cosmos.msg.v1.signer) = "signer";
option (amino.name) = "desmos/MsgCreateRelationship";

// User creating the relationship
string signer = 1 [
Expand Down Expand Up @@ -58,6 +60,7 @@ message MsgCreateRelationshipResponse {}
// between two users.
message MsgDeleteRelationship {
option (cosmos.msg.v1.signer) = "signer";
option (amino.name) = "desmos/MsgDeleteRelationship";

// User that created the relationship
string signer = 1 [
Expand Down Expand Up @@ -88,6 +91,7 @@ message MsgDeleteRelationshipResponse {}
// optional reason.
message MsgBlockUser {
option (cosmos.msg.v1.signer) = "blocker";
option (amino.name) = "desmos/MsgBlockUser";

// Address of the user blocking the other user
string blocker = 1 [
Expand Down Expand Up @@ -119,6 +123,7 @@ message MsgBlockUserResponse {}
// MsgUnblockUser represents a message to unblock a previously blocked user.
message MsgUnblockUser {
option (cosmos.msg.v1.signer) = "blocker";
option (amino.name) = "desmos/MsgUnblockUser";

// Address of the user that blocked another user
string blocker = 1 [
Expand Down
7 changes: 7 additions & 0 deletions proto/desmos/reports/v1/msgs.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
syntax = "proto3";
package desmos.reports.v1;

import "amino/amino.proto";
import "gogoproto/gogo.proto";
import "google/protobuf/any.proto";
import "google/protobuf/timestamp.proto";
Expand Down Expand Up @@ -43,6 +44,7 @@ service Msg {
// MsgCreateReport represents the message to be used to create a report
message MsgCreateReport {
option (cosmos.msg.v1.signer) = "reporter";
option (amino.name) = "desmos/MsgCreateReport";

// Id of the subspace for which the report should be stored
uint64 subspace_id = 1 [
Expand Down Expand Up @@ -91,6 +93,7 @@ message MsgCreateReportResponse {
// MsgDeleteReport represents the message to be used when deleting a report
message MsgDeleteReport {
option (cosmos.msg.v1.signer) = "signer";
option (amino.name) = "desmos/MsgDeleteReport";

// Id of the subspace that contains the report to be deleted
uint64 subspace_id = 1 [
Expand Down Expand Up @@ -118,6 +121,7 @@ message MsgDeleteReportResponse {}
// support one reason from the module params
message MsgSupportStandardReason {
option (cosmos.msg.v1.signer) = "signer";
option (amino.name) = "desmos/MsgSupportStandardReason";

// Id of the subspace for which to support the reason
uint64 subspace_id = 1 [
Expand Down Expand Up @@ -152,6 +156,7 @@ message MsgSupportStandardReasonResponse {
// reason
message MsgAddReason {
option (cosmos.msg.v1.signer) = "signer";
option (amino.name) = "desmos/MsgAddReason";

// Id of the subspace for which to add the reason
uint64 subspace_id = 1 [
Expand Down Expand Up @@ -185,6 +190,7 @@ message MsgAddReasonResponse {
// reporting reason
message MsgRemoveReason {
option (cosmos.msg.v1.signer) = "signer";
option (amino.name) = "desmos/MsgRemoveReason";

// Id of the subspace from which to remove the reason
uint64 subspace_id = 1 [
Expand Down Expand Up @@ -213,6 +219,7 @@ message MsgRemoveReasonResponse {}
// Since: Desmos 5.0.0
message MsgUpdateParams {
option (cosmos.msg.v1.signer) = "authority";
option (amino.name) = "desmos/x/reports/MsgUpdateParams";

// authority is the address that controls the module (defaults to x/gov unless
// overwritten).
Expand Down
Loading

0 comments on commit e240255

Please sign in to comment.