Documentation ¶
Index ¶
- Constants
- Variables
- func CreateIndexingNodeCmd(cdc *codec.Codec) *cobra.Command
- func CreateResourceNodeCmd(cdc *codec.Codec) *cobra.Command
- func GetCmdQueryIndexingNodeList(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdQueryNetworkSet(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdQueryResourceNodeList(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetIndByMoniker(cliCtx context.CLIContext, queryRoute string, queryFlagMoniker string) (res string, err error)
- func GetIndNodesByNetworkID(cliCtx context.CLIContext, queryRoute string) (res string, err error)
- func GetQueryCmd(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetResNodesByMoniker(cliCtx context.CLIContext, queryRoute string, queryFlagMoniker string) (res string, err error)
- func GetResNodesByNetworkID(cliCtx context.CLIContext, queryRoute string) (res string, err error)
- func GetTxCmd(cdc *codec.Codec) *cobra.Command
- func IndexingNodeRegistrationVoteCmd(cdc *codec.Codec) *cobra.Command
- func QueryIndNodesByMoniker(cliCtx context.CLIContext, queryRoute, networkID string) ([]byte, int64, error)
- func QueryIndexingNodes(cliCtx context.CLIContext, queryRoute, networkID string) ([]byte, int64, error)
- func QueryNetworkSet(cliCtx context.CLIContext, queryRoute string) ([]byte, int64, error)
- func QueryResNodesByMoniker(cliCtx context.CLIContext, queryRoute, moniker string) ([]byte, int64, error)
- func QueryResourceNodes(cliCtx context.CLIContext, queryRoute, networkID string) ([]byte, int64, error)
- func RemoveIndexingNodeCmd(cdc *codec.Codec) *cobra.Command
- func RemoveResourceNodeCmd(cdc *codec.Codec) *cobra.Command
Constants ¶
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 ¶
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 ¶
CreateIndexingNodeCmd will create a file upload tx and sign it with the given key.
func CreateResourceNodeCmd ¶
CreateResourceNodeCmd will create a file upload tx and sign it with the given key.
func GetCmdQueryIndexingNodeList ¶
GetCmdQueryIndexingNodeList implements the query all indexing nodes by network id command.
func GetCmdQueryNetworkSet ¶
GetCmdQueryNetworkSet implements the query all indexing nodes by network id command.
func GetCmdQueryResourceNodeList ¶
GetCmdQueryResourceNodeList implements the query all resource nodes by network id command.
func GetIndByMoniker ¶
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 ¶
GetQueryCmd returns the cli query commands for register module
func GetResNodesByMoniker ¶
func GetResNodesByNetworkID ¶
func GetResNodesByNetworkID(cliCtx context.CLIContext, queryRoute string) (res string, err error)
GetResNodesByNetworkID queries all resource nodes by multiple network IDs (sep: ";")
func IndexingNodeRegistrationVoteCmd ¶
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 ¶
QueryNetworkSet queries all network id
func QueryResNodesByMoniker ¶
func QueryResourceNodes ¶
func QueryResourceNodes(cliCtx context.CLIContext, queryRoute, networkID string) ([]byte, int64, error)
QueryResourceNodes queries all resource nodes by network id
Types ¶
This section is empty.