cli

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagPubKey    = "pubkey"
	FlagAmount    = "amount"
	FlagNetworkID = "network-id"
	FlagNodeType  = "node-type"

	FlagMoniker         = "moniker"
	FlagIdentity        = "identity"
	FlagWebsite         = "website"
	FlagSecurityContact = "security-contact"
	FlagDetails         = "details"

	FlagNodeAddress  = "node-address"
	FlagOwnerAddress = "owner-address"
	FlagOpinion      = "opinion"
)

Variables

View Source
var (
	FsPk                = flag.NewFlagSet("", flag.ContinueOnError)
	FsAmount            = flag.NewFlagSet("", flag.ContinueOnError)
	FsNetworkID         = flag.NewFlagSet("", flag.ContinueOnError)
	FsNodeType          = flag.NewFlagSet("", flag.ContinueOnError)
	FsDescriptionCreate = flag.NewFlagSet("", flag.ContinueOnError)
	FsNodeAddress       = flag.NewFlagSet("", flag.ContinueOnError)
	FsOwnerAddress      = flag.NewFlagSet("", flag.ContinueOnError)
	FsOpinion           = flag.NewFlagSet("", flag.ContinueOnError)
)

common flagsets to add to various functions

Functions

func CreateIndexingNodeCmd

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

CreateIndexingNodeCmd will create a file upload tx and sign it with the given key.

func CreateResourceNodeCmd

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

CreateResourceNodeCmd will create a file upload tx and sign it with the given key.

func GetCmdQueryIndexingNodeList

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

GetCmdQueryIndexingNodeList implements the query all indexing nodes by network id command.

func GetCmdQueryNetworkSet

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

GetCmdQueryNetworkSet implements the query all indexing nodes by network id command.

func GetCmdQueryResourceNodeList

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

GetCmdQueryResourceNodeList implements the query all resource nodes by network id command.

func GetIndByMoniker

func GetIndByMoniker(cliCtx context.CLIContext, queryRoute string, queryFlagMoniker string) (res string, err error)

func GetIndNodesByNetworkID

func GetIndNodesByNetworkID(cliCtx context.CLIContext, queryRoute string) (res string, err error)

GetIndNodesByNetworkID queries all indexing nodes by multiple network IDs (sep: ";")

func GetQueryCmd

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

GetQueryCmd returns the cli query commands for register module

func GetResNodesByMoniker

func GetResNodesByMoniker(cliCtx context.CLIContext, queryRoute string, queryFlagMoniker string) (res string, err error)

func GetResNodesByNetworkID

func GetResNodesByNetworkID(cliCtx context.CLIContext, queryRoute string) (res string, err error)

GetResNodesByNetworkID queries all resource nodes by multiple network IDs (sep: ";")

func GetTxCmd

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

GetTxCmd returns the transaction commands for this module

func IndexingNodeRegistrationVoteCmd

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

IndexingNodeRegistrationVoteCmd Indexing node registration need to be approved by 2/3 of existing indexing nodes

func QueryIndNodesByMoniker

func QueryIndNodesByMoniker(cliCtx context.CLIContext, queryRoute, networkID string) ([]byte, int64, error)

QueryIndNodesByMoniker queries all indexing nodes by network ID

func QueryIndexingNodes

func QueryIndexingNodes(cliCtx context.CLIContext, queryRoute, networkID string) ([]byte, int64, error)

QueryIndexingNodes queries all resource nodes by network is

func QueryNetworkSet

func QueryNetworkSet(cliCtx context.CLIContext, queryRoute string) ([]byte, int64, error)

QueryNetworkSet queries all network id

func QueryResNodesByMoniker

func QueryResNodesByMoniker(cliCtx context.CLIContext, queryRoute, moniker string) ([]byte, int64, error)

func QueryResourceNodes

func QueryResourceNodes(cliCtx context.CLIContext, queryRoute, networkID string) ([]byte, int64, error)

QueryResourceNodes queries all resource nodes by network id

func RemoveIndexingNodeCmd

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

func RemoveResourceNodeCmd

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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