rest

package
v0.19.3-testnet Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DepositProposalRESTHandler

func DepositProposalRESTHandler(cliCtx client.Context) govrest.ProposalRESTHandler

DepositProposalRESTHandler returns a ProposalRESTHandler that exposes the community pool deposit REST handler with a given sub-route.

func WithdrawProposalRESTHandler

func WithdrawProposalRESTHandler(cliCtx client.Context) govrest.ProposalRESTHandler

WithdrawProposalRESTHandler returns a ProposalRESTHandler that exposes the community pool deposit REST handler with a given sub-route.

Types

type CommunityPoolDepositProposalReq

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

	Title       string         `json:"title" yaml:"title"`
	Description string         `json:"description" yaml:"description"`
	Amount      sdk.Coin       `json:"amount" yaml:"amount"`
	Deposit     sdk.Coins      `json:"deposit" yaml:"deposit"`
	Proposer    sdk.AccAddress `json:"proposer" yaml:"proposer"`
}

CommunityPoolDepositProposalReq defines a community pool deposit proposal request body.

type CommunityPoolWithdrawProposalReq

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

	Title       string         `json:"title" yaml:"title"`
	Description string         `json:"description" yaml:"description"`
	Amount      sdk.Coin       `json:"amount" yaml:"amount"`
	Deposit     sdk.Coins      `json:"deposit" yaml:"deposit"`
	Proposer    sdk.AccAddress `json:"proposer" yaml:"proposer"`
}

CommunityPoolWithdrawProposalReq defines a community pool deposit proposal request body.

Jump to

Keyboard shortcuts

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