Documentation ¶
Index ¶
- Constants
- func RegisterHandlers(clientCtx client.Context, rtr *mux.Router)
- type CreateMetaNodeRequest
- type CreateResourceNodeRequest
- type MetaNodeRegVoteRequest
- type RemoveMetaNodeRequest
- type RemoveResourceNodeRequest
- type UpdateEffectiveDepositRequest
- type UpdateMetaNodeDepositRequest
- type UpdateMetaNodeRequest
- type UpdateResourceNodeDepositRequest
- type UpdateResourceNodeRequest
Constants ¶
View Source
const ( RestNetworkAddr = "network" RestNumLimit = "limit" RestMoniker = "moniker" RestOwner = "owner" RestQueryType = "query_type" )
REST Variable names nolint
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateMetaNodeRequest ¶ added in v0.8.0
type CreateMetaNodeRequest struct { BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"` NetworkAddr string `json:"network_address" yaml:"network_address"` 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"` NetworkAddr string `json:"network_address" yaml:"network_address"` PubKey string `json:"pubkey" yaml:"pubkey"` // in bech32 Amount sdk.Coin `json:"amount" yaml:"amount"` Description types.Description `json:"description" yaml:"description"` NodeType uint32 `json:"node_type" yaml:"node_type"` }
type MetaNodeRegVoteRequest ¶ added in v0.8.0
type MetaNodeRegVoteRequest 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 RemoveMetaNodeRequest ¶ added in v0.8.0
type UpdateEffectiveDepositRequest ¶ added in v0.10.0
type UpdateEffectiveDepositRequest struct { BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"` Reporters []stratos.SdsAddress `json:"reporters" yaml:"reporters"` // reporter(sp node) p2p address ReporterOwner []sdk.AccAddress `json:"reporter_owner" yaml:"reporter_owner"` // report(sp node) wallet address NetworkAddress string `json:"network_address" yaml:"network_address"` EffectiveTokens sdk.Int `json:"effective_tokens" yaml:"effective_tokens"` InitialTier uint32 `json:"initial_tier" yaml:"initial_tier"` OngoingTier uint32 `json:"ongoing_tier" yaml:"ongoing_tier"` }
type UpdateMetaNodeDepositRequest ¶ added in v0.10.0
type UpdateMetaNodeRequest ¶ added in v0.8.0
type UpdateMetaNodeRequest struct { BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"` Description types.Description `json:"description" yaml:"description"` NetworkAddress string `json:"network_address" yaml:"network_address"` }
type UpdateResourceNodeDepositRequest ¶ added in v0.10.0
type UpdateResourceNodeRequest ¶ added in v0.4.0
Click to show internal directories.
Click to hide internal directories.