2020-02-20 06:24:26 -08:00
|
|
|
syntax = "proto3";
|
|
|
|
package cosmos_sdk.x.bank.v1;
|
|
|
|
|
|
|
|
import "third_party/proto/gogoproto/gogo.proto";
|
|
|
|
import "types/types.proto";
|
2020-04-20 08:22:12 -07:00
|
|
|
|
|
|
|
option go_package = "github.com/cosmos/cosmos-sdk/x/bank/types";
|
2020-02-20 06:24:26 -08:00
|
|
|
|
|
|
|
// MsgSend - high level transaction of the coin module
|
|
|
|
message MsgSend {
|
2020-02-21 02:31:16 -08:00
|
|
|
option (gogoproto.equal) = true;
|
|
|
|
|
2020-02-20 06:24:26 -08:00
|
|
|
bytes from_address = 1 [
|
|
|
|
(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress",
|
|
|
|
(gogoproto.moretags) = "yaml:\"from_address\""
|
|
|
|
];
|
|
|
|
bytes to_address = 2 [
|
|
|
|
(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress",
|
|
|
|
(gogoproto.moretags) = "yaml:\"to_address\""
|
|
|
|
];
|
2020-04-20 08:22:12 -07:00
|
|
|
repeated cosmos_sdk.v1.Coin amount = 3
|
|
|
|
[(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
|
2020-02-20 06:24:26 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
// Input models transaction input
|
|
|
|
message Input {
|
2020-02-21 02:31:16 -08:00
|
|
|
option (gogoproto.equal) = true;
|
|
|
|
|
2020-04-20 08:22:12 -07:00
|
|
|
bytes address = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
|
|
|
repeated cosmos_sdk.v1.Coin coins = 2
|
|
|
|
[(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
|
2020-02-20 06:24:26 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
// Output models transaction outputs
|
|
|
|
message Output {
|
2020-02-21 02:31:16 -08:00
|
|
|
option (gogoproto.equal) = true;
|
|
|
|
|
2020-04-20 08:22:12 -07:00
|
|
|
bytes address = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
|
|
|
|
repeated cosmos_sdk.v1.Coin coins = 2
|
|
|
|
[(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
|
2020-02-20 06:24:26 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
// MsgMultiSend - high level transaction of the coin module
|
|
|
|
message MsgMultiSend {
|
2020-02-21 02:31:16 -08:00
|
|
|
option (gogoproto.equal) = true;
|
|
|
|
|
2020-02-20 06:24:26 -08:00
|
|
|
repeated Input inputs = 1 [(gogoproto.nullable) = false];
|
|
|
|
repeated Output outputs = 2 [(gogoproto.nullable) = false];
|
|
|
|
}
|
2020-04-20 08:22:12 -07:00
|
|
|
|
|
|
|
// Supply represents a struct that passively keeps track of the total supply
|
|
|
|
// amounts in the network.
|
|
|
|
message Supply {
|
|
|
|
option (gogoproto.equal) = true;
|
|
|
|
option (gogoproto.goproto_getters) = false;
|
|
|
|
option (gogoproto.goproto_stringer) = false;
|
|
|
|
|
|
|
|
repeated cosmos_sdk.v1.Coin total = 1
|
|
|
|
[(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
|
|
|
|
}
|