github.com/KiraCore/sekai@v0.3.43/x/gov/keeper/keys.go (about) 1 package keeper 2 3 // Keys for Gov store. 4 // 0x00<uint64 in bytes> : The next proposalID. 5 // 0x01<proposalID_bytes> : The Proposal 6 // 0x02<proposalID_Bytes + voterAddress_Bytes> : The vote 7 // 0x03<endTime_Bytes + proposalID_Bytes> : ActiveProposalID 8 // 0x04<EnactmentEndTime_Bytes + proposalID_Bytes> : ProposalID Holds all the proposals that are in process of enactment. 9 // 10 // 0x10<role_uint64_Bytes> : The role permissions. 11 // 12 // 0x20<councilorAddress_Bytes> : Councilor. 13 // 14 // 0x30<actorAddress_Bytes> : NetworkActor. 15 // 0x31<permissionID_Bytes + actor_address_bytes> : NetworkActorAddress. This is used to get all the actors that have a specific whitelist. 16 // 0x32<roleID_Bytes + actor_address_bytes> : NetworkActorAddress. This is used to get all the actors that have a specific role. 17 // 0x33<permissionID_Bytes + RoleID_Bytes> : RoleID_Bytes. This is used to get all the actors that have a specific role. 18 // 19 // 0x40<key_Bytes> : DataRegistryEntry 20 var ( 21 NextProposalIDPrefix = []byte{0x00} 22 ProposalsPrefix = []byte{0x01} 23 VotesPrefix = []byte{0x02} 24 ActiveProposalsPrefix = []byte{0x03} 25 EnactmentProposalsPrefix = []byte{0x04} 26 PollPrefix = []byte{0x05} 27 NextPollIDPrefix = []byte{0x06} 28 PollVotesPrefix = []byte{0x07} 29 ActivePollPrefix = []byte{0x08} 30 31 RolePermissionRegistry = []byte{0x10} 32 RoleIdToInfo = []byte{0x11} 33 RoleSidToIdRegistry = []byte{0x12} 34 CouncilorIdentityRegistryPrefix = []byte{0x20} 35 36 NetworkActorsPrefix = []byte{0x30} 37 WhitelistActorPrefix = []byte{0x31} 38 RoleActorPrefix = []byte{0x32} 39 WhitelistRolePrefix = []byte{0x33} 40 41 DataRegistryPrefix = []byte{0x40} 42 43 PoorNetworkMessagesPrefix = []byte{0x41} 44 45 NextRolePrefix = []byte{0x50} 46 )