rest

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterHandlers

func RegisterHandlers(cliecntCtx client.Context, rtr *mux.Router)

func RegisterVolunteerValidatorProposalRESTHandler

func RegisterVolunteerValidatorProposalRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler

func UnregisterVolunteerValidatorProposalRESTHandler

func UnregisterVolunteerValidatorProposalRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler

Types

type RegisterVolunteerValidatorProposalReq

type RegisterVolunteerValidatorProposalReq struct {
	BaseReq rest.BaseReq `json:"base_req,omitempty"`

	Title                string                   `json:"title,omitempty"`
	Description          string                   `json:"description,omitempty"`
	ValidatorDescription stakingtypes.Description `json:"validator_description,omitempty"`
	Pubkey               string                   `json:"pubkey,omitempty"`
	Amount               sdk.Coin                 `json:"amount,omitempty"`
	Proposer             sdk.AccAddress           `json:"proposer,omitempty" yaml:"proposer"`
	Deposit              sdk.Coins                `json:"deposit,omitempty"`
}

type UnregisterVolunteerValidatorProposalReq

type UnregisterVolunteerValidatorProposalReq struct {
	BaseReq rest.BaseReq `json:"base_req,omitempty"`

	Title            string         `json:"title,omitempty"`
	Description      string         `json:"description,omitempty"`
	ValidatorAddress sdk.ValAddress `json:"validator_address,omitempty"`
	Proposer         sdk.AccAddress `json:"proposer,omitempty" yaml:"proposer"`
	Deposit          sdk.Coins      `json:"deposit,omitempty"`
}

Jump to

Keyboard shortcuts

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