cli

package
v2.13.1 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 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"
	FlagCertType     = "certificate-type"
	FlagCompiler     = "compiler"
	FlagBytecodeHash = "bytecode-hash"
	FlagDescription  = "description"
	FlagCertifier    = "certifier"
	FlagPage         = "page"
	FlagLimit        = "limit"
)

Variables

This section is empty.

Functions

func GetCmdCertificate

func GetCmdCertificate() *cobra.Command

GetCmdCertificate returns the certificate query command.

func GetCmdCertificates

func GetCmdCertificates() *cobra.Command

GetCmdCertificates returns certificates query command

func GetCmdCertifier

func GetCmdCertifier() *cobra.Command

GetCmdCertifier returns the certifier query command.

func GetCmdCertifiers

func GetCmdCertifiers() *cobra.Command

GetCmdCertifiers returns all certifier query command

func GetCmdCertifyPlatform

func GetCmdCertifyPlatform() *cobra.Command

GetCmdCertifyPlatform returns the validator host platform certification transaction command.

func GetCmdIssueCertificate

func GetCmdIssueCertificate() *cobra.Command

GetCmdIssueCertificate returns the certificate transaction command.

func GetCmdPlatform

func GetCmdPlatform() *cobra.Command

GetCmdPlatform returns the validator host platform certification query command.

func GetCmdRevokeCertificate

func GetCmdRevokeCertificate() *cobra.Command

GetCmdRevokeCertificate returns the certificate revoke command

func GetCmdSubmitProposal

func GetCmdSubmitProposal() *cobra.Command

GetCmdSubmitProposal implements the command to submit a certifier-update proposal

func GetQueryCmd

func GetQueryCmd() *cobra.Command

GetQueryCmd returns the cli query commands for the certification module.

func NewTxCmd

func NewTxCmd() *cobra.Command

NewTxCmd 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.LegacyAmino, 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