Documentation
¶
Index ¶
- Constants
- func AccountAddressFromValidatorAddress(valAddr, valPrefix, accPrefix string) (string, error)
- func ExtractChainIdFromGenesis(genesis string) (string, error)
- func RetrieveGenesisFromNodeRPC(ctx context.Context, url string, sha *string) (string, error)
- func RetrieveGenesisFromURL(ctx context.Context, url string, sha *string) (string, error)
- type Account
- type AccountAssets
- type App
- func (a *App) CreateValidator(ctx context.Context, pubKey string, account *Account, nodeInfo *NodeInfo, ...) error
- func (a *App) GenerateConfigFiles(ctx context.Context) (map[string]string, error)
- func (a *App) InitPvcData(ctx context.Context, pvc *corev1.PersistentVolumeClaim, timeout time.Duration, ...) error
- func (a *App) LoadGenesisFromConfigMap(ctx context.Context, configMapName string) (string, error)
- func (a *App) NewGenesis(ctx context.Context, privkeySecret string, account *Account, ...) (string, error)
- type Client
- func (c *Client) Close() error
- func (c *Client) GetAbciInfo(ctx context.Context) (abci.ResponseInfo, error)
- func (c *Client) GetBlockHash(ctx context.Context, height int64) (string, error)
- func (c *Client) GetLatestBlock(ctx context.Context) (*tmtypes.Block, error)
- func (c *Client) GetNextUpgrade(ctx context.Context) (*upgradetypes.Plan, error)
- func (c *Client) GetNodeStatus(ctx context.Context) (*coretypes.ResultStatus, error)
- func (c *Client) GetValidators(ctx context.Context) ([]stakingTypes.Validator, error)
- func (c *Client) IsNodeSyncing(ctx context.Context) (bool, error)
- func (c *Client) NodeInfo(ctx context.Context) (*p2p.DefaultNodeInfo, error)
- func (c *Client) QueryValidator(ctx context.Context, address string) (*stakingTypes.Validator, error)
- type InitCommand
- type NodeInfo
- type Option
- type Params
Constants ¶
View Source
const ( P2pPortName = "p2p" P2pPort = 26656 RpcPortName = "rpc" RpcPort = 26657 LcdPortName = "lcd" LcdPort = 1317 GrpcPortName = "grpc" GrpcPort = 9090 PrometheusPortName = "prometheus" PrometheusPort = 26660 PrivValPortName = "privvalidator" PrivValPort = 26659 GenesisFilename = "genesis.json" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccountAssets ¶
type App ¶
type App struct {
NodeSelector map[string]string
Affinity *corev1.Affinity
// contains filtered or unexported fields
}
func (*App) CreateValidator ¶
func (*App) GenerateConfigFiles ¶
func (*App) InitPvcData ¶
func (a *App) InitPvcData(ctx context.Context, pvc *corev1.PersistentVolumeClaim, timeout time.Duration, initCommands ...*InitCommand) error
func (*App) LoadGenesisFromConfigMap ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetAbciInfo ¶ added in v1.53.0
func (*Client) GetBlockHash ¶
func (*Client) GetLatestBlock ¶
func (*Client) GetNextUpgrade ¶
func (*Client) GetNodeStatus ¶
func (*Client) GetValidators ¶
func (*Client) QueryValidator ¶
type InitCommand ¶
type Option ¶
type Option func(*App)
func WithAffinityConfig ¶
func WithBinary ¶
func WithImagePullPolicy ¶
func WithImagePullPolicy(p corev1.PullPolicy) Option
func WithNodeSelector ¶
func WithPriorityClass ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.