pocket

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2025 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DenomuPOKT = "upokt"
	DenomMACT  = "mact"
)

TODO_TECHDEBT(@bryanchriswhite): Use this everywhere in the codebase.

View Source
const (
	LocalNetChainId     = "pocket"
	AlphaTestNetChainId = "pocket-alpha"
	BetaTestNetChainId  = "pocket-beta"
	MainNetChainId      = "pocket"
)
View Source
const (
	AlphaTestNetEstimatedBlockDuration = time.Minute
	BetaTestNetEstimatedBlockDuration  = 5 * time.Minute
	MainNetEstimatedBlockDuration      = time.Minute
)
View Source
const (
	LocalNetRPCURL     = "http://localhost:26657"
	AlphaTestNetRPCURL = "https://shannon-testnet-grove-rpc.alpha.poktroll.com"
	BetaTestNetRPCURL  = "https://shannon-testnet-grove-rpc.beta.poktroll.com"
	MainNetRPCURL      = "https://shannon-grove-rpc.mainnet.poktroll.com"

	LocalNetGRPCAddr = "localhost:9090"
	AlphaNetGRPCAddr = "shannon-testnet-grove-grpc.alpha.poktroll.com:443"
	BetaNetGRPCAddr  = "shannon-testnet-grove-grpc.beta.poktroll.com:443"
	MainNetGRPCAddr  = "shannon-grove-grpc.mainnet.poktroll.com:443"

	LocalNetFaucetBaseURL     = "http://localhost:8080"
	AlphaTestNetFaucetBaseURL = "https://shannon-testnet-grove-faucet.alpha.poktroll.com"
	BetaTestNetFaucetBaseURL  = "https://shannon-testnet-grove-faucet.beta.poktroll.com"
	MainNetFaucetBaseURL      = "https://shannon-grove-faucet.mainnet.poktroll.com"
)

Variables

EstimatedBlockDurationByChainId maps chain IDs to their estimated block durations.

- These estimates are derived from the consensus configuration for each network. - Block durations are inferred by averaging the time between recent consecutive blocks. - Estimations consider factors such as:

| Network | timeout_commit | Consensus Config | |---------------|----------------|-----------------------------------------------------------------------------------------------------------| | Alpha TestNet | 1m0s | https://github.com/pokt-network/pocket-network-genesis/blob/master/shannon/testnet-alpha/config.toml#L426 | | Beta TestNet | 5m0s | https://github.com/pokt-network/pocket-network-genesis/blob/master/shannon/testnet-beta/config.toml#L426 | | MainNet | 1m0s | https://github.com/pokt-network/pocket-network-genesis/blob/master/shannon/mainnet/config.toml#L426 |

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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