Skip to content

Commit

Permalink
Buf format
Browse files Browse the repository at this point in the history
  • Loading branch information
0Tech committed Feb 12, 2024
1 parent e48c377 commit ea8ef4e
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 69 deletions.
32 changes: 16 additions & 16 deletions x/escrow/proto/andromeda/escrow/v1alpha1/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import "google/protobuf/any.proto";
message GenesisState {
// Params defines the parameters for the module.
message Params {
// the maximum length allowed for metadata
uint64 max_metadata_length = 1;
// the maximum length allowed for metadata
uint64 max_metadata_length = 1;
}

// all the paramaters of the module
Expand All @@ -20,32 +20,32 @@ message GenesisState {

// Agent defines an account taking charge of a proposal.
message Agent {
// the address of the agent
string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// the address of the agent
string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];

// the address of the creator
string creator = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// the address of the creator
string creator = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
}

// all the agents
repeated Agent agents = 3;

// Proposal defines a proposal.
message Proposal {
// the address of the agent in charge
string agent = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// the address of the agent in charge
string agent = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];

// the address of the proposer
string proposer = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// the address of the proposer
string proposer = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];

// the messages which has been executed on the submission
repeated google.protobuf.Any pre_actions = 3;
// the messages which has been executed on the submission
repeated google.protobuf.Any pre_actions = 3;

// the messages which will be executed after the actions included in Msg/Exec
repeated google.protobuf.Any post_actions = 4;
// the messages which will be executed after the actions included in Msg/Exec
repeated google.protobuf.Any post_actions = 4;

// any arbitrary metadata attached to the proposal
string metadata = 5;
// any arbitrary metadata attached to the proposal
string metadata = 5;
}

// all the proposals
Expand Down
86 changes: 43 additions & 43 deletions x/escrow/proto/andromeda/escrow/v1alpha1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ message QueryAgentRequest {
message QueryAgentResponse {
// Agent defines an account taking charge of a proposal.
message Agent {
// the address of the agent
string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// the address of the agent
string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];

// the address of the creator
string creator = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// the address of the creator
string creator = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
}

// the corresponding agent
Expand All @@ -87,11 +87,11 @@ message QueryAgentsByCreatorRequest {
message QueryAgentsByCreatorResponse {
// Agent defines an account taking charge of a proposal.
message Agent {
// the address of the agent
string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// the address of the agent
string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];

// the address of the creator
string creator = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// the address of the creator
string creator = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
}

// all the agents created by the creator
Expand All @@ -111,11 +111,11 @@ message QueryAgentsRequest {
message QueryAgentsResponse {
// Agent defines an account taking charge of a proposal.
message Agent {
// the address of the agent
string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// the address of the agent
string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];

// the address of the creator
string creator = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// the address of the creator
string creator = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
}

// all the agents
Expand All @@ -135,20 +135,20 @@ message QueryProposalRequest {
message QueryProposalResponse {
// Proposal defines a proposal.
message Proposal {
// the address of the agent in charge
string agent = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// the address of the agent in charge
string agent = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];

// the address of the proposer
string proposer = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// the address of the proposer
string proposer = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];

// the messages which has been executed on the submission
repeated google.protobuf.Any pre_actions = 3;
// the messages which has been executed on the submission
repeated google.protobuf.Any pre_actions = 3;

// the messages which will be executed after the actions included in Msg/Exec
repeated google.protobuf.Any post_actions = 4;
// the messages which will be executed after the actions included in Msg/Exec
repeated google.protobuf.Any post_actions = 4;

// any arbitrary metadata attached to the proposal
string metadata = 5;
// any arbitrary metadata attached to the proposal
string metadata = 5;
}

// the corresponding proposal
Expand All @@ -159,7 +159,7 @@ message QueryProposalResponse {
message QueryProposalsByProposerRequest {
// the address of a proposer
string proposer = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];

// optional pagination for the request
cosmos.base.query.v1beta1.PageRequest pagination = 2;
}
Expand All @@ -168,20 +168,20 @@ message QueryProposalsByProposerRequest {
message QueryProposalsByProposerResponse {
// Proposal defines a proposal.
message Proposal {
// the address of the agent in charge
string agent = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// the address of the agent in charge
string agent = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];

// the address of the proposer
string proposer = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// the address of the proposer
string proposer = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];

// the messages which has been executed on the submission
repeated google.protobuf.Any pre_actions = 3;
// the messages which has been executed on the submission
repeated google.protobuf.Any pre_actions = 3;

// the messages which will be executed after the actions included in Msg/Exec
repeated google.protobuf.Any post_actions = 4;
// the messages which will be executed after the actions included in Msg/Exec
repeated google.protobuf.Any post_actions = 4;

// any arbitrary metadata attached to the proposal
string metadata = 5;
// any arbitrary metadata attached to the proposal
string metadata = 5;
}

// all the proposals proposed by the proposer
Expand All @@ -201,20 +201,20 @@ message QueryProposalsRequest {
message QueryProposalsResponse {
// Proposal defines a proposal.
message Proposal {
// the address of the agent in charge
string agent = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// the address of the agent in charge
string agent = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];

// the address of the proposer
string proposer = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// the address of the proposer
string proposer = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];

// the messages which has been executed on the submission
repeated google.protobuf.Any pre_actions = 3;
// the messages which has been executed on the submission
repeated google.protobuf.Any pre_actions = 3;

// the messages which will be executed after the actions included in Msg/Exec
repeated google.protobuf.Any post_actions = 4;
// the messages which will be executed after the actions included in Msg/Exec
repeated google.protobuf.Any post_actions = 4;

// any arbitrary metadata attached to the proposal
string metadata = 5;
// any arbitrary metadata attached to the proposal
string metadata = 5;
}

// all the proposals
Expand Down
3 changes: 1 addition & 2 deletions x/escrow/proto/andromeda/escrow/v1alpha1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ message MsgSubmitProposal {
}

// MsgSubmitProposalResponse is the Msg/SubmitProposal response type.
message MsgSubmitProposalResponse {
}
message MsgSubmitProposalResponse {}

// MsgExec is the Msg/Exec request type.
message MsgExec {
Expand Down
8 changes: 4 additions & 4 deletions x/test/proto/andromeda/test/v1alpha1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ message QueryAssetRequest {
message QueryAssetResponse {
// Asset defines an asset identified by its name.
message Asset {
// the name of the asset
string name = 1;
// the name of the asset
string name = 1;
}

// the corresponding asset
Expand All @@ -52,8 +52,8 @@ message QueryAssetsRequest {
message QueryAssetsResponse {
// Asset defines an asset identified by its name.
message Asset {
// the name of the asset
string name = 1;
// the name of the asset
string name = 1;
}

// all the assets owned by the account
Expand Down
3 changes: 1 addition & 2 deletions x/test/proto/andromeda/test/v1alpha1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,4 @@ message MsgSend {
}

// MsgSendResponse is the Msg/Send response type.
message MsgSendResponse {
}
message MsgSendResponse {}
3 changes: 1 addition & 2 deletions x/test/proto/andromeda/test/v1alpha1/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ syntax = "proto3";
package andromeda.test.v1alpha1;

// Asset defines an asset identified by its name.
message Asset {
}
message Asset {}

0 comments on commit ea8ef4e

Please sign in to comment.