Documentation ¶
Overview ¶
Package cli defines the CLI services for the cert module.
Index ¶
- Constants
- func GetCmdCertificate(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdCertificates(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdCertifier(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdCertifiers(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdCertifyPlatform(cdc *codec.Codec) *cobra.Command
- func GetCmdCertifyValidator(cdc *codec.Codec) *cobra.Command
- func GetCmdDecertifyValidator(cdc *codec.Codec) *cobra.Command
- func GetCmdIssueCertificate(cdc *codec.Codec) *cobra.Command
- func GetCmdPlatform(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdRevokeCertificate(cdc *codec.Codec) *cobra.Command
- func GetCmdSubmitProposal(cdc *codec.Codec) *cobra.Command
- func GetCmdValidator(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdValidators(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetQueryCmd(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetTxCmd(cdc *codec.Codec) *cobra.Command
- type CertifierUpdateProposalJSON
Constants ¶
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 ¶
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 GetCmdCertifyValidator ¶
GetCmdCertifyValidator returns the validator certification transaction command.
func GetCmdDecertifyValidator ¶
GetCmdDecertifyValidator returns the validator de-certification tx 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 GetCmdValidator ¶
GetCmdValidator returns the validator certification query command.
func GetCmdValidators ¶
GetCmdValidators returns all validators certification query command
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"` }
CommunityPoolSpendProposalJSON defines a CommunityPoolSpendProposal with a deposit
func ParseCertifierUpdateProposalJSON ¶
func ParseCertifierUpdateProposalJSON(cdc *codec.Codec, proposalFile string) (CertifierUpdateProposalJSON, error)
ParseCommunityPoolSpendProposalJSON reads and parses a CommunityPoolSpendProposalJSON from a file.