rest

package
v0.0.0-...-f2ae4c7 Latest Latest
Warning

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

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

Documentation

Overview

Package rest defines the RESTful service for the cert module.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProposalRESTHandler

func ProposalRESTHandler(cliCtx context.CLIContext) govrest.ProposalRESTHandler

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

func RegisterQueryRoutes

func RegisterQueryRoutes(cliCtx context.CLIContext, r *mux.Router, storeName string)

func RegisterRoutes

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

RegisterRoutes registers the routes in main application.

func RegisterTxRoutes

func RegisterTxRoutes(cliCtx context.CLIContext, r *mux.Router, storeName string)

Types

type CertifierUpdateProposalReq

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

	Title       string            `json:"title" yaml:"title"`
	Description string            `json:"description" yaml:"description"`
	Certifier   sdk.AccAddress    `json:"certifier" yaml:"certifier"`
	Alias       string            `json:"alias" yaml:"alias"`
	AddOrRemove types.AddOrRemove `json:"add_or_remove" yaml:"add_or_remove"`
	Deposit     sdk.Coins         `json:"deposit" yaml:"deposit"`
}

CertifierUpdateProposalReq defines a certifier update proposal request body.

Jump to

Keyboard shortcuts

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