2022-01-08 01:59:34 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
package cosmos.bank.v1beta1;
|
|
|
|
|
|
|
|
import "gogoproto/gogo.proto";
|
|
|
|
import "cosmos/base/v1beta1/coin.proto";
|
|
|
|
import "cosmos/bank/v1beta1/bank.proto";
|
2023-04-04 00:08:45 +00:00
|
|
|
import "cosmos_proto/cosmos.proto";
|
|
|
|
import "cosmos/msg/v1/msg.proto";
|
2022-01-08 01:59:34 +00:00
|
|
|
|
|
|
|
option go_package = "github.com/cosmos/cosmos-sdk/x/bank/types";
|
|
|
|
|
|
|
|
// 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);
|
|
|
|
}
|
|
|
|
|
|
|
|
// MsgSend represents a message to send coins from one account to another.
|
|
|
|
message MsgSend {
|
2023-04-04 00:08:45 +00:00
|
|
|
option (cosmos.msg.v1.signer) = "from_address";
|
|
|
|
|
2022-01-08 01:59:34 +00:00
|
|
|
option (gogoproto.equal) = false;
|
|
|
|
option (gogoproto.goproto_getters) = false;
|
|
|
|
|
2023-04-04 00:08:45 +00:00
|
|
|
string from_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
|
|
|
string to_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
2022-01-08 01:59:34 +00:00
|
|
|
repeated cosmos.base.v1beta1.Coin amount = 3
|
|
|
|
[(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
|
|
|
|
}
|
|
|
|
|
|
|
|
// MsgSendResponse defines the Msg/Send response type.
|
|
|
|
message MsgSendResponse {}
|
|
|
|
|
|
|
|
// MsgMultiSend represents an arbitrary multi-in, multi-out send message.
|
|
|
|
message MsgMultiSend {
|
2023-04-04 00:08:45 +00:00
|
|
|
option (cosmos.msg.v1.signer) = "inputs";
|
|
|
|
|
2022-01-08 01:59:34 +00:00
|
|
|
option (gogoproto.equal) = false;
|
|
|
|
|
|
|
|
repeated Input inputs = 1 [(gogoproto.nullable) = false];
|
|
|
|
repeated Output outputs = 2 [(gogoproto.nullable) = false];
|
|
|
|
}
|
|
|
|
|
|
|
|
// MsgMultiSendResponse defines the Msg/MultiSend response type.
|
|
|
|
message MsgMultiSendResponse {}
|