Help us shape the future of Go! Take the 2026 Go Developer Survey

chainparams

package
v0.1.115 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package chainparams implements the `polycli heimdall chainmanager` umbrella command (alias `cm`) and its subcommands targeting Heimdall v2's `x/chainmanager` module.

Per HEIMDALLCAST_REQUIREMENTS.md §3.2.7 the chainmanager module holds the L1/L2 chain ids, tx confirmation depths, and L1 contract addresses. Upstream exposes a single HTTP route (`/chainmanager/params`, confirmed in heimdall-v2/proto/heimdallv2/chainmanager/query.proto); the `addresses` subcommand is a derived view over the same response.

Package directory is named `chainparams` (not `chain`) because the top-level `chain` command is already claimed by the CometBFT-facing cast-like commands in cmd/heimdall/chain.

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:     "chainmanager",
	Aliases: []string{"cm"},
	Short:   "Query chainmanager module endpoints.",
	Long:    usage,
	Args:    cobra.NoArgs,
}

Cmd is the umbrella `chainmanager` command (alias `cm`). Subcommands are attached by Register.

Functions

func Register

func Register(parent *cobra.Command, f *config.Flags)

Register attaches the chainmanager umbrella command and its subcommands to parent, wiring in the shared flag struct.

Types

This section is empty.

Jump to

Keyboard shortcuts

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