rest

package
v1.5.0-develop Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: LGPL-3.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CancelIncentiveProposalRequestRESTHandler

func CancelIncentiveProposalRequestRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler

func RegisterIncentiveProposalRESTHandler

func RegisterIncentiveProposalRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler

Types

type CancelIncentiveProposalRequest

type CancelIncentiveProposalRequest 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"`
	ContractAddress string       `json:"contract_address" yaml:"contract_address"`
}

CancelIncentiveProposalRequest defines a request for a new register a contract incentive.

type RegisterIncentiveProposalRequest

type RegisterIncentiveProposalRequest 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"`
	ContractAddress string       `json:"contract_address" yaml:"contract_address"`
	Allocation      sdk.DecCoins `json:"allocation" yaml:"allocation"`
	Epochs          uint32       `json:"epochs" yaml:"epochs"`
}

RegisterIncentiveProposalRequest defines a request for a new register a contract incentive.

Jump to

Keyboard shortcuts

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