utils

package
v0.19.17 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: Apache-2.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 ManageContractBlockedListProposalJSON

type ManageContractBlockedListProposalJSON struct {
	Title         string            `json:"title" yaml:"title"`
	Description   string            `json:"description" yaml:"description"`
	ContractAddrs types.AddressList `json:"contract_addresses" yaml:"contract_addresses"`
	IsAdded       bool              `json:"is_added" yaml:"is_added"`
	Deposit       sdk.SysCoins      `json:"deposit" yaml:"deposit"`
}

ManageContractBlockedListProposalJSON defines a ManageContractBlockedListProposal with a deposit used to parse manage blocked list proposals from a JSON file.

func ParseManageContractBlockedListProposalJSON

func ParseManageContractBlockedListProposalJSON(cdc *codec.Codec, proposalFilePath string) (
	proposal ManageContractBlockedListProposalJSON, err error)

ParseManageContractBlockedListProposalJSON parses json from proposal file to ManageContractBlockedListProposalJSON struct

type ManageContractDeploymentWhitelistProposalJSON

type ManageContractDeploymentWhitelistProposalJSON struct {
	Title            string            `json:"title" yaml:"title"`
	Description      string            `json:"description" yaml:"description"`
	DistributorAddrs types.AddressList `json:"distributor_addresses" yaml:"distributor_addresses"`
	IsAdded          bool              `json:"is_added" yaml:"is_added"`
	Deposit          sdk.SysCoins      `json:"deposit" yaml:"deposit"`
}

ManageContractDeploymentWhitelistProposalJSON defines a ManageContractDeploymentWhitelistProposal with a deposit used to parse manage whitelist proposals from a JSON file.

func ParseManageContractDeploymentWhitelistProposalJSON

func ParseManageContractDeploymentWhitelistProposalJSON(cdc *codec.Codec, proposalFilePath string) (
	proposal ManageContractDeploymentWhitelistProposalJSON, err error)

ParseManageContractDeploymentWhitelistProposalJSON parses json from proposal file to ManageContractDeploymentWhitelistProposalJSON struct

Jump to

Keyboard shortcuts

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