cmd

package
v0.1.14-dev1 Latest Latest
Warning

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

Go to latest
Published: May 29, 2025 License: MIT Imports: 45 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultChainID = "pocket"

TODO_MAINNET: adjust chain ID to `pocket`, `pokt` or `shannon`

Variables

This section is empty.

Functions

func InitSDKConfig

func InitSDKConfig()

InitSDKConfig initializes the SDK configuration with the appropriate parameters via a singleton.

func NewRootCmd

func NewRootCmd() *cobra.Command

NewRootCmd creates a new root command for pocketd. It is called once in the main function.

func ProvideClientContext

func ProvideClientContext(
	appCodec codec.Codec,
	interfaceRegistry codectypes.InterfaceRegistry,
	txConfig client.TxConfig,
	legacyAmino *codec.LegacyAmino,
) client.Context

func ProvideKeyring

func ProvideKeyring(clientCtx client.Context, addressCodec address.Codec) (clientv2keyring.Keyring, error)

Types

type PocketAppConfig

type PocketAppConfig struct {
	Telemetry telemetry.PocketTelemetryConfig `mapstructure:"telemetry"`
}

PocketAppConfig represents a pocket-specific part of `app.toml` file.

Jump to

Keyboard shortcuts

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