rest

package
v1.3.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterHandlers

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

func RegisterXatpProposalRESTHandler

func RegisterXatpProposalRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler

func UnregisterXatpProposalRESTHandler

func UnregisterXatpProposalRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler

Types

type RegisterXatpProposalReq

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

	Title       string         `json:"title,omitempty"`
	Description string         `json:"description,omitempty"`
	Xatp        types.XATP     `json:"xatp,omitempty"`
	Proposer    sdk.AccAddress `json:"proposer" yaml:"proposer"`
	Deposit     sdk.Coins      `json:"deposit,omitempty"`
}

type UnregisterXatpProposalReq

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

	Title       string         `json:"title,omitempty"`
	Description string         `json:"description,omitempty"`
	Denom       string         `json:"denom,omitempty"`
	Proposer    sdk.AccAddress `json:"proposer" 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