rest

package
v0.1.0-warmage....-c068d24 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BatchSetBackingProposalRESTHandler

func BatchSetBackingProposalRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler

func BatchSetCollateralProposalRESTHandler

func BatchSetCollateralProposalRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler

func RegisterBackingProposalRESTHandler

func RegisterBackingProposalRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler

func RegisterCollateralProposalRESTHandler

func RegisterCollateralProposalRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler

func SetBackingProposalRESTHandler

func SetBackingProposalRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler

func SetCollateralProposalRESTHandler

func SetCollateralProposalRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler

Types

type BatchSetBackingProposalRequest

type BatchSetBackingProposalRequest 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"`
	RiskParams  []types.BackingRiskParams `json:"risk_params" yaml:"risk_params"`
}

type BatchSetCollateralProposalRequest

type BatchSetCollateralProposalRequest 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"`
	RiskParams  []types.CollateralRiskParams `json:"risk_params" yaml:"risk_params"`
}

type RegisterBackingProposalRequest

type RegisterBackingProposalRequest 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"`
	RiskParams  types.BackingRiskParams `json:"risk_params" yaml:"risk_params"`
}

type RegisterCollateralProposalRequest

type RegisterCollateralProposalRequest 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"`
	RiskParams  types.CollateralRiskParams `json:"risk_params" yaml:"risk_params"`
}

type SetBackingProposalRequest

type SetBackingProposalRequest 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"`
	RiskParams  types.BackingRiskParams `json:"risk_params" yaml:"risk_params"`
}

type SetCollateralProposalRequest

type SetCollateralProposalRequest 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"`
	RiskParams  types.CollateralRiskParams `json:"risk_params" yaml:"risk_params"`
}

Jump to

Keyboard shortcuts

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