utils

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PlanJSON

type PlanJSON struct {
	Name   string `json:"name" yaml:"name"`
	Height int64  `json:"height" yaml:"height"`
	Info   string `json:"info" yaml:"info"`
}

func NewPlanJSON

func NewPlanJSON(name string, height int64, info string) PlanJSON

type SoftwareUpgradeProposalJSON

type SoftwareUpgradeProposalJSON struct {
	Title       string   `json:"title" yaml:"title"`
	Description string   `json:"description" yaml:"description"`
	Plan        PlanJSON `json:"plan" yaml:"plan"`
}

func ParseSoftwareUpgradeProposalJSON

func ParseSoftwareUpgradeProposalJSON(cdc *codec.Codec, proposalFile string) (SoftwareUpgradeProposalJSON, error)

type SoftwareUpgradeProposalReq

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

	Title       string         `json:"title" yaml:"title"`
	Description string         `json:"description" yaml:"description"`
	Plan        PlanJSON       `json:"plan" yaml:"plan"`
	Proposer    sdk.AccAddress `json:"proposer" yaml:"proposer"`
}

Jump to

Keyboard shortcuts

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