Skip to content

Commit

Permalink
chore: run proto-all
Browse files Browse the repository at this point in the history
  • Loading branch information
dadamu committed Jun 30, 2023
1 parent 97bc8aa commit a2730bb
Show file tree
Hide file tree
Showing 66 changed files with 1,887 additions and 1,762 deletions.
27 changes: 18 additions & 9 deletions proto/desmos/posts/v3/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,24 @@ message GenesisState {
repeated SubspaceDataEntry subspaces_data = 1
[ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ];

repeated PostDataEntry posts_data = 2 [ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ];
repeated PostDataEntry posts_data = 2
[ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ];

repeated Post posts = 3 [ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ];
repeated Post posts = 3
[ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ];

repeated Attachment attachments = 4 [ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ];
repeated Attachment attachments = 4
[ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ];

repeated ActivePollData active_polls = 5 [ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ];
repeated ActivePollData active_polls = 5
[ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ];

repeated UserAnswer user_answers = 6 [ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ];
repeated UserAnswer user_answers = 6
[ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ];

Params params = 7
[ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ];

Params params = 7 [ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ];

repeated PostOwnerTransferRequest post_owner_transfer_requests = 8
[ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ];
}
Expand Down Expand Up @@ -61,6 +67,9 @@ message ActivePollData {
uint64 subspace_id = 1 [ (gogoproto.customname) = "SubspaceID" ];
uint64 post_id = 2 [ (gogoproto.customname) = "PostID" ];
uint32 poll_id = 3 [ (gogoproto.customname) = "PollID" ];
google.protobuf.Timestamp end_date = 4
[ (gogoproto.nullable) = false, (gogoproto.stdtime) = true, (amino.dont_omitempty) = true ];
google.protobuf.Timestamp end_date = 4 [
(gogoproto.nullable) = false,
(gogoproto.stdtime) = true,
(amino.dont_omitempty) = true
];
}
2 changes: 1 addition & 1 deletion proto/desmos/posts/v3/models.proto
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ message Entities {
repeated Url urls = 3 [
(gogoproto.nullable) = false,
(gogoproto.moretags) = "yaml:\"urls\"",
(amino.dont_omitempty) = true
(amino.dont_omitempty) = true
];
}

Expand Down
31 changes: 16 additions & 15 deletions proto/desmos/posts/v3/msgs.proto
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +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";
option (amino.name) = "desmos/MsgCreatePost";

// Id of the subspace inside which the post must be created
uint64 subspace_id = 1 [
Expand Down Expand Up @@ -159,7 +159,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";
option (amino.name) = "desmos/MsgEditPost";

// Id of the subspace inside which the post is
uint64 subspace_id = 1 [
Expand Down Expand Up @@ -206,7 +206,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";
option (amino.name) = "desmos/MsgDeletePost";

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

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

// Id of the subspace containing the post
uint64 subspace_id = 1 [
Expand Down Expand Up @@ -324,7 +324,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";
option (amino.name) = "desmos/MsgAnswerPoll";

// Id of the subspace containing the post
uint64 subspace_id = 1 [
Expand All @@ -345,8 +345,10 @@ message MsgAnswerPoll {
];

// Indexes of the answer inside the ProvidedAnswers array
repeated uint32 answers_indexes = 4
[ (gogoproto.moretags) = "yaml:\"answers_indexes\"", (amino.dont_omitempty) = true ];
repeated uint32 answers_indexes = 4 [
(gogoproto.moretags) = "yaml:\"answers_indexes\"",
(amino.dont_omitempty) = true
];

// Address of the user answering the poll
string signer = 5 [
Expand All @@ -363,8 +365,7 @@ message MsgAnswerPollResponse {}
// Since: Desmos 5.0.0
message MsgUpdateParams {
option (cosmos.msg.v1.signer) = "authority";
option (amino.name) = "desmos/x/posts/MsgUpdateParams";

option (amino.name) = "desmos/x/posts/MsgUpdateParams";

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

// Id of the subspace where the post is currently located
uint64 subspace_id = 1 [
Expand Down Expand Up @@ -440,7 +441,7 @@ message MsgMovePostResponse {
// Since: Desmos 6.0.0
message MsgRequestPostOwnerTransfer {
option (cosmos.msg.v1.signer) = "sender";
option (amino.name) = "desmos/MsgRequestPostOwnerTransfer";
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 @@ -479,7 +480,7 @@ message MsgRequestPostOwnerTransferResponse {}
// Since: Desmos 6.0.0
message MsgCancelPostOwnerTransferRequest {
option (cosmos.msg.v1.signer) = "sender";
option (amino.name) = "desmos/MsgCancelPostOwnerTransferRequest";
option (amino.name) = "desmos/MsgCancelPostOwnerTransferRequest";

// Id of the subspace that holds the post for which the request should be
// canceled
Expand Down Expand Up @@ -513,7 +514,7 @@ message MsgCancelPostOwnerTransferRequestResponse {}
// Since: Desmos 6.0.0
message MsgAcceptPostOwnerTransferRequest {
option (cosmos.msg.v1.signer) = "receiver";
option (amino.name) = "desmos/MsgAcceptPostOwnerTransferRequest";
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 @@ -546,7 +547,7 @@ message MsgAcceptPostOwnerTransferRequestResponse {}
// Since: Desmos 6.0.0
message MsgRefusePostOwnerTransferRequest {
option (cosmos.msg.v1.signer) = "receiver";
option (amino.name) = "desmos/MsgRefusePostOwnerTransferRequest";
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
19 changes: 13 additions & 6 deletions proto/desmos/posts/v3/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ message QuerySubspacePostsRequest {
// QuerySubspacePostsResponse is the response type for the Query/SubspacePosts
// RPC method
message QuerySubspacePostsResponse {
repeated Post posts = 1 [ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ];
repeated Post posts = 1
[ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ];
cosmos.base.query.v1beta1.PageResponse pagination = 2;
}

Expand All @@ -95,7 +96,8 @@ message QuerySectionPostsRequest {
// QuerySectionPostsResponse is the response type for the Query/SectionPosts RPC
// method
message QuerySectionPostsResponse {
repeated Post posts = 1 [ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ];
repeated Post posts = 1
[ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ];
cosmos.base.query.v1beta1.PageResponse pagination = 2;
}

Expand All @@ -109,7 +111,9 @@ message QueryPostRequest {
}

// QueryPostResponse is the response type for the Query/Post RPC method
message QueryPostResponse { Post post = 1 [ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ]; }
message QueryPostResponse {
Post post = 1 [ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ];
}

// QueryPostsRequest is the request type for the Query/PostAttachments RPC
// method
Expand All @@ -127,7 +131,8 @@ message QueryPostAttachmentsRequest {
// QueryPostAttachmentsResponse is the response type for the
// Query/PostAttachments RPC method
message QueryPostAttachmentsResponse {
repeated Attachment attachments = 1 [ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ];
repeated Attachment attachments = 1
[ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ];
cosmos.base.query.v1beta1.PageResponse pagination = 2;
}

Expand All @@ -153,7 +158,8 @@ message QueryPollAnswersRequest {
// QueryPollAnswersResponse is the response type for the Query/PollAnswers RPC
// method
message QueryPollAnswersResponse {
repeated UserAnswer answers = 1 [ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ];
repeated UserAnswer answers = 1
[ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ];
cosmos.base.query.v1beta1.PageResponse pagination = 2;
}

Expand All @@ -162,7 +168,8 @@ message QueryParamsRequest {}

// QueryParamsResponse is the response type for the Query/Params RPC method
message QueryParamsResponse {
Params params = 1 [ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ];
Params params = 1
[ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ];
}

// QueryIncomingPostOwnerTransferRequestsRequest is the request type for the
Expand Down
7 changes: 5 additions & 2 deletions proto/desmos/profiles/v3/client/cli.proto
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ message ChainLinkJSON {
];

// Proof contains the ownership proof of the external chain address
desmos.profiles.v3.Proof proof = 2
[ (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"proof\"", (amino.dont_omitempty) = true ];
desmos.profiles.v3.Proof proof = 2 [
(gogoproto.nullable) = false,
(gogoproto.moretags) = "yaml:\"proof\"",
(amino.dont_omitempty) = true
];

// ChainConfig contains the configuration of the external chain
desmos.profiles.v3.ChainConfig chain_config = 3 [
Expand Down
7 changes: 5 additions & 2 deletions proto/desmos/profiles/v3/models_app_links.proto
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ message ApplicationLink {
];

// Data contains the details of this specific link
Data data = 2
[ (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"data\"", (amino.dont_omitempty) = true ];
Data data = 2 [
(gogoproto.nullable) = false,
(gogoproto.moretags) = "yaml:\"data\"",
(amino.dont_omitempty) = true
];

// State of the link
ApplicationLinkState state = 3 [ (gogoproto.moretags) = "yaml:\"state\"" ];
Expand Down
7 changes: 5 additions & 2 deletions proto/desmos/profiles/v3/models_chain_links.proto
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@ message ChainLink {
];

// Proof contains the ownership proof of the external chain address
Proof proof = 3
[ (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"proof\"", (amino.dont_omitempty) = true ];
Proof proof = 3 [
(gogoproto.nullable) = false,
(gogoproto.moretags) = "yaml:\"proof\"",
(amino.dont_omitempty) = true
];

// ChainConfig contains the configuration of the external chain
ChainConfig chain_config = 4 [
Expand Down
2 changes: 1 addition & 1 deletion proto/desmos/profiles/v3/models_params.proto
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ message OracleParams {
(gogoproto.nullable) = false,
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
(gogoproto.moretags) = "yaml:\"fee_amount\"",
(amino.encoding) = "legacy_coins",
(amino.encoding) = "legacy_coins",
(amino.dont_omitempty) = true
];
}
Expand Down
4 changes: 2 additions & 2 deletions proto/desmos/profiles/v3/msgs_app_links.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +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";
option (amino.name) = "desmos/MsgLinkApplication";

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

// Application represents the name of the application to unlink
string application = 1 [ (gogoproto.moretags) = "yaml:\"application\"" ];
Expand Down
6 changes: 3 additions & 3 deletions proto/desmos/profiles/v3/msgs_chain_links.proto
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +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";
option (amino.name) = "desmos/MsgLinkChainAccount";

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

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

// Name of the chain for which to set the default address
string chain_name = 1;
Expand Down
8 changes: 4 additions & 4 deletions proto/desmos/profiles/v3/msgs_dtag_requests.proto
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +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";
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 @@ -33,7 +33,7 @@ message MsgRequestDTagTransferResponse {}
// transfer request.
message MsgCancelDTagTransferRequest {
option (cosmos.msg.v1.signer) = "sender";
option (amino.name) = "desmos/MsgCancelDTagTransferRequest";
option (amino.name) = "desmos/MsgCancelDTagTransferRequest";

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

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

// Sender represents the request sender
string sender = 1 [
Expand Down
5 changes: 3 additions & 2 deletions proto/desmos/profiles/v3/msgs_params.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +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";
option (amino.name) = "desmos/x/profiles/MsgUpdateParams";

// authority is the address that controls the module (defaults to x/gov unless
// overwritten).
Expand All @@ -24,7 +24,8 @@ message MsgUpdateParams {
// params defines the parameters to update.
//
// NOTE: All parameters must be supplied.
Params params = 2 [ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ];
Params params = 2
[ (gogoproto.nullable) = false, (amino.dont_omitempty) = true ];
}

// MsgUpdateParamsResponse defines the response structure for executing a
Expand Down
Loading

0 comments on commit a2730bb

Please sign in to comment.