laconicd/third_party/proto/cosmos/bank/v1beta1/tx.proto

43 lines
1.5 KiB
Protocol Buffer
Raw Normal View History

2021-04-17 10:00:07 +00:00
syntax = "proto3";
package cosmos.bank.v1beta1;
import "gogoproto/gogo.proto";
import "cosmos/base/v1beta1/coin.proto";
import "cosmos/bank/v1beta1/bank.proto";
option go_package = "github.com/cosmos/cosmos-sdk/x/bank/types";
2021-04-18 15:54:18 +00:00
// Msg defines the bank Msg service.
service Msg {
// Send defines a method for sending coins from one account to another account.
rpc Send(MsgSend) returns (MsgSendResponse);
// MultiSend defines a method for sending coins from some accounts to other accounts.
rpc MultiSend(MsgMultiSend) returns (MsgMultiSendResponse);
}
2021-04-17 10:00:07 +00:00
// MsgSend represents a message to send coins from one account to another.
message MsgSend {
2021-04-18 15:54:18 +00:00
option (gogoproto.equal) = false;
2021-04-17 10:00:07 +00:00
option (gogoproto.goproto_getters) = false;
2021-04-18 15:54:18 +00:00
string from_address = 1 [(gogoproto.moretags) = "yaml:\"from_address\""];
string to_address = 2 [(gogoproto.moretags) = "yaml:\"to_address\""];
repeated cosmos.base.v1beta1.Coin amount = 3
[(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
2021-04-17 10:00:07 +00:00
}
2021-04-18 15:54:18 +00:00
// MsgSendResponse defines the Msg/Send response type.
message MsgSendResponse {}
2021-04-17 10:00:07 +00:00
// MsgMultiSend represents an arbitrary multi-in, multi-out send message.
message MsgMultiSend {
option (gogoproto.equal) = false;
2021-04-18 15:54:18 +00:00
repeated Input inputs = 1 [(gogoproto.nullable) = false];
repeated Output outputs = 2 [(gogoproto.nullable) = false];
2021-04-17 10:00:07 +00:00
}
2021-04-18 15:54:18 +00:00
// MsgMultiSendResponse defines the Msg/MultiSend response type.
message MsgMultiSendResponse {}