rest

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProposalRESTHandler added in v0.14.2

func ProposalRESTHandler(cliCtx context.CLIContext) govrest.ProposalRESTHandler

ProposalRESTHandler returns a ProposalRESTHandler that exposes the community pool multi-spend REST handler with a given sub-route.

func RegisterRoutes

func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router)

RegisterRoutes registers kavadist-related REST handlers to a router

Types

type CommunityPoolMultiSpendProposalReq added in v0.14.2

type CommunityPoolMultiSpendProposalReq struct {
	BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"`

	Title         string                     `json:"title" yaml:"title"`
	Description   string                     `json:"description" yaml:"description"`
	RecipientList types.MultiSpendRecipients `json:"recipient_list" yaml:"recipient_list"`
	Deposit       sdk.Coins                  `json:"deposit" yaml:"deposit"`
	Proposer      sdk.AccAddress             `json:"proposer" yaml:"proposer"`
}

CommunityPoolMultiSpendProposalReq defines a community pool multi-spend proposal request body.

Jump to

Keyboard shortcuts

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