cosmos-sdk/testutil/testdata/testpb/tx.proto
mergify[bot] 657add7a8a
chore: format proto files (backport #17445) (#17447)
Co-authored-by: Marko <marko@baricevic.me>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-08-18 17:01:43 +02:00

39 lines
969 B
Protocol Buffer

syntax = "proto3";
package testpb;
import "amino/amino.proto";
import "gogoproto/gogo.proto";
import "testpb/testdata.proto";
import "cosmos/msg/v1/msg.proto";
option go_package = "github.com/cosmos/cosmos-sdk/testutil/testdata";
// Msg tests the Protobuf message service as defined in
// https://github.com/cosmos/cosmos-sdk/issues/7500.
service Msg {
option (cosmos.msg.v1.service) = true;
rpc CreateDog(MsgCreateDog) returns (MsgCreateDogResponse);
}
message MsgCreateDog {
option (cosmos.msg.v1.signer) = "owner";
testpb.Dog dog = 1;
string owner = 2;
}
message MsgCreateDogResponse {
string name = 1;
}
// TestMsg is msg type for testing protobuf message using any, as defined in
// https://github.com/cosmos/cosmos-sdk/issues/6213.
message TestMsg {
option (cosmos.msg.v1.signer) = "signers";
option (gogoproto.goproto_getters) = false;
option (amino.name) = "testpb/TestMsg";
repeated string signers = 1;
}