Documentation ¶
Overview ¶
Package cli defines the CLI services for the cert module.
Index ¶
- Constants
- func GetCmdCertificate() *cobra.Command
- func GetCmdCertificates() *cobra.Command
- func GetCmdCertifier() *cobra.Command
- func GetCmdCertifiers() *cobra.Command
- func GetCmdCertifyPlatform() *cobra.Command
- func GetCmdIssueCertificate() *cobra.Command
- func GetCmdPlatform() *cobra.Command
- func GetCmdRevokeCertificate() *cobra.Command
- func GetCmdSubmitProposal() *cobra.Command
- func GetQueryCmd() *cobra.Command
- func NewTxCmd() *cobra.Command
- type CertifierUpdateProposalJSON
Constants ¶
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 ¶
GetCmdCertificate returns the certificate query command.
func GetCmdCertificates ¶
GetCmdCertificates returns certificates query command
func GetCmdCertifier ¶
GetCmdCertifier returns the certifier query command.
func GetCmdCertifiers ¶
GetCmdCertifiers returns all certifier query command
func GetCmdCertifyPlatform ¶
GetCmdCertifyPlatform returns the validator host platform certification transaction command.
func GetCmdIssueCertificate ¶
GetCmdIssueCertificate returns the certificate transaction command.
func GetCmdPlatform ¶
GetCmdPlatform returns the validator host platform certification query command.
func GetCmdRevokeCertificate ¶
GetCmdRevokeCertificate returns the certificate revoke command
func GetCmdSubmitProposal ¶
GetCmdSubmitProposal implements the command to submit a certifier-update proposal
func GetQueryCmd ¶
GetQueryCmd returns the cli query 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.