Documentation ¶
Index ¶
- Constants
- func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router)
- type CreateIndexingNodeRequest
- type CreateResourceNodeRequest
- type IndexingNodeRegVoteRequest
- type RemoveIndexingNodeRequest
- type RemoveResourceNodeRequest
- type UpdateIndexingNodeRequest
- type UpdateIndexingNodeStakeRequest
- type UpdateResourceNodeRequest
- type UpdateResourceNodeStakeRequest
Constants ¶
View Source
const ( RestNetworkID = "network" RestNumLimit = "limit" RestMoniker = "moniker" RestOwner = "owner" RestQueryType = "query_type" )
REST Variable names nolint
Variables ¶
This section is empty.
Functions ¶
func RegisterRoutes ¶
func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router)
RegisterRoutes registers register-related REST handlers to a router
Types ¶
type CreateIndexingNodeRequest ¶
type CreateIndexingNodeRequest struct { BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"` NetworkID string `json:"network_id" yaml:"network_id"` PubKey string `json:"pubkey" yaml:"pubkey"` // in bech32 Amount sdk.Coin `json:"amount" yaml:"amount"` Description types.Description `json:"description" yaml:"description"` }
type CreateResourceNodeRequest ¶
type CreateResourceNodeRequest struct { BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"` NetworkID string `json:"network_id" yaml:"network_id"` PubKey string `json:"pubkey" yaml:"pubkey"` // in bech32 Amount sdk.Coin `json:"amount" yaml:"amount"` Description types.Description `json:"description" yaml:"description"` NodeType int `json:"node_type" yaml:"node_type"` }
type IndexingNodeRegVoteRequest ¶ added in v0.4.0
type IndexingNodeRegVoteRequest struct { BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"` CandidateNetworkAddress string `json:"candidate_network_address" yaml:"candidate_network_address"` CandidateOwnerAddress string `json:"candidate_owner_address" yaml:"candidate_owner_address"` Opinion bool `json:"opinion" yaml:"opinion"` VoterNetworkAddress string `json:"voter_network_address" yaml:"voter_network_address"` }
type UpdateIndexingNodeRequest ¶ added in v0.4.0
type UpdateIndexingNodeStakeRequest ¶ added in v0.6.0
type UpdateResourceNodeRequest ¶ added in v0.4.0
type UpdateResourceNodeRequest struct { BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"` NetworkID string `json:"network_id" yaml:"network_id"` Description types.Description `json:"description" yaml:"description"` NodeType int `json:"node_type" yaml:"node_type"` NetworkAddress string `json:"network_address" yaml:"network_address"` }
type UpdateResourceNodeStakeRequest ¶ added in v0.6.0
Click to show internal directories.
Click to hide internal directories.