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 ManageContractByteCodeProposalJSON ¶
type ManageContractByteCodeProposalJSON struct {
Title string `json:"title" yaml:"title"`
Description string `json:"description" yaml:"description"`
Contract sdk.AccAddress `json:"contract" yaml:"contract"`
SubstituteContract sdk.AccAddress `json:"substitute_contract" yaml:"substitute_contract"`
Deposit sdk.SysCoins `json:"deposit" yaml:"deposit"`
}
func ParseManageContractBytecodeProposalJSON ¶
func ParseManageContractBytecodeProposalJSON(cdc *codec.Codec, proposalFilePath string) ( proposal ManageContractByteCodeProposalJSON, err error)
ParseManageContractBytecodeProposalJSON parses json from proposal file to ManageContractByteCodeProposalJSON 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
type ManageContractMethodBlockedListProposalJSON ¶
type ManageContractMethodBlockedListProposalJSON struct {
Title string `json:"title" yaml:"title"`
Description string `json:"description" yaml:"description"`
ContractList types.BlockedContractList `json:"contract_addresses" yaml:"contract_addresses"`
IsAdded bool `json:"is_added" yaml:"is_added"`
Deposit sdk.SysCoins `json:"deposit" yaml:"deposit"`
}
ManageContractMethodBlockedListProposalJSON defines a ManageContractMethodBlockedListProposal with a deposit used to parse manage contract method blocked list proposals from a JSON file.
func ParseManageContractMethodBlockedListProposalJSON ¶
func ParseManageContractMethodBlockedListProposalJSON(cdc *codec.Codec, proposalFilePath string) ( proposal ManageContractMethodBlockedListProposalJSON, err error)
ParseManageContractMethodBlockedListProposalJSON parses json from proposal file to ManageContractBlockedListProposalJSON struct
type ManageSysContractAddressProposalJSON ¶
type ManageSysContractAddressProposalJSON struct {
Title string `json:"title" yaml:"title"`
Description string `json:"description" yaml:"description"`
// Contract Address
ContractAddr sdk.AccAddress `json:"contract_address" yaml:"contract_address"`
IsAdded bool `json:"is_added" yaml:"is_added"`
Deposit sdk.SysCoins `json:"deposit" yaml:"deposit"`
}
ManageSysContractAddressProposalJSON defines a ManageSysContractAddressProposal with a deposit used to parse manage system contract address proposals from a JSON file.
func ParseManageSysContractAddressProposalJSON ¶
func ParseManageSysContractAddressProposalJSON(cdc *codec.Codec, proposalFilePath string) ( proposal ManageSysContractAddressProposalJSON, err error)
ManageSysContractAddressProposalJSON parses json from proposal file to ManageSysContractAddressProposal struct
type ResponseBlockContract ¶
type ResponseBlockContract struct {
Address string `json:"address" yaml:"address"`
BlockMethods types.ContractMethods `json:"block_methods" yaml:"block_methods"`
}
type ResponseSysContractAddress ¶
type ResponseSysContractAddress struct {
Address string `json:"address" yaml:"address"`
}