github.com/Finschia/finschia-sdk@v0.49.1/proto/cosmos/bank/v1beta1/genesis.proto (about)

     1  syntax = "proto3";
     2  package cosmos.bank.v1beta1;
     3  
     4  import "gogoproto/gogo.proto";
     5  import "cosmos/base/v1beta1/coin.proto";
     6  import "cosmos/bank/v1beta1/bank.proto";
     7  
     8  option go_package = "github.com/Finschia/finschia-sdk/x/bank/types";
     9  
    10  // GenesisState defines the bank module's genesis state.
    11  message GenesisState {
    12    // params defines all the paramaters of the module.
    13    Params params = 1 [(gogoproto.nullable) = false];
    14  
    15    // balances is an array containing the balances of all the accounts.
    16    repeated Balance balances = 2 [(gogoproto.nullable) = false];
    17  
    18    // supply represents the total supply. If it is left empty, then supply will be calculated based on the provided
    19    // balances. Otherwise, it will be used to validate that the sum of the balances equals this amount.
    20    repeated cosmos.base.v1beta1.Coin supply = 3
    21        [(gogoproto.castrepeated) = "github.com/Finschia/finschia-sdk/types.Coins", (gogoproto.nullable) = false];
    22  
    23    // denom_metadata defines the metadata of the differents coins.
    24    repeated Metadata denom_metadata = 4 [(gogoproto.moretags) = "yaml:\"denom_metadata\"", (gogoproto.nullable) = false];
    25  }
    26  
    27  // Balance defines an account address and balance pair used in the bank module's
    28  // genesis state.
    29  message Balance {
    30    option (gogoproto.equal)           = false;
    31    option (gogoproto.goproto_getters) = false;
    32  
    33    // address is the address of the balance holder.
    34    string address = 1;
    35  
    36    // coins defines the different coins this balance holds.
    37    repeated cosmos.base.v1beta1.Coin coins = 2
    38        [(gogoproto.castrepeated) = "github.com/Finschia/finschia-sdk/types.Coins", (gogoproto.nullable) = false];
    39  }