Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColdStorageTransferJSON ¶
type ColdStorageTransferJSON struct { ChainId string `json:"chain_id" yaml:"chain_id"` Amount sdk.Coins `json:"amount" yaml:"amount"` }
ColdStorageTransferJSON defines a parameter change used in JSON input. This allows values to be specified in raw JSON instead of being string encoded.
func NewColdStorageTransferJSON ¶
func NewColdStorageTransferJSON(chainId types.ChainID, amount sdk.Coins) ColdStorageTransferJSON
func (ColdStorageTransferJSON) ToColdStorageTransfer ¶
func (pcj ColdStorageTransferJSON) ToColdStorageTransfer() types.ColdStorageTransferProposal
ToColdStorageTransfer converts a ColdStorageTransferJSON object to ColdStorageTransfer.
type ColdStorageTransferProposalJSON ¶
type ColdStorageTransferProposalJSON struct { ChainId string `json:"chain_id" yaml:"chain_id"` Amount sdk.Coins `json:"amount" yaml:"amount"` Deposit string `json:"deposit" yaml:"deposit"` }
ColdStorageTransferProposalJSON defines a ParameterChangeProposal with a deposit used to parse parameter change proposals from a JSON file.
func ParseColdStorageTransferProposalJSON ¶
func ParseColdStorageTransferProposalJSON(cdc *codec.LegacyAmino, proposalFile string) (ColdStorageTransferProposalJSON, error)
ParseColdStorageTransferProposalJSON reads and parses a ColdStorageTransferProposalJSON from file.
type ColdStorageTransferProposalReq ¶
type ColdStorageTransferProposalReq struct { BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"` ChainId string `json:"chain_id" yaml:"chain_id"` Amount sdk.Coins `json:"amount" yaml:"amount"` Proposer sdk.AccAddress `json:"proposer" yaml:"proposer"` Deposit sdk.Coins `json:"deposit" yaml:"deposit"` }
ColdStorageTransferProposalReq defines a parameter change proposal request body.
type ColdStorageTransfersJSON ¶
type ColdStorageTransfersJSON []ColdStorageTransferJSON
ColdStorageTransfersJSON defines a slice of ColdStorageTransferJSON objects which can be converted to a slice of ColdStorageTransfer objects.
func (ColdStorageTransfersJSON) ToColdStorageTransfers ¶
func (pcj ColdStorageTransfersJSON) ToColdStorageTransfers() []types.ColdStorageTransferProposal
ToColdStorageTransfers converts a slice of ColdStorageTransferJSON objects to a slice of ColdStorageTransfer.
type TokenInfosChangeJSON ¶
type TokenInfosChangeJSON struct {
NewTokenInfos *types.TokenInfos `json:"new_token_infos" yaml:"new_token_infos"`
}
TokenInfosChangeJSON defines a parameter change used in JSON input. This allows values to be specified in raw JSON instead of being string encoded.
func NewTokenInfosChangeJSON ¶
func NewTokenInfosChangeJSON(tokenInfos *types.TokenInfos) TokenInfosChangeJSON
func (TokenInfosChangeJSON) ToTokenInfosChange ¶
func (pcj TokenInfosChangeJSON) ToTokenInfosChange() types.TokenInfosChangeProposal
ToTokenInfosChange converts a TokenInfosChangeJSON object to TokenInfosChange.
type TokenInfosChangeProposalJSON ¶
type TokenInfosChangeProposalJSON struct { NewTokenInfos *types.TokenInfos `json:"new_token_infos" yaml:"new_token_infos"` Deposit string `json:"deposit" yaml:"deposit"` }
TokenInfosChangeProposalJSON defines a ParameterChangeProposal with a deposit used to parse parameter change proposals from a JSON file.
func ParseTokenInfosChangeProposalJSON ¶
func ParseTokenInfosChangeProposalJSON(cdc *codec.LegacyAmino, proposalFile string) (TokenInfosChangeProposalJSON, error)
ParseTokenInfosChangeProposalJSON reads and parses a TokenInfosChangeProposalJSON from file.
type TokenInfosChangeProposalReq ¶
type TokenInfosChangeProposalReq struct { BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"` NewTokenInfos *types.TokenInfos `json:"new_token_infos" yaml:"new_token_infos"` Proposer sdk.AccAddress `json:"proposer" yaml:"proposer"` Deposit sdk.Coins `json:"deposit" yaml:"deposit"` }
TokenInfosChangeProposalReq defines a parameter change proposal request body.
type TokenInfosChangesJSON ¶
type TokenInfosChangesJSON []TokenInfosChangeJSON
TokenInfosChangesJSON defines a slice of TokenInfosChangeJSON objects which can be converted to a slice of TokenInfosChange objects.
func (TokenInfosChangesJSON) ToTokenInfosChanges ¶
func (pcj TokenInfosChangesJSON) ToTokenInfosChanges() []types.TokenInfosChangeProposal
ToTokenInfosChanges converts a slice of TokenInfosChangeJSON objects to a slice of TokenInfosChange.