rest

package
v2.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProposalRESTHandler

func ProposalRESTHandler(cliCtx client.Context) govrest.ProposalRESTHandler

ProposalRESTHandler returns a ProposalRESTHandler that exposes the shield claim REST handler with a given sub-route.

func RegisterHandlers

func RegisterHandlers(cliCtx client.Context, rtr *mux.Router)

Types

type ShieldClaimProposalReq

type ShieldClaimProposalReq struct {
	BaseReq     resttypes.BaseReq `json:"base_req" yaml:"base_req"`
	PoolID      uint64            `json:"pool_id" yaml:"pool_id"`
	Loss        sdk.Coins         `json:"loss" yaml:"loss"`
	Evidence    string            `json:"evidence" yaml:"evidence"`
	PurchaseID  uint64            `json:"purchase_id" yaml:"purchase_id"`
	Description string            `json:"description" yaml:"description"`
	Deposit     sdk.Coins         `json:"deposit" yaml:"deposit"`
}

ShieldClaimProposalReq defines a shield claim proposal request body.

Jump to

Keyboard shortcuts

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