utils

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: Apache-2.0, Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ManageTreasuresProposalJSON

type ManageTreasuresProposalJSON struct {
	Title       string           `json:"title" yaml:"title"`
	Description string           `json:"description" yaml:"description"`
	Treasures   []types.Treasure `json:"treasures" yaml:"treasures"`
	IsAdded     bool             `json:"is_added" yaml:"is_added"`
	Deposit     sdk.SysCoins     `json:"deposit" yaml:"deposit"`
}

ManageTreasuresProposalJSON defines a ManageTreasureProposal with a deposit used to parse manage treasures proposals from a JSON file.

func ParseManageTreasuresProposalJSON

func ParseManageTreasuresProposalJSON(cdc *codec.Codec, proposalFilePath string) (
	proposal ManageTreasuresProposalJSON, err error)

ParseManageTreasuresProposalJSON parses json from proposal file to ManageTreasuresProposalJSON struct

type ModifyNextBlockUpdateProposalJSON added in v1.7.0

type ModifyNextBlockUpdateProposalJSON struct {
	Title       string       `json:"title" yaml:"title"`
	Description string       `json:"description" yaml:"description"`
	Deposit     sdk.SysCoins `json:"deposit" yaml:"deposit"`
	BlockNum    uint64       `json:"block_num" yaml:"block_num"`
}

ModifyNextBlockUpdateProposalJSON defines a ModifyNextBlockUpdateProposal with a deposit used to parse manage treasures proposals from a JSON file.

func ParseModifyNextBlockUpdateProposalJSON added in v1.7.0

func ParseModifyNextBlockUpdateProposalJSON(cdc *codec.Codec, proposalFilePath string) (
	proposal ModifyNextBlockUpdateProposalJSON, err error)

ParseModifyNextBlockUpdateProposalJSON parses json from proposal file to ModifyNextBlockUpdateProposalJSON struct

Jump to

Keyboard shortcuts

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