keys

package
v2.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2026 License: Apache-2.0 Imports: 2 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Old prefixes — kept for migration reads
	DeploymentPrefixLegacy = []byte{0x11, 0x00}
	GroupPrefixLegacy      = []byte{0x12, 0x00}

	// New collections prefixes
	DeploymentPrefix           = []byte{0x11, 0x01}
	DeploymentIndexStatePrefix = []byte{0x11, 0x02}
	GroupPrefix                = []byte{0x12, 0x01}
	GroupIndexStatePrefix      = []byte{0x12, 0x02}
	GroupIndexDeploymentPrefix = []byte{0x12, 0x03}

	// Pending denom migration prefix
	PendingDenomMigrationPrefix = []byte{0x13, 0x01}

	ParamsKey = []byte{0x14, 0x00} // key for deployment module params
)

DeploymentPrimaryKeyCodec is the key codec for DeploymentPrimaryKey

GroupPrimaryKeyCodec is the key codec for GroupPrimaryKey

Functions

func KeyToDeploymentID

func KeyToDeploymentID(key DeploymentPrimaryKey) v1.DeploymentID

KeyToDeploymentID converts a DeploymentPrimaryKey back to a v1.DeploymentID

func KeyToGroupID

func KeyToGroupID(key GroupPrimaryKey) v1.GroupID

KeyToGroupID converts a GroupPrimaryKey back to a v1.GroupID

Types

type DeploymentPrimaryKey

type DeploymentPrimaryKey = collections.Pair[string, uint64]

DeploymentPrimaryKey is the composite primary key for a deployment: (owner, dseq)

func DeploymentIDToKey

func DeploymentIDToKey(id v1.DeploymentID) DeploymentPrimaryKey

DeploymentIDToKey converts a v1.DeploymentID to a DeploymentPrimaryKey for use with the IndexedMap

type GroupPrimaryKey

type GroupPrimaryKey = collections.Triple[string, uint64, uint32]

GroupPrimaryKey is the composite primary key for a group: (owner, dseq, gseq)

func GroupIDToKey

func GroupIDToKey(id v1.GroupID) GroupPrimaryKey

GroupIDToKey converts a v1.GroupID to a GroupPrimaryKey for use with the IndexedMap

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL