github.com/cosmos/cosmos-sdk@v0.50.10/testutil/testdata/testpb/tx.proto (about) 1 syntax = "proto3"; 2 package testpb; 3 4 import "amino/amino.proto"; 5 import "gogoproto/gogo.proto"; 6 import "testpb/testdata.proto"; 7 import "cosmos/msg/v1/msg.proto"; 8 9 option go_package = "github.com/cosmos/cosmos-sdk/testutil/testdata"; 10 11 // Msg tests the Protobuf message service as defined in 12 // https://github.com/cosmos/cosmos-sdk/issues/7500. 13 service Msg { 14 option (cosmos.msg.v1.service) = true; 15 16 rpc CreateDog(MsgCreateDog) returns (MsgCreateDogResponse); 17 } 18 19 message MsgCreateDog { 20 option (cosmos.msg.v1.signer) = "owner"; 21 22 testpb.Dog dog = 1; 23 string owner = 2; 24 } 25 26 message MsgCreateDogResponse { 27 string name = 1; 28 } 29 30 // TestMsg is msg type for testing protobuf message using any, as defined in 31 // https://github.com/cosmos/cosmos-sdk/issues/6213. 32 message TestMsg { 33 option (cosmos.msg.v1.signer) = "signers"; 34 option (gogoproto.goproto_getters) = false; 35 option (amino.name) = "testpb/TestMsg"; 36 37 repeated string signers = 1; 38 }