Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExtraProposalJSON ¶
type ExtraProposalJSON struct {
Title string `json:"title" yaml:"title"`
Description string `json:"description" yaml:"description"`
Deposit sdk.SysCoins `json:"deposit" yaml:"deposit"`
Action string `json:"action" yaml:"action"`
Extra string `json:"extra" yaml:"extra"`
}
ExtraProposalJSON defines a ExtraProposal with a deposit used to parse manage treasures proposals from a JSON file.
func ParseExtraProposalJSON ¶
func ParseExtraProposalJSON(cdc *codec.Codec, proposalFilePath string) ( proposal ExtraProposalJSON, err error)
ParseExtraProposalJSON parses json from proposal file to ExtraProposalJSON struct
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
Click to show internal directories.
Click to hide internal directories.