rest

package
v2.7.1 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: Apache-2.0 Imports: 13 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 client.Context) govrest.ProposalRESTHandler

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

func RegisterHandlers

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

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