cli

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package cli defines the CLI services for the cert module.

Index

Constants

View Source
const (
	FlagAlias        = "alias"
	FlagContentType  = "content-type"
	FlagContent      = "content"
	FlagCompiler     = "compiler"
	FlagBytecodeHash = "bytecode-hash"
	FlagDescription  = "description"
	FlagCertifier    = "certifier"
	FlagPage         = "page"
	FlagLimit        = "limit"
)

Variables

This section is empty.

Functions

func GetCmdCertificate

func GetCmdCertificate(queryRoute string, cdc *codec.Codec) *cobra.Command

GetCmdCertificate returns the certificate query command.

func GetCmdCertificates

func GetCmdCertificates(queryRoute string, cdc *codec.Codec) *cobra.Command

GetCmdCertificates returns certificates query command

func GetCmdCertifier

func GetCmdCertifier(queryRoute string, cdc *codec.Codec) *cobra.Command

GetCmdCertifier returns the certifier query command.

func GetCmdCertifiers

func GetCmdCertifiers(queryRoute string, cdc *codec.Codec) *cobra.Command

GetCmdCertifiers returns all certifier query command

func GetCmdCertifyPlatform

func GetCmdCertifyPlatform(cdc *codec.Codec) *cobra.Command

GetCmdCertifyPlatform returns the validator host platform certification transaction command.

func GetCmdCertifyValidator

func GetCmdCertifyValidator(cdc *codec.Codec) *cobra.Command

GetCmdCertifyValidator returns the validator certification transaction command.

func GetCmdDecertifyValidator

func GetCmdDecertifyValidator(cdc *codec.Codec) *cobra.Command

GetCmdDecertifyValidator returns the validator de-certification tx command.

func GetCmdIssueCertificate

func GetCmdIssueCertificate(cdc *codec.Codec) *cobra.Command

GetCmdIssueCertificate returns the certificate transaction command.

func GetCmdPlatform

func GetCmdPlatform(queryRoute string, cdc *codec.Codec) *cobra.Command

GetCmdPlatform returns the validator host platform certification query command.

func GetCmdRevokeCertificate

func GetCmdRevokeCertificate(cdc *codec.Codec) *cobra.Command

GetCmdRevokeCertificate returns the certificate revoke command

func GetCmdSubmitProposal

func GetCmdSubmitProposal(cdc *codec.Codec) *cobra.Command

GetCmdSubmitProposal implements the command to submit a certifier-update proposal

func GetCmdValidator

func GetCmdValidator(queryRoute string, cdc *codec.Codec) *cobra.Command

GetCmdValidator returns the validator certification query command.

func GetCmdValidators

func GetCmdValidators(queryRoute string, cdc *codec.Codec) *cobra.Command

GetCmdValidators returns all validators certification query command

func GetQueryCmd

func GetQueryCmd(queryRoute string, cdc *codec.Codec) *cobra.Command

GetQueryCmd returns the cli query commands for the certification module.

func GetTxCmd

func GetTxCmd(cdc *codec.Codec) *cobra.Command

GetTxCmd returns the transaction commands for the certification module.

Types

type CertifierUpdateProposalJSON

type CertifierUpdateProposalJSON struct {
	Title       string            `json:"title" yaml:"title"`
	Description string            `json:"description" yaml:"description"`
	Certifier   sdk.AccAddress    `json:"certifier" yaml:"certifier"`
	Alias       string            `json:"alias" yaml:"alias"`
	AddOrRemove types.AddOrRemove `json:"add_or_remove" yaml:"add_or_remove"`
	Deposit     sdk.Coins         `json:"deposit" yaml:"deposit"`
}

CertifierUpdateProposalJSON defines a CertifierUpdateProposal with a deposit

func ParseCertifierUpdateProposalJSON

func ParseCertifierUpdateProposalJSON(cdc *codec.Codec, proposalFile string) (CertifierUpdateProposalJSON, error)

ParseCertifierUpdateProposalJSON reads and parses a CertifierUpdateProposalJSON from a file.

Jump to

Keyboard shortcuts

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