rest

package
v3.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

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