rest

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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 RemoveIndexingNodeRequest

type RemoveIndexingNodeRequest struct {
	BaseReq             rest.BaseReq `json:"base_req" yaml:"base_req"`
	IndexingNodeAddress string       `json:"indexing_node_address" yaml:"indexing_node_address"` // in bech32
}

type RemoveResourceNodeRequest

type RemoveResourceNodeRequest struct {
	BaseReq             rest.BaseReq `json:"base_req" yaml:"base_req"`
	ResourceNodeAddress string       `json:"resource_node_address" yaml:"resource_node_address"` // in bech32
}

type UpdateIndexingNodeRequest added in v0.4.0

type UpdateIndexingNodeRequest 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"`
	NetworkAddress string            `json:"network_address" yaml:"network_address"`
}

type UpdateIndexingNodeStakeRequest added in v0.6.0

type UpdateIndexingNodeStakeRequest struct {
	BaseReq        rest.BaseReq `json:"base_req" yaml:"base_req"`
	NetworkAddress string       `json:"network_address" yaml:"network_address"`
	StakeDelta     sdk.Coin     `json:"stake_delta" yaml:"stake_delta"`
	IncrStake      string       `json:"incr_stake" yaml:"incr_stake"`
}

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

type UpdateResourceNodeStakeRequest struct {
	BaseReq        rest.BaseReq `json:"base_req" yaml:"base_req"`
	NetworkAddress string       `json:"network_address" yaml:"network_address"`
	StakeDelta     sdk.Coin     `json:"stake_delta" yaml:"stake_delta"`
	IncrStake      string       `json:"incr_stake" yaml:"incr_stake"`
}

Jump to

Keyboard shortcuts

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