rest

package
v2.0.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProposalRESTHandler

func ProposalRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler

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

Types

type CommunityPoolEthereumSpendProposalReq

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

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

CommunityPoolEthereumSpendProposalReq defines a community pool Ethereum spend proposal request body.

Jump to

Keyboard shortcuts

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