rest

package
v15.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProposalReplacePoolIncentivesRESTHandler

func ProposalReplacePoolIncentivesRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler

func ProposalUpdatePoolIncentivesRESTHandler

func ProposalUpdatePoolIncentivesRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler

ProposalUpdatePoolIncentivesRESTHandler returns pool incentives update governance proposal handler.

Types

type ReplacePoolIncentivesRequest

type ReplacePoolIncentivesRequest struct {
	BaseReq     rest.BaseReq        `json:"base_req" yaml:"base_req"`
	Title       string              `json:"title" yaml:"title"`
	Description string              `json:"description" yaml:"description"`
	Deposit     sdk.Coins           `json:"deposit" yaml:"deposit"`
	Records     []types.DistrRecord `json:"records" yaml:"records"`
}

type UpdatePoolIncentivesRequest

type UpdatePoolIncentivesRequest struct {
	BaseReq     rest.BaseReq        `json:"base_req" yaml:"base_req"`
	Title       string              `json:"title" yaml:"title"`
	Description string              `json:"description" yaml:"description"`
	Deposit     sdk.Coins           `json:"deposit" yaml:"deposit"`
	Records     []types.DistrRecord `json:"records" yaml:"records"`
}

Jump to

Keyboard shortcuts

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