cmd

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2020 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Package cmd ... Copyright © 2020 NAME HERE <EMAIL ADDRESS>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Package cmd ... Copyright © 2020 NAME HERE <EMAIL ADDRESS>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version defines the application version (defined at compile time)
	Version = ""
	// Commit defines the application commit hash (defined at compile time)
	Commit = ""
	// TMVersion defines the tendermint commit hash (defined at compile time)
	TMVersion = ""
)

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func NewLightRoot

func NewLightRoot(sh tmtypes.SignedHeader) []byte

NewLightRoot returns a new light root

Types

type Binary

type Binary struct {
	Name    string `json:"name"`
	Repo    string `json:"repo"`
	Build   string `json:"build"`
	Version string `json:"version"`
}

Binary is everything you need to build the binary for the network from the repo configured

type Config

type Config struct {
	RPCAddr            string `json:"rpc-addr" yaml:"rpc-addr"`
	ChainID            string `json:"chain-id" yaml:"chain-id"`
	BuildRepo          string `json:"build-repo" yaml:"build-repo"`
	BuildCommand       string `json:"build-command" yaml:"build-command"`
	BinaryName         string `json:"binary-name" yaml:"binary-name"`
	BuildVersion       string `json:"build-version" yaml:"build-version"`
	GithubAccessToken  string `json:"github-access-token" yaml:"github-access-token"`
	RegistryRepo       string `json:"registry-repo" yaml:"registry-repo"`
	RegistryRepoBranch string `json:"registry-repo-branch" yaml:"registry-repo-branch"`
	GitName            string `json:"git-name" yaml:"git-name"`
	GitEmail           string `json:"git-email" yaml:"git-email"`
	CommitMessage      string `json:"commit-message" yaml:"commit-message"`
}

Config represents the configuration for the given application

func (*Config) Binary

func (c *Config) Binary() []byte

Binary returns the binary file representation from the config

func (*Config) Client

func (c *Config) Client() (*rpchttp.HTTP, error)

Client returns a tendermint client to work against the configured chain

func (*Config) MustYAML

func (c *Config) MustYAML() []byte

MustYAML converts to yaml bytes panicing on error

func (*Config) YAML

func (c *Config) YAML() ([]byte, error)

YAML converts the config into yaml bytes

type LightRoot

type LightRoot struct {
	TrustHeight int64  `json:"trust-height"`
	TrustHash   string `json:"trust-hash"`
}

LightRoot is the format for a light client root file which will be used for state sync

Jump to

Keyboard shortcuts

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