utils

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateValidatorProposalJSON

type CreateValidatorProposalJSON struct {
	Title       string `json:"title"`
	Summary     string `json:"summary"`
	Name        string `json:"name"`
	Pubkey      string `json:"pubkey"`
	Power       int64  `json:"power"`
	Description string `json:"description"`
	Operator    string `json:"operator"`
}

type ValidatorCreateProposalJSON

type ValidatorCreateProposalJSON struct {
	Deposit string                      `json:"deposit"`
	Content CreateValidatorProposalJSON `json:"content"`
}

func ParseValidatorCreateJSON

func ParseValidatorCreateJSON(cdc *codec.LegacyAmino, proposalFile string) (ValidatorCreateProposalJSON, error)

ParseValidatorCreateJSON reads and parses a ParamChangeProposalJSON from file.

type ValidatorRemoveProposalJSON

type ValidatorRemoveProposalJSON struct {
	Deposit string                       `json:"deposit"`
	Content node.RemoveValidatorProposal `json:"content"`
}

func ParseValidatorRemoveJSON

func ParseValidatorRemoveJSON(cdc *codec.LegacyAmino, proposalFile string) (ValidatorRemoveProposalJSON, error)

ParseValidatorCreateJSON reads and parses a ParamChangeProposalJSON from file.

type ValidatorUpdateProposalJSON

type ValidatorUpdateProposalJSON struct {
	Deposit string                       `json:"deposit"`
	Content node.UpdateValidatorProposal `json:"content"`
}

func ParseValidatorUpdateJSON

func ParseValidatorUpdateJSON(cdc *codec.LegacyAmino, proposalFile string) (ValidatorUpdateProposalJSON, error)

ParseValidatorCreateJSON reads and parses a ParamChangeProposalJSON from file.

Jump to

Keyboard shortcuts

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