cosmos-sdk: github.com/cosmos/cosmos-sdk/x/upgrade/client/rest Index | Files

package rest

import "github.com/cosmos/cosmos-sdk/x/upgrade/client/rest"

Index

Package Files

query.go rest.go tx.go

func ProposalCancelRESTHandler Uses

func ProposalCancelRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler

func ProposalRESTHandler Uses

func ProposalRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler

func RegisterRoutes Uses

func RegisterRoutes(clientCtx client.Context, r *mux.Router)

RegisterRoutes registers REST routes for the upgrade module under the path specified by routeName.

type CancelRequest Uses

type CancelRequest 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"`
}

CancelRequest defines a proposal to cancel a current plan.

type PlanRequest Uses

type PlanRequest 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"`
    UpgradeName   string       `json:"upgrade_name" yaml:"upgrade_name"`
    UpgradeHeight int64        `json:"upgrade_height" yaml:"upgrade_height"`
    UpgradeTime   string       `json:"upgrade_time" yaml:"upgrade_time"`
    UpgradeInfo   string       `json:"upgrade_info" yaml:"upgrade_info"`
}

PlanRequest defines a proposal for a new upgrade plan.

Package rest imports 12 packages (graph) and is imported by 2 packages. Updated 2020-08-13. Refresh now. Tools for package owners.