laconicd-deprecated/third_party/proto/cosmos/bank/v1beta1/genesis.proto

39 lines
1.4 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";
// GenesisState defines the bank module's genesis state.
message GenesisState {
// params defines all the paramaters of the module.
2021-04-18 15:54:18 +00:00
Params params = 1 [(gogoproto.nullable) = false];
2021-04-17 10:00:07 +00:00
// balances is an array containing the balances of all the accounts.
2021-04-18 15:54:18 +00:00
repeated Balance balances = 2 [(gogoproto.nullable) = false];
2021-04-17 10:00:07 +00:00
// supply represents the total supply.
2021-04-18 15:54:18 +00:00
repeated cosmos.base.v1beta1.Coin supply = 3
[(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", (gogoproto.nullable) = false];
2021-04-17 10:00:07 +00:00
// denom_metadata defines the metadata of the differents coins.
2021-04-18 15:54:18 +00:00
repeated Metadata denom_metadata = 4 [(gogoproto.moretags) = "yaml:\"denom_metadata\"", (gogoproto.nullable) = false];
2021-04-17 10:00:07 +00:00
}
// Balance defines an account address and balance pair used in the bank module's
// genesis state.
message Balance {
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;
// address is the address of the balance holder.
string address = 1;
// coins defines the different coins this balance holds.
2021-04-18 15:54:18 +00:00
repeated cosmos.base.v1beta1.Coin coins = 2
[(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", (gogoproto.nullable) = false];
2021-04-17 10:00:07 +00:00
}