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

topup

package
v0.1.121 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2026 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package topup implements the `polycli heimdall topup` umbrella command and its subcommands targeting Heimdall v2's `x/topup` module: root, account, proof, verify, sequence, is-old.

Per HEIMDALLCAST_REQUIREMENTS.md §3.2.6 these endpoints live under a single umbrella rather than at the top level of the heimdall tree.

Endpoints confirmed from heimdall-v2 proto/heimdallv2/topup/query.proto:

  • GET /topup/dividend-account-root
  • GET /topup/dividend-account/{address}
  • GET /topup/account-proof/{address}
  • GET /topup/account-proof/{address}/verify?proof=…
  • GET /topup/sequence?tx_hash=…&log_index=…
  • GET /topup/is-old-tx?tx_hash=…&log_index=…

The `proof`, `sequence`, and `is-old` endpoints fan out to L1 on the server side; a Heimdall node without `eth_rpc_url` returns gRPC code 13, which we surface as an L1-not-configured hint on stderr before propagating the error.

Index

Constants

This section is empty.

Variables

View Source
var TopupCmd = &cobra.Command{
	Use:   "topup",
	Short: "Query topup (dividend account) module endpoints.",
	Long:  usage,
	Args:  cobra.NoArgs,
}

TopupCmd is the umbrella `topup` command. Subcommands are attached by Register.

Functions

func Register

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

Register attaches the topup umbrella command and all of 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