github.com/cosmos/cosmos-sdk@v0.50.10/x/gov/types/keys.go (about)

     1  package types
     2  
     3  import (
     4  	"cosmossdk.io/collections"
     5  )
     6  
     7  const (
     8  	// ModuleName is the name of the module
     9  	ModuleName = "gov"
    10  
    11  	// StoreKey is the store key string for gov
    12  	StoreKey = ModuleName
    13  
    14  	// RouterKey is the message route for gov
    15  	RouterKey = ModuleName
    16  )
    17  
    18  var (
    19  	ProposalsKeyPrefix            = collections.NewPrefix(0)  // ProposalsKeyPrefix stores the proposals raw bytes.
    20  	ActiveProposalQueuePrefix     = collections.NewPrefix(1)  // ActiveProposalQueuePrefix stores the active proposals.
    21  	InactiveProposalQueuePrefix   = collections.NewPrefix(2)  // InactiveProposalQueuePrefix stores the inactive proposals.
    22  	ProposalIDKey                 = collections.NewPrefix(3)  // ProposalIDKey stores the sequence representing the next proposal ID.
    23  	VotingPeriodProposalKeyPrefix = collections.NewPrefix(4)  // VotingPeriodProposalKeyPrefix stores which proposals are on voting period.
    24  	DepositsKeyPrefix             = collections.NewPrefix(16) // DepositsKeyPrefix stores deposits.
    25  	VotesKeyPrefix                = collections.NewPrefix(32) // VotesKeyPrefix stores the votes of proposals.
    26  	ParamsKey                     = collections.NewPrefix(48) // ParamsKey stores the module's params.
    27  	ConstitutionKey               = collections.NewPrefix(49) // ConstitutionKey stores a chain's constitution.
    28  )