2020-02-20 06:24:26 -08:00
|
|
|
syntax = "proto3";
|
2020-08-11 04:49:45 -07:00
|
|
|
package cosmos.bank.v1beta1;
|
2020-02-20 06:24:26 -08:00
|
|
|
|
2020-06-18 10:04:26 -07:00
|
|
|
import "gogoproto/gogo.proto";
|
|
|
|
import "cosmos_proto/cosmos.proto";
|
2020-08-11 04:49:45 -07:00
|
|
|
import "cosmos/base/v1beta1/coin.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
|
|
|
|
2020-07-08 10:43:08 -07:00
|
|
|
// Params defines the set of bank parameters.
|
|
|
|
message Params {
|
|
|
|
option (gogoproto.goproto_stringer) = false;
|
|
|
|
repeated SendEnabled send_enabled = 1[
|
|
|
|
(gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""
|
|
|
|
];
|
|
|
|
bool default_send_enabled = 2[
|
|
|
|
(gogoproto.moretags) = "yaml:\"default_send_enabled,omitempty\""
|
|
|
|
];
|
|
|
|
}
|
|
|
|
|
|
|
|
// Send enabled configuration properties for each denomination
|
|
|
|
message SendEnabled {
|
|
|
|
option (gogoproto.equal) = true;
|
|
|
|
option (gogoproto.goproto_stringer) = false;
|
|
|
|
string denom = 1;
|
|
|
|
bool enabled = 2;
|
|
|
|
}
|
|
|
|
|
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"];
|
2020-08-11 04:49:45 -07:00
|
|
|
repeated cosmos.base.v1beta1.Coin coins = 2
|
2020-04-20 08:22:12 -07:00
|
|
|
[(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"];
|
2020-08-11 04:49:45 -07:00
|
|
|
repeated cosmos.base.v1beta1.Coin coins = 2
|
2020-04-20 08:22:12 -07:00
|
|
|
[(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
|
2020-02-20 06:24:26 -08:00
|
|
|
}
|
|
|
|
|
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;
|
2020-05-12 10:35:05 -07:00
|
|
|
option (cosmos_proto.implements_interface) = "*github.com/cosmos/cosmos-sdk/x/bank/exported.SupplyI";
|
2020-04-20 08:22:12 -07:00
|
|
|
|
2020-08-11 04:49:45 -07:00
|
|
|
repeated cosmos.base.v1beta1.Coin total = 1
|
2020-04-20 08:22:12 -07:00
|
|
|
[(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
|
|
|
|
}
|
2020-07-28 00:49:56 -07:00
|
|
|
|
|
|
|
// DenomUnits represents a struct that describes different
|
|
|
|
// denominations units of the basic token
|
|
|
|
message DenomUnits {
|
|
|
|
string denom = 1;
|
|
|
|
uint32 exponent = 2;
|
|
|
|
repeated string aliases = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Metadata represents a struct that describes
|
|
|
|
// a basic token
|
|
|
|
message Metadata {
|
|
|
|
string description = 1;
|
|
|
|
repeated DenomUnits denom_units = 2;
|
|
|
|
string base = 3;
|
|
|
|
string display = 4;
|
|
|
|
}
|