rest

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProposalRESTHandler

func ProposalRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler

ProposalRESTHandler returns a ProposalRESTHandler that exposes the param change REST handler with a given sub-route.

Types

type TokenMappingChangeProposalReq

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

	Title       string         `json:"title" yaml:"title"`
	Description string         `json:"description" yaml:"description"`
	Denom       string         `json:"denom" yaml:"denom"`
	Contract    string         `json:"contract" yaml:"contract"`
	Proposer    sdk.AccAddress `json:"proposer" yaml:"proposer"`
	Deposit     sdk.Coins      `json:"deposit" yaml:"deposit"`
}

TokenMappingChangeProposalReq defines a parameter change proposal request body.

Jump to

Keyboard shortcuts

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